blob: e48795685802c705778065d4be2738cb818072f0 [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",
Hal Martin49e23d22018-05-27 14:18:43 +02002334 .name = "AT25SL128A",
2335 .bustype = BUS_SPI,
2336 .manufacture_id = ATMEL_ID,
2337 .model_id = ATMEL_AT25SL128A,
2338 .total_size = 16384,
2339 .page_size = 256,
2340 /* supports SFDP */
2341 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
2342 .tested = TEST_OK_PREW,
2343 .probe = probe_spi_rdid,
2344 .probe_timing = TIMING_ZERO,
2345 .block_erasers =
2346 {
2347 {
2348 .eraseblocks = { {4 * 1024, 4096} },
2349 .block_erase = spi_block_erase_20,
2350 }, {
2351 .eraseblocks = { {32 * 1024, 512} },
2352 .block_erase = spi_block_erase_52,
2353 }, {
2354 .eraseblocks = { {64 * 1024, 256} },
2355 .block_erase = spi_block_erase_d8,
2356 }, {
2357 .eraseblocks = { {16 * 1024 * 1024, 1} },
2358 .block_erase = spi_block_erase_60,
2359 }, {
2360 .eraseblocks = { {16 * 1024 * 1024, 1} },
2361 .block_erase = spi_block_erase_c7,
2362 }
2363 },
2364 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
2365 .unlock = spi_disable_blockprotect,
2366 .write = spi_chip_write_256,
2367 .read = spi_chip_read,
2368 .voltage = {1700, 2000},
2369 },
2370
2371 {
Stanislav Sedovf5775442018-03-07 14:16:51 -08002372 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002373 .name = "AT26DF041",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002374 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002375 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002376 .model_id = ATMEL_AT26DF041,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002377 .total_size = 512,
2378 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002379 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner94b39b42012-10-27 00:06:02 +00002380 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002381 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002382 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002383 .block_erasers =
2384 {
2385 {
Stefan Tauner94b39b42012-10-27 00:06:02 +00002386 .eraseblocks = { {256, 2048} },
2387 .block_erase = spi_block_erase_81,
2388 }, {
2389 .eraseblocks = { {2 * 1024, 256} },
2390 .block_erase = spi_block_erase_50,
2391 }, {
Sean Nelson89187292009-12-23 12:02:55 +00002392 .eraseblocks = { {4 * 1024, 128} },
2393 .block_erase = spi_block_erase_20,
2394 }
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002395 },
Stefan Taunercecb2c52013-06-20 22:55:41 +00002396 .printlock = spi_prettyprint_status_register_plain,
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002397 /* Supports also an incompatible page write (of exactly 256 B) and an auto-erasing write. */
Stefan Tauner94b39b42012-10-27 00:06:02 +00002398 .write = spi_chip_write_1,
2399 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002400 .voltage = {2700, 3600}, /* 3.0-3.6V for higher speed, 2.7-3.6V normal */
FENG yu ningff692fb2008-12-08 18:15:10 +00002401 },
2402
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002403 {
2404 .vendor = "Atmel",
2405 .name = "AT26DF081A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002406 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002407 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002408 .model_id = ATMEL_AT26DF081A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002409 .total_size = 1024,
2410 .page_size = 256,
Mathias Krause2c3afa32011-01-17 07:45:54 +00002411 .feature_bits = FEATURE_WRSR_WREN,
2412 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002413 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002414 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002415 .block_erasers =
2416 {
2417 {
2418 .eraseblocks = { {4 * 1024, 256} },
2419 .block_erase = spi_block_erase_20,
2420 }, {
2421 .eraseblocks = { {32 * 1024, 32} },
2422 .block_erase = spi_block_erase_52,
2423 }, {
2424 .eraseblocks = { {64 * 1024, 16} },
2425 .block_erase = spi_block_erase_d8,
2426 }, {
2427 .eraseblocks = { {1024 * 1024, 1} },
2428 .block_erase = spi_block_erase_60,
2429 }, {
2430 .eraseblocks = { {1024 * 1024, 1} },
2431 .block_erase = spi_block_erase_c7,
2432 }
2433 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002434 .printlock = spi_prettyprint_status_register_at26df081a,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002435 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002436 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002437 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002438 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002439 },
2440
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002441 {
2442 .vendor = "Atmel",
2443 .name = "AT26DF161",
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_AT26DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002447 .total_size = 2048,
2448 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002449 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +00002450 .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, 512} },
2457 .block_erase = spi_block_erase_20,
2458 }, {
2459 .eraseblocks = { {32 * 1024, 64} },
2460 .block_erase = spi_block_erase_52,
2461 }, {
2462 .eraseblocks = { {64 * 1024, 32} },
2463 .block_erase = spi_block_erase_d8,
2464 }, {
2465 .eraseblocks = { {2 * 1024 * 1024, 1} },
2466 .block_erase = spi_block_erase_60,
2467 }, {
2468 .eraseblocks = { {2 * 1024 * 1024, 1} },
2469 .block_erase = spi_block_erase_c7,
2470 }
2471 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00002472 .printlock = spi_prettyprint_status_register_at25df,
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 = "AT26DF161A",
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_AT26DF161A,
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 Taunercecb2c52013-06-20 22:55:41 +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 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002510 .printlock = spi_prettyprint_status_register_at26df081a,
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 = "AT26F004",
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_AT26F004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002523 .total_size = 512,
2524 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002525 .feature_bits = FEATURE_WRSR_WREN,
Alan Green908adf42019-07-03 15:34:06 +10002526 .tested = {.probe = NT, .read = NT, .erase = NT, .write = BAD},
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, 128} },
2533 .block_erase = spi_block_erase_20,
2534 }, {
2535 .eraseblocks = { {32 * 1024, 16} },
2536 .block_erase = spi_block_erase_52,
2537 }, {
2538 .eraseblocks = { {64 * 1024, 8} },
2539 .block_erase = spi_block_erase_d8,
2540 }, {
2541 .eraseblocks = { {512 * 1024, 1} },
2542 .block_erase = spi_block_erase_60,
2543 }, {
2544 .eraseblocks = { {512 * 1024, 1} },
2545 .block_erase = spi_block_erase_c7,
2546 }
2547 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002548 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Alan Greencbb85c02019-06-25 13:42:34 +10002549 .write = NULL, /* Incompatible Page write */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002550 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002551 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002552 },
2553
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002554 {
2555 .vendor = "Atmel",
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002556 .name = "AT29C010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002557 .bustype = BUS_PARALLEL,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002558 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002559 .model_id = ATMEL_AT29C010A,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002560 .total_size = 128,
2561 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00002562 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002563 .tested = TEST_OK_PRE,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002564 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00002565 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00002566 .block_erasers =
2567 {
2568 {
2569 .eraseblocks = { {128 * 1024, 1} },
2570 .block_erase = erase_chip_block_jedec,
2571 }
2572 },
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002573 .write = write_jedec, /* FIXME */
2574 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002575 .voltage = {4500, 5500},
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002576 },
2577
2578 {
2579 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002580 .name = "AT29C020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002581 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002582 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002583 .model_id = ATMEL_AT29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002584 .total_size = 256,
2585 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002586 .feature_bits = FEATURE_LONG_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00002587 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002588 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00002589 .probe_timing = 10000, /* 10ms */
Sean Nelson89187292009-12-23 12:02:55 +00002590 .block_erasers =
2591 {
2592 {
2593 .eraseblocks = { {256 * 1024, 1} },
2594 .block_erase = erase_chip_block_jedec,
2595 }
2596 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002597 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002598 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002599 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002600 },
2601
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002602 {
2603 .vendor = "Atmel",
2604 .name = "AT29C040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002605 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002606 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002607 .model_id = ATMEL_AT29C040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002608 .total_size = 512,
2609 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002610 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002611 .tested = TEST_UNTESTED,
2612 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00002613 .probe_timing = 10000, /* 10 ms */
Sean Nelson89187292009-12-23 12:02:55 +00002614 .block_erasers =
2615 {
2616 {
2617 .eraseblocks = { {512 * 1024, 1} },
2618 .block_erase = erase_chip_block_jedec,
2619 }
2620 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002621 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002622 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002623 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002624 },
2625
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002626 {
2627 .vendor = "Atmel",
Alan Green1f9cc7d2019-07-01 11:10:45 +10002628 .name = "AT29C512",
2629 .bustype = BUS_PARALLEL,
2630 .manufacture_id = ATMEL_ID,
2631 .model_id = ATMEL_AT29C512,
2632 .total_size = 64,
2633 .page_size = 128,
2634 .feature_bits = FEATURE_LONG_RESET,
2635 .tested = TEST_OK_PREW,
2636 .probe = probe_jedec,
2637 .probe_timing = 10000, /* 10mS, Enter=Exec */
2638 .block_erasers =
2639 {
2640 {
2641 .eraseblocks = { {64 * 1024, 1} },
2642 .block_erase = erase_chip_block_jedec,
2643 }
2644 },
2645 .write = write_jedec,
2646 .read = read_memmapped,
2647 .voltage = {4500, 5500},
2648 },
2649
2650 {
2651 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002652 .name = "AT45CS1282",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002653 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002654 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002655 .model_id = ATMEL_AT45CS1282,
Alan Greencbb85c02019-06-25 13:42:34 +10002656 .total_size = 16896, /* No power of two sizes */
2657 .page_size = 1056, /* No power of two sizes */
Steven Zakulec3603a282012-05-02 20:07:57 +00002658 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner1dd5d3a2013-08-27 18:02:19 +00002659 /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */
2660 .feature_bits = FEATURE_OTP,
2661 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002662 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002663 .probe_timing = TIMING_ZERO,
Stefan Tauner1dd5d3a2013-08-27 18:02:19 +00002664 .block_erasers =
2665 {
2666 {
2667 .eraseblocks = {
2668 {8 * 1056, 1}, /* sector 0a: opcode 50h */
2669 {248 * 1056, 1}, /* sector 0b: opcode 7Ch */
2670 {256 * 1056, 63}, /* sectors 1 - 63: opcode 7Ch */
2671 },
2672 .block_erase = spi_erase_at45cs_sector,
2673 }
2674 },
2675 .printlock = spi_prettyprint_status_register_plain,
Stefan Tauner1dd5d3a2013-08-27 18:02:19 +00002676 .write = spi_write_at45db,
2677 .read = spi_read_at45db,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002678 .voltage = {2700, 3600},
Alan Greenc1863ca2019-06-27 15:08:03 +10002679 .gran = write_gran_1056bytes,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002680 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002681
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002682 {
2683 .vendor = "Atmel",
2684 .name = "AT45DB011D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002685 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002686 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002687 .model_id = ATMEL_AT45DB011D,
Alan Greencbb85c02019-06-25 13:42:34 +10002688 .total_size = 128, /* or 132, determined from status register */
2689 .page_size = 256, /* or 264, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00002690 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002691 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2692 .feature_bits = FEATURE_OTP,
Stefan Tauner5c316f92015-02-08 21:57:52 +00002693 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002694 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002695 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002696 .block_erasers =
2697 {
2698 {
2699 .eraseblocks = { {256, 512} },
2700 .block_erase = spi_erase_at45db_page,
2701 }, {
2702 .eraseblocks = { {8 * 256, 512/8} },
2703 .block_erase = spi_erase_at45db_block,
2704 }, {
2705 .eraseblocks = {
2706 {8 * 256, 1},
2707 {120 * 256, 1},
2708 {128 * 256, 3},
2709 },
2710 .block_erase = spi_erase_at45db_sector
2711 }, {
2712 .eraseblocks = { {128 * 1024, 1} },
2713 .block_erase = spi_erase_at45db_chip,
2714 }
2715 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002716 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10002717 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002718 /* granularity will be set by the probing function. */
2719 .write = spi_write_at45db,
2720 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002721 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002722 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002723
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002724 {
2725 .vendor = "Atmel",
2726 .name = "AT45DB021D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002727 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002728 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002729 .model_id = ATMEL_AT45DB021D,
Alan Greencbb85c02019-06-25 13:42:34 +10002730 .total_size = 256, /* or 264, determined from status register */
2731 .page_size = 256, /* or 264, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00002732 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002733 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2734 .feature_bits = FEATURE_OTP,
Stefan Tauner6697f712014-08-06 15:09:15 +00002735 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002736 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002737 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002738 .block_erasers =
2739 {
2740 {
2741 .eraseblocks = { {256, 1024} },
2742 .block_erase = spi_erase_at45db_page,
2743 }, {
2744 .eraseblocks = { {8 * 256, 1024/8} },
2745 .block_erase = spi_erase_at45db_block,
2746 }, {
2747 .eraseblocks = {
2748 {8 * 256, 1},
2749 {120 * 256, 1},
2750 {128 * 256, 7},
2751 },
2752 .block_erase = spi_erase_at45db_sector
2753 }, {
2754 .eraseblocks = { {256 * 1024, 1} },
2755 .block_erase = spi_erase_at45db_chip,
2756 }
2757 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002758 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10002759 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002760 /* granularity will be set by the probing function. */
2761 .write = spi_write_at45db,
2762 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002763 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002764 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002765
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002766 {
2767 .vendor = "Atmel",
2768 .name = "AT45DB041D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002769 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002770 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002771 .model_id = ATMEL_AT45DB041D,
Alan Greencbb85c02019-06-25 13:42:34 +10002772 .total_size = 512, /* or 528, determined from status register */
2773 .page_size = 256, /* or 264, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00002774 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002775 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2776 .feature_bits = FEATURE_OTP,
2777 .tested = TEST_OK_PREW,
2778 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002779 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002780 .block_erasers =
2781 {
2782 {
2783 .eraseblocks = { {256, 2048} },
2784 .block_erase = spi_erase_at45db_page,
2785 }, {
2786 .eraseblocks = { {8 * 256, 2048/8} },
2787 .block_erase = spi_erase_at45db_block,
2788 }, {
2789 .eraseblocks = {
2790 {8 * 256, 1},
2791 {248 * 256, 1},
2792 {256 * 256, 7},
2793 },
2794 .block_erase = spi_erase_at45db_sector
2795 }, {
2796 .eraseblocks = { {512 * 1024, 1} },
2797 .block_erase = spi_erase_at45db_chip,
2798 }
2799 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002800 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10002801 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002802 /* granularity will be set by the probing function. */
2803 .write = spi_write_at45db,
2804 .read = spi_read_at45db, /* Fast read (0x0B) supported */
2805 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002806 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002807
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002808 {
2809 .vendor = "Atmel",
2810 .name = "AT45DB081D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002811 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002812 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002813 .model_id = ATMEL_AT45DB081D,
Alan Greencbb85c02019-06-25 13:42:34 +10002814 .total_size = 1024, /* or 1056, determined from status register */
2815 .page_size = 256, /* or 264, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00002816 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002817 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2818 .feature_bits = FEATURE_OTP,
Angel Pons250aeba2018-09-30 20:28:22 +02002819 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002820 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002821 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002822 .block_erasers =
2823 {
2824 {
2825 .eraseblocks = { {256, 4096} },
2826 .block_erase = spi_erase_at45db_page,
2827 }, {
2828 .eraseblocks = { {8 * 256, 4096/8} },
2829 .block_erase = spi_erase_at45db_block,
2830 }, {
2831 .eraseblocks = {
2832 {8 * 256, 1},
2833 {248 * 256, 1},
2834 {256 * 256, 15},
2835 },
2836 .block_erase = spi_erase_at45db_sector
2837 }, {
2838 .eraseblocks = { {1024 * 1024, 1} },
2839 .block_erase = spi_erase_at45db_chip,
2840 }
2841 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002842 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10002843 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002844 /* granularity will be set by the probing function. */
2845 .write = spi_write_at45db,
2846 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002847 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002848 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002849
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002850 {
2851 .vendor = "Atmel",
2852 .name = "AT45DB161D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002853 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002854 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002855 .model_id = ATMEL_AT45DB161D,
Alan Greencbb85c02019-06-25 13:42:34 +10002856 .total_size = 2048, /* or 2112, determined from status register */
2857 .page_size = 512, /* or 528, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00002858 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002859 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2860 .feature_bits = FEATURE_OTP,
2861 .tested = TEST_OK_PREW,
2862 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002863 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002864 .block_erasers =
2865 {
2866 {
2867 .eraseblocks = { {512, 4096} },
2868 .block_erase = spi_erase_at45db_page,
2869 }, {
2870 .eraseblocks = { {8 * 512, 4096/8} },
2871 .block_erase = spi_erase_at45db_block,
2872 }, {
2873 .eraseblocks = {
2874 {8 * 512, 1},
2875 {248 * 512, 1},
2876 {256 * 512, 15},
2877 },
2878 .block_erase = spi_erase_at45db_sector
2879 }, {
2880 .eraseblocks = { {2048 * 1024, 1} },
2881 .block_erase = spi_erase_at45db_chip,
2882 }
2883 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002884 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10002885 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002886 /* granularity will be set by the probing function. */
2887 .write = spi_write_at45db,
2888 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002889 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002890 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002891
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002892 {
2893 .vendor = "Atmel",
2894 .name = "AT45DB321C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002895 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002896 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002897 .model_id = ATMEL_AT45DB321C,
Alan Greencbb85c02019-06-25 13:42:34 +10002898 .total_size = 4224, /* No power of two sizes */
2899 .page_size = 528, /* No power of two sizes */
Steven Zakulec3603a282012-05-02 20:07:57 +00002900 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002901 /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */
2902 .feature_bits = FEATURE_OTP,
2903 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002904 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002905 .probe_timing = TIMING_ZERO,
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002906 .block_erasers =
2907 {
2908 {
2909 .eraseblocks = { {528, 8192} },
2910 .block_erase = spi_erase_at45db_page,
2911 }, {
2912 .eraseblocks = { {8 * 528, 8192/8} },
2913 .block_erase = spi_erase_at45db_block,
2914 }, /* Although the datasheets describes sectors (which can be write protected)
2915 * there seems to be no erase functions for them.
Stefan Tauner23e10b82016-01-23 16:16:49 +00002916 {
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002917 .eraseblocks = {
2918 {8 * 528, 1},
2919 {120 * 528, 1},
2920 {128 * 528, 63},
2921 },
2922 .block_erase = spi_erase_at45db_sector
2923 }, */ {
2924 .eraseblocks = { {4224 * 1024, 1} },
2925 .block_erase = spi_erase_at45db_chip,
2926 }
2927 },
2928 .printlock = spi_prettyprint_status_register_at45db, /* Bit 0 is undefined, no lockdown */
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002929 .write = spi_write_at45db,
2930 .read = spi_read_at45db_e8, /* 3 address and 4 dummy bytes */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002931 .voltage = {2700, 3600},
Alan Greenc1863ca2019-06-27 15:08:03 +10002932 .gran = write_gran_528bytes,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002933 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002934
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002935 {
2936 .vendor = "Atmel",
2937 .name = "AT45DB321D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002938 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002939 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002940 .model_id = ATMEL_AT45DB321D,
Alan Greencbb85c02019-06-25 13:42:34 +10002941 .total_size = 4096, /* or 4224, determined from status register */
2942 .page_size = 512, /* or 528, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00002943 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002944 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
Daniel Lenski65922a32012-02-15 23:40:23 +00002945 .feature_bits = FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +00002946 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002947 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002948 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002949 .block_erasers =
2950 {
2951 {
2952 .eraseblocks = { {512, 8192} },
2953 .block_erase = spi_erase_at45db_page,
2954 }, {
2955 .eraseblocks = { {8 * 512, 8192/8} },
2956 .block_erase = spi_erase_at45db_block,
2957 }, {
2958 .eraseblocks = {
2959 {8 * 512, 1},
2960 {120 * 512, 1},
2961 {128 * 512, 63},
2962 },
2963 .block_erase = spi_erase_at45db_sector
2964 }, {
2965 .eraseblocks = { {4096 * 1024, 1} },
2966 .block_erase = spi_erase_at45db_chip,
2967 }
2968 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002969 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10002970 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002971 /* granularity will be set by the probing function. */
2972 .write = spi_write_at45db,
2973 .read = spi_read_at45db, /* Fast read (0x0B) supported */
2974 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
2975 },
2976
2977 {
2978 .vendor = "Atmel",
2979 .name = "AT45DB321E",
2980 .bustype = BUS_SPI,
2981 .manufacture_id = ATMEL_ID,
2982 .model_id = ATMEL_AT45DB321C,
Alan Greencbb85c02019-06-25 13:42:34 +10002983 .total_size = 4096, /* or 4224, determined from status register */
2984 .page_size = 512, /* or 528, determined from status register */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002985 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
2986 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2987 .feature_bits = FEATURE_OTP,
2988 .tested = TEST_UNTESTED,
2989 .probe = probe_spi_at45db,
2990 .probe_timing = TIMING_ZERO,
2991 .block_erasers =
2992 {
2993 {
2994 .eraseblocks = { {512, 8192} },
2995 .block_erase = spi_erase_at45db_page,
2996 }, {
2997 .eraseblocks = { {8 * 512, 8192/8} },
2998 .block_erase = spi_erase_at45db_block,
2999 }, {
3000 .eraseblocks = {
3001 {8 * 512, 1},
3002 {120 * 512, 1},
3003 {128 * 512, 63},
3004 },
3005 .block_erase = spi_erase_at45db_sector
3006 }, {
3007 .eraseblocks = { {4096 * 1024, 1} },
3008 .block_erase = spi_erase_at45db_chip,
3009 }
3010 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003011 .printlock = spi_prettyprint_status_register_at45db, /* has a 2nd status register */
Alan Greenc1863ca2019-06-27 15:08:03 +10003012 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003013 /* granularity will be set by the probing function. */
3014 .write = spi_write_at45db,
3015 .read = spi_read_at45db, /* Fast read (0x0B) supported */
3016 .voltage = {2500, 3600}, /* 2.3-3.6V & 2.5-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00003017 },
FENG yu ningff692fb2008-12-08 18:15:10 +00003018
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003019 {
3020 .vendor = "Atmel",
3021 .name = "AT45DB642D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003022 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003023 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003024 .model_id = ATMEL_AT45DB642D,
Alan Greencbb85c02019-06-25 13:42:34 +10003025 .total_size = 8192, /* or 8448, determined from status register */
3026 .page_size = 1024, /* or 1056, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00003027 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003028 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
3029 .feature_bits = FEATURE_OTP,
Stefan Tauner5c316f92015-02-08 21:57:52 +00003030 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003031 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003032 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003033 .block_erasers =
3034 {
3035 {
3036 .eraseblocks = { {1024, 8192} },
3037 .block_erase = spi_erase_at45db_page,
3038 }, {
3039 .eraseblocks = { {8 * 1024, 8192/8} },
3040 .block_erase = spi_erase_at45db_block,
3041 }, {
3042 .eraseblocks = {
3043 {8 * 1024, 1},
3044 {248 * 1024, 1},
3045 {256 * 1024, 31},
3046 },
3047 .block_erase = spi_erase_at45db_sector
3048 }, {
3049 .eraseblocks = { {8192 * 1024, 1} },
3050 .block_erase = spi_erase_at45db_chip,
3051 }
3052 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003053 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10003054 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003055 /* granularity will be set by the probing function. */
3056 .write = spi_write_at45db,
3057 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003058 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00003059 },
FENG yu ningff692fb2008-12-08 18:15:10 +00003060
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003061 {
3062 .vendor = "Atmel",
Alan Green1f9cc7d2019-07-01 11:10:45 +10003063 .name = "AT49(H)F010",
3064 .bustype = BUS_PARALLEL,
3065 .manufacture_id = ATMEL_ID,
3066 .model_id = ATMEL_AT49F010,
3067 .total_size = 128,
3068 .page_size = 0, /* unused */
3069 .feature_bits = FEATURE_EITHER_RESET,
3070 .tested = TEST_OK_PREW,
3071 .probe = probe_jedec,
3072 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3073 .block_erasers =
3074 {
3075 {
3076 .eraseblocks = { {128 * 1024, 1} },
3077 .block_erase = erase_chip_block_jedec,
3078 }
3079 },
3080 .printlock = printlock_at49f,
3081 .write = write_jedec_1,
3082 .read = read_memmapped,
3083 .voltage = {4500, 5500},
3084 },
3085
3086 {
3087 .vendor = "Atmel",
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003088 .name = "AT49BV512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003089 .bustype = BUS_PARALLEL,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003090 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003091 .model_id = ATMEL_AT49BV512,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003092 .total_size = 64,
3093 .page_size = 64,
Sean Nelson35727f72010-01-28 23:55:12 +00003094 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +00003095 .tested = TEST_OK_PREW,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003096 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003097 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00003098 .block_erasers =
3099 {
3100 {
3101 .eraseblocks = { {64 * 1024, 1} },
3102 .block_erase = erase_chip_block_jedec,
3103 }
3104 },
Sean Nelson35727f72010-01-28 23:55:12 +00003105 .write = write_jedec_1,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003106 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003107 .voltage = {2700, 3600},
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003108 },
3109
3110 {
3111 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003112 .name = "AT49F002(N)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003113 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003114 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003115 .model_id = ATMEL_AT49F002N,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003116 .total_size = 256,
3117 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00003118 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003119 .tested = TEST_UNTESTED,
3120 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003121 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00003122 .block_erasers =
3123 {
3124 {
3125 .eraseblocks = {
3126 {16 * 1024, 1},
3127 {8 * 1024, 2},
3128 {96 * 1024, 1},
3129 {128 * 1024, 1},
3130 },
3131 .block_erase = erase_sector_jedec,
3132 }, {
3133 .eraseblocks = { {256 * 1024, 1} },
3134 .block_erase = erase_chip_block_jedec,
3135 }
3136 },
Sean Nelson35727f72010-01-28 23:55:12 +00003137 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003138 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003139 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003140 },
3141
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003142 {
3143 .vendor = "Atmel",
3144 .name = "AT49F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003145 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003146 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003147 .model_id = ATMEL_AT49F002NT,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003148 .total_size = 256,
3149 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00003150 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003151 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003152 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003153 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00003154 .block_erasers =
3155 {
3156 {
3157 .eraseblocks = {
3158 {128 * 1024, 1},
3159 {96 * 1024, 1},
3160 {8 * 1024, 2},
3161 {16 * 1024, 1},
3162 },
3163 .block_erase = erase_sector_jedec,
3164 }, {
3165 .eraseblocks = { {256 * 1024, 1} },
3166 .block_erase = erase_chip_block_jedec,
3167 }
3168 },
Sean Nelson35727f72010-01-28 23:55:12 +00003169 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003170 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003171 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003172 },
3173
Daniel Lenskidf90d3a2010-07-22 11:44:38 +00003174 {
Uwe Hermannc74e9772011-09-08 19:55:18 +00003175 .vendor = "Atmel",
David Borgf5a30f62012-04-15 13:16:32 +00003176 .name = "AT49F020",
3177 .bustype = BUS_PARALLEL,
3178 .manufacture_id = ATMEL_ID,
3179 .model_id = ATMEL_AT49F020,
3180 .total_size = 256,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00003181 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00003182 .feature_bits = FEATURE_EITHER_RESET,
3183 .tested = TEST_OK_PRE,
3184 .probe = probe_jedec,
3185 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3186 .block_erasers =
3187 {
3188 {
3189 .eraseblocks = { {256 * 1024, 1} },
3190 .block_erase = erase_chip_block_jedec,
3191 }
3192 /* Chip features an optional permanent write protection
3193 * of the first 8 kB. The erase function is the same as
3194 * above, but 00000H to 01FFFH will not be erased.
3195 * FIXME: add another eraser when partial erasers are
3196 * supported.
3197 */
3198 },
3199 .printlock = printlock_at49f,
3200 .write = write_jedec_1,
3201 .read = read_memmapped,
3202 .voltage = {4500, 5500},
3203 },
3204
3205 {
3206 .vendor = "Atmel",
3207 .name = "AT49F040",
3208 .bustype = BUS_PARALLEL,
3209 .manufacture_id = ATMEL_ID,
3210 .model_id = ATMEL_AT49F040,
3211 .total_size = 512,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00003212 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00003213 .feature_bits = FEATURE_EITHER_RESET,
3214 .tested = TEST_UNTESTED,
3215 .probe = probe_jedec,
3216 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3217 .block_erasers =
3218 {
3219 {
3220 .eraseblocks = { {512 * 1024, 1} },
3221 .block_erase = erase_chip_block_jedec,
3222 }
3223 /* Chip features an optional permanent write protection
3224 * of the first 16 kB. The erase function is the same as
3225 * above, but 00000H to 03FFFH will not be erased.
3226 * FIXME: add another eraser when partial erasers are
3227 * supported.
3228 */
3229 },
3230 .printlock = printlock_at49f,
3231 .write = write_jedec_1,
3232 .read = read_memmapped,
3233 .voltage = {4500, 5500},
3234 },
3235
3236 {
3237 .vendor = "Atmel",
Andrew Morgan8dd97f92012-08-13 23:43:46 +00003238 .name = "AT49F080",
3239 .bustype = BUS_PARALLEL,
3240 .manufacture_id = ATMEL_ID,
3241 .model_id = ATMEL_AT49F080,
3242 .total_size = 1024,
3243 .page_size = 0, /* unused */
3244 .feature_bits = FEATURE_EITHER_RESET,
3245 .tested = TEST_UNTESTED,
3246 .probe = probe_jedec,
3247 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3248 .block_erasers =
3249 {
3250 {
3251 .eraseblocks = { {1024 * 1024, 1} },
3252 .block_erase = erase_chip_block_jedec,
3253 }
3254 /* Chip features an optional permanent write protection
3255 * of the first 16 kB. The erase function is the same as
3256 * above, but 00000H to 03FFFH will not be erased.
3257 * FIXME: add another eraser when partial erasers are
3258 * supported.
3259 */
3260 },
3261 .printlock = printlock_at49f,
3262 .write = write_jedec_1,
3263 .read = read_memmapped,
3264 .voltage = {4500, 5500},
3265 },
3266
3267 {
3268 /* 'top' version of AT49F080. equal in all aspects but the boot block address */
3269 .vendor = "Atmel",
3270 .name = "AT49F080T",
3271 .bustype = BUS_PARALLEL,
3272 .manufacture_id = ATMEL_ID,
3273 .model_id = ATMEL_AT49F080T,
3274 .total_size = 1024,
3275 .page_size = 0, /* unused */
3276 .feature_bits = FEATURE_EITHER_RESET,
3277 .tested = TEST_UNTESTED,
3278 .probe = probe_jedec,
3279 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3280 .block_erasers =
3281 {
3282 {
3283 .eraseblocks = { {1024 * 1024, 1} },
3284 .block_erase = erase_chip_block_jedec,
3285 }
3286 /* Chip features an optional permanent write protection
3287 * of the first 16 kB. The erase function is the same as
3288 * above, but FC000H to FFFFFH will not be erased.
3289 * FIXME: add another eraser when partial erasers are
3290 * supported.
3291 */
3292 },
3293 .printlock = printlock_at49f,
3294 .write = write_jedec_1,
3295 .read = read_memmapped,
3296 .voltage = {4500, 5500},
3297 },
3298
3299 {
3300 .vendor = "Atmel",
Uwe Hermannc74e9772011-09-08 19:55:18 +00003301 .name = "AT49LH002",
3302 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
3303 .manufacture_id = ATMEL_ID,
3304 .model_id = ATMEL_AT49LH002,
3305 .total_size = 256,
3306 .page_size = 0, /* unused */
Stefan Tauner7de93932014-08-03 13:05:45 +00003307 .feature_bits = FEATURE_REGISTERMAP,
Uwe Hermannc74e9772011-09-08 19:55:18 +00003308 .tested = TEST_UNTESTED,
Stefan Tauner7de93932014-08-03 13:05:45 +00003309 .probe = probe_82802ab,
3310 .probe_timing = TIMING_ZERO,
Uwe Hermannc74e9772011-09-08 19:55:18 +00003311 .block_erasers =
3312 {
3313 {
3314 .eraseblocks = {
3315 {64 * 1024, 3},
3316 {32 * 1024, 1},
3317 {8 * 1024, 2},
3318 {16 * 1024, 1},
3319 },
Stefan Tauner7de93932014-08-03 13:05:45 +00003320 .block_erase = NULL, /* TODO: Implement. */
Uwe Hermannc74e9772011-09-08 19:55:18 +00003321 }, {
3322 .eraseblocks = {
3323 {64 * 1024, 4},
3324 },
Stefan Tauner7de93932014-08-03 13:05:45 +00003325 .block_erase = erase_block_82802ab,
3326 },
3327 },
3328 .printlock = printlock_regspace2_block_eraser_0,
3329 .unlock = unlock_regspace2_block_eraser_0,
3330 .write = write_82802ab,
3331 .read = read_memmapped,
3332 .voltage = {3000, 3600},
3333 },
3334
3335 {
3336 .vendor = "Atmel",
Stefan Tauner7de93932014-08-03 13:05:45 +00003337 .name = "AT49LH004",
3338 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
3339 .manufacture_id = ATMEL_ID,
3340 .model_id = ATMEL_AT49LH004,
3341 .total_size = 512,
3342 .page_size = 0, /* unused */
3343 .feature_bits = FEATURE_REGISTERMAP,
3344 .tested = TEST_UNTESTED,
3345 .probe = probe_82802ab,
3346 .probe_timing = TIMING_ZERO,
3347 .block_erasers =
3348 {
3349 {
3350 .eraseblocks = {
3351 {64 * 1024, 7},
3352 {32 * 1024, 1},
3353 {8 * 1024, 2},
3354 {16 * 1024, 1},
3355 },
3356 .block_erase = erase_block_82802ab,
3357 }, {
3358 .eraseblocks = {
3359 {64 * 1024, 8},
3360 },
Uwe Hermannc74e9772011-09-08 19:55:18 +00003361 .block_erase = NULL, /* TODO: Implement. */
3362 },
3363 },
Stefan Tauner7de93932014-08-03 13:05:45 +00003364 .printlock = printlock_regspace2_block_eraser_0,
3365 .unlock = unlock_regspace2_block_eraser_0,
Uwe Hermannc74e9772011-09-08 19:55:18 +00003366 .write = write_82802ab,
3367 .read = read_memmapped,
3368 .voltage = {3000, 3600},
3369 },
3370
3371 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003372 .vendor = "Atmel",
3373 .name = "AT49LH00B4",
3374 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
3375 .manufacture_id = ATMEL_ID,
3376 .model_id = ATMEL_AT49LH00B4,
3377 .total_size = 512,
Andrew Morganca081462011-09-13 22:05:44 +00003378 .page_size = 0, /* unused */
Alan Green1f9cc7d2019-07-01 11:10:45 +10003379 .feature_bits = FEATURE_REGISTERMAP,
3380 .tested = TEST_UNTESTED,
3381 .probe = probe_82802ab,
Andrew Morganca081462011-09-13 22:05:44 +00003382 .probe_timing = TIMING_ZERO,
3383 .block_erasers =
3384 {
3385 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003386 .eraseblocks = {
3387 {8 * 1024, 2},
3388 {16 * 1024, 1},
3389 {32 * 1024, 1},
3390 {64 * 1024, 7},
3391 },
3392 .block_erase = NULL, /* TODO: Implement. */
3393 }, {
3394 .eraseblocks = {
3395 {64 * 1024, 8},
3396 },
3397 .block_erase = erase_block_82802ab,
Andrew Morganca081462011-09-13 22:05:44 +00003398 },
3399 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10003400 .printlock = printlock_regspace2_block_eraser_0,
3401 .unlock = unlock_regspace2_block_eraser_0,
3402 .write = write_82802ab,
Andrew Morganca081462011-09-13 22:05:44 +00003403 .read = read_memmapped,
Alan Green1f9cc7d2019-07-01 11:10:45 +10003404 .voltage = {3000, 3600},
Andrew Morganca081462011-09-13 22:05:44 +00003405 },
3406
3407 {
Joshua Roysf1324e02010-09-16 00:51:51 +00003408 .vendor = "Bright",
3409 .name = "BM29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003410 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00003411 .manufacture_id = BRIGHT_ID,
3412 .model_id = BRIGHT_BM29F040,
3413 .total_size = 512,
3414 .page_size = 64 * 1024,
3415 .feature_bits = FEATURE_EITHER_RESET,
3416 .tested = TEST_OK_PR,
3417 .probe = probe_jedec,
3418 .probe_timing = TIMING_ZERO,
3419 .block_erasers =
3420 {
3421 {
3422 .eraseblocks = { {64 * 1024, 8} },
3423 .block_erase = erase_sector_jedec,
3424 }, {
3425 .eraseblocks = { {512 * 1024, 1} },
3426 .block_erase = erase_chip_block_jedec,
3427 },
3428 },
3429 .write = write_jedec_1,
3430 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003431 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00003432 },
3433
3434 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003435 .vendor = "Catalyst",
3436 .name = "CAT28F512",
3437 .bustype = BUS_PARALLEL,
3438 .manufacture_id = CATALYST_ID,
3439 .model_id = CATALYST_CAT28F512,
3440 .total_size = 64,
3441 .page_size = 0, /* unused */
3442 .feature_bits = 0,
Alan Green908adf42019-07-03 15:34:06 +10003443 .tested = {.probe = OK, .read = OK, .erase = BAD, .write = BAD},
Alan Green1f9cc7d2019-07-01 11:10:45 +10003444 .probe = probe_jedec, /* FIXME! */
3445 .probe_timing = TIMING_ZERO,
3446 .block_erasers =
3447 {
3448 {
3449 .eraseblocks = { {64 * 1024, 1} },
3450 .block_erase = NULL, /* TODO */
3451 },
3452 },
3453 .write = NULL, /* TODO */
3454 .read = read_memmapped,
3455 .voltage = {4500, 5500},
3456 },
3457
3458 {
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003459 .vendor = "ENE",
3460 .name = "KB9012 (EDI)",
3461 .bustype = BUS_SPI,
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003462 .total_size = 128,
3463 .page_size = 128,
3464 .feature_bits = FEATURE_ERASED_ZERO,
3465 .tested = TEST_OK_PREW,
Alan Greenc1863ca2019-06-27 15:08:03 +10003466 .spi_cmd_set = SPI_EDI,
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003467 .probe = edi_probe_kb9012,
3468 .probe_timing = TIMING_ZERO,
3469 .block_erasers =
3470 {
3471 {
3472 .eraseblocks = { {128, 1024} },
3473 .block_erase = edi_chip_block_erase,
3474 },
3475 },
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003476 .write = edi_chip_write,
3477 .read = edi_chip_read,
3478 .voltage = {2700, 3600},
Alan Greenc1863ca2019-06-27 15:08:03 +10003479 .gran = write_gran_128bytes,
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003480 },
3481
3482 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003483 .vendor = "ESI",
3484 .name = "ES25P16",
3485 .bustype = BUS_SPI,
3486 .manufacture_id = EXCEL_ID_NOPREFIX,
3487 .model_id = EXCEL_ES25P16,
3488 .total_size = 2 * 1024,
3489 .page_size = 256,
3490 /* 256-byte parameter page separate from memory array:
3491 * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
3492 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003493 .tested = TEST_UNTESTED,
Alan Green1f9cc7d2019-07-01 11:10:45 +10003494 .probe = probe_spi_rdid,
3495 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003496 .block_erasers =
3497 {
3498 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003499 .eraseblocks = { {64 * 1024, 32} },
3500 .block_erase = spi_block_erase_d8,
Sean Nelson54596372010-01-09 05:30:14 +00003501 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003502 .eraseblocks = { {2 * 1024 * 1024, 1} },
3503 .block_erase = spi_block_erase_c7,
Sean Nelson54596372010-01-09 05:30:14 +00003504 }
3505 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10003506 .printlock = spi_prettyprint_status_register_bp2_srwd,
3507 .unlock = spi_disable_blockprotect_bp2_srwd,
3508 .write = spi_chip_write_256,
3509 .read = spi_chip_read, /* Fast Read (0x0B) supported */
3510 .voltage = {2700, 3600},
3511 },
3512
3513 {
3514 .vendor = "ESI",
3515 .name = "ES25P40",
3516 .bustype = BUS_SPI,
3517 .manufacture_id = EXCEL_ID_NOPREFIX,
3518 .model_id = EXCEL_ES25P40,
3519 .total_size = 512,
3520 .page_size = 256,
3521 /* 256-byte parameter page separate from memory array:
3522 * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
3523 .feature_bits = FEATURE_WRSR_WREN,
3524 .tested = TEST_UNTESTED,
3525 .probe = probe_spi_rdid,
3526 .probe_timing = TIMING_ZERO,
3527 .block_erasers =
3528 {
3529 {
3530 .eraseblocks = { {64 * 1024, 8} },
3531 .block_erase = spi_block_erase_d8,
3532 }, {
3533 .eraseblocks = { {512 * 1024, 1} },
3534 .block_erase = spi_block_erase_c7,
3535 }
3536 },
3537 .printlock = spi_prettyprint_status_register_bp2_srwd,
3538 .unlock = spi_disable_blockprotect_bp2_srwd,
3539 .write = spi_chip_write_256,
3540 .read = spi_chip_read, /* Fast Read (0x0B) supported */
3541 .voltage = {2700, 3600},
3542 },
3543
3544 {
3545 .vendor = "ESI",
3546 .name = "ES25P80",
3547 .bustype = BUS_SPI,
3548 .manufacture_id = EXCEL_ID_NOPREFIX,
3549 .model_id = EXCEL_ES25P80,
3550 .total_size = 1024,
3551 .page_size = 256,
3552 /* 256-byte parameter page separate from memory array:
3553 * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
3554 .feature_bits = FEATURE_WRSR_WREN,
3555 .tested = TEST_UNTESTED,
3556 .probe = probe_spi_rdid,
3557 .probe_timing = TIMING_ZERO,
3558 .block_erasers =
3559 {
3560 {
3561 .eraseblocks = { {64 * 1024, 16} },
3562 .block_erase = spi_block_erase_d8,
3563 }, {
3564 .eraseblocks = { {1024 * 1024, 1} },
3565 .block_erase = spi_block_erase_c7,
3566 }
3567 },
3568 .printlock = spi_prettyprint_status_register_bp2_srwd,
3569 .unlock = spi_disable_blockprotect_bp2_srwd,
3570 .write = spi_chip_write_256,
3571 .read = spi_chip_read, /* Fast Read (0x0B) supported */
3572 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00003573 },
3574
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003575 {
Stefan Tauner352e50b2013-02-22 15:58:45 +00003576 .vendor = "ESMT",
Michael Karcher80a59ea2010-06-19 22:06:35 +00003577 .name = "F25L008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003578 .bustype = BUS_SPI,
Stefan Tauner352e50b2013-02-22 15:58:45 +00003579 .manufacture_id = ESMT_ID,
3580 .model_id = ESMT_F25L008A,
Michael Karcher80a59ea2010-06-19 22:06:35 +00003581 .total_size = 1024,
3582 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003583 .feature_bits = FEATURE_WRSR_EITHER,
Stefan Taunereb582572012-09-21 12:52:50 +00003584 .tested = TEST_OK_PREW,
Michael Karcher80a59ea2010-06-19 22:06:35 +00003585 .probe = probe_spi_rdid,
3586 .probe_timing = TIMING_ZERO,
3587 .block_erasers =
3588 {
3589 {
3590 .eraseblocks = { {4 * 1024, 256} },
3591 .block_erase = spi_block_erase_20,
3592 }, {
3593 .eraseblocks = { {64 * 1024, 16} },
3594 .block_erase = spi_block_erase_d8,
3595 }, {
3596 .eraseblocks = { {1024 * 1024, 1} },
3597 .block_erase = spi_block_erase_60,
3598 }, {
3599 .eraseblocks = { {1024 * 1024, 1} },
3600 .block_erase = spi_block_erase_c7,
3601 }
3602 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003603 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003604 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger9a795d82010-07-14 16:19:05 +00003605 .write = spi_chip_write_1,
Michael Karcher4497e862010-07-10 19:34:15 +00003606 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003607 .voltage = {2700, 3600},
Michael Karcher80a59ea2010-06-19 22:06:35 +00003608 },
3609
3610 {
Stefan Tauner85f09f72014-05-27 21:27:14 +00003611 .vendor = "ESMT",
3612 .name = "F25L32PA",
3613 .bustype = BUS_SPI,
3614 .manufacture_id = ESMT_ID,
3615 .model_id = ESMT_F25L32PA,
3616 .total_size = 4096,
3617 .page_size = 256,
3618 .feature_bits = FEATURE_WRSR_EITHER | FEATURE_OTP,
3619 .tested = TEST_UNTESTED,
3620 .probe = probe_spi_rdid,
3621 .probe_timing = TIMING_ZERO,
3622 .block_erasers =
3623 {
3624 {
3625 .eraseblocks = { {4 * 1024, 1024} },
3626 .block_erase = spi_block_erase_20,
3627 }, {
3628 .eraseblocks = { {64 * 1024, 64} },
3629 .block_erase = spi_block_erase_d8,
3630 }, {
3631 .eraseblocks = { {4 * 1024 * 1024, 1} },
3632 .block_erase = spi_block_erase_60,
3633 }, {
3634 .eraseblocks = { {4 * 1024 * 1024, 1} },
3635 .block_erase = spi_block_erase_c7,
3636 }
3637 },
3638 .printlock = spi_prettyprint_status_register_bp2_bpl,
3639 .unlock = spi_disable_blockprotect,
3640 .write = spi_chip_write_256,
3641 .read = spi_chip_read,
3642 .voltage = {2700, 3600},
3643 },
3644
3645 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003646 .vendor = "ESMT",
3647 .name = "F49B002UA",
3648 .bustype = BUS_PARALLEL,
3649 .manufacture_id = ESMT_ID,
3650 .model_id = ESMT_F49B002UA,
3651 .total_size = 256,
3652 .page_size = 4096,
3653 .feature_bits = FEATURE_EITHER_RESET,
3654 .tested = TEST_UNTESTED,
3655 .probe = probe_jedec,
3656 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3657 .block_erasers =
3658 {
3659 {
3660 .eraseblocks = {
3661 {128 * 1024, 1},
3662 {96 * 1024, 1},
3663 {8 * 1024, 2},
3664 {16 * 1024, 1},
3665 },
3666 .block_erase = erase_sector_jedec,
3667 }, {
3668 .eraseblocks = { {256 * 1024, 1} },
3669 .block_erase = erase_chip_block_jedec,
3670 }
3671 },
3672 .write = write_jedec_1,
3673 .read = read_memmapped,
3674 .voltage = {4500, 5500},
3675 },
3676
3677 {
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003678 .vendor = "Eon",
3679 .name = "EN25B05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003680 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003681 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003682 .model_id = EON_EN25B05,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003683 .total_size = 64,
3684 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003685 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003686 .tested = TEST_UNTESTED,
3687 .probe = probe_spi_rdid,
3688 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003689 .block_erasers =
3690 {
3691 {
3692 .eraseblocks = {
3693 {4 * 1024, 2},
3694 {8 * 1024, 1},
3695 {16 * 1024, 1},
3696 {32 * 1024, 1},
3697 },
3698 .block_erase = spi_block_erase_d8,
3699 }, {
3700 .eraseblocks = { {64 * 1024, 1} },
3701 .block_erase = spi_block_erase_c7,
3702 }
3703 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003704 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003705 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003706 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003707 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003708 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003709 },
3710
3711 {
3712 .vendor = "Eon",
3713 .name = "EN25B05T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003714 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003715 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003716 .model_id = EON_EN25B05,
Sean Nelson54596372010-01-09 05:30:14 +00003717 .total_size = 64,
3718 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003719 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003720 .tested = TEST_UNTESTED,
3721 .probe = probe_spi_rdid,
3722 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003723 .block_erasers =
3724 {
3725 {
3726 .eraseblocks = {
3727 {32 * 1024, 1},
3728 {16 * 1024, 1},
3729 {8 * 1024, 1},
3730 {4 * 1024, 2},
3731 },
3732 .block_erase = spi_block_erase_d8,
3733 }, {
3734 .eraseblocks = { {64 * 1024, 1} },
3735 .block_erase = spi_block_erase_c7,
3736 }
3737 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003738 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003739 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003740 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003741 .read = spi_chip_read, /* Fast read (0x0B) supported */
3742 .voltage = {2700, 3600},
3743 },
3744
3745 {
3746 .vendor = "Eon",
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003747 .name = "EN25B10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003748 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003749 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003750 .model_id = EON_EN25B10,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003751 .total_size = 128,
3752 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003753 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003754 .tested = TEST_UNTESTED,
3755 .probe = probe_spi_rdid,
3756 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003757 .block_erasers =
3758 {
3759 {
3760 .eraseblocks = {
3761 {4 * 1024, 2},
3762 {8 * 1024, 1},
3763 {16 * 1024, 1},
3764 {32 * 1024, 3},
3765 },
3766 .block_erase = spi_block_erase_d8,
3767 }, {
3768 .eraseblocks = { {128 * 1024, 1} },
3769 .block_erase = spi_block_erase_c7,
3770 }
3771 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003772 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003773 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003774 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003775 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003776 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003777 },
3778
3779 {
3780 .vendor = "Eon",
3781 .name = "EN25B10T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003782 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003783 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003784 .model_id = EON_EN25B10,
Sean Nelson54596372010-01-09 05:30:14 +00003785 .total_size = 128,
3786 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003787 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00003788 .tested = TEST_OK_PREW,
Sean Nelson54596372010-01-09 05:30:14 +00003789 .probe = probe_spi_rdid,
3790 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003791 .block_erasers =
3792 {
3793 {
3794 .eraseblocks = {
3795 {32 * 1024, 3},
3796 {16 * 1024, 1},
3797 {8 * 1024, 1},
3798 {4 * 1024, 2},
3799 },
3800 .block_erase = spi_block_erase_d8,
3801 }, {
3802 .eraseblocks = { {128 * 1024, 1} },
3803 .block_erase = spi_block_erase_c7,
3804 }
3805 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003806 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003807 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003808 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003809 .read = spi_chip_read, /* Fast read (0x0B) supported */
3810 .voltage = {2700, 3600},
3811 },
3812
3813 {
3814 .vendor = "Eon",
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003815 .name = "EN25B16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003816 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003817 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003818 .model_id = EON_EN25B16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003819 .total_size = 2048,
3820 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003821 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003822 .tested = TEST_UNTESTED,
3823 .probe = probe_spi_rdid,
3824 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003825 .block_erasers =
3826 {
3827 {
3828 .eraseblocks = {
3829 {4 * 1024, 2},
3830 {8 * 1024, 1},
3831 {16 * 1024, 1},
3832 {32 * 1024, 1},
3833 {64 * 1024, 31},
3834 },
3835 .block_erase = spi_block_erase_d8,
3836 }, {
3837 .eraseblocks = { {2 * 1024 * 1024, 1} },
3838 .block_erase = spi_block_erase_c7,
3839 }
3840 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003841 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003842 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003843 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003844 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003845 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003846 },
3847
3848 {
3849 .vendor = "Eon",
3850 .name = "EN25B16T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003851 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003852 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003853 .model_id = EON_EN25B16,
Sean Nelson54596372010-01-09 05:30:14 +00003854 .total_size = 2048,
3855 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003856 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003857 .tested = TEST_UNTESTED,
3858 .probe = probe_spi_rdid,
3859 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003860 .block_erasers =
3861 {
3862 {
3863 .eraseblocks = {
3864 {64 * 1024, 31},
3865 {32 * 1024, 1},
3866 {16 * 1024, 1},
3867 {8 * 1024, 1},
3868 {4 * 1024, 2},
3869 },
3870 .block_erase = spi_block_erase_d8,
3871 }, {
3872 .eraseblocks = { {2 * 1024 * 1024, 1} },
3873 .block_erase = spi_block_erase_c7,
3874 }
3875 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003876 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003877 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003878 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003879 .read = spi_chip_read, /* Fast read (0x0B) supported */
3880 .voltage = {2700, 3600},
3881 },
3882
3883 {
3884 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10003885 .name = "EN25B20",
Stefan Taunerb175af52015-01-24 15:06:27 +00003886 .bustype = BUS_SPI,
3887 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10003888 .model_id = EON_EN25B20,
3889 .total_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003890 .page_size = 256,
3891 .feature_bits = FEATURE_WRSR_WREN,
3892 .tested = TEST_UNTESTED,
3893 .probe = probe_spi_rdid,
3894 .probe_timing = TIMING_ZERO,
3895 .block_erasers =
3896 {
3897 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003898 .eraseblocks = {
3899 {4 * 1024, 2},
3900 {8 * 1024, 1},
3901 {16 * 1024, 1},
3902 {32 * 1024, 1},
3903 {64 * 1024, 3}
3904 },
Stefan Taunerb175af52015-01-24 15:06:27 +00003905 .block_erase = spi_block_erase_d8,
3906 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003907 .eraseblocks = { {256 * 1024, 1} },
3908 .block_erase = spi_block_erase_c7,
3909 }
3910 },
3911 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
3912 .unlock = spi_disable_blockprotect,
3913 .write = spi_chip_write_256,
3914 .read = spi_chip_read, /* Fast read (0x0B) supported */
3915 .voltage = {2700, 3600},
3916 },
3917
3918 {
3919 .vendor = "Eon",
3920 .name = "EN25B20T",
3921 .bustype = BUS_SPI,
3922 .manufacture_id = EON_ID_NOPREFIX,
3923 .model_id = EON_EN25B20,
3924 .total_size = 256,
3925 .page_size = 256,
3926 .feature_bits = FEATURE_WRSR_WREN,
3927 .tested = TEST_UNTESTED,
3928 .probe = probe_spi_rdid,
3929 .probe_timing = TIMING_ZERO,
3930 .block_erasers =
3931 {
3932 {
3933 .eraseblocks = {
3934 {64 * 1024, 3},
3935 {32 * 1024, 1},
3936 {16 * 1024, 1},
3937 {8 * 1024, 1},
3938 {4 * 1024, 2},
3939 },
3940 .block_erase = spi_block_erase_d8,
3941 }, {
3942 .eraseblocks = { {256 * 1024, 1} },
Stefan Taunerb175af52015-01-24 15:06:27 +00003943 .block_erase = spi_block_erase_c7,
3944 }
3945 },
3946 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
3947 .unlock = spi_disable_blockprotect,
3948 .write = spi_chip_write_256,
3949 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003950 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003951 },
3952
3953 {
3954 .vendor = "Eon",
3955 .name = "EN25B32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003956 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003957 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003958 .model_id = EON_EN25B32,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003959 .total_size = 4096,
3960 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003961 /* OTP: 512B total; enter 0x3A */
3962 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003963 .tested = TEST_UNTESTED,
3964 .probe = probe_spi_rdid,
3965 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003966 .block_erasers =
3967 {
3968 {
3969 .eraseblocks = {
3970 {4 * 1024, 2},
3971 {8 * 1024, 1},
3972 {16 * 1024, 1},
3973 {32 * 1024, 1},
3974 {64 * 1024, 63},
3975 },
3976 .block_erase = spi_block_erase_d8,
3977 }, {
3978 .eraseblocks = { {4 * 1024 * 1024, 1} },
3979 .block_erase = spi_block_erase_c7,
3980 }
3981 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003982 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003983 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003984 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003985 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003986 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003987 },
3988
3989 {
3990 .vendor = "Eon",
3991 .name = "EN25B32T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003992 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003993 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003994 .model_id = EON_EN25B32,
Sean Nelson54596372010-01-09 05:30:14 +00003995 .total_size = 4096,
3996 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003997 /* OTP: 512B total; enter 0x3A */
3998 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Sean Nelson54596372010-01-09 05:30:14 +00003999 .tested = TEST_UNTESTED,
4000 .probe = probe_spi_rdid,
4001 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004002 .block_erasers =
4003 {
4004 {
4005 .eraseblocks = {
4006 {64 * 1024, 63},
4007 {32 * 1024, 1},
4008 {16 * 1024, 1},
4009 {8 * 1024, 1},
4010 {4 * 1024, 2},
4011 },
4012 .block_erase = spi_block_erase_d8,
4013 }, {
4014 .eraseblocks = { {4 * 1024 * 1024, 1} },
4015 .block_erase = spi_block_erase_c7,
4016 }
4017 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004018 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004019 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004020 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004021 .read = spi_chip_read, /* Fast read (0x0B) supported */
4022 .voltage = {2700, 3600},
4023 },
4024
4025 {
4026 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004027 .name = "EN25B40",
Stefan Taunerb175af52015-01-24 15:06:27 +00004028 .bustype = BUS_SPI,
4029 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004030 .model_id = EON_EN25B40,
4031 .total_size = 512,
Stefan Taunerb175af52015-01-24 15:06:27 +00004032 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004033 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerb175af52015-01-24 15:06:27 +00004034 .tested = TEST_UNTESTED,
4035 .probe = probe_spi_rdid,
4036 .probe_timing = TIMING_ZERO,
4037 .block_erasers =
4038 {
4039 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004040 .eraseblocks = {
4041 {4 * 1024, 2},
4042 {8 * 1024, 1},
4043 {16 * 1024, 1},
4044 {32 * 1024, 1},
4045 {64 * 1024, 7}
4046 },
Stefan Taunerb175af52015-01-24 15:06:27 +00004047 .block_erase = spi_block_erase_d8,
4048 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004049 .eraseblocks = { {512 * 1024, 1} },
4050 .block_erase = spi_block_erase_c7,
4051 }
4052 },
4053 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4054 .unlock = spi_disable_blockprotect,
4055 .write = spi_chip_write_256,
4056 .read = spi_chip_read, /* Fast read (0x0B) supported */
4057 .voltage = {2700, 3600},
4058 },
4059
4060 {
4061 .vendor = "Eon",
4062 .name = "EN25B40T",
4063 .bustype = BUS_SPI,
4064 .manufacture_id = EON_ID_NOPREFIX,
4065 .model_id = EON_EN25B40,
4066 .total_size = 512,
4067 .page_size = 256,
4068 .feature_bits = FEATURE_WRSR_WREN,
4069 .tested = TEST_UNTESTED,
4070 .probe = probe_spi_rdid,
4071 .probe_timing = TIMING_ZERO,
4072 .block_erasers =
4073 {
4074 {
4075 .eraseblocks = {
4076 {64 * 1024, 7},
4077 {32 * 1024, 1},
4078 {16 * 1024, 1},
4079 {8 * 1024, 1},
4080 {4 * 1024, 2},
4081 },
4082 .block_erase = spi_block_erase_d8,
4083 }, {
4084 .eraseblocks = { {512 * 1024, 1} },
Stefan Taunerb175af52015-01-24 15:06:27 +00004085 .block_erase = spi_block_erase_c7,
4086 }
4087 },
4088 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4089 .unlock = spi_disable_blockprotect,
4090 .write = spi_chip_write_256,
4091 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004092 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004093 },
4094
4095 {
4096 .vendor = "Eon",
4097 .name = "EN25B64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004098 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004099 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004100 .model_id = EON_EN25B64,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004101 .total_size = 8192,
4102 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004103 /* OTP: 512B total; enter 0x3A */
4104 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004105 .tested = TEST_UNTESTED,
4106 .probe = probe_spi_rdid,
4107 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004108 .block_erasers =
4109 {
4110 {
4111 .eraseblocks = {
4112 {4 * 1024, 2},
4113 {8 * 1024, 1},
4114 {16 * 1024, 1},
4115 {32 * 1024, 1},
4116 {64 * 1024, 127},
4117 },
4118 .block_erase = spi_block_erase_d8,
4119 }, {
4120 .eraseblocks = { {8 * 1024 * 1024, 1} },
4121 .block_erase = spi_block_erase_c7,
4122 }
4123 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004124 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004125 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00004126 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004127 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004128 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00004129 },
4130
4131 {
4132 .vendor = "Eon",
4133 .name = "EN25B64T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004134 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00004135 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004136 .model_id = EON_EN25B64,
Sean Nelson54596372010-01-09 05:30:14 +00004137 .total_size = 8192,
4138 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004139 /* OTP: 512B total; enter 0x3A */
4140 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Sean Nelson54596372010-01-09 05:30:14 +00004141 .tested = TEST_UNTESTED,
4142 .probe = probe_spi_rdid,
4143 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004144 .block_erasers =
4145 {
4146 {
4147 .eraseblocks = {
4148 {64 * 1024, 127},
4149 {32 * 1024, 1},
4150 {16 * 1024, 1},
4151 {8 * 1024, 1},
4152 {4 * 1024, 2},
4153 },
4154 .block_erase = spi_block_erase_d8,
4155 }, {
4156 .eraseblocks = { {8 * 1024 * 1024, 1} },
4157 .block_erase = spi_block_erase_c7,
4158 }
4159 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004160 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004161 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004162 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004163 .read = spi_chip_read, /* Fast read (0x0B) supported */
4164 .voltage = {2700, 3600},
4165 },
4166
4167 {
4168 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004169 .name = "EN25B80",
Stefan Taunerb175af52015-01-24 15:06:27 +00004170 .bustype = BUS_SPI,
4171 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004172 .model_id = EON_EN25B80,
4173 .total_size = 1024,
Stefan Taunerb175af52015-01-24 15:06:27 +00004174 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004175 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerb175af52015-01-24 15:06:27 +00004176 .tested = TEST_UNTESTED,
4177 .probe = probe_spi_rdid,
4178 .probe_timing = TIMING_ZERO,
4179 .block_erasers =
4180 {
4181 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004182 .eraseblocks = {
4183 {4 * 1024, 2},
4184 {8 * 1024, 1},
4185 {16 * 1024, 1},
4186 {32 * 1024, 1},
4187 {64 * 1024, 15}
4188 },
Stefan Taunerb175af52015-01-24 15:06:27 +00004189 .block_erase = spi_block_erase_d8,
4190 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004191 .eraseblocks = { {1024 * 1024, 1} },
4192 .block_erase = spi_block_erase_c7,
4193 }
4194 },
4195 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4196 .unlock = spi_disable_blockprotect,
4197 .write = spi_chip_write_256,
4198 .read = spi_chip_read, /* Fast read (0x0B) supported */
4199 .voltage = {2700, 3600},
4200 },
4201
4202 {
4203 .vendor = "Eon",
4204 .name = "EN25B80T",
4205 .bustype = BUS_SPI,
4206 .manufacture_id = EON_ID_NOPREFIX,
4207 .model_id = EON_EN25B80,
4208 .total_size = 1024,
4209 .page_size = 256,
4210 .feature_bits = FEATURE_WRSR_WREN,
4211 .tested = TEST_UNTESTED,
4212 .probe = probe_spi_rdid,
4213 .probe_timing = TIMING_ZERO,
4214 .block_erasers =
4215 {
4216 {
4217 .eraseblocks = {
4218 {64 * 1024, 15},
4219 {32 * 1024, 1},
4220 {16 * 1024, 1},
4221 {8 * 1024, 1},
4222 {4 * 1024, 2},
4223 },
4224 .block_erase = spi_block_erase_d8,
4225 }, {
4226 .eraseblocks = { {1024 * 1024, 1} },
Stefan Taunerb175af52015-01-24 15:06:27 +00004227 .block_erase = spi_block_erase_c7,
4228 }
4229 },
4230 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4231 .unlock = spi_disable_blockprotect,
4232 .write = spi_chip_write_256,
4233 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004234 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004235 },
4236
4237 {
4238 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004239 .name = "EN25F05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004240 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004241 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004242 .model_id = EON_EN25F05,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004243 .total_size = 64,
4244 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004245 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00004246 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004247 .probe = probe_spi_rdid,
4248 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004249 .block_erasers =
4250 {
4251 {
4252 .eraseblocks = { {4 * 1024, 16} },
4253 .block_erase = spi_block_erase_20,
4254 }, {
4255 .eraseblocks = { {32 * 1024, 2} },
4256 .block_erase = spi_block_erase_d8,
4257 }, {
4258 .eraseblocks = { {32 * 1024, 2} },
4259 .block_erase = spi_block_erase_52,
4260 }, {
4261 .eraseblocks = { {64 * 1024, 1} },
4262 .block_erase = spi_block_erase_60,
4263 }, {
4264 .eraseblocks = { {64 * 1024, 1} },
4265 .block_erase = spi_block_erase_c7,
4266 }
4267 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004268 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004269 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004270 .write = spi_chip_write_256,
4271 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004272 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004273 },
4274
4275 {
4276 .vendor = "Eon",
4277 .name = "EN25F10",
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_EN25F10,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004281 .total_size = 128,
4282 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004283 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004284 .tested = TEST_UNTESTED,
4285 .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, 32} },
4291 .block_erase = spi_block_erase_20,
4292 }, {
4293 .eraseblocks = { {32 * 1024, 4} },
4294 .block_erase = spi_block_erase_d8,
4295 }, {
4296 .eraseblocks = { {32 * 1024, 4} },
4297 .block_erase = spi_block_erase_52,
4298 }, {
4299 .eraseblocks = { {128 * 1024, 1} },
4300 .block_erase = spi_block_erase_60,
4301 }, {
4302 .eraseblocks = { {128 * 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",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004315 .name = "EN25F16",
4316 .bustype = BUS_SPI,
4317 .manufacture_id = EON_ID_NOPREFIX,
4318 .model_id = EON_EN25F16,
4319 .total_size = 2048,
4320 .page_size = 256,
4321 .feature_bits = FEATURE_WRSR_WREN,
4322 .tested = TEST_OK_PREW,
4323 .probe = probe_spi_rdid,
4324 .probe_timing = TIMING_ZERO,
4325 .block_erasers =
4326 {
4327 {
4328 .eraseblocks = { {4 * 1024, 512} },
4329 .block_erase = spi_block_erase_20,
4330 }, {
4331 .eraseblocks = { {64 * 1024, 32} },
4332 .block_erase = spi_block_erase_d8,
4333 }, {
4334 .eraseblocks = { {2 * 1024 * 1024, 1} },
4335 .block_erase = spi_block_erase_60,
4336 }, {
4337 .eraseblocks = { {2 * 1024 * 1024, 1} },
4338 .block_erase = spi_block_erase_c7,
4339 }
4340 },
4341 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4342 .unlock = spi_disable_blockprotect,
4343 .write = spi_chip_write_256,
4344 .read = spi_chip_read,
4345 .voltage = {2700, 3600},
4346 },
4347
4348 {
4349 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004350 .name = "EN25F20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004351 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004352 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004353 .model_id = EON_EN25F20,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004354 .total_size = 256,
4355 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004356 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004357 .tested = TEST_UNTESTED,
4358 .probe = probe_spi_rdid,
4359 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004360 .block_erasers =
4361 {
4362 {
4363 .eraseblocks = { {4 * 1024, 64} },
4364 .block_erase = spi_block_erase_20,
4365 }, {
4366 .eraseblocks = { {64 * 1024, 4} },
4367 .block_erase = spi_block_erase_d8,
4368 }, {
4369 .eraseblocks = { {64 * 1024, 4} },
4370 .block_erase = spi_block_erase_52,
4371 }, {
4372 .eraseblocks = { {256 * 1024, 1} },
4373 .block_erase = spi_block_erase_60,
4374 }, {
4375 .eraseblocks = { {256 * 1024, 1} },
4376 .block_erase = spi_block_erase_c7,
4377 }
4378 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004379 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004380 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004381 .write = spi_chip_write_256,
4382 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004383 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004384 },
4385
4386 {
4387 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004388 .name = "EN25F32",
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_EN25F32,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004392 .total_size = 4096,
4393 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004394 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +00004395 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004396 .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, 1024} },
4402 .block_erase = spi_block_erase_20,
4403 }, {
4404 .eraseblocks = { {64 * 1024, 64} },
4405 .block_erase = spi_block_erase_d8,
4406 }, {
4407 .eraseblocks = { {4 * 1024 * 1024, 1} },
4408 .block_erase = spi_block_erase_60,
4409 }, {
4410 .eraseblocks = { {4 * 1024 * 1024, 1} },
4411 .block_erase = spi_block_erase_c7,
4412 }
4413 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004414 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004415 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004416 .write = spi_chip_write_256,
4417 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004418 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004419 },
4420
4421 {
Russ Dill3cd5a122010-03-05 08:44:11 +00004422 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004423 .name = "EN25F40",
4424 .bustype = BUS_SPI,
4425 .manufacture_id = EON_ID_NOPREFIX,
4426 .model_id = EON_EN25F40,
4427 .total_size = 512,
4428 .page_size = 256,
4429 .feature_bits = FEATURE_WRSR_WREN,
4430 .tested = TEST_OK_PREW,
4431 .probe = probe_spi_rdid,
4432 .probe_timing = TIMING_ZERO,
4433 .block_erasers =
4434 {
4435 {
4436 .eraseblocks = { {4 * 1024, 128} },
4437 .block_erase = spi_block_erase_20,
4438 }, {
4439 .eraseblocks = { {64 * 1024, 8} },
4440 .block_erase = spi_block_erase_d8,
4441 }, {
4442 .eraseblocks = { {512 * 1024, 1} },
4443 .block_erase = spi_block_erase_60,
4444 }, {
4445 .eraseblocks = { {512 * 1024, 1} },
4446 .block_erase = spi_block_erase_c7,
4447 },
4448 },
4449 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4450 .unlock = spi_disable_blockprotect,
4451 .write = spi_chip_write_256,
4452 .read = spi_chip_read,
4453 .voltage = {2700, 3600},
4454 },
4455
4456 {
4457 .vendor = "Eon",
Stefan Taunerd932fd02012-09-06 17:37:16 +00004458 .name = "EN25F64",
4459 .bustype = BUS_SPI,
4460 .manufacture_id = EON_ID_NOPREFIX,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00004461 .model_id = EON_EN25F64,
Stefan Taunerd932fd02012-09-06 17:37:16 +00004462 .total_size = 8192,
4463 .page_size = 256,
4464 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00004465 .tested = TEST_OK_PREW,
Stefan Taunerd932fd02012-09-06 17:37:16 +00004466 .probe = probe_spi_rdid,
4467 .probe_timing = TIMING_ZERO,
4468 .block_erasers =
4469 {
4470 {
4471 .eraseblocks = { {4 * 1024, 2048} },
4472 .block_erase = spi_block_erase_20,
4473 }, {
4474 .eraseblocks = { {64 * 1024, 128} },
4475 .block_erase = spi_block_erase_d8,
4476 }, {
4477 .eraseblocks = { {8 * 1024 * 1024, 1} },
4478 .block_erase = spi_block_erase_60,
4479 }, {
4480 .eraseblocks = { {8 * 1024 * 1024, 1} },
4481 .block_erase = spi_block_erase_c7,
4482 }
4483 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004484 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Stefan Taunerd932fd02012-09-06 17:37:16 +00004485 .unlock = spi_disable_blockprotect,
4486 .write = spi_chip_write_256,
4487 .read = spi_chip_read,
4488 .voltage = {2700, 3600},
4489 },
4490
4491 {
4492 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004493 .name = "EN25F80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004494 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004495 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004496 .model_id = EON_EN25F80,
David Hendricks6d715302011-07-24 22:21:57 +00004497 .total_size = 1024,
4498 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004499 .feature_bits = FEATURE_WRSR_WREN,
4500 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004501 .probe = probe_spi_rdid,
4502 .probe_timing = TIMING_ZERO,
4503 .block_erasers =
4504 {
4505 {
4506 .eraseblocks = { {4 * 1024, 256} },
4507 .block_erase = spi_block_erase_20,
4508 }, {
4509 .eraseblocks = { {64 * 1024, 16} },
4510 .block_erase = spi_block_erase_d8,
4511 }, {
4512 .eraseblocks = { {1024 * 1024, 1} },
4513 .block_erase = spi_block_erase_60,
4514 }, {
4515 .eraseblocks = { {1024 * 1024, 1} },
4516 .block_erase = spi_block_erase_c7,
4517 }
4518 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004519 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004520 .unlock = spi_disable_blockprotect,
4521 .write = spi_chip_write_256,
4522 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004523 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004524 },
4525
4526 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004527 .vendor = "Eon",
4528 .name = "EN25P05",
4529 .bustype = BUS_SPI,
4530 .manufacture_id = EON_ID_NOPREFIX,
4531 .model_id = EON_EN25B05,
4532 .total_size = 64,
4533 .page_size = 256,
4534 .feature_bits = FEATURE_WRSR_WREN,
4535 .tested = TEST_UNTESTED,
4536 .probe = probe_spi_rdid,
4537 .probe_timing = TIMING_ZERO,
4538 .block_erasers =
4539 {
4540 {
4541 .eraseblocks = {
4542 {32 * 1024, 2} },
4543 .block_erase = spi_block_erase_d8,
4544 }, {
4545 .eraseblocks = { {64 * 1024, 1} },
4546 .block_erase = spi_block_erase_c7,
4547 }
4548 },
4549 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4550 .unlock = spi_disable_blockprotect,
4551 .write = spi_chip_write_256,
4552 .read = spi_chip_read, /* Fast read (0x0B) supported */
4553 .voltage = {2700, 3600},
4554 },
4555
4556 {
4557 .vendor = "Eon",
4558 .name = "EN25P10",
4559 .bustype = BUS_SPI,
4560 .manufacture_id = EON_ID_NOPREFIX,
4561 .model_id = EON_EN25B10,
4562 .total_size = 128,
4563 .page_size = 256,
4564 .feature_bits = FEATURE_WRSR_WREN,
4565 .tested = TEST_UNTESTED,
4566 .probe = probe_spi_rdid,
4567 .probe_timing = TIMING_ZERO,
4568 .block_erasers =
4569 {
4570 {
4571 .eraseblocks = { {32 * 1024, 4} },
4572 .block_erase = spi_block_erase_d8,
4573 }, {
4574 .eraseblocks = { {128 * 1024, 1} },
4575 .block_erase = spi_block_erase_c7,
4576 }
4577 },
4578 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4579 .unlock = spi_disable_blockprotect,
4580 .write = spi_chip_write_256,
4581 .read = spi_chip_read, /* Fast read (0x0B) supported */
4582 .voltage = {2700, 3600},
4583 },
4584
4585 {
4586 .vendor = "Eon",
4587 .name = "EN25P16",
4588 .bustype = BUS_SPI,
4589 .manufacture_id = EON_ID_NOPREFIX,
4590 .model_id = EON_EN25B16,
4591 .total_size = 2048,
4592 .page_size = 256,
4593 .feature_bits = FEATURE_WRSR_WREN,
4594 .tested = TEST_UNTESTED,
4595 .probe = probe_spi_rdid,
4596 .probe_timing = TIMING_ZERO,
4597 .block_erasers =
4598 {
4599 {
4600 .eraseblocks = { {64 * 1024, 32} },
4601 .block_erase = spi_block_erase_d8,
4602 }, {
4603 .eraseblocks = { {2 * 1024 * 1024, 1} },
4604 .block_erase = spi_block_erase_c7,
4605 }
4606 },
4607 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4608 .unlock = spi_disable_blockprotect,
4609 .write = spi_chip_write_256,
4610 .read = spi_chip_read, /* Fast read (0x0B) supported */
4611 .voltage = {2700, 3600},
4612 },
4613
4614 {
4615 .vendor = "Eon",
4616 .name = "EN25P20",
4617 .bustype = BUS_SPI,
4618 .manufacture_id = EON_ID_NOPREFIX,
4619 .model_id = EON_EN25B20,
4620 .total_size = 256,
4621 .page_size = 256,
4622 .feature_bits = FEATURE_WRSR_WREN,
4623 .tested = TEST_UNTESTED,
4624 .probe = probe_spi_rdid,
4625 .probe_timing = TIMING_ZERO,
4626 .block_erasers =
4627 {
4628 {
4629 .eraseblocks = { {64 * 1024, 4} },
4630 .block_erase = spi_block_erase_d8,
4631 }, {
4632 .eraseblocks = { {256 * 1024, 1} },
4633 .block_erase = spi_block_erase_c7,
4634 }
4635 },
4636 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4637 .unlock = spi_disable_blockprotect,
4638 .write = spi_chip_write_256,
4639 .read = spi_chip_read, /* Fast read (0x0B) supported */
4640 .voltage = {2700, 3600},
4641 },
4642
4643 {
4644 .vendor = "Eon",
4645 .name = "EN25P32", /* Uniform version of EN25B32 */
4646 .bustype = BUS_SPI,
4647 .manufacture_id = EON_ID_NOPREFIX,
4648 .model_id = EON_EN25B32,
4649 .total_size = 4096,
4650 .page_size = 256,
4651 /* OTP: 512B total; enter 0x3A */
4652 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4653 .tested = TEST_UNTESTED,
4654 .probe = probe_spi_rdid,
4655 .probe_timing = TIMING_ZERO,
4656 .block_erasers =
4657 {
4658 {
4659 .eraseblocks = { {64 * 1024, 64} },
4660 .block_erase = spi_block_erase_d8,
4661 }, {
4662 .eraseblocks = { {4 * 1024 * 1024, 1} },
4663 .block_erase = spi_block_erase_c7,
4664 }
4665 },
4666 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4667 .unlock = spi_disable_blockprotect,
4668 .write = spi_chip_write_256,
4669 .read = spi_chip_read, /* Fast read (0x0B) supported */
4670 .voltage = {2700, 3600},
4671 },
4672
4673 {
4674 .vendor = "Eon",
4675 .name = "EN25P40",
4676 .bustype = BUS_SPI,
4677 .manufacture_id = EON_ID_NOPREFIX,
4678 .model_id = EON_EN25B40,
4679 .total_size = 512,
4680 .page_size = 256,
4681 .feature_bits = FEATURE_WRSR_WREN,
4682 .tested = TEST_UNTESTED,
4683 .probe = probe_spi_rdid,
4684 .probe_timing = TIMING_ZERO,
4685 .block_erasers =
4686 {
4687 {
4688 .eraseblocks = { {64 * 1024, 8} },
4689 .block_erase = spi_block_erase_d8,
4690 }, {
4691 .eraseblocks = { {512 * 1024, 1} },
4692 .block_erase = spi_block_erase_c7,
4693 }
4694 },
4695 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4696 .unlock = spi_disable_blockprotect,
4697 .write = spi_chip_write_256,
4698 .read = spi_chip_read, /* Fast read (0x0B) supported */
4699 .voltage = {2700, 3600},
4700 },
4701
4702 {
4703 .vendor = "Eon",
4704 .name = "EN25P64",
4705 .bustype = BUS_SPI,
4706 .manufacture_id = EON_ID_NOPREFIX,
4707 .model_id = EON_EN25B64,
4708 .total_size = 8192,
4709 .page_size = 256,
4710 /* OTP: 512B total; enter 0x3A */
4711 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4712 .tested = TEST_UNTESTED,
4713 .probe = probe_spi_rdid,
4714 .probe_timing = TIMING_ZERO,
4715 .block_erasers =
4716 {
4717 {
4718 .eraseblocks = { {64 * 1024, 128} },
4719 .block_erase = spi_block_erase_d8,
4720 }, {
4721 .eraseblocks = { {8 * 1024 * 1024, 1} },
4722 .block_erase = spi_block_erase_c7,
4723 }
4724 },
4725 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4726 .unlock = spi_disable_blockprotect,
4727 .write = spi_chip_write_256,
4728 .read = spi_chip_read, /* Fast read (0x0B) supported */
4729 .voltage = {2700, 3600},
4730 },
4731
4732 {
4733 .vendor = "Eon",
4734 .name = "EN25P80",
4735 .bustype = BUS_SPI,
4736 .manufacture_id = EON_ID_NOPREFIX,
4737 .model_id = EON_EN25B80,
4738 .total_size = 1024,
4739 .page_size = 256,
4740 .feature_bits = FEATURE_WRSR_WREN,
4741 .tested = TEST_UNTESTED,
4742 .probe = probe_spi_rdid,
4743 .probe_timing = TIMING_ZERO,
4744 .block_erasers =
4745 {
4746 {
4747 .eraseblocks = { {64 * 1024, 16} },
4748 .block_erase = spi_block_erase_d8,
4749 }, {
4750 .eraseblocks = { {1024 * 1024, 1} },
4751 .block_erase = spi_block_erase_c7,
4752 }
4753 },
4754 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4755 .unlock = spi_disable_blockprotect,
4756 .write = spi_chip_write_256,
4757 .read = spi_chip_read, /* Fast read (0x0B) supported */
4758 .voltage = {2700, 3600},
4759 },
4760
4761 {
4762 .vendor = "Eon",
4763 .name = "EN25Q128",
4764 .bustype = BUS_SPI,
4765 .manufacture_id = EON_ID_NOPREFIX,
4766 .model_id = EON_EN25Q128,
4767 .total_size = 16384,
4768 .page_size = 256,
4769 /* OTP: 512B total; enter 0x3A */
4770 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4771 .tested = TEST_OK_PREW,
4772 .probe = probe_spi_rdid,
4773 .probe_timing = TIMING_ZERO,
4774 .block_erasers =
4775 {
4776 {
4777 .eraseblocks = { {4 * 1024, 4096} },
4778 .block_erase = spi_block_erase_20,
4779 }, {
4780 .eraseblocks = { {64 * 1024, 256} },
4781 .block_erase = spi_block_erase_d8,
4782 }, {
4783 .eraseblocks = { {16 * 1024 * 1024, 1} },
4784 .block_erase = spi_block_erase_60,
4785 }, {
4786 .eraseblocks = { {16 * 1024 * 1024, 1} },
4787 .block_erase = spi_block_erase_c7,
4788 }
4789 },
4790 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4791 .unlock = spi_disable_blockprotect,
4792 .write = spi_chip_write_256,
4793 .read = spi_chip_read,
4794 },
4795
4796 {
David Hendricks6d715302011-07-24 22:21:57 +00004797 /* Note: EN25D16 is an evil twin which shares the model ID
4798 but has different write protection capabilities */
4799 .vendor = "Eon",
4800 .name = "EN25Q16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004801 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004802 .manufacture_id = EON_ID_NOPREFIX,
4803 .model_id = EON_EN25Q16,
4804 .total_size = 2048,
4805 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004806 /* OTP: D16 512B/Q16 128B total; enter 0x3A */
4807 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004808 .tested = TEST_UNTESTED,
4809 .probe = probe_spi_rdid,
4810 .probe_timing = TIMING_ZERO,
4811 .block_erasers =
4812 {
4813 {
4814 .eraseblocks = { {4 * 1024, 512} },
4815 .block_erase = spi_block_erase_20,
4816 }, {
4817 .eraseblocks = { {64 * 1024, 32} },
4818 .block_erase = spi_block_erase_d8,
4819 }, {
4820 /* not supported by Q16 version */
4821 .eraseblocks = { {64 * 1024, 32} },
4822 .block_erase = spi_block_erase_52,
4823 }, {
4824 .eraseblocks = { {2 * 1024 * 1024, 1} },
4825 .block_erase = spi_block_erase_60,
4826 }, {
4827 .eraseblocks = { {2 * 1024 * 1024, 1} },
4828 .block_erase = spi_block_erase_c7,
4829 }
4830 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004831 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004832 .unlock = spi_disable_blockprotect,
4833 .write = spi_chip_write_256,
4834 .read = spi_chip_read,
4835 .voltage = {2700, 3600},
4836 },
4837
4838 {
4839 .vendor = "Eon",
4840 .name = "EN25Q32(A/B)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004841 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004842 .manufacture_id = EON_ID_NOPREFIX,
4843 .model_id = EON_EN25Q32,
4844 .total_size = 4096,
4845 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004846 /* OTP: 512B total; enter 0x3A */
4847 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004848 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004849 .probe = probe_spi_rdid,
4850 .probe_timing = TIMING_ZERO,
4851 .block_erasers =
4852 {
4853 {
4854 .eraseblocks = { {4 * 1024, 1024} },
4855 .block_erase = spi_block_erase_20,
4856 }, {
4857 .eraseblocks = { {64 * 1024, 64} },
4858 .block_erase = spi_block_erase_d8,
4859 }, {
4860 .eraseblocks = { {4 * 1024 * 1024, 1} },
4861 .block_erase = spi_block_erase_60,
4862 }, {
4863 .eraseblocks = { {4 * 1024 * 1024, 1} },
4864 .block_erase = spi_block_erase_c7,
4865 }
4866 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004867 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004868 .unlock = spi_disable_blockprotect,
4869 .write = spi_chip_write_256,
4870 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004871 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004872 },
4873
4874 {
4875 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004876 .name = "EN25Q40",
4877 .bustype = BUS_SPI,
4878 .manufacture_id = EON_ID_NOPREFIX,
4879 .model_id = EON_EN25Q40,
4880 .total_size = 512,
4881 .page_size = 256,
4882 /* OTP: 256B total; enter 0x3A */
4883 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4884 .tested = TEST_UNTESTED,
4885 .probe = probe_spi_rdid,
4886 .probe_timing = TIMING_ZERO,
4887 .block_erasers =
4888 {
4889 {
4890 .eraseblocks = { {4 * 1024, 128} },
4891 .block_erase = spi_block_erase_20,
4892 }, {
4893 .eraseblocks = { {64 * 1024, 8} },
4894 .block_erase = spi_block_erase_d8,
4895 }, {
4896 .eraseblocks = { {512 * 1024, 1} },
4897 .block_erase = spi_block_erase_60,
4898 }, {
4899 .eraseblocks = { {512 * 1024, 1} },
4900 .block_erase = spi_block_erase_c7,
4901 }
4902 },
4903 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4904 .unlock = spi_disable_blockprotect,
4905 .write = spi_chip_write_256,
4906 .read = spi_chip_read,
4907 .voltage = {2700, 3600},
4908 },
4909
4910 {
4911 .vendor = "Eon",
David Hendricks6d715302011-07-24 22:21:57 +00004912 .name = "EN25Q64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004913 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004914 .manufacture_id = EON_ID_NOPREFIX,
4915 .model_id = EON_EN25Q64,
4916 .total_size = 8192,
4917 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004918 /* OTP: 512B total; enter 0x3A */
4919 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004920 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004921 .probe = probe_spi_rdid,
4922 .probe_timing = TIMING_ZERO,
4923 .block_erasers =
4924 {
4925 {
4926 .eraseblocks = { {4 * 1024, 2048} },
4927 .block_erase = spi_block_erase_20,
4928 }, {
4929 .eraseblocks = { {64 * 1024, 128} },
4930 .block_erase = spi_block_erase_d8,
4931 }, {
4932 .eraseblocks = { {8 * 1024 * 1024, 1} },
4933 .block_erase = spi_block_erase_60,
4934 }, {
4935 .eraseblocks = { {8 * 1024 * 1024, 1} },
4936 .block_erase = spi_block_erase_c7,
4937 }
4938 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004939 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004940 .unlock = spi_disable_blockprotect,
4941 .write = spi_chip_write_256,
4942 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004943 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004944 },
4945
4946 {
4947 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004948 .name = "EN25Q80(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004949 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004950 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004951 .model_id = EON_EN25Q80,
4952 .total_size = 1024,
4953 .page_size = 256,
4954 /* OTP: 256B total; enter 0x3A */
4955 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4956 .tested = TEST_UNTESTED,
4957 .probe = probe_spi_rdid,
4958 .probe_timing = TIMING_ZERO,
4959 .block_erasers =
4960 {
4961 {
4962 .eraseblocks = { {4 * 1024, 256} },
4963 .block_erase = spi_block_erase_20,
4964 }, {
4965 .eraseblocks = { {64 * 1024, 16} },
4966 .block_erase = spi_block_erase_d8,
4967 }, {
4968 .eraseblocks = { {1024 * 1024, 1} },
4969 .block_erase = spi_block_erase_60,
4970 }, {
4971 .eraseblocks = { {1024 * 1024, 1} },
4972 .block_erase = spi_block_erase_c7,
4973 }
4974 },
4975 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4976 .unlock = spi_disable_blockprotect,
4977 .write = spi_chip_write_256,
4978 .read = spi_chip_read,
4979 .voltage = {2700, 3600},
4980 },
4981
4982 {
4983 .vendor = "Eon",
4984 .name = "EN25QH128",
4985 .bustype = BUS_SPI,
4986 .manufacture_id = EON_ID_NOPREFIX,
4987 .model_id = EON_EN25QH128,
David Hendricks6d715302011-07-24 22:21:57 +00004988 .total_size = 16384,
4989 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004990 /* supports SFDP */
Daniel Lenski65922a32012-02-15 23:40:23 +00004991 /* OTP: 512B total; enter 0x3A */
Alan Green1f9cc7d2019-07-01 11:10:45 +10004992 /* QPI enable 0x38, disable 0xFF */
4993 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4994 .tested = TEST_UNTESTED,
David Hendricks6d715302011-07-24 22:21:57 +00004995 .probe = probe_spi_rdid,
4996 .probe_timing = TIMING_ZERO,
4997 .block_erasers =
4998 {
4999 {
5000 .eraseblocks = { {4 * 1024, 4096} },
5001 .block_erase = spi_block_erase_20,
5002 }, {
5003 .eraseblocks = { {64 * 1024, 256} },
5004 .block_erase = spi_block_erase_d8,
5005 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005006 .eraseblocks = { { 16384 * 1024, 1} },
David Hendricks6d715302011-07-24 22:21:57 +00005007 .block_erase = spi_block_erase_60,
5008 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005009 .eraseblocks = { { 16384 * 1024, 1} },
David Hendricks6d715302011-07-24 22:21:57 +00005010 .block_erase = spi_block_erase_c7,
5011 }
5012 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005013 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
5014 .unlock = spi_disable_blockprotect_bp3_srwd,
David Hendricks6d715302011-07-24 22:21:57 +00005015 .write = spi_chip_write_256,
5016 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005017 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00005018 },
5019
5020 {
5021 .vendor = "Eon",
5022 .name = "EN25QH16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005023 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00005024 .manufacture_id = EON_ID_NOPREFIX,
5025 .model_id = EON_EN25QH16,
5026 .total_size = 2048,
5027 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00005028 /* supports SFDP */
5029 /* OTP: 512B total; enter 0x3A */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005030 /* QPI enable 0x38, disable 0xFF */
5031 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner5c316f92015-02-08 21:57:52 +00005032 .tested = TEST_OK_PREW,
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, 512} },
5039 .block_erase = spi_block_erase_20,
5040 }, {
5041 .eraseblocks = { {64 * 1024, 32} },
5042 .block_erase = spi_block_erase_d8,
5043 }, {
5044 .eraseblocks = { {1024 * 2048, 1} },
5045 .block_erase = spi_block_erase_60,
5046 }, {
5047 .eraseblocks = { {1024 * 2048, 1} },
5048 .block_erase = spi_block_erase_c7,
5049 }
5050 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005051 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005052 .unlock = spi_disable_blockprotect_bp3_srwd,
David Hendricks6d715302011-07-24 22:21:57 +00005053 .write = spi_chip_write_256,
5054 .read = spi_chip_read,
Stefan Tauner2cef9162012-05-14 01:51:46 +00005055 .voltage = {2700, 3600},
5056 },
5057
5058 {
5059 .vendor = "Eon",
5060 .name = "EN25QH32",
5061 .bustype = BUS_SPI,
5062 .manufacture_id = EON_ID_NOPREFIX,
5063 .model_id = EON_EN25QH32,
5064 .total_size = 4096,
5065 .page_size = 256,
5066 /* 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 Tauner23e10b82016-01-23 16:16:49 +00005070 .tested = TEST_OK_PREW,
Stefan Tauner2cef9162012-05-14 01:51:46 +00005071 .probe = probe_spi_rdid,
5072 .probe_timing = TIMING_ZERO,
5073 .block_erasers =
5074 {
5075 {
5076 .eraseblocks = { {4 * 1024, 1024} },
5077 .block_erase = spi_block_erase_20,
5078 }, {
5079 .eraseblocks = { {64 * 1024, 64} },
5080 .block_erase = spi_block_erase_d8,
5081 }, {
5082 .eraseblocks = { {1024 * 4096, 1} },
5083 .block_erase = spi_block_erase_60,
5084 }, {
5085 .eraseblocks = { {1024 * 4096, 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,
5091 .write = spi_chip_write_256,
5092 .read = spi_chip_read,
5093 .voltage = {2700, 3600},
5094 },
5095
5096 {
5097 .vendor = "Eon",
5098 .name = "EN25QH64",
5099 .bustype = BUS_SPI,
5100 .manufacture_id = EON_ID_NOPREFIX,
5101 .model_id = EON_EN25QH64,
5102 .total_size = 8192,
5103 .page_size = 256,
5104 /* supports SFDP */
5105 /* OTP: 512B total; enter 0x3A */
5106 /* 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,
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005109 .probe = probe_spi_rdid,
5110 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005111 .block_erasers =
5112 {
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005113 {
5114 .eraseblocks = { {4 * 1024, 2048} },
5115 .block_erase = spi_block_erase_20,
5116 }, {
5117 .eraseblocks = { {64 * 1024, 128} },
5118 .block_erase = spi_block_erase_d8,
5119 }, {
5120 .eraseblocks = { { 8192 * 1024, 1} },
5121 .block_erase = spi_block_erase_60,
5122 }, {
5123 .eraseblocks = { { 8192 * 1024, 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",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005136 .name = "EN25S10",
5137 .bustype = BUS_SPI,
5138 .manufacture_id = EON_ID_NOPREFIX,
5139 .model_id = EON_EN25S10,
5140 .total_size = 128,
5141 .page_size = 256,
5142 /* OTP: 256B total; enter 0x3A */
5143 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5144 .tested = TEST_UNTESTED,
5145 .probe = probe_spi_rdid,
5146 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005147 .block_erasers =
5148 {
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005149 {
5150 .eraseblocks = { {4 * 1024, 32} },
5151 .block_erase = spi_block_erase_20,
5152 }, {
5153 .eraseblocks = { {32 * 1024, 4} },
5154 .block_erase = spi_block_erase_52,
5155 }, {
5156 .eraseblocks = { {128 * 1024, 1} },
5157 .block_erase = spi_block_erase_60,
5158 }, {
5159 .eraseblocks = { {128 * 1024, 1} },
5160 .block_erase = spi_block_erase_c7,
5161 }
5162 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005163 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005164 .unlock = spi_disable_blockprotect,
5165 .write = spi_chip_write_256,
5166 .read = spi_chip_read,
5167 .voltage = {1650, 1950},
5168 },
5169
5170 {
5171 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005172 .name = "EN25S16",
5173 .bustype = BUS_SPI,
5174 .manufacture_id = EON_ID_NOPREFIX,
5175 .model_id = EON_EN25S16,
5176 .total_size = 2048,
5177 .page_size = 256,
5178 /* OTP: 512B total; enter 0x3A */
5179 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5180 .tested = TEST_UNTESTED,
5181 .probe = probe_spi_rdid,
5182 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005183 .block_erasers =
5184 {
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005185 {
5186 .eraseblocks = { {4 * 1024, 512} },
5187 .block_erase = spi_block_erase_20,
5188 }, {
5189 .eraseblocks = { {64 * 1024, 32} },
5190 .block_erase = spi_block_erase_52,
5191 }, {
5192 .eraseblocks = { {32 * 1024, 64} },
5193 .block_erase = spi_block_erase_d8,
5194 }, {
5195 .eraseblocks = { {2048 * 1024, 1} },
5196 .block_erase = spi_block_erase_60,
5197 }, {
5198 .eraseblocks = { {2048 * 1024, 1} },
5199 .block_erase = spi_block_erase_c7,
5200 }
5201 },
5202 .printlock = spi_prettyprint_status_register_en25s_wp,
5203 .unlock = spi_disable_blockprotect_bp3_srwd,
5204 .write = spi_chip_write_256,
5205 .read = spi_chip_read,
5206 .voltage = {1650, 1950},
5207 },
5208
5209 {
5210 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005211 .name = "EN25S20",
5212 .bustype = BUS_SPI,
5213 .manufacture_id = EON_ID_NOPREFIX,
5214 .model_id = EON_EN25S20,
5215 .total_size = 256,
5216 .page_size = 256,
5217 /* OTP: 256B total; enter 0x3A */
5218 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5219 .tested = TEST_UNTESTED,
5220 .probe = probe_spi_rdid,
5221 .probe_timing = TIMING_ZERO,
5222 .block_erasers =
5223 {
5224 {
5225 .eraseblocks = { {4 * 1024, 64} },
5226 .block_erase = spi_block_erase_20,
5227 }, {
5228 .eraseblocks = { {64 * 1024, 4} },
5229 .block_erase = spi_block_erase_d8,
5230 }, {
5231 .eraseblocks = { {256 * 1024, 1} },
5232 .block_erase = spi_block_erase_60,
5233 }, {
5234 .eraseblocks = { {256 * 1024, 1} },
5235 .block_erase = spi_block_erase_c7,
5236 }
5237 },
5238 .printlock = spi_prettyprint_status_register_bp2_srwd,
5239 .unlock = spi_disable_blockprotect,
5240 .write = spi_chip_write_256,
5241 .read = spi_chip_read,
5242 .voltage = {1650, 1950},
5243 },
5244
5245 {
5246 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005247 .name = "EN25S32",
5248 .bustype = BUS_SPI,
5249 .manufacture_id = EON_ID_NOPREFIX,
5250 .model_id = EON_EN25S32,
5251 .total_size = 4096,
5252 .page_size = 256,
5253 /* OTP: 512B total; enter 0x3A */
5254 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5255 .tested = TEST_UNTESTED,
5256 .probe = probe_spi_rdid,
5257 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005258 .block_erasers =
5259 {
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005260 {
5261 .eraseblocks = { {4 * 1024, 1024} },
5262 .block_erase = spi_block_erase_20,
5263 }, {
5264 .eraseblocks = { {32 * 1024, 128} },
5265 .block_erase = spi_block_erase_52,
5266 }, {
5267 .eraseblocks = { {64 * 1024, 64} },
5268 .block_erase = spi_block_erase_d8,
5269 }, {
5270 .eraseblocks = { {4096 * 1024, 1} },
5271 .block_erase = spi_block_erase_60,
5272 }, {
5273 .eraseblocks = { {4096 * 1024, 1} },
5274 .block_erase = spi_block_erase_c7,
5275 }
5276 },
5277 .printlock = spi_prettyprint_status_register_en25s_wp,
5278 .unlock = spi_disable_blockprotect_bp3_srwd,
5279 .write = spi_chip_write_256,
5280 .read = spi_chip_read,
5281 .voltage = {1650, 1950},
5282 },
5283
5284 {
5285 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005286 .name = "EN25S40",
5287 .bustype = BUS_SPI,
5288 .manufacture_id = EON_ID_NOPREFIX,
5289 .model_id = EON_EN25S40,
5290 .total_size = 512,
5291 .page_size = 256,
5292 /* OTP: 256B total; enter 0x3A */
5293 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5294 .tested = TEST_OK_PREW,
5295 .probe = probe_spi_rdid,
5296 .probe_timing = TIMING_ZERO,
5297 .block_erasers =
5298 {
5299 {
5300 .eraseblocks = { {4 * 1024, 128} },
5301 .block_erase = spi_block_erase_20,
5302 }, {
5303 .eraseblocks = { {64 * 1024, 8} },
5304 .block_erase = spi_block_erase_d8,
5305 }, {
5306 .eraseblocks = { {512 * 1024, 1} },
5307 .block_erase = spi_block_erase_60,
5308 }, {
5309 .eraseblocks = { {512 * 1024, 1} },
5310 .block_erase = spi_block_erase_c7,
5311 }
5312 },
5313 .printlock = spi_prettyprint_status_register_bp2_srwd,
5314 .unlock = spi_disable_blockprotect,
5315 .write = spi_chip_write_256,
5316 .read = spi_chip_read,
5317 .voltage = {1650, 1950},
5318 },
5319
5320 {
5321 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005322 .name = "EN25S64",
5323 .bustype = BUS_SPI,
5324 .manufacture_id = EON_ID_NOPREFIX,
5325 .model_id = EON_EN25S64,
5326 .total_size = 8192,
5327 .page_size = 256,
5328 /* OTP: 512B total; enter 0x3A */
5329 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5330 .tested = TEST_UNTESTED,
5331 .probe = probe_spi_rdid,
5332 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005333 .block_erasers =
5334 {
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005335 {
5336 .eraseblocks = { {4 * 1024, 2048} },
5337 .block_erase = spi_block_erase_20,
5338 }, {
5339 .eraseblocks = { {64 * 1024, 128} },
5340 .block_erase = spi_block_erase_d8,
5341 }, {
5342 .eraseblocks = { {8192 * 1024, 1} },
5343 .block_erase = spi_block_erase_60,
5344 }, {
5345 .eraseblocks = { {8192 * 1024, 1} },
5346 .block_erase = spi_block_erase_c7,
5347 }
5348 },
5349 .printlock = spi_prettyprint_status_register_en25s_wp,
5350 .unlock = spi_disable_blockprotect_bp3_srwd,
5351 .write = spi_chip_write_256,
5352 .read = spi_chip_read,
5353 .voltage = {1650, 1950},
5354 },
5355
5356 {
5357 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005358 .name = "EN25S80",
5359 .bustype = BUS_SPI,
5360 .manufacture_id = EON_ID_NOPREFIX,
5361 .model_id = EON_EN25S80,
5362 .total_size = 1024,
5363 .page_size = 256,
5364 /* OTP: 256B total; enter 0x3A */
5365 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5366 .tested = TEST_UNTESTED,
5367 .probe = probe_spi_rdid,
5368 .probe_timing = TIMING_ZERO,
Russ Dill3cd5a122010-03-05 08:44:11 +00005369 .block_erasers =
5370 {
5371 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005372 .eraseblocks = { {4 * 1024, 256} },
5373 .block_erase = spi_block_erase_20,
5374 }, {
5375 .eraseblocks = { {64 * 1024, 16} },
5376 .block_erase = spi_block_erase_d8,
5377 }, {
5378 .eraseblocks = { {1024 * 1024, 1} },
5379 .block_erase = spi_block_erase_60,
5380 }, {
5381 .eraseblocks = { {1024 * 1024, 1} },
5382 .block_erase = spi_block_erase_c7,
5383 }
Russ Dill3cd5a122010-03-05 08:44:11 +00005384 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005385 .printlock = spi_prettyprint_status_register_bp2_srwd,
5386 .unlock = spi_disable_blockprotect,
5387 .write = spi_chip_write_256,
5388 .read = spi_chip_read,
5389 .voltage = {1650, 1950},
Russ Dill3cd5a122010-03-05 08:44:11 +00005390 },
5391
5392 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00005393 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005394 .name = "EN29F002(A)(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005395 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005396 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005397 .model_id = EON_EN29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005398 .total_size = 256,
5399 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00005400 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Alan Green4362e622019-08-26 15:02:12 +10005401 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005402 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005403 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005404 .block_erasers =
5405 {
5406 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005407 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005408 {16 * 1024, 1},
Michael Karchere3cb0a12010-03-13 23:47:09 +00005409 {8 * 1024, 2},
5410 {32 * 1024, 1},
5411 {64 * 1024, 3},
Sean Nelson6b11ad22009-12-23 17:05:59 +00005412 },
5413 .block_erase = erase_sector_jedec,
5414 }, {
5415 .eraseblocks = { {256 * 1024, 1} },
5416 .block_erase = erase_chip_block_jedec,
5417 },
5418 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005419 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005420 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005421 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005422 },
5423
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005424 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00005425 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005426 .name = "EN29F002(A)(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005427 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005428 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005429 .model_id = EON_EN29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005430 .total_size = 256,
5431 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00005432 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00005433 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005434 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005435 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005436 .block_erasers =
5437 {
5438 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005439 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005440 {64 * 1024, 3},
Michael Karchere3cb0a12010-03-13 23:47:09 +00005441 {32 * 1024, 1},
5442 {8 * 1024, 2},
5443 {16 * 1024, 1},
Sean Nelson6b11ad22009-12-23 17:05:59 +00005444 },
5445 .block_erase = erase_sector_jedec,
5446 }, {
5447 .eraseblocks = { {256 * 1024, 1} },
5448 .block_erase = erase_chip_block_jedec,
5449 },
5450 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005451 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005452 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005453 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005454 },
5455
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005456 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005457 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005458 .name = "EN29F010",
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005459 .bustype = BUS_PARALLEL,
5460 .manufacture_id = EON_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005461 .model_id = EON_EN29F010,
5462 .total_size = 128,
5463 .page_size = 128,
5464 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
5465 .tested = TEST_OK_PRE,
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005466 .probe = probe_jedec,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005467 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005468 .block_erasers =
5469 {
5470 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005471 .eraseblocks = { {16 * 1024, 8} },
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005472 .block_erase = erase_sector_jedec,
5473 },
5474 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005475 .eraseblocks = { {128 * 1024, 1} },
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005476 .block_erase = erase_chip_block_jedec,
5477 },
5478 },
5479 .write = write_jedec_1,
5480 .read = read_memmapped,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005481 .voltage = {4500, 5500},
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005482 },
5483
5484 {
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00005485 .vendor = "Eon",
5486 .name = "EN29GL064(A)B",
5487 .bustype = BUS_PARALLEL,
5488 .manufacture_id = EON_ID,
5489 .model_id = EON_EN29GL064B,
5490 .total_size = 8192,
5491 .page_size = 128 * 1024, /* actual page size is 16 */
5492 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5493 .tested = TEST_UNTESTED,
5494 .probe = probe_jedec_29gl,
5495 .probe_timing = TIMING_ZERO,
5496 .block_erasers =
5497 {
5498 {
5499 .eraseblocks = {
5500 {8 * 1024, 8},
5501 {64 * 1024, 127},
5502 },
5503 .block_erase = erase_sector_jedec,
5504 }, {
5505 .eraseblocks = { {8 * 1024 * 1024, 1} },
5506 .block_erase = erase_chip_block_jedec,
5507 },
5508 },
5509 .write = write_jedec_1,
5510 .read = read_memmapped,
5511 .voltage = {2700, 3600},
5512 },
5513
5514 {
5515 .vendor = "Eon",
5516 .name = "EN29GL064(A)T",
5517 .bustype = BUS_PARALLEL,
5518 .manufacture_id = EON_ID,
5519 .model_id = EON_EN29GL064T,
5520 .total_size = 8192,
5521 .page_size = 128 * 1024, /* actual page size is 16 */
5522 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5523 .tested = TEST_UNTESTED,
5524 .probe = probe_jedec_29gl,
5525 .probe_timing = TIMING_ZERO,
5526 .block_erasers =
5527 {
5528 {
5529 .eraseblocks = {
5530 {64 * 1024, 127},
5531 {8 * 1024, 8},
5532 },
5533 .block_erase = erase_sector_jedec,
5534 }, {
5535 .eraseblocks = { {8 * 1024 * 1024, 1} },
5536 .block_erase = erase_chip_block_jedec,
5537 },
5538 },
5539 .write = write_jedec_1,
5540 .read = read_memmapped,
5541 .voltage = {2700, 3600},
5542 },
5543
5544 {
5545 .vendor = "Eon",
5546 .name = "EN29GL064H/L",
5547 .bustype = BUS_PARALLEL,
5548 .manufacture_id = EON_ID,
5549 .model_id = EON_EN29GL064HL,
5550 .total_size = 8192,
5551 .page_size = 128 * 1024, /* actual page size is 16 */
5552 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5553 .tested = TEST_UNTESTED,
5554 .probe = probe_jedec_29gl,
5555 .probe_timing = TIMING_ZERO,
5556 .block_erasers =
5557 {
5558 {
5559 .eraseblocks = { {64 * 1024, 128} },
5560 .block_erase = erase_sector_jedec,
5561 }, {
5562 .eraseblocks = { {8 * 1024 * 1024, 1} },
5563 .block_erase = erase_chip_block_jedec,
5564 },
5565 },
5566 .write = write_jedec_1,
5567 .read = read_memmapped,
5568 .voltage = {2700, 3600},
5569 },
5570
5571 {
5572 .vendor = "Eon",
5573 .name = "EN29GL128",
5574 .bustype = BUS_PARALLEL,
5575 .manufacture_id = EON_ID,
5576 .model_id = EON_EN29GL128HL,
5577 .total_size = 16384,
5578 .page_size = 128 * 1024, /* actual page size is 16 */
5579 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5580 .tested = TEST_UNTESTED,
5581 .probe = probe_jedec_29gl,
5582 .probe_timing = TIMING_ZERO,
5583 .block_erasers =
5584 {
5585 {
5586 .eraseblocks = { {128 * 1024, 128} },
5587 .block_erase = erase_sector_jedec,
5588 }, {
5589 .eraseblocks = { {16 * 1024 * 1024, 1} },
5590 .block_erase = erase_chip_block_jedec,
5591 },
5592 },
5593 .write = write_jedec_1,
5594 .read = read_memmapped,
5595 .voltage = {2700, 3600},
5596 },
5597
5598 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005599 .vendor = "Eon",
5600 .name = "EN29LV040(A)",
5601 .bustype = BUS_PARALLEL,
5602 .manufacture_id = EON_ID,
5603 .model_id = EON_EN29LV040,
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005604 .total_size = 512,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005605 .page_size = 4 * 1024,
5606 .tested = TEST_OK_PREW,
5607 .probe = probe_jedec,
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005608 .probe_timing = TIMING_ZERO,
5609 .block_erasers =
5610 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00005611 {
5612 .eraseblocks = { {64 * 1024, 8} },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005613 .block_erase = erase_sector_jedec,
5614 },
5615 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00005616 .eraseblocks = { {512 * 1024, 1} },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005617 .block_erase = erase_chip_block_jedec,
5618 },
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005619 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005620 .write = write_jedec_1,
5621 .read = read_memmapped,
5622 .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R and 55R, others 2.7-3.6V */
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005623 },
5624
5625 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005626 .vendor = "Eon",
5627 .name = "EN29LV640B",
5628 .bustype = BUS_PARALLEL,
5629 .manufacture_id = EON_ID,
5630 .model_id = EON_EN29LV640B,
5631 .total_size = 8192,
5632 .page_size = 8192,
5633 .feature_bits = FEATURE_ADDR_SHIFTED,
5634 .tested = TEST_OK_PREW,
5635 .probe = probe_en29lv640b,
5636 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005637 .block_erasers =
5638 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00005639 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005640 .eraseblocks = {
5641 {8 * 1024, 8},
5642 {64 * 1024, 127},
5643 },
5644 .block_erase = erase_block_jedec,
Stefan Tauner0be072c2016-03-13 15:16:30 +00005645 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005646 .eraseblocks = { {8 * 1024 * 1024, 1} },
5647 .block_erase = erase_chip_block_jedec,
5648 },
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005649 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005650 .write = write_en29lv640b,
5651 .read = read_memmapped,
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005652 .voltage = {2700, 3600},
5653 },
5654
5655 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005656 .vendor = "Fujitsu",
5657 .name = "MBM29F004BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005658 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005659 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005660 .model_id = FUJITSU_MBM29F004BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005661 .total_size = 512,
5662 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005663 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005664 .tested = TEST_UNTESTED,
5665 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005666 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005667 .block_erasers =
5668 {
5669 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005670 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005671 {16 * 1024, 1},
5672 {8 * 1024, 2},
5673 {32 * 1024, 1},
5674 {64 * 1024, 7},
5675 },
Sean Nelson35727f72010-01-28 23:55:12 +00005676 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005677 }, {
5678 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005679 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005680 },
5681 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005682 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005683 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005684 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005685 },
5686
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005687 {
5688 .vendor = "Fujitsu",
5689 .name = "MBM29F004TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005690 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005691 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005692 .model_id = FUJITSU_MBM29F004TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005693 .total_size = 512,
5694 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005695 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005696 .tested = TEST_UNTESTED,
5697 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005698 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005699 .block_erasers =
5700 {
5701 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005702 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005703 {64 * 1024, 7},
5704 {32 * 1024, 1},
5705 {8 * 1024, 2},
5706 {16 * 1024, 1},
5707 },
Sean Nelson35727f72010-01-28 23:55:12 +00005708 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005709 }, {
5710 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005711 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005712 },
5713 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005714 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005715 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005716 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005717 },
5718
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005719 {
Sean Nelson35727f72010-01-28 23:55:12 +00005720 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005721 .vendor = "Fujitsu",
5722 .name = "MBM29F400BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005723 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005724 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005725 .model_id = FUJITSU_MBM29F400BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005726 .total_size = 512,
5727 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005728 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00005729 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005730 .probe = probe_jedec,
5731 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson6b11ad22009-12-23 17:05:59 +00005732 .block_erasers =
5733 {
5734 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005735 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005736 {16 * 1024, 1},
5737 {8 * 1024, 2},
5738 {32 * 1024, 1},
5739 {64 * 1024, 7},
5740 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005741 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005742 }, {
5743 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005744 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005745 },
5746 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005747 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005748 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005749 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00005750 },
5751
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005752 {
5753 .vendor = "Fujitsu",
5754 .name = "MBM29F400TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005755 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005756 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005757 .model_id = FUJITSU_MBM29F400TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005758 .total_size = 512,
5759 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005760 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005761 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005762 .probe = probe_jedec,
5763 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson6b11ad22009-12-23 17:05:59 +00005764 .block_erasers =
5765 {
5766 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005767 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005768 {64 * 1024, 7},
5769 {32 * 1024, 1},
5770 {8 * 1024, 2},
5771 {16 * 1024, 1},
5772 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005773 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005774 }, {
5775 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005776 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005777 },
5778 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005779 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005780 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005781 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00005782 },
5783
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005784 {
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005785 .vendor = "Fujitsu",
5786 .name = "MBM29LV160BE",
5787 .bustype = BUS_PARALLEL,
5788 .manufacture_id = FUJITSU_ID,
5789 .model_id = FUJITSU_MBM29LV160BE,
5790 .total_size = 2 * 1024,
5791 .page_size = 0,
5792 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET,
5793 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005794 .probe = probe_jedec,
5795 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005796 .block_erasers =
5797 {
5798 {
5799 .eraseblocks = {
5800 {16 * 1024, 1},
5801 {8 * 1024, 2},
5802 {32 * 1024, 1},
5803 {64 * 1024, 31},
5804 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005805 .block_erase = erase_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005806 }, {
5807 .eraseblocks = { {2048 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005808 .block_erase = erase_chip_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005809 },
5810 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005811 .write = write_jedec_1, /* Supports a fast mode too */
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005812 .read = read_memmapped,
5813 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */
5814 },
5815
5816 {
5817 .vendor = "Fujitsu",
5818 .name = "MBM29LV160TE",
5819 .bustype = BUS_PARALLEL,
5820 .manufacture_id = FUJITSU_ID,
5821 .model_id = FUJITSU_MBM29LV160TE,
5822 .total_size = 2 * 1024,
5823 .page_size = 0,
5824 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET,
5825 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005826 .probe = probe_jedec,
5827 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005828 .block_erasers =
5829 {
5830 {
5831 .eraseblocks = {
5832 {64 * 1024, 31},
5833 {32 * 1024, 1},
5834 {8 * 1024, 2},
5835 {16 * 1024, 1},
5836 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005837 .block_erase = erase_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005838 }, {
5839 .eraseblocks = { {2048 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005840 .block_erase = erase_chip_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005841 },
5842 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005843 .write = write_jedec_1, /* Supports a fast mode too */
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005844 .read = read_memmapped,
5845 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */
5846 },
5847
5848 {
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005849 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005850 .name = "GD25B128B/GD25Q128B",
Roman Titov95edc892015-04-03 21:29:04 +00005851 .bustype = BUS_SPI,
5852 .manufacture_id = GIGADEVICE_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005853 .model_id = GIGADEVICE_GD25Q128,
5854 .total_size = 16384,
Roman Titov95edc892015-04-03 21:29:04 +00005855 .page_size = 256,
5856 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
5857 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005858 .tested = TEST_OK_PREW,
Roman Titov95edc892015-04-03 21:29:04 +00005859 .probe = probe_spi_rdid,
5860 .probe_timing = TIMING_ZERO,
5861 .block_erasers =
5862 {
5863 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005864 .eraseblocks = { {4 * 1024, 4096} },
Roman Titov95edc892015-04-03 21:29:04 +00005865 .block_erase = spi_block_erase_20,
5866 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005867 .eraseblocks = { {32 * 1024, 512} },
Roman Titov95edc892015-04-03 21:29:04 +00005868 .block_erase = spi_block_erase_52,
5869 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005870 .eraseblocks = { {64 * 1024, 256} },
Roman Titov95edc892015-04-03 21:29:04 +00005871 .block_erase = spi_block_erase_d8,
5872 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005873 .eraseblocks = { {16 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00005874 .block_erase = spi_block_erase_60,
5875 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005876 .eraseblocks = { {16 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00005877 .block_erase = spi_block_erase_c7,
5878 }
5879 },
5880 .printlock = spi_prettyprint_status_register_bp4_srwd,
5881 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5882 .write = spi_chip_write_256,
5883 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Alan Green1f9cc7d2019-07-01 11:10:45 +10005884 .voltage = {2700, 3600},
Roman Titov95edc892015-04-03 21:29:04 +00005885 },
5886
5887 {
5888 .vendor = "GigaDevice",
Alan Green188127e2019-08-06 16:10:34 +10005889 .name = "GD25LQ128C/GD25LQ128D",
Roman Titov95edc892015-04-03 21:29:04 +00005890 .bustype = BUS_SPI,
5891 .manufacture_id = GIGADEVICE_ID,
Alan Green188127e2019-08-06 16:10:34 +10005892 .model_id = GIGADEVICE_GD25LQ128CD,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005893 .total_size = 16384,
Roman Titov95edc892015-04-03 21:29:04 +00005894 .page_size = 256,
5895 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
5896 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5897 .tested = TEST_UNTESTED,
5898 .probe = probe_spi_rdid,
5899 .probe_timing = TIMING_ZERO,
5900 .block_erasers =
5901 {
5902 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005903 .eraseblocks = { {4 * 1024, 4096} },
Roman Titov95edc892015-04-03 21:29:04 +00005904 .block_erase = spi_block_erase_20,
5905 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005906 .eraseblocks = { {32 * 1024, 512} },
Roman Titov95edc892015-04-03 21:29:04 +00005907 .block_erase = spi_block_erase_52,
5908 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005909 .eraseblocks = { {64 * 1024, 256} },
Roman Titov95edc892015-04-03 21:29:04 +00005910 .block_erase = spi_block_erase_d8,
5911 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005912 .eraseblocks = { {16 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00005913 .block_erase = spi_block_erase_60,
5914 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005915 .eraseblocks = { {16 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00005916 .block_erase = spi_block_erase_c7,
5917 }
5918 },
5919 .printlock = spi_prettyprint_status_register_bp4_srwd,
5920 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5921 .write = spi_chip_write_256,
5922 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5923 .voltage = {1695, 1950},
5924 },
5925
5926 {
5927 .vendor = "GigaDevice",
5928 .name = "GD25LQ16",
5929 .bustype = BUS_SPI,
5930 .manufacture_id = GIGADEVICE_ID,
5931 .model_id = GIGADEVICE_GD25LQ16,
5932 .total_size = 2048,
5933 .page_size = 256,
5934 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
5935 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5936 .tested = TEST_UNTESTED,
5937 .probe = probe_spi_rdid,
5938 .probe_timing = TIMING_ZERO,
5939 .block_erasers =
5940 {
5941 {
5942 .eraseblocks = { {4 * 1024, 512} },
5943 .block_erase = spi_block_erase_20,
5944 }, {
5945 .eraseblocks = { {32 * 1024, 64} },
5946 .block_erase = spi_block_erase_52,
5947 }, {
5948 .eraseblocks = { {64 * 1024, 32} },
5949 .block_erase = spi_block_erase_d8,
5950 }, {
5951 .eraseblocks = { {2 * 1024 * 1024, 1} },
5952 .block_erase = spi_block_erase_60,
5953 }, {
5954 .eraseblocks = { {2 * 1024 * 1024, 1} },
5955 .block_erase = spi_block_erase_c7,
5956 }
5957 },
5958 .printlock = spi_prettyprint_status_register_bp4_srwd,
5959 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5960 .write = spi_chip_write_256,
5961 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5962 .voltage = {1695, 1950},
5963 },
5964
5965 {
5966 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005967 .name = "GD25LQ32",
5968 .bustype = BUS_SPI,
5969 .manufacture_id = GIGADEVICE_ID,
5970 .model_id = GIGADEVICE_GD25LQ32,
5971 .total_size = 4096,
5972 .page_size = 256,
5973 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
5974 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5975 .tested = TEST_OK_PREW,
5976 .probe = probe_spi_rdid,
5977 .probe_timing = TIMING_ZERO,
5978 .block_erasers =
5979 {
5980 {
5981 .eraseblocks = { {4 * 1024, 1024} },
5982 .block_erase = spi_block_erase_20,
5983 }, {
5984 .eraseblocks = { {32 * 1024, 128} },
5985 .block_erase = spi_block_erase_52,
5986 }, {
5987 .eraseblocks = { {64 * 1024, 64} },
5988 .block_erase = spi_block_erase_d8,
5989 }, {
5990 .eraseblocks = { {4 * 1024 * 1024, 1} },
5991 .block_erase = spi_block_erase_60,
5992 }, {
5993 .eraseblocks = { {4 * 1024 * 1024, 1} },
5994 .block_erase = spi_block_erase_c7,
5995 }
5996 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005997 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005998 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5999 .write = spi_chip_write_256,
Roman Titov95edc892015-04-03 21:29:04 +00006000 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6001 .voltage = {1695, 1950},
6002 },
6003
6004 {
6005 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006006 .name = "GD25LQ40",
6007 .bustype = BUS_SPI,
6008 .manufacture_id = GIGADEVICE_ID,
6009 .model_id = GIGADEVICE_GD25LQ40,
6010 .total_size = 512,
6011 .page_size = 256,
6012 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6013 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6014 .tested = TEST_UNTESTED,
6015 .probe = probe_spi_rdid,
6016 .probe_timing = TIMING_ZERO,
6017 .block_erasers =
6018 {
6019 {
6020 .eraseblocks = { {4 * 1024, 128} },
6021 .block_erase = spi_block_erase_20,
6022 }, {
6023 .eraseblocks = { {32 * 1024, 16} },
6024 .block_erase = spi_block_erase_52,
6025 }, {
6026 .eraseblocks = { {64 * 1024, 8} },
6027 .block_erase = spi_block_erase_d8,
6028 }, {
6029 .eraseblocks = { {512 * 1024, 1} },
6030 .block_erase = spi_block_erase_60,
6031 }, {
6032 .eraseblocks = { {512 * 1024, 1} },
6033 .block_erase = spi_block_erase_c7,
6034 }
6035 },
6036 .printlock = spi_prettyprint_status_register_bp4_srwd,
6037 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6038 .write = spi_chip_write_256,
6039 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6040 .voltage = {1695, 1950},
6041 },
6042
6043 {
6044 .vendor = "GigaDevice",
Roman Titov95edc892015-04-03 21:29:04 +00006045 .name = "GD25LQ64(B)",
6046 .bustype = BUS_SPI,
6047 .manufacture_id = GIGADEVICE_ID,
6048 .model_id = GIGADEVICE_GD25LQ64,
6049 .total_size = 8192,
6050 .page_size = 256,
6051 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6052 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +00006053 .tested = TEST_OK_PREW,
Roman Titov95edc892015-04-03 21:29:04 +00006054 .probe = probe_spi_rdid,
6055 .probe_timing = TIMING_ZERO,
6056 .block_erasers =
6057 {
6058 {
6059 .eraseblocks = { {4 * 1024, 2048} },
6060 .block_erase = spi_block_erase_20,
6061 }, {
6062 .eraseblocks = { {32 * 1024, 256} },
6063 .block_erase = spi_block_erase_52,
6064 }, {
6065 .eraseblocks = { {64 * 1024, 128} },
6066 .block_erase = spi_block_erase_d8,
6067 }, {
6068 .eraseblocks = { {8 * 1024 * 1024, 1} },
6069 .block_erase = spi_block_erase_60,
6070 }, {
6071 .eraseblocks = { {8 * 1024 * 1024, 1} },
6072 .block_erase = spi_block_erase_c7,
6073 }
6074 },
6075 .printlock = spi_prettyprint_status_register_bp4_srwd,
6076 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6077 .write = spi_chip_write_256,
6078 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6079 .voltage = {1695, 1950},
6080 },
6081
6082 {
6083 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006084 .name = "GD25LQ80",
Roman Titov95edc892015-04-03 21:29:04 +00006085 .bustype = BUS_SPI,
6086 .manufacture_id = GIGADEVICE_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006087 .model_id = GIGADEVICE_GD25LQ80,
6088 .total_size = 1024,
Roman Titov95edc892015-04-03 21:29:04 +00006089 .page_size = 256,
6090 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6091 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6092 .tested = TEST_UNTESTED,
6093 .probe = probe_spi_rdid,
6094 .probe_timing = TIMING_ZERO,
6095 .block_erasers =
6096 {
6097 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006098 .eraseblocks = { {4 * 1024, 256} },
Roman Titov95edc892015-04-03 21:29:04 +00006099 .block_erase = spi_block_erase_20,
6100 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006101 .eraseblocks = { {32 * 1024, 32} },
Roman Titov95edc892015-04-03 21:29:04 +00006102 .block_erase = spi_block_erase_52,
6103 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006104 .eraseblocks = { {64 * 1024, 16} },
Roman Titov95edc892015-04-03 21:29:04 +00006105 .block_erase = spi_block_erase_d8,
6106 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006107 .eraseblocks = { {1 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00006108 .block_erase = spi_block_erase_60,
6109 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006110 .eraseblocks = { {1 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00006111 .block_erase = spi_block_erase_c7,
6112 }
6113 },
6114 .printlock = spi_prettyprint_status_register_bp4_srwd,
6115 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6116 .write = spi_chip_write_256,
6117 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6118 .voltage = {1695, 1950},
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006119 },
6120
6121 {
6122 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006123 .name = "GD25Q10",
6124 .bustype = BUS_SPI,
6125 .manufacture_id = GIGADEVICE_ID,
6126 .model_id = GIGADEVICE_GD25Q10,
6127 .total_size = 128,
6128 .page_size = 256,
6129 .feature_bits = FEATURE_WRSR_WREN,
6130 .tested = TEST_UNTESTED,
6131 .probe = probe_spi_rdid,
6132 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10006133 .block_erasers =
6134 {
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006135 {
6136 .eraseblocks = { {4 * 1024, 32} },
6137 .block_erase = spi_block_erase_20,
6138 }, {
6139 .eraseblocks = { {32 * 1024, 4} },
6140 .block_erase = spi_block_erase_52,
6141 }, {
6142 .eraseblocks = { {64 * 1024, 2} },
6143 .block_erase = spi_block_erase_d8,
6144 }, {
6145 .eraseblocks = { {128 * 1024, 1} },
6146 .block_erase = spi_block_erase_60,
6147 }, {
6148 .eraseblocks = { {128 * 1024, 1} },
6149 .block_erase = spi_block_erase_c7,
6150 }
6151 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006152 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006153 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6154 .write = spi_chip_write_256,
6155 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6156 .voltage = {2700, 3600},
6157 },
6158
6159 {
6160 .vendor = "GigaDevice",
Alan Green4f009122019-08-26 10:45:18 +10006161 .name = "GD25Q127C/GD25Q128C",
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006162 .bustype = BUS_SPI,
6163 .manufacture_id = GIGADEVICE_ID,
6164 .model_id = GIGADEVICE_GD25Q128,
6165 .total_size = 16384,
6166 .page_size = 256,
6167 /* OTP: 1536B total; read 0x48; write 0x42, erase 0x44 */
6168 /* QPI: enable 0x38, disable 0xFF */
6169 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Angel Ponsbce364c2018-09-30 20:04:14 +02006170 .tested = TEST_OK_PREW,
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006171 .probe = probe_spi_rdid,
6172 .probe_timing = TIMING_ZERO,
6173 .block_erasers =
6174 {
6175 {
6176 .eraseblocks = { {4 * 1024, 4096} },
6177 .block_erase = spi_block_erase_20,
6178 }, {
6179 .eraseblocks = { {32 * 1024, 512} },
6180 .block_erase = spi_block_erase_52,
6181 }, {
6182 .eraseblocks = { {64 * 1024, 256} },
6183 .block_erase = spi_block_erase_d8,
6184 }, {
6185 .eraseblocks = { {16 * 1024 * 1024, 1} },
6186 .block_erase = spi_block_erase_60,
6187 }, {
6188 .eraseblocks = { {16 * 1024 * 1024, 1} },
6189 .block_erase = spi_block_erase_c7,
6190 }
6191 },
6192 /* TODO: 2nd status reg (read 0x35, write 0x31) and 3rd status reg (read 0x15, write 0x11) */
6193 .printlock = spi_prettyprint_status_register_bp4_srwd,
6194 .unlock = spi_disable_blockprotect_bp4_srwd,
6195 .write = spi_chip_write_256,
6196 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6197 .voltage = {2700, 3600},
6198 },
6199
6200 {
6201 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006202 .name = "GD25Q16(B)",
6203 .bustype = BUS_SPI,
6204 .manufacture_id = GIGADEVICE_ID,
6205 .model_id = GIGADEVICE_GD25Q16,
6206 .total_size = 2048,
6207 .page_size = 256,
6208 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
6209 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6210 .tested = TEST_OK_PREW,
6211 .probe = probe_spi_rdid,
6212 .probe_timing = TIMING_ZERO,
6213 .block_erasers =
6214 {
6215 {
6216 .eraseblocks = { {4 * 1024, 512} },
6217 .block_erase = spi_block_erase_20,
6218 }, {
6219 .eraseblocks = { {32 * 1024, 64} },
6220 .block_erase = spi_block_erase_52,
6221 }, {
6222 .eraseblocks = { {64 * 1024, 32} },
6223 .block_erase = spi_block_erase_d8,
6224 }, {
6225 .eraseblocks = { {2 * 1024 * 1024, 1} },
6226 .block_erase = spi_block_erase_60,
6227 }, {
6228 .eraseblocks = { {2 * 1024 * 1024, 1} },
6229 .block_erase = spi_block_erase_c7,
6230 }
6231 },
6232 .printlock = spi_prettyprint_status_register_bp4_srwd,
6233 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6234 .write = spi_chip_write_256,
6235 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6236 .voltage = {2700, 3600},
6237 },
6238
6239 {
6240 .vendor = "GigaDevice",
6241 .name = "GD25Q20(B)",
6242 .bustype = BUS_SPI,
6243 .manufacture_id = GIGADEVICE_ID,
6244 .model_id = GIGADEVICE_GD25Q20,
6245 .total_size = 256,
6246 .page_size = 256,
6247 .feature_bits = FEATURE_WRSR_WREN,
6248 .tested = TEST_OK_PREW,
6249 .probe = probe_spi_rdid,
6250 .probe_timing = TIMING_ZERO,
6251 .block_erasers =
6252 {
6253 {
6254 .eraseblocks = { {4 * 1024, 64} },
6255 .block_erase = spi_block_erase_20,
6256 }, {
6257 .eraseblocks = { {32 * 1024, 8} },
6258 .block_erase = spi_block_erase_52,
6259 }, {
6260 .eraseblocks = { {64 * 1024, 4} },
6261 .block_erase = spi_block_erase_d8,
6262 }, {
6263 .eraseblocks = { {256 * 1024, 1} },
6264 .block_erase = spi_block_erase_60,
6265 }, {
6266 .eraseblocks = { {256 * 1024, 1} },
6267 .block_erase = spi_block_erase_c7,
6268 }
6269 },
6270 .printlock = spi_prettyprint_status_register_bp4_srwd,
6271 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6272 .write = spi_chip_write_256,
6273 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6274 .voltage = {2700, 3600},
6275 },
6276
6277 {
6278 .vendor = "GigaDevice",
Alan Green86fc9cf2019-08-26 15:02:12 +10006279 .name = "GD25Q256D",
6280 .bustype = BUS_SPI,
6281 .manufacture_id = GIGADEVICE_ID,
6282 .model_id = GIGADEVICE_GD25Q256D,
6283 .total_size = 32768,
6284 .page_size = 256,
6285 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
6286 .tested = TEST_UNTESTED,
6287 .probe = probe_spi_rdid,
6288 .probe_timing = TIMING_ZERO,
6289 .block_erasers =
6290 {
6291 {
6292 .eraseblocks = { {4 * 1024, 8192} },
Nico Huber5374dc32019-10-04 16:16:15 +02006293 .block_erase = spi_block_erase_21,
6294 }, {
6295 .eraseblocks = { {4 * 1024, 8192} },
Alan Green86fc9cf2019-08-26 15:02:12 +10006296 .block_erase = spi_block_erase_20,
6297 }, {
6298 .eraseblocks = { {32 * 1024, 1024} },
Nico Huber5374dc32019-10-04 16:16:15 +02006299 .block_erase = spi_block_erase_5c,
6300 }, {
6301 .eraseblocks = { {32 * 1024, 1024} },
Alan Green86fc9cf2019-08-26 15:02:12 +10006302 .block_erase = spi_block_erase_52,
6303 }, {
6304 .eraseblocks = { {64 * 1024, 512} },
Nico Huber5374dc32019-10-04 16:16:15 +02006305 .block_erase = spi_block_erase_dc,
6306 }, {
6307 .eraseblocks = { {64 * 1024, 512} },
Alan Green86fc9cf2019-08-26 15:02:12 +10006308 .block_erase = spi_block_erase_d8,
6309 }, {
6310 .eraseblocks = { {32 * 1024 * 1024, 1} },
6311 .block_erase = spi_block_erase_60,
6312 }, {
6313 .eraseblocks = { {32 * 1024 * 1024, 1} },
6314 .block_erase = spi_block_erase_c7,
6315 }
6316 },
6317 .printlock = spi_prettyprint_status_register_bp3_srwd,
6318 .unlock = spi_disable_blockprotect,
6319 .write = spi_chip_write_256,
6320 .read = spi_chip_read,
6321 .voltage = {2700, 3600},
6322 },
6323
6324 {
6325 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006326 .name = "GD25Q32(B)",
6327 .bustype = BUS_SPI,
6328 .manufacture_id = GIGADEVICE_ID,
6329 .model_id = GIGADEVICE_GD25Q32,
6330 .total_size = 4096,
6331 .page_size = 256,
6332 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6333 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6334 .tested = TEST_OK_PREW,
6335 .probe = probe_spi_rdid,
6336 .probe_timing = TIMING_ZERO,
6337 .block_erasers =
6338 {
6339 {
6340 .eraseblocks = { {4 * 1024, 1024} },
6341 .block_erase = spi_block_erase_20,
6342 }, {
6343 .eraseblocks = { {32 * 1024, 128} },
6344 .block_erase = spi_block_erase_52,
6345 }, {
6346 .eraseblocks = { {64 * 1024, 64} },
6347 .block_erase = spi_block_erase_d8,
6348 }, {
6349 .eraseblocks = { {4 * 1024 * 1024, 1} },
6350 .block_erase = spi_block_erase_60,
6351 }, {
6352 .eraseblocks = { {4 * 1024 * 1024, 1} },
6353 .block_erase = spi_block_erase_c7,
6354 }
6355 },
6356 .printlock = spi_prettyprint_status_register_bp4_srwd,
6357 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6358 .write = spi_chip_write_256,
6359 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6360 .voltage = {2700, 3600},
6361 },
6362
6363 {
6364 .vendor = "GigaDevice",
6365 .name = "GD25Q40(B)",
6366 .bustype = BUS_SPI,
6367 .manufacture_id = GIGADEVICE_ID,
6368 .model_id = GIGADEVICE_GD25Q40,
6369 .total_size = 512,
6370 .page_size = 256,
6371 .feature_bits = FEATURE_WRSR_WREN,
6372 .tested = TEST_UNTESTED,
6373 .probe = probe_spi_rdid,
6374 .probe_timing = TIMING_ZERO,
6375 .block_erasers =
6376 {
6377 {
6378 .eraseblocks = { {4 * 1024, 128} },
6379 .block_erase = spi_block_erase_20,
6380 }, {
6381 .eraseblocks = { {32 * 1024, 16} },
6382 .block_erase = spi_block_erase_52,
6383 }, {
6384 .eraseblocks = { {64 * 1024, 8} },
6385 .block_erase = spi_block_erase_d8,
6386 }, {
6387 .eraseblocks = { {512 * 1024, 1} },
6388 .block_erase = spi_block_erase_60,
6389 }, {
6390 .eraseblocks = { {512 * 1024, 1} },
6391 .block_erase = spi_block_erase_c7,
6392 }
6393 },
6394 .printlock = spi_prettyprint_status_register_bp4_srwd,
6395 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6396 .write = spi_chip_write_256,
6397 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6398 .voltage = {2700, 3600},
6399 },
6400
6401 {
6402 .vendor = "GigaDevice",
6403 .name = "GD25Q512",
6404 .bustype = BUS_SPI,
6405 .manufacture_id = GIGADEVICE_ID,
6406 .model_id = GIGADEVICE_GD25Q512,
6407 .total_size = 64,
6408 .page_size = 256,
6409 .feature_bits = FEATURE_WRSR_WREN,
6410 .tested = TEST_OK_PREW,
6411 .probe = probe_spi_rdid,
6412 .probe_timing = TIMING_ZERO,
6413 .block_erasers =
6414 {
6415 {
6416 .eraseblocks = { {4 * 1024, 16} },
6417 .block_erase = spi_block_erase_20,
6418 }, {
6419 .eraseblocks = { {32 * 1024, 2} },
6420 .block_erase = spi_block_erase_52,
6421 }, {
6422 .eraseblocks = { {64 * 1024, 1} },
6423 .block_erase = spi_block_erase_60,
6424 }, {
6425 .eraseblocks = { {64 * 1024, 1} },
6426 .block_erase = spi_block_erase_c7,
6427 }
6428 },
6429 .printlock = spi_prettyprint_status_register_bp4_srwd,
6430 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6431 .write = spi_chip_write_256,
6432 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6433 .voltage = {2700, 3600},
6434 },
6435
6436 {
6437 .vendor = "GigaDevice",
6438 .name = "GD25Q64(B)",
6439 .bustype = BUS_SPI,
6440 .manufacture_id = GIGADEVICE_ID,
6441 .model_id = GIGADEVICE_GD25Q64,
6442 .total_size = 8192,
6443 .page_size = 256,
6444 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6445 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6446 .tested = TEST_OK_PREW,
6447 .probe = probe_spi_rdid,
6448 .probe_timing = TIMING_ZERO,
6449 .block_erasers =
6450 {
6451 {
6452 .eraseblocks = { {4 * 1024, 2048} },
6453 .block_erase = spi_block_erase_20,
6454 }, {
6455 .eraseblocks = { {32 * 1024, 256} },
6456 .block_erase = spi_block_erase_52,
6457 }, {
6458 .eraseblocks = { {64 * 1024, 128} },
6459 .block_erase = spi_block_erase_d8,
6460 }, {
6461 .eraseblocks = { {8 * 1024 * 1024, 1} },
6462 .block_erase = spi_block_erase_60,
6463 }, {
6464 .eraseblocks = { {8 * 1024 * 1024, 1} },
6465 .block_erase = spi_block_erase_c7,
6466 }
6467 },
6468 .printlock = spi_prettyprint_status_register_bp4_srwd,
6469 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6470 .write = spi_chip_write_256,
6471 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6472 .voltage = {2700, 3600},
6473 },
6474
6475 {
6476 .vendor = "GigaDevice",
6477 .name = "GD25Q80(B)",
6478 .bustype = BUS_SPI,
6479 .manufacture_id = GIGADEVICE_ID,
6480 .model_id = GIGADEVICE_GD25Q80,
6481 .total_size = 1024,
6482 .page_size = 256,
6483 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
6484 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6485 .tested = TEST_OK_PREW,
6486 .probe = probe_spi_rdid,
6487 .probe_timing = TIMING_ZERO,
6488 .block_erasers =
6489 {
6490 {
6491 .eraseblocks = { {4 * 1024, 256} },
6492 .block_erase = spi_block_erase_20,
6493 }, {
6494 .eraseblocks = { {32 * 1024, 32} },
6495 .block_erase = spi_block_erase_52,
6496 }, {
6497 .eraseblocks = { {64 * 1024, 16} },
6498 .block_erase = spi_block_erase_d8,
6499 }, {
6500 .eraseblocks = { {1024 * 1024, 1} },
6501 .block_erase = spi_block_erase_60,
6502 }, {
6503 .eraseblocks = { {1024 * 1024, 1} },
6504 .block_erase = spi_block_erase_c7,
6505 }
6506 },
6507 .printlock = spi_prettyprint_status_register_bp4_srwd,
6508 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6509 .write = spi_chip_write_256,
6510 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6511 .voltage = {2700, 3600},
6512 },
6513
6514 {
6515 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006516 .name = "GD25T80",
6517 .bustype = BUS_SPI,
6518 .manufacture_id = GIGADEVICE_ID,
6519 .model_id = GIGADEVICE_GD25T80,
6520 .total_size = 1024,
6521 .page_size = 256,
6522 /* OTP: 256B total; enter 0x3A */
6523 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6524 .tested = TEST_UNTESTED,
6525 .probe = probe_spi_rdid,
6526 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10006527 .block_erasers =
6528 {
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006529 {
6530 .eraseblocks = { {4 * 1024, 256} },
6531 .block_erase = spi_block_erase_20,
6532 }, {
6533 .eraseblocks = { {64 * 1024, 16} },
6534 .block_erase = spi_block_erase_52,
6535 }, {
6536 .eraseblocks = { {64 * 1024, 16} },
6537 .block_erase = spi_block_erase_d8,
6538 }, {
6539 .eraseblocks = { {1024 * 1024, 1} },
6540 .block_erase = spi_block_erase_60,
6541 }, {
6542 .eraseblocks = { {1024 * 1024, 1} },
6543 .block_erase = spi_block_erase_c7,
6544 }
6545 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006546 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006547 .unlock = spi_disable_blockprotect,
6548 .write = spi_chip_write_256,
6549 .read = spi_chip_read,
Stefan Tauner352e50b2013-02-22 15:58:45 +00006550 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006551 },
6552
6553 {
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006554 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006555 .name = "GD25VQ16C",
6556 .bustype = BUS_SPI,
6557 .manufacture_id = GIGADEVICE_ID,
6558 .model_id = GIGADEVICE_GD25VQ16C,
6559 .total_size = 2 * 1024,
6560 .page_size = 256,
6561 /* Supports SFDP */
6562 /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */
6563 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6564 .tested = TEST_UNTESTED,
6565 .probe = probe_spi_rdid,
6566 .probe_timing = TIMING_ZERO,
6567 .block_erasers =
6568 {
6569 {
6570 .eraseblocks = { { 4 * 1024, 512} },
6571 .block_erase = spi_block_erase_20,
6572 }, {
6573 .eraseblocks = { { 32 * 1024, 64} },
6574 .block_erase = spi_block_erase_52,
6575 }, {
6576 .eraseblocks = { { 64 * 1024, 32} },
6577 .block_erase = spi_block_erase_d8,
6578 }, {
6579 .eraseblocks = { {2 * 1024 * 1024, 1} },
6580 .block_erase = spi_block_erase_60,
6581 }, {
6582 .eraseblocks = { {2 * 1024 * 1024, 1} },
6583 .block_erase = spi_block_erase_c7,
6584 }
6585 },
6586 .printlock = spi_prettyprint_status_register_bp4_srwd,
6587 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6588 .write = spi_chip_write_256,
6589 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6590 .voltage = {2300, 3600},
6591 },
6592
6593 {
6594 .vendor = "GigaDevice",
Hatim Kanchwalad0595352016-03-06 14:33:49 +00006595 .name = "GD25VQ21B",
6596 .bustype = BUS_SPI,
6597 .manufacture_id = GIGADEVICE_ID,
6598 .model_id = GIGADEVICE_GD25VQ21B,
6599 .total_size = 256,
6600 .page_size = 256,
6601 /* OTP: 1536B total; read 0x48, write 0x42, erase 0x44 */
6602 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6603 .tested = TEST_UNTESTED,
6604 .probe = probe_spi_rdid,
6605 .probe_timing = TIMING_ZERO,
6606 .block_erasers =
6607 {
6608 {
6609 .eraseblocks = { { 4 * 1024, 64} },
6610 .block_erase = spi_block_erase_20,
6611 }, {
6612 .eraseblocks = { { 32 * 1024, 8} },
6613 .block_erase = spi_block_erase_52,
6614 }, {
6615 .eraseblocks = { { 64 * 1024, 4} },
6616 .block_erase = spi_block_erase_d8,
6617 }, {
6618 .eraseblocks = { {256 * 1024, 1} },
6619 .block_erase = spi_block_erase_60,
6620 }, {
6621 .eraseblocks = { {256 * 1024, 1} },
6622 .block_erase = spi_block_erase_c7,
6623 }
6624 },
6625 .printlock = spi_prettyprint_status_register_bp4_srwd,
6626 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6627 .write = spi_chip_write_256,
6628 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6629 .voltage = {2300, 3600},
6630 },
6631
6632 {
6633 .vendor = "GigaDevice",
6634 .name = "GD25VQ40C",
6635 .bustype = BUS_SPI,
6636 .manufacture_id = GIGADEVICE_ID,
6637 .model_id = GIGADEVICE_GD25VQ41B,
6638 .total_size = 512,
6639 .page_size = 256,
6640 /* Supports SFDP */
6641 /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */
6642 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6643 .tested = TEST_UNTESTED,
6644 .probe = probe_spi_rdid,
6645 .probe_timing = TIMING_ZERO,
6646 .block_erasers =
6647 {
6648 {
6649 .eraseblocks = { { 4 * 1024, 128} },
6650 .block_erase = spi_block_erase_20,
6651 }, {
6652 .eraseblocks = { { 32 * 1024, 16} },
6653 .block_erase = spi_block_erase_52,
6654 }, {
6655 .eraseblocks = { { 64 * 1024, 8} },
6656 .block_erase = spi_block_erase_d8,
6657 }, {
6658 .eraseblocks = { {512 * 1024, 1} },
6659 .block_erase = spi_block_erase_60,
6660 }, {
6661 .eraseblocks = { {512 * 1024, 1} },
6662 .block_erase = spi_block_erase_c7,
6663 }
6664 },
6665 .printlock = spi_prettyprint_status_register_bp4_srwd,
6666 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6667 .write = spi_chip_write_256,
6668 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6669 .voltage = {2300, 3600},
6670 },
6671
6672 {
6673 .vendor = "GigaDevice",
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006674 .name = "GD25VQ41B",
6675 .bustype = BUS_SPI,
6676 .manufacture_id = GIGADEVICE_ID,
6677 .model_id = GIGADEVICE_GD25VQ41B,
6678 .total_size = 512,
6679 .page_size = 256,
6680 /* OTP: 1536B total; read 0x48, write 0x42, erase 0x44 */
6681 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner0be072c2016-03-13 15:16:30 +00006682 .tested = TEST_OK_PREW,
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006683 .probe = probe_spi_rdid,
6684 .probe_timing = TIMING_ZERO,
Stefan Tauner0be072c2016-03-13 15:16:30 +00006685 .block_erasers =
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006686 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00006687 {
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 }
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006703 },
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006704 .printlock = spi_prettyprint_status_register_bp4_srwd,
Hatim Kanchwalad0595352016-03-06 14:33:49 +00006705 .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 = {2300, 3600},
6709 },
6710
6711 {
6712 .vendor = "GigaDevice",
6713 .name = "GD25VQ80C",
6714 .bustype = BUS_SPI,
6715 .manufacture_id = GIGADEVICE_ID,
6716 .model_id = GIGADEVICE_GD25VQ80C,
6717 .total_size = 1024,
6718 .page_size = 256,
6719 /* Supports SFDP */
6720 /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */
6721 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6722 .tested = TEST_UNTESTED,
6723 .probe = probe_spi_rdid,
6724 .probe_timing = TIMING_ZERO,
6725 .block_erasers =
6726 {
6727 {
6728 .eraseblocks = { { 4 * 1024, 256} },
6729 .block_erase = spi_block_erase_20,
6730 }, {
6731 .eraseblocks = { { 32 * 1024, 32} },
6732 .block_erase = spi_block_erase_52,
6733 }, {
6734 .eraseblocks = { { 64 * 1024, 16} },
6735 .block_erase = spi_block_erase_d8,
6736 }, {
6737 .eraseblocks = { {1024 * 1024, 1} },
6738 .block_erase = spi_block_erase_60,
6739 }, {
6740 .eraseblocks = { {1024 * 1024, 1} },
6741 .block_erase = spi_block_erase_c7,
6742 }
6743 },
6744 .printlock = spi_prettyprint_status_register_bp4_srwd,
6745 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6746 .write = spi_chip_write_256,
6747 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6748 .voltage = {2300, 3600},
6749 },
6750
6751 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006752 .vendor = "Hyundai",
6753 .name = "HY29F002B",
6754 .bustype = BUS_PARALLEL,
6755 .manufacture_id = HYUNDAI_ID,
6756 .model_id = HYUNDAI_HY29F002B,
6757 .total_size = 256,
6758 .page_size = 256 * 1024,
6759 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Hatim Kanchwalad0595352016-03-06 14:33:49 +00006760 .tested = TEST_UNTESTED,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006761 .probe = probe_jedec,
6762 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Hatim Kanchwalad0595352016-03-06 14:33:49 +00006763 .block_erasers =
6764 {
6765 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006766 .eraseblocks = {
6767 {16 * 1024, 1},
6768 {8 * 1024, 2},
6769 {32 * 1024, 1},
6770 {64 * 1024, 3},
6771 },
6772 .block_erase = erase_sector_jedec,
Hatim Kanchwalad0595352016-03-06 14:33:49 +00006773 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006774 .eraseblocks = { {256 * 1024, 1} },
6775 .block_erase = erase_chip_block_jedec,
6776 },
Hatim Kanchwalad0595352016-03-06 14:33:49 +00006777 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10006778 .write = write_jedec_1,
6779 .read = read_memmapped,
6780 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006781 },
6782
6783 {
David Borgc96a8bd2010-06-21 16:12:22 +00006784 .vendor = "Hyundai",
6785 .name = "HY29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006786 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00006787 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006788 .model_id = HYUNDAI_HY29F002T,
David Borgc96a8bd2010-06-21 16:12:22 +00006789 .total_size = 256,
6790 .page_size = 256 * 1024,
6791 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006792 .tested = TEST_OK_PRE,
David Borgc96a8bd2010-06-21 16:12:22 +00006793 .probe = probe_jedec,
6794 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6795 .block_erasers =
6796 {
6797 {
6798 .eraseblocks = {
6799 {64 * 1024, 3},
6800 {32 * 1024, 1},
6801 {8 * 1024, 2},
6802 {16 * 1024, 1},
6803 },
6804 .block_erase = erase_sector_jedec,
6805 }, {
6806 .eraseblocks = { {256 * 1024, 1} },
6807 .block_erase = erase_chip_block_jedec,
6808 },
6809 },
6810 .write = write_jedec_1,
6811 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006812 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00006813 },
6814
6815 {
6816 .vendor = "Hyundai",
Joshua Roysf1324e02010-09-16 00:51:51 +00006817 .name = "HY29F040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006818 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00006819 .manufacture_id = HYUNDAI_ID,
6820 .model_id = HYUNDAI_HY29F040A,
6821 .total_size = 512,
6822 .page_size = 64 * 1024,
6823 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
6824 .tested = TEST_UNTESTED,
6825 .probe = probe_jedec,
6826 .probe_timing = TIMING_ZERO,
6827 .block_erasers =
6828 {
6829 {
6830 .eraseblocks = { {64 * 1024, 8} },
6831 .block_erase = erase_sector_jedec,
6832 }, {
6833 .eraseblocks = { {512 * 1024, 1} },
6834 .block_erase = erase_chip_block_jedec,
6835 },
6836 },
6837 .write = write_jedec_1,
6838 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006839 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00006840 },
6841
6842 {
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00006843 .vendor = "ISSI",
Angel Pons2ef47f32018-09-30 16:47:30 +02006844 .name = "IS25LP064",
6845 .bustype = BUS_SPI,
6846 .manufacture_id = ISSI_ID_SPI,
6847 .model_id = ISSI_IS25LP064,
6848 .total_size = 8192,
6849 .page_size = 256,
6850 /* OTP: 1024B total; read 0x48; write 0x42 */
6851 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6852 .tested = TEST_UNTESTED,
6853 .probe = probe_spi_rdid,
6854 .probe_timing = TIMING_ZERO,
6855 .block_erasers =
6856 {
6857 {
6858 .eraseblocks = { {4 * 1024, 2048} },
6859 .block_erase = spi_block_erase_20,
6860 }, {
6861 .eraseblocks = { {4 * 1024, 2048} },
6862 .block_erase = spi_block_erase_d7,
6863 }, {
6864 .eraseblocks = { {32 * 1024, 256} },
6865 .block_erase = spi_block_erase_52,
6866 }, {
6867 .eraseblocks = { {64 * 1024, 128} },
6868 .block_erase = spi_block_erase_d8,
6869 }, {
6870 .eraseblocks = { {8 * 1024 * 1024, 1} },
6871 .block_erase = spi_block_erase_60,
6872 }, {
6873 .eraseblocks = { {8 * 1024 * 1024, 1} },
6874 .block_erase = spi_block_erase_c7,
6875 }
6876 },
6877 .unlock = spi_disable_blockprotect,
6878 .write = spi_chip_write_256,
6879 .read = spi_chip_read,
6880 .voltage = {2300, 3600},
6881 },
6882
6883 {
6884 .vendor = "ISSI",
David Hendricks3083ed92017-05-02 13:25:56 -07006885 .name = "IS25LP128",
6886 .bustype = BUS_SPI,
6887 .manufacture_id = ISSI_ID_SPI,
6888 .model_id = ISSI_IS25LP128,
6889 .total_size = 16384,
6890 .page_size = 256,
6891 /* OTP: 1024B total; read 0x48; write 0x42 */
6892 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6893 .tested = TEST_OK_PREW,
6894 .probe = probe_spi_rdid,
6895 .probe_timing = TIMING_ZERO,
6896 .block_erasers =
6897 {
6898 {
6899 .eraseblocks = { {4 * 1024, 4096} },
6900 .block_erase = spi_block_erase_20,
6901 }, {
6902 .eraseblocks = { {4 * 1024, 4096} },
6903 .block_erase = spi_block_erase_d7,
6904 }, {
6905 .eraseblocks = { {32 * 1024, 512} },
6906 .block_erase = spi_block_erase_52,
6907 }, {
6908 .eraseblocks = { {64 * 1024, 256} },
6909 .block_erase = spi_block_erase_d8,
6910 }, {
6911 .eraseblocks = { {16 * 1024 * 1024, 1} },
6912 .block_erase = spi_block_erase_60,
6913 }, {
6914 .eraseblocks = { {16 * 1024 * 1024, 1} },
6915 .block_erase = spi_block_erase_c7,
6916 }
6917 },
6918 .unlock = spi_disable_blockprotect,
6919 .write = spi_chip_write_256,
6920 .read = spi_chip_read,
6921 .voltage = {2300, 3600},
6922 },
6923
6924 {
6925 .vendor = "ISSI",
David Hendricks61818dc2018-10-28 01:02:21 +00006926 .name = "IS25LP256",
6927 .bustype = BUS_SPI,
6928 .manufacture_id = ISSI_ID_SPI,
6929 .model_id = ISSI_IS25LP256,
6930 .total_size = 32768,
6931 .page_size = 256,
6932 /* supports SFDP */
6933 /* OTP: 1024B total; read 0x68; write 0x62, erase 0x64, read ID 0x4B */
6934 /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */
6935 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA | FEATURE_4BA_ENTER_EAR7,
6936 .tested = TEST_OK_PREW,
6937 .probe = probe_spi_rdid,
6938 .probe_timing = TIMING_ZERO,
6939 .block_erasers =
6940 {
6941 {
6942 .eraseblocks = { {4 * 1024, 8192} },
6943 .block_erase = spi_block_erase_21,
6944 }, {
6945 .eraseblocks = { {4 * 1024, 8192} },
6946 .block_erase = spi_block_erase_20,
6947 /* could also use spi_block_erase_d7 */
6948 }, {
6949 .eraseblocks = { {32 * 1024, 1024} },
6950 .block_erase = spi_block_erase_5c,
6951 }, {
6952 .eraseblocks = { {32 * 1024, 1024} },
6953 .block_erase = spi_block_erase_52,
6954 }, {
6955 .eraseblocks = { {64 * 1024, 512} },
6956 .block_erase = spi_block_erase_dc,
6957 }, {
6958 .eraseblocks = { {64 * 1024, 512} },
6959 .block_erase = spi_block_erase_d8,
6960 }, {
6961 .eraseblocks = { {32 * 1024 * 1024, 1} },
6962 .block_erase = spi_block_erase_60,
6963 }, {
6964 .eraseblocks = { {32 * 1024 * 1024, 1} },
6965 .block_erase = spi_block_erase_c7,
6966 }
6967 },
6968 .unlock = spi_disable_blockprotect,
6969 .write = spi_chip_write_256,
6970 .read = spi_chip_read,
6971 .voltage = {2300, 3600},
6972 },
6973
6974 {
6975 .vendor = "ISSI",
Nico Huberb27b8d12018-10-02 20:46:21 +02006976 .name = "IS25WP032",
6977 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +10006978 .manufacture_id = ISSI_ID_SPI,
Nico Huberb27b8d12018-10-02 20:46:21 +02006979 .model_id = ISSI_IS25WP032,
6980 .total_size = 4096,
6981 .page_size = 256,
6982 /* OTP: 1024B total; read 0x48; write 0x42 */
6983 /* QPI enable 0x35, disable 0xF5 */
6984 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6985 .tested = TEST_UNTESTED,
6986 .probe = probe_spi_rdid,
6987 .probe_timing = TIMING_ZERO,
6988 .block_erasers =
6989 {
6990 {
6991 .eraseblocks = { {4 * 1024, 1024} },
6992 .block_erase = spi_block_erase_20,
6993 }, {
6994 .eraseblocks = { {4 * 1024, 1024} },
6995 .block_erase = spi_block_erase_d7,
6996 }, {
6997 .eraseblocks = { {32 * 1024, 128} },
6998 .block_erase = spi_block_erase_52,
6999 }, {
7000 .eraseblocks = { {64 * 1024, 64} },
7001 .block_erase = spi_block_erase_d8,
7002 }, {
7003 .eraseblocks = { {4 * 1024 * 1024, 1} },
7004 .block_erase = spi_block_erase_60,
7005 }, {
7006 .eraseblocks = { {4 * 1024 * 1024, 1} },
7007 .block_erase = spi_block_erase_c7,
7008 }
7009 },
7010 .unlock = spi_disable_blockprotect,
7011 .write = spi_chip_write_256,
7012 .read = spi_chip_read,
7013 .voltage = {1650, 1950},
7014 },
7015
7016 {
7017 .vendor = "ISSI",
7018 .name = "IS25WP064",
7019 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +10007020 .manufacture_id = ISSI_ID_SPI,
Nico Huberb27b8d12018-10-02 20:46:21 +02007021 .model_id = ISSI_IS25WP064,
7022 .total_size = 8192,
7023 .page_size = 256,
7024 /* OTP: 1024B total; read 0x48; write 0x42 */
7025 /* QPI enable 0x35, disable 0xF5 */
7026 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7027 .tested = TEST_OK_PREW,
7028 .probe = probe_spi_rdid,
7029 .probe_timing = TIMING_ZERO,
7030 .block_erasers =
7031 {
7032 {
7033 .eraseblocks = { {4 * 1024, 2048} },
7034 .block_erase = spi_block_erase_20,
7035 }, {
7036 .eraseblocks = { {4 * 1024, 2048} },
7037 .block_erase = spi_block_erase_d7,
7038 }, {
7039 .eraseblocks = { {32 * 1024, 256} },
7040 .block_erase = spi_block_erase_52,
7041 }, {
7042 .eraseblocks = { {64 * 1024, 128} },
7043 .block_erase = spi_block_erase_d8,
7044 }, {
7045 .eraseblocks = { {8 * 1024 * 1024, 1} },
7046 .block_erase = spi_block_erase_60,
7047 }, {
7048 .eraseblocks = { {8 * 1024 * 1024, 1} },
7049 .block_erase = spi_block_erase_c7,
7050 }
7051 },
7052 .unlock = spi_disable_blockprotect,
7053 .write = spi_chip_write_256,
7054 .read = spi_chip_read,
7055 .voltage = {1650, 1950},
7056 },
7057
7058 {
7059 .vendor = "ISSI",
David Hendricks3083ed92017-05-02 13:25:56 -07007060 .name = "IS25WP128",
7061 .bustype = BUS_SPI,
7062 .manufacture_id = ISSI_ID_SPI,
7063 .model_id = ISSI_IS25WP128,
7064 .total_size = 16384,
7065 .page_size = 256,
7066 /* OTP: 1024B total; read 0x48; write 0x42 */
Nico Huberb27b8d12018-10-02 20:46:21 +02007067 /* QPI enable 0x35, disable 0xF5 */
7068 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
David Hendricks3083ed92017-05-02 13:25:56 -07007069 .tested = TEST_OK_PREW,
7070 .probe = probe_spi_rdid,
7071 .probe_timing = TIMING_ZERO,
7072 .block_erasers =
7073 {
7074 {
7075 .eraseblocks = { {4 * 1024, 4096} },
7076 .block_erase = spi_block_erase_20,
7077 }, {
7078 .eraseblocks = { {4 * 1024, 4096} },
7079 .block_erase = spi_block_erase_d7,
7080 }, {
7081 .eraseblocks = { {32 * 1024, 512} },
7082 .block_erase = spi_block_erase_52,
7083 }, {
7084 .eraseblocks = { {64 * 1024, 256} },
7085 .block_erase = spi_block_erase_d8,
7086 }, {
7087 .eraseblocks = { {16 * 1024 * 1024, 1} },
7088 .block_erase = spi_block_erase_60,
7089 }, {
7090 .eraseblocks = { {16 * 1024 * 1024, 1} },
7091 .block_erase = spi_block_erase_c7,
7092 }
7093 },
7094 .unlock = spi_disable_blockprotect,
7095 .write = spi_chip_write_256,
7096 .read = spi_chip_read,
7097 .voltage = {1650, 1950},
7098 },
7099
7100 {
7101 .vendor = "ISSI",
David Hendricks61818dc2018-10-28 01:02:21 +00007102 .name = "IS25WP256",
7103 .bustype = BUS_SPI,
7104 .manufacture_id = ISSI_ID_SPI,
7105 .model_id = ISSI_IS25WP256,
7106 .total_size = 32768,
7107 .page_size = 256,
7108 /* supports SFDP */
7109 /* OTP: 1024B total; read 0x68; write 0x62, erase 0x64, read ID 0x4B */
7110 /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */
7111 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA | FEATURE_4BA_ENTER_EAR7,
7112 .tested = TEST_OK_PREW,
7113 .probe = probe_spi_rdid,
7114 .probe_timing = TIMING_ZERO,
7115 .block_erasers =
7116 {
7117 {
7118 .eraseblocks = { {4 * 1024, 8192} },
7119 .block_erase = spi_block_erase_21,
7120 }, {
7121 .eraseblocks = { {4 * 1024, 8192} },
7122 .block_erase = spi_block_erase_20,
7123 /* could also use spi_block_erase_d7 */
7124 }, {
7125 .eraseblocks = { {32 * 1024, 1024} },
7126 .block_erase = spi_block_erase_5c,
7127 }, {
7128 .eraseblocks = { {32 * 1024, 1024} },
7129 .block_erase = spi_block_erase_52,
7130 }, {
7131 .eraseblocks = { {64 * 1024, 512} },
7132 .block_erase = spi_block_erase_dc,
7133 }, {
7134 .eraseblocks = { {64 * 1024, 512} },
7135 .block_erase = spi_block_erase_d8,
7136 }, {
7137 .eraseblocks = { {32 * 1024 * 1024, 1} },
7138 .block_erase = spi_block_erase_60,
7139 }, {
7140 .eraseblocks = { {32 * 1024 * 1024, 1} },
7141 .block_erase = spi_block_erase_c7,
7142 }
7143 },
7144 .unlock = spi_disable_blockprotect,
7145 .write = spi_chip_write_256,
7146 .read = spi_chip_read,
7147 .voltage = {1650, 1950},
7148 },
7149
7150 {
7151 .vendor = "ISSI",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007152 .name = "IS29GL064B",
7153 .bustype = BUS_PARALLEL,
7154 .manufacture_id = ISSI_ID,
7155 .model_id = ISSI_PMC_IS29GL064B,
7156 .total_size = 8192,
7157 .page_size = 128 * 1024, /* actual page size is 16 */
7158 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7159 .tested = TEST_UNTESTED,
7160 .probe = probe_jedec_29gl,
7161 .probe_timing = TIMING_ZERO,
7162 .block_erasers =
7163 {
7164 {
7165 .eraseblocks = {
7166 {8 * 1024, 8},
7167 {64 * 1024, 127},
7168 },
7169 .block_erase = erase_sector_jedec,
7170 }, {
7171 .eraseblocks = { {8 * 1024 * 1024, 1} },
7172 .block_erase = erase_chip_block_jedec,
7173 },
7174 },
7175 .write = write_jedec_1,
7176 .read = read_memmapped,
7177 .voltage = {2700, 3600},
7178 },
7179
7180 {
7181 .vendor = "ISSI",
Alan Green1f9cc7d2019-07-01 11:10:45 +10007182 .name = "IS29GL064H/L",
7183 .bustype = BUS_PARALLEL,
7184 .manufacture_id = ISSI_ID,
7185 .model_id = ISSI_PMC_IS29GL064HL,
7186 .total_size = 8192,
7187 .page_size = 128 * 1024, /* actual page size is 16 */
7188 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7189 .tested = TEST_UNTESTED,
7190 .probe = probe_jedec_29gl,
7191 .probe_timing = TIMING_ZERO,
7192 .block_erasers =
7193 {
7194 {
7195 .eraseblocks = { {64 * 1024, 128} },
7196 .block_erase = erase_sector_jedec,
7197 }, {
7198 .eraseblocks = { {8 * 1024 * 1024, 1} },
7199 .block_erase = erase_chip_block_jedec,
7200 },
7201 },
7202 .write = write_jedec_1,
7203 .read = read_memmapped,
7204 .voltage = {2700, 3600},
7205 },
7206
7207 {
7208 .vendor = "ISSI",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007209 .name = "IS29GL064T",
7210 .bustype = BUS_PARALLEL,
7211 .manufacture_id = ISSI_ID,
7212 .model_id = ISSI_PMC_IS29GL064T,
7213 .total_size = 8192,
7214 .page_size = 128 * 1024, /* actual page size is 16 */
7215 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7216 .tested = TEST_UNTESTED,
7217 .probe = probe_jedec_29gl,
7218 .probe_timing = TIMING_ZERO,
7219 .block_erasers =
7220 {
7221 {
7222 .eraseblocks = {
7223 {64 * 1024, 127},
7224 {8 * 1024, 8},
7225 },
7226 .block_erase = erase_sector_jedec,
7227 }, {
7228 .eraseblocks = { {8 * 1024 * 1024, 1} },
7229 .block_erase = erase_chip_block_jedec,
7230 },
7231 },
7232 .write = write_jedec_1,
7233 .read = read_memmapped,
7234 .voltage = {2700, 3600},
7235 },
7236
7237 {
7238 .vendor = "ISSI",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007239 .name = "IS29GL128H/L",
7240 .bustype = BUS_PARALLEL,
7241 .manufacture_id = ISSI_ID,
7242 .model_id = ISSI_PMC_IS29GL128HL,
7243 .total_size = 16384,
7244 .page_size = 128 * 1024, /* actual page size is 16 */
7245 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7246 .tested = TEST_UNTESTED,
7247 .probe = probe_jedec_29gl,
7248 .probe_timing = TIMING_ZERO,
7249 .block_erasers =
7250 {
7251 {
7252 .eraseblocks = { {128 * 1024, 128} },
7253 .block_erase = erase_sector_jedec,
7254 }, {
7255 .eraseblocks = { {16 * 1024 * 1024, 1} },
7256 .block_erase = erase_chip_block_jedec,
7257 },
7258 },
7259 .write = write_jedec_1,
7260 .read = read_memmapped,
7261 .voltage = {2700, 3600},
7262 },
7263
7264 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007265 .vendor = "Intel",
7266 .name = "25F160S33B8",
7267 .bustype = BUS_SPI,
7268 .manufacture_id = INTEL_ID,
7269 .model_id = INTEL_25F160S33B8,
7270 .total_size = 2048,
7271 .page_size = 256,
7272 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
7273 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7274 .tested = TEST_UNTESTED,
7275 .probe = probe_spi_rdid,
7276 .probe_timing = TIMING_ZERO,
7277 .block_erasers =
7278 {
7279 {
7280 /* This chip supports erasing of the 8 so-called "parameter blocks" with
7281 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
7282 * have no effect on the memory contents, but sets a flag in the SR.
7283 .eraseblocks = {
7284 {8 * 1024, 8},
7285 {64 * 1024, 31} // inaccessible
7286 },
7287 .block_erase = spi_block_erase_40,
7288 }, { */
7289 .eraseblocks = { {64 * 1024, 32} },
7290 .block_erase = spi_block_erase_d8,
7291 }, {
7292 .eraseblocks = { {2 * 1024 * 1024, 1} },
7293 .block_erase = spi_block_erase_c7,
7294 }
7295 },
7296 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
7297 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
7298 .write = spi_chip_write_256,
7299 .read = spi_chip_read, /* also fast read 0x0B */
7300 .voltage = {2700, 3600},
7301 },
7302
7303 {
7304 .vendor = "Intel",
7305 .name = "25F160S33T8",
7306 .bustype = BUS_SPI,
7307 .manufacture_id = INTEL_ID,
7308 .model_id = INTEL_25F160S33T8,
7309 .total_size = 2048,
7310 .page_size = 256,
7311 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
7312 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7313 .tested = TEST_UNTESTED,
7314 .probe = probe_spi_rdid,
7315 .probe_timing = TIMING_ZERO,
7316 .block_erasers =
7317 {
7318 {
7319 /* This chip supports erasing of the 8 so-called "parameter blocks" with
7320 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
7321 * have no effect on the memory contents, but sets a flag in the SR.
7322 .eraseblocks = {
7323 {64 * 1024, 31}, // inaccessible
7324 {8 * 1024, 8}
7325 },
7326 .block_erase = spi_block_erase_40,
7327 }, { */
7328 .eraseblocks = { {64 * 1024, 32} },
7329 .block_erase = spi_block_erase_d8,
7330 }, {
7331 .eraseblocks = { {2 * 1024 * 1024, 1} },
7332 .block_erase = spi_block_erase_c7,
7333 }
7334 },
7335 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
7336 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
7337 .write = spi_chip_write_256,
7338 .read = spi_chip_read, /* also fast read 0x0B */
7339 .voltage = {2700, 3600},
7340 },
7341
7342 {
7343 .vendor = "Intel",
7344 .name = "25F320S33B8",
7345 .bustype = BUS_SPI,
7346 .manufacture_id = INTEL_ID,
7347 .model_id = INTEL_25F320S33B8,
7348 .total_size = 4096,
7349 .page_size = 256,
7350 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
7351 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7352 .tested = TEST_UNTESTED,
7353 .probe = probe_spi_rdid,
7354 .probe_timing = TIMING_ZERO,
7355 .block_erasers =
7356 {
7357 {
7358 /* This chip supports erasing of the 8 so-called "parameter blocks" with
7359 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
7360 * have no effect on the memory contents, but sets a flag in the SR.
7361 .eraseblocks = {
7362 {8 * 1024, 8},
7363 {64 * 1024, 63} // inaccessible
7364 },
7365 .block_erase = spi_block_erase_40,
7366 }, { */
7367 .eraseblocks = { {64 * 1024, 64} },
7368 .block_erase = spi_block_erase_d8,
7369 }, {
7370 .eraseblocks = { {4 * 1024 * 1024, 1} },
7371 .block_erase = spi_block_erase_c7,
7372 }
7373 },
7374 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
7375 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
7376 .write = spi_chip_write_256,
7377 .read = spi_chip_read, /* also fast read 0x0B */
7378 .voltage = {2700, 3600},
7379 },
7380
7381 {
7382 .vendor = "Intel",
7383 .name = "25F320S33T8",
7384 .bustype = BUS_SPI,
7385 .manufacture_id = INTEL_ID,
7386 .model_id = INTEL_25F320S33T8,
7387 .total_size = 4096,
7388 .page_size = 256,
7389 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
7390 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7391 .tested = TEST_UNTESTED,
7392 .probe = probe_spi_rdid,
7393 .probe_timing = TIMING_ZERO,
7394 .block_erasers =
7395 {
7396 {
7397 /* This chip supports erasing of the 8 so-called "parameter blocks" with
7398 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
7399 * have no effect on the memory contents, but sets a flag in the SR.
7400 .eraseblocks = {
7401 {64 * 1024, 63}, // inaccessible
7402 {8 * 1024, 8}
7403 },
7404 .block_erase = spi_block_erase_40,
7405 }, { */
7406 .eraseblocks = { {64 * 1024, 64} },
7407 .block_erase = spi_block_erase_d8,
7408 }, {
7409 .eraseblocks = { {4 * 1024 * 1024, 1} },
7410 .block_erase = spi_block_erase_c7,
7411 }
7412 },
7413 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
7414 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
7415 .write = spi_chip_write_256,
7416 .read = spi_chip_read, /* also fast read 0x0B */
7417 .voltage = {2700, 3600},
7418 },
7419
7420 {
7421 .vendor = "Intel",
7422 .name = "25F640S33B8",
7423 .bustype = BUS_SPI,
7424 .manufacture_id = INTEL_ID,
7425 .model_id = INTEL_25F640S33B8,
7426 .total_size = 8192,
7427 .page_size = 256,
7428 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
7429 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7430 .tested = TEST_UNTESTED,
7431 .probe = probe_spi_rdid,
7432 .probe_timing = TIMING_ZERO,
7433 .block_erasers =
7434 {
7435 {
7436 /* This chip supports erasing of the 8 so-called "parameter blocks" with
7437 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
7438 * have no effect on the memory contents, but sets a flag in the SR.
7439 .eraseblocks = {
7440 {8 * 1024, 8},
7441 {64 * 1024, 127} // inaccessible
7442 },
7443 .block_erase = spi_block_erase_40,
7444 }, { */
7445 .eraseblocks = { {64 * 1024, 128} },
7446 .block_erase = spi_block_erase_d8,
7447 }, {
7448 .eraseblocks = { {8 * 1024 * 1024, 1} },
7449 .block_erase = spi_block_erase_c7,
7450 }
7451 },
7452 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
7453 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
7454 .write = spi_chip_write_256,
7455 .read = spi_chip_read, /* also fast read 0x0B */
7456 .voltage = {2700, 3600},
7457 },
7458
7459 {
7460 .vendor = "Intel",
7461 .name = "25F640S33T8",
7462 .bustype = BUS_SPI,
7463 .manufacture_id = INTEL_ID,
7464 .model_id = INTEL_25F640S33T8,
7465 .total_size = 8192,
7466 .page_size = 256,
7467 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
7468 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7469 .tested = TEST_UNTESTED,
7470 .probe = probe_spi_rdid,
7471 .probe_timing = TIMING_ZERO,
7472 .block_erasers =
7473 {
7474 {
7475 /* This chip supports erasing of the 8 so-called "parameter blocks" with
7476 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
7477 * have no effect on the memory contents, but sets a flag in the SR.
7478 .eraseblocks = {
7479 {64 * 1024, 127}, // inaccessible
7480 {8 * 1024, 8}
7481 },
7482 .block_erase = spi_block_erase_40,
7483 }, { */
7484 .eraseblocks = { {64 * 1024, 128} },
7485 .block_erase = spi_block_erase_d8,
7486 }, {
7487 .eraseblocks = { {8 * 1024 * 1024, 1} },
7488 .block_erase = spi_block_erase_c7,
7489 }
7490 },
7491 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
7492 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
7493 .write = spi_chip_write_256,
7494 .read = spi_chip_read, /* also fast read 0x0B */
7495 .voltage = {2700, 3600},
7496 },
7497
7498 {
7499 .vendor = "Intel",
7500 .name = "28F001BN/BX-B",
7501 .bustype = BUS_PARALLEL,
7502 .manufacture_id = INTEL_ID,
7503 .model_id = INTEL_28F001B,
7504 .total_size = 128,
7505 .page_size = 128 * 1024, /* 8k + 2x4k + 112k */
7506 .tested = TEST_UNTESTED,
7507 .probe = probe_jedec,
7508 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7509 .block_erasers =
7510 {
7511 {
7512 .eraseblocks = {
7513 {8 * 1024, 1},
7514 {4 * 1024, 2},
7515 {112 * 1024, 1},
7516 },
7517 .block_erase = erase_block_82802ab,
7518 },
7519 },
7520 .write = write_82802ab,
7521 .read = read_memmapped,
7522 .voltage = {4500, 5500},
7523 },
7524
7525 {
7526 .vendor = "Intel",
7527 .name = "28F001BN/BX-T",
7528 .bustype = BUS_PARALLEL,
7529 .manufacture_id = INTEL_ID,
7530 .model_id = INTEL_28F001T,
7531 .total_size = 128,
7532 .page_size = 128 * 1024, /* 112k + 2x4k + 8k */
7533 .tested = TEST_OK_PREW,
7534 .probe = probe_jedec,
7535 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7536 .block_erasers =
7537 {
7538 {
7539 .eraseblocks = {
7540 {112 * 1024, 1},
7541 {4 * 1024, 2},
7542 {8 * 1024, 1},
7543 },
7544 .block_erase = erase_block_82802ab,
7545 },
7546 },
7547 .write = write_82802ab,
7548 .read = read_memmapped,
7549 .voltage = {4500, 5500},
7550 },
7551
7552 {
7553 .vendor = "Intel",
7554 .name = "28F002BC/BL/BV/BX-T",
7555 .bustype = BUS_PARALLEL,
7556 .manufacture_id = INTEL_ID,
7557 .model_id = INTEL_28F002T,
7558 .total_size = 256,
7559 .page_size = 256 * 1024,
7560 .tested = TEST_OK_PRE,
7561 .probe = probe_82802ab,
7562 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7563 .block_erasers =
7564 {
7565 {
7566 .eraseblocks = {
7567 {128 * 1024, 1},
7568 {96 * 1024, 1},
7569 {8 * 1024, 2},
7570 {16 * 1024, 1},
7571 },
7572 .block_erase = erase_block_82802ab,
7573 },
7574 },
7575 .write = write_82802ab,
7576 .read = read_memmapped,
7577 },
7578
7579 {
7580 .vendor = "Intel",
7581 .name = "28F004B5/BE/BV/BX-B",
7582 .bustype = BUS_PARALLEL,
7583 .manufacture_id = INTEL_ID,
7584 .model_id = INTEL_28F004B,
7585 .total_size = 512,
7586 .page_size = 128 * 1024, /* maximal block size */
7587 .tested = TEST_UNTESTED,
7588 .probe = probe_82802ab,
7589 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7590 .block_erasers =
7591 {
7592 {
7593 .eraseblocks = {
7594 {16 * 1024, 1},
7595 {8 * 1024, 2},
7596 {96 * 1024, 1},
7597 {128 * 1024, 3},
7598 },
7599 .block_erase = erase_block_82802ab,
7600 },
7601 },
7602 .write = write_82802ab,
7603 .read = read_memmapped,
7604 },
7605
7606 {
7607 .vendor = "Intel",
7608 .name = "28F004B5/BE/BV/BX-T",
7609 .bustype = BUS_PARALLEL,
7610 .manufacture_id = INTEL_ID,
7611 .model_id = INTEL_28F004T,
7612 .total_size = 512,
7613 .page_size = 128 * 1024, /* maximal block size */
7614 .tested = TEST_UNTESTED,
7615 .probe = probe_82802ab,
7616 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7617 .block_erasers =
7618 {
7619 {
7620 .eraseblocks = {
7621 {128 * 1024, 3},
7622 {96 * 1024, 1},
7623 {8 * 1024, 2},
7624 {16 * 1024, 1},
7625 },
7626 .block_erase = erase_block_82802ab,
7627 },
7628 },
7629 .write = write_82802ab,
7630 .read = read_memmapped,
7631 },
7632
7633 {
7634 .vendor = "Intel",
7635 .name = "28F008S3/S5/SC",
7636 .bustype = BUS_PARALLEL,
7637 .manufacture_id = INTEL_ID,
7638 .model_id = INTEL_28F004S3,
7639 .total_size = 512,
7640 .page_size = 256,
7641 .tested = TEST_UNTESTED,
7642 .probe = probe_82802ab,
7643 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7644 .block_erasers =
7645 {
7646 {
7647 .eraseblocks = { {64 * 1024, 8} },
7648 .block_erase = erase_block_82802ab,
7649 },
7650 },
7651 .unlock = unlock_28f004s5,
7652 .write = write_82802ab,
7653 .read = read_memmapped,
7654 },
7655
7656 {
7657 .vendor = "Intel",
7658 .name = "28F400BV/BX/CE/CV-B",
7659 .bustype = BUS_PARALLEL,
7660 .manufacture_id = INTEL_ID,
7661 .model_id = INTEL_28F400B,
7662 .total_size = 512,
7663 .page_size = 128 * 1024, /* maximal block size */
7664 .feature_bits = FEATURE_ADDR_SHIFTED,
7665 .tested = TEST_UNTESTED,
7666 .probe = probe_82802ab,
7667 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7668 .block_erasers =
7669 {
7670 {
7671 .eraseblocks = {
7672 {16 * 1024, 1},
7673 {8 * 1024, 2},
7674 {96 * 1024, 1},
7675 {128 * 1024, 3},
7676 },
7677 .block_erase = erase_block_82802ab,
7678 },
7679 },
7680 .write = write_82802ab,
7681 .read = read_memmapped,
7682 },
7683
7684 {
7685 .vendor = "Intel",
7686 .name = "28F400BV/BX/CE/CV-T",
7687 .bustype = BUS_PARALLEL,
7688 .manufacture_id = INTEL_ID,
7689 .model_id = INTEL_28F400T,
7690 .total_size = 512,
7691 .page_size = 128 * 1024, /* maximal block size */
7692 .feature_bits = FEATURE_ADDR_SHIFTED,
7693 .tested = TEST_UNTESTED,
7694 .probe = probe_82802ab,
7695 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7696 .block_erasers =
7697 {
7698 {
7699 .eraseblocks = {
7700 {128 * 1024, 3},
7701 {96 * 1024, 1},
7702 {8 * 1024, 2},
7703 {16 * 1024, 1},
7704 },
7705 .block_erase = erase_block_82802ab,
7706 },
7707 },
7708 .write = write_82802ab,
7709 .read = read_memmapped,
7710 },
7711
7712 {
7713 .vendor = "Intel",
7714 .name = "82802AB",
7715 .bustype = BUS_FWH,
7716 .manufacture_id = INTEL_ID,
7717 .model_id = INTEL_82802AB,
7718 .total_size = 512,
7719 .page_size = 64 * 1024,
7720 .feature_bits = FEATURE_REGISTERMAP,
Alan Green88552572019-07-24 13:56:06 +10007721 .tested = TEST_OK_PREW,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007722 .probe = probe_82802ab,
7723 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
7724 .block_erasers =
7725 {
7726 {
7727 .eraseblocks = { {64 * 1024, 8} },
7728 .block_erase = erase_block_82802ab,
7729 },
7730 },
7731 .unlock = unlock_regspace2_uniform_64k,
7732 .write = write_82802ab,
7733 .read = read_memmapped,
7734 .voltage = {3000, 3600},
7735 },
7736
7737 {
7738 .vendor = "Intel",
7739 .name = "82802AC",
7740 .bustype = BUS_FWH,
7741 .manufacture_id = INTEL_ID,
7742 .model_id = INTEL_82802AC,
7743 .total_size = 1024,
7744 .page_size = 64 * 1024,
7745 .feature_bits = FEATURE_REGISTERMAP,
7746 .tested = TEST_OK_PR,
7747 .probe = probe_82802ab,
7748 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
7749 .block_erasers =
7750 {
7751 {
7752 .eraseblocks = { {64 * 1024, 16} },
7753 .block_erase = erase_block_82802ab,
7754 },
7755 },
7756 .unlock = unlock_regspace2_uniform_64k,
7757 .write = write_82802ab,
7758 .read = read_memmapped,
7759 .voltage = {3000, 3600},
7760 },
7761
7762 {
7763 .vendor = "Macronix",
7764 .name = "MX23L12854",
7765 .bustype = BUS_SPI,
7766 .manufacture_id = MACRONIX_ID,
7767 .model_id = MACRONIX_MX23L12854,
7768 .total_size = 16384,
7769 .page_size = 256,
7770 .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA},
7771 .probe = probe_spi_rdid,
7772 .probe_timing = TIMING_ZERO,
7773 .write = NULL, /* MX23L12854 is a mask ROM, so it is read-only */
7774 .read = spi_chip_read, /* Fast read (0x0B) supported */
7775 .voltage = {3000, 3600},
7776 },
7777
7778 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007779 .vendor = "Macronix",
Michael Coppola583ea322014-08-20 18:56:35 +00007780 .name = "MX23L1654",
7781 .bustype = BUS_SPI,
7782 .manufacture_id = MACRONIX_ID,
7783 .model_id = MACRONIX_MX23L1654,
7784 .total_size = 2048,
7785 .page_size = 256,
7786 .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA},
7787 .probe = probe_spi_rdid,
7788 .probe_timing = TIMING_ZERO,
7789 .write = NULL, /* MX23L1654 is a mask ROM, so it is read-only */
7790 .read = spi_chip_read, /* Fast read (0x0B) supported */
7791 .voltage = {3000, 3600},
7792 },
7793
7794 {
7795 .vendor = "Macronix",
Michael Coppola4e7f36e2014-05-03 23:01:18 +00007796 .name = "MX23L3254",
7797 .bustype = BUS_SPI,
7798 .manufacture_id = MACRONIX_ID,
7799 .model_id = MACRONIX_MX23L3254,
7800 .total_size = 4096,
7801 .page_size = 256,
Stefan Tauner6455dff2014-05-26 00:36:24 +00007802 .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA},
Michael Coppola4e7f36e2014-05-03 23:01:18 +00007803 .probe = probe_spi_rdid,
7804 .probe_timing = TIMING_ZERO,
7805 .write = NULL, /* MX23L3254 is a mask ROM, so it is read-only */
7806 .read = spi_chip_read, /* Fast read (0x0B) supported */
7807 .voltage = {3000, 3600},
7808 },
7809
7810 {
7811 .vendor = "Macronix",
Michael Coppola583ea322014-08-20 18:56:35 +00007812 .name = "MX23L6454",
7813 .bustype = BUS_SPI,
7814 .manufacture_id = MACRONIX_ID,
7815 .model_id = MACRONIX_MX23L6454,
7816 .total_size = 8192,
7817 .page_size = 256,
Stefan Tauner23e10b82016-01-23 16:16:49 +00007818 .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA},
Michael Coppola583ea322014-08-20 18:56:35 +00007819 .probe = probe_spi_rdid,
7820 .probe_timing = TIMING_ZERO,
7821 .write = NULL, /* MX23L6454 is a mask ROM, so it is read-only */
7822 .read = spi_chip_read, /* Fast read (0x0B) supported */
7823 .voltage = {3000, 3600},
7824 },
7825
7826 {
7827 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00007828 .name = "MX25L1005(C)/MX25L1006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007829 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007830 .manufacture_id = MACRONIX_ID,
7831 .model_id = MACRONIX_MX25L1005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007832 .total_size = 128,
7833 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007834 /* MX25L1006E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00007835 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00007836 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007837 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007838 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007839 .block_erasers =
7840 {
7841 {
7842 .eraseblocks = { {4 * 1024, 32} },
7843 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007844 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007845 .eraseblocks = { {64 * 1024, 2} },
7846 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007847 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007848 .eraseblocks = { {128 * 1024, 1} },
7849 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007850 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007851 .eraseblocks = { {128 * 1024, 1} },
7852 .block_erase = spi_block_erase_c7,
7853 },
7854 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007855 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007856 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007857 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007858 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L1006E supports dual I/O */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007859 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007860 },
7861
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007862 {
7863 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10007864 .name = "MX25L12805D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007865 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007866 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007867 .model_id = MACRONIX_MX25L12805D,
7868 .total_size = 16384,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007869 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007870 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
7871 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007872 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007873 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007874 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007875 .block_erasers =
7876 {
7877 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007878 .eraseblocks = { {4 * 1024, 4096} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007879 .block_erase = spi_block_erase_20,
7880 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007881 .eraseblocks = { {64 * 1024, 256} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007882 .block_erase = spi_block_erase_d8,
7883 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007884 .eraseblocks = { {16 * 1024 * 1024, 1} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007885 .block_erase = spi_block_erase_60,
7886 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007887 .eraseblocks = { {16 * 1024 * 1024, 1} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007888 .block_erase = spi_block_erase_c7,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007889 }
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007890 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10007891 .printlock = spi_prettyprint_status_register_bp3_srwd,
7892 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007893 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007894 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007895 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007896 },
7897
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007898 {
7899 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10007900 .name = "MX25L12835F/MX25L12845E/MX25L12865E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007901 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007902 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007903 .model_id = MACRONIX_MX25L12805D,
7904 .total_size = 16384,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007905 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007906 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
7907 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner8179be52011-06-04 13:13:34 +00007908 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007909 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007910 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007911 .block_erasers =
7912 {
7913 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007914 .eraseblocks = { {4 * 1024, 4096} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007915 .block_erase = spi_block_erase_20,
7916 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007917 .eraseblocks = { {32 * 1024, 512} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007918 .block_erase = spi_block_erase_52,
7919 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007920 .eraseblocks = { {64 * 1024, 256} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007921 .block_erase = spi_block_erase_d8,
7922 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007923 .eraseblocks = { {16 * 1024 * 1024, 1} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007924 .block_erase = spi_block_erase_60,
7925 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007926 .eraseblocks = { {16 * 1024 * 1024, 1} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007927 .block_erase = spi_block_erase_c7,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007928 }
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007929 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10007930 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
7931 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
7932 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007933 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007934 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007935 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007936 },
7937
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007938 {
7939 .vendor = "Macronix",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007940 .name = "MX25L1605",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007941 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007942 .manufacture_id = MACRONIX_ID,
7943 .model_id = MACRONIX_MX25L1605,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007944 .total_size = 2048,
7945 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00007946 .feature_bits = FEATURE_WRSR_WREN,
Sven Schnelle4bd8a402011-03-07 10:59:06 +00007947 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007948 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007949 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007950 .block_erasers =
7951 {
7952 {
Stefan Tauner226037d2013-03-16 01:22:12 +00007953 .eraseblocks = { {64 * 1024, 32} },
7954 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007955 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00007956 .eraseblocks = { {64 * 1024, 32} },
7957 .block_erase = spi_block_erase_d8,
7958 }, {
7959 .eraseblocks = { {2 * 1024 * 1024, 1} },
7960 .block_erase = spi_block_erase_60,
7961 }, {
7962 .eraseblocks = { {2 * 1024 * 1024, 1} },
7963 .block_erase = spi_block_erase_c7,
7964 },
7965 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007966 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */
Stefan Tauner226037d2013-03-16 01:22:12 +00007967 .unlock = spi_disable_blockprotect,
7968 .write = spi_chip_write_256,
7969 .read = spi_chip_read, /* Fast read (0x0B) supported */
7970 .voltage = {2700, 3600},
7971 },
7972
7973 {
7974 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007975 .name = "MX25L1605A/MX25L1606E/MX25L1608E",
Stefan Tauner226037d2013-03-16 01:22:12 +00007976 .bustype = BUS_SPI,
7977 .manufacture_id = MACRONIX_ID,
7978 .model_id = MACRONIX_MX25L1605,
7979 .total_size = 2048,
7980 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007981 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L1606E and MX25L1608E only) */
Stefan Tauner226037d2013-03-16 01:22:12 +00007982 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7983 .tested = TEST_OK_PREW,
7984 .probe = probe_spi_rdid,
7985 .probe_timing = TIMING_ZERO,
7986 .block_erasers =
7987 {
7988 {
7989 .eraseblocks = { {4 * 1024, 512} },
7990 .block_erase = spi_block_erase_20,
7991 }, {
7992 .eraseblocks = { {64 * 1024, 32} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007993 .block_erase = spi_block_erase_52,
7994 }, {
7995 .eraseblocks = { {64 * 1024, 32} },
7996 .block_erase = spi_block_erase_d8,
7997 }, {
7998 .eraseblocks = { {2 * 1024 * 1024, 1} },
7999 .block_erase = spi_block_erase_60,
8000 }, {
8001 .eraseblocks = { {2 * 1024 * 1024, 1} },
8002 .block_erase = spi_block_erase_c7,
8003 },
8004 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008005 .printlock = spi_prettyprint_status_register_bp3_srwd, /* MX25L1605A bp2 only */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008006 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008007 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008008 .read = spi_chip_read, /* Fast read (0x0B) supported (MX25L1608E supports dual-I/O read) */
Stefan Tauner226037d2013-03-16 01:22:12 +00008009 .voltage = {2700, 3600},
8010 },
8011
8012 {
8013 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008014 .name = "MX25L1605D/MX25L1608D/MX25L1673E",
Stefan Tauner226037d2013-03-16 01:22:12 +00008015 .bustype = BUS_SPI,
8016 .manufacture_id = MACRONIX_ID,
8017 .model_id = MACRONIX_MX25L1605,
8018 .total_size = 2048,
8019 .page_size = 256,
8020 .feature_bits = FEATURE_WRSR_WREN,
8021 .tested = TEST_OK_PREW,
8022 .probe = probe_spi_rdid,
8023 .probe_timing = TIMING_ZERO,
8024 .block_erasers =
8025 {
8026 {
8027 .eraseblocks = { {4 * 1024, 512} },
8028 .block_erase = spi_block_erase_20,
8029 }, {
8030 .eraseblocks = { {64 * 1024, 32} },
8031 .block_erase = spi_block_erase_d8,
8032 }, {
8033 .eraseblocks = { {2 * 1024 * 1024, 1} },
8034 .block_erase = spi_block_erase_60,
8035 }, {
8036 .eraseblocks = { {2 * 1024 * 1024, 1} },
8037 .block_erase = spi_block_erase_c7,
8038 },
8039 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008040 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: Continuously Program (CP) mode, for 73E is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008041 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00008042 .write = spi_chip_write_256,
8043 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008044 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008045 },
8046
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008047 {
8048 .vendor = "Macronix",
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008049 .name = "MX25L1635D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008050 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008051 .manufacture_id = MACRONIX_ID,
8052 .model_id = MACRONIX_MX25L1635D,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008053 .total_size = 2048,
8054 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008055 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8056 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008057 .tested = TEST_UNTESTED,
8058 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008059 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008060 .block_erasers =
8061 {
8062 {
8063 .eraseblocks = { {4 * 1024, 512} },
8064 .block_erase = spi_block_erase_20,
8065 }, {
8066 .eraseblocks = { {64 * 1024, 32} },
8067 .block_erase = spi_block_erase_d8,
8068 }, {
8069 .eraseblocks = { {2 * 1024 * 1024, 1} },
8070 .block_erase = spi_block_erase_60,
8071 }, {
8072 .eraseblocks = { {2 * 1024 * 1024, 1} },
8073 .block_erase = spi_block_erase_c7,
8074 }
8075 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008076 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008077 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008078 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008079 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008080 .voltage = {2700, 3600},
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008081 },
Stephan Guillouxfd315502009-04-20 22:54:13 +00008082
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008083 {
8084 .vendor = "Macronix",
Stephan Guilloux3611b802010-09-13 19:59:28 +00008085 .name = "MX25L1635E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008086 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008087 .manufacture_id = MACRONIX_ID,
8088 .model_id = MACRONIX_MX25L1635E,
Stephan Guilloux3611b802010-09-13 19:59:28 +00008089 .total_size = 2048,
8090 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008091 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8092 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux3611b802010-09-13 19:59:28 +00008093 .tested = TEST_UNTESTED,
8094 .probe = probe_spi_rdid,
8095 .probe_timing = TIMING_ZERO,
8096 .block_erasers =
8097 {
8098 {
8099 .eraseblocks = { {4 * 1024, 512} },
8100 .block_erase = spi_block_erase_20,
8101 }, {
8102 .eraseblocks = { {64 * 1024, 32} },
8103 .block_erase = spi_block_erase_d8,
8104 }, {
8105 .eraseblocks = { {2 * 1024 * 1024, 1} },
8106 .block_erase = spi_block_erase_60,
8107 }, {
8108 .eraseblocks = { {2 * 1024 * 1024, 1} },
8109 .block_erase = spi_block_erase_c7,
8110 }
8111 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008112 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008113 .unlock = spi_disable_blockprotect_bp3_srwd,
Stephan Guilloux3611b802010-09-13 19:59:28 +00008114 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008115 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00008116 .voltage = {2700, 3600},
Stephan Guilloux3611b802010-09-13 19:59:28 +00008117 },
8118
8119 {
8120 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008121 .name = "MX25L2005(C)/MX25L2006E",
8122 .bustype = BUS_SPI,
8123 .manufacture_id = MACRONIX_ID,
8124 .model_id = MACRONIX_MX25L2005,
8125 .total_size = 256,
8126 .page_size = 256,
8127 .feature_bits = FEATURE_WRSR_WREN,
8128 .tested = TEST_OK_PREW,
8129 .probe = probe_spi_rdid,
8130 .probe_timing = TIMING_ZERO,
8131 .block_erasers =
8132 {
8133 {
8134 .eraseblocks = { {4 * 1024, 64} },
8135 .block_erase = spi_block_erase_20,
8136 }, {
8137 .eraseblocks = { {64 * 1024, 4} },
8138 .block_erase = spi_block_erase_52,
8139 }, {
8140 .eraseblocks = { {64 * 1024, 4} },
8141 .block_erase = spi_block_erase_d8,
8142 }, {
8143 .eraseblocks = { {256 * 1024, 1} },
8144 .block_erase = spi_block_erase_60,
8145 }, {
8146 .eraseblocks = { {256 * 1024, 1} },
8147 .block_erase = spi_block_erase_c7,
8148 },
8149 },
8150 .printlock = spi_prettyprint_status_register_bp1_srwd,
8151 .unlock = spi_disable_blockprotect,
8152 .write = spi_chip_write_256,
8153 .read = spi_chip_read, /* Fast read (0x0B) supported */
8154 .voltage = {2700, 3600},
8155 },
8156
8157 {
8158 .vendor = "Macronix",
Alan Green03707302019-08-26 12:50:43 +10008159 .name = "MX25L25635F/MX25L25645G",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008160 .bustype = BUS_SPI,
8161 .manufacture_id = MACRONIX_ID,
8162 .model_id = MACRONIX_MX25L25635F,
8163 .total_size = 32768,
8164 .page_size = 256,
8165 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8166 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
8167 .tested = TEST_OK_PREW,
8168 .probe = probe_spi_rdid,
8169 .probe_timing = TIMING_ZERO,
8170 .block_erasers =
8171 {
8172 {
8173 .eraseblocks = { {4 * 1024, 8192} },
8174 .block_erase = spi_block_erase_21,
8175 }, {
8176 .eraseblocks = { {4 * 1024, 8192} },
8177 .block_erase = spi_block_erase_20,
8178 }, {
8179 .eraseblocks = { {32 * 1024, 1024} },
8180 .block_erase = spi_block_erase_5c,
8181 }, {
8182 .eraseblocks = { {32 * 1024, 1024} },
8183 .block_erase = spi_block_erase_52,
8184 }, {
8185 .eraseblocks = { {64 * 1024, 512} },
8186 .block_erase = spi_block_erase_dc,
8187 }, {
8188 .eraseblocks = { {64 * 1024, 512} },
8189 .block_erase = spi_block_erase_d8,
8190 }, {
8191 .eraseblocks = { {32 * 1024 * 1024, 1} },
8192 .block_erase = spi_block_erase_60,
8193 }, {
8194 .eraseblocks = { {32 * 1024 * 1024, 1} },
8195 .block_erase = spi_block_erase_c7,
8196 }
8197 },
8198 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
8199 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8200 .unlock = spi_disable_blockprotect_bp3_srwd,
8201 .write = spi_chip_write_256,
8202 .read = spi_chip_read, /* Fast read (0x0B) supported */
8203 .voltage = {2700, 3600},
8204 },
8205
8206 {
8207 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00008208 .name = "MX25L3205(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008209 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008210 .manufacture_id = MACRONIX_ID,
8211 .model_id = MACRONIX_MX25L3205,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008212 .total_size = 4096,
8213 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00008214 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00008215 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008216 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008217 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00008218 .block_erasers =
8219 {
8220 {
Stefan Tauner226037d2013-03-16 01:22:12 +00008221 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00008222 .block_erase = spi_block_erase_20,
8223 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00008224 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00008225 .block_erase = spi_block_erase_d8,
8226 }, {
8227 .eraseblocks = { {4 * 1024 * 1024, 1} },
8228 .block_erase = spi_block_erase_60,
8229 }, {
8230 .eraseblocks = { {4 * 1024 * 1024, 1} },
8231 .block_erase = spi_block_erase_c7,
8232 },
8233 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008234 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008235 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008236 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008237 .read = spi_chip_read, /* Fast read (0x0B) supported */
8238 .voltage = {2700, 3600},
8239 },
8240
8241 {
8242 .vendor = "Macronix",
8243 .name = "MX25L3205D/MX25L3208D",
8244 .bustype = BUS_SPI,
8245 .manufacture_id = MACRONIX_ID,
8246 .model_id = MACRONIX_MX25L3205,
8247 .total_size = 4096,
8248 .page_size = 256,
8249 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8250 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8251 .tested = TEST_OK_PREW,
8252 .probe = probe_spi_rdid,
8253 .probe_timing = TIMING_ZERO,
8254 .block_erasers =
8255 {
8256 {
8257 .eraseblocks = { {4 * 1024, 1024} },
8258 .block_erase = spi_block_erase_20,
8259 }, {
8260 .eraseblocks = { {64 * 1024, 64} },
8261 .block_erase = spi_block_erase_d8,
8262 }, {
8263 .eraseblocks = { {4 * 1024 * 1024, 1} },
8264 .block_erase = spi_block_erase_60,
8265 }, {
8266 .eraseblocks = { {4 * 1024 * 1024, 1} },
8267 .block_erase = spi_block_erase_c7,
8268 },
8269 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008270 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008271 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00008272 .write = spi_chip_write_256,
8273 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
8274 .voltage = {2700, 3600},
8275 },
8276
8277 {
8278 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008279 .name = "MX25L3206E/MX25L3208E",
Stefan Tauner226037d2013-03-16 01:22:12 +00008280 .bustype = BUS_SPI,
8281 .manufacture_id = MACRONIX_ID,
8282 .model_id = MACRONIX_MX25L3205,
8283 .total_size = 4096,
8284 .page_size = 256,
8285 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8286 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8287 .tested = TEST_OK_PREW,
8288 .probe = probe_spi_rdid,
8289 .probe_timing = TIMING_ZERO,
8290 .block_erasers =
8291 {
8292 {
8293 .eraseblocks = { {4 * 1024, 1024} },
8294 .block_erase = spi_block_erase_20,
8295 }, {
8296 .eraseblocks = { {64 * 1024, 64} },
8297 .block_erase = spi_block_erase_d8,
8298 }, {
8299 .eraseblocks = { {64 * 1024, 64} },
8300 .block_erase = spi_block_erase_52,
8301 }, {
8302 .eraseblocks = { {4 * 1024 * 1024, 1} },
8303 .block_erase = spi_block_erase_60,
8304 }, {
8305 .eraseblocks = { {4 * 1024 * 1024, 1} },
8306 .block_erase = spi_block_erase_c7,
8307 },
8308 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008309 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008310 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00008311 .write = spi_chip_write_256,
8312 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008313 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008314 },
8315
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008316 {
8317 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008318 .name = "MX25L3235D",
8319 .bustype = BUS_SPI,
8320 .manufacture_id = MACRONIX_ID,
8321 .model_id = MACRONIX_MX25L3235D,
8322 .total_size = 4096,
8323 .page_size = 256,
8324 /* OTP: 256B total; enter 0xB1, exit 0xC1 */
8325 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8326 .tested = TEST_UNTESTED,
8327 .probe = probe_spi_rdid,
8328 .probe_timing = TIMING_ZERO,
8329 .block_erasers =
8330 {
8331 {
8332 .eraseblocks = { {4 * 1024, 1024} },
8333 .block_erase = spi_block_erase_20,
8334 }, {
8335 .eraseblocks = { {64 * 1024, 64} },
8336 .block_erase = spi_block_erase_d8,
8337 }, {
8338 .eraseblocks = { {4 * 1024 * 1024, 1} },
8339 .block_erase = spi_block_erase_60,
8340 }, {
8341 .eraseblocks = { {4 * 1024 * 1024, 1} },
8342 .block_erase = spi_block_erase_c7,
8343 }
8344 },
8345 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8346 .unlock = spi_disable_blockprotect_bp3_srwd,
8347 .write = spi_chip_write_256,
8348 .read = spi_chip_read,
8349 .voltage = {2700, 3600},
8350 },
8351
8352 {
8353 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008354 .name = "MX25L3273E",
8355 .bustype = BUS_SPI,
8356 .manufacture_id = MACRONIX_ID,
8357 .model_id = MACRONIX_MX25L3205,
8358 .total_size = 4096,
8359 .page_size = 256,
8360 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8361 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +00008362 .tested = TEST_OK_PREW,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008363 .probe = probe_spi_rdid,
8364 .probe_timing = TIMING_ZERO,
8365 .block_erasers =
8366 {
8367 {
8368 .eraseblocks = { {4 * 1024, 1024} },
8369 .block_erase = spi_block_erase_20,
8370 }, {
8371 .eraseblocks = { {32 * 1024, 128} },
8372 .block_erase = spi_block_erase_52,
8373 }, {
8374 .eraseblocks = { {64 * 1024, 64} },
8375 .block_erase = spi_block_erase_d8,
8376 }, {
8377 .eraseblocks = { {4 * 1024 * 1024, 1} },
8378 .block_erase = spi_block_erase_60,
8379 }, {
8380 .eraseblocks = { {4 * 1024 * 1024, 1} },
8381 .block_erase = spi_block_erase_c7,
8382 },
8383 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008384 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008385 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008386 .write = spi_chip_write_256,
8387 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
8388 .voltage = {2700, 3600},
8389 },
8390
8391 {
8392 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008393 .name = "MX25L4005(A/C)/MX25L4006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008394 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008395 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008396 .model_id = MACRONIX_MX25L4005,
8397 .total_size = 512,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00008398 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008399 .feature_bits = FEATURE_WRSR_WREN,
8400 .tested = TEST_OK_PREW,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00008401 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008402 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008403 .block_erasers =
8404 {
8405 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008406 .eraseblocks = { {4 * 1024, 128} },
Sean Nelson54596372010-01-09 05:30:14 +00008407 .block_erase = spi_block_erase_20,
8408 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008409 .eraseblocks = { {64 * 1024, 8} },
8410 .block_erase = spi_block_erase_52,
8411 }, {
8412 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson54596372010-01-09 05:30:14 +00008413 .block_erase = spi_block_erase_d8,
8414 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008415 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00008416 .block_erase = spi_block_erase_60,
8417 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008418 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00008419 .block_erase = spi_block_erase_c7,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008420 },
Sean Nelson54596372010-01-09 05:30:14 +00008421 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10008422 .printlock = spi_prettyprint_status_register_bp2_srwd,
8423 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008424 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008425 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008426 .voltage = {2700, 3600},
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00008427 },
8428
8429 {
8430 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008431 .name = "MX25L512(E)/MX25V512(C)",
8432 .bustype = BUS_SPI,
8433 .manufacture_id = MACRONIX_ID,
8434 .model_id = MACRONIX_MX25L512,
8435 .total_size = 64,
8436 .page_size = 256,
8437 /* MX25L512E supports SFDP */
8438 .feature_bits = FEATURE_WRSR_WREN,
8439 .tested = TEST_OK_PREW,
8440 .probe = probe_spi_rdid,
8441 .probe_timing = TIMING_ZERO,
8442 .block_erasers =
8443 {
8444 {
8445 .eraseblocks = { {4 * 1024, 16} },
8446 .block_erase = spi_block_erase_20,
8447 }, {
8448 .eraseblocks = { {64 * 1024, 1} },
8449 .block_erase = spi_block_erase_52,
8450 }, {
8451 .eraseblocks = { {64 * 1024, 1} },
8452 .block_erase = spi_block_erase_d8,
8453 }, {
8454 .eraseblocks = { {64 * 1024, 1} },
8455 .block_erase = spi_block_erase_60,
8456 }, {
8457 .eraseblocks = { {64 * 1024, 1} },
8458 .block_erase = spi_block_erase_c7,
8459 },
8460 },
8461 .printlock = spi_prettyprint_status_register_bp1_srwd,
8462 .unlock = spi_disable_blockprotect,
8463 .write = spi_chip_write_256,
8464 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L512E supports dual I/O */
8465 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V512(C) */
8466 },
8467
8468 {
8469 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008470 .name = "MX25L6405",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008471 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008472 .manufacture_id = MACRONIX_ID,
8473 .model_id = MACRONIX_MX25L6405,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008474 .total_size = 8192,
8475 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008476 /* Has an additional 512B EEPROM sector */
8477 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzelac427b22012-02-16 21:07:07 +00008478 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008479 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008480 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008481 .block_erasers =
8482 {
8483 {
8484 .eraseblocks = { {64 * 1024, 128} },
8485 .block_erase = spi_block_erase_20,
8486 }, {
8487 .eraseblocks = { {64 * 1024, 128} },
8488 .block_erase = spi_block_erase_d8,
8489 }, {
8490 .eraseblocks = { {8 * 1024 * 1024, 1} },
8491 .block_erase = spi_block_erase_60,
8492 }, {
8493 .eraseblocks = { {8 * 1024 * 1024, 1} },
8494 .block_erase = spi_block_erase_c7,
8495 }
8496 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008497 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: error flag */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008498 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008499 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008500 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008501 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008502 },
8503
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008504 {
8505 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008506 .name = "MX25L6405D",
Stefan Tauner226037d2013-03-16 01:22:12 +00008507 .bustype = BUS_SPI,
8508 .manufacture_id = MACRONIX_ID,
8509 .model_id = MACRONIX_MX25L6405,
8510 .total_size = 8192,
8511 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008512 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
Stefan Tauner226037d2013-03-16 01:22:12 +00008513 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8514 .tested = TEST_OK_PREW,
8515 .probe = probe_spi_rdid,
8516 .probe_timing = TIMING_ZERO,
8517 .block_erasers =
8518 {
8519 {
8520 .eraseblocks = { {4 * 1024, 2048} },
8521 .block_erase = spi_block_erase_20,
8522 }, {
8523 .eraseblocks = { {64 * 1024, 128} },
8524 .block_erase = spi_block_erase_d8,
8525 }, {
8526 .eraseblocks = { {8 * 1024 * 1024, 1} },
8527 .block_erase = spi_block_erase_60,
8528 }, {
8529 .eraseblocks = { {8 * 1024 * 1024, 1} },
8530 .block_erase = spi_block_erase_c7,
8531 }
8532 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008533 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008534 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00008535 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008536 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0xBB) supported */
Stefan Tauner226037d2013-03-16 01:22:12 +00008537 .voltage = {2700, 3600},
8538 },
8539
8540 {
8541 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008542 .name = "MX25L6406E/MX25L6408E",
8543 .bustype = BUS_SPI,
8544 .manufacture_id = MACRONIX_ID,
8545 .model_id = MACRONIX_MX25L6405,
8546 .total_size = 8192,
8547 .page_size = 256,
8548 /* MX25L6406E supports SFDP */
8549 /* OTP: 06E 64B total; enter 0xB1, exit 0xC1 */
8550 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8551 .tested = TEST_OK_PREW,
8552 .probe = probe_spi_rdid,
8553 .probe_timing = TIMING_ZERO,
8554 .block_erasers =
8555 {
8556 {
8557 .eraseblocks = { {4 * 1024, 2048} },
8558 .block_erase = spi_block_erase_20,
8559 }, {
8560 .eraseblocks = { {64 * 1024, 128} },
8561 .block_erase = spi_block_erase_52,
8562 }, {
8563 .eraseblocks = { {64 * 1024, 128} },
8564 .block_erase = spi_block_erase_d8,
8565 }, {
8566 .eraseblocks = { {8 * 1024 * 1024, 1} },
8567 .block_erase = spi_block_erase_60,
8568 }, {
8569 .eraseblocks = { {8 * 1024 * 1024, 1} },
8570 .block_erase = spi_block_erase_c7,
8571 }
8572 },
8573 .printlock = spi_prettyprint_status_register_bp3_srwd,
8574 .unlock = spi_disable_blockprotect_bp3_srwd,
8575 .write = spi_chip_write_256,
8576 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read supported */
8577 .voltage = {2700, 3600},
8578 },
8579
8580 {
8581 .vendor = "Macronix",
Nico Huberb0072782017-12-06 21:02:57 +01008582 .name = "MX25L6436E/MX25L6445E/MX25L6465E/MX25L6473E/MX25L6473F",
Stefan Tauner226037d2013-03-16 01:22:12 +00008583 .bustype = BUS_SPI,
8584 .manufacture_id = MACRONIX_ID,
8585 .model_id = MACRONIX_MX25L6405,
8586 .total_size = 8192,
8587 .page_size = 256,
8588 /* supports SFDP */
8589 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8590 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8591 .tested = TEST_OK_PREW,
8592 .probe = probe_spi_rdid,
8593 .probe_timing = TIMING_ZERO,
8594 .block_erasers =
8595 {
8596 {
8597 .eraseblocks = { {4 * 1024, 2048} },
8598 .block_erase = spi_block_erase_20,
8599 }, {
8600 .eraseblocks = { {32 * 1024, 256} },
8601 .block_erase = spi_block_erase_52,
8602 }, {
8603 .eraseblocks = { {64 * 1024, 128} },
8604 .block_erase = spi_block_erase_d8,
8605 }, {
8606 .eraseblocks = { {8 * 1024 * 1024, 1} },
8607 .block_erase = spi_block_erase_60,
8608 }, {
8609 .eraseblocks = { {8 * 1024 * 1024, 1} },
8610 .block_erase = spi_block_erase_c7,
8611 }
8612 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008613 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008614 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00008615 .write = spi_chip_write_256,
8616 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8617 .voltage = {2700, 3600},
8618 },
8619
8620 {
8621 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008622 .name = "MX25L6495F",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008623 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008624 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008625 .model_id = MACRONIX_MX25L6495F,
8626 .total_size = 8192,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00008627 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008628 /* OTP: 1024B total; enter 0xB1, exit 0xC1 */
Stefan Tauner226037d2013-03-16 01:22:12 +00008629 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +00008630 .tested = TEST_OK_PREW,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00008631 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008632 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008633 .block_erasers =
8634 {
8635 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008636 .eraseblocks = { {4 * 1024, 2048} },
Sean Nelson54596372010-01-09 05:30:14 +00008637 .block_erase = spi_block_erase_20,
8638 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008639 .eraseblocks = { {64 * 1024, 128} },
Sean Nelson54596372010-01-09 05:30:14 +00008640 .block_erase = spi_block_erase_d8,
8641 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008642 .eraseblocks = { {32 * 1024, 256} },
8643 .block_erase = spi_block_erase_52,
8644 }, {
8645 .eraseblocks = { {8 * 1024 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00008646 .block_erase = spi_block_erase_60,
8647 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008648 .eraseblocks = { {8 * 1024 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00008649 .block_erase = spi_block_erase_c7,
8650 }
8651 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10008652 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008653 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008654 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008655 .voltage = {2700, 3600},
8656 },
8657
8658 {
8659 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008660 .name = "MX25L8005/MX25L8006E/MX25L8008E/MX25V8005",
Stefan Tauner5c316f92015-02-08 21:57:52 +00008661 .bustype = BUS_SPI,
8662 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008663 .model_id = MACRONIX_MX25L8005,
8664 .total_size = 1024,
8665 .page_size = 256,
8666 /* MX25L8006E, MX25L8008E support SFDP */
8667 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L8006E, MX25L8008E only) */
8668 .feature_bits = FEATURE_WRSR_WREN,
8669 .tested = TEST_OK_PREW,
8670 .probe = probe_spi_rdid,
8671 .probe_timing = TIMING_ZERO,
8672 .block_erasers =
8673 {
8674 {
8675 .eraseblocks = { {4 * 1024, 256} },
8676 .block_erase = spi_block_erase_20,
8677 }, {
8678 .eraseblocks = { {64 * 1024, 16} },
8679 .block_erase = spi_block_erase_52,
8680 }, {
8681 .eraseblocks = { {64 * 1024, 16} },
8682 .block_erase = spi_block_erase_d8,
8683 }, {
8684 .eraseblocks = { {1024 * 1024, 1} },
8685 .block_erase = spi_block_erase_60,
8686 }, {
8687 .eraseblocks = { {1024 * 1024, 1} },
8688 .block_erase = spi_block_erase_c7,
8689 },
8690 },
8691 .printlock = spi_prettyprint_status_register_bp2_srwd,
8692 .unlock = spi_disable_blockprotect,
8693 .write = spi_chip_write_256,
8694 .read = spi_chip_read, /* Fast read (0x0B) supported */
8695 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V8005 */
8696 },
8697
8698 {
8699 .vendor = "Macronix",
8700 .name = "MX25R6435F",
8701 .bustype = BUS_SPI,
8702 .manufacture_id = MACRONIX_ID,
8703 .model_id = MACRONIX_MX25R6435F,
8704 .total_size = 8192,
8705 .page_size = 256,
8706 /* OTP: 1024B total; enter 0xB1, exit 0xC1 */
8707 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8708 .tested = TEST_OK_PREW,
8709 .probe = probe_spi_rdid,
8710 .probe_timing = TIMING_ZERO,
8711 .block_erasers =
8712 {
8713 {
8714 .eraseblocks = { {4 * 1024, 2048} },
8715 .block_erase = spi_block_erase_20,
8716 }, {
8717 .eraseblocks = { {64 * 1024, 128} },
8718 .block_erase = spi_block_erase_d8,
8719 }, {
8720 .eraseblocks = { {32 * 1024, 256} },
8721 .block_erase = spi_block_erase_52,
8722 }, {
8723 .eraseblocks = { {8 * 1024 * 1024, 1} },
8724 .block_erase = spi_block_erase_60,
8725 }, {
8726 .eraseblocks = { {8 * 1024 * 1024, 1} },
8727 .block_erase = spi_block_erase_c7,
8728 }
8729 },
8730 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8731 .unlock = spi_disable_blockprotect_bp3_srwd,
8732 .write = spi_chip_write_256,
8733 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8734 .voltage = {1650, 3600},
8735 },
8736
8737 {
8738 .vendor = "Macronix",
8739 .name = "MX25U12835F",
8740 .bustype = BUS_SPI,
8741 .manufacture_id = MACRONIX_ID,
8742 .model_id = MACRONIX_MX25U12835E,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008743 .total_size = 16384,
8744 .page_size = 256,
8745 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
Alan Green1f9cc7d2019-07-01 11:10:45 +10008746 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008747 .tested = TEST_OK_PREW,
8748 .probe = probe_spi_rdid,
8749 .probe_timing = TIMING_ZERO,
8750 .block_erasers =
8751 {
8752 {
8753 .eraseblocks = { {4 * 1024, 4096} },
8754 .block_erase = spi_block_erase_20,
8755 }, {
8756 .eraseblocks = { {32 * 1024, 512} },
8757 .block_erase = spi_block_erase_52,
8758 }, {
8759 .eraseblocks = { {64 * 1024, 256} },
8760 .block_erase = spi_block_erase_d8,
8761 }, {
8762 .eraseblocks = { {16 * 1024 * 1024, 1} },
8763 .block_erase = spi_block_erase_60,
8764 }, {
8765 .eraseblocks = { {16 * 1024 * 1024, 1} },
8766 .block_erase = spi_block_erase_c7,
8767 }
8768 },
Angel Ponsf112e242018-09-30 20:14:17 +02008769 /* TODO: security register */
8770 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8771 .unlock = spi_disable_blockprotect_bp3_srwd,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008772 .write = spi_chip_write_256, /* Multi I/O supported */
Angel Ponsf112e242018-09-30 20:14:17 +02008773 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8774 .voltage = {1650, 2000},
8775 },
8776
8777 {
8778 .vendor = "Macronix",
Vincent Palatinf800f552013-03-15 02:03:16 +00008779 .name = "MX25U1635E",
8780 .bustype = BUS_SPI,
8781 .manufacture_id = MACRONIX_ID,
8782 .model_id = MACRONIX_MX25U1635E,
8783 .total_size = 2048,
8784 .page_size = 256,
8785 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8786 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
8787 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008788 .tested = TEST_OK_PR,
Vincent Palatinf800f552013-03-15 02:03:16 +00008789 .probe = probe_spi_rdid,
8790 .probe_timing = TIMING_ZERO,
8791 .block_erasers =
8792 {
8793 {
8794 .eraseblocks = { {4 * 1024, 512} },
8795 .block_erase = spi_block_erase_20,
8796 }, {
8797 .eraseblocks = { {32 * 1024, 64} },
8798 .block_erase = spi_block_erase_52,
8799 }, {
8800 .eraseblocks = { {64 * 1024, 32} },
8801 .block_erase = spi_block_erase_d8,
8802 }, {
8803 .eraseblocks = { {2 * 1024 * 1024, 1} },
8804 .block_erase = spi_block_erase_60,
8805 }, {
8806 .eraseblocks = { {2 * 1024 * 1024, 1} },
8807 .block_erase = spi_block_erase_c7,
8808 }
8809 },
8810 /* TODO: security register */
Stefan Tauner12f3d512014-05-27 21:27:27 +00008811 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008812 .unlock = spi_disable_blockprotect_bp3_srwd,
Vincent Palatinf800f552013-03-15 02:03:16 +00008813 .write = spi_chip_write_256,
8814 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8815 .voltage = {1650, 2000},
8816 },
8817
8818 {
8819 .vendor = "Macronix",
David Tomaschikf75d8c52019-06-20 09:49:01 -07008820 .name = "MX25U25635F",
8821 .bustype = BUS_SPI,
8822 .manufacture_id = MACRONIX_ID,
8823 .model_id = MACRONIX_MX25U25635F,
8824 .total_size = 32768,
8825 .page_size = 256,
8826 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8827 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_4BA,
8828 .tested = TEST_OK_PR,
8829 .probe = probe_spi_rdid,
8830 .probe_timing = TIMING_ZERO,
8831 .block_erasers =
8832 {
8833 {
8834 .eraseblocks = { {4 * 1024, 8192} },
8835 .block_erase = spi_block_erase_21,
8836 }, {
8837 .eraseblocks = { {4 * 1024, 8192} },
8838 .block_erase = spi_block_erase_20,
8839 }, {
8840 .eraseblocks = { {32 * 1024, 1024} },
8841 .block_erase = spi_block_erase_5c,
8842 }, {
8843 .eraseblocks = { {32 * 1024, 1024} },
8844 .block_erase = spi_block_erase_52,
8845 }, {
8846 .eraseblocks = { {64 * 1024, 512} },
8847 .block_erase = spi_block_erase_dc,
8848 }, {
8849 .eraseblocks = { {64 * 1024, 512} },
8850 .block_erase = spi_block_erase_d8,
8851 }, {
8852 .eraseblocks = { {32 * 1024 * 1024, 1} },
8853 .block_erase = spi_block_erase_60,
8854 }, {
8855 .eraseblocks = { {32 * 1024 * 1024, 1} },
8856 .block_erase = spi_block_erase_c7,
8857 }
8858 },
8859 /* TODO: security register */
8860 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8861 .unlock = spi_disable_blockprotect_bp3_srwd,
8862 .write = spi_chip_write_256, /* Multi I/O supported */
8863 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8864 .voltage = {1650, 2000},
8865 },
8866
8867 {
8868 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008869 .name = "MX25U3235E/F",
8870 .bustype = BUS_SPI,
8871 .manufacture_id = MACRONIX_ID,
8872 .model_id = MACRONIX_MX25U3235E,
8873 .total_size = 4096,
8874 .page_size = 256,
8875 /* F model supports SFDP */
8876 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8877 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
8878 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
8879 .tested = TEST_OK_PREW,
8880 .probe = probe_spi_rdid,
8881 .probe_timing = TIMING_ZERO,
8882 .block_erasers =
8883 {
8884 {
8885 .eraseblocks = { {4 * 1024, 1024} },
8886 .block_erase = spi_block_erase_20,
8887 }, {
8888 .eraseblocks = { {32 * 1024, 128} },
8889 .block_erase = spi_block_erase_52,
8890 }, {
8891 .eraseblocks = { {64 * 1024, 64} },
8892 .block_erase = spi_block_erase_d8,
8893 }, {
8894 .eraseblocks = { {4 * 1024 * 1024, 1} },
8895 .block_erase = spi_block_erase_60,
8896 }, {
8897 .eraseblocks = { {4 * 1024 * 1024, 1} },
8898 .block_erase = spi_block_erase_c7,
8899 }
8900 },
8901 /* TODO: security register */
8902 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8903 .unlock = spi_disable_blockprotect_bp3_srwd,
8904 .write = spi_chip_write_256,
8905 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8906 .voltage = {1650, 2000},
8907 },
8908
8909 {
8910 .vendor = "Macronix",
Daniel Thompsoncadd4202018-06-04 13:52:22 +01008911 .name = "MX25U51245G",
8912 .bustype = BUS_SPI,
8913 .manufacture_id = MACRONIX_ID,
8914 .model_id = MACRONIX_MX25U51245G,
8915 .total_size = 65536,
8916 .page_size = 256,
8917 /* OTP: 512B factory programmed and 512B customer programmed; enter 0xB1, exit 0xC1 */
8918 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_4BA,
8919 .tested = TEST_OK_PREW,
8920 .probe = probe_spi_rdid,
8921 .probe_timing = TIMING_ZERO,
8922 .block_erasers =
8923 {
8924 {
8925 .eraseblocks = { {4 * 1024, 16384} },
8926 .block_erase = spi_block_erase_21,
8927 }, {
8928 .eraseblocks = { {4 * 1024, 16384} },
8929 .block_erase = spi_block_erase_20,
8930 }, {
8931 .eraseblocks = { {32 * 1024, 2048} },
8932 .block_erase = spi_block_erase_5c,
8933 }, {
8934 .eraseblocks = { {32 * 1024, 2048} },
8935 .block_erase = spi_block_erase_52,
8936 }, {
8937 .eraseblocks = { {64 * 1024, 1024} },
8938 .block_erase = spi_block_erase_dc,
8939 }, {
8940 .eraseblocks = { {64 * 1024, 1024} },
8941 .block_erase = spi_block_erase_d8,
8942 }, {
8943 .eraseblocks = { {64 * 1024 * 1024, 1} },
8944 .block_erase = spi_block_erase_60,
8945 }, {
8946 .eraseblocks = { {64 * 1024 * 1024, 1} },
8947 .block_erase = spi_block_erase_c7,
8948 }
8949 },
8950 /* TODO: security register */
8951 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8952 .unlock = spi_disable_blockprotect_bp3_srwd,
8953 .write = spi_chip_write_256, /* Multi I/O supported */
8954 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8955 .voltage = {1650, 2000},
8956 },
8957
8958 {
8959 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008960 .name = "MX25U6435E/F",
Stefan Tauner40bc96f2015-01-10 09:33:14 +00008961 .bustype = BUS_SPI,
8962 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008963 .model_id = MACRONIX_MX25U6435E,
Stefan Tauner40bc96f2015-01-10 09:33:14 +00008964 .total_size = 8192,
8965 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008966 /* F model supports SFDP */
8967 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8968 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
8969 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner40bc96f2015-01-10 09:33:14 +00008970 .tested = TEST_OK_PREW,
8971 .probe = probe_spi_rdid,
8972 .probe_timing = TIMING_ZERO,
8973 .block_erasers =
8974 {
8975 {
8976 .eraseblocks = { {4 * 1024, 2048} },
8977 .block_erase = spi_block_erase_20,
8978 }, {
Stefan Tauner40bc96f2015-01-10 09:33:14 +00008979 .eraseblocks = { {32 * 1024, 256} },
8980 .block_erase = spi_block_erase_52,
8981 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008982 .eraseblocks = { {64 * 1024, 128} },
8983 .block_erase = spi_block_erase_d8,
8984 }, {
Stefan Tauner40bc96f2015-01-10 09:33:14 +00008985 .eraseblocks = { {8 * 1024 * 1024, 1} },
8986 .block_erase = spi_block_erase_60,
8987 }, {
8988 .eraseblocks = { {8 * 1024 * 1024, 1} },
8989 .block_erase = spi_block_erase_c7,
8990 }
8991 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10008992 /* TODO: security register */
Nathan Rennie-Waldock5a7f9422018-08-10 15:35:23 +01008993 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8994 .unlock = spi_disable_blockprotect_bp3_srwd,
8995 .write = spi_chip_write_256,
8996 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Alan Green1f9cc7d2019-07-01 11:10:45 +10008997 .voltage = {1650, 2000},
8998 },
8999
9000 {
9001 .vendor = "Macronix",
9002 .name = "MX25U8032E",
9003 .bustype = BUS_SPI,
9004 .manufacture_id = MACRONIX_ID,
9005 .model_id = MACRONIX_MX25U8032E,
9006 .total_size = 1024,
9007 .page_size = 256,
9008 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9009 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9010 .tested = TEST_OK_PREW,
9011 .probe = probe_spi_rdid,
9012 .probe_timing = TIMING_ZERO,
9013 .block_erasers =
9014 {
9015 {
9016 .eraseblocks = { {4 * 1024, 256} },
9017 .block_erase = spi_block_erase_20,
9018 }, {
9019 .eraseblocks = { {32 * 1024, 32} },
9020 .block_erase = spi_block_erase_52,
9021 }, {
9022 .eraseblocks = { {64 * 1024, 16} },
9023 .block_erase = spi_block_erase_d8,
9024 }, {
9025 .eraseblocks = { {1024 * 1024, 1} },
9026 .block_erase = spi_block_erase_60,
9027 }, {
9028 .eraseblocks = { {1024 * 1024, 1} },
9029 .block_erase = spi_block_erase_c7,
9030 }
9031 },
9032 /* TODO: security register */
9033 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9034 .unlock = spi_disable_blockprotect_bp3_srwd,
9035 .write = spi_chip_write_256,
9036 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9037 .voltage = {1650, 2000},
Nathan Rennie-Waldock5a7f9422018-08-10 15:35:23 +01009038 },
9039
9040 {
9041 .vendor = "Macronix",
Mark Panajotovic502a9132009-08-24 01:42:24 +00009042 .name = "MX29F001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009043 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009044 .manufacture_id = MACRONIX_ID,
9045 .model_id = MACRONIX_MX29F001B,
Mark Panajotovic502a9132009-08-24 01:42:24 +00009046 .total_size = 128,
9047 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009048 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9049 .tested = TEST_UNTESTED,
9050 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009051 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00009052 .block_erasers =
9053 {
9054 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00009055 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00009056 {8 * 1024, 1},
9057 {4 * 1024, 2},
9058 {8 * 1024, 2},
9059 {32 * 1024, 1},
9060 {64 * 1024, 1},
9061 },
Sean Nelson35727f72010-01-28 23:55:12 +00009062 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009063 }, {
9064 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009065 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009066 }
9067 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009068 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00009069 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009070 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00009071 },
9072
9073 {
9074 .vendor = "Macronix",
9075 .name = "MX29F001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009076 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009077 .manufacture_id = MACRONIX_ID,
9078 .model_id = MACRONIX_MX29F001T,
Mark Panajotovic502a9132009-08-24 01:42:24 +00009079 .total_size = 128,
9080 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009081 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stefan Tauner74c6ec62011-05-18 01:31:46 +00009082 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00009083 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009084 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00009085 .block_erasers =
9086 {
9087 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00009088 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00009089 {64 * 1024, 1},
9090 {32 * 1024, 1},
9091 {8 * 1024, 2},
9092 {4 * 1024, 2},
9093 {8 * 1024, 1},
9094 },
Sean Nelson35727f72010-01-28 23:55:12 +00009095 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009096 }, {
9097 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009098 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009099 }
9100 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009101 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00009102 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009103 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00009104 },
9105
9106 {
9107 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00009108 .name = "MX29F002(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009109 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009110 .manufacture_id = MACRONIX_ID,
9111 .model_id = MACRONIX_MX29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009112 .total_size = 256,
9113 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009114 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009115 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00009116 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009117 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009118 .block_erasers =
9119 {
9120 {
9121 .eraseblocks = {
9122 {16 * 1024, 1},
9123 {8 * 1024, 2},
9124 {32 * 1024, 1},
9125 {64 * 1024, 3},
9126 },
Sean Nelson35727f72010-01-28 23:55:12 +00009127 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009128 }, {
9129 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009130 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009131 },
9132 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009133 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009134 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009135 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009136 },
9137
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009138 {
9139 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00009140 .name = "MX29F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009141 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009142 .manufacture_id = MACRONIX_ID,
9143 .model_id = MACRONIX_MX29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009144 .total_size = 256,
9145 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009146 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00009147 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00009148 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009149 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009150 .block_erasers =
9151 {
9152 {
9153 .eraseblocks = {
9154 {64 * 1024, 3},
9155 {32 * 1024, 1},
9156 {8 * 1024, 2},
9157 {16 * 1024, 1},
9158 },
Sean Nelson35727f72010-01-28 23:55:12 +00009159 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009160 }, {
9161 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009162 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009163 },
9164 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009165 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009166 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009167 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009168 },
9169
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009170 {
9171 .vendor = "Macronix",
Daniele Forsi6a18a932014-07-13 14:53:45 +00009172 .name = "MX29F022(N)B",
9173 .bustype = BUS_PARALLEL,
9174 .manufacture_id = MACRONIX_ID,
9175 .model_id = MACRONIX_MX29F022B,
9176 .total_size = 256,
9177 .page_size = 0, /* unused */
9178 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9179 .tested = TEST_UNTESTED,
9180 .probe = probe_jedec,
9181 .probe_timing = TIMING_ZERO,
9182 .block_erasers =
9183 {
9184 {
9185 .eraseblocks = {
9186 {16 * 1024, 1},
9187 {8 * 1024, 2},
9188 {32 * 1024, 1},
9189 {64 * 1024, 3},
9190 },
9191 .block_erase = erase_sector_jedec,
9192 }, {
9193 .eraseblocks = { {256 * 1024, 1} },
9194 .block_erase = erase_chip_block_jedec,
9195 }
9196 },
9197 .write = write_jedec_1,
9198 .read = read_memmapped,
9199 .voltage = {4500, 5500},
9200 },
9201
9202 {
9203 .vendor = "Macronix",
9204 .name = "MX29F022(N)T",
9205 .bustype = BUS_PARALLEL,
9206 .manufacture_id = MACRONIX_ID,
9207 .model_id = MACRONIX_MX29F022T,
9208 .total_size = 256,
9209 .page_size = 0, /* unused */
9210 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9211 .tested = TEST_OK_PREW,
9212 .probe = probe_jedec,
9213 .probe_timing = TIMING_ZERO,
9214 .block_erasers =
9215 {
9216 {
9217 .eraseblocks = {
9218 {64 * 1024, 3},
9219 {32 * 1024, 1},
9220 {8 * 1024, 2},
9221 {16 * 1024, 1},
9222 },
9223 .block_erase = erase_sector_jedec,
9224 }, {
9225 .eraseblocks = { {256 * 1024, 1} },
9226 .block_erase = erase_chip_block_jedec,
9227 }
9228 },
9229 .write = write_jedec_1,
9230 .read = read_memmapped,
9231 .voltage = {4500, 5500},
9232 },
9233
9234 {
9235 .vendor = "Macronix",
Joshua Roysf1324e02010-09-16 00:51:51 +00009236 .name = "MX29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009237 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00009238 .manufacture_id = MACRONIX_ID,
9239 .model_id = MACRONIX_MX29F040,
9240 .total_size = 512,
9241 .page_size = 64 * 1024,
9242 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9243 .tested = TEST_UNTESTED,
9244 .probe = probe_jedec,
9245 .probe_timing = TIMING_ZERO,
9246 .block_erasers =
9247 {
9248 {
9249 .eraseblocks = { {64 * 1024, 8} },
9250 .block_erase = erase_sector_jedec,
9251 }, {
9252 .eraseblocks = { {512 * 1024, 1} },
9253 .block_erase = erase_chip_block_jedec,
9254 },
9255 },
9256 .write = write_jedec_1,
9257 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009258 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00009259 },
9260
9261 {
9262 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009263 .name = "MX29GL128F",
9264 .bustype = BUS_PARALLEL,
9265 .manufacture_id = MACRONIX_ID,
9266 .model_id = MACRONIX_MX29GL128F,
9267 .total_size = 16384,
9268 .page_size = 128 * 1024, /* actual page size is 16 */
9269 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9270 .tested = TEST_UNTESTED,
9271 .probe = probe_jedec_29gl,
9272 .probe_timing = TIMING_ZERO,
9273 .block_erasers =
9274 {
9275 {
9276 .eraseblocks = { {128 * 1024, 128} },
9277 .block_erase = erase_sector_jedec,
9278 }, {
9279 .eraseblocks = { {16 * 1024 * 1024, 1} },
9280 .block_erase = erase_chip_block_jedec,
9281 },
9282 },
9283 .write = write_jedec_1,
9284 .read = read_memmapped,
9285 .voltage = {2700, 3600},
9286 },
9287
9288 {
9289 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00009290 .name = "MX29GL320EB",
9291 .bustype = BUS_PARALLEL,
9292 .manufacture_id = MACRONIX_ID,
9293 .model_id = MACRONIX_MX29GL320EB,
9294 .total_size = 4096,
9295 .page_size = 128 * 1024, /* actual page size is 16 */
9296 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9297 .tested = TEST_UNTESTED,
9298 .probe = probe_jedec_29gl,
9299 .probe_timing = TIMING_ZERO,
9300 .block_erasers =
9301 {
9302 {
9303 .eraseblocks = {
9304 {8 * 1024, 8},
9305 {64 * 1024, 63},
9306 },
9307 .block_erase = erase_sector_jedec,
9308 }, {
9309 .eraseblocks = { {4 * 1024 * 1024, 1} },
9310 .block_erase = erase_chip_block_jedec,
9311 },
9312 },
9313 .write = write_jedec_1,
9314 .read = read_memmapped,
9315 .voltage = {2700, 3600},
9316 },
9317
9318 {
9319 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009320 .name = "MX29GL320EH/L",
9321 .bustype = BUS_PARALLEL,
9322 .manufacture_id = MACRONIX_ID,
9323 .model_id = MACRONIX_MX29GL320EHL,
9324 .total_size = 4096,
9325 .page_size = 128 * 1024, /* actual page size is 16 */
9326 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9327 .tested = TEST_UNTESTED,
9328 .probe = probe_jedec_29gl,
9329 .probe_timing = TIMING_ZERO,
9330 .block_erasers =
9331 {
9332 {
9333 .eraseblocks = { {64 * 1024, 64} },
9334 .block_erase = erase_sector_jedec,
9335 }, {
9336 .eraseblocks = { {4 * 1024 * 1024, 1} },
9337 .block_erase = erase_chip_block_jedec,
9338 },
9339 },
9340 .write = write_jedec_1,
9341 .read = read_memmapped,
9342 .voltage = {2700, 3600},
9343 },
9344
9345 {
9346 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00009347 .name = "MX29GL320ET",
9348 .bustype = BUS_PARALLEL,
9349 .manufacture_id = MACRONIX_ID,
9350 .model_id = MACRONIX_MX29GL320ET,
9351 .total_size = 4096,
9352 .page_size = 128 * 1024, /* actual page size is 16 */
9353 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9354 .tested = TEST_UNTESTED,
9355 .probe = probe_jedec_29gl,
9356 .probe_timing = TIMING_ZERO,
9357 .block_erasers =
9358 {
9359 {
9360 .eraseblocks = {
9361 {64 * 1024, 63},
9362 {8 * 1024, 8},
9363 },
9364 .block_erase = erase_sector_jedec,
9365 }, {
9366 .eraseblocks = { {4 * 1024 * 1024, 1} },
9367 .block_erase = erase_chip_block_jedec,
9368 },
9369 },
9370 .write = write_jedec_1,
9371 .read = read_memmapped,
9372 .voltage = {2700, 3600},
9373 },
9374
9375 {
9376 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00009377 .name = "MX29GL640EB",
9378 .bustype = BUS_PARALLEL,
9379 .manufacture_id = MACRONIX_ID,
9380 .model_id = MACRONIX_MX29GL640EB,
9381 .total_size = 8192,
9382 .page_size = 128 * 1024, /* actual page size is 16 */
9383 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9384 .tested = TEST_UNTESTED,
9385 .probe = probe_jedec_29gl,
9386 .probe_timing = TIMING_ZERO,
9387 .block_erasers =
9388 {
9389 {
9390 .eraseblocks = {
9391 {8 * 1024, 8},
9392 {64 * 1024, 127},
9393 },
9394 .block_erase = erase_sector_jedec,
9395 }, {
9396 .eraseblocks = { {8 * 1024 * 1024, 1} },
9397 .block_erase = erase_chip_block_jedec,
9398 },
9399 },
9400 .write = write_jedec_1,
9401 .read = read_memmapped,
9402 .voltage = {2700, 3600},
9403 },
9404
9405 {
9406 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009407 .name = "MX29GL640EH/L",
9408 .bustype = BUS_PARALLEL,
9409 .manufacture_id = MACRONIX_ID,
9410 .model_id = MACRONIX_MX29GL640EHL,
9411 .total_size = 8192,
9412 .page_size = 128 * 1024, /* actual page size is 16 */
9413 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9414 .tested = TEST_UNTESTED,
9415 .probe = probe_jedec_29gl,
9416 .probe_timing = TIMING_ZERO,
9417 .block_erasers =
9418 {
9419 {
9420 .eraseblocks = { {64 * 1024, 128} },
9421 .block_erase = erase_sector_jedec,
9422 }, {
9423 .eraseblocks = { {8 * 1024 * 1024, 1} },
9424 .block_erase = erase_chip_block_jedec,
9425 },
9426 },
9427 .write = write_jedec_1,
9428 .read = read_memmapped,
9429 .voltage = {2700, 3600},
9430 },
9431
9432 {
9433 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00009434 .name = "MX29GL640ET",
9435 .bustype = BUS_PARALLEL,
9436 .manufacture_id = MACRONIX_ID,
9437 .model_id = MACRONIX_MX29GL640ET,
9438 .total_size = 8192,
9439 .page_size = 128 * 1024, /* actual page size is 16 */
9440 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9441 .tested = TEST_UNTESTED,
9442 .probe = probe_jedec_29gl,
9443 .probe_timing = TIMING_ZERO,
9444 .block_erasers =
9445 {
9446 {
9447 .eraseblocks = {
9448 {64 * 1024, 127},
9449 {8 * 1024, 8},
9450 },
9451 .block_erase = erase_sector_jedec,
9452 }, {
9453 .eraseblocks = { {8 * 1024 * 1024, 1} },
9454 .block_erase = erase_chip_block_jedec,
9455 },
9456 },
9457 .write = write_jedec_1,
9458 .read = read_memmapped,
9459 .voltage = {2700, 3600},
9460 },
9461
9462 {
9463 .vendor = "Macronix",
Carl-Daniel Hailfinger350a0c32009-07-24 13:59:27 +00009464 .name = "MX29LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009465 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009466 .manufacture_id = MACRONIX_ID,
9467 .model_id = MACRONIX_MX29LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009468 .total_size = 512,
9469 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009470 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9471 .tested = TEST_UNTESTED,
9472 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009473 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00009474 .block_erasers =
9475 {
9476 {
Stefan Tauner6697f712014-08-06 15:09:15 +00009477 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +00009478 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009479 }, {
9480 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009481 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009482 },
9483 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009484 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009485 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009486 .voltage = {2700, 3600},
Carl-Daniel Hailfinger7de86392008-12-10 10:32:05 +00009487 },
9488
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009489 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009490 .vendor = "Macronix",
Hemanth Guruva Reddya136d422019-07-11 11:08:27 +02009491 .name = "MX66L51235F/MX25L51245G",
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009492 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009493 .manufacture_id = MACRONIX_ID,
9494 .model_id = MACRONIX_MX66L51235F,
9495 .total_size = 65536,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009496 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009497 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9498 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009499 .tested = TEST_OK_PREW,
9500 .probe = probe_spi_rdid,
9501 .probe_timing = TIMING_ZERO,
9502 .block_erasers =
9503 {
9504 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009505 .eraseblocks = { {4 * 1024, 16384} },
9506 .block_erase = spi_block_erase_21,
9507 }, {
9508 .eraseblocks = { {4 * 1024, 16384} },
9509 .block_erase = spi_block_erase_20,
9510 }, {
9511 .eraseblocks = { {32 * 1024, 2048} },
9512 .block_erase = spi_block_erase_5c,
9513 }, {
9514 .eraseblocks = { {32 * 1024, 2048} },
9515 .block_erase = spi_block_erase_52,
9516 }, {
9517 .eraseblocks = { {64 * 1024, 1024} },
9518 .block_erase = spi_block_erase_dc,
9519 }, {
9520 .eraseblocks = { {64 * 1024, 1024} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009521 .block_erase = spi_block_erase_d8,
9522 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009523 .eraseblocks = { {64 * 1024 * 1024, 1} },
9524 .block_erase = spi_block_erase_60,
9525 }, {
9526 .eraseblocks = { {64 * 1024 * 1024, 1} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009527 .block_erase = spi_block_erase_c7,
9528 }
9529 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10009530 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
9531 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009532 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009533 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009534 .read = spi_chip_read, /* Fast read (0x0B) supported */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009535 .voltage = {2700, 3600},
9536 },
9537
9538 /* The ST M25P05 is a bit of a problem. It has the same ID as the
9539 * ST M25P05-A in RES mode, but supports only 128 byte writes instead
9540 * of 256 byte writes. We rely heavily on the fact that probe_spi_res1
9541 * only is successful if RDID does not work.
9542 */
9543 {
9544 .vendor = "Micron/Numonyx/ST",
9545 .name = "M25P05",
9546 .bustype = BUS_SPI,
9547 .manufacture_id = 0, /* Not used. */
9548 .model_id = ST_M25P05_RES,
9549 .total_size = 64,
9550 .page_size = 256,
9551 .feature_bits = FEATURE_WRSR_WREN,
9552 .tested = TEST_UNTESTED,
9553 .probe = probe_spi_res1,
9554 .probe_timing = TIMING_ZERO,
9555 .block_erasers =
9556 {
9557 {
9558 .eraseblocks = { {32 * 1024, 2} },
9559 .block_erase = spi_block_erase_d8,
9560 }, {
9561 .eraseblocks = { {64 * 1024, 1} },
9562 .block_erase = spi_block_erase_c7,
9563 }
9564 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009565 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009566 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009567 .write = spi_chip_write_1, /* 128 */
9568 .read = spi_chip_read,
9569 .voltage = {2700, 3600},
9570 },
9571
9572 {
9573 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009574 .name = "M25P05-A",
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009575 .bustype = BUS_SPI,
9576 .manufacture_id = ST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009577 .model_id = ST_M25P05A,
9578 .total_size = 64,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009579 .page_size = 256,
9580 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +00009581 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009582 .probe = probe_spi_rdid,
9583 .probe_timing = TIMING_ZERO,
9584 .block_erasers =
9585 {
9586 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009587 .eraseblocks = { {32 * 1024, 2} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009588 .block_erase = spi_block_erase_d8,
9589 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009590 .eraseblocks = { {64 * 1024, 1} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009591 .block_erase = spi_block_erase_c7,
9592 }
9593 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009594 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009595 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009596 .write = spi_chip_write_256,
9597 .read = spi_chip_read,
9598 .voltage = {2700, 3600},
9599 },
9600
9601 /* The ST M25P10 has the same problem as the M25P05. */
9602 {
9603 .vendor = "Micron/Numonyx/ST",
9604 .name = "M25P10",
9605 .bustype = BUS_SPI,
9606 .manufacture_id = 0, /* Not used. */
9607 .model_id = ST_M25P10_RES,
9608 .total_size = 128,
9609 .page_size = 256,
9610 .feature_bits = FEATURE_WRSR_WREN,
9611 .tested = TEST_UNTESTED,
9612 .probe = probe_spi_res1,
9613 .probe_timing = TIMING_ZERO,
9614 .block_erasers =
9615 {
9616 {
9617 .eraseblocks = { {32 * 1024, 4} },
9618 .block_erase = spi_block_erase_d8,
9619 }, {
9620 .eraseblocks = { {128 * 1024, 1} },
9621 .block_erase = spi_block_erase_c7,
9622 }
9623 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009624 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009625 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009626 .write = spi_chip_write_1, /* 128 */
9627 .read = spi_chip_read,
9628 .voltage = {2700, 3600},
9629 },
9630
9631 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009632 .vendor = "Micron/Numonyx/ST",
9633 .name = "M25P10-A",
9634 .bustype = BUS_SPI,
9635 .manufacture_id = ST_ID,
9636 .model_id = ST_M25P10A,
9637 .total_size = 128,
9638 .page_size = 256,
9639 .feature_bits = FEATURE_WRSR_WREN,
9640 .tested = TEST_OK_PREW,
9641 .probe = probe_spi_rdid,
9642 .probe_timing = TIMING_ZERO,
9643 .block_erasers =
9644 {
9645 {
9646 .eraseblocks = { {32 * 1024, 4} },
9647 .block_erase = spi_block_erase_d8,
9648 }, {
9649 .eraseblocks = { {128 * 1024, 1} },
9650 .block_erase = spi_block_erase_c7,
9651 }
9652 },
9653 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
9654 .unlock = spi_disable_blockprotect_bp3_srwd,
9655 .write = spi_chip_write_256,
9656 .read = spi_chip_read,
9657 .voltage = {2700, 3600},
9658 },
9659
9660 {
9661 .vendor = "Micron/Numonyx/ST",
9662 .name = "M25P128",
9663 .bustype = BUS_SPI,
9664 .manufacture_id = ST_ID,
9665 .model_id = ST_M25P128,
9666 .total_size = 16384,
9667 .page_size = 256,
9668 .feature_bits = FEATURE_WRSR_WREN,
9669 .tested = TEST_OK_PREW,
9670 .probe = probe_spi_rdid,
9671 .probe_timing = TIMING_ZERO,
9672 .block_erasers =
9673 {
9674 {
9675 .eraseblocks = { {256 * 1024, 64} },
9676 .block_erase = spi_block_erase_d8,
9677 }, {
9678 .eraseblocks = { {16 * 1024 * 1024, 1} },
9679 .block_erase = spi_block_erase_c7,
9680 }
9681 },
9682 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
9683 .unlock = spi_disable_blockprotect_bp3_srwd,
9684 .write = spi_chip_write_256,
9685 .read = spi_chip_read,
9686 .voltage = {2700, 3600},
9687 },
9688
9689 {
9690 .vendor = "Micron/Numonyx/ST",
9691 .name = "M25P16",
9692 .bustype = BUS_SPI,
9693 .manufacture_id = ST_ID,
9694 .model_id = ST_M25P16,
9695 .total_size = 2048,
9696 .page_size = 256,
9697 .feature_bits = FEATURE_WRSR_WREN,
9698 .tested = TEST_OK_PREW,
9699 .probe = probe_spi_rdid,
9700 .probe_timing = TIMING_ZERO,
9701 .block_erasers =
9702 {
9703 {
9704 .eraseblocks = { {64 * 1024, 32} },
9705 .block_erase = spi_block_erase_d8,
9706 }, {
9707 .eraseblocks = { {2 * 1024 * 1024, 1} },
9708 .block_erase = spi_block_erase_c7,
9709 }
9710 },
9711 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
9712 .unlock = spi_disable_blockprotect_bp3_srwd,
9713 .write = spi_chip_write_256,
9714 .read = spi_chip_read,
9715 .voltage = {2700, 3600},
9716 },
9717
9718 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009719 .vendor = "Micron/Numonyx/ST", /* Numonyx */
9720 .name = "M25P20",
9721 .bustype = BUS_SPI,
9722 .manufacture_id = ST_ID,
9723 .model_id = ST_M25P20,
9724 .total_size = 256,
9725 .page_size = 256,
9726 .feature_bits = FEATURE_WRSR_WREN,
9727 .tested = TEST_UNTESTED,
9728 .probe = probe_spi_rdid,
9729 .probe_timing = TIMING_ZERO,
9730 .block_erasers =
9731 {
9732 {
9733 .eraseblocks = { {64 * 1024, 4} },
9734 .block_erase = spi_block_erase_d8,
9735 }, {
9736 .eraseblocks = { {256 * 1024, 1} },
9737 .block_erase = spi_block_erase_c7,
9738 }
9739 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009740 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009741 .unlock = spi_disable_blockprotect,
9742 .write = spi_chip_write_256,
9743 .read = spi_chip_read, /* Fast read (0x0B) supported */
9744 .voltage = {2700, 3600},
9745 },
9746
9747 {
9748 .vendor = "Micron/Numonyx/ST",
9749 .name = "M25P20-old",
9750 .bustype = BUS_SPI,
9751 .manufacture_id = 0, /* Not used. */
9752 .model_id = ST_M25P20_RES,
9753 .total_size = 256,
9754 .page_size = 256,
9755 .feature_bits = FEATURE_WRSR_WREN,
9756 .tested = TEST_OK_PREW,
9757 .probe = probe_spi_res1,
9758 .probe_timing = TIMING_ZERO,
9759 .block_erasers =
9760 {
9761 {
9762 .eraseblocks = { {64 * 1024, 4} },
9763 .block_erase = spi_block_erase_d8,
9764 }, {
9765 .eraseblocks = { {256 * 1024, 1} },
9766 .block_erase = spi_block_erase_c7,
9767 }
9768 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009769 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009770 .unlock = spi_disable_blockprotect,
9771 .write = spi_chip_write_256,
9772 .read = spi_chip_read, /* Fast read (0x0B) supported */
9773 .voltage = {2700, 3600},
9774 },
9775
9776 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009777 .vendor = "Micron/Numonyx/ST",
9778 .name = "M25P32",
9779 .bustype = BUS_SPI,
9780 .manufacture_id = ST_ID,
9781 .model_id = ST_M25P32,
9782 .total_size = 4096,
9783 .page_size = 256,
9784 .feature_bits = FEATURE_WRSR_WREN,
9785 .tested = TEST_OK_PREW,
9786 .probe = probe_spi_rdid,
9787 .probe_timing = TIMING_ZERO,
9788 .block_erasers =
9789 {
9790 {
9791 .eraseblocks = { {64 * 1024, 64} },
9792 .block_erase = spi_block_erase_d8,
9793 }, {
9794 .eraseblocks = { {4 * 1024 * 1024, 1} },
9795 .block_erase = spi_block_erase_c7,
9796 }
9797 },
9798 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
9799 .unlock = spi_disable_blockprotect_bp3_srwd,
9800 .write = spi_chip_write_256,
9801 .read = spi_chip_read,
9802 .voltage = {2700, 3600},
9803 },
9804
9805 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009806 .vendor = "Micron/Numonyx/ST", /* Numonyx */
9807 .name = "M25P40",
9808 .bustype = BUS_SPI,
9809 .manufacture_id = ST_ID,
9810 .model_id = ST_M25P40,
9811 .total_size = 512,
9812 .page_size = 256,
9813 .feature_bits = FEATURE_WRSR_WREN,
9814 .tested = TEST_OK_PREW,
9815 .probe = probe_spi_rdid,
9816 .probe_timing = TIMING_ZERO,
9817 .block_erasers =
9818 {
9819 {
9820 .eraseblocks = { {64 * 1024, 8} },
9821 .block_erase = spi_block_erase_d8,
9822 }, {
9823 .eraseblocks = { {512 * 1024, 1} },
9824 .block_erase = spi_block_erase_c7,
9825 }
9826 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009827 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009828 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009829 .write = spi_chip_write_256,
9830 .read = spi_chip_read,
9831 .voltage = {2700, 3600},
9832 },
9833
9834 {
9835 .vendor = "Micron/Numonyx/ST",
9836 .name = "M25P40-old",
9837 .bustype = BUS_SPI,
9838 .manufacture_id = 0, /* Not used. */
9839 .model_id = ST_M25P40_RES,
9840 .total_size = 512,
9841 .page_size = 256,
9842 .feature_bits = FEATURE_WRSR_WREN,
9843 .tested = TEST_UNTESTED,
9844 .probe = probe_spi_res1,
9845 .probe_timing = TIMING_ZERO,
9846 .block_erasers =
9847 {
9848 {
9849 .eraseblocks = { {64 * 1024, 8} },
9850 .block_erase = spi_block_erase_d8,
9851 }, {
9852 .eraseblocks = { {512 * 1024, 1} },
9853 .block_erase = spi_block_erase_c7,
9854 }
9855 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009856 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009857 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009858 .write = spi_chip_write_256,
9859 .read = spi_chip_read,
9860 },
9861
9862 {
9863 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009864 .name = "M25P64",
9865 .bustype = BUS_SPI,
9866 .manufacture_id = ST_ID,
9867 .model_id = ST_M25P64,
9868 .total_size = 8192,
9869 .page_size = 256,
9870 .feature_bits = FEATURE_WRSR_WREN,
9871 .tested = TEST_OK_PREW,
9872 .probe = probe_spi_rdid,
9873 .probe_timing = TIMING_ZERO,
9874 .block_erasers =
9875 {
9876 {
9877 .eraseblocks = { {64 * 1024, 128} },
9878 .block_erase = spi_block_erase_d8,
9879 }, {
9880 .eraseblocks = { {8 * 1024 * 1024, 1} },
9881 .block_erase = spi_block_erase_c7,
9882 }
9883 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009884 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009885 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009886 .write = spi_chip_write_256,
9887 .read = spi_chip_read,
9888 .voltage = {2700, 3600},
9889 },
9890
9891 {
9892 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009893 .name = "M25P80",
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009894 .bustype = BUS_SPI,
9895 .manufacture_id = ST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009896 .model_id = ST_M25P80,
9897 .total_size = 1024,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009898 .page_size = 256,
9899 .feature_bits = FEATURE_WRSR_WREN,
9900 .tested = TEST_OK_PREW,
9901 .probe = probe_spi_rdid,
9902 .probe_timing = TIMING_ZERO,
9903 .block_erasers =
9904 {
9905 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009906 .eraseblocks = { {64 * 1024, 16} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009907 .block_erase = spi_block_erase_d8,
9908 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009909 .eraseblocks = { {1024 * 1024, 1} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009910 .block_erase = spi_block_erase_c7,
9911 }
9912 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009913 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009914 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009915 .write = spi_chip_write_256,
9916 .read = spi_chip_read,
9917 .voltage = {2700, 3600},
9918 },
9919
9920 {
9921 .vendor = "Micron/Numonyx/ST",
9922 .name = "M25PE10",
9923 .bustype = BUS_SPI,
9924 .manufacture_id = ST_ID,
9925 .model_id = ST_M25PE10,
9926 .total_size = 128,
9927 .page_size = 256,
9928 .feature_bits = FEATURE_WRSR_WREN,
9929 .tested = TEST_UNTESTED,
9930 .probe = probe_spi_rdid,
9931 .probe_timing = TIMING_ZERO,
9932 .block_erasers =
9933 {
9934 {
9935 .eraseblocks = { {4 * 1024, 32} },
9936 .block_erase = spi_block_erase_20,
9937 }, {
9938 .eraseblocks = { {64 * 1024, 2} },
9939 .block_erase = spi_block_erase_d8,
9940 }, {
9941 .eraseblocks = { {128 * 1024, 1} },
9942 .block_erase = spi_block_erase_c7,
9943 }
9944 },
9945 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
9946 .unlock = spi_disable_blockprotect,
9947 .write = spi_chip_write_256,
9948 .read = spi_chip_read,
9949 .voltage = {2700, 3600},
9950 },
9951
9952 {
9953 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009954 .name = "M25PE16",
9955 .bustype = BUS_SPI,
9956 .manufacture_id = ST_ID,
9957 .model_id = ST_M25PE16,
9958 .total_size = 2048,
9959 .page_size = 256,
9960 .feature_bits = FEATURE_WRSR_WREN,
9961 .tested = TEST_UNTESTED,
9962 .probe = probe_spi_rdid,
9963 .probe_timing = TIMING_ZERO,
9964 .block_erasers =
9965 {
9966 {
9967 .eraseblocks = { {4 * 1024, 512} },
9968 .block_erase = spi_block_erase_20,
9969 }, {
9970 .eraseblocks = { {64 * 1024, 32} },
9971 .block_erase = spi_block_erase_d8,
9972 }, {
9973 .eraseblocks = { {2 * 1024 * 1024, 1} },
9974 .block_erase = spi_block_erase_c7,
9975 }
9976 },
9977 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
9978 .unlock = spi_disable_blockprotect,
9979 .write = spi_chip_write_256,
9980 .read = spi_chip_read,
9981 .voltage = {2700, 3600},
9982 },
9983
9984 {
9985 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009986 .name = "M25PE20",
9987 .bustype = BUS_SPI,
9988 .manufacture_id = ST_ID,
9989 .model_id = ST_M25PE20,
9990 .total_size = 256,
9991 .page_size = 256,
9992 .feature_bits = FEATURE_WRSR_WREN,
9993 .tested = TEST_UNTESTED,
9994 .probe = probe_spi_rdid,
9995 .probe_timing = TIMING_ZERO,
9996 .block_erasers =
9997 {
9998 {
9999 .eraseblocks = { {4 * 1024, 64} },
10000 .block_erase = spi_block_erase_20,
10001 }, {
10002 .eraseblocks = { {64 * 1024, 4} },
10003 .block_erase = spi_block_erase_d8,
10004 }, {
10005 .eraseblocks = { {256 * 1024, 1} },
10006 .block_erase = spi_block_erase_c7,
10007 }
10008 },
10009 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10010 .unlock = spi_disable_blockprotect,
10011 .write = spi_chip_write_256,
10012 .read = spi_chip_read,
10013 .voltage = {2700, 3600},
10014 },
10015
10016 {
10017 .vendor = "Micron/Numonyx/ST",
10018 .name = "M25PE40",
10019 .bustype = BUS_SPI,
10020 .manufacture_id = ST_ID,
10021 .model_id = ST_M25PE40,
10022 .total_size = 512,
10023 .page_size = 256,
10024 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000010025 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010026 .probe = probe_spi_rdid,
10027 .probe_timing = TIMING_ZERO,
10028 .block_erasers =
10029 {
10030 {
10031 .eraseblocks = { {4 * 1024, 128} },
10032 .block_erase = spi_block_erase_20,
10033 }, {
10034 .eraseblocks = { {64 * 1024, 8} },
10035 .block_erase = spi_block_erase_d8,
10036 }, {
10037 .eraseblocks = { {512 * 1024, 1} },
10038 .block_erase = spi_block_erase_c7,
10039 }
10040 },
10041 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10042 .unlock = spi_disable_blockprotect,
10043 .write = spi_chip_write_256,
10044 .read = spi_chip_read,
10045 .voltage = {2700, 3600},
10046 },
10047
10048 {
10049 .vendor = "Micron/Numonyx/ST",
10050 .name = "M25PE80",
10051 .bustype = BUS_SPI,
10052 .manufacture_id = ST_ID,
10053 .model_id = ST_M25PE80,
10054 .total_size = 1024,
10055 .page_size = 256,
10056 .feature_bits = FEATURE_WRSR_WREN,
10057 .tested = TEST_OK_PREW,
10058 .probe = probe_spi_rdid,
10059 .probe_timing = TIMING_ZERO,
10060 .block_erasers =
10061 {
10062 {
10063 .eraseblocks = { {4 * 1024, 256} },
10064 .block_erase = spi_block_erase_20,
10065 }, {
10066 .eraseblocks = { {64 * 1024, 16} },
10067 .block_erase = spi_block_erase_d8,
10068 }, {
10069 .eraseblocks = { {1024 * 1024, 1} },
10070 .block_erase = spi_block_erase_c7,
10071 }
10072 },
10073 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10074 .unlock = spi_disable_blockprotect,
10075 .write = spi_chip_write_256,
10076 .read = spi_chip_read,
10077 .voltage = {2700, 3600},
10078 },
10079
10080 {
10081 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010082 .name = "M25PX16",
10083 .bustype = BUS_SPI,
10084 .manufacture_id = ST_ID,
10085 .model_id = ST_M25PX16,
10086 .total_size = 2048,
10087 .page_size = 256,
10088 /* OTP: 64B total; read 0x4B; write 0x42 */
10089 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10090 .tested = TEST_OK_PREW,
10091 .probe = probe_spi_rdid,
10092 .probe_timing = TIMING_ZERO,
10093 .block_erasers =
10094 {
10095 {
10096 .eraseblocks = { { 4 * 1024, 512 } },
10097 .block_erase = spi_block_erase_20,
10098 }, {
10099 .eraseblocks = { {64 * 1024, 32} },
10100 .block_erase = spi_block_erase_d8,
10101 }, {
10102 .eraseblocks = { {2 * 1024 * 1024, 1} },
10103 .block_erase = spi_block_erase_c7,
10104 }
10105 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010106 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010107 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
10108 .write = spi_chip_write_256,
10109 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000010110 .voltage = {2300, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010111 },
10112
10113 {
10114 .vendor = "Micron/Numonyx/ST",
10115 .name = "M25PX32",
10116 .bustype = BUS_SPI,
10117 .manufacture_id = ST_ID,
10118 .model_id = ST_M25PX32,
10119 .total_size = 4096,
10120 .page_size = 256,
10121 /* OTP: 64B total; read 0x4B; write 0x42 */
10122 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10123 .tested = TEST_OK_PRE,
10124 .probe = probe_spi_rdid,
10125 .probe_timing = TIMING_ZERO,
10126 .block_erasers =
10127 {
10128 {
10129 .eraseblocks = { { 4 * 1024, 1024 } },
10130 .block_erase = spi_block_erase_20,
10131 }, {
10132 .eraseblocks = { {64 * 1024, 64} },
10133 .block_erase = spi_block_erase_d8,
10134 }, {
10135 .eraseblocks = { {4 * 1024 * 1024, 1} },
10136 .block_erase = spi_block_erase_c7,
10137 }
10138 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010139 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010140 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
10141 .write = spi_chip_write_256,
10142 .read = spi_chip_read,
10143 .voltage = {2700, 3600},
10144 },
10145
10146 {
10147 .vendor = "Micron/Numonyx/ST",
10148 .name = "M25PX64",
10149 .bustype = BUS_SPI,
10150 .manufacture_id = ST_ID,
10151 .model_id = ST_M25PX64,
10152 .total_size = 8192,
10153 .page_size = 256,
10154 /* OTP: 64B total; read 0x4B; write 0x42 */
10155 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000010156 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010157 .probe = probe_spi_rdid,
10158 .probe_timing = TIMING_ZERO,
10159 .block_erasers =
10160 {
10161 {
10162 .eraseblocks = { { 4 * 1024, 2048 } },
10163 .block_erase = spi_block_erase_20,
10164 }, {
10165 .eraseblocks = { {64 * 1024, 128} },
10166 .block_erase = spi_block_erase_d8,
10167 }, {
10168 .eraseblocks = { {8 * 1024 * 1024, 1} },
10169 .block_erase = spi_block_erase_c7,
10170 }
10171 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010172 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010173 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
10174 .write = spi_chip_write_256,
10175 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000010176 .voltage = {2700, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010177 },
10178
10179 {
10180 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010181 .name = "M25PX80",
10182 .bustype = BUS_SPI,
10183 .manufacture_id = ST_ID,
10184 .model_id = ST_M25PX80,
10185 .total_size = 1024,
10186 .page_size = 256,
10187 /* OTP: 64B total; read 0x4B, write 0x42 */
10188 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10189 .tested = TEST_OK_PREW,
10190 .probe = probe_spi_rdid,
10191 .probe_timing = TIMING_ZERO,
10192 .block_erasers =
10193 {
10194 {
10195 .eraseblocks = { { 4 * 1024, 256 } },
10196 .block_erase = spi_block_erase_20,
10197 }, {
10198 .eraseblocks = { {64 * 1024, 16} },
10199 .block_erase = spi_block_erase_d8,
10200 }, {
10201 .eraseblocks = { {1024 * 1024, 1} },
10202 .block_erase = spi_block_erase_c7,
10203 }
10204 },
10205 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
10206 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
10207 .write = spi_chip_write_256,
10208 .read = spi_chip_read,
10209 .voltage = {2700, 3600},
10210 },
10211
10212 {
10213 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010214 .name = "M45PE10",
10215 .bustype = BUS_SPI,
10216 .manufacture_id = ST_ID,
10217 .model_id = ST_M45PE10,
10218 .total_size = 128,
10219 .page_size = 256,
10220 .tested = TEST_UNTESTED,
10221 .probe = probe_spi_rdid,
10222 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100010223 .block_erasers =
10224 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010225 {
10226 .eraseblocks = { {256, 512} },
10227 .block_erase = spi_block_erase_db,
10228 }, {
10229 .eraseblocks = { {64 * 1024, 2} },
10230 .block_erase = spi_block_erase_d8,
10231 }
10232 },
10233 .printlock = spi_prettyprint_status_register_default_welwip,
10234 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
10235 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
10236 .read = spi_chip_read, /* Fast read (0x0B) supported */
10237 .voltage = {2700, 3600},
10238 },
10239
10240 {
10241 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010242 .name = "M45PE16",
10243 .bustype = BUS_SPI,
10244 .manufacture_id = ST_ID,
10245 .model_id = ST_M45PE16,
10246 .total_size = 2048,
10247 .page_size = 256,
10248 .tested = TEST_UNTESTED,
10249 .probe = probe_spi_rdid,
10250 .probe_timing = TIMING_ZERO,
10251 .block_erasers =
10252 {
10253 {
10254 .eraseblocks = { {256, 8192} },
10255 .block_erase = spi_block_erase_db,
10256 }, {
10257 .eraseblocks = { {64 * 1024, 32} },
10258 .block_erase = spi_block_erase_d8,
10259 }
10260 },
10261 .printlock = spi_prettyprint_status_register_default_welwip,
10262 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
10263 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
10264 .read = spi_chip_read, /* Fast read (0x0B) supported */
10265 .voltage = {2700, 3600},
10266 },
10267
10268 {
10269 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010270 .name = "M45PE20",
10271 .bustype = BUS_SPI,
10272 .manufacture_id = ST_ID,
10273 .model_id = ST_M45PE20,
10274 .total_size = 256,
10275 .page_size = 256,
10276 .tested = TEST_UNTESTED,
10277 .probe = probe_spi_rdid,
10278 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100010279 .block_erasers =
10280 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010281 {
10282 .eraseblocks = { {256, 1024} },
10283 .block_erase = spi_block_erase_db,
10284 }, {
10285 .eraseblocks = { {64 * 1024, 4} },
10286 .block_erase = spi_block_erase_d8,
10287 }
10288 },
10289 .printlock = spi_prettyprint_status_register_default_welwip,
10290 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
10291 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
10292 .read = spi_chip_read, /* Fast read (0x0B) supported */
10293 .voltage = {2700, 3600},
10294 },
10295
10296 {
10297 .vendor = "Micron/Numonyx/ST",
10298 .name = "M45PE40",
10299 .bustype = BUS_SPI,
10300 .manufacture_id = ST_ID,
10301 .model_id = ST_M45PE40,
10302 .total_size = 512,
10303 .page_size = 256,
10304 .tested = TEST_UNTESTED,
10305 .probe = probe_spi_rdid,
10306 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100010307 .block_erasers =
10308 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010309 {
10310 .eraseblocks = { {256, 2048} },
10311 .block_erase = spi_block_erase_db,
10312 }, {
10313 .eraseblocks = { {64 * 1024, 8} },
10314 .block_erase = spi_block_erase_d8,
10315 }
10316 },
10317 .printlock = spi_prettyprint_status_register_default_welwip,
10318 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
Stefan Tauner23e10b82016-01-23 16:16:49 +000010319 .write = spi_chip_write_256, /* Page write supported (similar to PP but allows 0->1 changes) */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010320 .read = spi_chip_read, /* Fast read (0x0B) supported */
10321 .voltage = {2700, 3600},
10322 },
10323
10324 {
10325 .vendor = "Micron/Numonyx/ST",
10326 .name = "M45PE80",
10327 .bustype = BUS_SPI,
10328 .manufacture_id = ST_ID,
10329 .model_id = ST_M45PE80,
10330 .total_size = 1024,
10331 .page_size = 256,
10332 .tested = TEST_UNTESTED,
10333 .probe = probe_spi_rdid,
10334 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100010335 .block_erasers =
10336 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010337 {
10338 .eraseblocks = { {256, 4096} },
10339 .block_erase = spi_block_erase_db,
10340 }, {
10341 .eraseblocks = { {64 * 1024, 16} },
10342 .block_erase = spi_block_erase_d8,
10343 }
10344 },
10345 .printlock = spi_prettyprint_status_register_default_welwip,
10346 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
10347 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
10348 .read = spi_chip_read, /* Fast read (0x0B) supported */
10349 .voltage = {2700, 3600},
10350 },
10351
10352 {
10353 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010354 .name = "N25Q016",
10355 .bustype = BUS_SPI,
10356 .manufacture_id = ST_ID,
10357 .model_id = ST_N25Q016__1E,
10358 .total_size = 2048,
10359 .page_size = 256,
10360 /* supports SFDP */
10361 /* OTP: 64B total; read 0x4B, write 0x42 */
10362 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10363 .tested = TEST_UNTESTED,
10364 .probe = probe_spi_rdid,
10365 .probe_timing = TIMING_ZERO,
10366 .block_erasers =
10367 {
10368 {
10369 .eraseblocks = { {4 * 1024, 512} },
10370 .block_erase = spi_block_erase_20,
10371 }, {
10372 .eraseblocks = { {32 * 1024, 64} },
10373 .block_erase = spi_block_erase_52,
10374 }, {
10375 .eraseblocks = { {64 * 1024, 32} },
10376 .block_erase = spi_block_erase_d8,
10377 }, {
10378 .eraseblocks = { {2 * 1024 * 1024, 1} },
10379 .block_erase = spi_block_erase_c7,
10380 }
10381 },
10382 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10383 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10384 .write = spi_chip_write_256, /* Multi I/O supported */
10385 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10386 .voltage = {1700, 2000},
10387 },
10388
10389 {
10390 .vendor = "Micron/Numonyx/ST",
10391 .name = "N25Q032..1E",
10392 .bustype = BUS_SPI,
10393 .manufacture_id = ST_ID,
10394 .model_id = ST_N25Q032__1E,
10395 .total_size = 4096,
10396 .page_size = 256,
10397 /* supports SFDP */
10398 /* OTP: 64B total; read 0x4B, write 0x42 */
10399 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10400 .tested = TEST_UNTESTED,
10401 .probe = probe_spi_rdid,
10402 .probe_timing = TIMING_ZERO,
10403 .block_erasers =
10404 {
10405 {
10406 .eraseblocks = { {4 * 1024, 1024} },
10407 .block_erase = spi_block_erase_20,
10408 }, {
10409 .eraseblocks = { {64 * 1024, 64} },
10410 .block_erase = spi_block_erase_d8,
10411 }, {
10412 .eraseblocks = { {4 * 1024 * 1024, 1} },
10413 .block_erase = spi_block_erase_c7,
10414 }
10415 },
10416 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10417 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10418 .write = spi_chip_write_256, /* Multi I/O supported */
10419 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10420 .voltage = {1700, 2000},
10421 },
10422
10423 {
10424 .vendor = "Micron/Numonyx/ST",
10425 .name = "N25Q032..3E",
10426 .bustype = BUS_SPI,
10427 .manufacture_id = ST_ID,
10428 .model_id = ST_N25Q032__3E,
10429 .total_size = 4096,
10430 .page_size = 256,
10431 /* supports SFDP */
10432 /* OTP: 64B total; read 0x4B, write 0x42 */
10433 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10434 .tested = TEST_OK_PREW,
10435 .probe = probe_spi_rdid,
10436 .probe_timing = TIMING_ZERO,
10437 .block_erasers =
10438 {
10439 {
10440 .eraseblocks = { {4 * 1024, 1024} },
10441 .block_erase = spi_block_erase_20,
10442 }, {
10443 .eraseblocks = { {64 * 1024, 64} },
10444 .block_erase = spi_block_erase_d8,
10445 }, {
10446 .eraseblocks = { {4 * 1024 * 1024, 1} },
10447 .block_erase = spi_block_erase_c7,
10448 }
10449 },
10450 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10451 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10452 .write = spi_chip_write_256, /* Multi I/O supported */
10453 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10454 .voltage = {2700, 3600},
10455 },
10456
10457 {
10458 .vendor = "Micron/Numonyx/ST",
10459 .name = "N25Q064..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
10460 .bustype = BUS_SPI,
10461 .manufacture_id = ST_ID,
10462 .model_id = ST_N25Q064__1E,
10463 .total_size = 8192,
10464 .page_size = 256,
10465 /* supports SFDP */
10466 /* OTP: 64B total; read 0x4B, write 0x42 */
10467 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000010468 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010469 .probe = probe_spi_rdid,
10470 .probe_timing = TIMING_ZERO,
10471 .block_erasers =
10472 {
10473 {
10474 .eraseblocks = { {4 * 1024, 2048 } },
10475 .block_erase = spi_block_erase_20,
10476 }, {
10477 .eraseblocks = { {64 * 1024, 128} },
10478 .block_erase = spi_block_erase_d8,
10479 }, {
10480 .eraseblocks = { {8 * 1024 * 1024, 1} },
10481 .block_erase = spi_block_erase_c7,
10482 }
10483 },
10484 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10485 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10486 .write = spi_chip_write_256, /* Multi I/O supported */
10487 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10488 .voltage = {1700, 2000},
10489 },
10490
10491 {
10492 .vendor = "Micron/Numonyx/ST",
10493 .name = "N25Q064..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
10494 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100010495 .manufacture_id = ST_ID,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010496 .model_id = ST_N25Q064__3E,
10497 .total_size = 8192,
10498 .page_size = 256,
10499 /* supports SFDP */
10500 /* OTP: 64B total; read 0x4B, write 0x42 */
10501 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10502 .tested = TEST_OK_PREW,
10503 .probe = probe_spi_rdid,
10504 .probe_timing = TIMING_ZERO,
10505 .block_erasers =
10506 {
10507 {
10508 .eraseblocks = { {4 * 1024, 2048 } },
10509 .block_erase = spi_block_erase_20,
10510 }, {
10511 .eraseblocks = { {64 * 1024, 128} },
10512 .block_erase = spi_block_erase_d8,
10513 }, {
10514 .eraseblocks = { {8 * 1024 * 1024, 1} },
10515 .block_erase = spi_block_erase_c7,
10516 }
10517 },
10518 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10519 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10520 .write = spi_chip_write_256, /* Multi I/O supported */
10521 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10522 .voltage = {2700, 3600},
10523 },
10524
10525 {
10526 .vendor = "Micron/Numonyx/ST",
10527 .name = "N25Q128..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
10528 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100010529 .manufacture_id = ST_ID,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010530 .model_id = ST_N25Q128__1E,
10531 .total_size = 16384,
10532 .page_size = 256,
10533 /* supports SFDP */
10534 /* OTP: 64B total; read 0x4B, write 0x42 */
10535 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000010536 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010537 .probe = probe_spi_rdid,
10538 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100010539 .block_erasers =
10540 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010541 {
10542 .eraseblocks = { {4 * 1024, 4096 } },
10543 .block_erase = spi_block_erase_20,
10544 }, {
10545 .eraseblocks = { {64 * 1024, 256} },
10546 .block_erase = spi_block_erase_d8,
10547 }, {
10548 .eraseblocks = { {16384 * 1024, 1} },
10549 .block_erase = spi_block_erase_c7,
10550 }
10551 },
10552 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10553 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10554 .write = spi_chip_write_256, /* Multi I/O supported */
10555 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10556 .voltage = {1700, 2000},
10557 },
10558
10559 {
10560 .vendor = "Micron/Numonyx/ST",
10561 .name = "N25Q128..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
10562 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100010563 .manufacture_id = ST_ID,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010564 .model_id = ST_N25Q128__3E,
10565 .total_size = 16384,
10566 .page_size = 256,
10567 /* supports SFDP */
10568 /* OTP: 64B total; read 0x4B, write 0x42 */
10569 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10570 .tested = TEST_OK_PREW,
10571 .probe = probe_spi_rdid,
10572 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100010573 .block_erasers =
10574 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010575 {
10576 .eraseblocks = { {4 * 1024, 4096 } },
10577 .block_erase = spi_block_erase_20,
10578 }, {
10579 .eraseblocks = { {64 * 1024, 256} },
10580 .block_erase = spi_block_erase_d8,
10581 }, {
10582 .eraseblocks = { {16384 * 1024, 1} },
10583 .block_erase = spi_block_erase_c7,
10584 }
10585 },
10586 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10587 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10588 .write = spi_chip_write_256, /* Multi I/O supported */
10589 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10590 .voltage = {2700, 3600},
10591 },
10592
10593 {
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070010594 .vendor = "Micron/Numonyx/ST",
10595 .name = "N25Q256..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
10596 .bustype = BUS_SPI,
10597 .manufacture_id = ST_ID,
10598 .model_id = ST_N25Q256__3E,
10599 .total_size = 32768,
10600 .page_size = 256,
10601 /* supports SFDP */
10602 /* OTP: 64B total; read 0x4B, write 0x42 */
10603 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
10604 .tested = TEST_UNTESTED,
10605 .probe = probe_spi_rdid,
10606 .probe_timing = TIMING_ZERO,
10607 .block_erasers =
10608 {
10609 {
10610 .eraseblocks = { {4 * 1024, 8192} },
10611 .block_erase = spi_block_erase_21,
10612 }, {
10613 .eraseblocks = { {4 * 1024, 8192} },
10614 .block_erase = spi_block_erase_20,
10615 }, {
10616 .eraseblocks = { {64 * 1024, 512} },
10617 .block_erase = spi_block_erase_dc,
10618 }, {
10619 .eraseblocks = { {64 * 1024, 512} },
10620 .block_erase = spi_block_erase_d8,
10621 }, {
10622 .eraseblocks = { {32768 * 1024, 1} },
10623 .block_erase = spi_block_erase_c7,
10624 }
10625 },
10626 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10627 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10628 .write = spi_chip_write_256, /* Multi I/O supported */
10629 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10630 .voltage = {2700, 3600},
10631 },
10632
10633 {
10634 .vendor = "Micron/Numonyx/ST",
10635 .name = "N25Q512..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
10636 .bustype = BUS_SPI,
10637 .manufacture_id = ST_ID,
10638 .model_id = ST_N25Q512__3E,
10639 .total_size = 65536,
10640 .page_size = 256,
10641 /* supports SFDP */
10642 /* OTP: 64B total; read 0x4B, write 0x42 */
10643 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
10644 .tested = TEST_OK_PREW,
10645 .probe = probe_spi_rdid,
10646 .probe_timing = TIMING_ZERO,
10647 .block_erasers =
10648 {
10649 {
10650 .eraseblocks = { {4 * 1024, 16384} },
10651 .block_erase = spi_block_erase_21,
10652 }, {
10653 .eraseblocks = { {4 * 1024, 16384} },
10654 .block_erase = spi_block_erase_20,
10655 }, {
10656 .eraseblocks = { {64 * 1024, 1024} },
10657 .block_erase = spi_block_erase_dc,
10658 }, {
10659 .eraseblocks = { {64 * 1024, 1024} },
10660 .block_erase = spi_block_erase_d8,
10661 }, {
Jacob Creedone8e7b0e2019-07-22 12:21:22 -070010662 .eraseblocks = { {32768 * 1024, 2} },
10663 .block_erase = spi_block_erase_c4,
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070010664 }
10665 },
10666 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10667 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10668 .write = spi_chip_write_256, /* Multi I/O supported */
10669 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10670 .voltage = {2700, 3600},
10671 },
10672
10673 {
Ed Swierk199ab392017-07-03 13:33:44 -070010674 .vendor = "Micron",
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070010675 .name = "MT25QL256", /* L = 3V, uniform 64KB/4KB blocks/sectors */
Ed Swierk199ab392017-07-03 13:33:44 -070010676 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100010677 .manufacture_id = ST_ID,
Ed Swierk199ab392017-07-03 13:33:44 -070010678 .model_id = ST_N25Q256__3E,
10679 .total_size = 32768,
10680 .page_size = 256,
10681 /* supports SFDP */
10682 /* OTP: 64B total; read 0x4B, write 0x42 */
Nico Huberaac81422017-11-10 22:54:13 +010010683 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
10684 .tested = TEST_UNTESTED,
Ed Swierk199ab392017-07-03 13:33:44 -070010685 .probe = probe_spi_rdid,
10686 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100010687 .block_erasers =
10688 {
Ed Swierk199ab392017-07-03 13:33:44 -070010689 {
10690 .eraseblocks = { {4 * 1024, 8192} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020010691 .block_erase = spi_block_erase_21,
Ed Swierk199ab392017-07-03 13:33:44 -070010692 }, {
Nico Huberaac81422017-11-10 22:54:13 +010010693 .eraseblocks = { {4 * 1024, 8192} },
10694 .block_erase = spi_block_erase_20,
10695 }, {
Jacob Creedon045b97e2019-07-22 12:26:56 -070010696 .eraseblocks = { {32 * 1024, 1024} },
10697 .block_erase = spi_block_erase_5c,
10698 }, {
10699 .eraseblocks = { {32 * 1024, 1024} },
10700 .block_erase = spi_block_erase_52,
10701 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070010702 .eraseblocks = { {64 * 1024, 512} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020010703 .block_erase = spi_block_erase_dc,
Ed Swierk199ab392017-07-03 13:33:44 -070010704 }, {
Nico Huberaac81422017-11-10 22:54:13 +010010705 .eraseblocks = { {64 * 1024, 512} },
10706 .block_erase = spi_block_erase_d8,
10707 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070010708 .eraseblocks = { {32768 * 1024, 1} },
10709 .block_erase = spi_block_erase_c7,
Jacob Creedon045b97e2019-07-22 12:26:56 -070010710 }, {
10711 .eraseblocks = { {32768 * 1024, 1} },
10712 .block_erase = spi_block_erase_60,
Ed Swierk199ab392017-07-03 13:33:44 -070010713 }
10714 },
10715 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10716 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10717 .write = spi_chip_write_256, /* Multi I/O supported */
10718 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10719 .voltage = {2700, 3600},
10720 },
10721
10722 {
10723 .vendor = "Micron",
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070010724 .name = "MT25QL512", /* L = 3V, uniform 64KB/4KB blocks/sectors */
Ed Swierk199ab392017-07-03 13:33:44 -070010725 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100010726 .manufacture_id = ST_ID,
Ed Swierk199ab392017-07-03 13:33:44 -070010727 .model_id = ST_N25Q512__3E,
10728 .total_size = 65536,
10729 .page_size = 256,
10730 /* supports SFDP */
10731 /* OTP: 64B total; read 0x4B, write 0x42 */
Nico Huberaac81422017-11-10 22:54:13 +010010732 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
Angel Pons3ed5a352018-09-30 16:31:09 +020010733 .tested = TEST_OK_PREW,
Ed Swierk199ab392017-07-03 13:33:44 -070010734 .probe = probe_spi_rdid,
10735 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100010736 .block_erasers =
10737 {
Ed Swierk199ab392017-07-03 13:33:44 -070010738 {
10739 .eraseblocks = { {4 * 1024, 16384} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020010740 .block_erase = spi_block_erase_21,
Ed Swierk199ab392017-07-03 13:33:44 -070010741 }, {
Nico Huberaac81422017-11-10 22:54:13 +010010742 .eraseblocks = { {4 * 1024, 16384} },
10743 .block_erase = spi_block_erase_20,
10744 }, {
Jacob Creedon045b97e2019-07-22 12:26:56 -070010745 .eraseblocks = { {32 * 1024, 2048} },
10746 .block_erase = spi_block_erase_5c,
10747 }, {
10748 .eraseblocks = { {32 * 1024, 2048} },
10749 .block_erase = spi_block_erase_52,
10750 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070010751 .eraseblocks = { {64 * 1024, 1024} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020010752 .block_erase = spi_block_erase_dc,
Ed Swierk199ab392017-07-03 13:33:44 -070010753 }, {
Nico Huberaac81422017-11-10 22:54:13 +010010754 .eraseblocks = { {64 * 1024, 1024} },
10755 .block_erase = spi_block_erase_d8,
10756 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070010757 .eraseblocks = { {65536 * 1024, 1} },
10758 .block_erase = spi_block_erase_c7,
Jacob Creedon045b97e2019-07-22 12:26:56 -070010759 }, {
10760 .eraseblocks = { {65536 * 1024, 1} },
10761 .block_erase = spi_block_erase_60,
Ed Swierk199ab392017-07-03 13:33:44 -070010762 }
10763 },
10764 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10765 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10766 .write = spi_chip_write_256, /* Multi I/O supported */
10767 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10768 .voltage = {2700, 3600},
10769 },
10770
10771 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000010772 .vendor = "MoselVitelic",
10773 .name = "V29C51000B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010774 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010775 .manufacture_id = SYNCMOS_MVC_ID,
10776 .model_id = MVC_V29C51000B,
10777 .total_size = 64,
10778 .page_size = 512,
10779 .feature_bits = FEATURE_EITHER_RESET,
10780 .tested = TEST_UNTESTED,
10781 .probe = probe_jedec,
10782 .probe_timing = TIMING_ZERO,
10783 .block_erasers =
10784 {
10785 {
10786 .eraseblocks = { {512, 128} },
10787 .block_erase = erase_sector_jedec,
10788 }, {
10789 .eraseblocks = { {64 * 1024, 1} },
10790 .block_erase = erase_chip_block_jedec,
10791 },
10792 },
10793 .write = write_jedec_1,
10794 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010795 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010796 },
10797
10798 {
10799 .vendor = "MoselVitelic",
10800 .name = "V29C51000T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010801 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010802 .manufacture_id = SYNCMOS_MVC_ID,
10803 .model_id = MVC_V29C51000T,
10804 .total_size = 64,
10805 .page_size = 512,
10806 .feature_bits = FEATURE_EITHER_RESET,
10807 .tested = TEST_UNTESTED,
10808 .probe = probe_jedec,
10809 .probe_timing = TIMING_ZERO,
10810 .block_erasers =
10811 {
10812 {
10813 .eraseblocks = { {512, 128} },
10814 .block_erase = erase_sector_jedec,
10815 }, {
10816 .eraseblocks = { {64 * 1024, 1} },
10817 .block_erase = erase_chip_block_jedec,
10818 },
10819 },
10820 .write = write_jedec_1,
10821 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010822 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010823 },
10824
10825 {
10826 .vendor = "MoselVitelic",
10827 .name = "V29C51400B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010828 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010829 .manufacture_id = SYNCMOS_MVC_ID,
10830 .model_id = MVC_V29C51400B,
10831 .total_size = 512,
10832 .page_size = 1024,
10833 .feature_bits = FEATURE_EITHER_RESET,
10834 .tested = TEST_UNTESTED,
10835 .probe = probe_jedec,
10836 .probe_timing = TIMING_ZERO,
10837 .block_erasers =
10838 {
10839 {
10840 .eraseblocks = { {1024, 512} },
10841 .block_erase = erase_sector_jedec,
10842 }, {
10843 .eraseblocks = { {512 * 1024, 1} },
10844 .block_erase = erase_chip_block_jedec,
10845 },
10846 },
10847 .write = write_jedec_1,
10848 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010849 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010850 },
10851
10852 {
10853 .vendor = "MoselVitelic",
10854 .name = "V29C51400T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010855 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010856 .manufacture_id = SYNCMOS_MVC_ID,
10857 .model_id = MVC_V29C51400T,
10858 .total_size = 512,
10859 .page_size = 1024,
10860 .feature_bits = FEATURE_EITHER_RESET,
10861 .tested = TEST_UNTESTED,
10862 .probe = probe_jedec,
10863 .probe_timing = TIMING_ZERO,
10864 .block_erasers =
10865 {
10866 {
10867 .eraseblocks = { {1024, 512} },
10868 .block_erase = erase_sector_jedec,
10869 }, {
10870 .eraseblocks = { {512 * 1024, 1} },
10871 .block_erase = erase_chip_block_jedec,
10872 },
10873 },
10874 .write = write_jedec_1,
10875 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010876 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010877 },
10878
10879 {
10880 .vendor = "MoselVitelic",
10881 .name = "V29LC51000",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010882 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010883 .manufacture_id = SYNCMOS_MVC_ID,
10884 .model_id = MVC_V29LC51000,
10885 .total_size = 64,
10886 .page_size = 512,
10887 .feature_bits = FEATURE_EITHER_RESET,
10888 .tested = TEST_UNTESTED,
10889 .probe = probe_jedec,
10890 .probe_timing = TIMING_ZERO,
10891 .block_erasers =
10892 {
10893 {
10894 .eraseblocks = { {512, 128} },
10895 .block_erase = erase_sector_jedec,
10896 }, {
10897 .eraseblocks = { {64 * 1024, 1} },
10898 .block_erase = erase_chip_block_jedec,
10899 },
10900 },
10901 .write = write_jedec_1,
10902 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010903 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010904 },
10905
10906 {
10907 .vendor = "MoselVitelic",
10908 .name = "V29LC51001",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010909 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010910 .manufacture_id = SYNCMOS_MVC_ID,
10911 .model_id = MVC_V29LC51001,
10912 .total_size = 128,
10913 .page_size = 512,
10914 .feature_bits = FEATURE_EITHER_RESET,
10915 .tested = TEST_UNTESTED,
10916 .probe = probe_jedec,
10917 .probe_timing = TIMING_ZERO,
10918 .block_erasers =
10919 {
10920 {
10921 .eraseblocks = { {512, 256} },
10922 .block_erase = erase_sector_jedec,
10923 }, {
10924 .eraseblocks = { {128 * 1024, 1} },
10925 .block_erase = erase_chip_block_jedec,
10926 },
10927 },
10928 .write = write_jedec_1,
10929 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010930 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010931 },
10932
10933 {
10934 .vendor = "MoselVitelic",
10935 .name = "V29LC51002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010936 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010937 .manufacture_id = SYNCMOS_MVC_ID,
10938 .model_id = MVC_V29LC51002,
10939 .total_size = 256,
10940 .page_size = 512,
10941 .feature_bits = FEATURE_EITHER_RESET,
10942 .tested = TEST_UNTESTED,
10943 .probe = probe_jedec,
10944 .probe_timing = TIMING_ZERO,
10945 .block_erasers =
10946 {
10947 {
10948 .eraseblocks = { {512, 512} },
10949 .block_erase = erase_sector_jedec,
10950 }, {
10951 .eraseblocks = { {256 * 1024, 1} },
10952 .block_erase = erase_chip_block_jedec,
10953 },
10954 },
10955 .write = write_jedec_1,
10956 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010957 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010958 },
10959
10960 {
Stefan Taunerb6b00e92013-06-28 21:28:43 +000010961 .vendor = "Nantronics",
10962 .name = "N25S10",
10963 .bustype = BUS_SPI,
10964 .manufacture_id = NANTRONICS_ID_NOPREFIX,
10965 .model_id = NANTRONICS_N25S10,
10966 .total_size = 128,
10967 .page_size = 256,
10968 .feature_bits = FEATURE_WRSR_WREN,
10969 .tested = TEST_UNTESTED,
10970 .probe = probe_spi_rdid,
10971 .probe_timing = TIMING_ZERO,
10972 .block_erasers =
10973 {
10974 {
10975 .eraseblocks = { {4 * 1024, 32} },
10976 .block_erase = spi_block_erase_20,
10977 }, {
10978 .eraseblocks = { {4 * 1024, 32} },
10979 .block_erase = spi_block_erase_d7,
10980 }, {
10981 .eraseblocks = { {32 * 1024, 4} },
10982 .block_erase = spi_block_erase_52,
10983 }, {
10984 .eraseblocks = { {64 * 1024, 2} },
10985 .block_erase = spi_block_erase_d8,
10986 }, {
10987 .eraseblocks = { {128 * 1024, 1} },
10988 .block_erase = spi_block_erase_60,
10989 }, {
10990 .eraseblocks = { {128 * 1024, 1} },
10991 .block_erase = spi_block_erase_c7,
10992 }
10993 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010994 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000010995 .unlock = spi_disable_blockprotect_bp3_srwd,
10996 .write = spi_chip_write_256,
10997 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
10998 .voltage = {2700, 3600},
10999 },
11000
11001 {
11002 .vendor = "Nantronics",
Alan Green1f9cc7d2019-07-01 11:10:45 +100011003 .name = "N25S16",
11004 .bustype = BUS_SPI,
11005 .manufacture_id = NANTRONICS_ID_NOPREFIX,
11006 .model_id = NANTRONICS_N25S16,
11007 .total_size = 2048,
11008 .page_size = 256,
11009 .feature_bits = FEATURE_WRSR_WREN,
11010 .tested = TEST_UNTESTED,
11011 .probe = probe_spi_rdid,
11012 .probe_timing = TIMING_ZERO,
11013 .block_erasers =
11014 {
11015 {
11016 .eraseblocks = { {4 * 1024, 512} },
11017 .block_erase = spi_block_erase_20,
11018 }, {
11019 .eraseblocks = { {64 * 1024, 32} },
11020 .block_erase = spi_block_erase_d8,
11021 }, {
11022 .eraseblocks = { {2048 * 1024, 1} },
11023 .block_erase = spi_block_erase_60,
11024 }, {
11025 .eraseblocks = { {2048 * 1024, 1} },
11026 .block_erase = spi_block_erase_c7,
11027 }
11028 },
11029 .printlock = spi_prettyprint_status_register_bp3_srwd,
11030 .unlock = spi_disable_blockprotect_bp3_srwd,
11031 .write = spi_chip_write_256,
11032 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
11033 .voltage = {2700, 3600},
11034 },
11035
11036 {
11037 .vendor = "Nantronics",
Stefan Taunerb6b00e92013-06-28 21:28:43 +000011038 .name = "N25S20",
11039 .bustype = BUS_SPI,
11040 .manufacture_id = NANTRONICS_ID_NOPREFIX,
11041 .model_id = NANTRONICS_N25S20,
11042 .total_size = 256,
11043 .page_size = 256,
11044 .feature_bits = FEATURE_WRSR_WREN,
11045 .tested = TEST_UNTESTED,
11046 .probe = probe_spi_rdid,
11047 .probe_timing = TIMING_ZERO,
11048 .block_erasers =
11049 {
11050 {
11051 .eraseblocks = { {4 * 1024, 64} },
11052 .block_erase = spi_block_erase_20,
11053 }, {
11054 .eraseblocks = { {4 * 1024, 64} },
11055 .block_erase = spi_block_erase_d7,
11056 }, {
11057 .eraseblocks = { {32 * 1024, 8} },
11058 .block_erase = spi_block_erase_52,
11059 }, {
11060 .eraseblocks = { {64 * 1024, 4} },
11061 .block_erase = spi_block_erase_d8,
11062 }, {
11063 .eraseblocks = { {256 * 1024, 1} },
11064 .block_erase = spi_block_erase_60,
11065 }, {
11066 .eraseblocks = { {256 * 1024, 1} },
11067 .block_erase = spi_block_erase_c7,
11068 }
11069 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011070 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000011071 .unlock = spi_disable_blockprotect_bp3_srwd,
11072 .write = spi_chip_write_256,
11073 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
11074 .voltage = {2700, 3600},
11075 },
11076
11077 {
11078 .vendor = "Nantronics",
11079 .name = "N25S40",
11080 .bustype = BUS_SPI,
11081 .manufacture_id = NANTRONICS_ID_NOPREFIX,
11082 .model_id = NANTRONICS_N25S40,
11083 .total_size = 512,
11084 .page_size = 256,
11085 .feature_bits = FEATURE_WRSR_WREN,
11086 .tested = TEST_UNTESTED,
11087 .probe = probe_spi_rdid,
11088 .probe_timing = TIMING_ZERO,
11089 .block_erasers =
11090 {
11091 {
11092 .eraseblocks = { {4 * 1024, 128} },
11093 .block_erase = spi_block_erase_20,
11094 }, {
11095 .eraseblocks = { {4 * 1024, 128} },
11096 .block_erase = spi_block_erase_d7,
11097 }, {
11098 .eraseblocks = { {32 * 1024, 16} },
11099 .block_erase = spi_block_erase_52,
11100 }, {
11101 .eraseblocks = { {64 * 1024, 8} },
11102 .block_erase = spi_block_erase_d8,
11103 }, {
11104 .eraseblocks = { {512 * 1024, 1} },
11105 .block_erase = spi_block_erase_60,
11106 }, {
11107 .eraseblocks = { {512 * 1024, 1} },
11108 .block_erase = spi_block_erase_c7,
11109 }
11110 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011111 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000011112 .unlock = spi_disable_blockprotect_bp3_srwd,
11113 .write = spi_chip_write_256,
11114 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
11115 .voltage = {2700, 3600},
11116 },
11117
11118 {
11119 .vendor = "Nantronics",
11120 .name = "N25S80",
11121 .bustype = BUS_SPI,
11122 .manufacture_id = NANTRONICS_ID_NOPREFIX,
11123 .model_id = NANTRONICS_N25S80,
11124 .total_size = 1024,
11125 .page_size = 256,
11126 .feature_bits = FEATURE_WRSR_WREN,
11127 .tested = TEST_UNTESTED,
11128 .probe = probe_spi_rdid,
11129 .probe_timing = TIMING_ZERO,
11130 .block_erasers =
11131 {
11132 {
11133 .eraseblocks = { {4 * 1024, 256} },
11134 .block_erase = spi_block_erase_20,
11135 }, {
11136 .eraseblocks = { {32 * 1024, 32} },
11137 .block_erase = spi_block_erase_52,
11138 }, {
11139 .eraseblocks = { {64 * 1024, 16} },
11140 .block_erase = spi_block_erase_d8,
11141 }, {
11142 .eraseblocks = { {1024 * 1024, 1} },
11143 .block_erase = spi_block_erase_60,
11144 }, {
11145 .eraseblocks = { {1024 * 1024, 1} },
11146 .block_erase = spi_block_erase_c7,
11147 }
11148 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011149 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000011150 .unlock = spi_disable_blockprotect_bp3_srwd,
11151 .write = spi_chip_write_256,
11152 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
11153 .voltage = {2700, 3600},
11154 },
11155
11156 {
Stefan Taunerf4451612013-04-19 01:59:15 +000011157 .vendor = "PMC",
11158 .name = "Pm25LD010(C)",
11159 .bustype = BUS_SPI,
11160 .manufacture_id = PMC_ID,
11161 .model_id = PMC_PM25LD010,
11162 .total_size = 128,
11163 .page_size = 256,
11164 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000011165 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +000011166 .probe = probe_spi_rdid,
11167 .probe_timing = TIMING_ZERO,
11168 .block_erasers =
11169 {
11170 {
11171 .eraseblocks = { {4 * 1024, 32} },
11172 .block_erase = spi_block_erase_20,
11173 }, {
11174 .eraseblocks = { {4 * 1024, 32} },
11175 .block_erase = spi_block_erase_d7,
11176 }, {
11177 .eraseblocks = { {32 * 1024, 4} },
11178 .block_erase = spi_block_erase_d8,
11179 }, {
11180 .eraseblocks = { {128 * 1024, 1} },
11181 .block_erase = spi_block_erase_60,
11182 }, {
11183 .eraseblocks = { {128 * 1024, 1} },
11184 .block_erase = spi_block_erase_c7,
11185 }
11186 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011187 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000011188 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
11189 .write = spi_chip_write_256,
11190 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
11191 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD010 */
11192 },
11193
11194 {
11195 .vendor = "PMC",
11196 .name = "Pm25LD020(C)",
11197 .bustype = BUS_SPI,
11198 .manufacture_id = PMC_ID,
11199 .model_id = PMC_PM25LD020,
11200 .total_size = 256,
11201 .page_size = 256,
11202 .feature_bits = FEATURE_WRSR_WREN,
Angel Ponsf5822a82018-09-30 20:09:58 +020011203 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +000011204 .probe = probe_spi_rdid,
11205 .probe_timing = TIMING_ZERO,
11206 .block_erasers =
11207 {
11208 {
11209 .eraseblocks = { {4 * 1024, 64} },
11210 .block_erase = spi_block_erase_20,
11211 }, {
11212 .eraseblocks = { {4 * 1024, 64} },
11213 .block_erase = spi_block_erase_d7,
11214 }, {
11215 .eraseblocks = { {64 * 1024, 4} },
11216 .block_erase = spi_block_erase_d8,
11217 }, {
11218 .eraseblocks = { {256 * 1024, 1} },
11219 .block_erase = spi_block_erase_60,
11220 }, {
11221 .eraseblocks = { {256 * 1024, 1} },
11222 .block_erase = spi_block_erase_c7,
11223 }
11224 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011225 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000011226 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
11227 .write = spi_chip_write_256,
11228 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
11229 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD020 */
11230 },
11231
11232 {
11233 .vendor = "PMC",
11234 .name = "Pm25LD040(C)",
11235 .bustype = BUS_SPI,
11236 .manufacture_id = PMC_ID,
11237 .model_id = PMC_PM25LV040,
11238 .total_size = 512,
11239 .page_size = 256,
11240 .feature_bits = FEATURE_WRSR_WREN,
Angel Pons05127bf2018-09-30 20:23:24 +020011241 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +000011242 .probe = probe_spi_rdid,
11243 .probe_timing = TIMING_ZERO,
11244 .block_erasers =
11245 {
11246 {
11247 .eraseblocks = { {4 * 1024, 128} },
11248 .block_erase = spi_block_erase_20,
11249 }, {
11250 .eraseblocks = { {4 * 1024, 128} },
11251 .block_erase = spi_block_erase_d7,
11252 }, {
11253 .eraseblocks = { {64 * 1024, 8} },
11254 .block_erase = spi_block_erase_d8,
11255 }, {
11256 .eraseblocks = { {512 * 1024, 1} },
11257 .block_erase = spi_block_erase_60,
11258 }, {
11259 .eraseblocks = { {512 * 1024, 1} },
11260 .block_erase = spi_block_erase_c7,
11261 }
11262 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011263 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000011264 .unlock = spi_disable_blockprotect,
11265 .write = spi_chip_write_256,
11266 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
11267 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD040 */
11268 },
11269
Steven Honeyman81a8fb72015-06-02 22:32:24 +000011270 {
11271 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100011272 .name = "Pm25LD256C",
11273 .bustype = BUS_SPI,
11274 .manufacture_id = PMC_ID,
11275 .model_id = PMC_PM25LD256C,
11276 .total_size = 32,
11277 .page_size = 256,
11278 .feature_bits = FEATURE_WRSR_WREN,
11279 .tested = TEST_UNTESTED,
11280 .probe = probe_spi_rdid,
11281 .probe_timing = TIMING_ZERO,
11282 .block_erasers =
11283 {
11284 {
11285 .eraseblocks = { {4 * 1024, 8} },
11286 .block_erase = spi_block_erase_20,
11287 }, {
11288 .eraseblocks = { {4 * 1024, 8} },
11289 .block_erase = spi_block_erase_d7,
11290 }, {
11291 .eraseblocks = { {32 * 1024, 1} },
11292 .block_erase = spi_block_erase_d8,
11293 }, {
11294 .eraseblocks = { {32 * 1024, 1} },
11295 .block_erase = spi_block_erase_60,
11296 }, {
11297 .eraseblocks = { {32 * 1024, 1} },
11298 .block_erase = spi_block_erase_c7,
11299 }
11300 },
11301 .printlock = spi_prettyprint_status_register_bp2_srwd,
11302 .unlock = spi_disable_blockprotect,
11303 .write = spi_chip_write_256,
11304 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
11305 .voltage = {2700, 3600},
11306 },
11307
11308 {
11309 .vendor = "PMC",
11310 .name = "Pm25LD512(C)",
11311 .bustype = BUS_SPI,
11312 .manufacture_id = PMC_ID,
11313 .model_id = PMC_PM25LD512,
11314 .total_size = 64,
11315 .page_size = 256,
11316 .feature_bits = FEATURE_WRSR_WREN,
11317 .tested = TEST_OK_PREW,
11318 .probe = probe_spi_rdid,
11319 .probe_timing = TIMING_ZERO,
11320 .block_erasers =
11321 {
11322 {
11323 .eraseblocks = { {4 * 1024, 16} },
11324 .block_erase = spi_block_erase_20,
11325 }, {
11326 .eraseblocks = { {4 * 1024, 16} },
11327 .block_erase = spi_block_erase_d7,
11328 }, {
11329 .eraseblocks = { {32 * 1024, 2} },
11330 .block_erase = spi_block_erase_d8,
11331 }, {
11332 .eraseblocks = { {64 * 1024, 1} },
11333 .block_erase = spi_block_erase_60,
11334 }, {
11335 .eraseblocks = { {64 * 1024, 1} },
11336 .block_erase = spi_block_erase_c7,
11337 }
11338 },
11339 .printlock = spi_prettyprint_status_register_bp2_srwd,
11340 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
11341 .write = spi_chip_write_256,
11342 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
11343 .voltage = {2300, 3600},
11344 },
11345
11346 {
11347 .vendor = "PMC",
11348 .name = "Pm25LQ016",
11349 .bustype = BUS_SPI,
11350 .manufacture_id = PMC_ID,
11351 .model_id = PMC_PM25LQ016,
11352 .total_size = 2048,
11353 .page_size = 256,
11354 /* OTP: 256B total; read 0x4B, write 0xB1 */
11355 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11356 .tested = TEST_UNTESTED,
11357 .probe = probe_spi_rdid,
11358 .probe_timing = TIMING_ZERO,
11359 .block_erasers =
11360 {
11361 {
11362 .eraseblocks = { {4 * 1024, 512} },
11363 .block_erase = spi_block_erase_20,
11364 }, {
11365 .eraseblocks = { {4 * 1024, 512} },
11366 .block_erase = spi_block_erase_d7,
11367 }, {
11368 .eraseblocks = { {64 * 1024, 32} },
11369 .block_erase = spi_block_erase_d8,
11370 }, {
11371 .eraseblocks = { {2048 * 1024, 1} },
11372 .block_erase = spi_block_erase_60,
11373 }, {
11374 .eraseblocks = { {2048 * 1024, 1} },
11375 .block_erase = spi_block_erase_c7,
11376 }
11377 },
11378 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
11379 .unlock = spi_disable_blockprotect_bp3_srwd,
11380 .write = spi_chip_write_256,
11381 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11382 .voltage = {2300, 3600},
11383 },
11384
11385 {
11386 .vendor = "PMC",
Steven Honeyman81a8fb72015-06-02 22:32:24 +000011387 .name = "Pm25LQ020",
11388 .bustype = BUS_SPI,
11389 .manufacture_id = PMC_ID,
11390 .model_id = PMC_PM25LQ020,
11391 .total_size = 256,
11392 .page_size = 256,
11393 /* OTP: 256B total; read 0x4B, write 0xB1 */
11394 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11395 .tested = TEST_UNTESTED,
11396 .probe = probe_spi_rdid,
11397 .probe_timing = TIMING_ZERO,
11398 .block_erasers =
11399 {
11400 {
11401 .eraseblocks = { {4 * 1024, 64} },
11402 .block_erase = spi_block_erase_20,
11403 }, {
11404 .eraseblocks = { {4 * 1024, 64} },
11405 .block_erase = spi_block_erase_d7,
11406 }, {
11407 .eraseblocks = { {64 * 1024, 4} },
11408 .block_erase = spi_block_erase_d8,
11409 }, {
11410 .eraseblocks = { {256 * 1024, 1} },
11411 .block_erase = spi_block_erase_60,
11412 }, {
11413 .eraseblocks = { {256 * 1024, 1} },
11414 .block_erase = spi_block_erase_c7,
11415 }
11416 },
11417 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
11418 .unlock = spi_disable_blockprotect_bp3_srwd,
11419 .write = spi_chip_write_256,
11420 .read = spi_chip_read,
11421 .voltage = {2300, 3600},
11422 },
11423
11424 {
11425 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100011426 .name = "Pm25LQ032C",
11427 .bustype = BUS_SPI,
11428 .manufacture_id = PMC_ID,
11429 .model_id = PMC_PM25LQ032C,
11430 .total_size = 4096,
11431 .page_size = 256,
11432 /* OTP: 64B total; read 0x4B, write 0xB1 */
11433 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11434 .tested = TEST_OK_PREW,
11435 .probe = probe_spi_rdid,
11436 .probe_timing = TIMING_ZERO,
11437 .block_erasers =
11438 {
11439 {
11440 .eraseblocks = { {4 * 1024, 1024} },
11441 .block_erase = spi_block_erase_20,
11442 }, {
11443 .eraseblocks = { {4 * 1024, 1024} },
11444 .block_erase = spi_block_erase_d7,
11445 }, {
11446 .eraseblocks = { {64 * 1024, 64} },
11447 .block_erase = spi_block_erase_d8,
11448 }, {
11449 .eraseblocks = { {4096 * 1024, 1} },
11450 .block_erase = spi_block_erase_60,
11451 }, {
11452 .eraseblocks = { {4096 * 1024, 1} },
11453 .block_erase = spi_block_erase_c7,
11454 }
11455 },
11456 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
11457 .unlock = spi_disable_blockprotect_bp3_srwd,
11458 .write = spi_chip_write_256,
11459 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11460 .voltage = {2700, 3600},
11461 },
11462
11463 {
11464 .vendor = "PMC",
Steven Honeyman81a8fb72015-06-02 22:32:24 +000011465 .name = "Pm25LQ040",
11466 .bustype = BUS_SPI,
11467 .manufacture_id = PMC_ID,
11468 .model_id = PMC_PM25LQ040,
11469 .total_size = 512,
11470 .page_size = 256,
11471 /* OTP: 256B total; read 0x4B, write 0xB1 */
11472 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11473 .tested = TEST_UNTESTED,
11474 .probe = probe_spi_rdid,
11475 .probe_timing = TIMING_ZERO,
11476 .block_erasers =
11477 {
11478 {
11479 .eraseblocks = { {4 * 1024, 128} },
11480 .block_erase = spi_block_erase_20,
11481 }, {
11482 .eraseblocks = { {4 * 1024, 128} },
11483 .block_erase = spi_block_erase_d7,
11484 }, {
11485 .eraseblocks = { {64 * 1024, 8} },
11486 .block_erase = spi_block_erase_d8,
11487 }, {
11488 .eraseblocks = { {512 * 1024, 1} },
11489 .block_erase = spi_block_erase_60,
11490 }, {
11491 .eraseblocks = { {512 * 1024, 1} },
11492 .block_erase = spi_block_erase_c7,
11493 }
11494 },
11495 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
11496 .unlock = spi_disable_blockprotect_bp3_srwd,
11497 .write = spi_chip_write_256,
11498 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11499 .voltage = {2300, 3600},
11500 },
11501
11502 {
11503 .vendor = "PMC",
11504 .name = "Pm25LQ080",
11505 .bustype = BUS_SPI,
11506 .manufacture_id = PMC_ID,
11507 .model_id = PMC_PM25LQ080,
11508 .total_size = 1024,
11509 .page_size = 256,
11510 /* OTP: 64B total; read 0x4B, write 0xB1 */
11511 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11512 .tested = TEST_UNTESTED,
11513 .probe = probe_spi_rdid,
11514 .probe_timing = TIMING_ZERO,
11515 .block_erasers =
11516 {
11517 {
11518 .eraseblocks = { {4 * 1024, 256} },
11519 .block_erase = spi_block_erase_20,
11520 }, {
11521 .eraseblocks = { {4 * 1024, 256} },
11522 .block_erase = spi_block_erase_d7,
11523 }, {
11524 .eraseblocks = { {64 * 1024, 16} },
11525 .block_erase = spi_block_erase_d8,
11526 }, {
11527 .eraseblocks = { {1024 * 1024, 1} },
11528 .block_erase = spi_block_erase_60,
11529 }, {
11530 .eraseblocks = { {1024 * 1024, 1} },
11531 .block_erase = spi_block_erase_c7,
11532 }
11533 },
11534 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
11535 .unlock = spi_disable_blockprotect_bp3_srwd,
11536 .write = spi_chip_write_256,
11537 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11538 .voltage = {2300, 3600},
11539 },
11540
11541 {
11542 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011543 .name = "Pm25LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011544 .bustype = BUS_SPI,
Stefan Taunerbecda742014-05-30 19:34:00 +000011545 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011546 .model_id = PMC_PM25LV010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011547 .total_size = 128,
11548 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011549 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerbecda742014-05-30 19:34:00 +000011550 .tested = TEST_OK_PREW,
11551 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000011552 .probe_timing = TIMING_ZERO,
11553 .block_erasers =
11554 {
11555 {
11556 .eraseblocks = { {4 * 1024, 32} },
11557 .block_erase = spi_block_erase_d7,
11558 }, {
11559 .eraseblocks = { {32 * 1024, 4} },
11560 .block_erase = spi_block_erase_d8,
11561 }, {
11562 .eraseblocks = { {128 * 1024, 1} },
11563 .block_erase = spi_block_erase_c7,
11564 }
11565 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011566 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000011567 .unlock = spi_disable_blockprotect,
11568 .write = spi_chip_write_256,
11569 .read = spi_chip_read, /* Fast read (0x0B) supported */
11570 .voltage = {2700, 3600},
11571 },
11572
11573 {
11574 .vendor = "PMC",
11575 .name = "Pm25LV010A",
11576 .bustype = BUS_SPI,
11577 .manufacture_id = PMC_ID,
11578 .model_id = PMC_PM25LV010,
11579 .total_size = 128,
11580 .page_size = 256,
11581 .feature_bits = FEATURE_WRSR_WREN,
11582 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011583 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011584 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000011585 .block_erasers =
11586 {
11587 {
11588 .eraseblocks = { {4 * 1024, 32} },
11589 .block_erase = spi_block_erase_d7,
11590 }, {
11591 .eraseblocks = { {32 * 1024, 4} },
11592 .block_erase = spi_block_erase_d8,
11593 }, {
11594 .eraseblocks = { {128 * 1024, 1} },
11595 .block_erase = spi_block_erase_c7,
11596 }
11597 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011598 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011599 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000011600 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000011601 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +000011602 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011603 },
11604
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011605 {
11606 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100011607 .name = "Pm25LV016B",
11608 .bustype = BUS_SPI,
11609 .manufacture_id = PMC_ID,
11610 .model_id = PMC_PM25LV016B,
11611 .total_size = 2048,
11612 .page_size = 256,
11613 .feature_bits = FEATURE_WRSR_WREN,
11614 .tested = TEST_UNTESTED,
11615 .probe = probe_spi_rdid,
11616 .probe_timing = TIMING_ZERO,
11617 .block_erasers =
11618 {
11619 {
11620 .eraseblocks = { {4 * 1024, 512} },
11621 .block_erase = spi_block_erase_d7,
11622 }, {
11623 .eraseblocks = { {4 * 1024, 512} },
11624 .block_erase = spi_block_erase_20,
11625 }, {
11626 .eraseblocks = { {64 * 1024, 32} },
11627 .block_erase = spi_block_erase_d8,
11628 }, {
11629 .eraseblocks = { {2 * 1024 * 1024, 1} },
11630 .block_erase = spi_block_erase_60,
11631 }, {
11632 .eraseblocks = { {2 * 1024 * 1024, 1} },
11633 .block_erase = spi_block_erase_c7,
11634 }
11635 },
11636 .printlock = spi_prettyprint_status_register_bp2_srwd,
11637 .unlock = spi_disable_blockprotect,
11638 .write = spi_chip_write_256,
11639 .read = spi_chip_read, /* Fast read (0x0B) supported */
11640 .voltage = {2700, 3600},
11641 },
11642
11643 {
11644 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011645 .name = "Pm25LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011646 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011647 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011648 .model_id = PMC_PM25LV020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011649 .total_size = 256,
11650 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011651 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011652 .tested = TEST_UNTESTED,
11653 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011654 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000011655 .block_erasers =
11656 {
11657 {
11658 .eraseblocks = { {4 * 1024, 64} },
11659 .block_erase = spi_block_erase_d7,
11660 }, {
11661 .eraseblocks = { {64 * 1024, 4} },
11662 .block_erase = spi_block_erase_d8,
11663 }, {
11664 .eraseblocks = { {256 * 1024, 1} },
11665 .block_erase = spi_block_erase_c7,
11666 }
11667 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011668 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011669 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000011670 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011671 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011672 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011673 },
11674
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011675 {
11676 .vendor = "PMC",
11677 .name = "Pm25LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011678 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011679 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011680 .model_id = PMC_PM25LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011681 .total_size = 512,
11682 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011683 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +000011684 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011685 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011686 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000011687 .block_erasers =
11688 {
11689 {
11690 .eraseblocks = { {4 * 1024, 128} },
11691 .block_erase = spi_block_erase_d7,
11692 }, {
11693 .eraseblocks = { {64 * 1024, 8} },
11694 .block_erase = spi_block_erase_d8,
11695 }, {
11696 .eraseblocks = { {512 * 1024, 1} },
11697 .block_erase = spi_block_erase_c7,
11698 }
11699 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011700 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011701 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000011702 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000011703 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011704 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011705 },
11706
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011707 {
11708 .vendor = "PMC",
11709 .name = "Pm25LV080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011710 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011711 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011712 .model_id = PMC_PM25LV080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011713 .total_size = 1024,
11714 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011715 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011716 .tested = TEST_UNTESTED,
11717 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011718 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000011719 .block_erasers =
11720 {
11721 {
11722 .eraseblocks = { {4 * 1024, 256} },
11723 .block_erase = spi_block_erase_d7,
11724 }, {
11725 .eraseblocks = { {4 * 1024, 256} },
11726 .block_erase = spi_block_erase_20,
11727 }, {
11728 .eraseblocks = { {64 * 1024, 16} },
11729 .block_erase = spi_block_erase_d8,
11730 }, {
11731 .eraseblocks = { {1024 * 1024, 1} },
11732 .block_erase = spi_block_erase_60,
11733 }, {
11734 .eraseblocks = { {1024 * 1024, 1} },
11735 .block_erase = spi_block_erase_c7,
11736 }
11737 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011738 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011739 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000011740 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000011741 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011742 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011743 },
11744
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011745 {
11746 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100011747 .name = "Pm25LV512(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011748 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +100011749 .manufacture_id = PMC_ID_NOPREFIX,
11750 .model_id = PMC_PM25LV512,
11751 .total_size = 64,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011752 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011753 .feature_bits = FEATURE_WRSR_WREN,
Alan Green1f9cc7d2019-07-01 11:10:45 +100011754 .tested = TEST_OK_PREW,
11755 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011756 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000011757 .block_erasers =
11758 {
11759 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100011760 .eraseblocks = { {4 * 1024, 16} },
Sean Nelson5643c072010-01-19 03:23:07 +000011761 .block_erase = spi_block_erase_d7,
11762 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100011763 .eraseblocks = { {32 * 1024, 2} },
Sean Nelson5643c072010-01-19 03:23:07 +000011764 .block_erase = spi_block_erase_d8,
11765 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100011766 .eraseblocks = { {64 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +000011767 .block_erase = spi_block_erase_c7,
11768 }
11769 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100011770 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011771 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000011772 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000011773 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +000011774 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011775 },
11776
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011777 {
11778 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +000011779 .name = "Pm29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011780 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000011781 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011782 .model_id = PMC_PM29F002B,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000011783 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +000011784 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011785 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000011786 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000011787 .probe = probe_jedec,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011788 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +000011789 .block_erasers =
11790 {
11791 {
11792 .eraseblocks = {
11793 {16 * 1024, 1},
11794 {8 * 1024, 2},
11795 {96 * 1024, 1},
11796 {128 * 1024, 1},
11797 },
Sean Nelson35727f72010-01-28 23:55:12 +000011798 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000011799 }, {
11800 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000011801 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000011802 },
11803 },
Sean Nelson35727f72010-01-28 23:55:12 +000011804 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000011805 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011806 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +000011807 },
11808
11809 {
11810 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100011811 .name = "Pm29F002T",
11812 .bustype = BUS_PARALLEL,
11813 .manufacture_id = PMC_ID_NOPREFIX,
11814 .model_id = PMC_PM29F002T,
11815 .total_size = 256,
11816 .page_size = 8 * 1024,
11817 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
11818 .tested = TEST_OK_PREW,
11819 .probe = probe_jedec,
11820 .probe_timing = TIMING_FIXME,
11821 .block_erasers =
11822 {
11823 {
11824 .eraseblocks = {
11825 {128 * 1024, 1},
11826 {96 * 1024, 1},
11827 {8 * 1024, 2},
11828 {16 * 1024, 1},
11829 },
11830 .block_erase = erase_sector_jedec,
11831 }, {
11832 .eraseblocks = { {256 * 1024, 1} },
11833 .block_erase = erase_chip_block_jedec,
11834 },
11835 },
11836 .write = write_jedec_1,
11837 .read = read_memmapped,
11838 .voltage = {4500, 5500},
11839 },
11840
11841 {
11842 .vendor = "PMC",
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000011843 .name = "Pm39LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011844 .bustype = BUS_PARALLEL,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000011845 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011846 .model_id = PMC_PM39F010, /* Pm39LV010 and Pm39F010 have identical IDs but different voltage */
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000011847 .total_size = 128,
11848 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000011849 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000011850 .tested = TEST_OK_PREW,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000011851 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011852 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson5643c072010-01-19 03:23:07 +000011853 .block_erasers =
11854 {
11855 {
11856 .eraseblocks = { {4 * 1024, 32} },
11857 .block_erase = erase_sector_jedec,
11858 }, {
11859 .eraseblocks = { {64 * 1024, 2} },
11860 .block_erase = erase_block_jedec,
11861 }, {
11862 .eraseblocks = { {128 * 1024, 1} },
11863 .block_erase = erase_chip_block_jedec,
11864 }
11865 },
Sean Nelson35727f72010-01-28 23:55:12 +000011866 .write = write_jedec_1,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000011867 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011868 .voltage = {2700, 3600},
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000011869 },
11870
11871 {
11872 .vendor = "PMC",
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011873 .name = "Pm39LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011874 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011875 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011876 .model_id = PMC_PM39LV020,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011877 .total_size = 256,
11878 .page_size = 4096,
11879 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
11880 .tested = TEST_UNTESTED,
11881 .probe = probe_jedec,
11882 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Alan Greenfa3fcd32019-06-27 15:41:50 +100011883 .block_erasers =
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011884 {
11885 {
11886 .eraseblocks = { {4 * 1024, 64} },
11887 .block_erase = erase_sector_jedec,
11888 }, {
11889 .eraseblocks = { {64 * 1024, 4} },
11890 .block_erase = erase_block_jedec,
11891 }, {
11892 .eraseblocks = { {256 * 1024, 1} },
11893 .block_erase = erase_chip_block_jedec,
11894 }
11895 },
11896 .write = write_jedec_1,
11897 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011898 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011899 },
11900
11901 {
11902 .vendor = "PMC",
11903 .name = "Pm39LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011904 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011905 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011906 .model_id = PMC_PM39LV040,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011907 .total_size = 512,
11908 .page_size = 4096,
11909 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000011910 .tested = TEST_OK_PR,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011911 .probe = probe_jedec,
11912 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Alan Greenfa3fcd32019-06-27 15:41:50 +100011913 .block_erasers =
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011914 {
11915 {
11916 .eraseblocks = { {4 * 1024, 128} },
11917 .block_erase = erase_sector_jedec,
11918 }, {
11919 .eraseblocks = { {64 * 1024, 8} },
11920 .block_erase = erase_block_jedec,
11921 }, {
11922 .eraseblocks = { {512 * 1024, 1} },
11923 .block_erase = erase_chip_block_jedec,
11924 }
11925 },
11926 .write = write_jedec_1,
11927 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011928 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011929 },
Kyösti Mälkkiedab1d22012-05-20 23:32:33 +000011930
11931 {
11932 .vendor = "PMC",
11933 .name = "Pm39LV512",
11934 .bustype = BUS_PARALLEL,
11935 .manufacture_id = PMC_ID_NOPREFIX,
11936 .model_id = PMC_PM39LV512,
11937 .total_size = 64,
11938 .page_size = 4096,
11939 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
11940 .tested = TEST_OK_PREW,
11941 .probe = probe_jedec,
11942 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
11943 .block_erasers =
11944 {
11945 {
11946 .eraseblocks = { {4 * 1024, 16} },
11947 .block_erase = erase_sector_jedec,
11948 }, {
11949 .eraseblocks = { {64 * 1024, 1} },
11950 .block_erase = erase_block_jedec,
11951 }, {
11952 .eraseblocks = { {64 * 1024, 1} },
11953 .block_erase = erase_chip_block_jedec,
11954 }
11955 },
11956 .write = write_jedec_1,
11957 .read = read_memmapped,
11958 .voltage = {2700, 3600},
11959 },
11960
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011961 {
11962 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011963 .name = "Pm49FL002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011964 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011965 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011966 .model_id = PMC_PM49FL002,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011967 .total_size = 256,
11968 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011969 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000011970 .tested = TEST_OK_PR,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000011971 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011972 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +000011973 .block_erasers =
11974 {
11975 {
11976 .eraseblocks = { {4 * 1024, 64} },
11977 .block_erase = erase_sector_jedec,
11978 }, {
11979 .eraseblocks = { {16 * 1024, 16} },
11980 .block_erase = erase_block_jedec,
11981 }, {
11982 .eraseblocks = { {256 * 1024, 1} },
11983 .block_erase = erase_chip_block_jedec,
11984 }
11985 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000011986 .unlock = unlock_regspace2_uniform_32k,
Sean Nelson36172342010-02-27 18:01:15 +000011987 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011988 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011989 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011990 },
11991
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011992 {
11993 .vendor = "PMC",
11994 .name = "Pm49FL004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011995 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011996 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011997 .model_id = PMC_PM49FL004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011998 .total_size = 512,
11999 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012000 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner74dc73f2015-03-01 22:04:38 +000012001 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000012002 .probe = probe_jedec,
Stefan Tauner74dc73f2015-03-01 22:04:38 +000012003 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000012004 .block_erasers =
12005 {
12006 {
12007 .eraseblocks = { {4 * 1024, 128} },
12008 .block_erase = erase_sector_jedec,
12009 }, {
12010 .eraseblocks = { {64 * 1024, 8} },
12011 .block_erase = erase_block_jedec,
12012 }, {
12013 .eraseblocks = { {512 * 1024, 1} },
12014 .block_erase = erase_chip_block_jedec,
12015 }
12016 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012017 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson36172342010-02-27 18:01:15 +000012018 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012019 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012020 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012021 },
12022
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012023 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012024 .vendor = "SST",
Idwer Volleringf3607d12014-05-07 15:25:04 +000012025 .name = "SST25LF020A",
12026 .bustype = BUS_SPI,
12027 .manufacture_id = SST_ID,
12028 .model_id = SST_SST25VF020_REMS,
12029 .total_size = 256,
12030 .page_size = 256,
12031 .feature_bits = FEATURE_WRSR_EWSR,
12032 .tested = TEST_OK_PREW,
12033 .probe = probe_spi_rems,
12034 .probe_timing = TIMING_ZERO,
12035 .block_erasers =
12036 {
12037 {
12038 .eraseblocks = { {4 * 1024, 64} },
12039 .block_erase = spi_block_erase_20,
12040 }, {
12041 .eraseblocks = { {32 * 1024, 8} },
12042 .block_erase = spi_block_erase_52,
12043 }, {
12044 .eraseblocks = { {256 * 1024, 1} },
12045 .block_erase = spi_block_erase_60,
12046 },
12047 },
12048 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
12049 .unlock = spi_disable_blockprotect,
12050 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
12051 .read = spi_chip_read, /* Fast read (0x0B) supported */
12052 .voltage = {2700, 3600},
12053 },
12054
12055 {
12056 .vendor = "SST",
Zeus Castro33670ba2011-08-17 09:50:11 +000012057 .name = "SST25LF040A",
12058 .bustype = BUS_SPI,
12059 .manufacture_id = SST_ID,
12060 .model_id = SST_SST25VF040_REMS,
12061 .total_size = 512,
12062 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012063 .feature_bits = FEATURE_WRSR_EWSR,
Uwe Hermann4335ec82011-09-07 20:20:25 +000012064 .tested = TEST_OK_PREW,
Zeus Castro33670ba2011-08-17 09:50:11 +000012065 .probe = probe_spi_res2,
12066 .probe_timing = TIMING_ZERO,
12067 .block_erasers =
12068 {
12069 {
12070 .eraseblocks = { {4 * 1024, 128} },
12071 .block_erase = spi_block_erase_20,
12072 }, {
12073 .eraseblocks = { {32 * 1024, 16} },
12074 .block_erase = spi_block_erase_52,
12075 }, {
12076 .eraseblocks = { {512 * 1024, 1} },
12077 .block_erase = spi_block_erase_60,
12078 },
12079 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012080 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +000012081 .unlock = spi_disable_blockprotect,
12082 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
12083 .read = spi_chip_read,
12084 .voltage = {3000, 3600},
12085 },
12086
12087 {
12088 .vendor = "SST",
Stefan Taunere34e3e82013-01-01 00:06:51 +000012089 .name = "SST25LF080(A)",
Zeus Castro33670ba2011-08-17 09:50:11 +000012090 .bustype = BUS_SPI,
12091 .manufacture_id = SST_ID,
12092 .model_id = SST_SST25VF080_REMS,
12093 .total_size = 1024,
12094 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000012095 .feature_bits = FEATURE_WRSR_EITHER,
Zeus Castro33670ba2011-08-17 09:50:11 +000012096 .tested = TEST_UNTESTED,
12097 .probe = probe_spi_res2,
12098 .probe_timing = TIMING_ZERO,
12099 .block_erasers =
12100 {
12101 {
12102 .eraseblocks = { {4 * 1024, 256} },
12103 .block_erase = spi_block_erase_20,
12104 }, {
12105 .eraseblocks = { {32 * 1024, 32} },
12106 .block_erase = spi_block_erase_52,
12107 }, {
12108 .eraseblocks = { {1024 * 1024, 1} },
12109 .block_erase = spi_block_erase_60,
12110 },
12111 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012112 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +000012113 .unlock = spi_disable_blockprotect,
12114 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
12115 .read = spi_chip_read,
12116 .voltage = {3000, 3600},
12117 },
12118
12119 {
12120 .vendor = "SST",
Stefan Tauner6697f712014-08-06 15:09:15 +000012121 .name = "SST25VF010(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012122 .bustype = BUS_SPI,
Mark Marshall90021f22010-12-03 14:48:11 +000012123 .manufacture_id = SST_ID,
12124 .model_id = SST_SST25VF010_REMS,
12125 .total_size = 128,
12126 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012127 .feature_bits = FEATURE_WRSR_EWSR,
Mark Marshall90021f22010-12-03 14:48:11 +000012128 .tested = TEST_OK_PREW,
12129 .probe = probe_spi_rems,
12130 .probe_timing = TIMING_ZERO,
12131 .block_erasers =
12132 {
12133 {
12134 .eraseblocks = { {4 * 1024, 32} },
12135 .block_erase = spi_block_erase_20,
12136 }, {
12137 .eraseblocks = { {32 * 1024, 4} },
12138 .block_erase = spi_block_erase_52,
12139 }, {
Cory Henderson370f5822013-10-19 23:09:16 +000012140 .eraseblocks = { {32 * 1024, 4} },
Stefan Tauner6697f712014-08-06 15:09:15 +000012141 .block_erase = spi_block_erase_d8, /* Supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000012142 }, {
Mark Marshall90021f22010-12-03 14:48:11 +000012143 .eraseblocks = { {128 * 1024, 1} },
12144 .block_erase = spi_block_erase_60,
Cory Henderson370f5822013-10-19 23:09:16 +000012145 }, {
12146 .eraseblocks = { {128 * 1024, 1} },
Stefan Tauner6697f712014-08-06 15:09:15 +000012147 .block_erase = spi_block_erase_c7, /* Supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000012148 },
12149 },
12150 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
12151 .unlock = spi_disable_blockprotect,
12152 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
Stefan Tauner6697f712014-08-06 15:09:15 +000012153 .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000012154 .voltage = {2700, 3600},
12155 },
12156
12157 {
12158 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012159 .name = "SST25VF016B",
12160 .bustype = BUS_SPI,
12161 .manufacture_id = SST_ID,
12162 .model_id = SST_SST25VF016B,
12163 .total_size = 2048,
12164 .page_size = 256,
12165 .feature_bits = FEATURE_WRSR_EITHER,
12166 .tested = TEST_OK_PREW,
12167 .probe = probe_spi_rdid,
12168 .probe_timing = TIMING_ZERO,
12169 .block_erasers =
12170 {
12171 {
12172 .eraseblocks = { {4 * 1024, 512} },
12173 .block_erase = spi_block_erase_20,
12174 }, {
12175 .eraseblocks = { {32 * 1024, 64} },
12176 .block_erase = spi_block_erase_52,
12177 }, {
12178 .eraseblocks = { {64 * 1024, 32} },
12179 .block_erase = spi_block_erase_d8,
12180 }, {
12181 .eraseblocks = { {2 * 1024 * 1024, 1} },
12182 .block_erase = spi_block_erase_60,
12183 }, {
12184 .eraseblocks = { {2 * 1024 * 1024, 1} },
12185 .block_erase = spi_block_erase_c7,
12186 },
12187 },
12188 .printlock = spi_prettyprint_status_register_sst25vf016,
12189 .unlock = spi_disable_blockprotect,
12190 .write = spi_aai_write,
12191 .read = spi_chip_read,
12192 .voltage = {2700, 3600},
12193 },
12194
12195 {
12196 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +000012197 .name = "SST25VF020",
12198 .bustype = BUS_SPI,
12199 .manufacture_id = SST_ID,
12200 .model_id = SST_SST25VF020_REMS,
12201 .total_size = 256,
12202 .page_size = 256,
12203 .feature_bits = FEATURE_WRSR_EWSR,
12204 .tested = TEST_UNTESTED,
12205 .probe = probe_spi_rems,
12206 .probe_timing = TIMING_ZERO,
12207 .block_erasers =
12208 {
12209 {
12210 .eraseblocks = { {4 * 1024, 64} },
12211 .block_erase = spi_block_erase_20,
12212 }, {
12213 .eraseblocks = { {32 * 1024, 8} },
12214 .block_erase = spi_block_erase_52,
12215 }, {
12216 .eraseblocks = { {256 * 1024, 1} },
12217 .block_erase = spi_block_erase_60,
12218 },
12219 },
12220 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
12221 .unlock = spi_disable_blockprotect,
12222 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
12223 .read = spi_chip_read, /* only */
12224 .voltage = {2700, 3600},
12225 },
12226
12227 {
12228 .vendor = "SST",
12229 .name = "SST25VF020B",
12230 .bustype = BUS_SPI,
12231 .manufacture_id = SST_ID,
12232 .model_id = SST_SST25VF020B,
12233 .total_size = 256,
12234 .page_size = 256,
12235 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000012236 .tested = TEST_OK_PREW,
Cory Henderson370f5822013-10-19 23:09:16 +000012237 .probe = probe_spi_rdid,
12238 .probe_timing = TIMING_ZERO,
12239 .block_erasers =
12240 {
12241 {
12242 .eraseblocks = { {4 * 1024, 64} },
12243 .block_erase = spi_block_erase_20,
12244 }, {
12245 .eraseblocks = { {32 * 1024, 8} },
12246 .block_erase = spi_block_erase_52,
12247 }, {
12248 .eraseblocks = { {64 * 1024, 4} },
12249 .block_erase = spi_block_erase_d8,
12250 }, {
12251 .eraseblocks = { {256 * 1024, 1} },
12252 .block_erase = spi_block_erase_60,
12253 }, {
12254 .eraseblocks = { {256 * 1024, 1} },
12255 .block_erase = spi_block_erase_c7,
12256 },
12257 },
12258 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 and 2nd SR */
12259 .unlock = spi_disable_blockprotect, /* FIXME: 2nd SR */
12260 .write = spi_aai_write, /* AAI supported (0xAD) */
12261 .read = spi_chip_read, /* Fast read (0x0B) supported */
12262 .voltage = {2700, 3600},
12263 },
12264
12265 {
12266 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012267 .name = "SST25VF032B",
12268 .bustype = BUS_SPI,
12269 .manufacture_id = SST_ID,
12270 .model_id = SST_SST25VF032B,
12271 .total_size = 4096,
12272 .page_size = 256,
12273 .feature_bits = FEATURE_WRSR_EWSR,
12274 .tested = TEST_OK_PREW,
12275 .probe = probe_spi_rdid,
12276 .probe_timing = TIMING_ZERO,
12277 .block_erasers =
12278 {
12279 {
12280 .eraseblocks = { {4 * 1024, 1024} },
12281 .block_erase = spi_block_erase_20,
12282 }, {
12283 .eraseblocks = { {32 * 1024, 128} },
12284 .block_erase = spi_block_erase_52,
12285 }, {
12286 .eraseblocks = { {64 * 1024, 64} },
12287 .block_erase = spi_block_erase_d8,
12288 }, {
12289 .eraseblocks = { {4 * 1024 * 1024, 1} },
12290 .block_erase = spi_block_erase_60,
12291 }, {
12292 .eraseblocks = { {4 * 1024 * 1024, 1} },
12293 .block_erase = spi_block_erase_c7,
12294 },
12295 },
12296 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
12297 .unlock = spi_disable_blockprotect,
12298 .write = spi_aai_write,
12299 .read = spi_chip_read,
12300 .voltage = {2700, 3600},
12301 },
12302
12303 {
12304 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +000012305 .name = "SST25VF040",
12306 .bustype = BUS_SPI,
12307 .manufacture_id = SST_ID,
12308 .model_id = SST_SST25VF040_REMS,
12309 .total_size = 512,
12310 .page_size = 256,
12311 .feature_bits = FEATURE_WRSR_EWSR,
12312 .tested = TEST_OK_PR,
12313 .probe = probe_spi_rems,
12314 .probe_timing = TIMING_ZERO,
12315 .block_erasers =
12316 {
12317 {
12318 .eraseblocks = { {4 * 1024, 128} },
12319 .block_erase = spi_block_erase_20,
12320 }, {
12321 .eraseblocks = { {32 * 1024, 16} },
12322 .block_erase = spi_block_erase_52,
12323 }, {
12324 .eraseblocks = { {512 * 1024, 1} },
12325 .block_erase = spi_block_erase_60,
Mark Marshall90021f22010-12-03 14:48:11 +000012326 },
12327 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012328 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Mark Marshall90021f22010-12-03 14:48:11 +000012329 .unlock = spi_disable_blockprotect,
Cory Henderson370f5822013-10-19 23:09:16 +000012330 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
12331 .read = spi_chip_read,
12332 .voltage = {2700, 3600},
12333 },
12334
12335 {
12336 .vendor = "SST",
12337 .name = "SST25VF040B",
12338 .bustype = BUS_SPI,
12339 .manufacture_id = SST_ID,
12340 .model_id = SST_SST25VF040B,
12341 .total_size = 512,
12342 .page_size = 256,
12343 .feature_bits = FEATURE_WRSR_EWSR,
12344 .tested = TEST_OK_PREW,
12345 .probe = probe_spi_rdid,
12346 .probe_timing = TIMING_ZERO,
12347 .block_erasers =
12348 {
12349 {
12350 .eraseblocks = { {4 * 1024, 128} },
12351 .block_erase = spi_block_erase_20,
12352 }, {
12353 .eraseblocks = { {32 * 1024, 16} },
12354 .block_erase = spi_block_erase_52,
12355 }, {
12356 .eraseblocks = { {64 * 1024, 8} },
12357 .block_erase = spi_block_erase_d8,
12358 }, {
12359 .eraseblocks = { {512 * 1024, 1} },
12360 .block_erase = spi_block_erase_60,
12361 }, {
12362 .eraseblocks = { {512 * 1024, 1} },
12363 .block_erase = spi_block_erase_c7,
12364 },
12365 },
12366 .printlock = spi_prettyprint_status_register_sst25vf040b,
12367 .unlock = spi_disable_blockprotect,
12368 .write = spi_aai_write, /* AAI supported (0xAD) */
12369 .read = spi_chip_read, /* Fast read (0x0B) supported */
12370 .voltage = {2700, 3600},
12371 },
12372
12373 {
12374 .vendor = "SST",
12375 .name = "SST25VF040B.REMS",
12376 .bustype = BUS_SPI,
12377 .manufacture_id = SST_ID,
12378 .model_id = SST_SST25VF040B_REMS,
12379 .total_size = 512,
12380 .page_size = 256,
12381 .feature_bits = FEATURE_WRSR_EWSR,
12382 .tested = TEST_OK_PREW,
12383 .probe = probe_spi_rems,
12384 .probe_timing = TIMING_ZERO,
12385 .block_erasers =
12386 {
12387 {
12388 .eraseblocks = { {4 * 1024, 128} },
12389 .block_erase = spi_block_erase_20,
12390 }, {
12391 .eraseblocks = { {32 * 1024, 16} },
12392 .block_erase = spi_block_erase_52,
12393 }, {
12394 .eraseblocks = { {64 * 1024, 8} },
12395 .block_erase = spi_block_erase_d8,
12396 }, {
12397 .eraseblocks = { {512 * 1024, 1} },
12398 .block_erase = spi_block_erase_60,
12399 }, {
12400 .eraseblocks = { {512 * 1024, 1} },
12401 .block_erase = spi_block_erase_c7,
12402 },
12403 },
12404 .printlock = spi_prettyprint_status_register_sst25vf040b,
12405 .unlock = spi_disable_blockprotect,
12406 .write = spi_aai_write,
12407 .read = spi_chip_read,
12408 .voltage = {2700, 3600},
12409 },
12410
12411 {
12412 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012413 .name = "SST25VF064C",
Ben Gardnerbcf61092015-11-22 02:23:31 +000012414 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +100012415 .manufacture_id = SST_ID,
12416 .model_id = SST_SST25VF064C,
12417 .total_size = 8192,
Ben Gardnerbcf61092015-11-22 02:23:31 +000012418 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100012419 .feature_bits = FEATURE_WRSR_EWSR,
Ben Gardnerbcf61092015-11-22 02:23:31 +000012420 .tested = TEST_OK_PREW,
12421 .probe = probe_spi_rdid,
12422 .probe_timing = TIMING_ZERO,
12423 .block_erasers =
12424 {
12425 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100012426 .eraseblocks = { {4 * 1024, 2048} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000012427 .block_erase = spi_block_erase_20,
12428 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100012429 .eraseblocks = { {32 * 1024, 256} },
12430 .block_erase = spi_block_erase_52,
12431 }, {
12432 .eraseblocks = { {64 * 1024, 128} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000012433 .block_erase = spi_block_erase_d8,
12434 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100012435 .eraseblocks = { {8 * 1024 * 1024, 1} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000012436 .block_erase = spi_block_erase_60,
12437 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100012438 .eraseblocks = { {8 * 1024 * 1024, 1} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000012439 .block_erase = spi_block_erase_c7,
12440 },
12441 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100012442 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
12443 .unlock = spi_disable_blockprotect,
Ben Gardnerbcf61092015-11-22 02:23:31 +000012444 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100012445 .read = spi_chip_read,
12446 .voltage = {2700, 3600},
Ben Gardnerbcf61092015-11-22 02:23:31 +000012447 },
12448
12449 {
12450 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +000012451 .name = "SST25VF080B",
12452 .bustype = BUS_SPI,
12453 .manufacture_id = SST_ID,
12454 .model_id = SST_SST25VF080B,
12455 .total_size = 1024,
12456 .page_size = 256,
12457 .feature_bits = FEATURE_WRSR_EWSR,
12458 .tested = TEST_OK_PREW,
12459 .probe = probe_spi_rdid,
12460 .probe_timing = TIMING_ZERO,
12461 .block_erasers =
12462 {
12463 {
12464 .eraseblocks = { {4 * 1024, 256} },
12465 .block_erase = spi_block_erase_20,
12466 }, {
12467 .eraseblocks = { {32 * 1024, 32} },
12468 .block_erase = spi_block_erase_52,
12469 }, {
12470 .eraseblocks = { {64 * 1024, 16} },
12471 .block_erase = spi_block_erase_d8,
12472 }, {
12473 .eraseblocks = { {1024 * 1024, 1} },
12474 .block_erase = spi_block_erase_60,
12475 }, {
12476 .eraseblocks = { {1024 * 1024, 1} },
12477 .block_erase = spi_block_erase_c7,
12478 },
12479 },
12480 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
12481 .unlock = spi_disable_blockprotect,
12482 .write = spi_aai_write,
Mark Marshall90021f22010-12-03 14:48:11 +000012483 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000012484 .voltage = {2700, 3600},
Mark Marshall90021f22010-12-03 14:48:11 +000012485 },
12486
12487 {
12488 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012489 .name = "SST25VF512(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012490 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012491 .manufacture_id = SST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100012492 .model_id = SST_SST25VF512_REMS,
12493 .total_size = 64,
12494 .page_size = 256,
12495 .feature_bits = FEATURE_WRSR_EWSR,
12496 .tested = TEST_OK_PREW,
12497 .probe = probe_spi_rems,
12498 .probe_timing = TIMING_ZERO,
12499 .block_erasers =
12500 {
12501 {
12502 .eraseblocks = { {4 * 1024, 16} },
12503 .block_erase = spi_block_erase_20,
12504 }, {
12505 .eraseblocks = { {32 * 1024, 2} },
12506 .block_erase = spi_block_erase_52,
12507 }, {
12508 .eraseblocks = { {32 * 1024, 2} },
12509 .block_erase = spi_block_erase_d8, /* Supported by SST25VF512A only */
12510 }, {
12511 .eraseblocks = { {64 * 1024, 1} },
12512 .block_erase = spi_block_erase_60,
12513 }, {
12514 .eraseblocks = { {64 * 1024, 1} },
12515 .block_erase = spi_block_erase_c7, /* Supported by SST25VF512A only */
12516 },
12517 },
12518 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
12519 .unlock = spi_disable_blockprotect,
12520 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
12521 .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF512A only */
12522 .voltage = {2700, 3600},
12523 },
12524
12525 {
12526 .vendor = "SST",
12527 .name = "SST25WF010",
12528 .bustype = BUS_SPI,
12529 .manufacture_id = SST_ID,
12530 .model_id = SST_SST25WF010,
12531 .total_size = 128,
12532 .page_size = 256,
12533 .feature_bits = FEATURE_WRSR_EITHER,
12534 .tested = TEST_UNTESTED,
12535 .probe = probe_spi_rdid,
12536 .probe_timing = TIMING_ZERO,
12537 .block_erasers =
12538 {
12539 {
12540 .eraseblocks = { {4 * 1024, 32} },
12541 .block_erase = spi_block_erase_20,
12542 }, {
12543 .eraseblocks = { {32 * 1024, 4} },
12544 .block_erase = spi_block_erase_52,
12545 }, {
12546 .eraseblocks = { {1024 * 128, 1} },
12547 .block_erase = spi_block_erase_60,
12548 }, {
12549 .eraseblocks = { {1024 * 128, 1} },
12550 .block_erase = spi_block_erase_c7,
12551 },
12552 },
12553 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
12554 .unlock = spi_disable_blockprotect_bp2_srwd,
12555 .write = spi_aai_write,
12556 .read = spi_chip_read, /* Fast read (0x0B) supported */
12557 .voltage = {1650, 1950},
12558 },
12559
12560 {
12561 .vendor = "SST",
12562 .name = "SST25WF020",
12563 .bustype = BUS_SPI,
12564 .manufacture_id = SST_ID,
12565 .model_id = SST_SST25WF020,
12566 .total_size = 256,
12567 .page_size = 256,
12568 .feature_bits = FEATURE_WRSR_EITHER,
12569 .tested = TEST_UNTESTED,
12570 .probe = probe_spi_rdid,
12571 .probe_timing = TIMING_ZERO,
12572 .block_erasers =
12573 {
12574 {
12575 .eraseblocks = { {4 * 1024, 64} },
12576 .block_erase = spi_block_erase_20,
12577 }, {
12578 .eraseblocks = { {32 * 1024, 8} },
12579 .block_erase = spi_block_erase_52,
12580 }, {
12581 .eraseblocks = { {64 * 1024, 4} },
12582 .block_erase = spi_block_erase_d8,
12583 }, {
12584 .eraseblocks = { {1024 * 256, 1} },
12585 .block_erase = spi_block_erase_60,
12586 }, {
12587 .eraseblocks = { {1024 * 256, 1} },
12588 .block_erase = spi_block_erase_c7,
12589 },
12590 },
12591 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
12592 .unlock = spi_disable_blockprotect_bp2_srwd,
12593 .write = spi_aai_write,
12594 .read = spi_chip_read, /* Fast read (0x0B) supported */
12595 .voltage = {1650, 1950},
12596 },
12597
12598 {
12599 .vendor = "SST",
12600 .name = "SST25WF020A",
12601 .bustype = BUS_SPI,
12602 .manufacture_id = SANYO_ID, /* See flashchips.h */
12603 .model_id = SST_SST25WF020A,
12604 .total_size = 256,
12605 .page_size = 256,
12606 .feature_bits = FEATURE_WRSR_WREN,
12607 .tested = TEST_UNTESTED,
12608 .probe = probe_spi_rdid,
12609 .probe_timing = TIMING_ZERO,
12610 .block_erasers =
12611 {
12612 {
12613 .eraseblocks = { {4 * 1024, 64} },
12614 .block_erase = spi_block_erase_20,
12615 }, {
12616 .eraseblocks = { {64 * 1024, 4} },
12617 .block_erase = spi_block_erase_d8,
12618 }, {
12619 .eraseblocks = { {256 * 1024, 1} },
12620 .block_erase = spi_block_erase_60,
12621 }, {
12622 .eraseblocks = { {256 * 1024, 1} },
12623 .block_erase = spi_block_erase_c7,
12624 },
12625 },
12626 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
12627 .unlock = spi_disable_blockprotect_bp2_srwd,
12628 .write = spi_chip_write_256,
12629 .read = spi_chip_read, /* Fast read (0x0B) supported */
12630 .voltage = {1650, 1950},
12631 },
12632
12633 {
12634 .vendor = "SST",
12635 .name = "SST25WF040",
12636 .bustype = BUS_SPI,
12637 .manufacture_id = SST_ID,
12638 .model_id = SST_SST25WF040,
12639 .total_size = 512,
12640 .page_size = 256,
12641 .feature_bits = FEATURE_WRSR_EITHER,
12642 .tested = TEST_UNTESTED,
12643 .probe = probe_spi_rdid,
12644 .probe_timing = TIMING_ZERO,
12645 .block_erasers =
12646 {
12647 {
12648 .eraseblocks = { {4 * 1024, 128} },
12649 .block_erase = spi_block_erase_20,
12650 }, {
12651 .eraseblocks = { {32 * 1024, 16} },
12652 .block_erase = spi_block_erase_52,
12653 }, {
12654 .eraseblocks = { {64 * 1024, 8} },
12655 .block_erase = spi_block_erase_d8,
12656 }, {
12657 .eraseblocks = { {1024 * 512, 1} },
12658 .block_erase = spi_block_erase_60,
12659 }, {
12660 .eraseblocks = { {1024 * 512, 1} },
12661 .block_erase = spi_block_erase_c7,
12662 },
12663 },
12664 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
12665 .unlock = spi_disable_blockprotect_bp2_srwd,
12666 .write = spi_aai_write,
12667 .read = spi_chip_read, /* Fast read (0x0B) supported */
12668 .voltage = {1650, 1950},
12669 },
12670
12671 {
12672 .vendor = "SST",
12673 .name = "SST25WF040B",
12674 .bustype = BUS_SPI,
12675 .manufacture_id = SANYO_ID, /* See flashchips.h */
12676 .model_id = SST_SST25WF040B,
12677 .total_size = 512,
12678 .page_size = 256,
12679 .feature_bits = FEATURE_WRSR_WREN,
12680 .tested = TEST_UNTESTED,
12681 .probe = probe_spi_rdid,
12682 .probe_timing = TIMING_ZERO,
12683 .block_erasers =
12684 {
12685 {
12686 .eraseblocks = { {4 * 1024, 128} },
12687 .block_erase = spi_block_erase_20,
12688 }, {
12689 .eraseblocks = { {64 * 1024, 8} },
12690 .block_erase = spi_block_erase_d8,
12691 }, {
12692 .eraseblocks = { {512 * 1024, 1} },
12693 .block_erase = spi_block_erase_60,
12694 }, {
12695 .eraseblocks = { {512 * 1024, 1} },
12696 .block_erase = spi_block_erase_c7,
12697 },
12698 },
12699 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
12700 .unlock = spi_disable_blockprotect_bp2_srwd,
12701 .write = spi_chip_write_256,
12702 .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */
12703 .voltage = {1650, 1950},
12704 },
12705
12706 {
12707 .vendor = "SST",
12708 .name = "SST25WF080",
12709 .bustype = BUS_SPI,
12710 .manufacture_id = SST_ID,
12711 .model_id = SST_SST25WF080,
12712 .total_size = 1024,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012713 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000012714 .feature_bits = FEATURE_WRSR_EITHER,
Mark Marshall90021f22010-12-03 14:48:11 +000012715 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012716 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012717 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000012718 .block_erasers =
12719 {
12720 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100012721 .eraseblocks = { {4 * 1024, 256} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000012722 .block_erase = spi_block_erase_20,
12723 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100012724 .eraseblocks = { {32 * 1024, 32} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000012725 .block_erase = spi_block_erase_52,
12726 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100012727 .eraseblocks = { {64 * 1024, 16} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000012728 .block_erase = spi_block_erase_d8,
12729 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100012730 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000012731 .block_erase = spi_block_erase_60,
12732 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100012733 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000012734 .block_erase = spi_block_erase_c7,
12735 },
12736 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100012737 .printlock = spi_prettyprint_status_register_sst25, /* *does* have a BP3 but it is useless */
12738 .unlock = spi_disable_blockprotect_bp3_srwd,
Joshua Roys87955bf2011-08-01 18:39:28 +000012739 .write = spi_aai_write,
Alan Green1f9cc7d2019-07-01 11:10:45 +100012740 .read = spi_chip_read, /* Fast read (0x0B) supported */
12741 .voltage = {1650, 1950},
FENG yu ningff692fb2008-12-08 18:15:10 +000012742 },
12743
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012744 {
12745 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012746 .name = "SST25WF080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012747 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +100012748 .manufacture_id = SANYO_ID, /* See flashchips.h */
12749 .model_id = SST_SST25WF080B,
12750 .total_size = 1024,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012751 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100012752 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerfcf6a8c2011-05-18 01:32:00 +000012753 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012754 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012755 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000012756 .block_erasers =
12757 {
12758 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100012759 .eraseblocks = { {4 * 1024, 256} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000012760 .block_erase = spi_block_erase_20,
12761 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100012762 .eraseblocks = { {64 * 1024, 16} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000012763 .block_erase = spi_block_erase_d8,
12764 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100012765 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000012766 .block_erase = spi_block_erase_60,
12767 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100012768 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000012769 .block_erase = spi_block_erase_c7,
12770 },
12771 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100012772 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
12773 .unlock = spi_disable_blockprotect_bp2_srwd,
Helge Wagner1db7a442010-10-05 22:29:08 +000012774 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100012775 .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */
12776 .voltage = {1650, 1950},
12777 },
12778
12779 {
12780 .vendor = "SST",
12781 .name = "SST25WF512",
12782 .bustype = BUS_SPI,
12783 .manufacture_id = SST_ID,
12784 .model_id = SST_SST25WF512,
12785 .total_size = 64,
12786 .page_size = 256,
12787 .feature_bits = FEATURE_WRSR_EITHER,
12788 .tested = TEST_UNTESTED,
12789 .probe = probe_spi_rdid,
12790 .probe_timing = TIMING_ZERO,
12791 .block_erasers =
12792 {
12793 {
12794 .eraseblocks = { {4 * 1024, 16} },
12795 .block_erase = spi_block_erase_20,
12796 }, {
12797 .eraseblocks = { {32 * 1024, 2} },
12798 .block_erase = spi_block_erase_52,
12799 }, {
12800 .eraseblocks = { {1024 * 64, 1} },
12801 .block_erase = spi_block_erase_60,
12802 }, {
12803 .eraseblocks = { {1024 * 64, 1} },
12804 .block_erase = spi_block_erase_c7,
12805 },
12806 },
12807 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
12808 .unlock = spi_disable_blockprotect_bp2_srwd,
12809 .write = spi_aai_write,
12810 .read = spi_chip_read, /* Fast read (0x0B) supported */
12811 .voltage = {1650, 1950},
Ed Swierk86f4e6d2010-07-21 15:02:22 +000012812 },
12813
12814 {
12815 .vendor = "SST",
Wei Hu25584de2018-04-30 14:02:08 -070012816 .name = "SST26VF016B(A)",
12817 .bustype = BUS_SPI,
12818 .manufacture_id = SST_ID,
12819 .model_id = SST_SST26VF016B,
12820 .total_size = 2048,
12821 .page_size = 256,
12822 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12823 .tested = TEST_OK_PREW,
12824 .probe = probe_spi_rdid,
12825 .probe_timing = TIMING_ZERO,
12826 .block_erasers =
12827 {
12828 {
12829 .eraseblocks = { {4 * 1024, 512} },
12830 .block_erase = spi_block_erase_20,
12831 }, {
12832 .eraseblocks = {
12833 {8 * 1024, 4},
12834 {32 * 1024, 1},
12835 {64 * 1024, 30},
12836 {32 * 1024, 1},
12837 {8 * 1024, 4},
12838 },
12839 .block_erase = spi_block_erase_d8,
12840 }, {
12841 .eraseblocks = { {2 * 1024 * 1024, 1} },
12842 .block_erase = spi_block_erase_c7,
12843 },
12844 },
12845 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
12846 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
12847 .write = spi_chip_write_256, /* Multi I/O supported */
12848 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12849 .voltage = {2700, 3600},
12850 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100012851
Wei Hu25584de2018-04-30 14:02:08 -070012852 {
12853 .vendor = "SST",
12854 .name = "SST26VF032B(A)",
12855 .bustype = BUS_SPI,
12856 .manufacture_id = SST_ID,
12857 .model_id = SST_SST26VF032B,
12858 .total_size = 4096,
12859 .page_size = 256,
12860 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12861 .tested = TEST_UNTESTED,
12862 .probe = probe_spi_rdid,
12863 .probe_timing = TIMING_ZERO,
12864 .block_erasers =
12865 {
12866 {
12867 .eraseblocks = { {4 * 1024, 1024} },
12868 .block_erase = spi_block_erase_20,
12869 }, {
12870 .eraseblocks = {
12871 {8 * 1024, 4},
12872 {32 * 1024, 1},
12873 {64 * 1024, 62},
12874 {32 * 1024, 1},
12875 {8 * 1024, 4},
12876 },
12877 .block_erase = spi_block_erase_d8,
12878 }, {
12879 .eraseblocks = { {4 * 1024 * 1024, 1} },
12880 .block_erase = spi_block_erase_c7,
12881 },
12882 },
12883 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
12884 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
12885 .write = spi_chip_write_256, /* Multi I/O supported */
12886 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12887 .voltage = {2700, 3600},
12888 },
12889
Wei Hu25584de2018-04-30 14:02:08 -070012890 {
12891 .vendor = "SST",
12892 .name = "SST26VF064B(A)",
12893 .bustype = BUS_SPI,
12894 .manufacture_id = SST_ID,
12895 .model_id = SST_SST26VF064B,
12896 .total_size = 8192,
12897 .page_size = 256,
12898 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12899 .tested = TEST_OK_PREW,
12900 .probe = probe_spi_rdid,
12901 .probe_timing = TIMING_ZERO,
12902 .block_erasers =
12903 {
12904 {
12905 .eraseblocks = { {4 * 1024, 2048} },
12906 .block_erase = spi_block_erase_20,
12907 }, {
12908 .eraseblocks = {
12909 {8 * 1024, 4},
12910 {32 * 1024, 1},
12911 {64 * 1024, 126},
12912 {32 * 1024, 1},
12913 {8 * 1024, 4},
12914 },
12915 .block_erase = spi_block_erase_d8,
12916 }, {
12917 .eraseblocks = { {8 * 1024 * 1024, 1} },
12918 .block_erase = spi_block_erase_c7,
12919 },
12920 },
12921 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
12922 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
12923 .write = spi_chip_write_256, /* Multi I/O supported */
12924 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12925 .voltage = {2700, 3600},
12926 },
12927
12928 {
12929 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012930 .name = "SST28SF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012931 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012932 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012933 .model_id = SST_SST28SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012934 .total_size = 512,
12935 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000012936 .feature_bits = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012937 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012938 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000012939 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000012940 .block_erasers =
12941 {
12942 {
12943 .eraseblocks = { {128, 4096} },
12944 .block_erase = erase_sector_28sf040,
12945 }, {
12946 .eraseblocks = { {512 * 1024, 1} },
12947 .block_erase = erase_chip_28sf040,
12948 }
12949 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000012950 .unlock = unprotect_28sf040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012951 .write = write_28sf040,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012952 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012953 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000012954 },
12955
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012956 {
12957 .vendor = "SST",
12958 .name = "SST29EE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012959 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012960 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012961 .model_id = SST_SST29EE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012962 .total_size = 128,
12963 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000012964 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000012965 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012966 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000012967 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000012968 .block_erasers =
12969 {
12970 {
12971 .eraseblocks = { {128 * 1024, 1} },
12972 .block_erase = erase_chip_block_jedec,
12973 }
12974 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012975 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012976 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012977 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000012978 },
12979
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012980 {
12981 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012982 .name = "SST29EE020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012983 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012984 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012985 .model_id = SST_SST29EE020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012986 .total_size = 256,
12987 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000012988 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000012989 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012990 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012991 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000012992 .block_erasers =
12993 {
12994 {
12995 .eraseblocks = { {256 * 1024, 1} },
12996 .block_erase = erase_chip_block_jedec,
12997 }
12998 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012999 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013000 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013001 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013002 },
13003
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013004 {
13005 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013006 .name = "SST29LE010",
13007 .bustype = BUS_PARALLEL,
13008 .manufacture_id = SST_ID,
13009 .model_id = SST_SST29LE010,
13010 .total_size = 128,
13011 .page_size = 128,
13012 .feature_bits = FEATURE_LONG_RESET,
13013 .tested = TEST_UNTESTED,
13014 .probe = probe_jedec,
13015 .probe_timing = 10,
13016 .block_erasers =
13017 {
13018 {
13019 .eraseblocks = { {128 * 1024, 1} },
13020 .block_erase = erase_chip_block_jedec,
13021 }
13022 },
13023 .write = write_jedec,
13024 .read = read_memmapped,
13025 .voltage = {3000, 3600},
13026 },
13027
13028 {
13029 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013030 .name = "SST29LE020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013031 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013032 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013033 .model_id = SST_SST29LE020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013034 .total_size = 256,
13035 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000013036 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000013037 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013038 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000013039 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013040 .block_erasers =
13041 {
13042 {
13043 .eraseblocks = { {256 * 1024, 1} },
13044 .block_erase = erase_chip_block_jedec,
13045 }
13046 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013047 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013048 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013049 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013050 },
13051
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013052 {
13053 .vendor = "SST",
13054 .name = "SST39SF010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013055 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013056 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013057 .model_id = SST_SST39SF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013058 .total_size = 128,
13059 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013060 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000013061 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013062 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000013063 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013064 .block_erasers =
13065 {
13066 {
13067 .eraseblocks = { {4 * 1024, 32} },
13068 .block_erase = erase_sector_jedec,
13069 }, {
13070 .eraseblocks = { {128 * 1024, 1} },
13071 .block_erase = erase_chip_block_jedec,
13072 }
13073 },
Sean Nelson35727f72010-01-28 23:55:12 +000013074 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013075 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013076 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013077 },
13078
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013079 {
13080 .vendor = "SST",
13081 .name = "SST39SF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013082 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013083 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013084 .model_id = SST_SST39SF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013085 .total_size = 256,
13086 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013087 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann19f46f22011-06-18 22:56:14 +000013088 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013089 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013090 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013091 .block_erasers =
13092 {
13093 {
13094 .eraseblocks = { {4 * 1024, 64} },
13095 .block_erase = erase_sector_jedec,
13096 }, {
13097 .eraseblocks = { {256 * 1024, 1} },
13098 .block_erase = erase_chip_block_jedec,
13099 }
13100 },
Sean Nelson35727f72010-01-28 23:55:12 +000013101 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013102 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013103 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013104 },
13105
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013106 {
13107 .vendor = "SST",
13108 .name = "SST39SF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013109 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013110 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013111 .model_id = SST_SST39SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013112 .total_size = 512,
13113 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013114 .feature_bits = FEATURE_EITHER_RESET,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +000013115 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013116 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013117 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013118 .block_erasers =
13119 {
13120 {
13121 .eraseblocks = { {4 * 1024, 128} },
13122 .block_erase = erase_sector_jedec,
13123 }, {
13124 .eraseblocks = { {512 * 1024, 1} },
13125 .block_erase = erase_chip_block_jedec,
13126 }
13127 },
Sean Nelson35727f72010-01-28 23:55:12 +000013128 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013129 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013130 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013131 },
13132
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013133 {
13134 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013135 .name = "SST39SF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013136 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013137 .manufacture_id = SST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013138 .model_id = SST_SST39SF512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013139 .total_size = 64,
13140 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013141 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd7d423b2012-10-20 09:13:16 +000013142 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013143 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013144 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013145 .block_erasers =
13146 {
13147 {
13148 .eraseblocks = { {4 * 1024, 16} },
13149 .block_erase = erase_sector_jedec,
13150 }, {
13151 .eraseblocks = { {64 * 1024, 1} },
13152 .block_erase = erase_chip_block_jedec,
13153 }
13154 },
Sean Nelson35727f72010-01-28 23:55:12 +000013155 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013156 .read = read_memmapped,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013157 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013158 },
13159
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013160 {
13161 .vendor = "SST",
13162 .name = "SST39VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013163 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013164 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013165 .model_id = SST_SST39VF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013166 .total_size = 128,
13167 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013168 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd94d25d2012-07-28 03:17:15 +000013169 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013170 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013171 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013172 .block_erasers =
13173 {
13174 {
13175 .eraseblocks = { {4 * 1024, 32} },
13176 .block_erase = erase_sector_jedec,
13177 }, {
13178 .eraseblocks = { {128 * 1024, 1} },
13179 .block_erase = erase_chip_block_jedec,
13180 }
13181 },
Sean Nelson35727f72010-01-28 23:55:12 +000013182 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013183 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013184 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013185 },
13186
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013187 {
13188 .vendor = "SST",
13189 .name = "SST39VF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013190 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013191 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013192 .model_id = SST_SST39VF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013193 .total_size = 256,
13194 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013195 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner5c316f92015-02-08 21:57:52 +000013196 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013197 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013198 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013199 .block_erasers =
13200 {
13201 {
13202 .eraseblocks = { {4 * 1024, 64} },
13203 .block_erase = erase_sector_jedec,
13204 }, {
13205 .eraseblocks = { {256 * 1024, 1} },
13206 .block_erase = erase_chip_block_jedec,
13207 }
13208 },
Sean Nelson35727f72010-01-28 23:55:12 +000013209 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013210 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013211 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013212 },
13213
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013214 {
13215 .vendor = "SST",
13216 .name = "SST39VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013217 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013218 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013219 .model_id = SST_SST39VF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013220 .total_size = 512,
13221 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013222 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner23e10b82016-01-23 16:16:49 +000013223 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013224 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013225 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013226 .block_erasers =
13227 {
13228 {
13229 .eraseblocks = { {4 * 1024, 128} },
13230 .block_erase = erase_sector_jedec,
13231 }, {
13232 .eraseblocks = { {512 * 1024, 1} },
13233 .block_erase = erase_chip_block_jedec,
13234 }
13235 },
Sean Nelson35727f72010-01-28 23:55:12 +000013236 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013237 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013238 .voltage = {2700, 3600},
Carl-Daniel Hailfinger90eff152008-12-08 23:51:45 +000013239 },
FENG yu ningff692fb2008-12-08 18:15:10 +000013240
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013241 {
13242 .vendor = "SST",
Peter Stuge8440cc02009-01-25 23:55:12 +000013243 .name = "SST39VF080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013244 .bustype = BUS_PARALLEL,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000013245 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013246 .model_id = SST_SST39VF080,
Peter Stuge8440cc02009-01-25 23:55:12 +000013247 .total_size = 1024,
13248 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013249 .feature_bits = FEATURE_EITHER_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +000013250 .tested = TEST_UNTESTED,
13251 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013252 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013253 .block_erasers =
13254 {
13255 {
13256 .eraseblocks = { {4 * 1024, 256} },
13257 .block_erase = erase_sector_jedec,
13258 }, {
13259 .eraseblocks = { {64 * 1024, 16} },
13260 .block_erase = erase_block_jedec,
13261 }, {
13262 .eraseblocks = { {1024 * 1024, 1} },
13263 .block_erase = erase_chip_block_jedec,
13264 }
13265 },
Sean Nelson35727f72010-01-28 23:55:12 +000013266 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013267 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013268 .voltage = {2700, 3600},
Peter Stuge8440cc02009-01-25 23:55:12 +000013269 },
13270
13271 {
13272 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013273 .name = "SST39VF512",
13274 .bustype = BUS_PARALLEL,
13275 .manufacture_id = SST_ID,
13276 .model_id = SST_SST39VF512,
13277 .total_size = 64,
13278 .page_size = 4096,
13279 .feature_bits = FEATURE_EITHER_RESET,
13280 .tested = TEST_OK_PREW,
13281 .probe = probe_jedec,
13282 .probe_timing = 1, /* 150 ns */
13283 .block_erasers =
13284 {
13285 {
13286 .eraseblocks = { {4 * 1024, 16} },
13287 .block_erase = erase_sector_jedec,
13288 }, {
13289 .eraseblocks = { {64 * 1024, 1} },
13290 .block_erase = erase_chip_block_jedec,
13291 }
13292 },
13293 .write = write_jedec_1,
13294 .read = read_memmapped,
13295 .voltage = {2700, 3600},
13296 },
13297
13298 {
13299 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013300 .name = "SST49LF002A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013301 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013302 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013303 .model_id = SST_SST49LF002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013304 .total_size = 256,
13305 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013306 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000013307 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013308 .probe = probe_jedec,
13309 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013310 .block_erasers =
13311 {
13312 {
13313 .eraseblocks = { {4 * 1024, 64} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013314 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013315 }, {
13316 .eraseblocks = { {16 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013317 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013318 }, {
13319 .eraseblocks = { {256 * 1024, 1} },
13320 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
13321 }
13322 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013323 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013324 .unlock = unlock_sst_fwhub,
13325 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013326 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013327 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013328 },
13329
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013330 {
13331 .vendor = "SST",
13332 .name = "SST49LF003A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013333 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013334 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013335 .model_id = SST_SST49LF003A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013336 .total_size = 384,
13337 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013338 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000013339 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013340 .probe = probe_jedec,
13341 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013342 .block_erasers =
13343 {
13344 {
13345 .eraseblocks = { {4 * 1024, 96} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013346 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013347 }, {
13348 .eraseblocks = { {64 * 1024, 6} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013349 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013350 }, {
13351 .eraseblocks = { {384 * 1024, 1} },
13352 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
13353 }
13354 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013355 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013356 .unlock = unlock_sst_fwhub,
13357 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013358 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013359 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013360 },
13361
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013362 {
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000013363 /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB)
13364 * and is only honored for 64k block erase, but not 4k sector erase.
13365 */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013366 .vendor = "SST",
13367 .name = "SST49LF004A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013368 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013369 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013370 .model_id = SST_SST49LF004A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013371 .total_size = 512,
13372 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013373 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000013374 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013375 .probe = probe_jedec,
13376 .probe_timing = 1, /* 150 ns */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000013377 .block_erasers =
13378 {
13379 {
13380 .eraseblocks = { {4 * 1024, 128} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013381 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000013382 }, {
13383 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013384 .block_erase = erase_block_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000013385 }, {
13386 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson51c83fb2010-01-20 20:55:53 +000013387 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000013388 },
13389 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013390 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013391 .unlock = unlock_sst_fwhub,
13392 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013393 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013394 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013395 },
13396
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013397 {
13398 .vendor = "SST",
13399 .name = "SST49LF004C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013400 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013401 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013402 .model_id = SST_SST49LF004C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013403 .total_size = 512,
13404 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013405 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013406 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013407 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000013408 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013409 .block_erasers =
13410 {
13411 {
13412 .eraseblocks = { {4 * 1024, 128} },
13413 .block_erase = erase_sector_49lfxxxc,
13414 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000013415 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000013416 {64 * 1024, 7},
13417 {32 * 1024, 1},
13418 {8 * 1024, 2},
13419 {16 * 1024, 1},
13420 },
Sean Nelson69e58112010-03-23 17:10:28 +000013421 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013422 }
13423 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013424 .printlock = printlock_regspace2_block_eraser_1,
13425 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000013426 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013427 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013428 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013429 },
13430
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013431 {
13432 .vendor = "SST",
13433 .name = "SST49LF008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013434 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013435 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013436 .model_id = SST_SST49LF008A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013437 .total_size = 1024,
13438 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013439 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000013440 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013441 .probe = probe_jedec,
13442 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013443 .block_erasers =
13444 {
13445 {
13446 .eraseblocks = { {4 * 1024, 256} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013447 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013448 }, {
13449 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013450 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013451 }, {
13452 .eraseblocks = { {1024 * 1024, 1} },
13453 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
13454 }
13455 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013456 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013457 .unlock = unlock_sst_fwhub,
13458 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013459 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013460 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013461 },
13462
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013463 {
13464 .vendor = "SST",
13465 .name = "SST49LF008C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013466 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013467 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013468 .model_id = SST_SST49LF008C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013469 .total_size = 1024,
13470 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013471 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013472 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013473 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000013474 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013475 .block_erasers =
13476 {
13477 {
13478 .eraseblocks = { {4 * 1024, 256} },
13479 .block_erase = erase_sector_49lfxxxc,
13480 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000013481 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000013482 {64 * 1024, 15},
13483 {32 * 1024, 1},
13484 {8 * 1024, 2},
13485 {16 * 1024, 1},
13486 },
Sean Nelson69e58112010-03-23 17:10:28 +000013487 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013488 }
13489 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013490 .printlock = printlock_regspace2_block_eraser_1,
13491 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000013492 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013493 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013494 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013495 },
13496
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013497 {
13498 .vendor = "SST",
13499 .name = "SST49LF016C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013500 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013501 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013502 .model_id = SST_SST49LF016C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013503 .total_size = 2048,
13504 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013505 .feature_bits = FEATURE_REGISTERMAP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000013506 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013507 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000013508 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013509 .block_erasers =
13510 {
13511 {
13512 .eraseblocks = { {4 * 1024, 512} },
13513 .block_erase = erase_sector_49lfxxxc,
13514 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000013515 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000013516 {64 * 1024, 31},
13517 {32 * 1024, 1},
13518 {8 * 1024, 2},
13519 {16 * 1024, 1},
13520 },
Sean Nelson69e58112010-03-23 17:10:28 +000013521 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013522 }
13523 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013524 .printlock = printlock_regspace2_block_eraser_1,
13525 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000013526 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013527 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013528 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013529 },
13530
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013531 {
13532 .vendor = "SST",
13533 .name = "SST49LF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013534 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013535 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013536 .model_id = SST_SST49LF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013537 .total_size = 256,
13538 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013539 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +000013540 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013541 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013542 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013543 .block_erasers =
13544 {
13545 {
13546 .eraseblocks = { {4 * 1024, 64} },
13547 .block_erase = erase_sector_jedec,
13548 }, {
13549 .eraseblocks = { {16 * 1024, 16} },
13550 .block_erase = erase_block_jedec,
13551 }, {
13552 .eraseblocks = { {256 * 1024, 1} },
13553 .block_erase = NULL,
13554 }
13555 },
Sean Nelson35727f72010-01-28 23:55:12 +000013556 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013557 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013558 .voltage = {3000, 3600},
Sven Schnellec208dfb2009-01-07 12:35:09 +000013559 },
13560
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013561 {
13562 .vendor = "SST",
13563 .name = "SST49LF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013564 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013565 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013566 .model_id = SST_SST49LF020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013567 .total_size = 256,
Carl-Daniel Hailfingerda654322009-07-23 01:44:38 +000013568 .page_size = 4 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013569 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000013570 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013571 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013572 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013573 .block_erasers =
13574 {
13575 {
13576 .eraseblocks = { {4 * 1024, 64} },
13577 .block_erase = erase_sector_jedec,
13578 }, {
13579 .eraseblocks = { {16 * 1024, 16} },
13580 .block_erase = erase_block_jedec,
13581 }, {
13582 .eraseblocks = { {256 * 1024, 1} },
13583 .block_erase = NULL,
13584 }
13585 },
Sean Nelson35727f72010-01-28 23:55:12 +000013586 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013587 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013588 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013589 },
13590
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013591 {
13592 .vendor = "SST",
13593 .name = "SST49LF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013594 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013595 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013596 .model_id = SST_SST49LF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013597 .total_size = 512,
13598 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013599 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000013600 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013601 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013602 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013603 .block_erasers =
13604 {
13605 {
13606 .eraseblocks = { {4 * 1024, 128} },
13607 .block_erase = erase_sector_jedec,
13608 }, {
13609 .eraseblocks = { {64 * 1024, 8} },
13610 .block_erase = erase_block_jedec,
13611 }, {
13612 .eraseblocks = { {512 * 1024, 1} },
13613 .block_erase = NULL,
13614 }
13615 },
Sean Nelson35727f72010-01-28 23:55:12 +000013616 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013617 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013618 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013619 },
13620
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013621 {
13622 .vendor = "SST",
13623 .name = "SST49LF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013624 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013625 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013626 .model_id = SST_SST49LF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013627 .total_size = 512,
13628 .page_size = 64 * 1024,
Joshua Roysa84b0bd2010-08-16 22:12:39 +000013629 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000013630 .tested = TEST_OK_PREW,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013631 .probe = probe_jedec,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013632 .probe_timing = 1, /* 150ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013633 .block_erasers =
13634 {
13635 {
13636 .eraseblocks = { {4 * 1024, 128} },
13637 .block_erase = erase_sector_jedec,
13638 }, {
13639 .eraseblocks = { {64 * 1024, 8} },
13640 .block_erase = erase_block_jedec,
13641 }, {
13642 .eraseblocks = { {512 * 1024, 1} },
13643 .block_erase = NULL,
13644 }
13645 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013646 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000013647 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013648 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013649 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013650 },
13651
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013652 {
13653 .vendor = "SST",
13654 .name = "SST49LF080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013655 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013656 .manufacture_id = SST_ID,
Elyes HAOUAS124ef382018-03-27 12:15:09 +020013657 .model_id = SST_SST49LF080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013658 .total_size = 1024,
13659 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013660 .feature_bits = FEATURE_EITHER_RESET,
Brandon Dowdyf07bf322011-03-06 18:31:11 +000013661 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013662 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000013663 .probe_timing = TIMING_FIXME,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013664 .block_erasers =
13665 {
13666 {
13667 .eraseblocks = { {4 * 1024, 256} },
13668 .block_erase = erase_sector_jedec,
13669 }, {
13670 .eraseblocks = { {64 * 1024, 16} },
13671 .block_erase = erase_block_jedec,
13672 }, {
13673 .eraseblocks = { {1024 * 1024, 1} },
13674 .block_erase = NULL,
13675 }
13676 },
Sean Nelson35727f72010-01-28 23:55:12 +000013677 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013678 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013679 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013680 },
13681
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013682 {
13683 .vendor = "SST",
13684 .name = "SST49LF160C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013685 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013686 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013687 .model_id = SST_SST49LF160C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013688 .total_size = 2048,
13689 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013690 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013691 .tested = TEST_OK_PR,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013692 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000013693 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013694 .block_erasers =
13695 {
13696 {
13697 .eraseblocks = { {4 * 1024, 512} },
13698 .block_erase = erase_sector_49lfxxxc,
13699 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000013700 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000013701 {64 * 1024, 31},
13702 {32 * 1024, 1},
13703 {8 * 1024, 2},
13704 {16 * 1024, 1},
13705 },
Sean Nelson69e58112010-03-23 17:10:28 +000013706 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013707 }
13708 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013709 .printlock = printlock_regspace2_block_eraser_1,
13710 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000013711 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013712 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013713 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013714 },
13715
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013716 {
13717 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013718 .name = "M29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013719 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013720 .manufacture_id = ST_ID,
13721 .model_id = ST_M29F002B,
13722 .total_size = 256,
13723 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013724 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013725 .tested = TEST_UNTESTED,
13726 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013727 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000013728 .block_erasers =
13729 {
13730 {
13731 .eraseblocks = {
13732 {16 * 1024, 1},
13733 {8 * 1024, 2},
13734 {32 * 1024, 1},
13735 {64 * 1024, 3},
13736 },
13737 .block_erase = erase_sector_jedec,
13738 }, {
13739 .eraseblocks = { {256 * 1024, 1} },
13740 .block_erase = erase_chip_block_jedec,
13741 }
13742 },
Sean Nelson35727f72010-01-28 23:55:12 +000013743 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013744 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000013745 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000013746 },
13747
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013748 {
13749 .vendor = "ST",
13750 .name = "M29F002T/NT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013751 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013752 .manufacture_id = ST_ID,
13753 .model_id = ST_M29F002T,
13754 .total_size = 256,
13755 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013756 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stefan Taunere34e3e82013-01-01 00:06:51 +000013757 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013758 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013759 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000013760 .block_erasers =
13761 {
13762 {
13763 .eraseblocks = {
13764 {64 * 1024, 3},
13765 {32 * 1024, 1},
13766 {8 * 1024, 2},
13767 {16 * 1024, 1},
13768 },
13769 .block_erase = erase_sector_jedec,
13770 }, {
13771 .eraseblocks = { {256 * 1024, 1} },
13772 .block_erase = erase_chip_block_jedec,
13773 }
13774 },
Sean Nelson35727f72010-01-28 23:55:12 +000013775 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013776 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000013777 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000013778 },
13779
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013780 {
13781 .vendor = "ST",
13782 .name = "M29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013783 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013784 .manufacture_id = ST_ID,
13785 .model_id = ST_M29F040B,
13786 .total_size = 512,
13787 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013788 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
13789 .tested = TEST_UNTESTED,
13790 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +000013791 .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */
Sean Nelson56358aa2010-01-19 16:08:51 +000013792 .block_erasers =
13793 {
13794 {
Stefan Tauner6697f712014-08-06 15:09:15 +000013795 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +000013796 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000013797 }, {
13798 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000013799 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000013800 }
13801 },
Sean Nelson35727f72010-01-28 23:55:12 +000013802 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013803 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013804 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013805 },
13806
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013807 {
Sean Nelson35727f72010-01-28 23:55:12 +000013808 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013809 .vendor = "ST",
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000013810 .name = "M29F400BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013811 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000013812 .manufacture_id = ST_ID,
13813 .model_id = ST_M29F400BB,
13814 .total_size = 512,
13815 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000013816 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000013817 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000013818 .probe = probe_jedec,
13819 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000013820 .block_erasers =
13821 {
13822 {
13823 .eraseblocks = {
13824 {16 * 1024, 1},
13825 {8 * 1024, 2},
13826 {32 * 1024, 1},
13827 {64 * 1024, 7},
13828 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000013829 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000013830 }, {
13831 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000013832 .block_erase = erase_chip_block_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000013833 }
13834 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000013835 .write = write_jedec_1,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000013836 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013837 .voltage = {4500, 5500},
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000013838 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100013839
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000013840 {
13841 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
13842 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013843 .name = "M29F400BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013844 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013845 .manufacture_id = ST_ID,
13846 .model_id = ST_M29F400BT,
13847 .total_size = 512,
13848 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000013849 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013850 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000013851 .probe = probe_jedec,
13852 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson56358aa2010-01-19 16:08:51 +000013853 .block_erasers =
13854 {
13855 {
13856 .eraseblocks = {
13857 {64 * 1024, 7},
13858 {32 * 1024, 1},
13859 {8 * 1024, 2},
13860 {16 * 1024, 1},
13861 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000013862 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000013863 }, {
13864 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000013865 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000013866 }
13867 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000013868 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013869 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013870 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013871 },
13872
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013873 {
13874 .vendor = "ST",
13875 .name = "M29W010B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013876 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013877 .manufacture_id = ST_ID,
13878 .model_id = ST_M29W010B,
13879 .total_size = 128,
13880 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013881 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013882 .tested = TEST_UNTESTED,
13883 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013884 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000013885 .block_erasers =
13886 {
13887 {
Stefan Tauner6697f712014-08-06 15:09:15 +000013888 .eraseblocks = { {16 * 1024, 8} },
Sean Nelson56358aa2010-01-19 16:08:51 +000013889 .block_erase = erase_sector_jedec,
13890 }, {
13891 .eraseblocks = { {128 * 1024, 1} },
13892 .block_erase = erase_chip_block_jedec,
13893 }
13894 },
Sean Nelson35727f72010-01-28 23:55:12 +000013895 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013896 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013897 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013898 },
13899
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013900 {
13901 .vendor = "ST",
13902 .name = "M29W040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013903 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013904 .manufacture_id = ST_ID,
13905 .model_id = ST_M29W040B,
13906 .total_size = 512,
13907 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013908 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013909 .tested = TEST_UNTESTED,
13910 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013911 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000013912 .block_erasers =
13913 {
13914 {
Stefan Tauner6697f712014-08-06 15:09:15 +000013915 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson56358aa2010-01-19 16:08:51 +000013916 .block_erase = erase_sector_jedec,
13917 }, {
13918 .eraseblocks = { {512 * 1024, 1} },
13919 .block_erase = erase_chip_block_jedec,
13920 }
13921 },
Sean Nelson35727f72010-01-28 23:55:12 +000013922 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013923 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013924 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013925 },
13926
Stefan Taunereb582572012-09-21 12:52:50 +000013927 {
13928 .vendor = "ST",
13929 .name = "M29W512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013930 .bustype = BUS_PARALLEL,
Alan Greenfa3fcd32019-06-27 15:41:50 +100013931 .manufacture_id = ST_ID,
Stefan Taunereb582572012-09-21 12:52:50 +000013932 .model_id = ST_M29W512B,
13933 .total_size = 64,
13934 .page_size = 64 * 1024,
13935 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauner0554ca52013-07-25 22:54:25 +000013936 .tested = TEST_OK_PREW,
Stefan Taunereb582572012-09-21 12:52:50 +000013937 .probe = probe_jedec,
13938 .probe_timing = TIMING_ZERO,
13939 .block_erasers =
13940 {
13941 {
13942 .eraseblocks = { {64 * 1024, 1} },
13943 .block_erase = erase_chip_block_jedec,
13944 }
13945 },
13946 .write = write_jedec_1,
13947 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013948 .voltage = {2700, 3600},
Stefan Taunereb582572012-09-21 12:52:50 +000013949 },
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +000013950
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013951 {
13952 .vendor = "ST",
13953 .name = "M50FLW040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013954 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013955 .manufacture_id = ST_ID,
13956 .model_id = ST_M50FLW040A,
13957 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000013958 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013959 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013960 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000013961 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000013962 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000013963 .block_erasers =
13964 {
13965 {
Sean Nelson329bde72010-01-19 16:39:19 +000013966 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000013967 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000013968 {64 * 1024, 5}, /* block */
13969 {4 * 1024, 16}, /* sector */
13970 {4 * 1024, 16}, /* sector */
13971 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000013972 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000013973 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000013974 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000013975 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000013976 }
13977 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013978 .unlock = unlock_regspace2_uniform_64k,
Alan Greenc1863ca2019-06-27 15:08:03 +100013979 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013980 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013981 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000013982 },
13983
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013984 {
13985 .vendor = "ST",
13986 .name = "M50FLW040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013987 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013988 .manufacture_id = ST_ID,
13989 .model_id = ST_M50FLW040B,
13990 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000013991 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013992 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013993 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000013994 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000013995 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000013996 .block_erasers =
13997 {
13998 {
Sean Nelson329bde72010-01-19 16:39:19 +000013999 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000014000 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000014001 {4 * 1024, 16}, /* sector */
14002 {64 * 1024, 5}, /* block */
14003 {4 * 1024, 16}, /* sector */
14004 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000014005 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000014006 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000014007 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000014008 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014009 }
14010 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014011 .unlock = unlock_regspace2_uniform_64k,
Alan Greenc1863ca2019-06-27 15:08:03 +100014012 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014013 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014014 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014015 },
14016
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014017 {
14018 .vendor = "ST",
14019 .name = "M50FLW080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014020 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014021 .manufacture_id = ST_ID,
14022 .model_id = ST_M50FLW080A,
14023 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000014024 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014025 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014026 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +000014027 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000014028 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000014029 .block_erasers =
14030 {
14031 {
Sean Nelson329bde72010-01-19 16:39:19 +000014032 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000014033 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000014034 {64 * 1024, 13}, /* block */
14035 {4 * 1024, 16}, /* sector */
14036 {4 * 1024, 16}, /* sector */
14037 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000014038 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000014039 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000014040 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000014041 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014042 }
14043 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014044 .printlock = printlock_regspace2_block_eraser_0,
14045 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000014046 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014047 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014048 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014049 },
14050
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014051 {
14052 .vendor = "ST",
14053 .name = "M50FLW080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014054 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014055 .manufacture_id = ST_ID,
14056 .model_id = ST_M50FLW080B,
14057 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000014058 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014059 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014060 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000014061 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000014062 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000014063 .block_erasers =
14064 {
14065 {
Sean Nelson329bde72010-01-19 16:39:19 +000014066 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000014067 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000014068 {4 * 1024, 16}, /* sector */
14069 {64 * 1024, 13}, /* block */
14070 {4 * 1024, 16}, /* sector */
14071 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000014072 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000014073 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000014074 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000014075 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014076 }
14077 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014078 .printlock = printlock_regspace2_block_eraser_0,
14079 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000014080 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014081 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014082 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014083 },
14084
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014085 {
14086 .vendor = "ST",
14087 .name = "M50FW002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014088 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014089 .manufacture_id = ST_ID,
14090 .model_id = ST_M50FW002,
14091 .total_size = 256,
Stefan Tauner4404f732013-09-12 08:28:56 +000014092 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014093 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014094 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +000014095 .probe = probe_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014096 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000014097 .block_erasers =
14098 {
14099 {
14100 .eraseblocks = {
14101 {64 * 1024, 3},
14102 {32 * 1024, 1},
14103 {8 * 1024, 2},
14104 {16 * 1024, 1},
14105 },
Sean Nelson28accc22010-03-19 18:47:06 +000014106 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014107 }, {
Stefan Tauner5c316f92015-02-08 21:57:52 +000014108 .eraseblocks = { {256 * 1024, 1} },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014109 .block_erase = NULL, /* Only in A/A mux mode */
Sean Nelson56358aa2010-01-19 16:08:51 +000014110 }
14111 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014112 .printlock = printlock_regspace2_block_eraser_0,
14113 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000014114 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014115 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014116 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014117 },
14118
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014119 {
14120 .vendor = "ST",
14121 .name = "M50FW016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014122 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014123 .manufacture_id = ST_ID,
14124 .model_id = ST_M50FW016,
14125 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000014126 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014127 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014128 .tested = TEST_UNTESTED,
14129 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014130 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000014131 .block_erasers =
14132 {
14133 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014134 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson28accc22010-03-19 18:47:06 +000014135 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014136 }
14137 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014138 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000014139 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014140 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014141 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014142 },
14143
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014144 {
14145 .vendor = "ST",
14146 .name = "M50FW040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014147 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014148 .manufacture_id = ST_ID,
14149 .model_id = ST_M50FW040,
14150 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000014151 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014152 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +000014153 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014154 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014155 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000014156 .block_erasers =
14157 {
14158 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014159 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000014160 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014161 }
14162 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014163 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000014164 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014165 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014166 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014167 },
14168
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014169 {
14170 .vendor = "ST",
14171 .name = "M50FW080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014172 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014173 .manufacture_id = ST_ID,
14174 .model_id = ST_M50FW080,
14175 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000014176 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014177 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014178 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014179 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014180 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000014181 .block_erasers =
14182 {
14183 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014184 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000014185 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014186 }
14187 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014188 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000014189 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014190 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014191 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014192 },
14193
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014194 {
14195 .vendor = "ST",
Stefan Tauner8c4602b2013-09-12 08:29:00 +000014196 .name = "M50LPW080",
14197 .bustype = BUS_LPC, /* A/A Mux */
14198 .manufacture_id = ST_ID,
14199 .model_id = ST_M50LPW080,
14200 .total_size = 1024,
14201 .page_size = 0,
14202 .feature_bits = FEATURE_REGISTERMAP,
14203 .tested = TEST_UNTESTED,
14204 .probe = probe_82802ab,
14205 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
14206 .block_erasers =
14207 {
14208 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014209 .eraseblocks = { {64 * 1024, 16} },
Stefan Tauner8c4602b2013-09-12 08:29:00 +000014210 .block_erase = erase_block_82802ab,
14211 }
14212 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014213 .unlock = unlock_regspace2_uniform_64k,
Stefan Tauner8c4602b2013-09-12 08:29:00 +000014214 .write = write_82802ab,
14215 .read = read_memmapped,
14216 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
14217 },
14218
14219 {
14220 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014221 .name = "M50LPW116",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014222 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014223 .manufacture_id = ST_ID,
14224 .model_id = ST_M50LPW116,
14225 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000014226 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014227 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014228 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000014229 .probe = probe_82802ab,
Udu Ogahc04ee222009-09-05 01:31:32 +000014230 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014231 .block_erasers =
14232 {
14233 {
14234 .eraseblocks = {
14235 {4 * 1024, 16},
14236 {64 * 1024, 30},
14237 {32 * 1024, 1},
14238 {8 * 1024, 2},
14239 {16 * 1024, 1},
14240 },
Sean Nelson28accc22010-03-19 18:47:06 +000014241 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014242 }
14243 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014244 .printlock = printlock_regspace2_block_eraser_0,
14245 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000014246 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014247 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014248 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014249 },
14250
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014251 {
Konstantin Grudnev3d8868c2019-07-23 00:48:54 +030014252 .vendor = "ST",
14253 .name = "M95M02",
14254 .bustype = BUS_SPI,
14255 .manufacture_id = ST_ID,
14256 .model_id = ST_M95M02,
14257 .total_size = 256,
14258 .page_size = 256,
14259 .feature_bits = FEATURE_WRSR_WREN | FEATURE_NO_ERASE | FEATURE_ERASED_ZERO,
14260 .tested = TEST_OK_PREW,
14261 .probe = probe_spi_st95,
14262 .probe_timing = TIMING_ZERO,
14263 .block_erasers =
14264 {
14265 {
14266 .eraseblocks = { {256 * 1024, 1} },
14267 .block_erase = spi_block_erase_emulation,
14268 }
14269 },
14270
14271 .printlock = spi_prettyprint_status_register_bp1_srwd,
14272 .unlock = spi_disable_blockprotect_bp1_srwd,
14273 .write = spi_chip_write_256,
14274 .read = spi_chip_read,
14275 .voltage = {2500, 5500},
14276 },
14277
14278 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014279 .vendor = "Sanyo",
14280 .name = "LE25FU106B",
14281 .bustype = BUS_SPI,
14282 .manufacture_id = SANYO_ID,
14283 .model_id = SANYO_LE25FU106B,
14284 .total_size = 128,
14285 .page_size = 256,
14286 .feature_bits = FEATURE_WRSR_WREN,
14287 .tested = TEST_UNTESTED,
14288 .probe = probe_spi_res2,
14289 .probe_timing = TIMING_ZERO,
14290 .block_erasers =
14291 {
14292 /* FIXME: Is this correct?
14293 {
14294 .eraseblocks = { {2 * 1024, 64} },
14295 .block_erase = spi_block_erase_d7,
14296 },*/
14297 {
14298 .eraseblocks = { {32 * 1024, 4} },
14299 .block_erase = spi_block_erase_d8,
14300 }, {
14301 .eraseblocks = { {128 * 1024, 1} },
14302 .block_erase = spi_block_erase_c7,
14303 }
14304 },
14305 .printlock = spi_prettyprint_status_register_bp1_srwd,
14306 .unlock = spi_disable_blockprotect_bp1_srwd,
14307 .write = spi_chip_write_256,
14308 .read = spi_chip_read,
14309 .voltage = {2300, 3600},
14310 },
14311
14312 {
14313 .vendor = "Sanyo",
14314 .name = "LE25FU206",
14315 .bustype = BUS_SPI,
14316 .manufacture_id = SANYO_ID,
14317 .model_id = SANYO_LE25FU206,
14318 .total_size = 256,
14319 .page_size = 256,
14320 .feature_bits = FEATURE_WRSR_WREN,
14321 .tested = TEST_UNTESTED,
14322 .probe = probe_spi_res2,
14323 .probe_timing = TIMING_ZERO,
14324 .block_erasers =
14325 {
14326 {
14327 .eraseblocks = { {4 * 1024, 64} },
14328 .block_erase = spi_block_erase_d7,
14329 }, {
14330 .eraseblocks = { {64 * 1024, 4} },
14331 .block_erase = spi_block_erase_d8,
14332 }, {
14333 .eraseblocks = { {256 * 1024, 1} },
14334 .block_erase = spi_block_erase_c7,
14335 }
14336 },
14337 .printlock = spi_prettyprint_status_register_bp1_srwd,
14338 .unlock = spi_disable_blockprotect_bp1_srwd,
14339 .write = spi_chip_write_256,
14340 .read = spi_chip_read,
14341 .voltage = {2300, 3600},
14342 },
14343
14344 {
14345 .vendor = "Sanyo",
14346 .name = "LE25FU206A",
14347 .bustype = BUS_SPI,
14348 .manufacture_id = SANYO_ID,
14349 .model_id = SANYO_LE25FU206A,
14350 .total_size = 256,
14351 .page_size = 256,
14352 .tested = TEST_UNTESTED,
14353 .probe = probe_spi_rdid,
14354 .probe_timing = TIMING_ZERO,
14355 .block_erasers =
14356 {
14357 {
14358 .eraseblocks = { {4 * 1024, 64} },
14359 .block_erase = spi_block_erase_20,
14360 }, {
14361 .eraseblocks = { {4 * 1024, 64} },
14362 .block_erase = spi_block_erase_d7,
14363 }, {
14364 .eraseblocks = { {64 * 1024, 4} },
14365 .block_erase = spi_block_erase_d8,
14366 }, {
14367 .eraseblocks = { {256 * 1024, 1} },
14368 .block_erase = spi_block_erase_60,
14369 }, {
14370 .eraseblocks = { {256 * 1024, 1} },
14371 .block_erase = spi_block_erase_c7,
14372 }
14373 },
14374 .printlock = spi_prettyprint_status_register_bp2_srwd,
14375 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
14376 .write = spi_chip_write_256,
14377 .read = spi_chip_read,
14378 .voltage = {2300, 3600},
14379 },
14380
14381 {
14382 .vendor = "Sanyo",
14383 .name = "LE25FU406B",
14384 .bustype = BUS_SPI,
14385 .manufacture_id = SANYO_ID,
14386 .model_id = SANYO_LE25FU406B,
14387 .total_size = 512,
14388 .page_size = 256,
14389 .feature_bits = FEATURE_WRSR_WREN,
14390 .tested = TEST_OK_PREW,
14391 .probe = probe_spi_res2,
14392 .probe_timing = TIMING_ZERO,
14393 .block_erasers =
14394 {
14395 {
14396 .eraseblocks = { {4 * 1024, 128} },
14397 .block_erase = spi_block_erase_d7,
14398 }, {
14399 .eraseblocks = { {64 * 1024, 8} },
14400 .block_erase = spi_block_erase_d8,
14401 }, {
14402 .eraseblocks = { {512 * 1024, 1} },
14403 .block_erase = spi_block_erase_c7,
14404 }
14405 },
14406 .printlock = spi_prettyprint_status_register_bp2_srwd,
14407 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
14408 .write = spi_chip_write_256,
14409 .read = spi_chip_read,
14410 .voltage = {2300, 3600},
14411 },
14412
14413 {
14414 .vendor = "Sanyo",
14415 .name = "LE25FU406C/LE25U40CMC",
14416 .bustype = BUS_SPI,
14417 .manufacture_id = SANYO_ID,
14418 .model_id = SANYO_LE25FU406C,
14419 .total_size = 512,
14420 .page_size = 256,
14421 .feature_bits = FEATURE_WRSR_WREN,
14422 .tested = TEST_OK_PREW,
14423 .probe = probe_spi_rdid,
14424 .probe_timing = TIMING_ZERO,
14425 .block_erasers =
14426 {
14427 {
14428 .eraseblocks = { {4 * 1024, 128} },
14429 .block_erase = spi_block_erase_20,
14430 }, {
14431 .eraseblocks = { {4 * 1024, 128} },
14432 .block_erase = spi_block_erase_d7,
14433 }, {
14434 .eraseblocks = { {64 * 1024, 8} },
14435 .block_erase = spi_block_erase_d8,
14436 }, {
14437 .eraseblocks = { {512 * 1024, 1} },
14438 .block_erase = spi_block_erase_60,
14439 }, {
14440 .eraseblocks = { {512 * 1024, 1} },
14441 .block_erase = spi_block_erase_c7,
14442 }
14443 },
14444 .printlock = spi_prettyprint_status_register_bp2_srwd,
14445 .unlock = spi_disable_blockprotect_bp2_srwd,
14446 .write = spi_chip_write_256,
14447 .read = spi_chip_read, /* Fast read (0x0B), dual read (0x3B) and dual I/O (0xBB) supported */
14448 .voltage = {2300, 3600},
14449 },
14450
14451 {
14452 .vendor = "Sanyo",
14453 .name = "LE25FW106",
14454 .bustype = BUS_SPI,
14455 .manufacture_id = SANYO_ID,
14456 .model_id = SANYO_LE25FW106,
14457 .total_size = 128,
14458 .page_size = 256,
14459 .feature_bits = FEATURE_WRSR_WREN,
14460 .tested = TEST_OK_PREW,
14461 .probe = probe_spi_res2,
14462 .probe_timing = TIMING_ZERO,
14463 .block_erasers =
14464 {
14465 {
14466 .eraseblocks = { {2 * 1024, 64} },
14467 .block_erase = spi_block_erase_d7,
14468 }, {
14469 .eraseblocks = { {32 * 1024, 4} },
14470 .block_erase = spi_block_erase_d8,
14471 }, {
14472 .eraseblocks = { {128 * 1024, 1} },
14473 .block_erase = spi_block_erase_c7,
14474 }
14475 },
14476 .printlock = spi_prettyprint_status_register_bp1_srwd, /* FIXME: Add ERSER error flag. */
14477 .unlock = spi_disable_blockprotect_bp1_srwd,
14478 .write = spi_chip_write_256,
14479 .read = spi_chip_read,
14480 .voltage = {2700, 3600},
14481 },
14482
14483 {
14484 .vendor = "Sanyo",
14485 .name = "LE25FW203A",
14486 .bustype = BUS_SPI,
14487 .manufacture_id = SANYO_ID,
14488 .model_id = SANYO_LE25FW203A,
14489 .total_size = 256,
14490 .page_size = 256,
14491 .tested = TEST_UNTESTED,
14492 .probe = probe_spi_rdid,
14493 .probe_timing = TIMING_ZERO,
14494 .block_erasers =
14495 {
14496 {
14497 .eraseblocks = { {256, 1024} },
14498 .block_erase = spi_block_erase_db,
14499 }, {
14500 .eraseblocks = { {64 * 1024, 4} },
14501 .block_erase = spi_block_erase_d8,
14502 }, {
14503 .eraseblocks = { {256 * 1024, 1} },
14504 .block_erase = spi_block_erase_c7,
14505 }
14506 },
14507 .printlock = spi_prettyprint_status_register_default_welwip,
14508 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
14509 .write = spi_chip_write_256,
14510 .read = spi_chip_read,
14511 .voltage = {2700, 3600},
14512 },
14513
14514 {
14515 .vendor = "Sanyo",
14516 .name = "LE25FW403A",
14517 .bustype = BUS_SPI,
14518 .manufacture_id = SANYO_ID,
14519 .model_id = SANYO_LE25FW403A,
14520 .total_size = 512,
14521 .page_size = 256,
14522 .tested = TEST_UNTESTED,
14523 .probe = probe_spi_rdid,
14524 .probe_timing = TIMING_ZERO,
14525 .block_erasers =
14526 {
14527 {
14528 .eraseblocks = { {256, 2 * 1024} },
14529 .block_erase = spi_block_erase_db,
14530 }, {
14531 .eraseblocks = { {64 * 1024, 8} },
14532 .block_erase = spi_block_erase_d8,
14533 }, {
14534 .eraseblocks = { {512 * 1024, 1} },
14535 .block_erase = spi_block_erase_c7,
14536 }
14537 },
14538 .printlock = spi_prettyprint_status_register_default_welwip,
14539 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
14540 .write = spi_chip_write_256,
14541 .read = spi_chip_read,
14542 .voltage = {2700, 3600},
14543 },
14544
14545 {
14546 .vendor = "Sanyo",
14547 .name = "LE25FW406A",
14548 .bustype = BUS_SPI,
14549 .manufacture_id = SANYO_ID,
14550 .model_id = SANYO_LE25FW406A,
14551 .total_size = 512,
14552 .page_size = 256,
14553 .feature_bits = FEATURE_WRSR_WREN,
14554 .tested = TEST_OK_PREW,
14555 .probe = probe_spi_res2,
14556 .probe_timing = TIMING_ZERO,
14557 .block_erasers =
14558 {
14559 {
14560 .eraseblocks = { {4 * 1024, 128} },
14561 .block_erase = spi_block_erase_d7,
14562 }, {
14563 .eraseblocks = { {64 * 1024, 8} },
14564 .block_erase = spi_block_erase_d8,
14565 }, {
14566 .eraseblocks = { {512 * 1024, 1} },
14567 .block_erase = spi_block_erase_c7,
14568 }
14569 },
14570 .printlock = spi_prettyprint_status_register_plain,
14571 .unlock = spi_disable_blockprotect,
14572 .write = spi_chip_write_256,
14573 .read = spi_chip_read,
14574 .voltage = {2700, 3600},
14575 },
14576
14577 {
14578 .vendor = "Sanyo",
14579 .name = "LE25FW418A",
14580 .bustype = BUS_SPI,
14581 .manufacture_id = SANYO_ID,
14582 .model_id = SANYO_LE25FW418A,
14583 .total_size = 512,
14584 .page_size = 256,
14585 .feature_bits = FEATURE_WRSR_WREN,
14586 .tested = TEST_UNTESTED,
14587 .probe = probe_spi_res2,
14588 .probe_timing = TIMING_ZERO,
14589 .block_erasers =
14590 {
14591 {
14592 .eraseblocks = { {4 * 1024, 128} },
14593 .block_erase = spi_block_erase_d7,
14594 }, {
14595 .eraseblocks = { {64 * 1024, 8} },
14596 .block_erase = spi_block_erase_d8,
14597 }, {
14598 .eraseblocks = { {512 * 1024, 1} },
14599 .block_erase = spi_block_erase_c7,
14600 }
14601 },
14602 .printlock = spi_prettyprint_status_register_bp2_srwd,
14603 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
14604 .write = spi_chip_write_256,
14605 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
14606 .voltage = {2700, 3600},
14607 },
14608
14609 {
14610 .vendor = "Sanyo",
14611 .name = "LE25FW806",
14612 .bustype = BUS_SPI,
14613 .manufacture_id = SANYO_ID,
14614 .model_id = SANYO_LE25FW806,
14615 .total_size = 1024,
14616 .page_size = 256,
14617 .feature_bits = FEATURE_WRSR_WREN,
14618 .tested = TEST_UNTESTED,
14619 .probe = probe_spi_res2,
14620 .probe_timing = TIMING_ZERO,
14621 .block_erasers =
14622 {
14623 {
14624 .eraseblocks = { {4 * 1024, 256} },
14625 .block_erase = spi_block_erase_20,
14626 }, {
14627 .eraseblocks = { {4 * 1024, 256} },
14628 .block_erase = spi_block_erase_d7,
14629 }, {
14630 .eraseblocks = { {64 * 1024, 16} },
14631 .block_erase = spi_block_erase_d8,
14632 }, {
14633 .eraseblocks = { {1024 * 1024, 1} },
14634 .block_erase = spi_block_erase_c7,
14635 }
14636 },
14637 .printlock = spi_prettyprint_status_register_bp2_srwd,
14638 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
14639 .write = spi_chip_write_256,
14640 .read = spi_chip_read,
14641 .voltage = {2700, 3600},
14642 },
14643
14644 {
14645 .vendor = "Sanyo",
14646 .name = "LE25FW808",
14647 .bustype = BUS_SPI,
14648 .manufacture_id = SANYO_ID,
14649 .model_id = SANYO_LE25FW808,
14650 .total_size = 1024,
14651 .page_size = 256,
14652 .feature_bits = FEATURE_WRSR_WREN,
14653 .tested = TEST_UNTESTED,
14654 .probe = probe_spi_res2,
14655 .probe_timing = TIMING_ZERO,
14656 .block_erasers =
14657 {
14658 {
14659 .eraseblocks = { {8 * 1024, 128} },
14660 .block_erase = spi_block_erase_d7,
14661 }, {
14662 .eraseblocks = { {64 * 1024, 16} },
14663 .block_erase = spi_block_erase_d8,
14664 }, {
14665 .eraseblocks = { {1024 * 1024, 1} },
14666 .block_erase = spi_block_erase_c7,
14667 }
14668 },
14669 .printlock = spi_prettyprint_status_register_bp2_srwd,
14670 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
14671 .write = spi_chip_write_256,
14672 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
14673 .voltage = {2700, 3600},
14674 },
14675
14676 {
14677 .vendor = "Sharp",
14678 .name = "LH28F008BJT-BTLZ1",
14679 .bustype = BUS_PARALLEL,
14680 .manufacture_id = SHARP_ID,
14681 .model_id = SHARP_LH28F008BJ__PB,
14682 .total_size = 1024,
14683 .page_size = 64 * 1024,
14684 .tested = TEST_OK_PREW,
14685 .probe = probe_82802ab,
14686 .probe_timing = TIMING_ZERO,
14687 .block_erasers =
14688 {
14689 {
14690 .eraseblocks = {
14691 {8 * 1024, 8},
14692 {64 * 1024, 15}
14693 },
14694 .block_erase = erase_block_82802ab,
14695 }, {
14696 .eraseblocks = { {1024 * 1024, 1} },
14697 .block_erase = erase_sector_49lfxxxc,
14698 }
14699 },
14700 .unlock = unlock_lh28f008bjt,
14701 .write = write_82802ab,
14702 .read = read_memmapped,
14703 .voltage = {2700, 3600},
14704 },
14705
14706 {
14707 .vendor = "Sharp",
14708 .name = "LHF00L04",
14709 .bustype = BUS_FWH, /* A/A Mux */
14710 .manufacture_id = SHARP_ID,
14711 .model_id = SHARP_LHF00L04,
14712 .total_size = 1024,
14713 .page_size = 64 * 1024,
14714 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
14715 .tested = TEST_UNTESTED,
14716 .probe = probe_82802ab,
14717 .probe_timing = TIMING_ZERO,
14718 .block_erasers =
14719 {
14720 {
14721 .eraseblocks = {
14722 {64 * 1024, 15},
14723 {8 * 1024, 8}
14724 },
14725 .block_erase = erase_block_82802ab,
14726 }, {
14727 .eraseblocks = {
14728 {1024 * 1024, 1}
14729 },
14730 .block_erase = NULL, /* 30 D0, only in A/A mux mode */
14731 },
14732 },
14733 .unlock = unlock_regspace2_uniform_64k,
14734 .write = write_82802ab,
14735 .read = read_memmapped,
14736 .voltage = {3000, 3600},
14737 },
14738
14739 {
14740 .vendor = "Spansion",
14741 .name = "S25FL004A",
14742 .bustype = BUS_SPI,
14743 .manufacture_id = SPANSION_ID,
14744 .model_id = SPANSION_S25FL004A,
14745 .total_size = 512,
14746 .page_size = 256,
14747 .feature_bits = FEATURE_WRSR_WREN,
14748 .tested = TEST_UNTESTED,
14749 .probe = probe_spi_rdid,
14750 .probe_timing = TIMING_ZERO,
14751 .block_erasers =
14752 {
14753 {
14754 .eraseblocks = { {64 * 1024, 8} },
14755 .block_erase = spi_block_erase_d8,
14756 }, {
14757 .eraseblocks = { {512 * 1024, 1} },
14758 .block_erase = spi_block_erase_c7,
14759 }
14760 },
14761 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14762 .unlock = spi_disable_blockprotect,
14763 .write = spi_chip_write_256,
14764 .read = spi_chip_read,
14765 .voltage = {2700, 3600},
14766 },
14767
14768 {
14769 .vendor = "Spansion",
14770 .name = "S25FL008A",
14771 .bustype = BUS_SPI,
14772 .manufacture_id = SPANSION_ID,
14773 .model_id = SPANSION_S25FL008A,
14774 .total_size = 1024,
14775 .page_size = 256,
14776 .feature_bits = FEATURE_WRSR_WREN,
14777 .tested = TEST_OK_PRE,
14778 .probe = probe_spi_rdid,
14779 .probe_timing = TIMING_ZERO,
14780 .block_erasers =
14781 {
14782 {
14783 .eraseblocks = { {64 * 1024, 16} },
14784 .block_erase = spi_block_erase_d8,
14785 }, {
14786 .eraseblocks = { {1024 * 1024, 1} },
14787 .block_erase = spi_block_erase_c7,
14788 }
14789 },
14790 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14791 .unlock = spi_disable_blockprotect,
14792 .write = spi_chip_write_256,
14793 .read = spi_chip_read,
14794 .voltage = {2700, 3600},
14795 },
14796
14797 {
14798 .vendor = "Spansion",
14799 .name = "S25FL016A",
14800 .bustype = BUS_SPI,
14801 .manufacture_id = SPANSION_ID,
14802 .model_id = SPANSION_S25FL016A,
14803 .total_size = 2048,
14804 .page_size = 256,
14805 .feature_bits = FEATURE_WRSR_WREN,
14806 .tested = TEST_OK_PREW,
14807 .probe = probe_spi_rdid,
14808 .probe_timing = TIMING_ZERO,
14809 .block_erasers =
14810 {
14811 {
14812 .eraseblocks = { {64 * 1024, 32} },
14813 .block_erase = spi_block_erase_d8,
14814 }, {
14815 .eraseblocks = { {2 * 1024 * 1024, 1} },
14816 .block_erase = spi_block_erase_c7,
14817 }
14818 },
14819 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14820 .unlock = spi_disable_blockprotect,
14821 .write = spi_chip_write_256,
14822 .read = spi_chip_read,
14823 .voltage = {2700, 3600},
14824 },
14825
14826 {
14827 .vendor = "Spansion",
14828 .name = "S25FL032A/P",
14829 .bustype = BUS_SPI,
14830 .manufacture_id = SPANSION_ID,
14831 .model_id = SPANSION_S25FL032A,
14832 .total_size = 4096,
14833 .page_size = 256,
14834 .feature_bits = FEATURE_WRSR_WREN,
14835 .tested = TEST_OK_PREW,
14836 .probe = probe_spi_rdid,
14837 .probe_timing = TIMING_ZERO,
14838 .block_erasers =
14839 {
14840 {
14841 .eraseblocks = { {64 * 1024, 64} },
14842 .block_erase = spi_block_erase_d8,
14843 }, {
14844 .eraseblocks = { {4 * 1024 * 1024, 1} },
14845 .block_erase = spi_block_erase_c7,
14846 }
14847 },
14848 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14849 .unlock = spi_disable_blockprotect,
14850 .write = spi_chip_write_256,
14851 .read = spi_chip_read,
14852 .voltage = {2700, 3600},
14853 },
14854
14855 {
14856 .vendor = "Spansion",
14857 .name = "S25FL064A/P",
14858 .bustype = BUS_SPI,
14859 .manufacture_id = SPANSION_ID,
14860 .model_id = SPANSION_S25FL064A,
14861 .total_size = 8192,
14862 .page_size = 256,
14863 .feature_bits = FEATURE_WRSR_WREN,
14864 .tested = TEST_OK_PREW,
14865 .probe = probe_spi_rdid,
14866 .probe_timing = TIMING_ZERO,
14867 .block_erasers =
14868 {
14869 {
14870 .eraseblocks = { {64 * 1024, 128} },
14871 .block_erase = spi_block_erase_d8,
14872 }, {
14873 .eraseblocks = { {8 * 1024 * 1024, 1} },
14874 .block_erase = spi_block_erase_c7,
14875 }
14876 },
14877 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14878 .unlock = spi_disable_blockprotect,
14879 .write = spi_chip_write_256,
14880 .read = spi_chip_read,
14881 .voltage = {2700, 3600},
14882 },
14883
14884 {
14885 .vendor = "Spansion",
14886 .name = "S25FL116K/S25FL216K", /* FIXME: separate them */
14887 .bustype = BUS_SPI,
14888 .manufacture_id = SPANSION_ID,
14889 .model_id = SPANSION_S25FL216,
14890 .total_size = 2048,
14891 .page_size = 256,
14892 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (S25FL116K only) */
14893 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
14894 .tested = TEST_UNTESTED,
14895 .probe = probe_spi_rdid,
14896 .probe_timing = TIMING_ZERO,
14897 .block_erasers =
14898 {
14899 {
14900 .eraseblocks = { {4 * 1024, 512} },
14901 .block_erase = spi_block_erase_20,
14902 }, {
14903 .eraseblocks = { {64 * 1024, 32} },
14904 .block_erase = spi_block_erase_d8,
14905 }, {
14906 .eraseblocks = { { 2048 * 1024, 1} },
14907 .block_erase = spi_block_erase_60,
14908 }, {
14909 .eraseblocks = { { 2048 * 1024, 1} },
14910 .block_erase = spi_block_erase_c7,
14911 }
14912 },
14913 .printlock = spi_prettyprint_status_register_bp3_srwd,
14914 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
14915 .write = spi_chip_write_256,
14916 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
14917 .voltage = {2700, 3600},
14918 },
14919
14920 {
14921 .vendor = "Spansion",
14922 .name = "S25FL127S-256kB", /* uniform 256kB sectors */
14923 .bustype = BUS_SPI,
14924 .manufacture_id = SPANSION_ID,
14925 .model_id = SPANSION_S25FL128,
14926 .total_size = 16384,
14927 .page_size = 512,
14928 /* supports 4B addressing */
14929 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
14930 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
14931 .tested = TEST_UNTESTED,
14932 .probe = probe_spi_rdid,
14933 .probe_timing = TIMING_ZERO,
14934 .block_erasers =
14935 {
14936 {
14937 .eraseblocks = { {256 * 1024, 64} },
14938 .block_erase = spi_block_erase_d8,
14939 }, {
14940 .eraseblocks = { { 16384 * 1024, 1} },
14941 .block_erase = spi_block_erase_60,
14942 }, {
14943 .eraseblocks = { { 16384 * 1024, 1} },
14944 .block_erase = spi_block_erase_c7,
14945 }
14946 },
14947 .printlock = spi_prettyprint_status_register_bp2_srwd,
14948 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
14949 .write = spi_chip_write_256, /* Multi I/O supported */
14950 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
14951 .voltage = {2700, 3600},
14952 },
14953
14954 {
14955 .vendor = "Spansion",
14956 .name = "S25FL127S-64kB", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
14957 .bustype = BUS_SPI,
14958 .manufacture_id = SPANSION_ID,
14959 .model_id = SPANSION_S25FL128,
14960 .total_size = 16384,
14961 .page_size = 256,
14962 /* supports 4B addressing */
14963 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
14964 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
14965 .tested = TEST_OK_PREW,
14966 /* FIXME: we should distinguish the configuration on probing time like we do for AT45DB chips */
14967 .probe = probe_spi_rdid,
14968 .probe_timing = TIMING_ZERO,
14969 .block_erasers =
14970 {
14971 {
14972 /* This chip supports erasing of 32 so-called "parameter sectors" with
14973 * opcode 0x20 which may be configured to be on top or bottom of the address
14974 * space. Trying to access an address outside these 4kB blocks does have no
14975 * effect on the memory contents, e.g.
14976 .eraseblocks = {
14977 {4 * 1024, 32},
14978 {64 * 1024, 254} // inaccessible
14979 },
14980 .block_erase = spi_block_erase_20,
14981 }, { */
14982 .eraseblocks = { { 64 * 1024, 256} },
14983 .block_erase = spi_block_erase_d8,
14984 }, {
14985 .eraseblocks = { { 16384 * 1024, 1} },
14986 .block_erase = spi_block_erase_60,
14987 }, {
14988 .eraseblocks = { { 16384 * 1024, 1} },
14989 .block_erase = spi_block_erase_c7,
14990 }
14991 },
14992 .printlock = spi_prettyprint_status_register_bp2_srwd,
14993 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
14994 .write = spi_chip_write_256, /* Multi I/O supported */
14995 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
14996 .voltage = {2700, 3600},
14997 },
14998
14999 {
15000 .vendor = "Spansion",
15001 .name = "S25FL128P......0", /* uniform 64 kB sectors */
15002 .bustype = BUS_SPI,
15003 .manufacture_id = SPANSION_ID,
15004 .model_id = SPANSION_S25FL128,
15005 .total_size = 16384,
15006 .page_size = 256,
15007 .feature_bits = FEATURE_WRSR_WREN,
15008 .tested = TEST_OK_PREW,
15009 .probe = probe_spi_rdid,
15010 .probe_timing = TIMING_ZERO,
15011 .block_erasers =
15012 {
15013 {
15014 .eraseblocks = { {64 * 1024, 256} },
15015 .block_erase = spi_block_erase_20,
15016 }, {
15017 .eraseblocks = { {64 * 1024, 256} },
15018 .block_erase = spi_block_erase_d8,
15019 }, {
15020 .eraseblocks = { { 16384 * 1024, 1} },
15021 .block_erase = spi_block_erase_60,
15022 }, {
15023 .eraseblocks = { { 16384 * 1024, 1} },
15024 .block_erase = spi_block_erase_c7,
15025 }
15026 },
15027 .printlock = spi_prettyprint_status_register_bp3_srwd,
15028 .unlock = spi_disable_blockprotect_bp3_srwd,
15029 .write = spi_chip_write_256,
15030 .read = spi_chip_read, /* Fast read (0x0B) supported */
15031 .voltage = {2700, 3600},
15032 },
15033
15034 {
15035 .vendor = "Spansion",
15036 .name = "S25FL128P......1", /* uniform 256kB sectors */
15037 .bustype = BUS_SPI,
15038 .manufacture_id = SPANSION_ID,
15039 .model_id = SPANSION_S25FL128,
15040 .total_size = 16384,
15041 .page_size = 256,
15042 .feature_bits = FEATURE_WRSR_WREN,
15043 .tested = TEST_UNTESTED,
15044 .probe = probe_spi_rdid,
15045 .probe_timing = TIMING_ZERO,
15046 .block_erasers =
15047 {
15048 {
15049 .eraseblocks = { {256 * 1024, 64} },
15050 .block_erase = spi_block_erase_d8,
15051 }, {
15052 .eraseblocks = { { 16384 * 1024, 1} },
15053 .block_erase = spi_block_erase_c7,
15054 }
15055 },
15056 .printlock = spi_prettyprint_status_register_bp2_srwd,
15057 .unlock = spi_disable_blockprotect_bp2_srwd,
15058 .write = spi_chip_write_256,
15059 .read = spi_chip_read, /* Fast read (0x0B) supported */
15060 .voltage = {2700, 3600},
15061 },
15062
15063 {
15064 .vendor = "Spansion",
15065 .name = "S25FL128S......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
15066 .bustype = BUS_SPI,
15067 .manufacture_id = SPANSION_ID,
15068 .model_id = SPANSION_S25FL128,
15069 .total_size = 16384,
15070 .page_size = 256,
15071 /* supports 4B addressing */
15072 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
15073 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
15074 .tested = TEST_OK_PREW,
15075 .probe = probe_spi_rdid,
15076 .probe_timing = TIMING_ZERO,
15077 .block_erasers =
15078 {
15079 {
15080 /* This chip supports erasing of the 32 so-called "parameter sectors" with
15081 * opcode 0x20. Trying to access an address outside these 4kB blocks does
15082 * have no effect on the memory contents, but sets a flag in the SR.
15083 .eraseblocks = {
15084 {4 * 1024, 32},
15085 {64 * 1024, 254} // inaccessible
15086 },
15087 .block_erase = spi_block_erase_20,
15088 }, { */
15089 .eraseblocks = { { 64 * 1024, 256} },
15090 .block_erase = spi_block_erase_d8,
15091 }, {
15092 .eraseblocks = { { 16384 * 1024, 1} },
15093 .block_erase = spi_block_erase_60,
15094 }, {
15095 .eraseblocks = { { 16384 * 1024, 1} },
15096 .block_erase = spi_block_erase_c7,
15097 }
15098 },
15099 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
15100 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
15101 .write = spi_chip_write_256, /* Multi I/O supported */
15102 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
15103 .voltage = {2700, 3600},
15104 },
15105
15106 {
15107 .vendor = "Spansion",
15108 .name = "S25FL128S......1", /* uniform 256 kB sectors */
15109 .bustype = BUS_SPI,
15110 .manufacture_id = SPANSION_ID,
15111 .model_id = SPANSION_S25FL128,
15112 .total_size = 16384,
15113 .page_size = 512,
15114 /* supports 4B addressing */
15115 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
15116 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
15117 .tested = TEST_UNTESTED,
15118 .probe = probe_spi_rdid,
15119 .probe_timing = TIMING_ZERO,
15120 .block_erasers =
15121 {
15122 {
15123 .eraseblocks = { {256 * 1024, 64} },
15124 .block_erase = spi_block_erase_d8,
15125 }, {
15126 .eraseblocks = { { 16384 * 1024, 1} },
15127 .block_erase = spi_block_erase_60,
15128 }, {
15129 .eraseblocks = { { 16384 * 1024, 1} },
15130 .block_erase = spi_block_erase_c7,
15131 }
15132 },
15133 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
15134 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
15135 .write = spi_chip_write_256, /* Multi I/O supported */
15136 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
15137 .voltage = {2700, 3600},
15138 },
15139
15140 {
15141 .vendor = "Spansion",
15142 .name = "S25FL129P......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
15143 .bustype = BUS_SPI,
15144 .manufacture_id = SPANSION_ID,
15145 .model_id = SPANSION_S25FL128,
15146 .total_size = 16384,
15147 .page_size = 256,
15148 /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */
15149 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
15150 .tested = TEST_OK_PREW,
15151 .probe = probe_spi_rdid,
15152 .probe_timing = TIMING_ZERO,
15153 .block_erasers =
15154 {
15155 {
15156 /* FIXME: This chip supports erasing of the 32 so-called "parameter sectors" with
15157 * opcode 0x20. Trying to access an address outside these 4kB blocks does have no
15158 * effect on the memory contents, but sets a flag in the SR.
15159 .eraseblocks = {
15160 {4 * 1024, 32},
15161 {64 * 1024, 254} // inaccessible
15162 },
15163 .block_erase = spi_block_erase_20,
15164 }, { */
15165 /* FIXME: Additionally it also supports erase opcode 40h for the respective 2*4 kB pairs
15166 .eraseblocks = {
15167 {8 * 1024, 16},
15168 {64 * 1024, 254} // inaccessible
15169 },
15170 .block_erase = spi_block_erase_40,
15171 }, { */
15172 .eraseblocks = { { 64 * 1024, 256} },
15173 .block_erase = spi_block_erase_d8,
15174 }, {
15175 .eraseblocks = { { 16384 * 1024, 1} },
15176 .block_erase = spi_block_erase_60,
15177 }, {
15178 .eraseblocks = { { 16384 * 1024, 1} },
15179 .block_erase = spi_block_erase_c7,
15180 }
15181 },
15182 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */
15183 .unlock = spi_disable_blockprotect_bp2_srwd,
15184 .write = spi_chip_write_256, /* Multi I/O supported */
15185 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
15186 .voltage = {2700, 3600},
15187 },
15188
15189 {
15190 .vendor = "Spansion",
15191 .name = "S25FL129P......1", /* uniform 256 kB sectors */
15192 .bustype = BUS_SPI,
15193 .manufacture_id = SPANSION_ID,
15194 .model_id = SPANSION_S25FL128,
15195 .total_size = 16384,
15196 .page_size = 256,
15197 /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */
15198 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
15199 .tested = TEST_UNTESTED,
15200 .probe = probe_spi_rdid,
15201 .probe_timing = TIMING_ZERO,
15202 .block_erasers =
15203 {
15204 {
15205 .eraseblocks = { {256 * 1024, 64} },
15206 .block_erase = spi_block_erase_d8,
15207 }, {
15208 .eraseblocks = { { 16384 * 1024, 1} },
15209 .block_erase = spi_block_erase_60,
15210 }, {
15211 .eraseblocks = { { 16384 * 1024, 1} },
15212 .block_erase = spi_block_erase_c7,
15213 }
15214 },
15215 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */
15216 .unlock = spi_disable_blockprotect_bp2_srwd,
15217 .write = spi_chip_write_256, /* Multi I/O supported */
15218 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
15219 .voltage = {2700, 3600},
15220 },
15221
15222 {
15223 .vendor = "Spansion",
15224 .name = "S25FL132K",
15225 .bustype = BUS_SPI,
15226 .manufacture_id = SPANSION_ID,
15227 .model_id = SPANSION_S25FL132K,
15228 .total_size = 4096,
15229 .page_size = 256,
15230 /* OTP: 768B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
15231 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
15232 .tested = TEST_UNTESTED,
15233 .probe = probe_spi_rdid,
15234 .probe_timing = TIMING_ZERO,
15235 .block_erasers =
15236 {
15237 {
15238 .eraseblocks = { {4 * 1024, 1024} },
15239 .block_erase = spi_block_erase_20,
15240 }, {
15241 .eraseblocks = { {64 * 1024, 64} },
15242 .block_erase = spi_block_erase_d8,
15243 }, {
15244 .eraseblocks = { { 4096 * 1024, 1} },
15245 .block_erase = spi_block_erase_60,
15246 }, {
15247 .eraseblocks = { { 4096 * 1024, 1} },
15248 .block_erase = spi_block_erase_c7,
15249 }
15250 },
15251 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
15252 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
15253 .write = spi_chip_write_256,
15254 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
15255 .voltage = {2700, 3600},
15256 },
15257
15258 {
15259 .vendor = "Spansion",
15260 .name = "S25FL164K",
15261 .bustype = BUS_SPI,
15262 .manufacture_id = SPANSION_ID,
15263 .model_id = SPANSION_S25FL164K,
15264 .total_size = 8192,
15265 .page_size = 256,
15266 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
15267 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
15268 .tested = TEST_OK_PREW,
15269 .probe = probe_spi_rdid,
15270 .probe_timing = TIMING_ZERO,
15271 .block_erasers =
15272 {
15273 {
15274 .eraseblocks = { {4 * 1024, 2048} },
15275 .block_erase = spi_block_erase_20,
15276 }, {
15277 .eraseblocks = { {64 * 1024, 128} },
15278 .block_erase = spi_block_erase_d8,
15279 }, {
15280 .eraseblocks = { { 8192 * 1024, 1} },
15281 .block_erase = spi_block_erase_60,
15282 }, {
15283 .eraseblocks = { { 8192 * 1024, 1} },
15284 .block_erase = spi_block_erase_c7,
15285 }
15286 },
15287 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
15288 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
15289 .write = spi_chip_write_256,
15290 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
15291 .voltage = {2700, 3600},
15292 },
15293
15294 {
15295 .vendor = "Spansion",
15296 .name = "S25FL204K",
15297 .bustype = BUS_SPI,
15298 .manufacture_id = SPANSION_ID,
15299 .model_id = SPANSION_S25FL204,
15300 .total_size = 512,
15301 .page_size = 256,
15302 .feature_bits = FEATURE_WRSR_WREN,
15303 .tested = TEST_OK_PR,
15304 .probe = probe_spi_rdid,
15305 .probe_timing = TIMING_ZERO,
15306 .block_erasers =
15307 {
15308 {
15309 .eraseblocks = { {4 * 1024, 128} },
15310 .block_erase = spi_block_erase_20,
15311 }, {
15312 .eraseblocks = { {64 * 1024, 8} },
15313 .block_erase = spi_block_erase_d8,
15314 }, {
15315 .eraseblocks = { { 512 * 1024, 1} },
15316 .block_erase = spi_block_erase_60,
15317 }, {
15318 .eraseblocks = { { 512 * 1024, 1} },
15319 .block_erase = spi_block_erase_c7,
15320 }
15321 },
15322 .printlock = spi_prettyprint_status_register_bp3_srwd,
15323 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
15324 .write = spi_chip_write_256,
15325 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
15326 .voltage = {2700, 3600},
15327 },
15328
15329 {
15330 .vendor = "Spansion",
15331 .name = "S25FL208K",
15332 .bustype = BUS_SPI,
15333 .manufacture_id = SPANSION_ID,
15334 .model_id = SPANSION_S25FL208,
15335 .total_size = 1024,
15336 .page_size = 256,
15337 .feature_bits = FEATURE_WRSR_WREN,
15338 .tested = TEST_OK_PREW,
15339 .probe = probe_spi_rdid,
15340 .probe_timing = TIMING_ZERO,
15341 .block_erasers =
15342 {
15343 {
15344 .eraseblocks = { {4 * 1024, 256} },
15345 .block_erase = spi_block_erase_20,
15346 }, {
15347 .eraseblocks = { {64 * 1024, 16} },
15348 .block_erase = spi_block_erase_d8,
15349 }, {
15350 .eraseblocks = { { 1024 * 1024, 1} },
15351 .block_erase = spi_block_erase_60,
15352 }, {
15353 .eraseblocks = { { 1024 * 1024, 1} },
15354 .block_erase = spi_block_erase_c7,
15355 }
15356 },
15357 .printlock = spi_prettyprint_status_register_bp3_srwd,
15358 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
15359 .write = spi_chip_write_256,
15360 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
15361 .voltage = {2700, 3600},
15362 },
15363
15364 {
15365 .vendor = "Spansion",
15366 .name = "S25FL256S......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
15367 .bustype = BUS_SPI,
15368 .manufacture_id = SPANSION_ID,
15369 .model_id = SPANSION_S25FL256,
15370 .total_size = 32768,
15371 .page_size = 256,
15372 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
15373 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_EAR7,
15374 .tested = TEST_OK_PREW,
15375 .probe = probe_spi_rdid,
15376 .probe_timing = TIMING_ZERO,
15377 .block_erasers =
15378 {
15379 {
15380 /* This chip supports erasing of the 32 so-called "parameter sectors" with
15381 * opcode 0x20. Trying to access an address outside these 4kB blocks does
15382 * have no effect on the memory contents, but sets a flag in the SR.
15383 .eraseblocks = {
15384 {4 * 1024, 32},
15385 {64 * 1024, 254} // inaccessible
15386 },
15387 .block_erase = spi_block_erase_20,
15388 }, { */
15389 .eraseblocks = { { 64 * 1024, 512} },
15390 .block_erase = spi_block_erase_dc,
15391 }, {
15392 .eraseblocks = { { 64 * 1024, 512} },
15393 .block_erase = spi_block_erase_d8,
15394 }, {
15395 .eraseblocks = { { 32768 * 1024, 1} },
15396 .block_erase = spi_block_erase_60,
15397 }, {
15398 .eraseblocks = { { 32768 * 1024, 1} },
15399 .block_erase = spi_block_erase_c7,
15400 }
15401 },
15402 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
15403 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
15404 .write = spi_chip_write_256, /* Multi I/O supported */
15405 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
15406 .voltage = {2700, 3600},
15407 .wrea_override = 0x17,
15408 },
15409
15410 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000015411 .vendor = "SyncMOS/MoselVitelic",
15412 .name = "{F,S,V}29C51001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015413 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000015414 .manufacture_id = SYNCMOS_MVC_ID,
15415 .model_id = SM_MVC_29C51001B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015416 .total_size = 128,
Mattias Mattsson4c066502010-07-29 20:01:13 +000015417 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000015418 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015419 .tested = TEST_UNTESTED,
15420 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000015421 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000015422 .block_erasers =
15423 {
15424 {
15425 .eraseblocks = { {512, 256} },
15426 .block_erase = erase_sector_jedec,
15427 }, {
15428 .eraseblocks = { {128 * 1024, 1} },
15429 .block_erase = erase_chip_block_jedec,
15430 },
15431 },
Sean Nelson35727f72010-01-28 23:55:12 +000015432 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015433 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015434 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000015435 },
15436
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015437 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000015438 .vendor = "SyncMOS/MoselVitelic",
15439 .name = "{F,S,V}29C51001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015440 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000015441 .manufacture_id = SYNCMOS_MVC_ID,
15442 .model_id = SM_MVC_29C51001T,
15443 .total_size = 128,
15444 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000015445 .feature_bits = FEATURE_EITHER_RESET,
Mattias Mattsson4c066502010-07-29 20:01:13 +000015446 .tested = TEST_UNTESTED,
15447 .probe = probe_jedec,
15448 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
15449 .block_erasers =
15450 {
15451 {
15452 .eraseblocks = { {512, 256} },
15453 .block_erase = erase_sector_jedec,
15454 }, {
15455 .eraseblocks = { {128 * 1024, 1} },
15456 .block_erase = erase_chip_block_jedec,
15457 },
15458 },
15459 .write = write_jedec_1,
15460 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015461 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000015462 },
15463
15464 {
15465 .vendor = "SyncMOS/MoselVitelic",
15466 .name = "{F,S,V}29C51002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015467 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000015468 .manufacture_id = SYNCMOS_MVC_ID,
15469 .model_id = SM_MVC_29C51002B,
15470 .total_size = 256,
15471 .page_size = 512,
15472 .feature_bits = FEATURE_EITHER_RESET,
15473 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015474 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000015475 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000015476 .block_erasers =
15477 {
15478 {
15479 .eraseblocks = { {512, 512} },
15480 .block_erase = erase_sector_jedec,
15481 }, {
15482 .eraseblocks = { {256 * 1024, 1} },
15483 .block_erase = erase_chip_block_jedec,
15484 },
15485 },
Sean Nelson35727f72010-01-28 23:55:12 +000015486 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015487 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000015488 },
15489
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015490 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000015491 .vendor = "SyncMOS/MoselVitelic",
15492 .name = "{F,S,V}29C51002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015493 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000015494 .manufacture_id = SYNCMOS_MVC_ID,
15495 .model_id = SM_MVC_29C51002T,
15496 .total_size = 256,
15497 .page_size = 512,
15498 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000015499 .tested = TEST_OK_PREW,
Mattias Mattsson4c066502010-07-29 20:01:13 +000015500 .probe = probe_jedec,
15501 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
15502 .block_erasers =
15503 {
15504 {
15505 .eraseblocks = { {512, 512} },
15506 .block_erase = erase_sector_jedec,
15507 }, {
15508 .eraseblocks = { {256 * 1024, 1} },
15509 .block_erase = erase_chip_block_jedec,
15510 },
15511 },
15512 .write = write_jedec_1,
15513 .read = read_memmapped,
15514 },
15515
15516 {
15517 .vendor = "SyncMOS/MoselVitelic",
15518 .name = "{F,S,V}29C51004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015519 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000015520 .manufacture_id = SYNCMOS_MVC_ID,
15521 .model_id = SM_MVC_29C51004B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015522 .total_size = 512,
Mattias Mattsson4c066502010-07-29 20:01:13 +000015523 .page_size = 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015524 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015525 .tested = TEST_UNTESTED,
15526 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000015527 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +000015528 .block_erasers =
15529 {
15530 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000015531 .eraseblocks = { {1024, 512} },
15532 .block_erase = erase_sector_jedec,
15533 }, {
15534 .eraseblocks = { {512 * 1024, 1} },
15535 .block_erase = erase_chip_block_jedec,
15536 },
15537 },
15538 .write = write_jedec_1,
15539 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015540 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000015541 },
15542
15543 {
15544 .vendor = "SyncMOS/MoselVitelic",
15545 .name = "{F,S,V}29C51004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015546 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000015547 .manufacture_id = SYNCMOS_MVC_ID,
15548 .model_id = SM_MVC_29C51004T,
15549 .total_size = 512,
15550 .page_size = 1024,
15551 .feature_bits = FEATURE_EITHER_RESET,
15552 .tested = TEST_UNTESTED,
15553 .probe = probe_jedec,
15554 .probe_timing = TIMING_ZERO,
15555 .block_erasers =
15556 {
15557 {
15558 .eraseblocks = { {1024, 512} },
15559 .block_erase = erase_sector_jedec,
15560 }, {
15561 .eraseblocks = { {512 * 1024, 1} },
15562 .block_erase = erase_chip_block_jedec,
15563 },
15564 },
15565 .write = write_jedec_1,
15566 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015567 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000015568 },
15569
15570 {
15571 .vendor = "SyncMOS/MoselVitelic",
15572 .name = "{S,V}29C31004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015573 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000015574 .manufacture_id = SYNCMOS_MVC_ID,
15575 .model_id = SM_MVC_29C31004B,
15576 .total_size = 512,
15577 .page_size = 1024,
15578 .feature_bits = FEATURE_EITHER_RESET,
15579 .tested = TEST_UNTESTED,
15580 .probe = probe_jedec,
15581 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
15582 .block_erasers =
15583 {
15584 {
15585 .eraseblocks = { {1024, 512} },
15586 .block_erase = erase_sector_jedec,
15587 }, {
15588 .eraseblocks = { {512 * 1024, 1} },
15589 .block_erase = erase_chip_block_jedec,
15590 },
15591 },
15592 .write = write_jedec_1,
15593 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015594 .voltage = {3000, 3600},
Mattias Mattsson4c066502010-07-29 20:01:13 +000015595 },
15596
15597 {
15598 .vendor = "SyncMOS/MoselVitelic",
15599 .name = "{S,V}29C31004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015600 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000015601 .manufacture_id = SYNCMOS_MVC_ID,
15602 .model_id = SM_MVC_29C31004T,
15603 .total_size = 512,
15604 .page_size = 1024,
15605 .feature_bits = FEATURE_EITHER_RESET,
15606 .tested = TEST_UNTESTED,
15607 .probe = probe_jedec,
15608 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
15609 .block_erasers =
15610 {
15611 {
15612 .eraseblocks = { {1024, 512} },
Sean Nelson56358aa2010-01-19 16:08:51 +000015613 .block_erase = erase_sector_jedec,
15614 }, {
15615 .eraseblocks = { {512 * 1024, 1} },
15616 .block_erase = erase_chip_block_jedec,
15617 },
15618 },
Sean Nelson35727f72010-01-28 23:55:12 +000015619 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015620 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015621 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000015622 },
15623
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015624 {
Uwe Hermanna106d152009-05-27 23:17:40 +000015625 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000015626 .name = "TMS29F002RB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015627 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000015628 .manufacture_id = TI_OLD_ID,
15629 .model_id = TI_TMS29F002RB,
15630 .total_size = 256,
15631 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000015632 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000015633 .tested = TEST_UNTESTED,
15634 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000015635 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000015636 .block_erasers =
15637 {
15638 {
15639 .eraseblocks = {
15640 {16 * 1024, 1},
15641 {8 * 1024, 2},
15642 {32 * 1024, 1},
15643 {64 * 1024, 3},
15644 },
15645 .block_erase = erase_sector_jedec,
15646 }, {
15647 .eraseblocks = { {256 * 1024, 1} },
15648 .block_erase = erase_chip_block_jedec,
15649 },
15650 },
Sean Nelson35727f72010-01-28 23:55:12 +000015651 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000015652 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015653 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000015654 },
15655
15656 {
Uwe Hermanna106d152009-05-27 23:17:40 +000015657 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000015658 .name = "TMS29F002RT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015659 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000015660 .manufacture_id = TI_OLD_ID,
15661 .model_id = TI_TMS29F002RT,
15662 .total_size = 256,
15663 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000015664 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000015665 .tested = TEST_UNTESTED,
15666 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000015667 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000015668 .block_erasers =
15669 {
15670 {
15671 .eraseblocks = {
15672 {64 * 1024, 3},
15673 {32 * 1024, 1},
15674 {8 * 1024, 2},
15675 {16 * 1024, 1},
15676 },
15677 .block_erase = erase_sector_jedec,
15678 }, {
15679 .eraseblocks = { {256 * 1024, 1} },
15680 .block_erase = erase_chip_block_jedec,
15681 },
15682 },
Sean Nelson35727f72010-01-28 23:55:12 +000015683 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000015684 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015685 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000015686 },
15687
15688 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015689 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100015690 .name = "W25P16",
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000015691 .bustype = BUS_SPI,
15692 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100015693 .model_id = WINBOND_NEX_W25P16,
15694 .total_size = 2048,
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000015695 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100015696 .feature_bits = FEATURE_WRSR_WREN,
15697 .tested = TEST_UNTESTED,
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000015698 .probe = probe_spi_rdid,
15699 .probe_timing = TIMING_ZERO,
15700 .block_erasers =
15701 {
15702 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100015703 .eraseblocks = { {64 * 1024, 32} },
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000015704 .block_erase = spi_block_erase_d8,
15705 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100015706 .eraseblocks = { {2048 * 1024, 1} },
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000015707 .block_erase = spi_block_erase_c7,
15708 }
15709 },
15710 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15711 .unlock = spi_disable_blockprotect,
Alan Green1f9cc7d2019-07-01 11:10:45 +100015712 .write = spi_chip_write_256,
15713 .read = spi_chip_read, /* Fast read (0x0B) supported */
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000015714 .voltage = {2700, 3600},
15715 },
15716
15717 {
15718 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100015719 .name = "W25P32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015720 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000015721 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100015722 .model_id = WINBOND_NEX_W25P32,
15723 .total_size = 4096,
Rudolf Marekce1c7982010-04-20 19:34:31 +000015724 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100015725 .feature_bits = FEATURE_WRSR_WREN,
15726 .tested = TEST_UNTESTED,
Rudolf Marekce1c7982010-04-20 19:34:31 +000015727 .probe = probe_spi_rdid,
15728 .probe_timing = TIMING_ZERO,
15729 .block_erasers =
15730 {
15731 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100015732 .eraseblocks = { {64 * 1024, 64} },
15733 .block_erase = spi_block_erase_d8,
Rudolf Marekce1c7982010-04-20 19:34:31 +000015734 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100015735 .eraseblocks = { {4096 * 1024, 1} },
15736 .block_erase = spi_block_erase_c7,
15737 }
15738 },
15739 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15740 .unlock = spi_disable_blockprotect,
15741 .write = spi_chip_write_256,
15742 .read = spi_chip_read, /* Fast read (0x0B) supported */
15743 .voltage = {2700, 3600},
15744 },
15745
15746 {
15747 .vendor = "Winbond",
15748 .name = "W25P80",
15749 .bustype = BUS_SPI,
15750 .manufacture_id = WINBOND_NEX_ID,
15751 .model_id = WINBOND_NEX_W25P80,
15752 .total_size = 1024,
15753 .page_size = 256,
15754 .feature_bits = FEATURE_WRSR_WREN,
15755 .tested = TEST_UNTESTED,
15756 .probe = probe_spi_rdid,
15757 .probe_timing = TIMING_ZERO,
15758 .block_erasers =
15759 {
15760 {
Rudolf Marekce1c7982010-04-20 19:34:31 +000015761 .eraseblocks = { {64 * 1024, 16} },
15762 .block_erase = spi_block_erase_d8,
15763 }, {
15764 .eraseblocks = { {1024 * 1024, 1} },
Rudolf Marekce1c7982010-04-20 19:34:31 +000015765 .block_erase = spi_block_erase_c7,
15766 }
15767 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000015768 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000015769 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000015770 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100015771 .read = spi_chip_read, /* Fast read (0x0B) supported */
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015772 .voltage = {2700, 3600},
David Hendricksc4acec92010-06-24 11:39:57 +000015773 },
15774
15775 {
15776 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015777 .name = "W25Q128.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015778 .bustype = BUS_SPI,
Antony Rheneus0fbba982011-05-26 14:28:51 +000015779 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015780 .model_id = WINBOND_NEX_W25Q128_V,
Antony Rheneus0fbba982011-05-26 14:28:51 +000015781 .total_size = 16384,
15782 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015783 /* supports SFDP */
15784 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000015785 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +000015786 .tested = TEST_OK_PREW,
Antony Rheneus0fbba982011-05-26 14:28:51 +000015787 .probe = probe_spi_rdid,
15788 .probe_timing = TIMING_ZERO,
15789 .block_erasers =
15790 {
15791 {
15792 .eraseblocks = { {4 * 1024, 4096} },
15793 .block_erase = spi_block_erase_20,
15794 }, {
15795 .eraseblocks = { {32 * 1024, 512} },
15796 .block_erase = spi_block_erase_52,
15797 }, {
15798 .eraseblocks = { {64 * 1024, 256} },
15799 .block_erase = spi_block_erase_d8,
15800 }, {
15801 .eraseblocks = { {16 * 1024 * 1024, 1} },
15802 .block_erase = spi_block_erase_60,
15803 }, {
15804 .eraseblocks = { {16 * 1024 * 1024, 1} },
15805 .block_erase = spi_block_erase_c7,
15806 }
15807 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000015808 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Antony Rheneus0fbba982011-05-26 14:28:51 +000015809 .unlock = spi_disable_blockprotect,
15810 .write = spi_chip_write_256,
15811 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015812 .voltage = {2700, 3600},
15813 },
15814
15815 {
15816 .vendor = "Winbond",
Patrick Rudolph34323492018-10-04 14:59:40 +020015817 .name = "W25Q128.V..M",
15818 .bustype = BUS_SPI,
15819 .manufacture_id = WINBOND_NEX_ID,
15820 .model_id = WINBOND_NEX_W25Q128_V_M,
15821 .total_size = 16384,
15822 .page_size = 256,
15823 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
15824 .tested = TEST_OK_PREW,
15825 .probe = probe_spi_rdid,
15826 .probe_timing = TIMING_ZERO,
15827 .block_erasers =
15828 {
15829 {
15830 .eraseblocks = { {4 * 1024, 4096} },
15831 .block_erase = spi_block_erase_20,
15832 }, {
15833 .eraseblocks = { {32 * 1024, 512} },
15834 .block_erase = spi_block_erase_52,
15835 }, {
15836 .eraseblocks = { {64 * 1024, 256} },
15837 .block_erase = spi_block_erase_d8,
15838 }, {
15839 .eraseblocks = { {16 * 1024 * 1024, 1} },
15840 .block_erase = spi_block_erase_60,
15841 }, {
15842 .eraseblocks = { {16 * 1024 * 1024, 1} },
15843 .block_erase = spi_block_erase_c7,
15844 }
15845 },
Alan Greena1fc01d2019-09-23 17:12:44 +100015846 .printlock = spi_prettyprint_status_register_plain,
Patrick Rudolph34323492018-10-04 14:59:40 +020015847 .unlock = spi_disable_blockprotect,
15848 .write = spi_chip_write_256,
15849 .read = spi_chip_read,
15850 .voltage = {2700, 3600},
15851 },
15852
15853 {
15854 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100015855 .name = "W25Q128.W",
15856 .bustype = BUS_SPI,
15857 .manufacture_id = WINBOND_NEX_ID,
15858 .model_id = WINBOND_NEX_W25Q128_W,
15859 .total_size = 16384,
15860 .page_size = 256,
15861 /* supports SFDP */
15862 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
15863 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
15864 .tested = TEST_OK_PREW,
15865 .probe = probe_spi_rdid,
15866 .probe_timing = TIMING_ZERO,
15867 .block_erasers =
15868 {
15869 {
15870 .eraseblocks = { {4 * 1024, 4096} },
15871 .block_erase = spi_block_erase_20,
15872 }, {
15873 .eraseblocks = { {32 * 1024, 512} },
15874 .block_erase = spi_block_erase_52,
15875 }, {
15876 .eraseblocks = { {64 * 1024, 256} },
15877 .block_erase = spi_block_erase_d8,
15878 }, {
15879 .eraseblocks = { {16 * 1024 * 1024, 1} },
15880 .block_erase = spi_block_erase_60,
15881 }, {
15882 .eraseblocks = { {16 * 1024 * 1024, 1} },
15883 .block_erase = spi_block_erase_c7,
15884 }
15885 },
15886 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15887 .unlock = spi_disable_blockprotect,
15888 .write = spi_chip_write_256,
15889 .read = spi_chip_read,
15890 .voltage = {1650, 1950},
15891 },
15892
15893 {
15894 .vendor = "Winbond",
15895 .name = "W25Q16.V",
15896 .bustype = BUS_SPI,
15897 .manufacture_id = WINBOND_NEX_ID,
15898 .model_id = WINBOND_NEX_W25Q16_V,
15899 .total_size = 2048,
15900 .page_size = 256,
15901 /* supports SFDP */
15902 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
15903 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
15904 .tested = TEST_OK_PREW,
15905 .probe = probe_spi_rdid,
15906 .probe_timing = TIMING_ZERO,
15907 .block_erasers =
15908 {
15909 {
15910 .eraseblocks = { {4 * 1024, 512} },
15911 .block_erase = spi_block_erase_20,
15912 }, {
15913 .eraseblocks = { {32 * 1024, 64} },
15914 .block_erase = spi_block_erase_52,
15915 }, {
15916 .eraseblocks = { {64 * 1024, 32} },
15917 .block_erase = spi_block_erase_d8,
15918 }, {
15919 .eraseblocks = { {2 * 1024 * 1024, 1} },
15920 .block_erase = spi_block_erase_60,
15921 }, {
15922 .eraseblocks = { {2 * 1024 * 1024, 1} },
15923 .block_erase = spi_block_erase_c7,
15924 }
15925 },
15926 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15927 .unlock = spi_disable_blockprotect,
15928 .write = spi_chip_write_256,
15929 .read = spi_chip_read,
15930 .voltage = {2700, 3600},
15931 },
15932
15933 {
15934 .vendor = "Winbond",
15935 .name = "W25Q16.W",
15936 .bustype = BUS_SPI,
15937 .manufacture_id = WINBOND_NEX_ID,
15938 .model_id = WINBOND_NEX_W25Q16_W,
15939 .total_size = 2048,
15940 .page_size = 256,
15941 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
15942 /* QPI enable 0x38, disable 0xFF */
15943 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
15944 .tested = TEST_UNTESTED,
15945 .probe = probe_spi_rdid,
15946 .probe_timing = TIMING_ZERO,
15947 .block_erasers =
15948 {
15949 {
15950 .eraseblocks = { {4 * 1024, 512} },
15951 .block_erase = spi_block_erase_20,
15952 }, {
15953 .eraseblocks = { {32 * 1024, 64} },
15954 .block_erase = spi_block_erase_52,
15955 }, {
15956 .eraseblocks = { {64 * 1024, 32} },
15957 .block_erase = spi_block_erase_d8,
15958 }, {
15959 .eraseblocks = { {2 * 1024 * 1024, 1} },
15960 .block_erase = spi_block_erase_60,
15961 }, {
15962 .eraseblocks = { {2 * 1024 * 1024, 1} },
15963 .block_erase = spi_block_erase_c7,
15964 }
15965 },
15966 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15967 .unlock = spi_disable_blockprotect,
15968 .write = spi_chip_write_256,
15969 .read = spi_chip_read,
15970 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
15971 },
15972
15973 {
15974 .vendor = "Winbond",
15975 .name = "W25Q20.W",
15976 .bustype = BUS_SPI,
15977 .manufacture_id = WINBOND_NEX_ID,
15978 .model_id = WINBOND_NEX_W25Q20_W,
15979 .total_size = 256,
15980 .page_size = 256,
15981 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
15982 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
15983 .tested = TEST_UNTESTED,
15984 .probe = probe_spi_rdid,
15985 .probe_timing = TIMING_ZERO,
15986 .block_erasers =
15987 {
15988 {
15989 .eraseblocks = { {4 * 1024, 64} },
15990 .block_erase = spi_block_erase_20,
15991 }, {
15992 .eraseblocks = { {32 * 1024, 8} },
15993 .block_erase = spi_block_erase_52,
15994 }, {
15995 .eraseblocks = { {64 * 1024, 4} },
15996 .block_erase = spi_block_erase_d8,
15997 }, {
15998 .eraseblocks = { {256 * 1024, 1} },
15999 .block_erase = spi_block_erase_60,
16000 }, {
16001 .eraseblocks = { {256 * 1024, 1} },
16002 .block_erase = spi_block_erase_c7,
16003 }
16004 },
16005 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16006 .unlock = spi_disable_blockprotect,
16007 .write = spi_chip_write_256,
16008 .read = spi_chip_read,
16009 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
16010 },
16011
16012 {
16013 .vendor = "Winbond",
Boris Baykovaa6c3742016-06-11 18:29:01 +020016014 .name = "W25Q256.V",
16015 .bustype = BUS_SPI,
16016 .manufacture_id = WINBOND_NEX_ID,
16017 .model_id = WINBOND_NEX_W25Q256_V,
16018 .total_size = 32768,
16019 .page_size = 256,
16020 /* supports SFDP */
16021 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
16022 /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */
Nico Huberaac81422017-11-10 22:54:13 +010016023 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_ENTER_WREN
16024 | FEATURE_4BA_EXT_ADDR | FEATURE_4BA_READ | FEATURE_4BA_FAST_READ,
Angel Pons3130cbd2018-09-30 19:32:30 +020016025 .tested = TEST_OK_PREW,
Boris Baykovaa6c3742016-06-11 18:29:01 +020016026 .probe = probe_spi_rdid,
16027 .probe_timing = TIMING_ZERO,
16028 .block_erasers =
16029 {
16030 {
16031 .eraseblocks = { {4 * 1024, 8192} },
Nico Huber7a077222017-10-14 18:18:30 +020016032 .block_erase = spi_block_erase_20,
Boris Baykovaa6c3742016-06-11 18:29:01 +020016033 }, {
16034 .eraseblocks = { {32 * 1024, 1024} },
Nico Huber7a077222017-10-14 18:18:30 +020016035 .block_erase = spi_block_erase_52,
Boris Baykovaa6c3742016-06-11 18:29:01 +020016036 }, {
16037 .eraseblocks = { {64 * 1024, 512} },
Nico Huber7a077222017-10-14 18:18:30 +020016038 .block_erase = spi_block_erase_d8,
Boris Baykovaa6c3742016-06-11 18:29:01 +020016039 }, {
16040 .eraseblocks = { {32 * 1024 * 1024, 1} },
16041 .block_erase = spi_block_erase_60,
16042 }, {
16043 .eraseblocks = { {32 * 1024 * 1024, 1} },
16044 .block_erase = spi_block_erase_c7,
16045 }
16046 },
16047 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16048 .unlock = spi_disable_blockprotect,
16049 .write = spi_chip_write_256,
16050 .read = spi_chip_read,
16051 .voltage = {2700, 3600},
16052 },
16053
16054 {
16055 .vendor = "Winbond",
David Hendricks49876792018-10-27 20:19:42 +000016056 .name = "W25Q256JV_M",
16057 .bustype = BUS_SPI,
16058 .manufacture_id = WINBOND_NEX_ID,
16059 .model_id = WINBOND_NEX_W25Q256JV_M,
16060 .total_size = 32768,
16061 .page_size = 256,
16062 /* supports SFDP */
16063 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
16064 /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */
16065 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
16066 .tested = TEST_OK_PREW,
16067 .probe = probe_spi_rdid,
16068 .probe_timing = TIMING_ZERO,
16069 .block_erasers =
16070 {
16071 {
16072 .eraseblocks = { {4 * 1024, 8192} },
16073 .block_erase = spi_block_erase_21,
16074 }, {
16075 .eraseblocks = { {4 * 1024, 8192} },
16076 .block_erase = spi_block_erase_20,
16077 }, {
16078 .eraseblocks = { {32 * 1024, 1024} },
16079 .block_erase = spi_block_erase_52,
16080 }, {
16081 .eraseblocks = { {64 * 1024, 512} },
16082 .block_erase = spi_block_erase_dc,
16083 }, {
16084 .eraseblocks = { {64 * 1024, 512} },
16085 .block_erase = spi_block_erase_d8,
16086 }, {
16087 .eraseblocks = { {32 * 1024 * 1024, 1} },
16088 .block_erase = spi_block_erase_60,
16089 }, {
16090 .eraseblocks = { {32 * 1024 * 1024, 1} },
16091 .block_erase = spi_block_erase_c7,
16092 }
16093 },
16094 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16095 .unlock = spi_disable_blockprotect,
16096 .write = spi_chip_write_256,
16097 .read = spi_chip_read,
16098 .voltage = {2700, 3600},
16099 },
16100
16101 {
16102 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100016103 .name = "W25Q32.V",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016104 .bustype = BUS_SPI,
16105 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016106 .model_id = WINBOND_NEX_W25Q32_V,
16107 .total_size = 4096,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016108 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016109 /* supports SFDP */
16110 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016111 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016112 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016113 .probe = probe_spi_rdid,
16114 .probe_timing = TIMING_ZERO,
16115 .block_erasers =
16116 {
16117 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016118 .eraseblocks = { {4 * 1024, 1024} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016119 .block_erase = spi_block_erase_20,
16120 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016121 .eraseblocks = { {32 * 1024, 128} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016122 .block_erase = spi_block_erase_52,
16123 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016124 .eraseblocks = { {64 * 1024, 64} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016125 .block_erase = spi_block_erase_d8,
16126 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016127 .eraseblocks = { {4 * 1024 * 1024, 1} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016128 .block_erase = spi_block_erase_60,
16129 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016130 .eraseblocks = { {4 * 1024 * 1024, 1} },
16131 .block_erase = spi_block_erase_c7,
16132 }
16133 },
16134 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16135 .unlock = spi_disable_blockprotect,
16136 .write = spi_chip_write_256,
16137 .read = spi_chip_read,
16138 .voltage = {2700, 3600},
16139 },
16140
16141 {
16142 .vendor = "Winbond",
16143 .name = "W25Q32.W",
16144 .bustype = BUS_SPI,
16145 .manufacture_id = WINBOND_NEX_ID,
16146 .model_id = WINBOND_NEX_W25Q32_W,
16147 .total_size = 4096,
16148 .page_size = 256,
16149 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
16150 /* QPI enable 0x38, disable 0xFF */
16151 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
16152 .tested = TEST_OK_PREW,
16153 .probe = probe_spi_rdid,
16154 .probe_timing = TIMING_ZERO,
16155 .block_erasers =
16156 {
16157 {
16158 .eraseblocks = { {4 * 1024, 1024} },
16159 .block_erase = spi_block_erase_20,
16160 }, {
16161 .eraseblocks = { {32 * 1024, 128} },
16162 .block_erase = spi_block_erase_52,
16163 }, {
16164 .eraseblocks = { {64 * 1024, 64} },
16165 .block_erase = spi_block_erase_d8,
16166 }, {
16167 .eraseblocks = { {4 * 1024 * 1024, 1} },
16168 .block_erase = spi_block_erase_60,
16169 }, {
16170 .eraseblocks = { {4 * 1024 * 1024, 1} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016171 .block_erase = spi_block_erase_c7,
16172 }
16173 },
16174 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16175 .unlock = spi_disable_blockprotect,
16176 .write = spi_chip_write_256,
16177 .read = spi_chip_read,
16178 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
16179 },
16180
16181 {
16182 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100016183 .name = "W25Q40.V",
16184 .bustype = BUS_SPI,
16185 .manufacture_id = WINBOND_NEX_ID,
16186 .model_id = WINBOND_NEX_W25Q40_V,
16187 .total_size = 512,
16188 .page_size = 256,
16189 /* supports SFDP */
16190 /* OTP: 756B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
16191 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16192 .tested = TEST_OK_PREW,
16193 .probe = probe_spi_rdid,
16194 .probe_timing = TIMING_ZERO,
16195 .block_erasers =
16196 {
16197 {
16198 .eraseblocks = { {4 * 1024, 128} },
16199 .block_erase = spi_block_erase_20,
16200 }, {
16201 .eraseblocks = { {32 * 1024, 16} },
16202 .block_erase = spi_block_erase_52,
16203 }, {
16204 .eraseblocks = { {64 * 1024, 8} },
16205 .block_erase = spi_block_erase_d8,
16206 }, {
16207 .eraseblocks = { {512 * 1024, 1} },
16208 .block_erase = spi_block_erase_60,
16209 }, {
16210 .eraseblocks = { {512 * 1024, 1} },
16211 .block_erase = spi_block_erase_c7,
16212 }
16213 },
16214 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16215 .unlock = spi_disable_blockprotect,
16216 .write = spi_chip_write_256, /* Multi I/O supported */
16217 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16218 .voltage = {2700, 3600},
16219 },
16220
16221 {
16222 .vendor = "Winbond",
Nico Huber25683572018-03-30 13:50:13 +020016223 .name = "W25Q40BW",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016224 .bustype = BUS_SPI,
16225 .manufacture_id = WINBOND_NEX_ID,
Nico Huber25683572018-03-30 13:50:13 +020016226 .model_id = WINBOND_NEX_W25Q40BW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016227 .total_size = 512,
16228 .page_size = 256,
16229 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
16230 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Angel Pons3164a0c2018-09-30 20:26:06 +020016231 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016232 .probe = probe_spi_rdid,
16233 .probe_timing = TIMING_ZERO,
16234 .block_erasers =
16235 {
16236 {
16237 .eraseblocks = { {4 * 1024, 128} },
16238 .block_erase = spi_block_erase_20,
16239 }, {
16240 .eraseblocks = { {32 * 1024, 16} },
16241 .block_erase = spi_block_erase_52,
16242 }, {
16243 .eraseblocks = { {64 * 1024, 8} },
16244 .block_erase = spi_block_erase_d8,
16245 }, {
16246 .eraseblocks = { {512 * 1024, 1} },
16247 .block_erase = spi_block_erase_60,
16248 }, {
16249 .eraseblocks = { {512 * 1024, 1} },
16250 .block_erase = spi_block_erase_c7,
16251 }
16252 },
16253 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16254 .unlock = spi_disable_blockprotect,
16255 .write = spi_chip_write_256,
16256 .read = spi_chip_read,
16257 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
16258 },
16259
16260 {
16261 .vendor = "Winbond",
Nico Huber25683572018-03-30 13:50:13 +020016262 .name = "W25Q40EW",
16263 .bustype = BUS_SPI,
16264 .manufacture_id = WINBOND_NEX_ID,
16265 .model_id = WINBOND_NEX_W25Q40EW,
16266 .total_size = 512,
16267 .page_size = 256,
16268 /* OTP: 3*256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
16269 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Alan Green07b8a172019-09-23 16:47:05 +100016270 .tested = TEST_OK_PREW,
Nico Huber25683572018-03-30 13:50:13 +020016271 .probe = probe_spi_rdid,
16272 .probe_timing = TIMING_ZERO,
16273 .block_erasers =
16274 {
16275 {
16276 .eraseblocks = { {4 * 1024, 128} },
16277 .block_erase = spi_block_erase_20,
16278 }, {
16279 .eraseblocks = { {32 * 1024, 16} },
16280 .block_erase = spi_block_erase_52,
16281 }, {
16282 .eraseblocks = { {64 * 1024, 8} },
16283 .block_erase = spi_block_erase_d8,
16284 }, {
16285 .eraseblocks = { {512 * 1024, 1} },
16286 .block_erase = spi_block_erase_60,
16287 }, {
16288 .eraseblocks = { {512 * 1024, 1} },
16289 .block_erase = spi_block_erase_c7,
16290 }
16291 },
16292 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16293 .unlock = spi_disable_blockprotect,
16294 .write = spi_chip_write_256,
16295 .read = spi_chip_read,
16296 .voltage = {1650, 1950}, /* Fast read (0x0B) and multi I/O supported */
16297 },
16298
Stanislav Sedovf5775442018-03-07 14:16:51 -080016299 {
16300 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100016301 .name = "W25Q64.V",
Stanislav Sedovf5775442018-03-07 14:16:51 -080016302 .bustype = BUS_SPI,
16303 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016304 .model_id = WINBOND_NEX_W25Q64_V,
16305 .total_size = 8192,
Stanislav Sedovf5775442018-03-07 14:16:51 -080016306 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016307 /* supports SFDP */
16308 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Stanislav Sedovf5775442018-03-07 14:16:51 -080016309 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16310 .tested = TEST_OK_PREW,
16311 .probe = probe_spi_rdid,
16312 .probe_timing = TIMING_ZERO,
16313 .block_erasers =
16314 {
16315 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016316 .eraseblocks = { {4 * 1024, 2048} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080016317 .block_erase = spi_block_erase_20,
16318 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016319 .eraseblocks = { {32 * 1024, 256} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080016320 .block_erase = spi_block_erase_52,
16321 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016322 .eraseblocks = { {64 * 1024, 128} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080016323 .block_erase = spi_block_erase_d8,
16324 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016325 .eraseblocks = { {8 * 1024 * 1024, 1} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080016326 .block_erase = spi_block_erase_60,
16327 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016328 .eraseblocks = { {8 * 1024 * 1024, 1} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080016329 .block_erase = spi_block_erase_c7,
16330 }
16331 },
16332 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16333 .unlock = spi_disable_blockprotect,
16334 .write = spi_chip_write_256,
16335 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016336 .voltage = {2700, 3600},
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016337 },
16338
16339 {
16340 .vendor = "Winbond",
16341 .name = "W25Q64.W",
16342 .bustype = BUS_SPI,
16343 .manufacture_id = WINBOND_NEX_ID,
16344 .model_id = WINBOND_NEX_W25Q64_W,
16345 .total_size = 8192,
16346 .page_size = 256,
16347 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
16348 /* QPI enable 0x38, disable 0xFF */
16349 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner0554ca52013-07-25 22:54:25 +000016350 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016351 .probe = probe_spi_rdid,
16352 .probe_timing = TIMING_ZERO,
16353 .block_erasers =
16354 {
16355 {
16356 .eraseblocks = { {4 * 1024, 2048} },
16357 .block_erase = spi_block_erase_20,
16358 }, {
16359 .eraseblocks = { {32 * 1024, 256} },
16360 .block_erase = spi_block_erase_52,
16361 }, {
16362 .eraseblocks = { {64 * 1024, 128} },
16363 .block_erase = spi_block_erase_d8,
16364 }, {
16365 .eraseblocks = { {8 * 1024 * 1024, 1} },
16366 .block_erase = spi_block_erase_60,
16367 }, {
16368 .eraseblocks = { {8 * 1024 * 1024, 1} },
16369 .block_erase = spi_block_erase_c7,
16370 }
16371 },
16372 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16373 .unlock = spi_disable_blockprotect,
16374 .write = spi_chip_write_256,
16375 .read = spi_chip_read,
16376 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
Antony Rheneus0fbba982011-05-26 14:28:51 +000016377 },
16378
16379 {
16380 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100016381 .name = "W25Q80.V",
Nico Huber70eed9f2017-04-24 22:19:27 +020016382 .bustype = BUS_SPI,
16383 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016384 .model_id = WINBOND_NEX_W25Q80_V,
16385 .total_size = 1024,
Nico Huber70eed9f2017-04-24 22:19:27 +020016386 .page_size = 256,
16387 /* supports SFDP */
16388 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Alan Green1f9cc7d2019-07-01 11:10:45 +100016389 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks48729d32017-12-08 14:44:07 -080016390 .tested = TEST_OK_PREW,
Nico Huber70eed9f2017-04-24 22:19:27 +020016391 .probe = probe_spi_rdid,
16392 .probe_timing = TIMING_ZERO,
16393 .block_erasers =
16394 {
16395 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016396 .eraseblocks = { {4 * 1024, 256} },
Nico Huber70eed9f2017-04-24 22:19:27 +020016397 .block_erase = spi_block_erase_20,
16398 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016399 .eraseblocks = { {32 * 1024, 32} },
Nico Huber70eed9f2017-04-24 22:19:27 +020016400 .block_erase = spi_block_erase_52,
16401 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016402 .eraseblocks = { {64 * 1024, 16} },
Nico Huber70eed9f2017-04-24 22:19:27 +020016403 .block_erase = spi_block_erase_d8,
16404 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016405 .eraseblocks = { {1024 * 1024, 1} },
Nico Huber70eed9f2017-04-24 22:19:27 +020016406 .block_erase = spi_block_erase_60,
16407 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016408 .eraseblocks = { {1024 * 1024, 1} },
Nico Huber70eed9f2017-04-24 22:19:27 +020016409 .block_erase = spi_block_erase_c7,
16410 }
16411 },
16412 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16413 .unlock = spi_disable_blockprotect,
16414 .write = spi_chip_write_256,
16415 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016416 .voltage = {2700, 3600},
16417 },
16418
16419 {
16420 .vendor = "Winbond",
16421 .name = "W25Q80BW",
16422 .bustype = BUS_SPI,
16423 .manufacture_id = WINBOND_NEX_ID,
16424 .model_id = WINBOND_NEX_W25Q80BW,
16425 .total_size = 1024,
16426 .page_size = 256,
16427 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
16428 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16429 .tested = TEST_OK_PREW,
16430 .probe = probe_spi_rdid,
16431 .probe_timing = TIMING_ZERO,
16432 .block_erasers =
16433 {
16434 {
16435 .eraseblocks = { {4 * 1024, 256} },
16436 .block_erase = spi_block_erase_20,
16437 }, {
16438 .eraseblocks = { {32 * 1024, 32} },
16439 .block_erase = spi_block_erase_52,
16440 }, {
16441 .eraseblocks = { {64 * 1024, 16} },
16442 .block_erase = spi_block_erase_d8,
16443 }, {
16444 .eraseblocks = { {1 * 1024 * 1024, 1} },
16445 .block_erase = spi_block_erase_60,
16446 }, {
16447 .eraseblocks = { {1 * 1024 * 1024, 1} },
16448 .block_erase = spi_block_erase_c7,
16449 }
16450 },
16451 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16452 .unlock = spi_disable_blockprotect,
16453 .write = spi_chip_write_256,
16454 .read = spi_chip_read,
16455 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
16456 },
16457
16458 {
16459 .vendor = "Winbond",
16460 .name = "W25Q80EW",
16461 .bustype = BUS_SPI,
16462 .manufacture_id = WINBOND_NEX_ID,
16463 .model_id = WINBOND_NEX_W25Q80EW,
16464 .total_size = 1024,
16465 .page_size = 256,
16466 /* OTP: 3*256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
16467 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16468 .tested = TEST_OK_PREW,
16469 .probe = probe_spi_rdid,
16470 .probe_timing = TIMING_ZERO,
16471 .block_erasers =
16472 {
16473 {
16474 .eraseblocks = { {4 * 1024, 256} },
16475 .block_erase = spi_block_erase_20,
16476 }, {
16477 .eraseblocks = { {32 * 1024, 32} },
16478 .block_erase = spi_block_erase_52,
16479 }, {
16480 .eraseblocks = { {64 * 1024, 16} },
16481 .block_erase = spi_block_erase_d8,
16482 }, {
16483 .eraseblocks = { {1 * 1024 * 1024, 1} },
16484 .block_erase = spi_block_erase_60,
16485 }, {
16486 .eraseblocks = { {1 * 1024 * 1024, 1} },
16487 .block_erase = spi_block_erase_c7,
16488 }
16489 },
16490 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16491 .unlock = spi_disable_blockprotect,
16492 .write = spi_chip_write_256,
16493 .read = spi_chip_read,
16494 .voltage = {1650, 1950}, /* Fast read (0x0B) and multi I/O supported */
Nico Huber70eed9f2017-04-24 22:19:27 +020016495 },
16496
16497 {
16498 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000016499 .name = "W25X10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016500 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016501 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016502 .model_id = WINBOND_NEX_W25X10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016503 .total_size = 128,
16504 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000016505 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +000016506 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016507 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000016508 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016509 .block_erasers =
16510 {
16511 {
16512 .eraseblocks = { {4 * 1024, 32} },
16513 .block_erase = spi_block_erase_20,
16514 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016515 .eraseblocks = { {64 * 1024, 2} },
16516 .block_erase = spi_block_erase_d8,
16517 }, {
16518 .eraseblocks = { {128 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016519 .block_erase = spi_block_erase_c7,
16520 }
16521 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000016522 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000016523 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000016524 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016525 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016526 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000016527 },
16528
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016529 {
16530 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000016531 .name = "W25X16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016532 .bustype = BUS_SPI,
Hector Martina721ae22009-07-11 19:39:11 +000016533 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016534 .model_id = WINBOND_NEX_W25X16,
Hector Martina721ae22009-07-11 19:39:11 +000016535 .total_size = 2048,
16536 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000016537 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +000016538 .tested = TEST_OK_PREW,
Hector Martina721ae22009-07-11 19:39:11 +000016539 .probe = probe_spi_rdid,
16540 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016541 .block_erasers =
16542 {
16543 {
16544 .eraseblocks = { {4 * 1024, 512} },
16545 .block_erase = spi_block_erase_20,
16546 }, {
16547 .eraseblocks = { {32 * 1024, 64} },
16548 .block_erase = spi_block_erase_52,
16549 }, {
16550 .eraseblocks = { {64 * 1024, 32} },
16551 .block_erase = spi_block_erase_d8,
16552 }, {
16553 .eraseblocks = { {2 * 1024 * 1024, 1} },
16554 .block_erase = spi_block_erase_60,
16555 }, {
16556 .eraseblocks = { {2 * 1024 * 1024, 1} },
16557 .block_erase = spi_block_erase_c7,
16558 }
16559 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000016560 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000016561 .unlock = spi_disable_blockprotect,
Hector Martina721ae22009-07-11 19:39:11 +000016562 .write = spi_chip_write_256,
16563 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016564 .voltage = {2700, 3600},
Hector Martina721ae22009-07-11 19:39:11 +000016565 },
16566
16567 {
16568 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100016569 .name = "W25X20",
16570 .bustype = BUS_SPI,
16571 .manufacture_id = WINBOND_NEX_ID,
16572 .model_id = WINBOND_NEX_W25X20,
16573 .total_size = 256,
16574 .page_size = 256,
16575 .feature_bits = FEATURE_WRSR_WREN,
16576 .tested = TEST_OK_PREW,
16577 .probe = probe_spi_rdid,
16578 .probe_timing = TIMING_ZERO,
16579 .block_erasers =
16580 {
16581 {
16582 .eraseblocks = { {4 * 1024, 64} },
16583 .block_erase = spi_block_erase_20,
16584 }, {
16585 .eraseblocks = { {64 * 1024, 4} },
16586 .block_erase = spi_block_erase_d8,
16587 }, {
16588 .eraseblocks = { {256 * 1024, 1} },
16589 .block_erase = spi_block_erase_c7,
16590 }
16591 },
16592 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16593 .unlock = spi_disable_blockprotect,
16594 .write = spi_chip_write_256,
16595 .read = spi_chip_read,
16596 .voltage = {2700, 3600},
16597 },
16598
16599 {
16600 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000016601 .name = "W25X32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016602 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000016603 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016604 .model_id = WINBOND_NEX_W25X32,
Zheng Bao1db2b752009-11-26 11:05:01 +000016605 .total_size = 4096,
16606 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000016607 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000016608 .tested = TEST_OK_PREW,
Zheng Bao1db2b752009-11-26 11:05:01 +000016609 .probe = probe_spi_rdid,
16610 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016611 .block_erasers =
16612 {
16613 {
16614 .eraseblocks = { {4 * 1024, 1024} },
16615 .block_erase = spi_block_erase_20,
16616 }, {
16617 .eraseblocks = { {32 * 1024, 128} },
16618 .block_erase = spi_block_erase_52,
16619 }, {
16620 .eraseblocks = { {64 * 1024, 64} },
16621 .block_erase = spi_block_erase_d8,
16622 }, {
16623 .eraseblocks = { {4 * 1024 * 1024, 1} },
16624 .block_erase = spi_block_erase_60,
16625 }, {
16626 .eraseblocks = { {4 * 1024 * 1024, 1} },
16627 .block_erase = spi_block_erase_c7,
16628 }
16629 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000016630 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000016631 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000016632 .write = spi_chip_write_256,
16633 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016634 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000016635 },
16636
16637 {
16638 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100016639 .name = "W25X40",
16640 .bustype = BUS_SPI,
16641 .manufacture_id = WINBOND_NEX_ID,
16642 .model_id = WINBOND_NEX_W25X40,
16643 .total_size = 512,
16644 .page_size = 256,
16645 .feature_bits = FEATURE_WRSR_WREN,
16646 .tested = TEST_OK_PREW,
16647 .probe = probe_spi_rdid,
16648 .probe_timing = TIMING_ZERO,
16649 .block_erasers =
16650 {
16651 {
16652 .eraseblocks = { {4 * 1024, 128} },
16653 .block_erase = spi_block_erase_20,
16654 }, {
16655 .eraseblocks = { {64 * 1024, 8} },
16656 .block_erase = spi_block_erase_d8,
16657 }, {
16658 .eraseblocks = { {512 * 1024, 1} },
16659 .block_erase = spi_block_erase_c7,
16660 }
16661 },
16662 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16663 .unlock = spi_disable_blockprotect,
16664 .write = spi_chip_write_256,
16665 .read = spi_chip_read,
16666 .voltage = {2700, 3600},
16667 },
16668
16669 {
16670 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000016671 .name = "W25X64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016672 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000016673 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016674 .model_id = WINBOND_NEX_W25X64,
Zheng Bao1db2b752009-11-26 11:05:01 +000016675 .total_size = 8192,
16676 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000016677 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000016678 .tested = TEST_OK_PREW,
Zheng Bao1db2b752009-11-26 11:05:01 +000016679 .probe = probe_spi_rdid,
16680 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016681 .block_erasers =
16682 {
16683 {
16684 .eraseblocks = { {4 * 1024, 2048} },
16685 .block_erase = spi_block_erase_20,
16686 }, {
16687 .eraseblocks = { {32 * 1024, 256} },
16688 .block_erase = spi_block_erase_52,
16689 }, {
16690 .eraseblocks = { {64 * 1024, 128} },
16691 .block_erase = spi_block_erase_d8,
16692 }, {
16693 .eraseblocks = { {8 * 1024 * 1024, 1} },
16694 .block_erase = spi_block_erase_60,
16695 }, {
16696 .eraseblocks = { {8 * 1024 * 1024, 1} },
16697 .block_erase = spi_block_erase_c7,
16698 }
16699 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000016700 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000016701 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000016702 .write = spi_chip_write_256,
16703 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016704 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000016705 },
16706
16707 {
Alan Greenfa3fcd32019-06-27 15:41:50 +100016708 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100016709 .name = "W25X80",
Alan Greenfa3fcd32019-06-27 15:41:50 +100016710 .bustype = BUS_SPI,
16711 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016712 .model_id = WINBOND_NEX_W25X80,
Alan Greenfa3fcd32019-06-27 15:41:50 +100016713 .total_size = 1024,
16714 .page_size = 256,
16715 .feature_bits = FEATURE_WRSR_WREN,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016716 .tested = TEST_OK_PREW,
Alan Greenfa3fcd32019-06-27 15:41:50 +100016717 .probe = probe_spi_rdid,
16718 .probe_timing = TIMING_ZERO,
16719 .block_erasers =
David Hendricksc9ee0ed2018-02-11 17:40:53 -080016720 {
16721 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016722 .eraseblocks = { {4 * 1024, 256} },
16723 .block_erase = spi_block_erase_20,
16724 }, {
David Hendricksc9ee0ed2018-02-11 17:40:53 -080016725 .eraseblocks = { {64 * 1024, 16} },
16726 .block_erase = spi_block_erase_d8,
16727 }, {
16728 .eraseblocks = { {1024 * 1024, 1} },
16729 .block_erase = spi_block_erase_c7,
16730 }
16731 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100016732 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16733 .unlock = spi_disable_blockprotect,
16734 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016735 .read = spi_chip_read,
Alan Greenfa3fcd32019-06-27 15:41:50 +100016736 .voltage = {2700, 3600},
David Hendricksc9ee0ed2018-02-11 17:40:53 -080016737 },
16738
Alan Greenf29ea362019-06-27 17:14:02 +100016739 /* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */
16740 {
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000016741 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000016742 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016743 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016744 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016745 .model_id = WINBOND_W29C010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016746 .total_size = 128,
16747 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000016748 .feature_bits = FEATURE_LONG_RESET,
David Hendricks567b7b82011-05-18 01:31:03 +000016749 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016750 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000016751 .probe_timing = 10, /* used datasheet for the W29C011A */
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016752 .block_erasers =
16753 {
16754 {
16755 .eraseblocks = { {128 * 1024, 1} },
16756 .block_erase = erase_chip_block_jedec,
16757 }
16758 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016759 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016760 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000016761 },
16762
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016763 {
16764 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100016765 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old",
16766 .bustype = BUS_PARALLEL,
16767 .manufacture_id = WINBOND_ID,
16768 .model_id = WINBOND_W29C010,
16769 .total_size = 128,
16770 .page_size = 128,
16771 .feature_bits = FEATURE_LONG_RESET,
16772 .tested = TEST_OK_PREW,
16773 .probe = probe_w29ee011,
16774 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */
16775 .block_erasers =
16776 {
16777 {
16778 .eraseblocks = { {128 * 1024, 1} },
16779 .block_erase = erase_chip_block_jedec,
16780 }
16781 },
16782 .write = write_jedec,
16783 .read = read_memmapped,
16784 },
16785
16786 {
16787 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000016788 .name = "W29C020(C)/W29C022",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016789 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016790 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016791 .model_id = WINBOND_W29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016792 .total_size = 256,
16793 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000016794 .feature_bits = FEATURE_LONG_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000016795 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016796 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000016797 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016798 .block_erasers =
16799 {
16800 {
16801 .eraseblocks = { {256 * 1024, 1} },
16802 .block_erase = erase_chip_block_jedec,
16803 }
16804 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016805 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016806 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016807 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000016808 },
16809
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016810 {
16811 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000016812 .name = "W29C040/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016813 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016814 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016815 .model_id = WINBOND_W29C040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016816 .total_size = 512,
16817 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000016818 .feature_bits = FEATURE_LONG_RESET,
16819 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016820 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000016821 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016822 .block_erasers =
16823 {
16824 {
16825 .eraseblocks = { {512 * 1024, 1} },
16826 .block_erase = erase_chip_block_jedec,
16827 }
16828 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016829 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016830 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016831 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000016832 },
16833
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016834 {
16835 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100016836 .name = "W29C512A/W29EE512",
16837 .bustype = BUS_PARALLEL,
16838 .manufacture_id = WINBOND_ID,
16839 .model_id = WINBOND_W29C512A,
16840 .total_size = 64,
16841 .page_size = 128,
16842 .feature_bits = FEATURE_LONG_RESET,
16843 .tested = TEST_OK_PREW,
16844 .probe = probe_jedec,
16845 .probe_timing = 10,
16846 .block_erasers =
16847 {
16848 {
16849 .eraseblocks = { {64 * 1024, 1} },
16850 .block_erase = erase_chip_block_jedec,
16851 }
16852 },
16853 .write = write_jedec,
16854 .read = read_memmapped,
16855 .voltage = {4500, 5500},
16856 },
16857
16858 {
16859 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000016860 .name = "W29GL032CB",
16861 .bustype = BUS_PARALLEL,
16862 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
16863 .model_id = WINBOND_W29GL032CB,
16864 .total_size = 4096,
16865 .page_size = 128 * 1024, /* actual page size is 16 */
16866 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
16867 .tested = TEST_UNTESTED,
16868 .probe = probe_jedec_29gl,
16869 .probe_timing = TIMING_ZERO,
16870 .block_erasers =
16871 {
16872 {
16873 .eraseblocks = {
16874 {8 * 1024, 8},
16875 {64 * 1024, 63},
16876 },
16877 .block_erase = erase_sector_jedec,
16878 }, {
16879 .eraseblocks = { {4 * 1024 * 1024, 1} },
16880 .block_erase = erase_chip_block_jedec,
16881 },
16882 },
16883 .write = write_jedec_1,
16884 .read = read_memmapped,
16885 .voltage = {2700, 3600},
16886 },
16887
16888 {
16889 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100016890 .name = "W29GL032CH/L",
16891 .bustype = BUS_PARALLEL,
16892 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
16893 .model_id = WINBOND_W29GL032CHL,
16894 .total_size = 4096,
16895 .page_size = 128 * 1024, /* actual page size is 16 */
16896 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
16897 .tested = TEST_UNTESTED,
16898 .probe = probe_jedec_29gl,
16899 .probe_timing = TIMING_ZERO,
16900 .block_erasers =
16901 {
16902 {
16903 .eraseblocks = { {64 * 1024, 64} },
16904 .block_erase = erase_sector_jedec,
16905 }, {
16906 .eraseblocks = { {4 * 1024 * 1024, 1} },
16907 .block_erase = erase_chip_block_jedec,
16908 },
16909 },
16910 .write = write_jedec_1,
16911 .read = read_memmapped,
16912 .voltage = {2700, 3600},
16913 },
16914
16915 {
16916 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000016917 .name = "W29GL032CT",
16918 .bustype = BUS_PARALLEL,
16919 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
16920 .model_id = WINBOND_W29GL032CT,
16921 .total_size = 4096,
16922 .page_size = 128 * 1024, /* actual page size is 16 */
16923 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
16924 .tested = TEST_UNTESTED,
16925 .probe = probe_jedec_29gl,
16926 .probe_timing = TIMING_ZERO,
16927 .block_erasers =
16928 {
16929 {
16930 .eraseblocks = {
16931 {64 * 1024, 63},
16932 {8 * 1024, 8},
16933 },
16934 .block_erase = erase_sector_jedec,
16935 }, {
16936 .eraseblocks = { {4 * 1024 * 1024, 1} },
16937 .block_erase = erase_chip_block_jedec,
16938 },
16939 },
16940 .write = write_jedec_1,
16941 .read = read_memmapped,
16942 .voltage = {2700, 3600},
16943 },
16944
16945 {
16946 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000016947 .name = "W29GL064CB",
16948 .bustype = BUS_PARALLEL,
16949 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
16950 .model_id = WINBOND_W29GL064CB,
16951 .total_size = 8192,
16952 .page_size = 128 * 1024, /* actual page size is 16 */
16953 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
16954 .tested = TEST_UNTESTED,
16955 .probe = probe_jedec_29gl,
16956 .probe_timing = TIMING_ZERO,
16957 .block_erasers =
16958 {
16959 {
16960 .eraseblocks = {
16961 {8 * 1024, 8},
16962 {64 * 1024, 127},
16963 },
16964 .block_erase = erase_sector_jedec,
16965 }, {
16966 .eraseblocks = { {8 * 1024 * 1024, 1} },
16967 .block_erase = erase_chip_block_jedec,
16968 },
16969 },
16970 .write = write_jedec_1,
16971 .read = read_memmapped,
16972 .voltage = {2700, 3600},
16973 },
16974
16975 {
16976 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100016977 .name = "W29GL064CH/L",
16978 .bustype = BUS_PARALLEL,
16979 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
16980 .model_id = WINBOND_W29GL064CHL,
16981 .total_size = 8192,
16982 .page_size = 128 * 1024, /* actual page size is 16 */
16983 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
16984 .tested = TEST_UNTESTED,
16985 .probe = probe_jedec_29gl,
16986 .probe_timing = TIMING_ZERO,
16987 .block_erasers =
16988 {
16989 {
16990 .eraseblocks = { {64 * 1024, 128} },
16991 .block_erase = erase_sector_jedec,
16992 }, {
16993 .eraseblocks = { {8 * 1024 * 1024, 1} },
16994 .block_erase = erase_chip_block_jedec,
16995 },
16996 },
16997 .write = write_jedec_1,
16998 .read = read_memmapped,
16999 .voltage = {2700, 3600},
17000 },
17001
17002 {
17003 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000017004 .name = "W29GL064CT",
17005 .bustype = BUS_PARALLEL,
17006 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
17007 .model_id = WINBOND_W29GL064CT,
17008 .total_size = 8192,
17009 .page_size = 128 * 1024, /* actual page size is 16 */
17010 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
17011 .tested = TEST_UNTESTED,
17012 .probe = probe_jedec_29gl,
17013 .probe_timing = TIMING_ZERO,
17014 .block_erasers =
17015 {
17016 {
17017 .eraseblocks = {
17018 {64 * 1024, 127},
17019 {8 * 1024, 8},
17020 },
17021 .block_erase = erase_sector_jedec,
17022 }, {
17023 .eraseblocks = { {8 * 1024 * 1024, 1} },
17024 .block_erase = erase_chip_block_jedec,
17025 },
17026 },
17027 .write = write_jedec_1,
17028 .read = read_memmapped,
17029 .voltage = {2700, 3600},
17030 },
17031
17032 {
17033 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000017034 .name = "W29GL128C",
17035 .bustype = BUS_PARALLEL,
17036 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
17037 .model_id = WINBOND_W29GL128CHL,
17038 .total_size = 16384,
17039 .page_size = 128 * 1024, /* actual page size is 16 */
17040 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
17041 .tested = TEST_UNTESTED,
17042 .probe = probe_jedec_29gl,
17043 .probe_timing = TIMING_ZERO,
17044 .block_erasers =
17045 {
17046 {
17047 .eraseblocks = { {128 * 1024, 128} },
17048 .block_erase = erase_sector_jedec,
17049 }, {
17050 .eraseblocks = { {16 * 1024 * 1024, 1} },
17051 .block_erase = erase_chip_block_jedec,
17052 },
17053 },
17054 .write = write_jedec_1,
17055 .read = read_memmapped,
17056 .voltage = {2700, 3600},
17057 },
17058
17059 {
17060 .vendor = "Winbond",
Kyösti Mälkkic31243e2012-10-28 01:50:08 +000017061 .name = "W39F010",
17062 .bustype = BUS_PARALLEL,
17063 .manufacture_id = WINBOND_ID,
17064 .model_id = WINBOND_W39F010,
17065 .total_size = 128,
17066 .page_size = 4 * 1024,
17067 .feature_bits = FEATURE_EITHER_RESET,
17068 .tested = TEST_OK_PREW,
17069 .probe = probe_jedec,
17070 .probe_timing = 10,
17071 .block_erasers =
17072 {
17073 {
17074 .eraseblocks = { {4 * 1024, 32} },
17075 .block_erase = erase_block_jedec,
17076 }, {
17077 .eraseblocks = { {128 * 1024, 1} },
17078 .block_erase = erase_chip_block_jedec,
17079 }
17080 },
17081 .printlock = printlock_w39f010,
17082 .write = write_jedec_1,
17083 .read = read_memmapped,
17084 .voltage = {4500, 5500},
17085 },
17086
17087 {
17088 .vendor = "Winbond",
17089 .name = "W39L010",
17090 .bustype = BUS_PARALLEL,
17091 .manufacture_id = WINBOND_ID,
17092 .model_id = WINBOND_W39L010,
17093 .total_size = 128,
17094 .page_size = 4 * 1024,
17095 .feature_bits = FEATURE_EITHER_RESET,
17096 .tested = TEST_UNTESTED,
17097 .probe = probe_jedec,
17098 .probe_timing = 10,
17099 .block_erasers =
17100 {
17101 {
17102 .eraseblocks = { {4 * 1024, 32} },
17103 .block_erase = erase_block_jedec,
17104 }, {
17105 .eraseblocks = { {128 * 1024, 1} },
17106 .block_erase = erase_chip_block_jedec,
17107 }
17108 },
17109 .printlock = printlock_w39l010,
17110 .write = write_jedec_1,
17111 .read = read_memmapped,
17112 .voltage = {3000, 3600},
17113 },
17114
17115 {
17116 .vendor = "Winbond",
17117 .name = "W39L020",
17118 .bustype = BUS_PARALLEL,
17119 .manufacture_id = WINBOND_ID,
17120 .model_id = WINBOND_W39L020,
17121 .total_size = 256,
17122 .page_size = 4 * 1024,
17123 .feature_bits = FEATURE_EITHER_RESET,
17124 .tested = TEST_UNTESTED,
17125 .probe = probe_jedec,
17126 .probe_timing = 10,
17127 .block_erasers =
17128 {
17129 {
17130 .eraseblocks = { {4 * 1024, 64} },
17131 .block_erase = erase_block_jedec,
17132 }, {
17133 .eraseblocks = { {64 * 1024, 4} },
17134 .block_erase = erase_sector_jedec,
17135 }, {
17136 .eraseblocks = { {256 * 1024, 1} },
17137 .block_erase = erase_chip_block_jedec,
17138 }
17139 },
17140 .printlock = printlock_w39l020,
17141 .write = write_jedec_1,
17142 .read = read_memmapped,
17143 .voltage = {3000, 3600},
17144 },
17145
17146 {
17147 .vendor = "Winbond",
Michael Karcher19e0aac2011-03-06 17:58:05 +000017148 .name = "W39L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017149 .bustype = BUS_PARALLEL,
Michael Karcher19e0aac2011-03-06 17:58:05 +000017150 .manufacture_id = WINBOND_ID,
17151 .model_id = WINBOND_W39L040,
17152 .total_size = 512,
17153 .page_size = 64 * 1024,
17154 .feature_bits = FEATURE_EITHER_RESET,
17155 .tested = TEST_OK_PR,
17156 .probe = probe_jedec,
17157 .probe_timing = 10,
17158 .block_erasers =
17159 {
17160 {
17161 .eraseblocks = { {4 * 1024, 128} },
17162 .block_erase = erase_block_jedec,
17163 }, {
17164 .eraseblocks = { {64 * 1024, 8} },
17165 .block_erase = erase_sector_jedec,
17166 }, {
17167 .eraseblocks = { {512 * 1024, 1} },
17168 .block_erase = erase_chip_block_jedec,
17169 }
17170 },
17171 .printlock = printlock_w39l040,
17172 .write = write_jedec_1,
17173 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000017174 .voltage = {3000, 3600},
Michael Karcher19e0aac2011-03-06 17:58:05 +000017175 },
17176
17177 {
17178 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017179 .name = "W39V040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017180 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017181 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017182 .model_id = WINBOND_W39V040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017183 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000017184 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000017185 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000017186 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017187 .probe = probe_jedec,
Stefan Tauner716e0982011-07-25 20:38:52 +000017188 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017189 .block_erasers =
17190 {
17191 {
17192 .eraseblocks = { {64 * 1024, 8} },
17193 .block_erase = erase_sector_jedec,
17194 }, {
17195 .eraseblocks = { {512 * 1024, 1} },
17196 .block_erase = erase_chip_block_jedec,
17197 }
17198 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017199 .printlock = printlock_w39v040a,
Sean Nelson35727f72010-01-28 23:55:12 +000017200 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017201 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017202 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000017203 },
17204
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017205 {
17206 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017207 .name = "W39V040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017208 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017209 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017210 .model_id = WINBOND_W39V040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017211 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000017212 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000017213 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000017214 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017215 .probe = probe_jedec,
Paul Menzel018d4822011-10-21 12:33:07 +000017216 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017217 .block_erasers =
17218 {
17219 {
17220 .eraseblocks = { {64 * 1024, 8} },
17221 .block_erase = erase_sector_jedec,
17222 }, {
17223 .eraseblocks = { {512 * 1024, 1} },
17224 .block_erase = erase_chip_block_jedec,
17225 }
17226 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017227 .printlock = printlock_w39v040b,
Sean Nelson35727f72010-01-28 23:55:12 +000017228 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017229 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017230 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000017231 },
17232
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017233 {
17234 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017235 .name = "W39V040C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017236 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017237 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017238 .model_id = WINBOND_W39V040C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017239 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000017240 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000017241 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000017242 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +000017243 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017244 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017245 .block_erasers =
17246 {
17247 {
17248 .eraseblocks = { {64 * 1024, 8} },
17249 .block_erase = erase_sector_jedec,
17250 }, {
17251 .eraseblocks = { {512 * 1024, 1} },
17252 .block_erase = erase_chip_block_jedec,
17253 }
17254 },
Sean Nelson6e0b9122010-02-19 00:52:10 +000017255 .printlock = printlock_w39v040c,
Sean Nelson35727f72010-01-28 23:55:12 +000017256 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017257 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017258 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000017259 },
17260
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017261 {
17262 .vendor = "Winbond",
17263 .name = "W39V040FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017264 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017265 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017266 .model_id = WINBOND_W39V040FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017267 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000017268 .page_size = 64 * 1024,
Michael Karcherc9b63412010-05-30 16:55:18 +000017269 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner23e10b82016-01-23 16:16:49 +000017270 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017271 .probe = probe_jedec,
Antony Rheneus0fbba982011-05-26 14:28:51 +000017272 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017273 .block_erasers =
17274 {
17275 {
17276 .eraseblocks = { {4 * 1024, 128} },
17277 .block_erase = erase_block_jedec,
17278 }, {
17279 .eraseblocks = { {64 * 1024, 8} },
17280 .block_erase = erase_sector_jedec,
17281 }, {
17282 .eraseblocks = { {512 * 1024, 1} },
17283 .block_erase = erase_chip_block_jedec,
17284 }
17285 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017286 .printlock = printlock_w39v040fa,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000017287 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000017288 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017289 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017290 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000017291 },
17292
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017293 {
17294 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017295 .name = "W39V040FB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017296 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017297 .manufacture_id = WINBOND_ID,
17298 .model_id = WINBOND_W39V040B,
17299 .total_size = 512,
17300 .page_size = 64 * 1024,
17301 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner0be072c2016-03-13 15:16:30 +000017302 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017303 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000017304 .probe_timing = 10,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017305 .block_erasers =
17306 {
17307 {
17308 .eraseblocks = { {64 * 1024, 8} },
17309 .block_erase = erase_sector_jedec,
17310 }, {
17311 .eraseblocks = { {512 * 1024, 1} },
17312 .block_erase = erase_chip_block_jedec,
17313 }
17314 },
17315 .printlock = printlock_w39v040fb,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000017316 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017317 .write = write_jedec_1,
17318 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000017319 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017320 },
17321
17322 {
17323 .vendor = "Winbond",
17324 .name = "W39V040FC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017325 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017326 .manufacture_id = WINBOND_ID,
17327 .model_id = WINBOND_W39V040C,
17328 .total_size = 512,
17329 .page_size = 64 * 1024,
17330 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +000017331 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017332 .probe = probe_jedec,
17333 .probe_timing = 10,
17334 .block_erasers =
17335 {
17336 {
17337 .eraseblocks = { {64 * 1024, 8} },
17338 .block_erase = erase_sector_jedec,
17339 }, {
17340 .eraseblocks = { {512 * 1024, 1} },
17341 .block_erase = erase_chip_block_jedec,
17342 }
17343 },
17344 .printlock = printlock_w39v040fc,
17345 .write = write_jedec_1,
17346 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000017347 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017348 },
17349
17350 {
17351 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017352 .name = "W39V080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017353 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017354 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017355 .model_id = WINBOND_W39V080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017356 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000017357 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000017358 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +000017359 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017360 .probe = probe_jedec,
Paul Menzelac427b22012-02-16 21:07:07 +000017361 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017362 .block_erasers =
17363 {
17364 {
17365 .eraseblocks = { {64 * 1024, 16} },
17366 .block_erase = erase_sector_jedec,
17367 }, {
17368 .eraseblocks = { {1024 * 1024, 1} },
17369 .block_erase = erase_chip_block_jedec,
17370 }
17371 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017372 .printlock = printlock_w39v080a,
Sean Nelson35727f72010-01-28 23:55:12 +000017373 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017374 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017375 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000017376 },
17377
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017378 {
17379 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017380 .name = "W39V080FA",
17381 .bustype = BUS_FWH,
17382 .manufacture_id = WINBOND_ID,
17383 .model_id = WINBOND_W39V080FA,
17384 .total_size = 1024,
17385 .page_size = 64 * 1024,
17386 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
17387 .tested = TEST_OK_PREW,
17388 .probe = probe_jedec,
17389 .probe_timing = 10,
17390 .block_erasers =
17391 {
17392 {
17393 .eraseblocks = { {64 * 1024, 16} },
17394 .block_erase = erase_sector_jedec,
17395 }, {
17396 .eraseblocks = { {1024 * 1024, 1} },
17397 .block_erase = erase_chip_block_jedec,
17398 }
17399 },
17400 .printlock = printlock_w39v080fa,
17401 .unlock = unlock_regspace2_uniform_64k,
17402 .write = write_jedec_1,
17403 .read = read_memmapped,
17404 .voltage = {3000, 3600}, /* Also has 12V fast program */
17405 },
17406
17407 {
17408 .vendor = "Winbond",
17409 .name = "W39V080FA (dual mode)",
17410 .bustype = BUS_FWH,
17411 .manufacture_id = WINBOND_ID,
17412 .model_id = WINBOND_W39V080FA_DM,
17413 .total_size = 512,
17414 .page_size = 64 * 1024,
17415 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
17416 .tested = TEST_UNTESTED,
17417 .probe = probe_jedec,
17418 .probe_timing = 10,
17419 .block_erasers =
17420 {
17421 {
17422 .eraseblocks = { {64 * 1024, 8} },
17423 .block_erase = erase_sector_jedec,
17424 }, {
17425 .eraseblocks = { {512 * 1024, 1} },
17426 .block_erase = erase_chip_block_jedec,
17427 }
17428 },
17429 .printlock = printlock_w39v080fa_dual,
17430 .write = write_jedec_1,
17431 .read = read_memmapped,
17432 .voltage = {3000, 3600}, /* Also has 12V fast program */
17433 },
17434
17435 {
17436 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000017437 .name = "W49F002U/N",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017438 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017439 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017440 .model_id = WINBOND_W49F002U,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017441 .total_size = 256,
17442 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000017443 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000017444 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017445 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000017446 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017447 .block_erasers =
17448 {
17449 {
17450 .eraseblocks = {
17451 {128 * 1024, 1},
17452 {96 * 1024, 1},
17453 {8 * 1024, 2},
17454 {16 * 1024, 1},
17455 },
17456 .block_erase = erase_sector_jedec,
17457 }, {
17458 .eraseblocks = { {256 * 1024, 1} },
17459 .block_erase = erase_chip_block_jedec,
17460 }
17461 },
Sean Nelson35727f72010-01-28 23:55:12 +000017462 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017463 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017464 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000017465 },
17466
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017467 {
17468 .vendor = "Winbond",
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000017469 .name = "W49F020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017470 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000017471 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017472 .model_id = WINBOND_W49F020,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000017473 .total_size = 256,
17474 .page_size = 128,
17475 .feature_bits = FEATURE_EITHER_RESET,
17476 .tested = TEST_OK_PROBE,
17477 .probe = probe_jedec,
17478 .probe_timing = 10,
17479 .block_erasers =
17480 {
17481 {
17482 .eraseblocks = { {256 * 1024, 1} },
17483 .block_erase = erase_chip_block_jedec,
17484 }
17485 },
17486 .write = write_jedec_1,
17487 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017488 .voltage = {4500, 5500},
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000017489 },
17490
17491 {
17492 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017493 .name = "W49V002A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017494 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017495 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017496 .model_id = WINBOND_W49V002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017497 .total_size = 256,
17498 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000017499 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000017500 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017501 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000017502 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017503 .block_erasers =
17504 {
17505 {
17506 .eraseblocks = {
17507 {64 * 1024, 3},
17508 {32 * 1024, 1},
17509 {8 * 1024, 2},
17510 {16 * 1024, 1},
17511 },
17512 .block_erase = erase_sector_jedec,
17513 }, {
17514 .eraseblocks = { {256 * 1024, 1} },
17515 .block_erase = erase_chip_block_jedec,
17516 }
17517 },
Sean Nelson35727f72010-01-28 23:55:12 +000017518 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017519 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017520 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000017521 },
17522
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017523 {
17524 .vendor = "Winbond",
17525 .name = "W49V002FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017526 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017527 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017528 .model_id = WINBOND_W49V002FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017529 .total_size = 256,
17530 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000017531 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000017532 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017533 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000017534 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017535 .block_erasers =
17536 {
17537 {
17538 .eraseblocks = {
17539 {64 * 1024, 3},
17540 {32 * 1024, 1},
17541 {8 * 1024, 2},
17542 {16 * 1024, 1},
17543 },
17544 .block_erase = erase_sector_jedec,
17545 }, {
17546 .eraseblocks = { {256 * 1024, 1} },
17547 .block_erase = erase_chip_block_jedec,
17548 }
17549 },
Sean Nelson35727f72010-01-28 23:55:12 +000017550 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017551 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017552 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000017553 },
17554
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017555 {
Alan Greenfa3fcd32019-06-27 15:41:50 +100017556 .vendor = "Zetta Device",
17557 .name = "ZD25D20",
17558 .bustype = BUS_SPI,
17559 .manufacture_id = ZETTADEVICE_ID,
17560 .model_id = ZETTADEVICE_ZD25D20,
17561 .total_size = 256,
17562 .page_size = 256,
17563 .feature_bits = FEATURE_WRSR_WREN,
17564 .tested = TEST_UNTESTED,
17565 .probe = probe_spi_rdid,
17566 .probe_timing = TIMING_ZERO,
17567 .block_erasers =
David Hendricksa72d5a92018-02-11 17:58:44 -080017568 {
17569 {
17570 .eraseblocks = { {4 * 1024, 64} },
17571 .block_erase = spi_block_erase_20,
17572 }, {
17573 .eraseblocks = { {32 * 1024, 8} },
17574 .block_erase = spi_block_erase_52,
17575 }, {
17576 .eraseblocks = { {64 * 1024, 4} },
17577 .block_erase = spi_block_erase_d8,
17578 }, {
17579 .eraseblocks = { {256 * 1024, 1} },
17580 .block_erase = spi_block_erase_60,
17581 }, {
17582 .eraseblocks = { {256 * 1024, 1} },
17583 .block_erase = spi_block_erase_c7,
17584 }
17585 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100017586 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17587 .unlock = spi_disable_blockprotect,
17588 .write = spi_chip_write_256,
17589 .read = spi_chip_read,
17590 .voltage = {2700, 3600},
David Hendricksa72d5a92018-02-11 17:58:44 -080017591 },
17592
17593 {
Alan Greenfa3fcd32019-06-27 15:41:50 +100017594 .vendor = "Zetta Device",
17595 .name = "ZD25D40",
17596 .bustype = BUS_SPI,
17597 .manufacture_id = ZETTADEVICE_ID,
17598 .model_id = ZETTADEVICE_ZD25D40,
17599 .total_size = 512,
17600 .page_size = 256,
17601 .feature_bits = FEATURE_WRSR_WREN,
17602 .tested = TEST_UNTESTED,
17603 .probe = probe_spi_rdid,
17604 .probe_timing = TIMING_ZERO,
17605 .block_erasers =
nybashcbb46e22018-02-11 17:53:49 -080017606 {
17607 {
17608 .eraseblocks = { {4 * 1024, 128} },
17609 .block_erase = spi_block_erase_20,
17610 }, {
17611 .eraseblocks = { {32 * 1024, 16} },
17612 .block_erase = spi_block_erase_52,
17613 }, {
17614 .eraseblocks = { {64 * 1024, 8} },
17615 .block_erase = spi_block_erase_d8,
17616 }, {
17617 .eraseblocks = { {512 * 1024, 1} },
17618 .block_erase = spi_block_erase_60,
17619 }, {
17620 .eraseblocks = { {512 * 1024, 1} },
17621 .block_erase = spi_block_erase_c7,
17622 }
17623 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100017624 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17625 .unlock = spi_disable_blockprotect,
17626 .write = spi_chip_write_256,
17627 .read = spi_chip_read,
17628 .voltage = {2700, 3600},
nybashcbb46e22018-02-11 17:53:49 -080017629 },
17630
Stefan Taunerac1b4c82012-02-17 14:51:04 +000017631 {
Alan Greendd592202019-08-23 10:11:37 +100017632 .vendor = "Unknown",
17633 .name = "SFDP-capable chip",
17634 .bustype = BUS_SPI,
17635 .manufacture_id = GENERIC_MANUF_ID,
17636 .model_id = SFDP_DEVICE_ID,
17637 .total_size = 0, /* set by probing function */
17638 .page_size = 0, /* set by probing function */
17639 .feature_bits = 0, /* set by probing function */
17640 /* We present our own "report this" text hence we do not */
17641 /* want the default "This flash part has status UNTESTED..." */
17642 /* text to be printed. */
17643 .tested = TEST_OK_PREW,
17644 .probe = probe_spi_sfdp,
17645 .block_erasers = {}, /* set by probing function */
17646 .unlock = spi_disable_blockprotect, /* is this safe? */
17647 .write = NULL, /* set by probing function */
17648 .read = spi_chip_read,
17649 /* FIXME: some vendor extensions define this */
17650 .voltage = {0},
17651 },
17652
17653 {
Carl-Daniel Hailfinger532c7172011-11-04 21:35:26 +000017654 .vendor = "Programmer",
17655 .name = "Opaque flash chip",
17656 .bustype = BUS_PROG,
17657 .manufacture_id = PROGMANUF_ID,
17658 .model_id = PROGDEV_ID,
17659 .total_size = 0,
17660 .page_size = 256,
17661 /* probe is assumed to work, rest will be filled in by probe */
17662 .tested = TEST_OK_PROBE,
17663 .probe = probe_opaque,
17664 /* eraseblock sizes will be set by the probing function */
17665 .block_erasers =
17666 {
17667 {
17668 .block_erase = erase_opaque,
17669 }
17670 },
17671 .write = write_opaque,
17672 .read = read_opaque,
17673 },
17674
17675 {
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000017676 .vendor = "AMIC",
17677 .name = "unknown AMIC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017678 .bustype = BUS_SPI,
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000017679 .manufacture_id = AMIC_ID,
17680 .model_id = GENERIC_DEVICE_ID,
17681 .total_size = 0,
17682 .page_size = 256,
17683 .tested = TEST_BAD_PREW,
17684 .probe = probe_spi_rdid4,
17685 .probe_timing = TIMING_ZERO,
17686 .write = NULL,
17687 .read = NULL,
17688 },
17689
17690 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017691 .vendor = "Atmel",
17692 .name = "unknown Atmel SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017693 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017694 .manufacture_id = ATMEL_ID,
17695 .model_id = GENERIC_DEVICE_ID,
17696 .total_size = 0,
17697 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000017698 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017699 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000017700 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017701 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017702 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000017703 },
17704
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017705 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +000017706 .vendor = "Eon",
17707 .name = "unknown Eon SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017708 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017709 .manufacture_id = EON_ID_NOPREFIX,
17710 .model_id = GENERIC_DEVICE_ID,
17711 .total_size = 0,
17712 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000017713 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017714 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000017715 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017716 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017717 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000017718 },
17719
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017720 {
17721 .vendor = "Macronix",
17722 .name = "unknown Macronix SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017723 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000017724 .manufacture_id = MACRONIX_ID,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017725 .model_id = GENERIC_DEVICE_ID,
17726 .total_size = 0,
17727 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000017728 .tested = TEST_BAD_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,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017731 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017732 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000017733 },
17734
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017735 {
17736 .vendor = "PMC",
17737 .name = "unknown PMC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017738 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017739 .manufacture_id = PMC_ID,
17740 .model_id = GENERIC_DEVICE_ID,
17741 .total_size = 0,
17742 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000017743 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017744 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000017745 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017746 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017747 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000017748 },
17749
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017750 {
17751 .vendor = "SST",
17752 .name = "unknown SST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017753 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017754 .manufacture_id = SST_ID,
17755 .model_id = GENERIC_DEVICE_ID,
17756 .total_size = 0,
17757 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000017758 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017759 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000017760 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017761 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017762 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000017763 },
17764
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017765 {
17766 .vendor = "ST",
17767 .name = "unknown ST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017768 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017769 .manufacture_id = ST_ID,
17770 .model_id = GENERIC_DEVICE_ID,
17771 .total_size = 0,
17772 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000017773 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017774 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000017775 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017776 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017777 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000017778 },
Uwe Hermannfc425e82008-03-16 02:06:25 +000017779
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000017780 {
Sean Nelson118e1d62009-11-24 02:08:11 +000017781 .vendor = "Sanyo",
17782 .name = "unknown Sanyo SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017783 .bustype = BUS_SPI,
Sean Nelson118e1d62009-11-24 02:08:11 +000017784 .manufacture_id = SANYO_ID,
17785 .model_id = GENERIC_DEVICE_ID,
17786 .total_size = 0,
17787 .page_size = 256,
17788 .tested = TEST_BAD_PREW,
17789 .probe = probe_spi_rdid,
17790 .probe_timing = TIMING_ZERO,
Sean Nelson118e1d62009-11-24 02:08:11 +000017791 .write = NULL,
17792 .read = NULL,
17793 },
17794
17795 {
Stefan Taunereb582572012-09-21 12:52:50 +000017796 .vendor = "Winbond",
17797 .name = "unknown Winbond (ex Nexcom) SPI chip",
17798 .bustype = BUS_SPI,
17799 .manufacture_id = WINBOND_NEX_ID,
17800 .model_id = GENERIC_DEVICE_ID,
17801 .total_size = 0,
17802 .page_size = 256,
17803 .tested = TEST_BAD_PREW,
17804 .probe = probe_spi_rdid,
17805 .probe_timing = TIMING_ZERO,
17806 .write = NULL,
17807 .read = NULL,
17808 },
17809
17810 {
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000017811 .vendor = "Generic",
17812 .name = "unknown SPI chip (RDID)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017813 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000017814 .manufacture_id = GENERIC_MANUF_ID,
17815 .model_id = GENERIC_DEVICE_ID,
17816 .total_size = 0,
17817 .page_size = 256,
17818 .tested = TEST_BAD_PREW,
17819 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000017820 .write = NULL,
17821 },
Stefan Tauneraf2db612011-12-02 21:48:17 +000017822
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000017823 {
17824 .vendor = "Generic",
17825 .name = "unknown SPI chip (REMS)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017826 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000017827 .manufacture_id = GENERIC_MANUF_ID,
17828 .model_id = GENERIC_DEVICE_ID,
17829 .total_size = 0,
17830 .page_size = 256,
17831 .tested = TEST_BAD_PREW,
17832 .probe = probe_spi_rems,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000017833 .write = NULL,
17834 },
17835
Stefan Tauner96658be2014-05-26 22:05:31 +000017836 {0}
Stephan Guilloux72cf5652009-04-21 01:46:07 +000017837};
Stefan Tauner96658be2014-05-26 22:05:31 +000017838
17839const unsigned int flashchips_size = ARRAY_SIZE(flashchips);