blob: 8b5b5ccbf999a429c97359c9753602df58271335 [file] [log] [blame]
Ollie Lho184a4042005-11-26 21:55:36 +00001/*
Uwe Hermannd1107642007-08-29 17:52:32 +00002 * This file is part of the flashrom project.
Ollie Lho184a4042005-11-26 21:55:36 +00003 *
Uwe Hermannd22a1d42007-09-09 20:21:05 +00004 * Copyright (C) 2000 Silicon Integrated System Corporation
5 * Copyright (C) 2004 Tyan Corp
Stefan Reinauer4c390c82008-07-02 13:33:09 +00006 * Copyright (C) 2005-2008 coresystems GmbH <stepan@openbios.org>
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00007 * Copyright (C) 2006-2009 Carl-Daniel Hailfinger
Sean Nelsonc57a9202010-01-04 17:15:23 +00008 * Copyright (C) 2009 Sean Nelson <audiohacked@gmail.com>
Uwe Hermannd1107642007-08-29 17:52:32 +00009 *
Stefan Reinauerce532972007-05-23 17:20:56 +000010 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
Ollie Lho184a4042005-11-26 21:55:36 +000014 *
Stefan Reinauerce532972007-05-23 17:20:56 +000015 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
Ollie Lho184a4042005-11-26 21:55:36 +000019 */
20
21#include "flash.h"
Carl-Daniel Hailfinger08454642009-06-15 14:14:48 +000022#include "flashchips.h"
Sean Nelson14ba6682010-02-26 05:48:29 +000023#include "chipdrivers.h"
Ollie Lho184a4042005-11-26 21:55:36 +000024
Uwe Hermannfc425e82008-03-16 02:06:25 +000025/**
Uwe Hermanna9720402009-05-21 15:55:46 +000026 * List of supported flash chips.
Uwe Hermannfc425e82008-03-16 02:06:25 +000027 *
Alan Green1f9cc7d2019-07-01 11:10:45 +100028 * Temporarily, this file is sorted alphabetically by vendor and name to
29 * assist with merging the Chromium fork of flashrom.
30 *
31 * The usual intention is that that this list is sorted by vendor, then chip
32 * family and chip density, which is useful for the output of 'flashrom -L'.
Uwe Hermannfc425e82008-03-16 02:06:25 +000033 */
Carl-Daniel Hailfinger4c823182011-05-04 00:39:50 +000034const struct flashchip flashchips[] = {
Uwe Hermannfc425e82008-03-16 02:06:25 +000035
Carl-Daniel Hailfinger21eedec2009-07-23 12:42:01 +000036 /*
37 * .vendor = Vendor name
38 * .name = Chip name
39 * .bustype = Supported flash bus types (Parallel, LPC...)
40 * .manufacture_id = Manufacturer chip ID
41 * .model_id = Model chip ID
42 * .total_size = Total size in (binary) kbytes
43 * .page_size = Page or eraseblock(?) size in bytes
44 * .tested = Test status
45 * .probe = Probe function
46 * .probe_timing = Probe function delay
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +000047 * .block_erasers[] = Array of erase layouts and erase functions
48 * {
49 * .eraseblocks[] = Array of { blocksize, blockcount }
50 * .block_erase = Block erase function
51 * }
Sean Nelson6e0b9122010-02-19 00:52:10 +000052 * .printlock = Chip lock status function
53 * .unlock = Chip unlock function
Carl-Daniel Hailfinger21eedec2009-07-23 12:42:01 +000054 * .write = Chip write function
55 * .read = Chip read function
Steven Zakuleccbe370e2011-06-03 07:26:31 +000056 * .voltage = Voltage range in millivolt
FENG yu ningff692fb2008-12-08 18:15:10 +000057 */
58
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000059 {
60 .vendor = "AMD",
61 .name = "Am29F002(N)BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000062 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000063 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000064 .model_id = AMD_AM29F002BB,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000065 .total_size = 256,
66 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000067 .feature_bits = FEATURE_SHORT_RESET | FEATURE_ADDR_2AA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000068 .tested = TEST_UNTESTED,
69 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000070 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +000071 .block_erasers =
72 {
73 {
74 .eraseblocks = {
75 {16 * 1024, 1},
76 {8 * 1024, 2},
77 {32 * 1024, 1},
78 {64 * 1024, 3},
79 },
80 .block_erase = erase_sector_jedec,
81 }, {
82 .eraseblocks = { {256 * 1024, 1} },
83 .block_erase = erase_chip_block_jedec,
84 },
85 },
Michael Karcher1c296ca2009-11-27 17:49:42 +000086 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000087 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000088 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000089 },
90
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000091 {
92 .vendor = "AMD",
93 .name = "Am29F002(N)BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000094 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000095 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000096 .model_id = AMD_AM29F002BT,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000097 .total_size = 256,
98 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000099 .feature_bits = FEATURE_EITHER_RESET | FEATURE_ADDR_2AA,
100 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000101 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +0000102 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000103 .block_erasers =
104 {
105 {
106 .eraseblocks = {
107 {64 * 1024, 3},
108 {32 * 1024, 1},
109 {8 * 1024, 2},
110 {16 * 1024, 1},
111 },
112 .block_erase = erase_sector_jedec,
113 }, {
114 .eraseblocks = { {256 * 1024, 1} },
115 .block_erase = erase_chip_block_jedec,
116 },
117 },
Michael Karcher1c296ca2009-11-27 17:49:42 +0000118 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000119 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000120 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +0000121 },
122
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000123 {
124 .vendor = "AMD",
Alan Green1f9cc7d2019-07-01 11:10:45 +1000125 .name = "Am29F010",
126 .bustype = BUS_PARALLEL,
127 .manufacture_id = AMD_ID,
128 .model_id = AMD_AM29F010,
129 .total_size = 128,
130 .page_size = 16 * 1024,
131 .feature_bits = FEATURE_SHORT_RESET,
132 .tested = TEST_UNTESTED,
133 .probe = probe_jedec,
134 .probe_timing = TIMING_ZERO,
135 .block_erasers =
136 {
137 {
138 .eraseblocks = { {16 * 1024, 8} },
139 .block_erase = erase_sector_jedec,
140 }, {
141 .eraseblocks = { {128 * 1024, 1} },
142 .block_erase = erase_chip_block_jedec,
143 },
144 },
145 .write = write_jedec_1,
146 .read = read_memmapped,
147 .voltage = {4500, 5500},
148 },
149
150 {
151 .vendor = "AMD",
152 .name = "Am29F010A/B",
153 .bustype = BUS_PARALLEL,
154 .manufacture_id = AMD_ID,
155 .model_id = AMD_AM29F010,
156 .total_size = 128,
157 .page_size = 16 * 1024,
158 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Alan Greena4e579f2019-07-24 14:18:39 +1000159 .tested = TEST_OK_PRE,
Alan Green1f9cc7d2019-07-01 11:10:45 +1000160 .probe = probe_jedec,
161 .probe_timing = TIMING_ZERO,
162 .block_erasers =
163 {
164 {
165 .eraseblocks = { {16 * 1024, 8} },
166 .block_erase = erase_sector_jedec,
167 }, {
168 .eraseblocks = { {128 * 1024, 1} },
169 .block_erase = erase_chip_block_jedec,
170 },
171 },
172 .write = write_jedec_1,
173 .read = read_memmapped,
174 .voltage = {4500, 5500},
175 },
176
177 {
178 .vendor = "AMD",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000179 .name = "Am29F016D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000180 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000181 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000182 .model_id = AMD_AM29F016D,
Sean Nelson72a9a022009-12-22 22:15:33 +0000183 .total_size = 2 * 1024,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000184 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000185 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000186 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +0000187 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000188 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000189 .block_erasers =
190 {
191 {
192 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson35727f72010-01-28 23:55:12 +0000193 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000194 }, {
195 .eraseblocks = { {2048 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000196 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000197 },
198 },
Sean Nelson35727f72010-01-28 23:55:12 +0000199 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000200 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000201 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +0000202 },
203
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000204 {
205 .vendor = "AMD",
Stefan Taunerd1ca1e82016-01-31 23:17:35 +0000206 .name = "Am29F040",
207 .bustype = BUS_PARALLEL,
208 .manufacture_id = AMD_ID,
209 .model_id = AMD_AM29F040,
210 .total_size = 512,
211 .page_size = 64 * 1024,
212 .feature_bits = FEATURE_EITHER_RESET,
213 .tested = TEST_UNTESTED,
214 .probe = probe_jedec,
215 .probe_timing = TIMING_ZERO,
216 .block_erasers =
217 {
218 {
219 .eraseblocks = { {64 * 1024, 8} },
220 .block_erase = erase_sector_jedec,
221 }, {
222 .eraseblocks = { {512 * 1024, 1} },
223 .block_erase = erase_chip_block_jedec,
224 },
225 },
226 .write = write_jedec_1,
227 .read = read_memmapped,
228 .voltage = {4500, 5500},
229 },
230
231 {
232 .vendor = "AMD",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000233 .name = "Am29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000234 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000235 .manufacture_id = AMD_ID,
Stefan Taunerd1ca1e82016-01-31 23:17:35 +0000236 .model_id = AMD_AM29F040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000237 .total_size = 512,
238 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000239 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
240 .tested = TEST_UNTESTED,
241 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000242 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000243 .block_erasers =
244 {
245 {
246 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +0000247 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000248 }, {
249 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000250 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000251 },
252 },
Sean Nelson35727f72010-01-28 23:55:12 +0000253 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000254 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000255 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +0000256 },
257
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000258 {
259 .vendor = "AMD",
Stefan Taunerd1ca1e82016-01-31 23:17:35 +0000260 .name = "Am29F080",
261 .bustype = BUS_PARALLEL,
262 .manufacture_id = AMD_ID,
263 .model_id = AMD_AM29F080,
264 .total_size = 1024,
265 .page_size = 64 * 1024,
266 .feature_bits = FEATURE_EITHER_RESET,
267 .tested = TEST_UNTESTED,
268 .probe = probe_jedec,
269 .probe_timing = TIMING_ZERO,
270 .block_erasers =
271 {
272 {
273 .eraseblocks = { {64 * 1024, 16} },
274 .block_erase = erase_sector_jedec,
275 }, {
276 .eraseblocks = { {1024 * 1024, 1} },
277 .block_erase = erase_chip_block_jedec,
278 },
279 },
280 .write = write_jedec_1,
281 .read = read_memmapped,
282 .voltage = {4500, 5500},
283 },
284
285 {
286 .vendor = "AMD",
Peter Stuge8440cc02009-01-25 23:55:12 +0000287 .name = "Am29F080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000288 .bustype = BUS_PARALLEL,
Mateusz Murawski5bae4382009-06-02 00:38:14 +0000289 .manufacture_id = AMD_ID,
Stefan Taunerd1ca1e82016-01-31 23:17:35 +0000290 .model_id = AMD_AM29F080,
Peter Stuge8440cc02009-01-25 23:55:12 +0000291 .total_size = 1024,
292 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000293 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +0000294 .tested = TEST_UNTESTED,
295 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +0000296 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000297 .block_erasers =
298 {
299 {
300 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson35727f72010-01-28 23:55:12 +0000301 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000302 }, {
303 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000304 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000305 },
306 },
Sean Nelson35727f72010-01-28 23:55:12 +0000307 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000308 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000309 .voltage = {4500, 5500},
Peter Stuge8440cc02009-01-25 23:55:12 +0000310 },
311
312 {
313 .vendor = "AMD",
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000314 .name = "Am29LV001BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000315 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000316 .manufacture_id = AMD_ID,
317 .model_id = AMD_AM29LV001BB,
318 .total_size = 128,
319 .page_size = 64 * 1024, /* unused */
320 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
321 .tested = TEST_OK_PREW,
322 .probe = probe_jedec,
323 .probe_timing = TIMING_ZERO,
324 .block_erasers =
325 {
326 {
327 .eraseblocks = {
328 {8 * 1024, 1},
329 {4 * 1024, 2},
330 {16 * 1024, 7},
331 },
332 .block_erase = erase_sector_jedec,
333 }, {
334 .eraseblocks = { {128 * 1024, 1} },
335 .block_erase = erase_chip_block_jedec,
336 },
337 },
338 .write = write_jedec_1,
339 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000340 .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000341 },
342
343 {
344 .vendor = "AMD",
345 .name = "Am29LV001BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000346 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000347 .manufacture_id = AMD_ID,
348 .model_id = AMD_AM29LV001BT,
349 .total_size = 128,
350 .page_size = 64 * 1024, /* unused */
351 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
352 .tested = TEST_UNTESTED,
353 .probe = probe_jedec,
354 .probe_timing = TIMING_ZERO,
355 .block_erasers =
356 {
357 {
358 .eraseblocks = {
359 {16 * 1024, 7},
360 {4 * 1024, 2},
361 {8 * 1024, 1},
362 },
363 .block_erase = erase_sector_jedec,
364 }, {
365 .eraseblocks = { {128 * 1024, 1} },
366 .block_erase = erase_chip_block_jedec,
367 },
368 },
369 .write = write_jedec_1,
370 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000371 .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000372 },
373
374 {
375 .vendor = "AMD",
376 .name = "Am29LV002BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000377 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000378 .manufacture_id = AMD_ID,
379 .model_id = AMD_AM29LV002BB,
380 .total_size = 256,
381 .page_size = 64 * 1024, /* unused */
382 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
383 .tested = TEST_UNTESTED,
384 .probe = probe_jedec,
385 .probe_timing = TIMING_ZERO,
386 .block_erasers =
387 {
388 {
389 .eraseblocks = {
390 {16 * 1024, 1},
391 {8 * 1024, 2},
392 {32 * 1024, 1},
393 {64 * 1024, 3},
394 },
395 .block_erase = erase_sector_jedec,
396 }, {
397 .eraseblocks = { {256 * 1024, 1} },
398 .block_erase = erase_chip_block_jedec,
399 },
400 },
401 .write = write_jedec_1,
402 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000403 .voltage = {3000, 3600}, /* 3.0-3.6V for type -55, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000404 },
405
406 {
407 .vendor = "AMD",
408 .name = "Am29LV002BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000409 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000410 .manufacture_id = AMD_ID,
411 .model_id = AMD_AM29LV002BT,
412 .total_size = 256,
413 .page_size = 64 * 1024, /* unused */
414 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
415 .tested = TEST_UNTESTED,
416 .probe = probe_jedec,
417 .probe_timing = TIMING_ZERO,
418 .block_erasers =
419 {
420 {
421 .eraseblocks = {
422 {64 * 1024, 3},
423 {32 * 1024, 1},
424 {8 * 1024, 2},
425 {16 * 1024, 1},
426 },
427 .block_erase = erase_sector_jedec,
428 }, {
429 .eraseblocks = { {256 * 1024, 1} },
430 .block_erase = erase_chip_block_jedec,
431 },
432 },
433 .write = write_jedec_1,
434 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000435 .voltage = {3000, 3600}, /* 3.0-3.6V for type -55, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000436 },
437
438 {
439 .vendor = "AMD",
440 .name = "Am29LV004BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000441 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000442 .manufacture_id = AMD_ID,
443 .model_id = AMD_AM29LV004BB,
444 .total_size = 512,
445 .page_size = 64 * 1024, /* unused */
446 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
447 .tested = TEST_UNTESTED,
448 .probe = probe_jedec,
449 .probe_timing = TIMING_ZERO,
450 .block_erasers =
451 {
452 {
453 .eraseblocks = {
454 {16 * 1024, 1},
455 {8 * 1024, 2},
456 {32 * 1024, 1},
457 {64 * 1024, 7},
458 },
459 .block_erase = erase_sector_jedec,
460 }, {
461 .eraseblocks = { {512 * 1024, 1} },
462 .block_erase = erase_chip_block_jedec,
463 },
464 },
465 .write = write_jedec_1,
466 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000467 .voltage = {2700, 3600},
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000468 },
469
470 {
471 .vendor = "AMD",
472 .name = "Am29LV004BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000473 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000474 .manufacture_id = AMD_ID,
475 .model_id = AMD_AM29LV004BT,
476 .total_size = 512,
477 .page_size = 64 * 1024, /* unused */
478 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
479 .tested = TEST_UNTESTED,
480 .probe = probe_jedec,
481 .probe_timing = TIMING_ZERO,
482 .block_erasers =
483 {
484 {
485 .eraseblocks = {
486 {64 * 1024, 7},
487 {32 * 1024, 1},
488 {8 * 1024, 2},
489 {16 * 1024, 1},
490 },
491 .block_erase = erase_sector_jedec,
492 }, {
493 .eraseblocks = { {512 * 1024, 1} },
494 .block_erase = erase_chip_block_jedec,
495 },
496 },
497 .write = write_jedec_1,
498 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000499 .voltage = {2700, 3600},
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000500 },
501
502 {
503 .vendor = "AMD",
504 .name = "Am29LV008BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000505 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000506 .manufacture_id = AMD_ID,
507 .model_id = AMD_AM29LV008BB,
508 .total_size = 1024,
509 .page_size = 64 * 1024, /* unused */
510 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Uwe Hermann09ebd522011-08-25 22:54:23 +0000511 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000512 .probe = probe_jedec,
513 .probe_timing = TIMING_ZERO,
514 .block_erasers =
515 {
516 {
517 .eraseblocks = {
518 {16 * 1024, 1},
519 {8 * 1024, 2},
520 {32 * 1024, 1},
521 {64 * 1024, 15},
522 },
523 .block_erase = erase_sector_jedec,
524 }, {
525 .eraseblocks = { {1024 * 1024, 1} },
526 .block_erase = erase_chip_block_jedec,
527 },
528 },
529 .write = write_jedec_1,
530 .read = read_memmapped,
Alan Greenf5ad6882019-06-27 12:09:13 +1000531 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000532 },
533
534 {
535 .vendor = "AMD",
536 .name = "Am29LV008BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000537 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000538 .manufacture_id = AMD_ID,
539 .model_id = AMD_AM29LV008BT,
540 .total_size = 1024,
541 .page_size = 64 * 1024, /* unused */
542 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
543 .tested = TEST_UNTESTED,
544 .probe = probe_jedec,
545 .probe_timing = TIMING_ZERO,
546 .block_erasers =
547 {
548 {
549 .eraseblocks = {
550 {64 * 1024, 15},
551 {32 * 1024, 1},
552 {8 * 1024, 2},
553 {16 * 1024, 1},
554 },
555 .block_erase = erase_sector_jedec,
556 }, {
557 .eraseblocks = { {1024 * 1024, 1} },
558 .block_erase = erase_chip_block_jedec,
559 },
560 },
561 .write = write_jedec_1,
562 .read = read_memmapped,
Alan Greenf5ad6882019-06-27 12:09:13 +1000563 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000564 },
565
566 {
567 .vendor = "AMD",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000568 .name = "Am29LV040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000569 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000570 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000571 .model_id = AMD_AM29LV040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000572 .total_size = 512,
573 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000574 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000575 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +0000576 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000577 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000578 .block_erasers =
579 {
580 {
581 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +0000582 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000583 }, {
584 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000585 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000586 },
587 },
Sean Nelson35727f72010-01-28 23:55:12 +0000588 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000589 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000590 .voltage = {3000, 3600}, /* 3.0-3.6V for type -60R, others 2.7-3.6V*/
FENG yu ningff692fb2008-12-08 18:15:10 +0000591 },
592
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000593 {
Peter Stuge8440cc02009-01-25 23:55:12 +0000594 .vendor = "AMD",
595 .name = "Am29LV081B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000596 .bustype = BUS_PARALLEL,
Mateusz Murawski5bae4382009-06-02 00:38:14 +0000597 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000598 .model_id = AMD_AM29LV080B,
Peter Stuge8440cc02009-01-25 23:55:12 +0000599 .total_size = 1024,
600 .page_size = 64 * 1024,
David Borg204f4652010-12-04 03:26:40 +0000601 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, /* datasheet specifies address as don't care */
Peter Stuge8440cc02009-01-25 23:55:12 +0000602 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +0000603 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000604 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000605 .block_erasers =
606 {
607 {
608 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson35727f72010-01-28 23:55:12 +0000609 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000610 }, {
611 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000612 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000613 },
614 },
Sean Nelson35727f72010-01-28 23:55:12 +0000615 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000616 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000617 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70R, others 2.7-3.6V */
Peter Stuge8440cc02009-01-25 23:55:12 +0000618 },
619
620 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000621 .vendor = "AMIC",
Alan Green1f9cc7d2019-07-01 11:10:45 +1000622 .name = "A25L010",
623 .bustype = BUS_SPI,
624 .manufacture_id = AMIC_ID_NOPREFIX,
625 .model_id = AMIC_A25L010,
626 .total_size = 128,
627 .page_size = 256,
628 .feature_bits = FEATURE_WRSR_WREN,
629 .tested = TEST_UNTESTED,
630 .probe = probe_spi_rdid,
631 .probe_timing = TIMING_ZERO,
632 .block_erasers =
633 {
634 {
635 .eraseblocks = { { 4 * 1024, 32 } },
636 .block_erase = spi_block_erase_20,
637 }, {
638 .eraseblocks = { { 64 * 1024, 2 } },
639 .block_erase = spi_block_erase_d8,
640 }, {
641 .eraseblocks = { { 128 * 1024, 1 } },
642 .block_erase = spi_block_erase_c7,
643 }
644 },
645 .printlock = spi_prettyprint_status_register_bp2_srwd,
646 .unlock = spi_disable_blockprotect,
647 .write = spi_chip_write_256,
648 .read = spi_chip_read,
649 .voltage = {2700, 3600},
650 },
651
652 {
653 .vendor = "AMIC",
654 .name = "A25L016",
655 .bustype = BUS_SPI,
656 .manufacture_id = AMIC_ID_NOPREFIX,
657 .model_id = AMIC_A25L016,
658 .total_size = 2048,
659 .page_size = 256,
660 .feature_bits = FEATURE_WRSR_WREN,
661 .tested = TEST_UNTESTED,
662 .probe = probe_spi_rdid,
663 .probe_timing = TIMING_ZERO,
664 .block_erasers =
665 {
666 {
667 .eraseblocks = { { 4 * 1024, 512 } },
668 .block_erase = spi_block_erase_20,
669 }, {
670 .eraseblocks = { { 64 * 1024, 32 } },
671 .block_erase = spi_block_erase_d8,
672 }, {
673 .eraseblocks = { { 2048 * 1024, 1 } },
674 .block_erase = spi_block_erase_c7,
675 }
676 },
677 .printlock = spi_prettyprint_status_register_bp2_srwd,
678 .unlock = spi_disable_blockprotect,
679 .write = spi_chip_write_256,
680 .read = spi_chip_read,
681 .voltage = {2700, 3600},
682 },
683
684 {
685 .vendor = "AMIC",
686 .name = "A25L020",
687 .bustype = BUS_SPI,
688 .manufacture_id = AMIC_ID_NOPREFIX,
689 .model_id = AMIC_A25L020,
690 .total_size = 256,
691 .page_size = 256,
692 .feature_bits = FEATURE_WRSR_WREN,
693 .tested = TEST_UNTESTED,
694 .probe = probe_spi_rdid,
695 .probe_timing = TIMING_ZERO,
696 .block_erasers =
697 {
698 {
699 .eraseblocks = { { 4 * 1024, 64 } },
700 .block_erase = spi_block_erase_20,
701 }, {
702 .eraseblocks = { { 64 * 1024, 4 } },
703 .block_erase = spi_block_erase_d8,
704 }, {
705 .eraseblocks = { { 256 * 1024, 1 } },
706 .block_erase = spi_block_erase_c7,
707 }
708 },
709 .printlock = spi_prettyprint_status_register_bp2_srwd,
710 .unlock = spi_disable_blockprotect,
711 .write = spi_chip_write_256,
712 .read = spi_chip_read,
713 .voltage = {2700, 3600},
714 },
715
716 {
717 .vendor = "AMIC",
718 .name = "A25L032",
719 .bustype = BUS_SPI,
720 .manufacture_id = AMIC_ID_NOPREFIX,
721 .model_id = AMIC_A25L032,
722 .total_size = 4096,
723 .page_size = 256,
724 /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */
725 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
726 .tested = TEST_OK_PREW,
727 .probe = probe_spi_rdid,
728 .probe_timing = TIMING_ZERO,
729 .block_erasers =
730 {
731 {
732 .eraseblocks = { { 4 * 1024, 1024 } },
733 .block_erase = spi_block_erase_20,
734 }, {
735 .eraseblocks = { { 64 * 1024, 64 } },
736 .block_erase = spi_block_erase_52,
737 }, {
738 .eraseblocks = { { 64 * 1024, 64 } },
739 .block_erase = spi_block_erase_d8,
740 }, {
741 .eraseblocks = { { 4096 * 1024, 1 } },
742 .block_erase = spi_block_erase_60,
743 }, {
744 .eraseblocks = { { 4096 * 1024, 1 } },
745 .block_erase = spi_block_erase_c7,
746 }
747 },
748 .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */
749 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */
750 .write = spi_chip_write_256,
751 .read = spi_chip_read,
752 .voltage = {2700, 3600},
753 },
754
755 {
756 .vendor = "AMIC",
757 .name = "A25L040",
758 .bustype = BUS_SPI,
759 .manufacture_id = AMIC_ID_NOPREFIX,
760 .model_id = AMIC_A25L040,
761 .total_size = 512,
762 .page_size = 256,
763 .feature_bits = FEATURE_WRSR_WREN,
764 .tested = TEST_UNTESTED,
765 .probe = probe_spi_rdid,
766 .probe_timing = TIMING_ZERO,
767 .block_erasers =
768 {
769 {
770 .eraseblocks = { { 4 * 1024, 128 } },
771 .block_erase = spi_block_erase_20,
772 }, {
773 .eraseblocks = { { 64 * 1024, 8 } },
774 .block_erase = spi_block_erase_d8,
775 }, {
776 .eraseblocks = { { 512 * 1024, 1 } },
777 .block_erase = spi_block_erase_c7,
778 }
779 },
780 .printlock = spi_prettyprint_status_register_bp2_srwd,
781 .unlock = spi_disable_blockprotect,
782 .write = spi_chip_write_256,
783 .read = spi_chip_read,
784 .voltage = {2700, 3600},
785 },
786
787 {
788 .vendor = "AMIC",
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000789 .name = "A25L05PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000790 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000791 .manufacture_id = AMIC_ID,
792 .model_id = AMIC_A25L05PT,
793 .total_size = 64,
794 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000795 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000796 .tested = TEST_UNTESTED,
797 .probe = probe_spi_rdid4,
798 .probe_timing = TIMING_ZERO,
799 .block_erasers =
800 {
801 {
802 .eraseblocks = {
803 {32 * 1024, 1},
804 {16 * 1024, 1},
805 {8 * 1024, 1},
806 {4 * 1024, 2},
807 },
808 .block_erase = spi_block_erase_d8,
809 }, {
810 .eraseblocks = { {64 * 1024, 1} },
811 .block_erase = spi_block_erase_c7,
812 }
813 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000814 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000815 .unlock = spi_disable_blockprotect,
816 .write = spi_chip_write_256,
817 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000818 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000819 },
820
821 {
822 .vendor = "AMIC",
823 .name = "A25L05PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000824 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000825 .manufacture_id = AMIC_ID,
826 .model_id = AMIC_A25L05PU,
827 .total_size = 64,
828 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000829 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000830 .tested = TEST_UNTESTED,
831 .probe = probe_spi_rdid4,
832 .probe_timing = TIMING_ZERO,
833 .block_erasers =
834 {
835 {
836 .eraseblocks = {
837 {4 * 1024, 2},
838 {8 * 1024, 1},
839 {16 * 1024, 1},
840 {32 * 1024, 1},
841 },
842 .block_erase = spi_block_erase_d8,
843 }, {
844 .eraseblocks = { {64 * 1024, 1} },
845 .block_erase = spi_block_erase_c7,
846 }
847 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000848 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000849 .unlock = spi_disable_blockprotect,
850 .write = spi_chip_write_256,
851 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000852 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000853 },
854
855 {
856 .vendor = "AMIC",
Alan Green1f9cc7d2019-07-01 11:10:45 +1000857 .name = "A25L080",
858 .bustype = BUS_SPI,
859 .manufacture_id = AMIC_ID_NOPREFIX,
860 .model_id = AMIC_A25L080,
861 .total_size = 1024,
862 .page_size = 256,
863 .feature_bits = FEATURE_WRSR_WREN,
864 .tested = TEST_UNTESTED,
865 .probe = probe_spi_rdid,
866 .probe_timing = TIMING_ZERO,
867 .block_erasers =
868 {
869 {
870 .eraseblocks = { { 4 * 1024, 256 } },
871 .block_erase = spi_block_erase_20,
872 }, {
873 .eraseblocks = { { 64 * 1024, 16 } },
874 .block_erase = spi_block_erase_d8,
875 }, {
876 .eraseblocks = { { 1024 * 1024, 1 } },
877 .block_erase = spi_block_erase_c7,
878 }
879 },
880 .printlock = spi_prettyprint_status_register_bp2_srwd,
881 .unlock = spi_disable_blockprotect,
882 .write = spi_chip_write_256,
883 .read = spi_chip_read,
884 .voltage = {2700, 3600},
885 },
886
887 {
888 .vendor = "AMIC",
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000889 .name = "A25L10PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000890 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000891 .manufacture_id = AMIC_ID,
892 .model_id = AMIC_A25L10PT,
893 .total_size = 128,
894 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000895 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000896 .tested = TEST_UNTESTED,
897 .probe = probe_spi_rdid4,
898 .probe_timing = TIMING_ZERO,
899 .block_erasers =
900 {
901 {
902 .eraseblocks = {
903 {64 * 1024, 1},
904 {32 * 1024, 1},
905 {16 * 1024, 1},
906 {8 * 1024, 1},
907 {4 * 1024, 2},
908 },
909 .block_erase = spi_block_erase_d8,
910 }, {
911 .eraseblocks = { {128 * 1024, 1} },
912 .block_erase = spi_block_erase_c7,
913 }
914 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000915 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000916 .unlock = spi_disable_blockprotect,
917 .write = spi_chip_write_256,
918 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000919 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000920 },
921
922 {
923 .vendor = "AMIC",
924 .name = "A25L10PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000925 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000926 .manufacture_id = AMIC_ID,
927 .model_id = AMIC_A25L10PU,
928 .total_size = 128,
929 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000930 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000931 .tested = TEST_UNTESTED,
932 .probe = probe_spi_rdid4,
933 .probe_timing = TIMING_ZERO,
934 .block_erasers =
935 {
936 {
937 .eraseblocks = {
938 {4 * 1024, 2},
939 {8 * 1024, 1},
940 {16 * 1024, 1},
941 {32 * 1024, 1},
942 {64 * 1024, 1},
943 },
944 .block_erase = spi_block_erase_d8,
945 }, {
946 .eraseblocks = { {128 * 1024, 1} },
947 .block_erase = spi_block_erase_c7,
948 }
949 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000950 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000951 .unlock = spi_disable_blockprotect,
952 .write = spi_chip_write_256,
953 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000954 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000955 },
956
957 {
958 .vendor = "AMIC",
Alan Green1f9cc7d2019-07-01 11:10:45 +1000959 .name = "A25L16PT",
960 .bustype = BUS_SPI,
961 .manufacture_id = AMIC_ID,
962 .model_id = AMIC_A25L16PT,
963 .total_size = 2048,
964 .page_size = 256,
965 .feature_bits = FEATURE_WRSR_WREN,
966 .tested = TEST_UNTESTED,
967 .probe = probe_spi_rdid4,
968 .probe_timing = TIMING_ZERO,
969 .block_erasers =
970 {
971 {
972 .eraseblocks = {
973 {64 * 1024, 31},
974 {32 * 1024, 1},
975 {16 * 1024, 1},
976 {8 * 1024, 1},
977 {4 * 1024, 2},
978 },
979 .block_erase = spi_block_erase_d8,
980 }, {
981 .eraseblocks = { {2048 * 1024, 1} },
982 .block_erase = spi_block_erase_60,
983 }, {
984 .eraseblocks = { {2048 * 1024, 1} },
985 .block_erase = spi_block_erase_c7,
986 }
987 },
988 .printlock = spi_prettyprint_status_register_bp2_srwd,
989 .unlock = spi_disable_blockprotect,
990 .write = spi_chip_write_256,
991 .read = spi_chip_read,
992 .voltage = {2700, 3600},
993 },
994
995 {
996 .vendor = "AMIC",
997 .name = "A25L16PU",
998 .bustype = BUS_SPI,
999 .manufacture_id = AMIC_ID,
1000 .model_id = AMIC_A25L16PU,
1001 .total_size = 2048,
1002 .page_size = 256,
1003 .feature_bits = FEATURE_WRSR_WREN,
1004 .tested = TEST_OK_PR,
1005 .probe = probe_spi_rdid4,
1006 .probe_timing = TIMING_ZERO,
1007 .block_erasers =
1008 {
1009 {
1010 .eraseblocks = {
1011 {4 * 1024, 2},
1012 {8 * 1024, 1},
1013 {16 * 1024, 1},
1014 {32 * 1024, 1},
1015 {64 * 1024, 31},
1016 },
1017 .block_erase = spi_block_erase_d8,
1018 }, {
1019 .eraseblocks = { {2048 * 1024, 1} },
1020 .block_erase = spi_block_erase_60,
1021 }, {
1022 .eraseblocks = { {2048 * 1024, 1} },
1023 .block_erase = spi_block_erase_c7,
1024 }
1025 },
1026 .printlock = spi_prettyprint_status_register_bp2_srwd,
1027 .unlock = spi_disable_blockprotect,
1028 .write = spi_chip_write_256,
1029 .read = spi_chip_read,
1030 .voltage = {2700, 3600},
1031 },
1032
1033 {
1034 .vendor = "AMIC",
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001035 .name = "A25L20PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001036 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001037 .manufacture_id = AMIC_ID,
1038 .model_id = AMIC_A25L20PT,
1039 .total_size = 256,
1040 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001041 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001042 .tested = TEST_UNTESTED,
1043 .probe = probe_spi_rdid4,
1044 .probe_timing = TIMING_ZERO,
1045 .block_erasers =
1046 {
1047 {
1048 .eraseblocks = {
1049 {64 * 1024, 3},
1050 {32 * 1024, 1},
1051 {16 * 1024, 1},
1052 {8 * 1024, 1},
1053 {4 * 1024, 2},
1054 },
1055 .block_erase = spi_block_erase_d8,
1056 }, {
1057 .eraseblocks = { {256 * 1024, 1} },
1058 .block_erase = spi_block_erase_c7,
1059 }
1060 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001061 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001062 .unlock = spi_disable_blockprotect,
1063 .write = spi_chip_write_256,
1064 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001065 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001066 },
1067
1068 {
1069 .vendor = "AMIC",
1070 .name = "A25L20PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001071 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001072 .manufacture_id = AMIC_ID,
1073 .model_id = AMIC_A25L20PU,
1074 .total_size = 256,
1075 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001076 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001077 .tested = TEST_UNTESTED,
1078 .probe = probe_spi_rdid4,
1079 .probe_timing = TIMING_ZERO,
1080 .block_erasers =
1081 {
1082 {
1083 .eraseblocks = {
1084 {4 * 1024, 2},
1085 {8 * 1024, 1},
1086 {16 * 1024, 1},
1087 {32 * 1024, 1},
1088 {64 * 1024, 3},
1089 },
1090 .block_erase = spi_block_erase_d8,
1091 }, {
1092 .eraseblocks = { {256 * 1024, 1} },
1093 .block_erase = spi_block_erase_c7,
1094 }
1095 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001096 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001097 .unlock = spi_disable_blockprotect,
1098 .write = spi_chip_write_256,
1099 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001100 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001101 },
1102
1103 /* The A25L40P{T,U} chips are distinguished by their
1104 * erase block layouts, but without any distinction in RDID.
1105 * This inexplicable quirk was verified by Rudolf Marek
1106 * and discussed on the flashrom mailing list on 2010-07-12.
1107 */
1108 {
1109 .vendor = "AMIC",
1110 .name = "A25L40PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001111 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001112 .manufacture_id = AMIC_ID,
1113 .model_id = AMIC_A25L40PT,
1114 .total_size = 512,
1115 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001116 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00001117 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001118 .probe = probe_spi_rdid4,
1119 .probe_timing = TIMING_ZERO,
1120 .block_erasers =
1121 {
1122 {
1123 .eraseblocks = {
1124 {64 * 1024, 7},
1125 {32 * 1024, 1},
1126 {16 * 1024, 1},
1127 {8 * 1024, 1},
1128 {4 * 1024, 2},
1129 },
1130 .block_erase = spi_block_erase_d8,
1131 }, {
1132 .eraseblocks = { {512 * 1024, 1} },
1133 .block_erase = spi_block_erase_c7,
1134 }
1135 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001136 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001137 .unlock = spi_disable_blockprotect,
1138 .write = spi_chip_write_256,
1139 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001140 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001141 },
1142
1143 {
1144 .vendor = "AMIC",
1145 .name = "A25L40PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001146 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001147 .manufacture_id = AMIC_ID,
1148 .model_id = AMIC_A25L40PU,
1149 .total_size = 512,
1150 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001151 .feature_bits = FEATURE_WRSR_WREN,
Angel Pons6f088352018-09-30 19:59:42 +02001152 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001153 .probe = probe_spi_rdid4,
1154 .probe_timing = TIMING_ZERO,
1155 .block_erasers =
1156 {
1157 {
1158 .eraseblocks = {
1159 {4 * 1024, 2},
1160 {8 * 1024, 1},
1161 {16 * 1024, 1},
1162 {32 * 1024, 1},
1163 {64 * 1024, 7},
1164 },
1165 .block_erase = spi_block_erase_d8,
1166 }, {
1167 .eraseblocks = { {512 * 1024, 1} },
1168 .block_erase = spi_block_erase_c7,
1169 }
1170 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001171 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001172 .unlock = spi_disable_blockprotect,
1173 .write = spi_chip_write_256,
1174 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001175 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001176 },
1177
1178 {
1179 .vendor = "AMIC",
Alan Green1f9cc7d2019-07-01 11:10:45 +10001180 .name = "A25L512",
1181 .bustype = BUS_SPI,
1182 .manufacture_id = AMIC_ID_NOPREFIX,
1183 .model_id = AMIC_A25L512,
1184 .total_size = 64,
1185 .page_size = 256,
1186 .feature_bits = FEATURE_WRSR_WREN,
1187 .tested = TEST_UNTESTED,
1188 .probe = probe_spi_rdid,
1189 .probe_timing = TIMING_ZERO,
1190 .block_erasers =
1191 {
1192 {
1193 .eraseblocks = { { 4 * 1024, 16 } },
1194 .block_erase = spi_block_erase_20,
1195 }, {
1196 .eraseblocks = { { 64 * 1024, 1 } },
1197 .block_erase = spi_block_erase_d8,
1198 }, {
1199 .eraseblocks = { { 64 * 1024, 1 } },
1200 .block_erase = spi_block_erase_c7,
1201 }
1202 },
1203 .printlock = spi_prettyprint_status_register_bp2_srwd,
1204 .unlock = spi_disable_blockprotect,
1205 .write = spi_chip_write_256,
1206 .read = spi_chip_read,
1207 .voltage = {2700, 3600},
1208 },
1209
1210 {
1211 .vendor = "AMIC",
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001212 .name = "A25L80P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001213 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001214 .manufacture_id = AMIC_ID,
1215 .model_id = AMIC_A25L80P,
1216 .total_size = 1024,
1217 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001218 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00001219 .tested = TEST_OK_PRE,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001220 .probe = probe_spi_rdid4,
1221 .probe_timing = TIMING_ZERO,
1222 .block_erasers =
1223 {
1224 {
1225 .eraseblocks = {
1226 {4 * 1024, 2},
1227 {8 * 1024, 1},
1228 {16 * 1024, 1},
1229 {32 * 1024, 1},
1230 {64 * 1024, 15},
1231 },
1232 .block_erase = spi_block_erase_d8,
1233 }, {
1234 .eraseblocks = { {1024 * 1024, 1} },
1235 .block_erase = spi_block_erase_c7,
1236 }
1237 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001238 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001239 .unlock = spi_disable_blockprotect,
1240 .write = spi_chip_write_256,
1241 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001242 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001243 },
1244
1245 {
1246 .vendor = "AMIC",
Alan Green1f9cc7d2019-07-01 11:10:45 +10001247 .name = "A25LQ032/A25LQ32A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001248 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001249 .manufacture_id = AMIC_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10001250 .model_id = AMIC_A25LQ032,
Dan Lenski11617122010-07-29 15:00:40 +00001251 .total_size = 4096,
1252 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10001253 /* A25LQ32A supports SFDP */
Daniel Lenski65922a32012-02-15 23:40:23 +00001254 /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */
1255 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Alan Green1f9cc7d2019-07-01 11:10:45 +10001256 .tested = TEST_UNTESTED,
Dan Lenski11617122010-07-29 15:00:40 +00001257 .probe = probe_spi_rdid,
1258 .probe_timing = TIMING_ZERO,
1259 .block_erasers =
1260 {
1261 {
1262 .eraseblocks = { { 4 * 1024, 1024 } },
1263 .block_erase = spi_block_erase_20,
1264 }, {
1265 .eraseblocks = { { 64 * 1024, 64 } },
1266 .block_erase = spi_block_erase_52,
1267 }, {
1268 .eraseblocks = { { 64 * 1024, 64 } },
1269 .block_erase = spi_block_erase_d8,
1270 }, {
1271 .eraseblocks = { { 4096 * 1024, 1 } },
1272 .block_erase = spi_block_erase_60,
1273 }, {
1274 .eraseblocks = { { 4096 * 1024, 1 } },
1275 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001276 }
Dan Lenski11617122010-07-29 15:00:40 +00001277 },
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001278 .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */
1279 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */
Dan Lenski11617122010-07-29 15:00:40 +00001280 .write = spi_chip_write_256,
1281 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001282 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001283 },
1284
1285 {
1286 .vendor = "AMIC",
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001287 .name = "A25LQ16",
1288 .bustype = BUS_SPI,
1289 .manufacture_id = AMIC_ID_NOPREFIX,
1290 .model_id = AMIC_A25LQ16,
1291 .total_size = 2048,
1292 .page_size = 256,
1293 /* supports SFDP */
1294 /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */
1295 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
1296 .tested = TEST_UNTESTED,
1297 .probe = probe_spi_rdid,
1298 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10001299 .block_erasers =
1300 {
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001301 {
1302 .eraseblocks = { { 4 * 1024, 512 } },
1303 .block_erase = spi_block_erase_20,
1304 }, {
1305 .eraseblocks = { { 64 * 1024, 32 } },
1306 .block_erase = spi_block_erase_52,
1307 }, {
1308 .eraseblocks = { { 64 * 1024, 32 } },
1309 .block_erase = spi_block_erase_d8,
1310 }, {
1311 .eraseblocks = { { 2048 * 1024, 1 } },
1312 .block_erase = spi_block_erase_60,
1313 }, {
1314 .eraseblocks = { { 2048 * 1024, 1 } },
1315 .block_erase = spi_block_erase_c7,
1316 }
1317 },
1318 .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */
1319 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */
1320 .write = spi_chip_write_256,
1321 .read = spi_chip_read,
1322 .voltage = {2700, 3600},
1323 },
1324
1325 {
1326 .vendor = "AMIC",
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001327 .name = "A25LQ64",
1328 .bustype = BUS_SPI,
1329 .manufacture_id = AMIC_ID_NOPREFIX,
Stefan Tauner23e10b82016-01-23 16:16:49 +00001330 .model_id = AMIC_A25LQ64,
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001331 .total_size = 8192,
1332 .page_size = 256,
1333 /* supports SFDP */
1334 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
1335 /* QPI enable 0x35, disable 0xF5 */
1336 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
1337 .tested = TEST_UNTESTED,
1338 .probe = probe_spi_rdid,
1339 .probe_timing = TIMING_ZERO,
1340 .block_erasers =
1341 {
1342 {
1343 .eraseblocks = { { 4 * 1024, 2048 } },
1344 .block_erase = spi_block_erase_20,
1345 }, {
1346 .eraseblocks = { { 32 * 1024, 256 } },
1347 .block_erase = spi_block_erase_52,
1348 }, {
1349 .eraseblocks = { { 64 * 1024, 128 } },
1350 .block_erase = spi_block_erase_d8,
1351 }, {
1352 .eraseblocks = { { 8192 * 1024, 1 } },
1353 .block_erase = spi_block_erase_60,
1354 }, {
1355 .eraseblocks = { { 8192 * 1024, 1 } },
1356 .block_erase = spi_block_erase_c7,
1357 }
1358 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001359 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enhance (sic!) */
Stefan Tauner5c316f92015-02-08 21:57:52 +00001360 .unlock = spi_disable_blockprotect_bp3_srwd,
Dan Lenski11617122010-07-29 15:00:40 +00001361 .write = spi_chip_write_256,
1362 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001363 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001364 },
1365
1366 {
1367 .vendor = "AMIC",
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001368 .name = "A29002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001369 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001370 .manufacture_id = AMIC_ID_NOPREFIX,
1371 .model_id = AMIC_A29002B,
1372 .total_size = 256,
1373 .page_size = 64 * 1024,
1374 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
1375 .tested = TEST_UNTESTED,
1376 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001377 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001378 .block_erasers =
1379 {
1380 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00001381 .eraseblocks = {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001382 {16 * 1024, 1},
1383 {8 * 1024, 2},
1384 {32 * 1024, 1},
1385 {64 * 1024, 3},
1386 },
1387 .block_erase = erase_sector_jedec,
1388 }, {
1389 .eraseblocks = { {256 * 1024, 1} },
1390 .block_erase = erase_chip_block_jedec,
1391 },
1392 },
1393 .write = write_jedec_1,
1394 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001395 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001396 },
1397
1398 {
1399 .vendor = "AMIC",
1400 .name = "A29002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001401 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001402 .manufacture_id = AMIC_ID_NOPREFIX,
1403 .model_id = AMIC_A29002T,
1404 .total_size = 256,
1405 .page_size = 64 * 1024,
1406 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00001407 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001408 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001409 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001410 .block_erasers =
1411 {
1412 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00001413 .eraseblocks = {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001414 {64 * 1024, 3},
1415 {32 * 1024, 1},
1416 {8 * 1024, 2},
1417 {16 * 1024, 1},
1418 },
1419 .block_erase = erase_sector_jedec,
1420 }, {
1421 .eraseblocks = { {256 * 1024, 1} },
1422 .block_erase = erase_chip_block_jedec,
1423 },
1424 },
1425 .write = write_jedec_1,
1426 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001427 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001428 },
1429
1430 {
1431 .vendor = "AMIC",
1432 .name = "A29040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001433 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001434 .manufacture_id = AMIC_ID_NOPREFIX,
1435 .model_id = AMIC_A29040B,
1436 .total_size = 512,
1437 .page_size = 64 * 1024,
1438 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Corey Osgoodcbd56652013-09-10 10:42:48 +00001439 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001440 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001441 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001442 .block_erasers =
1443 {
1444 {
1445 .eraseblocks = { {64 * 1024, 8} },
1446 .block_erase = erase_sector_jedec,
1447 }, {
1448 .eraseblocks = { {512 * 1024, 1} },
1449 .block_erase = erase_chip_block_jedec,
1450 },
1451 },
1452 .write = write_jedec_1,
1453 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001454 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001455 },
1456
1457 {
1458 .vendor = "AMIC",
1459 .name = "A49LF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001460 .bustype = BUS_LPC,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001461 .manufacture_id = AMIC_ID_NOPREFIX,
1462 .model_id = AMIC_A49LF040A,
1463 .total_size = 512,
1464 .page_size = 64 * 1024,
1465 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00001466 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001467 .probe = probe_jedec,
1468 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
1469 .block_erasers =
1470 {
1471 {
1472 .eraseblocks = { {64 * 1024, 8} },
1473 .block_erase = erase_block_jedec,
1474 }, {
1475 .eraseblocks = { {512 * 1024, 1} },
1476 .block_erase = erase_chip_block_jedec,
1477 }
1478 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00001479 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001480 .write = write_jedec_1,
1481 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001482 .voltage = {3000, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001483 },
1484
1485 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001486 .vendor = "Atmel",
1487 .name = "AT25DF021",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001488 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001489 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001490 .model_id = ATMEL_AT25DF021,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001491 .total_size = 256,
1492 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001493 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1494 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001495 .tested = TEST_UNTESTED,
1496 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001497 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001498 .block_erasers =
1499 {
1500 {
1501 .eraseblocks = { {4 * 1024, 64} },
1502 .block_erase = spi_block_erase_20,
1503 }, {
1504 .eraseblocks = { {32 * 1024, 8} },
1505 .block_erase = spi_block_erase_52,
1506 }, {
1507 .eraseblocks = { {64 * 1024, 4} },
1508 .block_erase = spi_block_erase_d8,
1509 }, {
1510 .eraseblocks = { {256 * 1024, 1} },
1511 .block_erase = spi_block_erase_60,
1512 }, {
1513 .eraseblocks = { {256 * 1024, 1} },
1514 .block_erase = spi_block_erase_c7,
1515 }
1516 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001517 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001518 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001519 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001520 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001521 .voltage = {2700, 3600}, /* 2.3-3.6V & 2.7-3.6V models available */
FENG yu ningff692fb2008-12-08 18:15:10 +00001522 },
1523
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001524 {
1525 .vendor = "Atmel",
Steffen Mauch0b59b0d2018-06-02 23:46:03 +02001526 .name = "AT25DF021A",
1527 .bustype = BUS_SPI,
1528 .manufacture_id = ATMEL_ID,
1529 .model_id = ATMEL_AT25DF021A,
1530 .total_size = 256,
1531 .page_size = 256,
1532 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1533 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
1534 .tested = TEST_OK_PREW,
1535 .probe = probe_spi_rdid,
1536 .probe_timing = TIMING_ZERO,
1537 .block_erasers =
1538 {
1539 {
1540 .eraseblocks = { {4 * 1024, 64} },
1541 .block_erase = spi_block_erase_20,
1542 }, {
1543 .eraseblocks = { {32 * 1024, 8} },
1544 .block_erase = spi_block_erase_52,
1545 }, {
1546 .eraseblocks = { {64 * 1024, 4} },
1547 .block_erase = spi_block_erase_d8,
1548 }, {
1549 .eraseblocks = { {256 * 1024, 1} },
1550 .block_erase = spi_block_erase_60,
1551 }, {
1552 .eraseblocks = { {256 * 1024, 1} },
1553 .block_erase = spi_block_erase_c7,
1554 }
1555 },
1556 .printlock = spi_prettyprint_status_register_at25df,
1557 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
1558 .write = spi_chip_write_256,
1559 .read = spi_chip_read,
1560 .voltage = {1650, 3600},
1561 },
1562
1563 {
1564 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001565 .name = "AT25DF041A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001566 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001567 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001568 .model_id = ATMEL_AT25DF041A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001569 .total_size = 512,
1570 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001571 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +00001572 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001573 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001574 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001575 .block_erasers =
1576 {
1577 {
1578 .eraseblocks = { {4 * 1024, 128} },
1579 .block_erase = spi_block_erase_20,
1580 }, {
1581 .eraseblocks = { {32 * 1024, 16} },
1582 .block_erase = spi_block_erase_52,
1583 }, {
1584 .eraseblocks = { {64 * 1024, 8} },
1585 .block_erase = spi_block_erase_d8,
1586 }, {
1587 .eraseblocks = { {512 * 1024, 1} },
1588 .block_erase = spi_block_erase_60,
1589 }, {
1590 .eraseblocks = { {512 * 1024, 1} },
1591 .block_erase = spi_block_erase_c7,
1592 }
1593 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001594 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001595 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001596 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001597 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001598 .voltage = {2700, 3600}, /* 2.3-3.6V & 2.7-3.6V models available */
FENG yu ningff692fb2008-12-08 18:15:10 +00001599 },
1600
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001601 {
1602 .vendor = "Atmel",
1603 .name = "AT25DF081",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001604 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001605 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001606 .model_id = ATMEL_AT25DF081,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001607 .total_size = 1024,
1608 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001609 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001610 .tested = TEST_UNTESTED,
1611 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001612 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001613 .block_erasers =
1614 {
1615 {
1616 .eraseblocks = { {4 * 1024, 256} },
1617 .block_erase = spi_block_erase_20,
1618 }, {
1619 .eraseblocks = { {32 * 1024, 32} },
1620 .block_erase = spi_block_erase_52,
1621 }, {
1622 .eraseblocks = { {64 * 1024, 16} },
1623 .block_erase = spi_block_erase_d8,
1624 }, {
1625 .eraseblocks = { {1024 * 1024, 1} },
1626 .block_erase = spi_block_erase_60,
1627 }, {
1628 .eraseblocks = { {1024 * 1024, 1} },
1629 .block_erase = spi_block_erase_c7,
1630 }
1631 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001632 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001633 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001634 .write = spi_chip_write_256,
1635 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001636 .voltage = {1600, 2000}, /* Datasheet says range is 1.65-1.95 V */
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001637 },
1638
1639 {
1640 .vendor = "Atmel",
1641 .name = "AT25DF081A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001642 .bustype = BUS_SPI,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001643 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001644 .model_id = ATMEL_AT25DF081A,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001645 .total_size = 1024,
1646 .page_size = 256,
1647 .feature_bits = FEATURE_WRSR_WREN,
1648 .tested = TEST_UNTESTED,
1649 .probe = probe_spi_rdid,
1650 .probe_timing = TIMING_ZERO,
1651 .block_erasers =
1652 {
1653 {
1654 .eraseblocks = { {4 * 1024, 256} },
1655 .block_erase = spi_block_erase_20,
1656 }, {
1657 .eraseblocks = { {32 * 1024, 32} },
1658 .block_erase = spi_block_erase_52,
1659 }, {
1660 .eraseblocks = { {64 * 1024, 16} },
1661 .block_erase = spi_block_erase_d8,
1662 }, {
1663 .eraseblocks = { {1024 * 1024, 1} },
1664 .block_erase = spi_block_erase_60,
1665 }, {
1666 .eraseblocks = { {1024 * 1024, 1} },
1667 .block_erase = spi_block_erase_c7,
1668 }
1669 },
1670 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001671 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001672 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001673 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001674 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001675 },
1676
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001677 {
1678 .vendor = "Atmel",
1679 .name = "AT25DF161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001680 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001681 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001682 .model_id = ATMEL_AT25DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001683 .total_size = 2048,
1684 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001685 .feature_bits = FEATURE_WRSR_WREN,
Angel Pons8b5b9622018-09-30 19:13:15 +02001686 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001687 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001688 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001689 .block_erasers =
1690 {
1691 {
1692 .eraseblocks = { {4 * 1024, 512} },
1693 .block_erase = spi_block_erase_20,
1694 }, {
1695 .eraseblocks = { {32 * 1024, 64} },
1696 .block_erase = spi_block_erase_52,
1697 }, {
1698 .eraseblocks = { {64 * 1024, 32} },
1699 .block_erase = spi_block_erase_d8,
1700 }, {
1701 .eraseblocks = { {2 * 1024 * 1024, 1} },
1702 .block_erase = spi_block_erase_60,
1703 }, {
1704 .eraseblocks = { {2 * 1024 * 1024, 1} },
1705 .block_erase = spi_block_erase_c7,
1706 }
1707 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001708 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001709 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001710 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001711 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001712 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001713 },
1714
Alan Green86bf6ab2019-06-27 16:58:20 +10001715 /*The AT26DF321 has the same ID as the AT25DF321. */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001716 {
1717 .vendor = "Atmel",
1718 .name = "AT25DF321",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001719 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001720 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001721 .model_id = ATMEL_AT25DF321,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001722 .total_size = 4096,
1723 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001724 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd06d9412011-06-12 19:47:55 +00001725 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001726 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001727 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001728 .block_erasers =
1729 {
1730 {
1731 .eraseblocks = { {4 * 1024, 1024} },
1732 .block_erase = spi_block_erase_20,
1733 }, {
1734 .eraseblocks = { {32 * 1024, 128} },
1735 .block_erase = spi_block_erase_52,
1736 }, {
1737 .eraseblocks = { {64 * 1024, 64} },
1738 .block_erase = spi_block_erase_d8,
1739 }, {
1740 .eraseblocks = { {4 * 1024 * 1024, 1} },
1741 .block_erase = spi_block_erase_60,
1742 }, {
1743 .eraseblocks = { {4 * 1024 * 1024, 1} },
1744 .block_erase = spi_block_erase_c7,
1745 }
1746 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001747 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001748 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001749 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001750 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001751 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001752 },
1753
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001754 {
1755 .vendor = "Atmel",
1756 .name = "AT25DF321A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001757 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001758 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001759 .model_id = ATMEL_AT25DF321A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001760 .total_size = 4096,
1761 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001762 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1763 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00001764 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001765 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001766 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001767 .block_erasers =
1768 {
1769 {
1770 .eraseblocks = { {4 * 1024, 1024} },
1771 .block_erase = spi_block_erase_20,
1772 }, {
1773 .eraseblocks = { {32 * 1024, 128} },
1774 .block_erase = spi_block_erase_52,
1775 }, {
1776 .eraseblocks = { {64 * 1024, 64} },
1777 .block_erase = spi_block_erase_d8,
1778 }, {
1779 .eraseblocks = { {4 * 1024 * 1024, 1} },
1780 .block_erase = spi_block_erase_60,
1781 }, {
1782 .eraseblocks = { {4 * 1024 * 1024, 1} },
1783 .block_erase = spi_block_erase_c7,
1784 }
1785 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001786 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001787 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001788 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001789 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001790 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001791 },
1792
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001793 {
1794 .vendor = "Atmel",
Paul Menzelac427b22012-02-16 21:07:07 +00001795 .name = "AT25DF641(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001796 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001797 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001798 .model_id = ATMEL_AT25DF641,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001799 .total_size = 8192,
1800 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001801 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00001802 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001803 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001804 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001805 .block_erasers =
1806 {
1807 {
1808 .eraseblocks = { {4 * 1024, 2048} },
1809 .block_erase = spi_block_erase_20,
1810 }, {
1811 .eraseblocks = { {32 * 1024, 256} },
1812 .block_erase = spi_block_erase_52,
1813 }, {
1814 .eraseblocks = { {64 * 1024, 128} },
1815 .block_erase = spi_block_erase_d8,
1816 }, {
1817 .eraseblocks = { {8 * 1024 * 1024, 1} },
1818 .block_erase = spi_block_erase_60,
1819 }, {
1820 .eraseblocks = { {8 * 1024 * 1024, 1} },
1821 .block_erase = spi_block_erase_c7,
1822 }
1823 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001824 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001825 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001826 .write = spi_chip_write_256,
1827 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001828 .voltage = {2700, 3600},
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001829 },
1830
1831 {
1832 .vendor = "Atmel",
Stefan Taunerc9d8b272014-06-01 13:22:35 +00001833 .name = "AT25DL081",
1834 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +10001835 .manufacture_id = ATMEL_ID,
Stefan Taunerc9d8b272014-06-01 13:22:35 +00001836 .model_id = ATMEL_AT25DF081,
1837 .total_size = 1024,
1838 .page_size = 256,
1839 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1840 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
1841 .tested = TEST_UNTESTED,
1842 .probe = probe_spi_rdid,
1843 .probe_timing = TIMING_ZERO,
1844 .block_erasers =
1845 {
1846 {
1847 .eraseblocks = { {4 * 1024, 256} },
1848 .block_erase = spi_block_erase_20,
1849 }, {
1850 .eraseblocks = { {32 * 1024, 32} },
1851 .block_erase = spi_block_erase_52,
1852 }, {
1853 .eraseblocks = { {64 * 1024, 16} },
1854 .block_erase = spi_block_erase_d8,
1855 }, {
1856 .eraseblocks = { {1 * 1024 * 1024, 1} },
1857 .block_erase = spi_block_erase_60,
1858 }, {
1859 .eraseblocks = { {1 * 1024 * 1024, 1} },
1860 .block_erase = spi_block_erase_c7,
1861 }
1862 },
1863 .printlock = spi_prettyprint_status_register_at25df_sec,
1864 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
1865 .write = spi_chip_write_256, /* Dual I/O (0xA2) supported */
1866 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
1867 .voltage = {1650, 1950},
1868 },
1869
1870 {
1871 .vendor = "Atmel",
1872 .name = "AT25DL161",
1873 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +10001874 .manufacture_id = ATMEL_ID,
Stefan Taunerc9d8b272014-06-01 13:22:35 +00001875 .model_id = ATMEL_AT25DL161,
1876 .total_size = 2048,
1877 .page_size = 256,
1878 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1879 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
1880 .tested = TEST_UNTESTED,
1881 .probe = probe_spi_rdid,
1882 .probe_timing = TIMING_ZERO,
1883 .block_erasers =
1884 {
1885 {
1886 .eraseblocks = { {4 * 1024, 512} },
1887 .block_erase = spi_block_erase_20,
1888 }, {
1889 .eraseblocks = { {32 * 1024, 64} },
1890 .block_erase = spi_block_erase_52,
1891 }, {
1892 .eraseblocks = { {64 * 1024, 32} },
1893 .block_erase = spi_block_erase_d8,
1894 }, {
1895 .eraseblocks = { {2 * 1024 * 1024, 1} },
1896 .block_erase = spi_block_erase_60,
1897 }, {
1898 .eraseblocks = { {2 * 1024 * 1024, 1} },
1899 .block_erase = spi_block_erase_c7,
1900 }
1901 },
1902 .printlock = spi_prettyprint_status_register_at25df_sec,
1903 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
1904 .write = spi_chip_write_256, /* Dual I/O (0xA2) supported */
1905 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
1906 .voltage = {1650, 1950},
1907 },
1908
1909 {
1910 .vendor = "Atmel",
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001911 .name = "AT25DQ161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001912 .bustype = BUS_SPI,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001913 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001914 .model_id = ATMEL_AT25DQ161,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001915 .total_size = 2048,
1916 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001917 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1918 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001919 .tested = TEST_UNTESTED,
1920 .probe = probe_spi_rdid,
1921 .probe_timing = TIMING_ZERO,
1922 .block_erasers =
1923 {
1924 {
1925 .eraseblocks = { {4 * 1024, 512} },
1926 .block_erase = spi_block_erase_20,
1927 }, {
1928 .eraseblocks = { {32 * 1024, 64} },
1929 .block_erase = spi_block_erase_52,
1930 }, {
1931 .eraseblocks = { {64 * 1024, 32} },
1932 .block_erase = spi_block_erase_d8,
1933 }, {
1934 .eraseblocks = { {2 * 1024 * 1024, 1} },
1935 .block_erase = spi_block_erase_60,
1936 }, {
1937 .eraseblocks = { {2 * 1024 * 1024, 1} },
1938 .block_erase = spi_block_erase_c7,
1939 }
1940 },
1941 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001942 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001943 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001944 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001945 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001946 },
1947
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001948 {
1949 .vendor = "Atmel",
Alan Green1f9cc7d2019-07-01 11:10:45 +10001950 /* The A suffix indicates 33MHz instead of 20MHz clock rate.
1951 * All other properties seem to be the same.*/
1952 .name = "AT25F1024(A)",
1953 .bustype = BUS_SPI,
1954 .manufacture_id = ATMEL_ID,
1955 .model_id = ATMEL_AT25F1024,
1956 .total_size = 128,
1957 .page_size = 256,
1958 .feature_bits = FEATURE_WRSR_WREN,
1959 .tested = TEST_OK_PREW,
1960 .probe = probe_spi_at25f,
1961 .probe_timing = TIMING_ZERO,
1962 .block_erasers =
1963 {
1964 {
1965 .eraseblocks = { {32 * 1024, 4} },
1966 .block_erase = spi_block_erase_52,
1967 }, {
1968 .eraseblocks = { {128 * 1024, 1} },
1969 .block_erase = spi_block_erase_62,
1970 }
1971 },
1972 .printlock = spi_prettyprint_status_register_at25f,
1973 .unlock = spi_disable_blockprotect_at25f,
1974 .write = spi_chip_write_256,
1975 .read = spi_chip_read,
1976 .voltage = {2700, 3600},
1977 },
1978
1979 {
1980 .vendor = "Atmel",
1981 .name = "AT25F2048",
1982 .bustype = BUS_SPI,
1983 .manufacture_id = ATMEL_ID,
1984 .model_id = ATMEL_AT25F2048,
1985 .total_size = 256,
1986 .page_size = 256,
1987 .feature_bits = FEATURE_WRSR_WREN,
1988 .tested = TEST_UNTESTED,
1989 .probe = probe_spi_at25f,
1990 .probe_timing = TIMING_ZERO,
1991 .block_erasers =
1992 {
1993 {
1994 .eraseblocks = { {64 * 1024, 4} },
1995 .block_erase = spi_block_erase_52,
1996 }, {
1997 .eraseblocks = { {256 * 1024, 1} },
1998 .block_erase = spi_block_erase_62,
1999 }
2000 },
2001 .printlock = spi_prettyprint_status_register_at25f,
2002 .unlock = spi_disable_blockprotect_at25f,
2003 .write = spi_chip_write_256,
2004 .read = spi_chip_read,
2005 .voltage = {2700, 3600},
2006 },
2007
2008 {
2009 .vendor = "Atmel",
2010 .name = "AT25F4096",
2011 .bustype = BUS_SPI,
2012 .manufacture_id = ATMEL_ID,
2013 .model_id = ATMEL_AT25F4096,
2014 .total_size = 512,
2015 .page_size = 256,
2016 .feature_bits = FEATURE_WRSR_WREN,
2017 .tested = TEST_OK_PREW,
2018 .probe = probe_spi_at25f,
2019 .probe_timing = TIMING_ZERO,
2020 .block_erasers =
2021 {
2022 {
2023 .eraseblocks = { {64 * 1024, 8} },
2024 .block_erase = spi_block_erase_52,
2025 }, {
2026 .eraseblocks = { {512 * 1024, 1} },
2027 .block_erase = spi_block_erase_62,
2028 }
2029 },
2030 .printlock = spi_prettyprint_status_register_at25f4096,
2031 /* "Bits 5-6 are 0s when device is not in an internal write cycle." Better leave them alone: */
2032 .unlock = spi_disable_blockprotect_bp2_srwd,
2033 .write = spi_chip_write_256,
2034 .read = spi_chip_read,
2035 .voltage = {2700, 3600},
2036 },
2037
2038 {
2039 .vendor = "Atmel",
Stefan Tauner57794ac2012-12-29 15:04:20 +00002040 .name = "AT25F512",
2041 .bustype = BUS_SPI,
2042 .manufacture_id = ATMEL_ID,
2043 .model_id = ATMEL_AT25F512,
2044 .total_size = 64,
2045 .page_size = 256,
2046 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00002047 .tested = TEST_OK_PREW,
Stefan Tauner57794ac2012-12-29 15:04:20 +00002048 .probe = probe_spi_at25f,
2049 .probe_timing = TIMING_ZERO,
2050 .block_erasers =
2051 {
2052 {
2053 .eraseblocks = { {32 * 1024, 2} },
2054 .block_erase = spi_block_erase_52,
2055 }, {
2056 .eraseblocks = { {64 * 1024, 1} },
2057 .block_erase = spi_block_erase_62,
2058 }
2059 },
2060 .printlock = spi_prettyprint_status_register_at25f,
2061 .unlock = spi_disable_blockprotect_at25f,
2062 .write = spi_chip_write_256,
2063 .read = spi_chip_read,
2064 .voltage = {2700, 3600},
2065 },
2066
2067 {
2068 .vendor = "Atmel",
2069 .name = "AT25F512A",
2070 .bustype = BUS_SPI,
2071 .manufacture_id = ATMEL_ID,
2072 .model_id = ATMEL_AT25F512A,
2073 .total_size = 64,
2074 .page_size = 128,
2075 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00002076 .tested = TEST_OK_PREW,
Stefan Tauner57794ac2012-12-29 15:04:20 +00002077 .probe = probe_spi_at25f,
2078 .probe_timing = TIMING_ZERO,
2079 .block_erasers =
2080 {
2081 {
2082 .eraseblocks = { {32 * 1024, 2} },
2083 .block_erase = spi_block_erase_52,
2084 }, {
2085 .eraseblocks = { {64 * 1024, 1} },
2086 .block_erase = spi_block_erase_62,
2087 }
2088 },
2089 .printlock = spi_prettyprint_status_register_at25f512a,
2090 /* FIXME: It is not correct to use this one, because the BP1 bit is N/A. */
2091 .unlock = spi_disable_blockprotect_at25f512a,
2092 .write = spi_chip_write_256,
2093 .read = spi_chip_read,
2094 .voltage = {2700, 3600},
2095 },
2096
2097 {
2098 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002099 .name = "AT25F512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002100 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002101 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002102 .model_id = ATMEL_AT25F512B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002103 .total_size = 64,
2104 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00002105 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2106 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002107 .tested = TEST_UNTESTED,
2108 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002109 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002110 .block_erasers =
2111 {
2112 {
2113 .eraseblocks = { {4 * 1024, 16} },
2114 .block_erase = spi_block_erase_20,
2115 }, {
2116 .eraseblocks = { {32 * 1024, 2} },
2117 .block_erase = spi_block_erase_52,
2118 }, {
2119 .eraseblocks = { {32 * 1024, 2} },
2120 .block_erase = spi_block_erase_d8,
2121 }, {
2122 .eraseblocks = { {64 * 1024, 1} },
2123 .block_erase = spi_block_erase_60,
2124 }, {
2125 .eraseblocks = { {64 * 1024, 1} },
2126 .block_erase = spi_block_erase_c7,
Stefan Tauner3c0fcd02012-09-21 12:46:56 +00002127 }, {
2128 .eraseblocks = { {64 * 1024, 1} },
2129 .block_erase = spi_block_erase_62,
Sean Nelson89187292009-12-23 12:02:55 +00002130 }
2131 },
Stefan Tauner7bf4ed92012-08-26 21:04:27 +00002132 .printlock = spi_prettyprint_status_register_at25f512b,
2133 .unlock = spi_disable_blockprotect_at25f512b,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002134 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002135 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002136 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002137 },
2138
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002139 {
2140 .vendor = "Atmel",
2141 .name = "AT25FS010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002142 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002143 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002144 .model_id = ATMEL_AT25FS010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002145 .total_size = 128,
2146 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002147 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00002148 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002149 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002150 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002151 .block_erasers =
2152 {
2153 {
2154 .eraseblocks = { {4 * 1024, 32} },
2155 .block_erase = spi_block_erase_20,
2156 }, {
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00002157 .eraseblocks = { {4 * 1024, 32} },
2158 .block_erase = spi_block_erase_d7,
2159 }, {
Sean Nelson89187292009-12-23 12:02:55 +00002160 .eraseblocks = { {32 * 1024, 4} },
2161 .block_erase = spi_block_erase_52,
2162 }, {
2163 .eraseblocks = { {32 * 1024, 4} },
2164 .block_erase = spi_block_erase_d8,
2165 }, {
2166 .eraseblocks = { {128 * 1024, 1} },
2167 .block_erase = spi_block_erase_60,
2168 }, {
2169 .eraseblocks = { {128 * 1024, 1} },
2170 .block_erase = spi_block_erase_c7,
2171 }
2172 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00002173 .printlock = spi_prettyprint_status_register_at25fs010,
2174 .unlock = spi_disable_blockprotect_at25fs010,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002175 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002176 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002177 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002178 },
2179
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002180 {
2181 .vendor = "Atmel",
2182 .name = "AT25FS040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002183 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002184 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002185 .model_id = ATMEL_AT25FS040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002186 .total_size = 512,
2187 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002188 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002189 .tested = TEST_UNTESTED,
2190 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002191 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002192 .block_erasers =
2193 {
2194 {
2195 .eraseblocks = { {4 * 1024, 128} },
2196 .block_erase = spi_block_erase_20,
2197 }, {
2198 .eraseblocks = { {64 * 1024, 8} },
2199 .block_erase = spi_block_erase_52,
2200 }, {
2201 .eraseblocks = { {64 * 1024, 8} },
2202 .block_erase = spi_block_erase_d8,
2203 }, {
2204 .eraseblocks = { {512 * 1024, 1} },
2205 .block_erase = spi_block_erase_60,
2206 }, {
2207 .eraseblocks = { {512 * 1024, 1} },
2208 .block_erase = spi_block_erase_c7,
2209 }
2210 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00002211 .printlock = spi_prettyprint_status_register_at25fs040,
2212 .unlock = spi_disable_blockprotect_at25fs040,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002213 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002214 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002215 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002216 },
2217
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002218 {
2219 .vendor = "Atmel",
jvma3ab6c62018-03-08 15:43:20 +01002220 .name = "AT25SF041",
2221 .bustype = BUS_SPI,
2222 .manufacture_id = ATMEL_ID,
2223 .model_id = ATMEL_AT25SF041,
2224 .total_size = 512,
2225 .page_size = 256,
2226 .feature_bits = FEATURE_WRSR_WREN,
2227 .tested = TEST_OK_PREW,
2228 .probe = probe_spi_rdid,
2229 .probe_timing = TIMING_ZERO,
2230 .block_erasers =
2231 {
2232 {
2233 .eraseblocks = { {4 * 1024, 128} },
2234 .block_erase = spi_block_erase_20,
2235 }, {
2236 .eraseblocks = { {32 * 1024, 16} },
2237 .block_erase = spi_block_erase_52,
2238 }, {
2239 .eraseblocks = { {64 * 1024, 8} },
2240 .block_erase = spi_block_erase_d8,
2241 }, {
2242 .eraseblocks = { {512 * 1024, 1} },
2243 .block_erase = spi_block_erase_60,
2244 }, {
2245 .eraseblocks = { {512 * 1024, 1} },
2246 .block_erase = spi_block_erase_c7,
2247 }
2248 },
2249 .printlock = spi_prettyprint_status_register_plain,
2250 .unlock = spi_disable_blockprotect,
2251 .write = spi_chip_write_256,
2252 .read = spi_chip_read,
2253 .voltage = {2500, 3600},
2254 },
2255
2256 {
2257 .vendor = "Atmel",
Evan Jensen291c1012018-05-17 14:30:19 -07002258 .name = "AT25SF081",
2259 .bustype = BUS_SPI,
2260 .manufacture_id = ATMEL_ID,
2261 .model_id = ATMEL_AT25SF081,
2262 .total_size = 1024,
2263 .page_size = 256,
2264 .feature_bits = FEATURE_WRSR_WREN,
2265 .tested = TEST_OK_PREW,
2266 .probe = probe_spi_rdid,
2267 .probe_timing = TIMING_ZERO,
2268 .block_erasers =
2269 {
2270 {
2271 .eraseblocks = { {4 * 1024, 256} },
2272 .block_erase = spi_block_erase_20,
2273 }, {
2274 .eraseblocks = { {32 * 1024, 32} },
2275 .block_erase = spi_block_erase_52,
2276 }, {
2277 .eraseblocks = { {64 * 1024, 16} },
2278 .block_erase = spi_block_erase_d8,
2279 }, {
2280 .eraseblocks = { {1024 * 1024, 1} },
2281 .block_erase = spi_block_erase_60,
2282 }, {
2283 .eraseblocks = { {1024 * 1024, 1} },
2284 .block_erase = spi_block_erase_c7,
2285 }
2286 },
2287 .printlock = spi_prettyprint_status_register_plain,
2288 .unlock = spi_disable_blockprotect,
2289 .write = spi_chip_write_256,
2290 .read = spi_chip_read,
2291 .voltage = {2300, 3600},
2292 },
2293
2294 {
2295 .vendor = "Atmel",
Stanislav Sedovf5775442018-03-07 14:16:51 -08002296 .name = "AT25SF161",
2297 .bustype = BUS_SPI,
2298 .manufacture_id = ATMEL_ID,
2299 .model_id = ATMEL_AT25SF161,
2300 .total_size = 2048,
2301 .page_size = 256,
2302 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
2303 .tested = TEST_OK_PREW,
2304 .probe = probe_spi_rdid,
2305 .probe_timing = TIMING_ZERO,
2306 .block_erasers =
2307 {
2308 {
2309 .eraseblocks = { {4 * 1024, 512} },
2310 .block_erase = spi_block_erase_20,
2311 }, {
2312 .eraseblocks = { {32 * 1024, 64} },
2313 .block_erase = spi_block_erase_52,
2314 }, {
2315 .eraseblocks = { {64 * 1024, 32} },
2316 .block_erase = spi_block_erase_d8,
2317 }, {
2318 .eraseblocks = { {2048 * 1024, 1} },
2319 .block_erase = spi_block_erase_60,
2320 }, {
2321 .eraseblocks = { {2048 * 1024, 1} },
2322 .block_erase = spi_block_erase_c7,
2323 }
2324 },
2325 .printlock = spi_prettyprint_status_register_plain,
2326 .unlock = spi_disable_blockprotect,
2327 .write = spi_chip_write_256,
2328 .read = spi_chip_read,
2329 .voltage = {2500, 3600},
2330 },
2331
2332 {
Alan Green57938f82019-06-27 15:06:43 +10002333 .vendor = "Atmel",
darkarnium41394382019-11-04 20:06:48 +00002334 .name = "AT25SF321",
2335 .bustype = BUS_SPI,
2336 .manufacture_id = ATMEL_ID,
2337 .model_id = ATMEL_AT25SF321,
2338 .total_size = 4096,
2339 .page_size = 256,
2340 .feature_bits = FEATURE_WRSR_WREN,
2341 .tested = TEST_OK_PR,
2342 .probe = probe_spi_rdid,
2343 .probe_timing = TIMING_ZERO,
2344 .block_erasers =
2345 {
2346 {
2347 .eraseblocks = { {4 * 1024, 1024} },
2348 .block_erase = spi_block_erase_20,
2349 }, {
2350 .eraseblocks = { {32 * 1024, 128} },
2351 .block_erase = spi_block_erase_52,
2352 }, {
2353 .eraseblocks = { {64 * 1024, 64} },
2354 .block_erase = spi_block_erase_d8,
2355 }, {
2356 .eraseblocks = { {4096 * 1024, 1} },
2357 .block_erase = spi_block_erase_60,
2358 }, {
2359 .eraseblocks = { {4096 * 1024, 1} },
2360 .block_erase = spi_block_erase_c7,
2361 }
2362 },
2363 .printlock = spi_prettyprint_status_register_plain,
2364 .unlock = spi_disable_blockprotect,
2365 .write = spi_chip_write_256,
2366 .read = spi_chip_read,
2367 .voltage = {2500, 3600},
2368 },
2369
2370 {
2371 .vendor = "Atmel",
Hal Martin49e23d22018-05-27 14:18:43 +02002372 .name = "AT25SL128A",
2373 .bustype = BUS_SPI,
2374 .manufacture_id = ATMEL_ID,
2375 .model_id = ATMEL_AT25SL128A,
2376 .total_size = 16384,
2377 .page_size = 256,
2378 /* supports SFDP */
2379 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
2380 .tested = TEST_OK_PREW,
2381 .probe = probe_spi_rdid,
2382 .probe_timing = TIMING_ZERO,
2383 .block_erasers =
2384 {
2385 {
2386 .eraseblocks = { {4 * 1024, 4096} },
2387 .block_erase = spi_block_erase_20,
2388 }, {
2389 .eraseblocks = { {32 * 1024, 512} },
2390 .block_erase = spi_block_erase_52,
2391 }, {
2392 .eraseblocks = { {64 * 1024, 256} },
2393 .block_erase = spi_block_erase_d8,
2394 }, {
2395 .eraseblocks = { {16 * 1024 * 1024, 1} },
2396 .block_erase = spi_block_erase_60,
2397 }, {
2398 .eraseblocks = { {16 * 1024 * 1024, 1} },
2399 .block_erase = spi_block_erase_c7,
2400 }
2401 },
2402 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
2403 .unlock = spi_disable_blockprotect,
2404 .write = spi_chip_write_256,
2405 .read = spi_chip_read,
2406 .voltage = {1700, 2000},
2407 },
2408
2409 {
Stanislav Sedovf5775442018-03-07 14:16:51 -08002410 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002411 .name = "AT26DF041",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002412 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002413 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002414 .model_id = ATMEL_AT26DF041,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002415 .total_size = 512,
2416 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002417 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner94b39b42012-10-27 00:06:02 +00002418 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002419 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002420 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002421 .block_erasers =
2422 {
2423 {
Stefan Tauner94b39b42012-10-27 00:06:02 +00002424 .eraseblocks = { {256, 2048} },
2425 .block_erase = spi_block_erase_81,
2426 }, {
2427 .eraseblocks = { {2 * 1024, 256} },
2428 .block_erase = spi_block_erase_50,
2429 }, {
Sean Nelson89187292009-12-23 12:02:55 +00002430 .eraseblocks = { {4 * 1024, 128} },
2431 .block_erase = spi_block_erase_20,
2432 }
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002433 },
Stefan Taunercecb2c52013-06-20 22:55:41 +00002434 .printlock = spi_prettyprint_status_register_plain,
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002435 /* Supports also an incompatible page write (of exactly 256 B) and an auto-erasing write. */
Stefan Tauner94b39b42012-10-27 00:06:02 +00002436 .write = spi_chip_write_1,
2437 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002438 .voltage = {2700, 3600}, /* 3.0-3.6V for higher speed, 2.7-3.6V normal */
FENG yu ningff692fb2008-12-08 18:15:10 +00002439 },
2440
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002441 {
2442 .vendor = "Atmel",
2443 .name = "AT26DF081A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002444 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002445 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002446 .model_id = ATMEL_AT26DF081A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002447 .total_size = 1024,
2448 .page_size = 256,
Mathias Krause2c3afa32011-01-17 07:45:54 +00002449 .feature_bits = FEATURE_WRSR_WREN,
2450 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002451 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002452 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002453 .block_erasers =
2454 {
2455 {
2456 .eraseblocks = { {4 * 1024, 256} },
2457 .block_erase = spi_block_erase_20,
2458 }, {
2459 .eraseblocks = { {32 * 1024, 32} },
2460 .block_erase = spi_block_erase_52,
2461 }, {
2462 .eraseblocks = { {64 * 1024, 16} },
2463 .block_erase = spi_block_erase_d8,
2464 }, {
2465 .eraseblocks = { {1024 * 1024, 1} },
2466 .block_erase = spi_block_erase_60,
2467 }, {
2468 .eraseblocks = { {1024 * 1024, 1} },
2469 .block_erase = spi_block_erase_c7,
2470 }
2471 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002472 .printlock = spi_prettyprint_status_register_at26df081a,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002473 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002474 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002475 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002476 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002477 },
2478
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002479 {
2480 .vendor = "Atmel",
2481 .name = "AT26DF161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002482 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002483 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002484 .model_id = ATMEL_AT26DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002485 .total_size = 2048,
2486 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002487 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +00002488 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002489 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002490 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002491 .block_erasers =
2492 {
2493 {
2494 .eraseblocks = { {4 * 1024, 512} },
2495 .block_erase = spi_block_erase_20,
2496 }, {
2497 .eraseblocks = { {32 * 1024, 64} },
2498 .block_erase = spi_block_erase_52,
2499 }, {
2500 .eraseblocks = { {64 * 1024, 32} },
2501 .block_erase = spi_block_erase_d8,
2502 }, {
2503 .eraseblocks = { {2 * 1024 * 1024, 1} },
2504 .block_erase = spi_block_erase_60,
2505 }, {
2506 .eraseblocks = { {2 * 1024 * 1024, 1} },
2507 .block_erase = spi_block_erase_c7,
2508 }
2509 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00002510 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002511 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002512 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002513 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002514 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002515 },
2516
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002517 {
2518 .vendor = "Atmel",
2519 .name = "AT26DF161A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002520 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002521 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002522 .model_id = ATMEL_AT26DF161A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002523 .total_size = 2048,
2524 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002525 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002526 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002527 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002528 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002529 .block_erasers =
2530 {
2531 {
2532 .eraseblocks = { {4 * 1024, 512} },
2533 .block_erase = spi_block_erase_20,
2534 }, {
2535 .eraseblocks = { {32 * 1024, 64} },
2536 .block_erase = spi_block_erase_52,
2537 }, {
2538 .eraseblocks = { {64 * 1024, 32} },
2539 .block_erase = spi_block_erase_d8,
2540 }, {
2541 .eraseblocks = { {2 * 1024 * 1024, 1} },
2542 .block_erase = spi_block_erase_60,
2543 }, {
2544 .eraseblocks = { {2 * 1024 * 1024, 1} },
2545 .block_erase = spi_block_erase_c7,
2546 }
2547 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002548 .printlock = spi_prettyprint_status_register_at26df081a,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002549 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002550 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002551 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002552 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002553 },
2554
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002555 {
2556 .vendor = "Atmel",
2557 .name = "AT26F004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002558 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002559 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002560 .model_id = ATMEL_AT26F004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002561 .total_size = 512,
2562 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002563 .feature_bits = FEATURE_WRSR_WREN,
Alan Green908adf42019-07-03 15:34:06 +10002564 .tested = {.probe = NT, .read = NT, .erase = NT, .write = BAD},
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002565 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002566 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002567 .block_erasers =
2568 {
2569 {
2570 .eraseblocks = { {4 * 1024, 128} },
2571 .block_erase = spi_block_erase_20,
2572 }, {
2573 .eraseblocks = { {32 * 1024, 16} },
2574 .block_erase = spi_block_erase_52,
2575 }, {
2576 .eraseblocks = { {64 * 1024, 8} },
2577 .block_erase = spi_block_erase_d8,
2578 }, {
2579 .eraseblocks = { {512 * 1024, 1} },
2580 .block_erase = spi_block_erase_60,
2581 }, {
2582 .eraseblocks = { {512 * 1024, 1} },
2583 .block_erase = spi_block_erase_c7,
2584 }
2585 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002586 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Alan Greencbb85c02019-06-25 13:42:34 +10002587 .write = NULL, /* Incompatible Page write */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002588 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002589 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002590 },
2591
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002592 {
2593 .vendor = "Atmel",
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002594 .name = "AT29C010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002595 .bustype = BUS_PARALLEL,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002596 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002597 .model_id = ATMEL_AT29C010A,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002598 .total_size = 128,
2599 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00002600 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002601 .tested = TEST_OK_PRE,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002602 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00002603 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00002604 .block_erasers =
2605 {
2606 {
2607 .eraseblocks = { {128 * 1024, 1} },
2608 .block_erase = erase_chip_block_jedec,
2609 }
2610 },
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002611 .write = write_jedec, /* FIXME */
2612 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002613 .voltage = {4500, 5500},
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002614 },
2615
2616 {
2617 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002618 .name = "AT29C020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002619 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002620 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002621 .model_id = ATMEL_AT29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002622 .total_size = 256,
2623 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002624 .feature_bits = FEATURE_LONG_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00002625 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002626 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00002627 .probe_timing = 10000, /* 10ms */
Sean Nelson89187292009-12-23 12:02:55 +00002628 .block_erasers =
2629 {
2630 {
2631 .eraseblocks = { {256 * 1024, 1} },
2632 .block_erase = erase_chip_block_jedec,
2633 }
2634 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002635 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002636 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002637 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002638 },
2639
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002640 {
2641 .vendor = "Atmel",
2642 .name = "AT29C040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002643 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002644 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002645 .model_id = ATMEL_AT29C040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002646 .total_size = 512,
2647 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002648 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002649 .tested = TEST_UNTESTED,
2650 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00002651 .probe_timing = 10000, /* 10 ms */
Sean Nelson89187292009-12-23 12:02:55 +00002652 .block_erasers =
2653 {
2654 {
2655 .eraseblocks = { {512 * 1024, 1} },
2656 .block_erase = erase_chip_block_jedec,
2657 }
2658 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002659 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002660 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002661 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002662 },
2663
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002664 {
2665 .vendor = "Atmel",
Alan Green1f9cc7d2019-07-01 11:10:45 +10002666 .name = "AT29C512",
2667 .bustype = BUS_PARALLEL,
2668 .manufacture_id = ATMEL_ID,
2669 .model_id = ATMEL_AT29C512,
2670 .total_size = 64,
2671 .page_size = 128,
2672 .feature_bits = FEATURE_LONG_RESET,
2673 .tested = TEST_OK_PREW,
2674 .probe = probe_jedec,
2675 .probe_timing = 10000, /* 10mS, Enter=Exec */
2676 .block_erasers =
2677 {
2678 {
2679 .eraseblocks = { {64 * 1024, 1} },
2680 .block_erase = erase_chip_block_jedec,
2681 }
2682 },
2683 .write = write_jedec,
2684 .read = read_memmapped,
2685 .voltage = {4500, 5500},
2686 },
2687
2688 {
2689 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002690 .name = "AT45CS1282",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002691 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002692 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002693 .model_id = ATMEL_AT45CS1282,
Alan Greencbb85c02019-06-25 13:42:34 +10002694 .total_size = 16896, /* No power of two sizes */
2695 .page_size = 1056, /* No power of two sizes */
Steven Zakulec3603a282012-05-02 20:07:57 +00002696 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner1dd5d3a2013-08-27 18:02:19 +00002697 /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */
2698 .feature_bits = FEATURE_OTP,
2699 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002700 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002701 .probe_timing = TIMING_ZERO,
Stefan Tauner1dd5d3a2013-08-27 18:02:19 +00002702 .block_erasers =
2703 {
2704 {
2705 .eraseblocks = {
2706 {8 * 1056, 1}, /* sector 0a: opcode 50h */
2707 {248 * 1056, 1}, /* sector 0b: opcode 7Ch */
2708 {256 * 1056, 63}, /* sectors 1 - 63: opcode 7Ch */
2709 },
2710 .block_erase = spi_erase_at45cs_sector,
2711 }
2712 },
2713 .printlock = spi_prettyprint_status_register_plain,
Stefan Tauner1dd5d3a2013-08-27 18:02:19 +00002714 .write = spi_write_at45db,
2715 .read = spi_read_at45db,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002716 .voltage = {2700, 3600},
Alan Greenc1863ca2019-06-27 15:08:03 +10002717 .gran = write_gran_1056bytes,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002718 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002719
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002720 {
2721 .vendor = "Atmel",
2722 .name = "AT45DB011D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002723 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002724 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002725 .model_id = ATMEL_AT45DB011D,
Alan Greencbb85c02019-06-25 13:42:34 +10002726 .total_size = 128, /* or 132, determined from status register */
2727 .page_size = 256, /* or 264, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00002728 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002729 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2730 .feature_bits = FEATURE_OTP,
Stefan Tauner5c316f92015-02-08 21:57:52 +00002731 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002732 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002733 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002734 .block_erasers =
2735 {
2736 {
2737 .eraseblocks = { {256, 512} },
2738 .block_erase = spi_erase_at45db_page,
2739 }, {
2740 .eraseblocks = { {8 * 256, 512/8} },
2741 .block_erase = spi_erase_at45db_block,
2742 }, {
2743 .eraseblocks = {
2744 {8 * 256, 1},
2745 {120 * 256, 1},
2746 {128 * 256, 3},
2747 },
2748 .block_erase = spi_erase_at45db_sector
2749 }, {
2750 .eraseblocks = { {128 * 1024, 1} },
2751 .block_erase = spi_erase_at45db_chip,
2752 }
2753 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002754 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10002755 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002756 /* granularity will be set by the probing function. */
2757 .write = spi_write_at45db,
2758 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002759 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002760 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002761
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002762 {
2763 .vendor = "Atmel",
2764 .name = "AT45DB021D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002765 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002766 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002767 .model_id = ATMEL_AT45DB021D,
Alan Greencbb85c02019-06-25 13:42:34 +10002768 .total_size = 256, /* or 264, determined from status register */
2769 .page_size = 256, /* or 264, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00002770 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002771 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2772 .feature_bits = FEATURE_OTP,
Stefan Tauner6697f712014-08-06 15:09:15 +00002773 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002774 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002775 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002776 .block_erasers =
2777 {
2778 {
2779 .eraseblocks = { {256, 1024} },
2780 .block_erase = spi_erase_at45db_page,
2781 }, {
2782 .eraseblocks = { {8 * 256, 1024/8} },
2783 .block_erase = spi_erase_at45db_block,
2784 }, {
2785 .eraseblocks = {
2786 {8 * 256, 1},
2787 {120 * 256, 1},
2788 {128 * 256, 7},
2789 },
2790 .block_erase = spi_erase_at45db_sector
2791 }, {
2792 .eraseblocks = { {256 * 1024, 1} },
2793 .block_erase = spi_erase_at45db_chip,
2794 }
2795 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002796 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10002797 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002798 /* granularity will be set by the probing function. */
2799 .write = spi_write_at45db,
2800 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002801 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002802 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002803
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002804 {
2805 .vendor = "Atmel",
2806 .name = "AT45DB041D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002807 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002808 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002809 .model_id = ATMEL_AT45DB041D,
Alan Greencbb85c02019-06-25 13:42:34 +10002810 .total_size = 512, /* or 528, determined from status register */
2811 .page_size = 256, /* or 264, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00002812 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002813 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2814 .feature_bits = FEATURE_OTP,
2815 .tested = TEST_OK_PREW,
2816 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002817 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002818 .block_erasers =
2819 {
2820 {
2821 .eraseblocks = { {256, 2048} },
2822 .block_erase = spi_erase_at45db_page,
2823 }, {
2824 .eraseblocks = { {8 * 256, 2048/8} },
2825 .block_erase = spi_erase_at45db_block,
2826 }, {
2827 .eraseblocks = {
2828 {8 * 256, 1},
2829 {248 * 256, 1},
2830 {256 * 256, 7},
2831 },
2832 .block_erase = spi_erase_at45db_sector
2833 }, {
2834 .eraseblocks = { {512 * 1024, 1} },
2835 .block_erase = spi_erase_at45db_chip,
2836 }
2837 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002838 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10002839 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002840 /* granularity will be set by the probing function. */
2841 .write = spi_write_at45db,
2842 .read = spi_read_at45db, /* Fast read (0x0B) supported */
2843 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002844 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002845
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002846 {
2847 .vendor = "Atmel",
2848 .name = "AT45DB081D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002849 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002850 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002851 .model_id = ATMEL_AT45DB081D,
Alan Greencbb85c02019-06-25 13:42:34 +10002852 .total_size = 1024, /* or 1056, determined from status register */
2853 .page_size = 256, /* or 264, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00002854 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002855 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2856 .feature_bits = FEATURE_OTP,
Angel Pons250aeba2018-09-30 20:28:22 +02002857 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002858 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002859 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002860 .block_erasers =
2861 {
2862 {
2863 .eraseblocks = { {256, 4096} },
2864 .block_erase = spi_erase_at45db_page,
2865 }, {
2866 .eraseblocks = { {8 * 256, 4096/8} },
2867 .block_erase = spi_erase_at45db_block,
2868 }, {
2869 .eraseblocks = {
2870 {8 * 256, 1},
2871 {248 * 256, 1},
2872 {256 * 256, 15},
2873 },
2874 .block_erase = spi_erase_at45db_sector
2875 }, {
2876 .eraseblocks = { {1024 * 1024, 1} },
2877 .block_erase = spi_erase_at45db_chip,
2878 }
2879 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002880 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10002881 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002882 /* granularity will be set by the probing function. */
2883 .write = spi_write_at45db,
2884 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002885 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002886 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002887
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002888 {
2889 .vendor = "Atmel",
2890 .name = "AT45DB161D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002891 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002892 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002893 .model_id = ATMEL_AT45DB161D,
Alan Greencbb85c02019-06-25 13:42:34 +10002894 .total_size = 2048, /* or 2112, determined from status register */
2895 .page_size = 512, /* or 528, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00002896 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002897 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2898 .feature_bits = FEATURE_OTP,
2899 .tested = TEST_OK_PREW,
2900 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002901 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002902 .block_erasers =
2903 {
2904 {
2905 .eraseblocks = { {512, 4096} },
2906 .block_erase = spi_erase_at45db_page,
2907 }, {
2908 .eraseblocks = { {8 * 512, 4096/8} },
2909 .block_erase = spi_erase_at45db_block,
2910 }, {
2911 .eraseblocks = {
2912 {8 * 512, 1},
2913 {248 * 512, 1},
2914 {256 * 512, 15},
2915 },
2916 .block_erase = spi_erase_at45db_sector
2917 }, {
2918 .eraseblocks = { {2048 * 1024, 1} },
2919 .block_erase = spi_erase_at45db_chip,
2920 }
2921 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002922 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10002923 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002924 /* granularity will be set by the probing function. */
2925 .write = spi_write_at45db,
2926 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002927 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002928 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002929
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002930 {
2931 .vendor = "Atmel",
2932 .name = "AT45DB321C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002933 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002934 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002935 .model_id = ATMEL_AT45DB321C,
Alan Greencbb85c02019-06-25 13:42:34 +10002936 .total_size = 4224, /* No power of two sizes */
2937 .page_size = 528, /* No power of two sizes */
Steven Zakulec3603a282012-05-02 20:07:57 +00002938 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002939 /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */
2940 .feature_bits = FEATURE_OTP,
2941 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002942 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002943 .probe_timing = TIMING_ZERO,
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002944 .block_erasers =
2945 {
2946 {
2947 .eraseblocks = { {528, 8192} },
2948 .block_erase = spi_erase_at45db_page,
2949 }, {
2950 .eraseblocks = { {8 * 528, 8192/8} },
2951 .block_erase = spi_erase_at45db_block,
2952 }, /* Although the datasheets describes sectors (which can be write protected)
2953 * there seems to be no erase functions for them.
Stefan Tauner23e10b82016-01-23 16:16:49 +00002954 {
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002955 .eraseblocks = {
2956 {8 * 528, 1},
2957 {120 * 528, 1},
2958 {128 * 528, 63},
2959 },
2960 .block_erase = spi_erase_at45db_sector
2961 }, */ {
2962 .eraseblocks = { {4224 * 1024, 1} },
2963 .block_erase = spi_erase_at45db_chip,
2964 }
2965 },
2966 .printlock = spi_prettyprint_status_register_at45db, /* Bit 0 is undefined, no lockdown */
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002967 .write = spi_write_at45db,
2968 .read = spi_read_at45db_e8, /* 3 address and 4 dummy bytes */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002969 .voltage = {2700, 3600},
Alan Greenc1863ca2019-06-27 15:08:03 +10002970 .gran = write_gran_528bytes,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002971 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002972
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002973 {
2974 .vendor = "Atmel",
2975 .name = "AT45DB321D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002976 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002977 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002978 .model_id = ATMEL_AT45DB321D,
Alan Greencbb85c02019-06-25 13:42:34 +10002979 .total_size = 4096, /* or 4224, determined from status register */
2980 .page_size = 512, /* or 528, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00002981 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002982 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
Daniel Lenski65922a32012-02-15 23:40:23 +00002983 .feature_bits = FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +00002984 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002985 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002986 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002987 .block_erasers =
2988 {
2989 {
2990 .eraseblocks = { {512, 8192} },
2991 .block_erase = spi_erase_at45db_page,
2992 }, {
2993 .eraseblocks = { {8 * 512, 8192/8} },
2994 .block_erase = spi_erase_at45db_block,
2995 }, {
2996 .eraseblocks = {
2997 {8 * 512, 1},
2998 {120 * 512, 1},
2999 {128 * 512, 63},
3000 },
3001 .block_erase = spi_erase_at45db_sector
3002 }, {
3003 .eraseblocks = { {4096 * 1024, 1} },
3004 .block_erase = spi_erase_at45db_chip,
3005 }
3006 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003007 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10003008 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003009 /* granularity will be set by the probing function. */
3010 .write = spi_write_at45db,
3011 .read = spi_read_at45db, /* Fast read (0x0B) supported */
3012 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
3013 },
3014
3015 {
3016 .vendor = "Atmel",
3017 .name = "AT45DB321E",
3018 .bustype = BUS_SPI,
3019 .manufacture_id = ATMEL_ID,
3020 .model_id = ATMEL_AT45DB321C,
Alan Greencbb85c02019-06-25 13:42:34 +10003021 .total_size = 4096, /* or 4224, determined from status register */
3022 .page_size = 512, /* or 528, determined from status register */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003023 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
3024 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
3025 .feature_bits = FEATURE_OTP,
3026 .tested = TEST_UNTESTED,
3027 .probe = probe_spi_at45db,
3028 .probe_timing = TIMING_ZERO,
3029 .block_erasers =
3030 {
3031 {
3032 .eraseblocks = { {512, 8192} },
3033 .block_erase = spi_erase_at45db_page,
3034 }, {
3035 .eraseblocks = { {8 * 512, 8192/8} },
3036 .block_erase = spi_erase_at45db_block,
3037 }, {
3038 .eraseblocks = {
3039 {8 * 512, 1},
3040 {120 * 512, 1},
3041 {128 * 512, 63},
3042 },
3043 .block_erase = spi_erase_at45db_sector
3044 }, {
3045 .eraseblocks = { {4096 * 1024, 1} },
3046 .block_erase = spi_erase_at45db_chip,
3047 }
3048 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003049 .printlock = spi_prettyprint_status_register_at45db, /* has a 2nd status register */
Alan Greenc1863ca2019-06-27 15:08:03 +10003050 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003051 /* granularity will be set by the probing function. */
3052 .write = spi_write_at45db,
3053 .read = spi_read_at45db, /* Fast read (0x0B) supported */
3054 .voltage = {2500, 3600}, /* 2.3-3.6V & 2.5-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00003055 },
FENG yu ningff692fb2008-12-08 18:15:10 +00003056
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003057 {
3058 .vendor = "Atmel",
3059 .name = "AT45DB642D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003060 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003061 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003062 .model_id = ATMEL_AT45DB642D,
Alan Greencbb85c02019-06-25 13:42:34 +10003063 .total_size = 8192, /* or 8448, determined from status register */
3064 .page_size = 1024, /* or 1056, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00003065 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003066 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
3067 .feature_bits = FEATURE_OTP,
Stefan Tauner5c316f92015-02-08 21:57:52 +00003068 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003069 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003070 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003071 .block_erasers =
3072 {
3073 {
3074 .eraseblocks = { {1024, 8192} },
3075 .block_erase = spi_erase_at45db_page,
3076 }, {
3077 .eraseblocks = { {8 * 1024, 8192/8} },
3078 .block_erase = spi_erase_at45db_block,
3079 }, {
3080 .eraseblocks = {
3081 {8 * 1024, 1},
3082 {248 * 1024, 1},
3083 {256 * 1024, 31},
3084 },
3085 .block_erase = spi_erase_at45db_sector
3086 }, {
3087 .eraseblocks = { {8192 * 1024, 1} },
3088 .block_erase = spi_erase_at45db_chip,
3089 }
3090 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003091 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10003092 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003093 /* granularity will be set by the probing function. */
3094 .write = spi_write_at45db,
3095 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003096 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00003097 },
FENG yu ningff692fb2008-12-08 18:15:10 +00003098
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003099 {
3100 .vendor = "Atmel",
Alan Green1f9cc7d2019-07-01 11:10:45 +10003101 .name = "AT49(H)F010",
3102 .bustype = BUS_PARALLEL,
3103 .manufacture_id = ATMEL_ID,
3104 .model_id = ATMEL_AT49F010,
3105 .total_size = 128,
3106 .page_size = 0, /* unused */
3107 .feature_bits = FEATURE_EITHER_RESET,
3108 .tested = TEST_OK_PREW,
3109 .probe = probe_jedec,
3110 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3111 .block_erasers =
3112 {
3113 {
3114 .eraseblocks = { {128 * 1024, 1} },
3115 .block_erase = erase_chip_block_jedec,
3116 }
3117 },
3118 .printlock = printlock_at49f,
3119 .write = write_jedec_1,
3120 .read = read_memmapped,
3121 .voltage = {4500, 5500},
3122 },
3123
3124 {
3125 .vendor = "Atmel",
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003126 .name = "AT49BV512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003127 .bustype = BUS_PARALLEL,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003128 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003129 .model_id = ATMEL_AT49BV512,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003130 .total_size = 64,
3131 .page_size = 64,
Sean Nelson35727f72010-01-28 23:55:12 +00003132 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +00003133 .tested = TEST_OK_PREW,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003134 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003135 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00003136 .block_erasers =
3137 {
3138 {
3139 .eraseblocks = { {64 * 1024, 1} },
3140 .block_erase = erase_chip_block_jedec,
3141 }
3142 },
Sean Nelson35727f72010-01-28 23:55:12 +00003143 .write = write_jedec_1,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003144 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003145 .voltage = {2700, 3600},
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003146 },
3147
3148 {
3149 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003150 .name = "AT49F002(N)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003151 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003152 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003153 .model_id = ATMEL_AT49F002N,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003154 .total_size = 256,
3155 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00003156 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003157 .tested = TEST_UNTESTED,
3158 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003159 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00003160 .block_erasers =
3161 {
3162 {
3163 .eraseblocks = {
3164 {16 * 1024, 1},
3165 {8 * 1024, 2},
3166 {96 * 1024, 1},
3167 {128 * 1024, 1},
3168 },
3169 .block_erase = erase_sector_jedec,
3170 }, {
3171 .eraseblocks = { {256 * 1024, 1} },
3172 .block_erase = erase_chip_block_jedec,
3173 }
3174 },
Sean Nelson35727f72010-01-28 23:55:12 +00003175 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003176 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003177 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003178 },
3179
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003180 {
3181 .vendor = "Atmel",
3182 .name = "AT49F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003183 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003184 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003185 .model_id = ATMEL_AT49F002NT,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003186 .total_size = 256,
3187 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00003188 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003189 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003190 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003191 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00003192 .block_erasers =
3193 {
3194 {
3195 .eraseblocks = {
3196 {128 * 1024, 1},
3197 {96 * 1024, 1},
3198 {8 * 1024, 2},
3199 {16 * 1024, 1},
3200 },
3201 .block_erase = erase_sector_jedec,
3202 }, {
3203 .eraseblocks = { {256 * 1024, 1} },
3204 .block_erase = erase_chip_block_jedec,
3205 }
3206 },
Sean Nelson35727f72010-01-28 23:55:12 +00003207 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003208 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003209 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003210 },
3211
Daniel Lenskidf90d3a2010-07-22 11:44:38 +00003212 {
Uwe Hermannc74e9772011-09-08 19:55:18 +00003213 .vendor = "Atmel",
David Borgf5a30f62012-04-15 13:16:32 +00003214 .name = "AT49F020",
3215 .bustype = BUS_PARALLEL,
3216 .manufacture_id = ATMEL_ID,
3217 .model_id = ATMEL_AT49F020,
3218 .total_size = 256,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00003219 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00003220 .feature_bits = FEATURE_EITHER_RESET,
3221 .tested = TEST_OK_PRE,
3222 .probe = probe_jedec,
3223 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3224 .block_erasers =
3225 {
3226 {
3227 .eraseblocks = { {256 * 1024, 1} },
3228 .block_erase = erase_chip_block_jedec,
3229 }
3230 /* Chip features an optional permanent write protection
3231 * of the first 8 kB. The erase function is the same as
3232 * above, but 00000H to 01FFFH will not be erased.
3233 * FIXME: add another eraser when partial erasers are
3234 * supported.
3235 */
3236 },
3237 .printlock = printlock_at49f,
3238 .write = write_jedec_1,
3239 .read = read_memmapped,
3240 .voltage = {4500, 5500},
3241 },
3242
3243 {
3244 .vendor = "Atmel",
3245 .name = "AT49F040",
3246 .bustype = BUS_PARALLEL,
3247 .manufacture_id = ATMEL_ID,
3248 .model_id = ATMEL_AT49F040,
3249 .total_size = 512,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00003250 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00003251 .feature_bits = FEATURE_EITHER_RESET,
3252 .tested = TEST_UNTESTED,
3253 .probe = probe_jedec,
3254 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3255 .block_erasers =
3256 {
3257 {
3258 .eraseblocks = { {512 * 1024, 1} },
3259 .block_erase = erase_chip_block_jedec,
3260 }
3261 /* Chip features an optional permanent write protection
3262 * of the first 16 kB. The erase function is the same as
3263 * above, but 00000H to 03FFFH will not be erased.
3264 * FIXME: add another eraser when partial erasers are
3265 * supported.
3266 */
3267 },
3268 .printlock = printlock_at49f,
3269 .write = write_jedec_1,
3270 .read = read_memmapped,
3271 .voltage = {4500, 5500},
3272 },
3273
3274 {
3275 .vendor = "Atmel",
Andrew Morgan8dd97f92012-08-13 23:43:46 +00003276 .name = "AT49F080",
3277 .bustype = BUS_PARALLEL,
3278 .manufacture_id = ATMEL_ID,
3279 .model_id = ATMEL_AT49F080,
3280 .total_size = 1024,
3281 .page_size = 0, /* unused */
3282 .feature_bits = FEATURE_EITHER_RESET,
3283 .tested = TEST_UNTESTED,
3284 .probe = probe_jedec,
3285 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3286 .block_erasers =
3287 {
3288 {
3289 .eraseblocks = { {1024 * 1024, 1} },
3290 .block_erase = erase_chip_block_jedec,
3291 }
3292 /* Chip features an optional permanent write protection
3293 * of the first 16 kB. The erase function is the same as
3294 * above, but 00000H to 03FFFH will not be erased.
3295 * FIXME: add another eraser when partial erasers are
3296 * supported.
3297 */
3298 },
3299 .printlock = printlock_at49f,
3300 .write = write_jedec_1,
3301 .read = read_memmapped,
3302 .voltage = {4500, 5500},
3303 },
3304
3305 {
3306 /* 'top' version of AT49F080. equal in all aspects but the boot block address */
3307 .vendor = "Atmel",
3308 .name = "AT49F080T",
3309 .bustype = BUS_PARALLEL,
3310 .manufacture_id = ATMEL_ID,
3311 .model_id = ATMEL_AT49F080T,
3312 .total_size = 1024,
3313 .page_size = 0, /* unused */
3314 .feature_bits = FEATURE_EITHER_RESET,
3315 .tested = TEST_UNTESTED,
3316 .probe = probe_jedec,
3317 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3318 .block_erasers =
3319 {
3320 {
3321 .eraseblocks = { {1024 * 1024, 1} },
3322 .block_erase = erase_chip_block_jedec,
3323 }
3324 /* Chip features an optional permanent write protection
3325 * of the first 16 kB. The erase function is the same as
3326 * above, but FC000H to FFFFFH will not be erased.
3327 * FIXME: add another eraser when partial erasers are
3328 * supported.
3329 */
3330 },
3331 .printlock = printlock_at49f,
3332 .write = write_jedec_1,
3333 .read = read_memmapped,
3334 .voltage = {4500, 5500},
3335 },
3336
3337 {
3338 .vendor = "Atmel",
Uwe Hermannc74e9772011-09-08 19:55:18 +00003339 .name = "AT49LH002",
3340 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
3341 .manufacture_id = ATMEL_ID,
3342 .model_id = ATMEL_AT49LH002,
3343 .total_size = 256,
3344 .page_size = 0, /* unused */
Stefan Tauner7de93932014-08-03 13:05:45 +00003345 .feature_bits = FEATURE_REGISTERMAP,
Uwe Hermannc74e9772011-09-08 19:55:18 +00003346 .tested = TEST_UNTESTED,
Stefan Tauner7de93932014-08-03 13:05:45 +00003347 .probe = probe_82802ab,
3348 .probe_timing = TIMING_ZERO,
Uwe Hermannc74e9772011-09-08 19:55:18 +00003349 .block_erasers =
3350 {
3351 {
3352 .eraseblocks = {
3353 {64 * 1024, 3},
3354 {32 * 1024, 1},
3355 {8 * 1024, 2},
3356 {16 * 1024, 1},
3357 },
Stefan Tauner7de93932014-08-03 13:05:45 +00003358 .block_erase = NULL, /* TODO: Implement. */
Uwe Hermannc74e9772011-09-08 19:55:18 +00003359 }, {
3360 .eraseblocks = {
3361 {64 * 1024, 4},
3362 },
Stefan Tauner7de93932014-08-03 13:05:45 +00003363 .block_erase = erase_block_82802ab,
3364 },
3365 },
3366 .printlock = printlock_regspace2_block_eraser_0,
3367 .unlock = unlock_regspace2_block_eraser_0,
3368 .write = write_82802ab,
3369 .read = read_memmapped,
3370 .voltage = {3000, 3600},
3371 },
3372
3373 {
3374 .vendor = "Atmel",
Stefan Tauner7de93932014-08-03 13:05:45 +00003375 .name = "AT49LH004",
3376 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
3377 .manufacture_id = ATMEL_ID,
3378 .model_id = ATMEL_AT49LH004,
3379 .total_size = 512,
3380 .page_size = 0, /* unused */
3381 .feature_bits = FEATURE_REGISTERMAP,
3382 .tested = TEST_UNTESTED,
3383 .probe = probe_82802ab,
3384 .probe_timing = TIMING_ZERO,
3385 .block_erasers =
3386 {
3387 {
3388 .eraseblocks = {
3389 {64 * 1024, 7},
3390 {32 * 1024, 1},
3391 {8 * 1024, 2},
3392 {16 * 1024, 1},
3393 },
3394 .block_erase = erase_block_82802ab,
3395 }, {
3396 .eraseblocks = {
3397 {64 * 1024, 8},
3398 },
Uwe Hermannc74e9772011-09-08 19:55:18 +00003399 .block_erase = NULL, /* TODO: Implement. */
3400 },
3401 },
Stefan Tauner7de93932014-08-03 13:05:45 +00003402 .printlock = printlock_regspace2_block_eraser_0,
3403 .unlock = unlock_regspace2_block_eraser_0,
Uwe Hermannc74e9772011-09-08 19:55:18 +00003404 .write = write_82802ab,
3405 .read = read_memmapped,
3406 .voltage = {3000, 3600},
3407 },
3408
3409 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003410 .vendor = "Atmel",
3411 .name = "AT49LH00B4",
3412 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
3413 .manufacture_id = ATMEL_ID,
3414 .model_id = ATMEL_AT49LH00B4,
3415 .total_size = 512,
Andrew Morganca081462011-09-13 22:05:44 +00003416 .page_size = 0, /* unused */
Alan Green1f9cc7d2019-07-01 11:10:45 +10003417 .feature_bits = FEATURE_REGISTERMAP,
3418 .tested = TEST_UNTESTED,
3419 .probe = probe_82802ab,
Andrew Morganca081462011-09-13 22:05:44 +00003420 .probe_timing = TIMING_ZERO,
3421 .block_erasers =
3422 {
3423 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003424 .eraseblocks = {
3425 {8 * 1024, 2},
3426 {16 * 1024, 1},
3427 {32 * 1024, 1},
3428 {64 * 1024, 7},
3429 },
3430 .block_erase = NULL, /* TODO: Implement. */
3431 }, {
3432 .eraseblocks = {
3433 {64 * 1024, 8},
3434 },
3435 .block_erase = erase_block_82802ab,
Andrew Morganca081462011-09-13 22:05:44 +00003436 },
3437 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10003438 .printlock = printlock_regspace2_block_eraser_0,
3439 .unlock = unlock_regspace2_block_eraser_0,
3440 .write = write_82802ab,
Andrew Morganca081462011-09-13 22:05:44 +00003441 .read = read_memmapped,
Alan Green1f9cc7d2019-07-01 11:10:45 +10003442 .voltage = {3000, 3600},
Andrew Morganca081462011-09-13 22:05:44 +00003443 },
3444
3445 {
Joshua Roysf1324e02010-09-16 00:51:51 +00003446 .vendor = "Bright",
3447 .name = "BM29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003448 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00003449 .manufacture_id = BRIGHT_ID,
3450 .model_id = BRIGHT_BM29F040,
3451 .total_size = 512,
3452 .page_size = 64 * 1024,
3453 .feature_bits = FEATURE_EITHER_RESET,
3454 .tested = TEST_OK_PR,
3455 .probe = probe_jedec,
3456 .probe_timing = TIMING_ZERO,
3457 .block_erasers =
3458 {
3459 {
3460 .eraseblocks = { {64 * 1024, 8} },
3461 .block_erase = erase_sector_jedec,
3462 }, {
3463 .eraseblocks = { {512 * 1024, 1} },
3464 .block_erase = erase_chip_block_jedec,
3465 },
3466 },
3467 .write = write_jedec_1,
3468 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003469 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00003470 },
3471
3472 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003473 .vendor = "Catalyst",
3474 .name = "CAT28F512",
3475 .bustype = BUS_PARALLEL,
3476 .manufacture_id = CATALYST_ID,
3477 .model_id = CATALYST_CAT28F512,
3478 .total_size = 64,
3479 .page_size = 0, /* unused */
3480 .feature_bits = 0,
Alan Green908adf42019-07-03 15:34:06 +10003481 .tested = {.probe = OK, .read = OK, .erase = BAD, .write = BAD},
Alan Green1f9cc7d2019-07-01 11:10:45 +10003482 .probe = probe_jedec, /* FIXME! */
3483 .probe_timing = TIMING_ZERO,
3484 .block_erasers =
3485 {
3486 {
3487 .eraseblocks = { {64 * 1024, 1} },
3488 .block_erase = NULL, /* TODO */
3489 },
3490 },
3491 .write = NULL, /* TODO */
3492 .read = read_memmapped,
3493 .voltage = {4500, 5500},
3494 },
3495
3496 {
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003497 .vendor = "ENE",
3498 .name = "KB9012 (EDI)",
3499 .bustype = BUS_SPI,
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003500 .total_size = 128,
3501 .page_size = 128,
3502 .feature_bits = FEATURE_ERASED_ZERO,
3503 .tested = TEST_OK_PREW,
Alan Greenc1863ca2019-06-27 15:08:03 +10003504 .spi_cmd_set = SPI_EDI,
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003505 .probe = edi_probe_kb9012,
3506 .probe_timing = TIMING_ZERO,
3507 .block_erasers =
3508 {
3509 {
3510 .eraseblocks = { {128, 1024} },
3511 .block_erase = edi_chip_block_erase,
3512 },
3513 },
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003514 .write = edi_chip_write,
3515 .read = edi_chip_read,
3516 .voltage = {2700, 3600},
Alan Greenc1863ca2019-06-27 15:08:03 +10003517 .gran = write_gran_128bytes,
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003518 },
3519
3520 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003521 .vendor = "ESI",
3522 .name = "ES25P16",
3523 .bustype = BUS_SPI,
3524 .manufacture_id = EXCEL_ID_NOPREFIX,
3525 .model_id = EXCEL_ES25P16,
3526 .total_size = 2 * 1024,
3527 .page_size = 256,
3528 /* 256-byte parameter page separate from memory array:
3529 * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
3530 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003531 .tested = TEST_UNTESTED,
Alan Green1f9cc7d2019-07-01 11:10:45 +10003532 .probe = probe_spi_rdid,
3533 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003534 .block_erasers =
3535 {
3536 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003537 .eraseblocks = { {64 * 1024, 32} },
3538 .block_erase = spi_block_erase_d8,
Sean Nelson54596372010-01-09 05:30:14 +00003539 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003540 .eraseblocks = { {2 * 1024 * 1024, 1} },
3541 .block_erase = spi_block_erase_c7,
Sean Nelson54596372010-01-09 05:30:14 +00003542 }
3543 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10003544 .printlock = spi_prettyprint_status_register_bp2_srwd,
3545 .unlock = spi_disable_blockprotect_bp2_srwd,
3546 .write = spi_chip_write_256,
3547 .read = spi_chip_read, /* Fast Read (0x0B) supported */
3548 .voltage = {2700, 3600},
3549 },
3550
3551 {
3552 .vendor = "ESI",
3553 .name = "ES25P40",
3554 .bustype = BUS_SPI,
3555 .manufacture_id = EXCEL_ID_NOPREFIX,
3556 .model_id = EXCEL_ES25P40,
3557 .total_size = 512,
3558 .page_size = 256,
3559 /* 256-byte parameter page separate from memory array:
3560 * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
3561 .feature_bits = FEATURE_WRSR_WREN,
3562 .tested = TEST_UNTESTED,
3563 .probe = probe_spi_rdid,
3564 .probe_timing = TIMING_ZERO,
3565 .block_erasers =
3566 {
3567 {
3568 .eraseblocks = { {64 * 1024, 8} },
3569 .block_erase = spi_block_erase_d8,
3570 }, {
3571 .eraseblocks = { {512 * 1024, 1} },
3572 .block_erase = spi_block_erase_c7,
3573 }
3574 },
3575 .printlock = spi_prettyprint_status_register_bp2_srwd,
3576 .unlock = spi_disable_blockprotect_bp2_srwd,
3577 .write = spi_chip_write_256,
3578 .read = spi_chip_read, /* Fast Read (0x0B) supported */
3579 .voltage = {2700, 3600},
3580 },
3581
3582 {
3583 .vendor = "ESI",
3584 .name = "ES25P80",
3585 .bustype = BUS_SPI,
3586 .manufacture_id = EXCEL_ID_NOPREFIX,
3587 .model_id = EXCEL_ES25P80,
3588 .total_size = 1024,
3589 .page_size = 256,
3590 /* 256-byte parameter page separate from memory array:
3591 * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
3592 .feature_bits = FEATURE_WRSR_WREN,
3593 .tested = TEST_UNTESTED,
3594 .probe = probe_spi_rdid,
3595 .probe_timing = TIMING_ZERO,
3596 .block_erasers =
3597 {
3598 {
3599 .eraseblocks = { {64 * 1024, 16} },
3600 .block_erase = spi_block_erase_d8,
3601 }, {
3602 .eraseblocks = { {1024 * 1024, 1} },
3603 .block_erase = spi_block_erase_c7,
3604 }
3605 },
3606 .printlock = spi_prettyprint_status_register_bp2_srwd,
3607 .unlock = spi_disable_blockprotect_bp2_srwd,
3608 .write = spi_chip_write_256,
3609 .read = spi_chip_read, /* Fast Read (0x0B) supported */
3610 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00003611 },
3612
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003613 {
Stefan Tauner352e50b2013-02-22 15:58:45 +00003614 .vendor = "ESMT",
Michael Karcher80a59ea2010-06-19 22:06:35 +00003615 .name = "F25L008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003616 .bustype = BUS_SPI,
Stefan Tauner352e50b2013-02-22 15:58:45 +00003617 .manufacture_id = ESMT_ID,
3618 .model_id = ESMT_F25L008A,
Michael Karcher80a59ea2010-06-19 22:06:35 +00003619 .total_size = 1024,
3620 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003621 .feature_bits = FEATURE_WRSR_EITHER,
Stefan Taunereb582572012-09-21 12:52:50 +00003622 .tested = TEST_OK_PREW,
Michael Karcher80a59ea2010-06-19 22:06:35 +00003623 .probe = probe_spi_rdid,
3624 .probe_timing = TIMING_ZERO,
3625 .block_erasers =
3626 {
3627 {
3628 .eraseblocks = { {4 * 1024, 256} },
3629 .block_erase = spi_block_erase_20,
3630 }, {
3631 .eraseblocks = { {64 * 1024, 16} },
3632 .block_erase = spi_block_erase_d8,
3633 }, {
3634 .eraseblocks = { {1024 * 1024, 1} },
3635 .block_erase = spi_block_erase_60,
3636 }, {
3637 .eraseblocks = { {1024 * 1024, 1} },
3638 .block_erase = spi_block_erase_c7,
3639 }
3640 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003641 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003642 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger9a795d82010-07-14 16:19:05 +00003643 .write = spi_chip_write_1,
Michael Karcher4497e862010-07-10 19:34:15 +00003644 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003645 .voltage = {2700, 3600},
Michael Karcher80a59ea2010-06-19 22:06:35 +00003646 },
3647
3648 {
Stefan Tauner85f09f72014-05-27 21:27:14 +00003649 .vendor = "ESMT",
3650 .name = "F25L32PA",
3651 .bustype = BUS_SPI,
3652 .manufacture_id = ESMT_ID,
3653 .model_id = ESMT_F25L32PA,
3654 .total_size = 4096,
3655 .page_size = 256,
3656 .feature_bits = FEATURE_WRSR_EITHER | FEATURE_OTP,
3657 .tested = TEST_UNTESTED,
3658 .probe = probe_spi_rdid,
3659 .probe_timing = TIMING_ZERO,
3660 .block_erasers =
3661 {
3662 {
3663 .eraseblocks = { {4 * 1024, 1024} },
3664 .block_erase = spi_block_erase_20,
3665 }, {
3666 .eraseblocks = { {64 * 1024, 64} },
3667 .block_erase = spi_block_erase_d8,
3668 }, {
3669 .eraseblocks = { {4 * 1024 * 1024, 1} },
3670 .block_erase = spi_block_erase_60,
3671 }, {
3672 .eraseblocks = { {4 * 1024 * 1024, 1} },
3673 .block_erase = spi_block_erase_c7,
3674 }
3675 },
3676 .printlock = spi_prettyprint_status_register_bp2_bpl,
3677 .unlock = spi_disable_blockprotect,
3678 .write = spi_chip_write_256,
3679 .read = spi_chip_read,
3680 .voltage = {2700, 3600},
3681 },
3682
3683 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003684 .vendor = "ESMT",
3685 .name = "F49B002UA",
3686 .bustype = BUS_PARALLEL,
3687 .manufacture_id = ESMT_ID,
3688 .model_id = ESMT_F49B002UA,
3689 .total_size = 256,
3690 .page_size = 4096,
3691 .feature_bits = FEATURE_EITHER_RESET,
3692 .tested = TEST_UNTESTED,
3693 .probe = probe_jedec,
3694 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3695 .block_erasers =
3696 {
3697 {
3698 .eraseblocks = {
3699 {128 * 1024, 1},
3700 {96 * 1024, 1},
3701 {8 * 1024, 2},
3702 {16 * 1024, 1},
3703 },
3704 .block_erase = erase_sector_jedec,
3705 }, {
3706 .eraseblocks = { {256 * 1024, 1} },
3707 .block_erase = erase_chip_block_jedec,
3708 }
3709 },
3710 .write = write_jedec_1,
3711 .read = read_memmapped,
3712 .voltage = {4500, 5500},
3713 },
3714
3715 {
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003716 .vendor = "Eon",
3717 .name = "EN25B05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003718 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003719 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003720 .model_id = EON_EN25B05,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003721 .total_size = 64,
3722 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003723 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003724 .tested = TEST_UNTESTED,
3725 .probe = probe_spi_rdid,
3726 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003727 .block_erasers =
3728 {
3729 {
3730 .eraseblocks = {
3731 {4 * 1024, 2},
3732 {8 * 1024, 1},
3733 {16 * 1024, 1},
3734 {32 * 1024, 1},
3735 },
3736 .block_erase = spi_block_erase_d8,
3737 }, {
3738 .eraseblocks = { {64 * 1024, 1} },
3739 .block_erase = spi_block_erase_c7,
3740 }
3741 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003742 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003743 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003744 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003745 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003746 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003747 },
3748
3749 {
3750 .vendor = "Eon",
3751 .name = "EN25B05T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003752 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003753 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003754 .model_id = EON_EN25B05,
Sean Nelson54596372010-01-09 05:30:14 +00003755 .total_size = 64,
3756 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003757 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003758 .tested = TEST_UNTESTED,
3759 .probe = probe_spi_rdid,
3760 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003761 .block_erasers =
3762 {
3763 {
3764 .eraseblocks = {
3765 {32 * 1024, 1},
3766 {16 * 1024, 1},
3767 {8 * 1024, 1},
3768 {4 * 1024, 2},
3769 },
3770 .block_erase = spi_block_erase_d8,
3771 }, {
3772 .eraseblocks = { {64 * 1024, 1} },
3773 .block_erase = spi_block_erase_c7,
3774 }
3775 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003776 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003777 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003778 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003779 .read = spi_chip_read, /* Fast read (0x0B) supported */
3780 .voltage = {2700, 3600},
3781 },
3782
3783 {
3784 .vendor = "Eon",
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003785 .name = "EN25B10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003786 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003787 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003788 .model_id = EON_EN25B10,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003789 .total_size = 128,
3790 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003791 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003792 .tested = TEST_UNTESTED,
3793 .probe = probe_spi_rdid,
3794 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003795 .block_erasers =
3796 {
3797 {
3798 .eraseblocks = {
3799 {4 * 1024, 2},
3800 {8 * 1024, 1},
3801 {16 * 1024, 1},
3802 {32 * 1024, 3},
3803 },
3804 .block_erase = spi_block_erase_d8,
3805 }, {
3806 .eraseblocks = { {128 * 1024, 1} },
3807 .block_erase = spi_block_erase_c7,
3808 }
3809 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003810 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003811 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003812 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003813 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003814 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003815 },
3816
3817 {
3818 .vendor = "Eon",
3819 .name = "EN25B10T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003820 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003821 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003822 .model_id = EON_EN25B10,
Sean Nelson54596372010-01-09 05:30:14 +00003823 .total_size = 128,
3824 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003825 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00003826 .tested = TEST_OK_PREW,
Sean Nelson54596372010-01-09 05:30:14 +00003827 .probe = probe_spi_rdid,
3828 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003829 .block_erasers =
3830 {
3831 {
3832 .eraseblocks = {
3833 {32 * 1024, 3},
3834 {16 * 1024, 1},
3835 {8 * 1024, 1},
3836 {4 * 1024, 2},
3837 },
3838 .block_erase = spi_block_erase_d8,
3839 }, {
3840 .eraseblocks = { {128 * 1024, 1} },
3841 .block_erase = spi_block_erase_c7,
3842 }
3843 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003844 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003845 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003846 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003847 .read = spi_chip_read, /* Fast read (0x0B) supported */
3848 .voltage = {2700, 3600},
3849 },
3850
3851 {
3852 .vendor = "Eon",
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003853 .name = "EN25B16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003854 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003855 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003856 .model_id = EON_EN25B16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003857 .total_size = 2048,
3858 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003859 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003860 .tested = TEST_UNTESTED,
3861 .probe = probe_spi_rdid,
3862 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003863 .block_erasers =
3864 {
3865 {
3866 .eraseblocks = {
3867 {4 * 1024, 2},
3868 {8 * 1024, 1},
3869 {16 * 1024, 1},
3870 {32 * 1024, 1},
3871 {64 * 1024, 31},
3872 },
3873 .block_erase = spi_block_erase_d8,
3874 }, {
3875 .eraseblocks = { {2 * 1024 * 1024, 1} },
3876 .block_erase = spi_block_erase_c7,
3877 }
3878 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003879 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003880 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003881 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003882 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003883 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003884 },
3885
3886 {
3887 .vendor = "Eon",
3888 .name = "EN25B16T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003889 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003890 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003891 .model_id = EON_EN25B16,
Sean Nelson54596372010-01-09 05:30:14 +00003892 .total_size = 2048,
3893 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003894 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003895 .tested = TEST_UNTESTED,
3896 .probe = probe_spi_rdid,
3897 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003898 .block_erasers =
3899 {
3900 {
3901 .eraseblocks = {
3902 {64 * 1024, 31},
3903 {32 * 1024, 1},
3904 {16 * 1024, 1},
3905 {8 * 1024, 1},
3906 {4 * 1024, 2},
3907 },
3908 .block_erase = spi_block_erase_d8,
3909 }, {
3910 .eraseblocks = { {2 * 1024 * 1024, 1} },
3911 .block_erase = spi_block_erase_c7,
3912 }
3913 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003914 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003915 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003916 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003917 .read = spi_chip_read, /* Fast read (0x0B) supported */
3918 .voltage = {2700, 3600},
3919 },
3920
3921 {
3922 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10003923 .name = "EN25B20",
Stefan Taunerb175af52015-01-24 15:06:27 +00003924 .bustype = BUS_SPI,
3925 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10003926 .model_id = EON_EN25B20,
3927 .total_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003928 .page_size = 256,
3929 .feature_bits = FEATURE_WRSR_WREN,
3930 .tested = TEST_UNTESTED,
3931 .probe = probe_spi_rdid,
3932 .probe_timing = TIMING_ZERO,
3933 .block_erasers =
3934 {
3935 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003936 .eraseblocks = {
3937 {4 * 1024, 2},
3938 {8 * 1024, 1},
3939 {16 * 1024, 1},
3940 {32 * 1024, 1},
3941 {64 * 1024, 3}
3942 },
Stefan Taunerb175af52015-01-24 15:06:27 +00003943 .block_erase = spi_block_erase_d8,
3944 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003945 .eraseblocks = { {256 * 1024, 1} },
3946 .block_erase = spi_block_erase_c7,
3947 }
3948 },
3949 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
3950 .unlock = spi_disable_blockprotect,
3951 .write = spi_chip_write_256,
3952 .read = spi_chip_read, /* Fast read (0x0B) supported */
3953 .voltage = {2700, 3600},
3954 },
3955
3956 {
3957 .vendor = "Eon",
3958 .name = "EN25B20T",
3959 .bustype = BUS_SPI,
3960 .manufacture_id = EON_ID_NOPREFIX,
3961 .model_id = EON_EN25B20,
3962 .total_size = 256,
3963 .page_size = 256,
3964 .feature_bits = FEATURE_WRSR_WREN,
3965 .tested = TEST_UNTESTED,
3966 .probe = probe_spi_rdid,
3967 .probe_timing = TIMING_ZERO,
3968 .block_erasers =
3969 {
3970 {
3971 .eraseblocks = {
3972 {64 * 1024, 3},
3973 {32 * 1024, 1},
3974 {16 * 1024, 1},
3975 {8 * 1024, 1},
3976 {4 * 1024, 2},
3977 },
3978 .block_erase = spi_block_erase_d8,
3979 }, {
3980 .eraseblocks = { {256 * 1024, 1} },
Stefan Taunerb175af52015-01-24 15:06:27 +00003981 .block_erase = spi_block_erase_c7,
3982 }
3983 },
3984 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
3985 .unlock = spi_disable_blockprotect,
3986 .write = spi_chip_write_256,
3987 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003988 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003989 },
3990
3991 {
3992 .vendor = "Eon",
3993 .name = "EN25B32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003994 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003995 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003996 .model_id = EON_EN25B32,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003997 .total_size = 4096,
3998 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003999 /* OTP: 512B total; enter 0x3A */
4000 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004001 .tested = TEST_UNTESTED,
4002 .probe = probe_spi_rdid,
4003 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004004 .block_erasers =
4005 {
4006 {
4007 .eraseblocks = {
4008 {4 * 1024, 2},
4009 {8 * 1024, 1},
4010 {16 * 1024, 1},
4011 {32 * 1024, 1},
4012 {64 * 1024, 63},
4013 },
4014 .block_erase = spi_block_erase_d8,
4015 }, {
4016 .eraseblocks = { {4 * 1024 * 1024, 1} },
4017 .block_erase = spi_block_erase_c7,
4018 }
4019 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004020 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004021 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00004022 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004023 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004024 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00004025 },
4026
4027 {
4028 .vendor = "Eon",
4029 .name = "EN25B32T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004030 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00004031 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004032 .model_id = EON_EN25B32,
Sean Nelson54596372010-01-09 05:30:14 +00004033 .total_size = 4096,
4034 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004035 /* OTP: 512B total; enter 0x3A */
4036 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Sean Nelson54596372010-01-09 05:30:14 +00004037 .tested = TEST_UNTESTED,
4038 .probe = probe_spi_rdid,
4039 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004040 .block_erasers =
4041 {
4042 {
4043 .eraseblocks = {
4044 {64 * 1024, 63},
4045 {32 * 1024, 1},
4046 {16 * 1024, 1},
4047 {8 * 1024, 1},
4048 {4 * 1024, 2},
4049 },
4050 .block_erase = spi_block_erase_d8,
4051 }, {
4052 .eraseblocks = { {4 * 1024 * 1024, 1} },
4053 .block_erase = spi_block_erase_c7,
4054 }
4055 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004056 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004057 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004058 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004059 .read = spi_chip_read, /* Fast read (0x0B) supported */
4060 .voltage = {2700, 3600},
4061 },
4062
4063 {
4064 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004065 .name = "EN25B40",
Stefan Taunerb175af52015-01-24 15:06:27 +00004066 .bustype = BUS_SPI,
4067 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004068 .model_id = EON_EN25B40,
4069 .total_size = 512,
Stefan Taunerb175af52015-01-24 15:06:27 +00004070 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004071 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerb175af52015-01-24 15:06:27 +00004072 .tested = TEST_UNTESTED,
4073 .probe = probe_spi_rdid,
4074 .probe_timing = TIMING_ZERO,
4075 .block_erasers =
4076 {
4077 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004078 .eraseblocks = {
4079 {4 * 1024, 2},
4080 {8 * 1024, 1},
4081 {16 * 1024, 1},
4082 {32 * 1024, 1},
4083 {64 * 1024, 7}
4084 },
Stefan Taunerb175af52015-01-24 15:06:27 +00004085 .block_erase = spi_block_erase_d8,
4086 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004087 .eraseblocks = { {512 * 1024, 1} },
4088 .block_erase = spi_block_erase_c7,
4089 }
4090 },
4091 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4092 .unlock = spi_disable_blockprotect,
4093 .write = spi_chip_write_256,
4094 .read = spi_chip_read, /* Fast read (0x0B) supported */
4095 .voltage = {2700, 3600},
4096 },
4097
4098 {
4099 .vendor = "Eon",
4100 .name = "EN25B40T",
4101 .bustype = BUS_SPI,
4102 .manufacture_id = EON_ID_NOPREFIX,
4103 .model_id = EON_EN25B40,
4104 .total_size = 512,
4105 .page_size = 256,
4106 .feature_bits = FEATURE_WRSR_WREN,
4107 .tested = TEST_UNTESTED,
4108 .probe = probe_spi_rdid,
4109 .probe_timing = TIMING_ZERO,
4110 .block_erasers =
4111 {
4112 {
4113 .eraseblocks = {
4114 {64 * 1024, 7},
4115 {32 * 1024, 1},
4116 {16 * 1024, 1},
4117 {8 * 1024, 1},
4118 {4 * 1024, 2},
4119 },
4120 .block_erase = spi_block_erase_d8,
4121 }, {
4122 .eraseblocks = { {512 * 1024, 1} },
Stefan Taunerb175af52015-01-24 15:06:27 +00004123 .block_erase = spi_block_erase_c7,
4124 }
4125 },
4126 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4127 .unlock = spi_disable_blockprotect,
4128 .write = spi_chip_write_256,
4129 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004130 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004131 },
4132
4133 {
4134 .vendor = "Eon",
4135 .name = "EN25B64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004136 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004137 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004138 .model_id = EON_EN25B64,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004139 .total_size = 8192,
4140 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004141 /* OTP: 512B total; enter 0x3A */
4142 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004143 .tested = TEST_UNTESTED,
4144 .probe = probe_spi_rdid,
4145 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004146 .block_erasers =
4147 {
4148 {
4149 .eraseblocks = {
4150 {4 * 1024, 2},
4151 {8 * 1024, 1},
4152 {16 * 1024, 1},
4153 {32 * 1024, 1},
4154 {64 * 1024, 127},
4155 },
4156 .block_erase = spi_block_erase_d8,
4157 }, {
4158 .eraseblocks = { {8 * 1024 * 1024, 1} },
4159 .block_erase = spi_block_erase_c7,
4160 }
4161 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004162 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004163 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00004164 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004165 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004166 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00004167 },
4168
4169 {
4170 .vendor = "Eon",
4171 .name = "EN25B64T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004172 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00004173 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004174 .model_id = EON_EN25B64,
Sean Nelson54596372010-01-09 05:30:14 +00004175 .total_size = 8192,
4176 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004177 /* OTP: 512B total; enter 0x3A */
4178 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Sean Nelson54596372010-01-09 05:30:14 +00004179 .tested = TEST_UNTESTED,
4180 .probe = probe_spi_rdid,
4181 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004182 .block_erasers =
4183 {
4184 {
4185 .eraseblocks = {
4186 {64 * 1024, 127},
4187 {32 * 1024, 1},
4188 {16 * 1024, 1},
4189 {8 * 1024, 1},
4190 {4 * 1024, 2},
4191 },
4192 .block_erase = spi_block_erase_d8,
4193 }, {
4194 .eraseblocks = { {8 * 1024 * 1024, 1} },
4195 .block_erase = spi_block_erase_c7,
4196 }
4197 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004198 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004199 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004200 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004201 .read = spi_chip_read, /* Fast read (0x0B) supported */
4202 .voltage = {2700, 3600},
4203 },
4204
4205 {
4206 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004207 .name = "EN25B80",
Stefan Taunerb175af52015-01-24 15:06:27 +00004208 .bustype = BUS_SPI,
4209 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004210 .model_id = EON_EN25B80,
4211 .total_size = 1024,
Stefan Taunerb175af52015-01-24 15:06:27 +00004212 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004213 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerb175af52015-01-24 15:06:27 +00004214 .tested = TEST_UNTESTED,
4215 .probe = probe_spi_rdid,
4216 .probe_timing = TIMING_ZERO,
4217 .block_erasers =
4218 {
4219 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004220 .eraseblocks = {
4221 {4 * 1024, 2},
4222 {8 * 1024, 1},
4223 {16 * 1024, 1},
4224 {32 * 1024, 1},
4225 {64 * 1024, 15}
4226 },
Stefan Taunerb175af52015-01-24 15:06:27 +00004227 .block_erase = spi_block_erase_d8,
4228 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004229 .eraseblocks = { {1024 * 1024, 1} },
4230 .block_erase = spi_block_erase_c7,
4231 }
4232 },
4233 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4234 .unlock = spi_disable_blockprotect,
4235 .write = spi_chip_write_256,
4236 .read = spi_chip_read, /* Fast read (0x0B) supported */
4237 .voltage = {2700, 3600},
4238 },
4239
4240 {
4241 .vendor = "Eon",
4242 .name = "EN25B80T",
4243 .bustype = BUS_SPI,
4244 .manufacture_id = EON_ID_NOPREFIX,
4245 .model_id = EON_EN25B80,
4246 .total_size = 1024,
4247 .page_size = 256,
4248 .feature_bits = FEATURE_WRSR_WREN,
4249 .tested = TEST_UNTESTED,
4250 .probe = probe_spi_rdid,
4251 .probe_timing = TIMING_ZERO,
4252 .block_erasers =
4253 {
4254 {
4255 .eraseblocks = {
4256 {64 * 1024, 15},
4257 {32 * 1024, 1},
4258 {16 * 1024, 1},
4259 {8 * 1024, 1},
4260 {4 * 1024, 2},
4261 },
4262 .block_erase = spi_block_erase_d8,
4263 }, {
4264 .eraseblocks = { {1024 * 1024, 1} },
Stefan Taunerb175af52015-01-24 15:06:27 +00004265 .block_erase = spi_block_erase_c7,
4266 }
4267 },
4268 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4269 .unlock = spi_disable_blockprotect,
4270 .write = spi_chip_write_256,
4271 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004272 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004273 },
4274
4275 {
4276 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004277 .name = "EN25F05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004278 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004279 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004280 .model_id = EON_EN25F05,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004281 .total_size = 64,
4282 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004283 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00004284 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004285 .probe = probe_spi_rdid,
4286 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004287 .block_erasers =
4288 {
4289 {
4290 .eraseblocks = { {4 * 1024, 16} },
4291 .block_erase = spi_block_erase_20,
4292 }, {
4293 .eraseblocks = { {32 * 1024, 2} },
4294 .block_erase = spi_block_erase_d8,
4295 }, {
4296 .eraseblocks = { {32 * 1024, 2} },
4297 .block_erase = spi_block_erase_52,
4298 }, {
4299 .eraseblocks = { {64 * 1024, 1} },
4300 .block_erase = spi_block_erase_60,
4301 }, {
4302 .eraseblocks = { {64 * 1024, 1} },
4303 .block_erase = spi_block_erase_c7,
4304 }
4305 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004306 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004307 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004308 .write = spi_chip_write_256,
4309 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004310 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004311 },
4312
4313 {
4314 .vendor = "Eon",
4315 .name = "EN25F10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004316 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004317 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004318 .model_id = EON_EN25F10,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004319 .total_size = 128,
4320 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004321 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004322 .tested = TEST_UNTESTED,
4323 .probe = probe_spi_rdid,
4324 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004325 .block_erasers =
4326 {
4327 {
4328 .eraseblocks = { {4 * 1024, 32} },
4329 .block_erase = spi_block_erase_20,
4330 }, {
4331 .eraseblocks = { {32 * 1024, 4} },
4332 .block_erase = spi_block_erase_d8,
4333 }, {
4334 .eraseblocks = { {32 * 1024, 4} },
4335 .block_erase = spi_block_erase_52,
4336 }, {
4337 .eraseblocks = { {128 * 1024, 1} },
4338 .block_erase = spi_block_erase_60,
4339 }, {
4340 .eraseblocks = { {128 * 1024, 1} },
4341 .block_erase = spi_block_erase_c7,
4342 }
4343 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004344 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004345 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004346 .write = spi_chip_write_256,
4347 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004348 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004349 },
4350
4351 {
4352 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004353 .name = "EN25F16",
4354 .bustype = BUS_SPI,
4355 .manufacture_id = EON_ID_NOPREFIX,
4356 .model_id = EON_EN25F16,
4357 .total_size = 2048,
4358 .page_size = 256,
4359 .feature_bits = FEATURE_WRSR_WREN,
4360 .tested = TEST_OK_PREW,
4361 .probe = probe_spi_rdid,
4362 .probe_timing = TIMING_ZERO,
4363 .block_erasers =
4364 {
4365 {
4366 .eraseblocks = { {4 * 1024, 512} },
4367 .block_erase = spi_block_erase_20,
4368 }, {
4369 .eraseblocks = { {64 * 1024, 32} },
4370 .block_erase = spi_block_erase_d8,
4371 }, {
4372 .eraseblocks = { {2 * 1024 * 1024, 1} },
4373 .block_erase = spi_block_erase_60,
4374 }, {
4375 .eraseblocks = { {2 * 1024 * 1024, 1} },
4376 .block_erase = spi_block_erase_c7,
4377 }
4378 },
4379 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4380 .unlock = spi_disable_blockprotect,
4381 .write = spi_chip_write_256,
4382 .read = spi_chip_read,
4383 .voltage = {2700, 3600},
4384 },
4385
4386 {
4387 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004388 .name = "EN25F20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004389 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004390 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004391 .model_id = EON_EN25F20,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004392 .total_size = 256,
4393 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004394 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004395 .tested = TEST_UNTESTED,
4396 .probe = probe_spi_rdid,
4397 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004398 .block_erasers =
4399 {
4400 {
4401 .eraseblocks = { {4 * 1024, 64} },
4402 .block_erase = spi_block_erase_20,
4403 }, {
4404 .eraseblocks = { {64 * 1024, 4} },
4405 .block_erase = spi_block_erase_d8,
4406 }, {
4407 .eraseblocks = { {64 * 1024, 4} },
4408 .block_erase = spi_block_erase_52,
4409 }, {
4410 .eraseblocks = { {256 * 1024, 1} },
4411 .block_erase = spi_block_erase_60,
4412 }, {
4413 .eraseblocks = { {256 * 1024, 1} },
4414 .block_erase = spi_block_erase_c7,
4415 }
4416 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004417 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004418 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004419 .write = spi_chip_write_256,
4420 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004421 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004422 },
4423
4424 {
4425 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004426 .name = "EN25F32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004427 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004428 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004429 .model_id = EON_EN25F32,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004430 .total_size = 4096,
4431 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004432 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +00004433 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004434 .probe = probe_spi_rdid,
4435 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004436 .block_erasers =
4437 {
4438 {
4439 .eraseblocks = { {4 * 1024, 1024} },
4440 .block_erase = spi_block_erase_20,
4441 }, {
4442 .eraseblocks = { {64 * 1024, 64} },
4443 .block_erase = spi_block_erase_d8,
4444 }, {
4445 .eraseblocks = { {4 * 1024 * 1024, 1} },
4446 .block_erase = spi_block_erase_60,
4447 }, {
4448 .eraseblocks = { {4 * 1024 * 1024, 1} },
4449 .block_erase = spi_block_erase_c7,
4450 }
4451 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004452 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004453 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004454 .write = spi_chip_write_256,
4455 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004456 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004457 },
4458
4459 {
Russ Dill3cd5a122010-03-05 08:44:11 +00004460 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004461 .name = "EN25F40",
4462 .bustype = BUS_SPI,
4463 .manufacture_id = EON_ID_NOPREFIX,
4464 .model_id = EON_EN25F40,
4465 .total_size = 512,
4466 .page_size = 256,
4467 .feature_bits = FEATURE_WRSR_WREN,
4468 .tested = TEST_OK_PREW,
4469 .probe = probe_spi_rdid,
4470 .probe_timing = TIMING_ZERO,
4471 .block_erasers =
4472 {
4473 {
4474 .eraseblocks = { {4 * 1024, 128} },
4475 .block_erase = spi_block_erase_20,
4476 }, {
4477 .eraseblocks = { {64 * 1024, 8} },
4478 .block_erase = spi_block_erase_d8,
4479 }, {
4480 .eraseblocks = { {512 * 1024, 1} },
4481 .block_erase = spi_block_erase_60,
4482 }, {
4483 .eraseblocks = { {512 * 1024, 1} },
4484 .block_erase = spi_block_erase_c7,
4485 },
4486 },
4487 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4488 .unlock = spi_disable_blockprotect,
4489 .write = spi_chip_write_256,
4490 .read = spi_chip_read,
4491 .voltage = {2700, 3600},
4492 },
4493
4494 {
4495 .vendor = "Eon",
Stefan Taunerd932fd02012-09-06 17:37:16 +00004496 .name = "EN25F64",
4497 .bustype = BUS_SPI,
4498 .manufacture_id = EON_ID_NOPREFIX,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00004499 .model_id = EON_EN25F64,
Stefan Taunerd932fd02012-09-06 17:37:16 +00004500 .total_size = 8192,
4501 .page_size = 256,
4502 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00004503 .tested = TEST_OK_PREW,
Stefan Taunerd932fd02012-09-06 17:37:16 +00004504 .probe = probe_spi_rdid,
4505 .probe_timing = TIMING_ZERO,
4506 .block_erasers =
4507 {
4508 {
4509 .eraseblocks = { {4 * 1024, 2048} },
4510 .block_erase = spi_block_erase_20,
4511 }, {
4512 .eraseblocks = { {64 * 1024, 128} },
4513 .block_erase = spi_block_erase_d8,
4514 }, {
4515 .eraseblocks = { {8 * 1024 * 1024, 1} },
4516 .block_erase = spi_block_erase_60,
4517 }, {
4518 .eraseblocks = { {8 * 1024 * 1024, 1} },
4519 .block_erase = spi_block_erase_c7,
4520 }
4521 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004522 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Stefan Taunerd932fd02012-09-06 17:37:16 +00004523 .unlock = spi_disable_blockprotect,
4524 .write = spi_chip_write_256,
4525 .read = spi_chip_read,
4526 .voltage = {2700, 3600},
4527 },
4528
4529 {
4530 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004531 .name = "EN25F80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004532 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004533 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004534 .model_id = EON_EN25F80,
David Hendricks6d715302011-07-24 22:21:57 +00004535 .total_size = 1024,
4536 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004537 .feature_bits = FEATURE_WRSR_WREN,
4538 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004539 .probe = probe_spi_rdid,
4540 .probe_timing = TIMING_ZERO,
4541 .block_erasers =
4542 {
4543 {
4544 .eraseblocks = { {4 * 1024, 256} },
4545 .block_erase = spi_block_erase_20,
4546 }, {
4547 .eraseblocks = { {64 * 1024, 16} },
4548 .block_erase = spi_block_erase_d8,
4549 }, {
4550 .eraseblocks = { {1024 * 1024, 1} },
4551 .block_erase = spi_block_erase_60,
4552 }, {
4553 .eraseblocks = { {1024 * 1024, 1} },
4554 .block_erase = spi_block_erase_c7,
4555 }
4556 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004557 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004558 .unlock = spi_disable_blockprotect,
4559 .write = spi_chip_write_256,
4560 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004561 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004562 },
4563
4564 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004565 .vendor = "Eon",
4566 .name = "EN25P05",
4567 .bustype = BUS_SPI,
4568 .manufacture_id = EON_ID_NOPREFIX,
4569 .model_id = EON_EN25B05,
4570 .total_size = 64,
4571 .page_size = 256,
4572 .feature_bits = FEATURE_WRSR_WREN,
4573 .tested = TEST_UNTESTED,
4574 .probe = probe_spi_rdid,
4575 .probe_timing = TIMING_ZERO,
4576 .block_erasers =
4577 {
4578 {
4579 .eraseblocks = {
4580 {32 * 1024, 2} },
4581 .block_erase = spi_block_erase_d8,
4582 }, {
4583 .eraseblocks = { {64 * 1024, 1} },
4584 .block_erase = spi_block_erase_c7,
4585 }
4586 },
4587 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4588 .unlock = spi_disable_blockprotect,
4589 .write = spi_chip_write_256,
4590 .read = spi_chip_read, /* Fast read (0x0B) supported */
4591 .voltage = {2700, 3600},
4592 },
4593
4594 {
4595 .vendor = "Eon",
4596 .name = "EN25P10",
4597 .bustype = BUS_SPI,
4598 .manufacture_id = EON_ID_NOPREFIX,
4599 .model_id = EON_EN25B10,
4600 .total_size = 128,
4601 .page_size = 256,
4602 .feature_bits = FEATURE_WRSR_WREN,
4603 .tested = TEST_UNTESTED,
4604 .probe = probe_spi_rdid,
4605 .probe_timing = TIMING_ZERO,
4606 .block_erasers =
4607 {
4608 {
4609 .eraseblocks = { {32 * 1024, 4} },
4610 .block_erase = spi_block_erase_d8,
4611 }, {
4612 .eraseblocks = { {128 * 1024, 1} },
4613 .block_erase = spi_block_erase_c7,
4614 }
4615 },
4616 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4617 .unlock = spi_disable_blockprotect,
4618 .write = spi_chip_write_256,
4619 .read = spi_chip_read, /* Fast read (0x0B) supported */
4620 .voltage = {2700, 3600},
4621 },
4622
4623 {
4624 .vendor = "Eon",
4625 .name = "EN25P16",
4626 .bustype = BUS_SPI,
4627 .manufacture_id = EON_ID_NOPREFIX,
4628 .model_id = EON_EN25B16,
4629 .total_size = 2048,
4630 .page_size = 256,
4631 .feature_bits = FEATURE_WRSR_WREN,
4632 .tested = TEST_UNTESTED,
4633 .probe = probe_spi_rdid,
4634 .probe_timing = TIMING_ZERO,
4635 .block_erasers =
4636 {
4637 {
4638 .eraseblocks = { {64 * 1024, 32} },
4639 .block_erase = spi_block_erase_d8,
4640 }, {
4641 .eraseblocks = { {2 * 1024 * 1024, 1} },
4642 .block_erase = spi_block_erase_c7,
4643 }
4644 },
4645 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4646 .unlock = spi_disable_blockprotect,
4647 .write = spi_chip_write_256,
4648 .read = spi_chip_read, /* Fast read (0x0B) supported */
4649 .voltage = {2700, 3600},
4650 },
4651
4652 {
4653 .vendor = "Eon",
4654 .name = "EN25P20",
4655 .bustype = BUS_SPI,
4656 .manufacture_id = EON_ID_NOPREFIX,
4657 .model_id = EON_EN25B20,
4658 .total_size = 256,
4659 .page_size = 256,
4660 .feature_bits = FEATURE_WRSR_WREN,
4661 .tested = TEST_UNTESTED,
4662 .probe = probe_spi_rdid,
4663 .probe_timing = TIMING_ZERO,
4664 .block_erasers =
4665 {
4666 {
4667 .eraseblocks = { {64 * 1024, 4} },
4668 .block_erase = spi_block_erase_d8,
4669 }, {
4670 .eraseblocks = { {256 * 1024, 1} },
4671 .block_erase = spi_block_erase_c7,
4672 }
4673 },
4674 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4675 .unlock = spi_disable_blockprotect,
4676 .write = spi_chip_write_256,
4677 .read = spi_chip_read, /* Fast read (0x0B) supported */
4678 .voltage = {2700, 3600},
4679 },
4680
4681 {
4682 .vendor = "Eon",
4683 .name = "EN25P32", /* Uniform version of EN25B32 */
4684 .bustype = BUS_SPI,
4685 .manufacture_id = EON_ID_NOPREFIX,
4686 .model_id = EON_EN25B32,
4687 .total_size = 4096,
4688 .page_size = 256,
4689 /* OTP: 512B total; enter 0x3A */
4690 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4691 .tested = TEST_UNTESTED,
4692 .probe = probe_spi_rdid,
4693 .probe_timing = TIMING_ZERO,
4694 .block_erasers =
4695 {
4696 {
4697 .eraseblocks = { {64 * 1024, 64} },
4698 .block_erase = spi_block_erase_d8,
4699 }, {
4700 .eraseblocks = { {4 * 1024 * 1024, 1} },
4701 .block_erase = spi_block_erase_c7,
4702 }
4703 },
4704 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4705 .unlock = spi_disable_blockprotect,
4706 .write = spi_chip_write_256,
4707 .read = spi_chip_read, /* Fast read (0x0B) supported */
4708 .voltage = {2700, 3600},
4709 },
4710
4711 {
4712 .vendor = "Eon",
4713 .name = "EN25P40",
4714 .bustype = BUS_SPI,
4715 .manufacture_id = EON_ID_NOPREFIX,
4716 .model_id = EON_EN25B40,
4717 .total_size = 512,
4718 .page_size = 256,
4719 .feature_bits = FEATURE_WRSR_WREN,
4720 .tested = TEST_UNTESTED,
4721 .probe = probe_spi_rdid,
4722 .probe_timing = TIMING_ZERO,
4723 .block_erasers =
4724 {
4725 {
4726 .eraseblocks = { {64 * 1024, 8} },
4727 .block_erase = spi_block_erase_d8,
4728 }, {
4729 .eraseblocks = { {512 * 1024, 1} },
4730 .block_erase = spi_block_erase_c7,
4731 }
4732 },
4733 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4734 .unlock = spi_disable_blockprotect,
4735 .write = spi_chip_write_256,
4736 .read = spi_chip_read, /* Fast read (0x0B) supported */
4737 .voltage = {2700, 3600},
4738 },
4739
4740 {
4741 .vendor = "Eon",
4742 .name = "EN25P64",
4743 .bustype = BUS_SPI,
4744 .manufacture_id = EON_ID_NOPREFIX,
4745 .model_id = EON_EN25B64,
4746 .total_size = 8192,
4747 .page_size = 256,
4748 /* OTP: 512B total; enter 0x3A */
4749 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4750 .tested = TEST_UNTESTED,
4751 .probe = probe_spi_rdid,
4752 .probe_timing = TIMING_ZERO,
4753 .block_erasers =
4754 {
4755 {
4756 .eraseblocks = { {64 * 1024, 128} },
4757 .block_erase = spi_block_erase_d8,
4758 }, {
4759 .eraseblocks = { {8 * 1024 * 1024, 1} },
4760 .block_erase = spi_block_erase_c7,
4761 }
4762 },
4763 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4764 .unlock = spi_disable_blockprotect,
4765 .write = spi_chip_write_256,
4766 .read = spi_chip_read, /* Fast read (0x0B) supported */
4767 .voltage = {2700, 3600},
4768 },
4769
4770 {
4771 .vendor = "Eon",
4772 .name = "EN25P80",
4773 .bustype = BUS_SPI,
4774 .manufacture_id = EON_ID_NOPREFIX,
4775 .model_id = EON_EN25B80,
4776 .total_size = 1024,
4777 .page_size = 256,
4778 .feature_bits = FEATURE_WRSR_WREN,
4779 .tested = TEST_UNTESTED,
4780 .probe = probe_spi_rdid,
4781 .probe_timing = TIMING_ZERO,
4782 .block_erasers =
4783 {
4784 {
4785 .eraseblocks = { {64 * 1024, 16} },
4786 .block_erase = spi_block_erase_d8,
4787 }, {
4788 .eraseblocks = { {1024 * 1024, 1} },
4789 .block_erase = spi_block_erase_c7,
4790 }
4791 },
4792 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4793 .unlock = spi_disable_blockprotect,
4794 .write = spi_chip_write_256,
4795 .read = spi_chip_read, /* Fast read (0x0B) supported */
4796 .voltage = {2700, 3600},
4797 },
4798
4799 {
4800 .vendor = "Eon",
4801 .name = "EN25Q128",
4802 .bustype = BUS_SPI,
4803 .manufacture_id = EON_ID_NOPREFIX,
4804 .model_id = EON_EN25Q128,
4805 .total_size = 16384,
4806 .page_size = 256,
4807 /* OTP: 512B total; enter 0x3A */
4808 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4809 .tested = TEST_OK_PREW,
4810 .probe = probe_spi_rdid,
4811 .probe_timing = TIMING_ZERO,
4812 .block_erasers =
4813 {
4814 {
4815 .eraseblocks = { {4 * 1024, 4096} },
4816 .block_erase = spi_block_erase_20,
4817 }, {
4818 .eraseblocks = { {64 * 1024, 256} },
4819 .block_erase = spi_block_erase_d8,
4820 }, {
4821 .eraseblocks = { {16 * 1024 * 1024, 1} },
4822 .block_erase = spi_block_erase_60,
4823 }, {
4824 .eraseblocks = { {16 * 1024 * 1024, 1} },
4825 .block_erase = spi_block_erase_c7,
4826 }
4827 },
4828 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4829 .unlock = spi_disable_blockprotect,
4830 .write = spi_chip_write_256,
4831 .read = spi_chip_read,
4832 },
4833
4834 {
David Hendricks6d715302011-07-24 22:21:57 +00004835 /* Note: EN25D16 is an evil twin which shares the model ID
4836 but has different write protection capabilities */
4837 .vendor = "Eon",
4838 .name = "EN25Q16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004839 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004840 .manufacture_id = EON_ID_NOPREFIX,
4841 .model_id = EON_EN25Q16,
4842 .total_size = 2048,
4843 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004844 /* OTP: D16 512B/Q16 128B total; enter 0x3A */
4845 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004846 .tested = TEST_UNTESTED,
4847 .probe = probe_spi_rdid,
4848 .probe_timing = TIMING_ZERO,
4849 .block_erasers =
4850 {
4851 {
4852 .eraseblocks = { {4 * 1024, 512} },
4853 .block_erase = spi_block_erase_20,
4854 }, {
4855 .eraseblocks = { {64 * 1024, 32} },
4856 .block_erase = spi_block_erase_d8,
4857 }, {
4858 /* not supported by Q16 version */
4859 .eraseblocks = { {64 * 1024, 32} },
4860 .block_erase = spi_block_erase_52,
4861 }, {
4862 .eraseblocks = { {2 * 1024 * 1024, 1} },
4863 .block_erase = spi_block_erase_60,
4864 }, {
4865 .eraseblocks = { {2 * 1024 * 1024, 1} },
4866 .block_erase = spi_block_erase_c7,
4867 }
4868 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004869 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004870 .unlock = spi_disable_blockprotect,
4871 .write = spi_chip_write_256,
4872 .read = spi_chip_read,
4873 .voltage = {2700, 3600},
4874 },
4875
4876 {
4877 .vendor = "Eon",
4878 .name = "EN25Q32(A/B)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004879 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004880 .manufacture_id = EON_ID_NOPREFIX,
4881 .model_id = EON_EN25Q32,
4882 .total_size = 4096,
4883 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004884 /* OTP: 512B total; enter 0x3A */
4885 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004886 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004887 .probe = probe_spi_rdid,
4888 .probe_timing = TIMING_ZERO,
4889 .block_erasers =
4890 {
4891 {
4892 .eraseblocks = { {4 * 1024, 1024} },
4893 .block_erase = spi_block_erase_20,
4894 }, {
4895 .eraseblocks = { {64 * 1024, 64} },
4896 .block_erase = spi_block_erase_d8,
4897 }, {
4898 .eraseblocks = { {4 * 1024 * 1024, 1} },
4899 .block_erase = spi_block_erase_60,
4900 }, {
4901 .eraseblocks = { {4 * 1024 * 1024, 1} },
4902 .block_erase = spi_block_erase_c7,
4903 }
4904 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004905 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004906 .unlock = spi_disable_blockprotect,
4907 .write = spi_chip_write_256,
4908 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004909 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004910 },
4911
4912 {
4913 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004914 .name = "EN25Q40",
4915 .bustype = BUS_SPI,
4916 .manufacture_id = EON_ID_NOPREFIX,
4917 .model_id = EON_EN25Q40,
4918 .total_size = 512,
4919 .page_size = 256,
4920 /* OTP: 256B total; enter 0x3A */
4921 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4922 .tested = TEST_UNTESTED,
4923 .probe = probe_spi_rdid,
4924 .probe_timing = TIMING_ZERO,
4925 .block_erasers =
4926 {
4927 {
4928 .eraseblocks = { {4 * 1024, 128} },
4929 .block_erase = spi_block_erase_20,
4930 }, {
4931 .eraseblocks = { {64 * 1024, 8} },
4932 .block_erase = spi_block_erase_d8,
4933 }, {
4934 .eraseblocks = { {512 * 1024, 1} },
4935 .block_erase = spi_block_erase_60,
4936 }, {
4937 .eraseblocks = { {512 * 1024, 1} },
4938 .block_erase = spi_block_erase_c7,
4939 }
4940 },
4941 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4942 .unlock = spi_disable_blockprotect,
4943 .write = spi_chip_write_256,
4944 .read = spi_chip_read,
4945 .voltage = {2700, 3600},
4946 },
4947
4948 {
4949 .vendor = "Eon",
David Hendricks6d715302011-07-24 22:21:57 +00004950 .name = "EN25Q64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004951 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004952 .manufacture_id = EON_ID_NOPREFIX,
4953 .model_id = EON_EN25Q64,
4954 .total_size = 8192,
4955 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004956 /* OTP: 512B total; enter 0x3A */
4957 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004958 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004959 .probe = probe_spi_rdid,
4960 .probe_timing = TIMING_ZERO,
4961 .block_erasers =
4962 {
4963 {
4964 .eraseblocks = { {4 * 1024, 2048} },
4965 .block_erase = spi_block_erase_20,
4966 }, {
4967 .eraseblocks = { {64 * 1024, 128} },
4968 .block_erase = spi_block_erase_d8,
4969 }, {
4970 .eraseblocks = { {8 * 1024 * 1024, 1} },
4971 .block_erase = spi_block_erase_60,
4972 }, {
4973 .eraseblocks = { {8 * 1024 * 1024, 1} },
4974 .block_erase = spi_block_erase_c7,
4975 }
4976 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004977 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004978 .unlock = spi_disable_blockprotect,
4979 .write = spi_chip_write_256,
4980 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004981 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004982 },
4983
4984 {
4985 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004986 .name = "EN25Q80(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004987 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004988 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004989 .model_id = EON_EN25Q80,
4990 .total_size = 1024,
4991 .page_size = 256,
4992 /* OTP: 256B total; enter 0x3A */
4993 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4994 .tested = TEST_UNTESTED,
4995 .probe = probe_spi_rdid,
4996 .probe_timing = TIMING_ZERO,
4997 .block_erasers =
4998 {
4999 {
5000 .eraseblocks = { {4 * 1024, 256} },
5001 .block_erase = spi_block_erase_20,
5002 }, {
5003 .eraseblocks = { {64 * 1024, 16} },
5004 .block_erase = spi_block_erase_d8,
5005 }, {
5006 .eraseblocks = { {1024 * 1024, 1} },
5007 .block_erase = spi_block_erase_60,
5008 }, {
5009 .eraseblocks = { {1024 * 1024, 1} },
5010 .block_erase = spi_block_erase_c7,
5011 }
5012 },
5013 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
5014 .unlock = spi_disable_blockprotect,
5015 .write = spi_chip_write_256,
5016 .read = spi_chip_read,
5017 .voltage = {2700, 3600},
5018 },
5019
5020 {
5021 .vendor = "Eon",
5022 .name = "EN25QH128",
5023 .bustype = BUS_SPI,
5024 .manufacture_id = EON_ID_NOPREFIX,
5025 .model_id = EON_EN25QH128,
David Hendricks6d715302011-07-24 22:21:57 +00005026 .total_size = 16384,
5027 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005028 /* supports SFDP */
Daniel Lenski65922a32012-02-15 23:40:23 +00005029 /* OTP: 512B total; enter 0x3A */
Alan Green1f9cc7d2019-07-01 11:10:45 +10005030 /* QPI enable 0x38, disable 0xFF */
5031 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5032 .tested = TEST_UNTESTED,
David Hendricks6d715302011-07-24 22:21:57 +00005033 .probe = probe_spi_rdid,
5034 .probe_timing = TIMING_ZERO,
5035 .block_erasers =
5036 {
5037 {
5038 .eraseblocks = { {4 * 1024, 4096} },
5039 .block_erase = spi_block_erase_20,
5040 }, {
5041 .eraseblocks = { {64 * 1024, 256} },
5042 .block_erase = spi_block_erase_d8,
5043 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005044 .eraseblocks = { { 16384 * 1024, 1} },
David Hendricks6d715302011-07-24 22:21:57 +00005045 .block_erase = spi_block_erase_60,
5046 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005047 .eraseblocks = { { 16384 * 1024, 1} },
David Hendricks6d715302011-07-24 22:21:57 +00005048 .block_erase = spi_block_erase_c7,
5049 }
5050 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005051 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
5052 .unlock = spi_disable_blockprotect_bp3_srwd,
David Hendricks6d715302011-07-24 22:21:57 +00005053 .write = spi_chip_write_256,
5054 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005055 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00005056 },
5057
5058 {
5059 .vendor = "Eon",
5060 .name = "EN25QH16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005061 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00005062 .manufacture_id = EON_ID_NOPREFIX,
5063 .model_id = EON_EN25QH16,
5064 .total_size = 2048,
5065 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00005066 /* supports SFDP */
5067 /* OTP: 512B total; enter 0x3A */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005068 /* QPI enable 0x38, disable 0xFF */
5069 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner5c316f92015-02-08 21:57:52 +00005070 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00005071 .probe = probe_spi_rdid,
5072 .probe_timing = TIMING_ZERO,
5073 .block_erasers =
5074 {
5075 {
5076 .eraseblocks = { {4 * 1024, 512} },
5077 .block_erase = spi_block_erase_20,
5078 }, {
5079 .eraseblocks = { {64 * 1024, 32} },
5080 .block_erase = spi_block_erase_d8,
5081 }, {
5082 .eraseblocks = { {1024 * 2048, 1} },
5083 .block_erase = spi_block_erase_60,
5084 }, {
5085 .eraseblocks = { {1024 * 2048, 1} },
5086 .block_erase = spi_block_erase_c7,
5087 }
5088 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005089 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005090 .unlock = spi_disable_blockprotect_bp3_srwd,
David Hendricks6d715302011-07-24 22:21:57 +00005091 .write = spi_chip_write_256,
5092 .read = spi_chip_read,
Stefan Tauner2cef9162012-05-14 01:51:46 +00005093 .voltage = {2700, 3600},
5094 },
5095
5096 {
5097 .vendor = "Eon",
5098 .name = "EN25QH32",
5099 .bustype = BUS_SPI,
5100 .manufacture_id = EON_ID_NOPREFIX,
5101 .model_id = EON_EN25QH32,
5102 .total_size = 4096,
5103 .page_size = 256,
5104 /* supports SFDP */
5105 /* OTP: 512B total; enter 0x3A */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005106 /* QPI enable 0x38, disable 0xFF */
5107 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner23e10b82016-01-23 16:16:49 +00005108 .tested = TEST_OK_PREW,
Stefan Tauner2cef9162012-05-14 01:51:46 +00005109 .probe = probe_spi_rdid,
5110 .probe_timing = TIMING_ZERO,
5111 .block_erasers =
5112 {
5113 {
5114 .eraseblocks = { {4 * 1024, 1024} },
5115 .block_erase = spi_block_erase_20,
5116 }, {
5117 .eraseblocks = { {64 * 1024, 64} },
5118 .block_erase = spi_block_erase_d8,
5119 }, {
5120 .eraseblocks = { {1024 * 4096, 1} },
5121 .block_erase = spi_block_erase_60,
5122 }, {
5123 .eraseblocks = { {1024 * 4096, 1} },
5124 .block_erase = spi_block_erase_c7,
5125 }
5126 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005127 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005128 .unlock = spi_disable_blockprotect_bp3_srwd,
5129 .write = spi_chip_write_256,
5130 .read = spi_chip_read,
5131 .voltage = {2700, 3600},
5132 },
5133
5134 {
5135 .vendor = "Eon",
5136 .name = "EN25QH64",
5137 .bustype = BUS_SPI,
5138 .manufacture_id = EON_ID_NOPREFIX,
5139 .model_id = EON_EN25QH64,
5140 .total_size = 8192,
5141 .page_size = 256,
5142 /* supports SFDP */
5143 /* OTP: 512B total; enter 0x3A */
5144 /* QPI enable 0x38, disable 0xFF */
5145 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner23e10b82016-01-23 16:16:49 +00005146 .tested = TEST_OK_PREW,
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005147 .probe = probe_spi_rdid,
5148 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005149 .block_erasers =
5150 {
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005151 {
5152 .eraseblocks = { {4 * 1024, 2048} },
5153 .block_erase = spi_block_erase_20,
5154 }, {
5155 .eraseblocks = { {64 * 1024, 128} },
5156 .block_erase = spi_block_erase_d8,
5157 }, {
5158 .eraseblocks = { { 8192 * 1024, 1} },
5159 .block_erase = spi_block_erase_60,
5160 }, {
5161 .eraseblocks = { { 8192 * 1024, 1} },
5162 .block_erase = spi_block_erase_c7,
5163 }
5164 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005165 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005166 .unlock = spi_disable_blockprotect_bp3_srwd,
5167 .write = spi_chip_write_256,
5168 .read = spi_chip_read,
5169 .voltage = {2700, 3600},
5170 },
5171
5172 {
5173 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005174 .name = "EN25S10",
5175 .bustype = BUS_SPI,
5176 .manufacture_id = EON_ID_NOPREFIX,
5177 .model_id = EON_EN25S10,
5178 .total_size = 128,
5179 .page_size = 256,
5180 /* OTP: 256B total; enter 0x3A */
5181 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5182 .tested = TEST_UNTESTED,
5183 .probe = probe_spi_rdid,
5184 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005185 .block_erasers =
5186 {
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005187 {
5188 .eraseblocks = { {4 * 1024, 32} },
5189 .block_erase = spi_block_erase_20,
5190 }, {
5191 .eraseblocks = { {32 * 1024, 4} },
5192 .block_erase = spi_block_erase_52,
5193 }, {
5194 .eraseblocks = { {128 * 1024, 1} },
5195 .block_erase = spi_block_erase_60,
5196 }, {
5197 .eraseblocks = { {128 * 1024, 1} },
5198 .block_erase = spi_block_erase_c7,
5199 }
5200 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005201 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005202 .unlock = spi_disable_blockprotect,
5203 .write = spi_chip_write_256,
5204 .read = spi_chip_read,
5205 .voltage = {1650, 1950},
5206 },
5207
5208 {
5209 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005210 .name = "EN25S16",
5211 .bustype = BUS_SPI,
5212 .manufacture_id = EON_ID_NOPREFIX,
5213 .model_id = EON_EN25S16,
5214 .total_size = 2048,
5215 .page_size = 256,
5216 /* OTP: 512B total; enter 0x3A */
5217 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5218 .tested = TEST_UNTESTED,
5219 .probe = probe_spi_rdid,
5220 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005221 .block_erasers =
5222 {
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005223 {
5224 .eraseblocks = { {4 * 1024, 512} },
5225 .block_erase = spi_block_erase_20,
5226 }, {
5227 .eraseblocks = { {64 * 1024, 32} },
5228 .block_erase = spi_block_erase_52,
5229 }, {
5230 .eraseblocks = { {32 * 1024, 64} },
5231 .block_erase = spi_block_erase_d8,
5232 }, {
5233 .eraseblocks = { {2048 * 1024, 1} },
5234 .block_erase = spi_block_erase_60,
5235 }, {
5236 .eraseblocks = { {2048 * 1024, 1} },
5237 .block_erase = spi_block_erase_c7,
5238 }
5239 },
5240 .printlock = spi_prettyprint_status_register_en25s_wp,
5241 .unlock = spi_disable_blockprotect_bp3_srwd,
5242 .write = spi_chip_write_256,
5243 .read = spi_chip_read,
5244 .voltage = {1650, 1950},
5245 },
5246
5247 {
5248 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005249 .name = "EN25S20",
5250 .bustype = BUS_SPI,
5251 .manufacture_id = EON_ID_NOPREFIX,
5252 .model_id = EON_EN25S20,
5253 .total_size = 256,
5254 .page_size = 256,
5255 /* OTP: 256B total; enter 0x3A */
5256 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5257 .tested = TEST_UNTESTED,
5258 .probe = probe_spi_rdid,
5259 .probe_timing = TIMING_ZERO,
5260 .block_erasers =
5261 {
5262 {
5263 .eraseblocks = { {4 * 1024, 64} },
5264 .block_erase = spi_block_erase_20,
5265 }, {
5266 .eraseblocks = { {64 * 1024, 4} },
5267 .block_erase = spi_block_erase_d8,
5268 }, {
5269 .eraseblocks = { {256 * 1024, 1} },
5270 .block_erase = spi_block_erase_60,
5271 }, {
5272 .eraseblocks = { {256 * 1024, 1} },
5273 .block_erase = spi_block_erase_c7,
5274 }
5275 },
5276 .printlock = spi_prettyprint_status_register_bp2_srwd,
5277 .unlock = spi_disable_blockprotect,
5278 .write = spi_chip_write_256,
5279 .read = spi_chip_read,
5280 .voltage = {1650, 1950},
5281 },
5282
5283 {
5284 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005285 .name = "EN25S32",
5286 .bustype = BUS_SPI,
5287 .manufacture_id = EON_ID_NOPREFIX,
5288 .model_id = EON_EN25S32,
5289 .total_size = 4096,
5290 .page_size = 256,
5291 /* OTP: 512B total; enter 0x3A */
5292 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5293 .tested = TEST_UNTESTED,
5294 .probe = probe_spi_rdid,
5295 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005296 .block_erasers =
5297 {
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005298 {
5299 .eraseblocks = { {4 * 1024, 1024} },
5300 .block_erase = spi_block_erase_20,
5301 }, {
5302 .eraseblocks = { {32 * 1024, 128} },
5303 .block_erase = spi_block_erase_52,
5304 }, {
5305 .eraseblocks = { {64 * 1024, 64} },
5306 .block_erase = spi_block_erase_d8,
5307 }, {
5308 .eraseblocks = { {4096 * 1024, 1} },
5309 .block_erase = spi_block_erase_60,
5310 }, {
5311 .eraseblocks = { {4096 * 1024, 1} },
5312 .block_erase = spi_block_erase_c7,
5313 }
5314 },
5315 .printlock = spi_prettyprint_status_register_en25s_wp,
5316 .unlock = spi_disable_blockprotect_bp3_srwd,
5317 .write = spi_chip_write_256,
5318 .read = spi_chip_read,
5319 .voltage = {1650, 1950},
5320 },
5321
5322 {
5323 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005324 .name = "EN25S40",
5325 .bustype = BUS_SPI,
5326 .manufacture_id = EON_ID_NOPREFIX,
5327 .model_id = EON_EN25S40,
5328 .total_size = 512,
5329 .page_size = 256,
5330 /* OTP: 256B total; enter 0x3A */
5331 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5332 .tested = TEST_OK_PREW,
5333 .probe = probe_spi_rdid,
5334 .probe_timing = TIMING_ZERO,
5335 .block_erasers =
5336 {
5337 {
5338 .eraseblocks = { {4 * 1024, 128} },
5339 .block_erase = spi_block_erase_20,
5340 }, {
5341 .eraseblocks = { {64 * 1024, 8} },
5342 .block_erase = spi_block_erase_d8,
5343 }, {
5344 .eraseblocks = { {512 * 1024, 1} },
5345 .block_erase = spi_block_erase_60,
5346 }, {
5347 .eraseblocks = { {512 * 1024, 1} },
5348 .block_erase = spi_block_erase_c7,
5349 }
5350 },
5351 .printlock = spi_prettyprint_status_register_bp2_srwd,
5352 .unlock = spi_disable_blockprotect,
5353 .write = spi_chip_write_256,
5354 .read = spi_chip_read,
5355 .voltage = {1650, 1950},
5356 },
5357
5358 {
5359 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005360 .name = "EN25S64",
5361 .bustype = BUS_SPI,
5362 .manufacture_id = EON_ID_NOPREFIX,
5363 .model_id = EON_EN25S64,
5364 .total_size = 8192,
5365 .page_size = 256,
5366 /* OTP: 512B total; enter 0x3A */
5367 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5368 .tested = TEST_UNTESTED,
5369 .probe = probe_spi_rdid,
5370 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005371 .block_erasers =
5372 {
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005373 {
5374 .eraseblocks = { {4 * 1024, 2048} },
5375 .block_erase = spi_block_erase_20,
5376 }, {
5377 .eraseblocks = { {64 * 1024, 128} },
5378 .block_erase = spi_block_erase_d8,
5379 }, {
5380 .eraseblocks = { {8192 * 1024, 1} },
5381 .block_erase = spi_block_erase_60,
5382 }, {
5383 .eraseblocks = { {8192 * 1024, 1} },
5384 .block_erase = spi_block_erase_c7,
5385 }
5386 },
5387 .printlock = spi_prettyprint_status_register_en25s_wp,
5388 .unlock = spi_disable_blockprotect_bp3_srwd,
5389 .write = spi_chip_write_256,
5390 .read = spi_chip_read,
5391 .voltage = {1650, 1950},
5392 },
5393
5394 {
5395 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005396 .name = "EN25S80",
5397 .bustype = BUS_SPI,
5398 .manufacture_id = EON_ID_NOPREFIX,
5399 .model_id = EON_EN25S80,
5400 .total_size = 1024,
5401 .page_size = 256,
5402 /* OTP: 256B total; enter 0x3A */
5403 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5404 .tested = TEST_UNTESTED,
5405 .probe = probe_spi_rdid,
5406 .probe_timing = TIMING_ZERO,
Russ Dill3cd5a122010-03-05 08:44:11 +00005407 .block_erasers =
5408 {
5409 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005410 .eraseblocks = { {4 * 1024, 256} },
5411 .block_erase = spi_block_erase_20,
5412 }, {
5413 .eraseblocks = { {64 * 1024, 16} },
5414 .block_erase = spi_block_erase_d8,
5415 }, {
5416 .eraseblocks = { {1024 * 1024, 1} },
5417 .block_erase = spi_block_erase_60,
5418 }, {
5419 .eraseblocks = { {1024 * 1024, 1} },
5420 .block_erase = spi_block_erase_c7,
5421 }
Russ Dill3cd5a122010-03-05 08:44:11 +00005422 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005423 .printlock = spi_prettyprint_status_register_bp2_srwd,
5424 .unlock = spi_disable_blockprotect,
5425 .write = spi_chip_write_256,
5426 .read = spi_chip_read,
5427 .voltage = {1650, 1950},
Russ Dill3cd5a122010-03-05 08:44:11 +00005428 },
5429
5430 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00005431 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005432 .name = "EN29F002(A)(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005433 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005434 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005435 .model_id = EON_EN29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005436 .total_size = 256,
5437 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00005438 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Alan Green4362e622019-08-26 15:02:12 +10005439 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005440 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005441 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005442 .block_erasers =
5443 {
5444 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005445 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005446 {16 * 1024, 1},
Michael Karchere3cb0a12010-03-13 23:47:09 +00005447 {8 * 1024, 2},
5448 {32 * 1024, 1},
5449 {64 * 1024, 3},
Sean Nelson6b11ad22009-12-23 17:05:59 +00005450 },
5451 .block_erase = erase_sector_jedec,
5452 }, {
5453 .eraseblocks = { {256 * 1024, 1} },
5454 .block_erase = erase_chip_block_jedec,
5455 },
5456 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005457 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005458 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005459 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005460 },
5461
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005462 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00005463 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005464 .name = "EN29F002(A)(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005465 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005466 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005467 .model_id = EON_EN29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005468 .total_size = 256,
5469 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00005470 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00005471 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005472 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005473 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005474 .block_erasers =
5475 {
5476 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005477 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005478 {64 * 1024, 3},
Michael Karchere3cb0a12010-03-13 23:47:09 +00005479 {32 * 1024, 1},
5480 {8 * 1024, 2},
5481 {16 * 1024, 1},
Sean Nelson6b11ad22009-12-23 17:05:59 +00005482 },
5483 .block_erase = erase_sector_jedec,
5484 }, {
5485 .eraseblocks = { {256 * 1024, 1} },
5486 .block_erase = erase_chip_block_jedec,
5487 },
5488 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005489 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005490 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005491 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005492 },
5493
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005494 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005495 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005496 .name = "EN29F010",
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005497 .bustype = BUS_PARALLEL,
5498 .manufacture_id = EON_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005499 .model_id = EON_EN29F010,
5500 .total_size = 128,
5501 .page_size = 128,
5502 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
5503 .tested = TEST_OK_PRE,
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005504 .probe = probe_jedec,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005505 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005506 .block_erasers =
5507 {
5508 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005509 .eraseblocks = { {16 * 1024, 8} },
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005510 .block_erase = erase_sector_jedec,
5511 },
5512 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005513 .eraseblocks = { {128 * 1024, 1} },
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005514 .block_erase = erase_chip_block_jedec,
5515 },
5516 },
5517 .write = write_jedec_1,
5518 .read = read_memmapped,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005519 .voltage = {4500, 5500},
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005520 },
5521
5522 {
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00005523 .vendor = "Eon",
5524 .name = "EN29GL064(A)B",
5525 .bustype = BUS_PARALLEL,
5526 .manufacture_id = EON_ID,
5527 .model_id = EON_EN29GL064B,
5528 .total_size = 8192,
5529 .page_size = 128 * 1024, /* actual page size is 16 */
5530 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5531 .tested = TEST_UNTESTED,
5532 .probe = probe_jedec_29gl,
5533 .probe_timing = TIMING_ZERO,
5534 .block_erasers =
5535 {
5536 {
5537 .eraseblocks = {
5538 {8 * 1024, 8},
5539 {64 * 1024, 127},
5540 },
5541 .block_erase = erase_sector_jedec,
5542 }, {
5543 .eraseblocks = { {8 * 1024 * 1024, 1} },
5544 .block_erase = erase_chip_block_jedec,
5545 },
5546 },
5547 .write = write_jedec_1,
5548 .read = read_memmapped,
5549 .voltage = {2700, 3600},
5550 },
5551
5552 {
5553 .vendor = "Eon",
5554 .name = "EN29GL064(A)T",
5555 .bustype = BUS_PARALLEL,
5556 .manufacture_id = EON_ID,
5557 .model_id = EON_EN29GL064T,
5558 .total_size = 8192,
5559 .page_size = 128 * 1024, /* actual page size is 16 */
5560 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5561 .tested = TEST_UNTESTED,
5562 .probe = probe_jedec_29gl,
5563 .probe_timing = TIMING_ZERO,
5564 .block_erasers =
5565 {
5566 {
5567 .eraseblocks = {
5568 {64 * 1024, 127},
5569 {8 * 1024, 8},
5570 },
5571 .block_erase = erase_sector_jedec,
5572 }, {
5573 .eraseblocks = { {8 * 1024 * 1024, 1} },
5574 .block_erase = erase_chip_block_jedec,
5575 },
5576 },
5577 .write = write_jedec_1,
5578 .read = read_memmapped,
5579 .voltage = {2700, 3600},
5580 },
5581
5582 {
5583 .vendor = "Eon",
5584 .name = "EN29GL064H/L",
5585 .bustype = BUS_PARALLEL,
5586 .manufacture_id = EON_ID,
5587 .model_id = EON_EN29GL064HL,
5588 .total_size = 8192,
5589 .page_size = 128 * 1024, /* actual page size is 16 */
5590 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5591 .tested = TEST_UNTESTED,
5592 .probe = probe_jedec_29gl,
5593 .probe_timing = TIMING_ZERO,
5594 .block_erasers =
5595 {
5596 {
5597 .eraseblocks = { {64 * 1024, 128} },
5598 .block_erase = erase_sector_jedec,
5599 }, {
5600 .eraseblocks = { {8 * 1024 * 1024, 1} },
5601 .block_erase = erase_chip_block_jedec,
5602 },
5603 },
5604 .write = write_jedec_1,
5605 .read = read_memmapped,
5606 .voltage = {2700, 3600},
5607 },
5608
5609 {
5610 .vendor = "Eon",
5611 .name = "EN29GL128",
5612 .bustype = BUS_PARALLEL,
5613 .manufacture_id = EON_ID,
5614 .model_id = EON_EN29GL128HL,
5615 .total_size = 16384,
5616 .page_size = 128 * 1024, /* actual page size is 16 */
5617 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5618 .tested = TEST_UNTESTED,
5619 .probe = probe_jedec_29gl,
5620 .probe_timing = TIMING_ZERO,
5621 .block_erasers =
5622 {
5623 {
5624 .eraseblocks = { {128 * 1024, 128} },
5625 .block_erase = erase_sector_jedec,
5626 }, {
5627 .eraseblocks = { {16 * 1024 * 1024, 1} },
5628 .block_erase = erase_chip_block_jedec,
5629 },
5630 },
5631 .write = write_jedec_1,
5632 .read = read_memmapped,
5633 .voltage = {2700, 3600},
5634 },
5635
5636 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005637 .vendor = "Eon",
5638 .name = "EN29LV040(A)",
5639 .bustype = BUS_PARALLEL,
5640 .manufacture_id = EON_ID,
5641 .model_id = EON_EN29LV040,
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005642 .total_size = 512,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005643 .page_size = 4 * 1024,
5644 .tested = TEST_OK_PREW,
5645 .probe = probe_jedec,
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005646 .probe_timing = TIMING_ZERO,
5647 .block_erasers =
5648 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00005649 {
5650 .eraseblocks = { {64 * 1024, 8} },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005651 .block_erase = erase_sector_jedec,
5652 },
5653 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00005654 .eraseblocks = { {512 * 1024, 1} },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005655 .block_erase = erase_chip_block_jedec,
5656 },
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005657 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005658 .write = write_jedec_1,
5659 .read = read_memmapped,
5660 .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R and 55R, others 2.7-3.6V */
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005661 },
5662
5663 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005664 .vendor = "Eon",
5665 .name = "EN29LV640B",
5666 .bustype = BUS_PARALLEL,
5667 .manufacture_id = EON_ID,
5668 .model_id = EON_EN29LV640B,
5669 .total_size = 8192,
5670 .page_size = 8192,
5671 .feature_bits = FEATURE_ADDR_SHIFTED,
5672 .tested = TEST_OK_PREW,
5673 .probe = probe_en29lv640b,
5674 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005675 .block_erasers =
5676 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00005677 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005678 .eraseblocks = {
5679 {8 * 1024, 8},
5680 {64 * 1024, 127},
5681 },
5682 .block_erase = erase_block_jedec,
Stefan Tauner0be072c2016-03-13 15:16:30 +00005683 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005684 .eraseblocks = { {8 * 1024 * 1024, 1} },
5685 .block_erase = erase_chip_block_jedec,
5686 },
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005687 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005688 .write = write_en29lv640b,
5689 .read = read_memmapped,
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005690 .voltage = {2700, 3600},
5691 },
5692
5693 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005694 .vendor = "Fujitsu",
5695 .name = "MBM29F004BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005696 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005697 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005698 .model_id = FUJITSU_MBM29F004BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005699 .total_size = 512,
5700 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005701 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005702 .tested = TEST_UNTESTED,
5703 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005704 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005705 .block_erasers =
5706 {
5707 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005708 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005709 {16 * 1024, 1},
5710 {8 * 1024, 2},
5711 {32 * 1024, 1},
5712 {64 * 1024, 7},
5713 },
Sean Nelson35727f72010-01-28 23:55:12 +00005714 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005715 }, {
5716 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005717 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005718 },
5719 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005720 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005721 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005722 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005723 },
5724
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005725 {
5726 .vendor = "Fujitsu",
5727 .name = "MBM29F004TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005728 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005729 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005730 .model_id = FUJITSU_MBM29F004TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005731 .total_size = 512,
5732 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005733 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005734 .tested = TEST_UNTESTED,
5735 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005736 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005737 .block_erasers =
5738 {
5739 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005740 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005741 {64 * 1024, 7},
5742 {32 * 1024, 1},
5743 {8 * 1024, 2},
5744 {16 * 1024, 1},
5745 },
Sean Nelson35727f72010-01-28 23:55:12 +00005746 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005747 }, {
5748 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005749 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005750 },
5751 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005752 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005753 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005754 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005755 },
5756
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005757 {
Sean Nelson35727f72010-01-28 23:55:12 +00005758 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005759 .vendor = "Fujitsu",
5760 .name = "MBM29F400BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005761 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005762 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005763 .model_id = FUJITSU_MBM29F400BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005764 .total_size = 512,
5765 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005766 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00005767 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005768 .probe = probe_jedec,
5769 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson6b11ad22009-12-23 17:05:59 +00005770 .block_erasers =
5771 {
5772 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005773 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005774 {16 * 1024, 1},
5775 {8 * 1024, 2},
5776 {32 * 1024, 1},
5777 {64 * 1024, 7},
5778 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005779 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005780 }, {
5781 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005782 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005783 },
5784 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005785 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005786 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005787 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00005788 },
5789
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005790 {
5791 .vendor = "Fujitsu",
5792 .name = "MBM29F400TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005793 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005794 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005795 .model_id = FUJITSU_MBM29F400TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005796 .total_size = 512,
5797 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005798 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005799 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005800 .probe = probe_jedec,
5801 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson6b11ad22009-12-23 17:05:59 +00005802 .block_erasers =
5803 {
5804 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005805 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005806 {64 * 1024, 7},
5807 {32 * 1024, 1},
5808 {8 * 1024, 2},
5809 {16 * 1024, 1},
5810 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005811 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005812 }, {
5813 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005814 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005815 },
5816 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005817 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005818 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005819 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00005820 },
5821
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005822 {
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005823 .vendor = "Fujitsu",
5824 .name = "MBM29LV160BE",
5825 .bustype = BUS_PARALLEL,
5826 .manufacture_id = FUJITSU_ID,
5827 .model_id = FUJITSU_MBM29LV160BE,
5828 .total_size = 2 * 1024,
5829 .page_size = 0,
5830 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET,
5831 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005832 .probe = probe_jedec,
5833 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005834 .block_erasers =
5835 {
5836 {
5837 .eraseblocks = {
5838 {16 * 1024, 1},
5839 {8 * 1024, 2},
5840 {32 * 1024, 1},
5841 {64 * 1024, 31},
5842 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005843 .block_erase = erase_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005844 }, {
5845 .eraseblocks = { {2048 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005846 .block_erase = erase_chip_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005847 },
5848 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005849 .write = write_jedec_1, /* Supports a fast mode too */
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005850 .read = read_memmapped,
5851 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */
5852 },
5853
5854 {
5855 .vendor = "Fujitsu",
5856 .name = "MBM29LV160TE",
5857 .bustype = BUS_PARALLEL,
5858 .manufacture_id = FUJITSU_ID,
5859 .model_id = FUJITSU_MBM29LV160TE,
5860 .total_size = 2 * 1024,
5861 .page_size = 0,
5862 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET,
5863 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005864 .probe = probe_jedec,
5865 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005866 .block_erasers =
5867 {
5868 {
5869 .eraseblocks = {
5870 {64 * 1024, 31},
5871 {32 * 1024, 1},
5872 {8 * 1024, 2},
5873 {16 * 1024, 1},
5874 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005875 .block_erase = erase_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005876 }, {
5877 .eraseblocks = { {2048 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005878 .block_erase = erase_chip_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005879 },
5880 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005881 .write = write_jedec_1, /* Supports a fast mode too */
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005882 .read = read_memmapped,
5883 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */
5884 },
5885
5886 {
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005887 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005888 .name = "GD25B128B/GD25Q128B",
Roman Titov95edc892015-04-03 21:29:04 +00005889 .bustype = BUS_SPI,
5890 .manufacture_id = GIGADEVICE_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005891 .model_id = GIGADEVICE_GD25Q128,
5892 .total_size = 16384,
Roman Titov95edc892015-04-03 21:29:04 +00005893 .page_size = 256,
5894 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
5895 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005896 .tested = TEST_OK_PREW,
Roman Titov95edc892015-04-03 21:29:04 +00005897 .probe = probe_spi_rdid,
5898 .probe_timing = TIMING_ZERO,
5899 .block_erasers =
5900 {
5901 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005902 .eraseblocks = { {4 * 1024, 4096} },
Roman Titov95edc892015-04-03 21:29:04 +00005903 .block_erase = spi_block_erase_20,
5904 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005905 .eraseblocks = { {32 * 1024, 512} },
Roman Titov95edc892015-04-03 21:29:04 +00005906 .block_erase = spi_block_erase_52,
5907 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005908 .eraseblocks = { {64 * 1024, 256} },
Roman Titov95edc892015-04-03 21:29:04 +00005909 .block_erase = spi_block_erase_d8,
5910 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005911 .eraseblocks = { {16 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00005912 .block_erase = spi_block_erase_60,
5913 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005914 .eraseblocks = { {16 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00005915 .block_erase = spi_block_erase_c7,
5916 }
5917 },
5918 .printlock = spi_prettyprint_status_register_bp4_srwd,
5919 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5920 .write = spi_chip_write_256,
5921 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Alan Green1f9cc7d2019-07-01 11:10:45 +10005922 .voltage = {2700, 3600},
Roman Titov95edc892015-04-03 21:29:04 +00005923 },
5924
5925 {
5926 .vendor = "GigaDevice",
Alan Green188127e2019-08-06 16:10:34 +10005927 .name = "GD25LQ128C/GD25LQ128D",
Roman Titov95edc892015-04-03 21:29:04 +00005928 .bustype = BUS_SPI,
5929 .manufacture_id = GIGADEVICE_ID,
Alan Green188127e2019-08-06 16:10:34 +10005930 .model_id = GIGADEVICE_GD25LQ128CD,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005931 .total_size = 16384,
Roman Titov95edc892015-04-03 21:29:04 +00005932 .page_size = 256,
5933 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
5934 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5935 .tested = TEST_UNTESTED,
5936 .probe = probe_spi_rdid,
5937 .probe_timing = TIMING_ZERO,
5938 .block_erasers =
5939 {
5940 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005941 .eraseblocks = { {4 * 1024, 4096} },
Roman Titov95edc892015-04-03 21:29:04 +00005942 .block_erase = spi_block_erase_20,
5943 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005944 .eraseblocks = { {32 * 1024, 512} },
Roman Titov95edc892015-04-03 21:29:04 +00005945 .block_erase = spi_block_erase_52,
5946 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005947 .eraseblocks = { {64 * 1024, 256} },
Roman Titov95edc892015-04-03 21:29:04 +00005948 .block_erase = spi_block_erase_d8,
5949 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005950 .eraseblocks = { {16 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00005951 .block_erase = spi_block_erase_60,
5952 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005953 .eraseblocks = { {16 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00005954 .block_erase = spi_block_erase_c7,
5955 }
5956 },
5957 .printlock = spi_prettyprint_status_register_bp4_srwd,
5958 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5959 .write = spi_chip_write_256,
5960 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5961 .voltage = {1695, 1950},
5962 },
5963
5964 {
5965 .vendor = "GigaDevice",
5966 .name = "GD25LQ16",
5967 .bustype = BUS_SPI,
5968 .manufacture_id = GIGADEVICE_ID,
5969 .model_id = GIGADEVICE_GD25LQ16,
5970 .total_size = 2048,
5971 .page_size = 256,
5972 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
5973 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5974 .tested = TEST_UNTESTED,
5975 .probe = probe_spi_rdid,
5976 .probe_timing = TIMING_ZERO,
5977 .block_erasers =
5978 {
5979 {
5980 .eraseblocks = { {4 * 1024, 512} },
5981 .block_erase = spi_block_erase_20,
5982 }, {
5983 .eraseblocks = { {32 * 1024, 64} },
5984 .block_erase = spi_block_erase_52,
5985 }, {
5986 .eraseblocks = { {64 * 1024, 32} },
5987 .block_erase = spi_block_erase_d8,
5988 }, {
5989 .eraseblocks = { {2 * 1024 * 1024, 1} },
5990 .block_erase = spi_block_erase_60,
5991 }, {
5992 .eraseblocks = { {2 * 1024 * 1024, 1} },
5993 .block_erase = spi_block_erase_c7,
5994 }
5995 },
5996 .printlock = spi_prettyprint_status_register_bp4_srwd,
5997 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5998 .write = spi_chip_write_256,
5999 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6000 .voltage = {1695, 1950},
6001 },
6002
6003 {
6004 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006005 .name = "GD25LQ32",
6006 .bustype = BUS_SPI,
6007 .manufacture_id = GIGADEVICE_ID,
6008 .model_id = GIGADEVICE_GD25LQ32,
6009 .total_size = 4096,
6010 .page_size = 256,
6011 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6012 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6013 .tested = TEST_OK_PREW,
6014 .probe = probe_spi_rdid,
6015 .probe_timing = TIMING_ZERO,
6016 .block_erasers =
6017 {
6018 {
6019 .eraseblocks = { {4 * 1024, 1024} },
6020 .block_erase = spi_block_erase_20,
6021 }, {
6022 .eraseblocks = { {32 * 1024, 128} },
6023 .block_erase = spi_block_erase_52,
6024 }, {
6025 .eraseblocks = { {64 * 1024, 64} },
6026 .block_erase = spi_block_erase_d8,
6027 }, {
6028 .eraseblocks = { {4 * 1024 * 1024, 1} },
6029 .block_erase = spi_block_erase_60,
6030 }, {
6031 .eraseblocks = { {4 * 1024 * 1024, 1} },
6032 .block_erase = spi_block_erase_c7,
6033 }
6034 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006035 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006036 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6037 .write = spi_chip_write_256,
Roman Titov95edc892015-04-03 21:29:04 +00006038 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6039 .voltage = {1695, 1950},
6040 },
6041
6042 {
6043 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006044 .name = "GD25LQ40",
6045 .bustype = BUS_SPI,
6046 .manufacture_id = GIGADEVICE_ID,
6047 .model_id = GIGADEVICE_GD25LQ40,
6048 .total_size = 512,
6049 .page_size = 256,
6050 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6051 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6052 .tested = TEST_UNTESTED,
6053 .probe = probe_spi_rdid,
6054 .probe_timing = TIMING_ZERO,
6055 .block_erasers =
6056 {
6057 {
6058 .eraseblocks = { {4 * 1024, 128} },
6059 .block_erase = spi_block_erase_20,
6060 }, {
6061 .eraseblocks = { {32 * 1024, 16} },
6062 .block_erase = spi_block_erase_52,
6063 }, {
6064 .eraseblocks = { {64 * 1024, 8} },
6065 .block_erase = spi_block_erase_d8,
6066 }, {
6067 .eraseblocks = { {512 * 1024, 1} },
6068 .block_erase = spi_block_erase_60,
6069 }, {
6070 .eraseblocks = { {512 * 1024, 1} },
6071 .block_erase = spi_block_erase_c7,
6072 }
6073 },
6074 .printlock = spi_prettyprint_status_register_bp4_srwd,
6075 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6076 .write = spi_chip_write_256,
6077 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6078 .voltage = {1695, 1950},
6079 },
6080
6081 {
6082 .vendor = "GigaDevice",
Roman Titov95edc892015-04-03 21:29:04 +00006083 .name = "GD25LQ64(B)",
6084 .bustype = BUS_SPI,
6085 .manufacture_id = GIGADEVICE_ID,
6086 .model_id = GIGADEVICE_GD25LQ64,
6087 .total_size = 8192,
6088 .page_size = 256,
6089 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6090 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +00006091 .tested = TEST_OK_PREW,
Roman Titov95edc892015-04-03 21:29:04 +00006092 .probe = probe_spi_rdid,
6093 .probe_timing = TIMING_ZERO,
6094 .block_erasers =
6095 {
6096 {
6097 .eraseblocks = { {4 * 1024, 2048} },
6098 .block_erase = spi_block_erase_20,
6099 }, {
6100 .eraseblocks = { {32 * 1024, 256} },
6101 .block_erase = spi_block_erase_52,
6102 }, {
6103 .eraseblocks = { {64 * 1024, 128} },
6104 .block_erase = spi_block_erase_d8,
6105 }, {
6106 .eraseblocks = { {8 * 1024 * 1024, 1} },
6107 .block_erase = spi_block_erase_60,
6108 }, {
6109 .eraseblocks = { {8 * 1024 * 1024, 1} },
6110 .block_erase = spi_block_erase_c7,
6111 }
6112 },
6113 .printlock = spi_prettyprint_status_register_bp4_srwd,
6114 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6115 .write = spi_chip_write_256,
6116 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6117 .voltage = {1695, 1950},
6118 },
6119
6120 {
6121 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006122 .name = "GD25LQ80",
Roman Titov95edc892015-04-03 21:29:04 +00006123 .bustype = BUS_SPI,
6124 .manufacture_id = GIGADEVICE_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006125 .model_id = GIGADEVICE_GD25LQ80,
6126 .total_size = 1024,
Roman Titov95edc892015-04-03 21:29:04 +00006127 .page_size = 256,
6128 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6129 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6130 .tested = TEST_UNTESTED,
6131 .probe = probe_spi_rdid,
6132 .probe_timing = TIMING_ZERO,
6133 .block_erasers =
6134 {
6135 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006136 .eraseblocks = { {4 * 1024, 256} },
Roman Titov95edc892015-04-03 21:29:04 +00006137 .block_erase = spi_block_erase_20,
6138 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006139 .eraseblocks = { {32 * 1024, 32} },
Roman Titov95edc892015-04-03 21:29:04 +00006140 .block_erase = spi_block_erase_52,
6141 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006142 .eraseblocks = { {64 * 1024, 16} },
Roman Titov95edc892015-04-03 21:29:04 +00006143 .block_erase = spi_block_erase_d8,
6144 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006145 .eraseblocks = { {1 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00006146 .block_erase = spi_block_erase_60,
6147 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006148 .eraseblocks = { {1 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00006149 .block_erase = spi_block_erase_c7,
6150 }
6151 },
6152 .printlock = spi_prettyprint_status_register_bp4_srwd,
6153 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6154 .write = spi_chip_write_256,
6155 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6156 .voltage = {1695, 1950},
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006157 },
6158
6159 {
6160 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006161 .name = "GD25Q10",
6162 .bustype = BUS_SPI,
6163 .manufacture_id = GIGADEVICE_ID,
6164 .model_id = GIGADEVICE_GD25Q10,
6165 .total_size = 128,
6166 .page_size = 256,
6167 .feature_bits = FEATURE_WRSR_WREN,
6168 .tested = TEST_UNTESTED,
6169 .probe = probe_spi_rdid,
6170 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10006171 .block_erasers =
6172 {
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006173 {
6174 .eraseblocks = { {4 * 1024, 32} },
6175 .block_erase = spi_block_erase_20,
6176 }, {
6177 .eraseblocks = { {32 * 1024, 4} },
6178 .block_erase = spi_block_erase_52,
6179 }, {
6180 .eraseblocks = { {64 * 1024, 2} },
6181 .block_erase = spi_block_erase_d8,
6182 }, {
6183 .eraseblocks = { {128 * 1024, 1} },
6184 .block_erase = spi_block_erase_60,
6185 }, {
6186 .eraseblocks = { {128 * 1024, 1} },
6187 .block_erase = spi_block_erase_c7,
6188 }
6189 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006190 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006191 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6192 .write = spi_chip_write_256,
6193 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6194 .voltage = {2700, 3600},
6195 },
6196
6197 {
6198 .vendor = "GigaDevice",
Alan Green4f009122019-08-26 10:45:18 +10006199 .name = "GD25Q127C/GD25Q128C",
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006200 .bustype = BUS_SPI,
6201 .manufacture_id = GIGADEVICE_ID,
6202 .model_id = GIGADEVICE_GD25Q128,
6203 .total_size = 16384,
6204 .page_size = 256,
6205 /* OTP: 1536B total; read 0x48; write 0x42, erase 0x44 */
6206 /* QPI: enable 0x38, disable 0xFF */
6207 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Angel Ponsbce364c2018-09-30 20:04:14 +02006208 .tested = TEST_OK_PREW,
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006209 .probe = probe_spi_rdid,
6210 .probe_timing = TIMING_ZERO,
6211 .block_erasers =
6212 {
6213 {
6214 .eraseblocks = { {4 * 1024, 4096} },
6215 .block_erase = spi_block_erase_20,
6216 }, {
6217 .eraseblocks = { {32 * 1024, 512} },
6218 .block_erase = spi_block_erase_52,
6219 }, {
6220 .eraseblocks = { {64 * 1024, 256} },
6221 .block_erase = spi_block_erase_d8,
6222 }, {
6223 .eraseblocks = { {16 * 1024 * 1024, 1} },
6224 .block_erase = spi_block_erase_60,
6225 }, {
6226 .eraseblocks = { {16 * 1024 * 1024, 1} },
6227 .block_erase = spi_block_erase_c7,
6228 }
6229 },
6230 /* TODO: 2nd status reg (read 0x35, write 0x31) and 3rd status reg (read 0x15, write 0x11) */
6231 .printlock = spi_prettyprint_status_register_bp4_srwd,
6232 .unlock = spi_disable_blockprotect_bp4_srwd,
6233 .write = spi_chip_write_256,
6234 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6235 .voltage = {2700, 3600},
6236 },
6237
6238 {
6239 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006240 .name = "GD25Q16(B)",
6241 .bustype = BUS_SPI,
6242 .manufacture_id = GIGADEVICE_ID,
6243 .model_id = GIGADEVICE_GD25Q16,
6244 .total_size = 2048,
6245 .page_size = 256,
6246 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
6247 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6248 .tested = TEST_OK_PREW,
6249 .probe = probe_spi_rdid,
6250 .probe_timing = TIMING_ZERO,
6251 .block_erasers =
6252 {
6253 {
6254 .eraseblocks = { {4 * 1024, 512} },
6255 .block_erase = spi_block_erase_20,
6256 }, {
6257 .eraseblocks = { {32 * 1024, 64} },
6258 .block_erase = spi_block_erase_52,
6259 }, {
6260 .eraseblocks = { {64 * 1024, 32} },
6261 .block_erase = spi_block_erase_d8,
6262 }, {
6263 .eraseblocks = { {2 * 1024 * 1024, 1} },
6264 .block_erase = spi_block_erase_60,
6265 }, {
6266 .eraseblocks = { {2 * 1024 * 1024, 1} },
6267 .block_erase = spi_block_erase_c7,
6268 }
6269 },
6270 .printlock = spi_prettyprint_status_register_bp4_srwd,
6271 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6272 .write = spi_chip_write_256,
6273 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6274 .voltage = {2700, 3600},
6275 },
6276
6277 {
6278 .vendor = "GigaDevice",
6279 .name = "GD25Q20(B)",
6280 .bustype = BUS_SPI,
6281 .manufacture_id = GIGADEVICE_ID,
6282 .model_id = GIGADEVICE_GD25Q20,
6283 .total_size = 256,
6284 .page_size = 256,
6285 .feature_bits = FEATURE_WRSR_WREN,
6286 .tested = TEST_OK_PREW,
6287 .probe = probe_spi_rdid,
6288 .probe_timing = TIMING_ZERO,
6289 .block_erasers =
6290 {
6291 {
6292 .eraseblocks = { {4 * 1024, 64} },
6293 .block_erase = spi_block_erase_20,
6294 }, {
6295 .eraseblocks = { {32 * 1024, 8} },
6296 .block_erase = spi_block_erase_52,
6297 }, {
6298 .eraseblocks = { {64 * 1024, 4} },
6299 .block_erase = spi_block_erase_d8,
6300 }, {
6301 .eraseblocks = { {256 * 1024, 1} },
6302 .block_erase = spi_block_erase_60,
6303 }, {
6304 .eraseblocks = { {256 * 1024, 1} },
6305 .block_erase = spi_block_erase_c7,
6306 }
6307 },
6308 .printlock = spi_prettyprint_status_register_bp4_srwd,
6309 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6310 .write = spi_chip_write_256,
6311 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6312 .voltage = {2700, 3600},
6313 },
6314
6315 {
6316 .vendor = "GigaDevice",
Alan Green86fc9cf2019-08-26 15:02:12 +10006317 .name = "GD25Q256D",
6318 .bustype = BUS_SPI,
6319 .manufacture_id = GIGADEVICE_ID,
6320 .model_id = GIGADEVICE_GD25Q256D,
6321 .total_size = 32768,
6322 .page_size = 256,
6323 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
6324 .tested = TEST_UNTESTED,
6325 .probe = probe_spi_rdid,
6326 .probe_timing = TIMING_ZERO,
6327 .block_erasers =
6328 {
6329 {
6330 .eraseblocks = { {4 * 1024, 8192} },
Nico Huber5374dc32019-10-04 16:16:15 +02006331 .block_erase = spi_block_erase_21,
6332 }, {
6333 .eraseblocks = { {4 * 1024, 8192} },
Alan Green86fc9cf2019-08-26 15:02:12 +10006334 .block_erase = spi_block_erase_20,
6335 }, {
6336 .eraseblocks = { {32 * 1024, 1024} },
Nico Huber5374dc32019-10-04 16:16:15 +02006337 .block_erase = spi_block_erase_5c,
6338 }, {
6339 .eraseblocks = { {32 * 1024, 1024} },
Alan Green86fc9cf2019-08-26 15:02:12 +10006340 .block_erase = spi_block_erase_52,
6341 }, {
6342 .eraseblocks = { {64 * 1024, 512} },
Nico Huber5374dc32019-10-04 16:16:15 +02006343 .block_erase = spi_block_erase_dc,
6344 }, {
6345 .eraseblocks = { {64 * 1024, 512} },
Alan Green86fc9cf2019-08-26 15:02:12 +10006346 .block_erase = spi_block_erase_d8,
6347 }, {
6348 .eraseblocks = { {32 * 1024 * 1024, 1} },
6349 .block_erase = spi_block_erase_60,
6350 }, {
6351 .eraseblocks = { {32 * 1024 * 1024, 1} },
6352 .block_erase = spi_block_erase_c7,
6353 }
6354 },
6355 .printlock = spi_prettyprint_status_register_bp3_srwd,
6356 .unlock = spi_disable_blockprotect,
6357 .write = spi_chip_write_256,
6358 .read = spi_chip_read,
6359 .voltage = {2700, 3600},
6360 },
6361
6362 {
6363 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006364 .name = "GD25Q32(B)",
6365 .bustype = BUS_SPI,
6366 .manufacture_id = GIGADEVICE_ID,
6367 .model_id = GIGADEVICE_GD25Q32,
6368 .total_size = 4096,
6369 .page_size = 256,
6370 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6371 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6372 .tested = TEST_OK_PREW,
6373 .probe = probe_spi_rdid,
6374 .probe_timing = TIMING_ZERO,
6375 .block_erasers =
6376 {
6377 {
6378 .eraseblocks = { {4 * 1024, 1024} },
6379 .block_erase = spi_block_erase_20,
6380 }, {
6381 .eraseblocks = { {32 * 1024, 128} },
6382 .block_erase = spi_block_erase_52,
6383 }, {
6384 .eraseblocks = { {64 * 1024, 64} },
6385 .block_erase = spi_block_erase_d8,
6386 }, {
6387 .eraseblocks = { {4 * 1024 * 1024, 1} },
6388 .block_erase = spi_block_erase_60,
6389 }, {
6390 .eraseblocks = { {4 * 1024 * 1024, 1} },
6391 .block_erase = spi_block_erase_c7,
6392 }
6393 },
6394 .printlock = spi_prettyprint_status_register_bp4_srwd,
6395 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6396 .write = spi_chip_write_256,
6397 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6398 .voltage = {2700, 3600},
6399 },
6400
6401 {
6402 .vendor = "GigaDevice",
6403 .name = "GD25Q40(B)",
6404 .bustype = BUS_SPI,
6405 .manufacture_id = GIGADEVICE_ID,
6406 .model_id = GIGADEVICE_GD25Q40,
6407 .total_size = 512,
6408 .page_size = 256,
6409 .feature_bits = FEATURE_WRSR_WREN,
6410 .tested = TEST_UNTESTED,
6411 .probe = probe_spi_rdid,
6412 .probe_timing = TIMING_ZERO,
6413 .block_erasers =
6414 {
6415 {
6416 .eraseblocks = { {4 * 1024, 128} },
6417 .block_erase = spi_block_erase_20,
6418 }, {
6419 .eraseblocks = { {32 * 1024, 16} },
6420 .block_erase = spi_block_erase_52,
6421 }, {
6422 .eraseblocks = { {64 * 1024, 8} },
6423 .block_erase = spi_block_erase_d8,
6424 }, {
6425 .eraseblocks = { {512 * 1024, 1} },
6426 .block_erase = spi_block_erase_60,
6427 }, {
6428 .eraseblocks = { {512 * 1024, 1} },
6429 .block_erase = spi_block_erase_c7,
6430 }
6431 },
6432 .printlock = spi_prettyprint_status_register_bp4_srwd,
6433 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6434 .write = spi_chip_write_256,
6435 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6436 .voltage = {2700, 3600},
6437 },
6438
6439 {
6440 .vendor = "GigaDevice",
6441 .name = "GD25Q512",
6442 .bustype = BUS_SPI,
6443 .manufacture_id = GIGADEVICE_ID,
6444 .model_id = GIGADEVICE_GD25Q512,
6445 .total_size = 64,
6446 .page_size = 256,
6447 .feature_bits = FEATURE_WRSR_WREN,
6448 .tested = TEST_OK_PREW,
6449 .probe = probe_spi_rdid,
6450 .probe_timing = TIMING_ZERO,
6451 .block_erasers =
6452 {
6453 {
6454 .eraseblocks = { {4 * 1024, 16} },
6455 .block_erase = spi_block_erase_20,
6456 }, {
6457 .eraseblocks = { {32 * 1024, 2} },
6458 .block_erase = spi_block_erase_52,
6459 }, {
6460 .eraseblocks = { {64 * 1024, 1} },
6461 .block_erase = spi_block_erase_60,
6462 }, {
6463 .eraseblocks = { {64 * 1024, 1} },
6464 .block_erase = spi_block_erase_c7,
6465 }
6466 },
6467 .printlock = spi_prettyprint_status_register_bp4_srwd,
6468 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6469 .write = spi_chip_write_256,
6470 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6471 .voltage = {2700, 3600},
6472 },
6473
6474 {
6475 .vendor = "GigaDevice",
6476 .name = "GD25Q64(B)",
6477 .bustype = BUS_SPI,
6478 .manufacture_id = GIGADEVICE_ID,
6479 .model_id = GIGADEVICE_GD25Q64,
6480 .total_size = 8192,
6481 .page_size = 256,
6482 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6483 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6484 .tested = TEST_OK_PREW,
6485 .probe = probe_spi_rdid,
6486 .probe_timing = TIMING_ZERO,
6487 .block_erasers =
6488 {
6489 {
6490 .eraseblocks = { {4 * 1024, 2048} },
6491 .block_erase = spi_block_erase_20,
6492 }, {
6493 .eraseblocks = { {32 * 1024, 256} },
6494 .block_erase = spi_block_erase_52,
6495 }, {
6496 .eraseblocks = { {64 * 1024, 128} },
6497 .block_erase = spi_block_erase_d8,
6498 }, {
6499 .eraseblocks = { {8 * 1024 * 1024, 1} },
6500 .block_erase = spi_block_erase_60,
6501 }, {
6502 .eraseblocks = { {8 * 1024 * 1024, 1} },
6503 .block_erase = spi_block_erase_c7,
6504 }
6505 },
6506 .printlock = spi_prettyprint_status_register_bp4_srwd,
6507 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6508 .write = spi_chip_write_256,
6509 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6510 .voltage = {2700, 3600},
6511 },
6512
6513 {
6514 .vendor = "GigaDevice",
6515 .name = "GD25Q80(B)",
6516 .bustype = BUS_SPI,
6517 .manufacture_id = GIGADEVICE_ID,
6518 .model_id = GIGADEVICE_GD25Q80,
6519 .total_size = 1024,
6520 .page_size = 256,
6521 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
6522 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6523 .tested = TEST_OK_PREW,
6524 .probe = probe_spi_rdid,
6525 .probe_timing = TIMING_ZERO,
6526 .block_erasers =
6527 {
6528 {
6529 .eraseblocks = { {4 * 1024, 256} },
6530 .block_erase = spi_block_erase_20,
6531 }, {
6532 .eraseblocks = { {32 * 1024, 32} },
6533 .block_erase = spi_block_erase_52,
6534 }, {
6535 .eraseblocks = { {64 * 1024, 16} },
6536 .block_erase = spi_block_erase_d8,
6537 }, {
6538 .eraseblocks = { {1024 * 1024, 1} },
6539 .block_erase = spi_block_erase_60,
6540 }, {
6541 .eraseblocks = { {1024 * 1024, 1} },
6542 .block_erase = spi_block_erase_c7,
6543 }
6544 },
6545 .printlock = spi_prettyprint_status_register_bp4_srwd,
6546 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6547 .write = spi_chip_write_256,
6548 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6549 .voltage = {2700, 3600},
6550 },
6551
6552 {
6553 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006554 .name = "GD25T80",
6555 .bustype = BUS_SPI,
6556 .manufacture_id = GIGADEVICE_ID,
6557 .model_id = GIGADEVICE_GD25T80,
6558 .total_size = 1024,
6559 .page_size = 256,
6560 /* OTP: 256B total; enter 0x3A */
6561 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6562 .tested = TEST_UNTESTED,
6563 .probe = probe_spi_rdid,
6564 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10006565 .block_erasers =
6566 {
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006567 {
6568 .eraseblocks = { {4 * 1024, 256} },
6569 .block_erase = spi_block_erase_20,
6570 }, {
6571 .eraseblocks = { {64 * 1024, 16} },
6572 .block_erase = spi_block_erase_52,
6573 }, {
6574 .eraseblocks = { {64 * 1024, 16} },
6575 .block_erase = spi_block_erase_d8,
6576 }, {
6577 .eraseblocks = { {1024 * 1024, 1} },
6578 .block_erase = spi_block_erase_60,
6579 }, {
6580 .eraseblocks = { {1024 * 1024, 1} },
6581 .block_erase = spi_block_erase_c7,
6582 }
6583 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006584 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006585 .unlock = spi_disable_blockprotect,
6586 .write = spi_chip_write_256,
6587 .read = spi_chip_read,
Stefan Tauner352e50b2013-02-22 15:58:45 +00006588 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006589 },
6590
6591 {
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006592 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006593 .name = "GD25VQ16C",
6594 .bustype = BUS_SPI,
6595 .manufacture_id = GIGADEVICE_ID,
6596 .model_id = GIGADEVICE_GD25VQ16C,
6597 .total_size = 2 * 1024,
6598 .page_size = 256,
6599 /* Supports SFDP */
6600 /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */
6601 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6602 .tested = TEST_UNTESTED,
6603 .probe = probe_spi_rdid,
6604 .probe_timing = TIMING_ZERO,
6605 .block_erasers =
6606 {
6607 {
6608 .eraseblocks = { { 4 * 1024, 512} },
6609 .block_erase = spi_block_erase_20,
6610 }, {
6611 .eraseblocks = { { 32 * 1024, 64} },
6612 .block_erase = spi_block_erase_52,
6613 }, {
6614 .eraseblocks = { { 64 * 1024, 32} },
6615 .block_erase = spi_block_erase_d8,
6616 }, {
6617 .eraseblocks = { {2 * 1024 * 1024, 1} },
6618 .block_erase = spi_block_erase_60,
6619 }, {
6620 .eraseblocks = { {2 * 1024 * 1024, 1} },
6621 .block_erase = spi_block_erase_c7,
6622 }
6623 },
6624 .printlock = spi_prettyprint_status_register_bp4_srwd,
6625 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6626 .write = spi_chip_write_256,
6627 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6628 .voltage = {2300, 3600},
6629 },
6630
6631 {
6632 .vendor = "GigaDevice",
Hatim Kanchwalad0595352016-03-06 14:33:49 +00006633 .name = "GD25VQ21B",
6634 .bustype = BUS_SPI,
6635 .manufacture_id = GIGADEVICE_ID,
6636 .model_id = GIGADEVICE_GD25VQ21B,
6637 .total_size = 256,
6638 .page_size = 256,
6639 /* OTP: 1536B total; read 0x48, write 0x42, erase 0x44 */
6640 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6641 .tested = TEST_UNTESTED,
6642 .probe = probe_spi_rdid,
6643 .probe_timing = TIMING_ZERO,
6644 .block_erasers =
6645 {
6646 {
6647 .eraseblocks = { { 4 * 1024, 64} },
6648 .block_erase = spi_block_erase_20,
6649 }, {
6650 .eraseblocks = { { 32 * 1024, 8} },
6651 .block_erase = spi_block_erase_52,
6652 }, {
6653 .eraseblocks = { { 64 * 1024, 4} },
6654 .block_erase = spi_block_erase_d8,
6655 }, {
6656 .eraseblocks = { {256 * 1024, 1} },
6657 .block_erase = spi_block_erase_60,
6658 }, {
6659 .eraseblocks = { {256 * 1024, 1} },
6660 .block_erase = spi_block_erase_c7,
6661 }
6662 },
6663 .printlock = spi_prettyprint_status_register_bp4_srwd,
6664 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6665 .write = spi_chip_write_256,
6666 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6667 .voltage = {2300, 3600},
6668 },
6669
6670 {
6671 .vendor = "GigaDevice",
6672 .name = "GD25VQ40C",
6673 .bustype = BUS_SPI,
6674 .manufacture_id = GIGADEVICE_ID,
6675 .model_id = GIGADEVICE_GD25VQ41B,
6676 .total_size = 512,
6677 .page_size = 256,
6678 /* Supports SFDP */
6679 /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */
6680 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6681 .tested = TEST_UNTESTED,
6682 .probe = probe_spi_rdid,
6683 .probe_timing = TIMING_ZERO,
6684 .block_erasers =
6685 {
6686 {
6687 .eraseblocks = { { 4 * 1024, 128} },
6688 .block_erase = spi_block_erase_20,
6689 }, {
6690 .eraseblocks = { { 32 * 1024, 16} },
6691 .block_erase = spi_block_erase_52,
6692 }, {
6693 .eraseblocks = { { 64 * 1024, 8} },
6694 .block_erase = spi_block_erase_d8,
6695 }, {
6696 .eraseblocks = { {512 * 1024, 1} },
6697 .block_erase = spi_block_erase_60,
6698 }, {
6699 .eraseblocks = { {512 * 1024, 1} },
6700 .block_erase = spi_block_erase_c7,
6701 }
6702 },
6703 .printlock = spi_prettyprint_status_register_bp4_srwd,
6704 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6705 .write = spi_chip_write_256,
6706 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6707 .voltage = {2300, 3600},
6708 },
6709
6710 {
6711 .vendor = "GigaDevice",
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006712 .name = "GD25VQ41B",
6713 .bustype = BUS_SPI,
6714 .manufacture_id = GIGADEVICE_ID,
6715 .model_id = GIGADEVICE_GD25VQ41B,
6716 .total_size = 512,
6717 .page_size = 256,
6718 /* OTP: 1536B total; read 0x48, write 0x42, erase 0x44 */
6719 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner0be072c2016-03-13 15:16:30 +00006720 .tested = TEST_OK_PREW,
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006721 .probe = probe_spi_rdid,
6722 .probe_timing = TIMING_ZERO,
Stefan Tauner0be072c2016-03-13 15:16:30 +00006723 .block_erasers =
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006724 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00006725 {
6726 .eraseblocks = { { 4 * 1024, 128} },
6727 .block_erase = spi_block_erase_20,
6728 }, {
6729 .eraseblocks = { { 32 * 1024, 16} },
6730 .block_erase = spi_block_erase_52,
6731 }, {
6732 .eraseblocks = { { 64 * 1024, 8} },
6733 .block_erase = spi_block_erase_d8,
6734 }, {
6735 .eraseblocks = { {512 * 1024, 1} },
6736 .block_erase = spi_block_erase_60,
6737 }, {
6738 .eraseblocks = { {512 * 1024, 1} },
6739 .block_erase = spi_block_erase_c7,
6740 }
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006741 },
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006742 .printlock = spi_prettyprint_status_register_bp4_srwd,
Hatim Kanchwalad0595352016-03-06 14:33:49 +00006743 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6744 .write = spi_chip_write_256,
6745 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6746 .voltage = {2300, 3600},
6747 },
6748
6749 {
6750 .vendor = "GigaDevice",
6751 .name = "GD25VQ80C",
6752 .bustype = BUS_SPI,
6753 .manufacture_id = GIGADEVICE_ID,
6754 .model_id = GIGADEVICE_GD25VQ80C,
6755 .total_size = 1024,
6756 .page_size = 256,
6757 /* Supports SFDP */
6758 /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */
6759 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6760 .tested = TEST_UNTESTED,
6761 .probe = probe_spi_rdid,
6762 .probe_timing = TIMING_ZERO,
6763 .block_erasers =
6764 {
6765 {
6766 .eraseblocks = { { 4 * 1024, 256} },
6767 .block_erase = spi_block_erase_20,
6768 }, {
6769 .eraseblocks = { { 32 * 1024, 32} },
6770 .block_erase = spi_block_erase_52,
6771 }, {
6772 .eraseblocks = { { 64 * 1024, 16} },
6773 .block_erase = spi_block_erase_d8,
6774 }, {
6775 .eraseblocks = { {1024 * 1024, 1} },
6776 .block_erase = spi_block_erase_60,
6777 }, {
6778 .eraseblocks = { {1024 * 1024, 1} },
6779 .block_erase = spi_block_erase_c7,
6780 }
6781 },
6782 .printlock = spi_prettyprint_status_register_bp4_srwd,
6783 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6784 .write = spi_chip_write_256,
6785 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6786 .voltage = {2300, 3600},
6787 },
6788
6789 {
Dino Li3214f582020-03-25 17:39:53 +08006790 .vendor = "GigaDevice",
6791 .name = "GD25WQ80E",
6792 .bustype = BUS_SPI,
6793 .manufacture_id = GIGADEVICE_ID,
6794 .model_id = GIGADEVICE_GD25WQ80E,
6795 .total_size = 1024,
6796 .page_size = 256,
6797 .feature_bits = FEATURE_WRSR_WREN,
6798 .tested = TEST_OK_PREW,
6799 .probe = probe_spi_rdid,
6800 .probe_timing = TIMING_ZERO,
6801 .block_erasers =
6802 {
6803 {
6804 .eraseblocks = { {4 * 1024, 256} },
6805 .block_erase = spi_block_erase_20,
6806 }, {
6807 .eraseblocks = { {32 * 1024, 32} },
6808 .block_erase = spi_block_erase_52,
6809 }, {
6810 .eraseblocks = { {64 * 1024, 16} },
6811 .block_erase = spi_block_erase_d8,
6812 }, {
6813 .eraseblocks = { {1 * 1024 * 1024, 1} },
6814 .block_erase = spi_block_erase_60,
6815 }, {
6816 .eraseblocks = { {1 * 1024 * 1024, 1} },
6817 .block_erase = spi_block_erase_c7,
6818 }
6819 },
6820 .printlock = spi_prettyprint_status_register_bp4_srwd,
6821 .unlock = spi_disable_blockprotect_bp4_srwd,
6822 .write = spi_chip_write_256,
6823 .read = spi_chip_read,
6824 .voltage = {1650, 3600},
6825 },
6826
6827 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006828 .vendor = "Hyundai",
6829 .name = "HY29F002B",
6830 .bustype = BUS_PARALLEL,
6831 .manufacture_id = HYUNDAI_ID,
6832 .model_id = HYUNDAI_HY29F002B,
6833 .total_size = 256,
6834 .page_size = 256 * 1024,
6835 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Hatim Kanchwalad0595352016-03-06 14:33:49 +00006836 .tested = TEST_UNTESTED,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006837 .probe = probe_jedec,
6838 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Hatim Kanchwalad0595352016-03-06 14:33:49 +00006839 .block_erasers =
6840 {
6841 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006842 .eraseblocks = {
6843 {16 * 1024, 1},
6844 {8 * 1024, 2},
6845 {32 * 1024, 1},
6846 {64 * 1024, 3},
6847 },
6848 .block_erase = erase_sector_jedec,
Hatim Kanchwalad0595352016-03-06 14:33:49 +00006849 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006850 .eraseblocks = { {256 * 1024, 1} },
6851 .block_erase = erase_chip_block_jedec,
6852 },
Hatim Kanchwalad0595352016-03-06 14:33:49 +00006853 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10006854 .write = write_jedec_1,
6855 .read = read_memmapped,
6856 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006857 },
6858
6859 {
David Borgc96a8bd2010-06-21 16:12:22 +00006860 .vendor = "Hyundai",
6861 .name = "HY29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006862 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00006863 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006864 .model_id = HYUNDAI_HY29F002T,
David Borgc96a8bd2010-06-21 16:12:22 +00006865 .total_size = 256,
6866 .page_size = 256 * 1024,
6867 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006868 .tested = TEST_OK_PRE,
David Borgc96a8bd2010-06-21 16:12:22 +00006869 .probe = probe_jedec,
6870 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6871 .block_erasers =
6872 {
6873 {
6874 .eraseblocks = {
6875 {64 * 1024, 3},
6876 {32 * 1024, 1},
6877 {8 * 1024, 2},
6878 {16 * 1024, 1},
6879 },
6880 .block_erase = erase_sector_jedec,
6881 }, {
6882 .eraseblocks = { {256 * 1024, 1} },
6883 .block_erase = erase_chip_block_jedec,
6884 },
6885 },
6886 .write = write_jedec_1,
6887 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006888 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00006889 },
6890
6891 {
6892 .vendor = "Hyundai",
Joshua Roysf1324e02010-09-16 00:51:51 +00006893 .name = "HY29F040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006894 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00006895 .manufacture_id = HYUNDAI_ID,
6896 .model_id = HYUNDAI_HY29F040A,
6897 .total_size = 512,
6898 .page_size = 64 * 1024,
6899 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
6900 .tested = TEST_UNTESTED,
6901 .probe = probe_jedec,
6902 .probe_timing = TIMING_ZERO,
6903 .block_erasers =
6904 {
6905 {
6906 .eraseblocks = { {64 * 1024, 8} },
6907 .block_erase = erase_sector_jedec,
6908 }, {
6909 .eraseblocks = { {512 * 1024, 1} },
6910 .block_erase = erase_chip_block_jedec,
6911 },
6912 },
6913 .write = write_jedec_1,
6914 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006915 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00006916 },
6917
6918 {
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00006919 .vendor = "ISSI",
Angel Pons2ef47f32018-09-30 16:47:30 +02006920 .name = "IS25LP064",
6921 .bustype = BUS_SPI,
6922 .manufacture_id = ISSI_ID_SPI,
6923 .model_id = ISSI_IS25LP064,
6924 .total_size = 8192,
6925 .page_size = 256,
6926 /* OTP: 1024B total; read 0x48; write 0x42 */
6927 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6928 .tested = TEST_UNTESTED,
6929 .probe = probe_spi_rdid,
6930 .probe_timing = TIMING_ZERO,
6931 .block_erasers =
6932 {
6933 {
6934 .eraseblocks = { {4 * 1024, 2048} },
6935 .block_erase = spi_block_erase_20,
6936 }, {
6937 .eraseblocks = { {4 * 1024, 2048} },
6938 .block_erase = spi_block_erase_d7,
6939 }, {
6940 .eraseblocks = { {32 * 1024, 256} },
6941 .block_erase = spi_block_erase_52,
6942 }, {
6943 .eraseblocks = { {64 * 1024, 128} },
6944 .block_erase = spi_block_erase_d8,
6945 }, {
6946 .eraseblocks = { {8 * 1024 * 1024, 1} },
6947 .block_erase = spi_block_erase_60,
6948 }, {
6949 .eraseblocks = { {8 * 1024 * 1024, 1} },
6950 .block_erase = spi_block_erase_c7,
6951 }
6952 },
6953 .unlock = spi_disable_blockprotect,
6954 .write = spi_chip_write_256,
6955 .read = spi_chip_read,
6956 .voltage = {2300, 3600},
6957 },
6958
6959 {
6960 .vendor = "ISSI",
David Hendricks3083ed92017-05-02 13:25:56 -07006961 .name = "IS25LP128",
6962 .bustype = BUS_SPI,
6963 .manufacture_id = ISSI_ID_SPI,
6964 .model_id = ISSI_IS25LP128,
6965 .total_size = 16384,
6966 .page_size = 256,
6967 /* OTP: 1024B total; read 0x48; write 0x42 */
6968 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6969 .tested = TEST_OK_PREW,
6970 .probe = probe_spi_rdid,
6971 .probe_timing = TIMING_ZERO,
6972 .block_erasers =
6973 {
6974 {
6975 .eraseblocks = { {4 * 1024, 4096} },
6976 .block_erase = spi_block_erase_20,
6977 }, {
6978 .eraseblocks = { {4 * 1024, 4096} },
6979 .block_erase = spi_block_erase_d7,
6980 }, {
6981 .eraseblocks = { {32 * 1024, 512} },
6982 .block_erase = spi_block_erase_52,
6983 }, {
6984 .eraseblocks = { {64 * 1024, 256} },
6985 .block_erase = spi_block_erase_d8,
6986 }, {
6987 .eraseblocks = { {16 * 1024 * 1024, 1} },
6988 .block_erase = spi_block_erase_60,
6989 }, {
6990 .eraseblocks = { {16 * 1024 * 1024, 1} },
6991 .block_erase = spi_block_erase_c7,
6992 }
6993 },
6994 .unlock = spi_disable_blockprotect,
6995 .write = spi_chip_write_256,
6996 .read = spi_chip_read,
6997 .voltage = {2300, 3600},
6998 },
6999
7000 {
7001 .vendor = "ISSI",
David Hendricks61818dc2018-10-28 01:02:21 +00007002 .name = "IS25LP256",
7003 .bustype = BUS_SPI,
7004 .manufacture_id = ISSI_ID_SPI,
7005 .model_id = ISSI_IS25LP256,
7006 .total_size = 32768,
7007 .page_size = 256,
7008 /* supports SFDP */
7009 /* OTP: 1024B total; read 0x68; write 0x62, erase 0x64, read ID 0x4B */
7010 /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */
7011 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA | FEATURE_4BA_ENTER_EAR7,
7012 .tested = TEST_OK_PREW,
7013 .probe = probe_spi_rdid,
7014 .probe_timing = TIMING_ZERO,
7015 .block_erasers =
7016 {
7017 {
7018 .eraseblocks = { {4 * 1024, 8192} },
7019 .block_erase = spi_block_erase_21,
7020 }, {
7021 .eraseblocks = { {4 * 1024, 8192} },
7022 .block_erase = spi_block_erase_20,
7023 /* could also use spi_block_erase_d7 */
7024 }, {
7025 .eraseblocks = { {32 * 1024, 1024} },
7026 .block_erase = spi_block_erase_5c,
7027 }, {
7028 .eraseblocks = { {32 * 1024, 1024} },
7029 .block_erase = spi_block_erase_52,
7030 }, {
7031 .eraseblocks = { {64 * 1024, 512} },
7032 .block_erase = spi_block_erase_dc,
7033 }, {
7034 .eraseblocks = { {64 * 1024, 512} },
7035 .block_erase = spi_block_erase_d8,
7036 }, {
7037 .eraseblocks = { {32 * 1024 * 1024, 1} },
7038 .block_erase = spi_block_erase_60,
7039 }, {
7040 .eraseblocks = { {32 * 1024 * 1024, 1} },
7041 .block_erase = spi_block_erase_c7,
7042 }
7043 },
7044 .unlock = spi_disable_blockprotect,
7045 .write = spi_chip_write_256,
7046 .read = spi_chip_read,
7047 .voltage = {2300, 3600},
7048 },
7049
7050 {
7051 .vendor = "ISSI",
Nico Huberb27b8d12018-10-02 20:46:21 +02007052 .name = "IS25WP032",
7053 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +10007054 .manufacture_id = ISSI_ID_SPI,
Nico Huberb27b8d12018-10-02 20:46:21 +02007055 .model_id = ISSI_IS25WP032,
7056 .total_size = 4096,
7057 .page_size = 256,
7058 /* OTP: 1024B total; read 0x48; write 0x42 */
7059 /* QPI enable 0x35, disable 0xF5 */
7060 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7061 .tested = TEST_UNTESTED,
7062 .probe = probe_spi_rdid,
7063 .probe_timing = TIMING_ZERO,
7064 .block_erasers =
7065 {
7066 {
7067 .eraseblocks = { {4 * 1024, 1024} },
7068 .block_erase = spi_block_erase_20,
7069 }, {
7070 .eraseblocks = { {4 * 1024, 1024} },
7071 .block_erase = spi_block_erase_d7,
7072 }, {
7073 .eraseblocks = { {32 * 1024, 128} },
7074 .block_erase = spi_block_erase_52,
7075 }, {
7076 .eraseblocks = { {64 * 1024, 64} },
7077 .block_erase = spi_block_erase_d8,
7078 }, {
7079 .eraseblocks = { {4 * 1024 * 1024, 1} },
7080 .block_erase = spi_block_erase_60,
7081 }, {
7082 .eraseblocks = { {4 * 1024 * 1024, 1} },
7083 .block_erase = spi_block_erase_c7,
7084 }
7085 },
7086 .unlock = spi_disable_blockprotect,
7087 .write = spi_chip_write_256,
7088 .read = spi_chip_read,
7089 .voltage = {1650, 1950},
7090 },
7091
7092 {
7093 .vendor = "ISSI",
7094 .name = "IS25WP064",
7095 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +10007096 .manufacture_id = ISSI_ID_SPI,
Nico Huberb27b8d12018-10-02 20:46:21 +02007097 .model_id = ISSI_IS25WP064,
7098 .total_size = 8192,
7099 .page_size = 256,
7100 /* OTP: 1024B total; read 0x48; write 0x42 */
7101 /* QPI enable 0x35, disable 0xF5 */
7102 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7103 .tested = TEST_OK_PREW,
7104 .probe = probe_spi_rdid,
7105 .probe_timing = TIMING_ZERO,
7106 .block_erasers =
7107 {
7108 {
7109 .eraseblocks = { {4 * 1024, 2048} },
7110 .block_erase = spi_block_erase_20,
7111 }, {
7112 .eraseblocks = { {4 * 1024, 2048} },
7113 .block_erase = spi_block_erase_d7,
7114 }, {
7115 .eraseblocks = { {32 * 1024, 256} },
7116 .block_erase = spi_block_erase_52,
7117 }, {
7118 .eraseblocks = { {64 * 1024, 128} },
7119 .block_erase = spi_block_erase_d8,
7120 }, {
7121 .eraseblocks = { {8 * 1024 * 1024, 1} },
7122 .block_erase = spi_block_erase_60,
7123 }, {
7124 .eraseblocks = { {8 * 1024 * 1024, 1} },
7125 .block_erase = spi_block_erase_c7,
7126 }
7127 },
7128 .unlock = spi_disable_blockprotect,
7129 .write = spi_chip_write_256,
7130 .read = spi_chip_read,
7131 .voltage = {1650, 1950},
7132 },
7133
7134 {
7135 .vendor = "ISSI",
David Hendricks3083ed92017-05-02 13:25:56 -07007136 .name = "IS25WP128",
7137 .bustype = BUS_SPI,
7138 .manufacture_id = ISSI_ID_SPI,
7139 .model_id = ISSI_IS25WP128,
7140 .total_size = 16384,
7141 .page_size = 256,
7142 /* OTP: 1024B total; read 0x48; write 0x42 */
Nico Huberb27b8d12018-10-02 20:46:21 +02007143 /* QPI enable 0x35, disable 0xF5 */
7144 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
David Hendricks3083ed92017-05-02 13:25:56 -07007145 .tested = TEST_OK_PREW,
7146 .probe = probe_spi_rdid,
7147 .probe_timing = TIMING_ZERO,
7148 .block_erasers =
7149 {
7150 {
7151 .eraseblocks = { {4 * 1024, 4096} },
7152 .block_erase = spi_block_erase_20,
7153 }, {
7154 .eraseblocks = { {4 * 1024, 4096} },
7155 .block_erase = spi_block_erase_d7,
7156 }, {
7157 .eraseblocks = { {32 * 1024, 512} },
7158 .block_erase = spi_block_erase_52,
7159 }, {
7160 .eraseblocks = { {64 * 1024, 256} },
7161 .block_erase = spi_block_erase_d8,
7162 }, {
7163 .eraseblocks = { {16 * 1024 * 1024, 1} },
7164 .block_erase = spi_block_erase_60,
7165 }, {
7166 .eraseblocks = { {16 * 1024 * 1024, 1} },
7167 .block_erase = spi_block_erase_c7,
7168 }
7169 },
7170 .unlock = spi_disable_blockprotect,
7171 .write = spi_chip_write_256,
7172 .read = spi_chip_read,
7173 .voltage = {1650, 1950},
7174 },
7175
7176 {
7177 .vendor = "ISSI",
David Hendricks61818dc2018-10-28 01:02:21 +00007178 .name = "IS25WP256",
7179 .bustype = BUS_SPI,
7180 .manufacture_id = ISSI_ID_SPI,
7181 .model_id = ISSI_IS25WP256,
7182 .total_size = 32768,
7183 .page_size = 256,
7184 /* supports SFDP */
7185 /* OTP: 1024B total; read 0x68; write 0x62, erase 0x64, read ID 0x4B */
7186 /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */
7187 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA | FEATURE_4BA_ENTER_EAR7,
7188 .tested = TEST_OK_PREW,
7189 .probe = probe_spi_rdid,
7190 .probe_timing = TIMING_ZERO,
7191 .block_erasers =
7192 {
7193 {
7194 .eraseblocks = { {4 * 1024, 8192} },
7195 .block_erase = spi_block_erase_21,
7196 }, {
7197 .eraseblocks = { {4 * 1024, 8192} },
7198 .block_erase = spi_block_erase_20,
7199 /* could also use spi_block_erase_d7 */
7200 }, {
7201 .eraseblocks = { {32 * 1024, 1024} },
7202 .block_erase = spi_block_erase_5c,
7203 }, {
7204 .eraseblocks = { {32 * 1024, 1024} },
7205 .block_erase = spi_block_erase_52,
7206 }, {
7207 .eraseblocks = { {64 * 1024, 512} },
7208 .block_erase = spi_block_erase_dc,
7209 }, {
7210 .eraseblocks = { {64 * 1024, 512} },
7211 .block_erase = spi_block_erase_d8,
7212 }, {
7213 .eraseblocks = { {32 * 1024 * 1024, 1} },
7214 .block_erase = spi_block_erase_60,
7215 }, {
7216 .eraseblocks = { {32 * 1024 * 1024, 1} },
7217 .block_erase = spi_block_erase_c7,
7218 }
7219 },
7220 .unlock = spi_disable_blockprotect,
7221 .write = spi_chip_write_256,
7222 .read = spi_chip_read,
7223 .voltage = {1650, 1950},
7224 },
7225
7226 {
7227 .vendor = "ISSI",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007228 .name = "IS29GL064B",
7229 .bustype = BUS_PARALLEL,
7230 .manufacture_id = ISSI_ID,
7231 .model_id = ISSI_PMC_IS29GL064B,
7232 .total_size = 8192,
7233 .page_size = 128 * 1024, /* actual page size is 16 */
7234 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7235 .tested = TEST_UNTESTED,
7236 .probe = probe_jedec_29gl,
7237 .probe_timing = TIMING_ZERO,
7238 .block_erasers =
7239 {
7240 {
7241 .eraseblocks = {
7242 {8 * 1024, 8},
7243 {64 * 1024, 127},
7244 },
7245 .block_erase = erase_sector_jedec,
7246 }, {
7247 .eraseblocks = { {8 * 1024 * 1024, 1} },
7248 .block_erase = erase_chip_block_jedec,
7249 },
7250 },
7251 .write = write_jedec_1,
7252 .read = read_memmapped,
7253 .voltage = {2700, 3600},
7254 },
7255
7256 {
7257 .vendor = "ISSI",
Alan Green1f9cc7d2019-07-01 11:10:45 +10007258 .name = "IS29GL064H/L",
7259 .bustype = BUS_PARALLEL,
7260 .manufacture_id = ISSI_ID,
7261 .model_id = ISSI_PMC_IS29GL064HL,
7262 .total_size = 8192,
7263 .page_size = 128 * 1024, /* actual page size is 16 */
7264 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7265 .tested = TEST_UNTESTED,
7266 .probe = probe_jedec_29gl,
7267 .probe_timing = TIMING_ZERO,
7268 .block_erasers =
7269 {
7270 {
7271 .eraseblocks = { {64 * 1024, 128} },
7272 .block_erase = erase_sector_jedec,
7273 }, {
7274 .eraseblocks = { {8 * 1024 * 1024, 1} },
7275 .block_erase = erase_chip_block_jedec,
7276 },
7277 },
7278 .write = write_jedec_1,
7279 .read = read_memmapped,
7280 .voltage = {2700, 3600},
7281 },
7282
7283 {
7284 .vendor = "ISSI",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007285 .name = "IS29GL064T",
7286 .bustype = BUS_PARALLEL,
7287 .manufacture_id = ISSI_ID,
7288 .model_id = ISSI_PMC_IS29GL064T,
7289 .total_size = 8192,
7290 .page_size = 128 * 1024, /* actual page size is 16 */
7291 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7292 .tested = TEST_UNTESTED,
7293 .probe = probe_jedec_29gl,
7294 .probe_timing = TIMING_ZERO,
7295 .block_erasers =
7296 {
7297 {
7298 .eraseblocks = {
7299 {64 * 1024, 127},
7300 {8 * 1024, 8},
7301 },
7302 .block_erase = erase_sector_jedec,
7303 }, {
7304 .eraseblocks = { {8 * 1024 * 1024, 1} },
7305 .block_erase = erase_chip_block_jedec,
7306 },
7307 },
7308 .write = write_jedec_1,
7309 .read = read_memmapped,
7310 .voltage = {2700, 3600},
7311 },
7312
7313 {
7314 .vendor = "ISSI",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007315 .name = "IS29GL128H/L",
7316 .bustype = BUS_PARALLEL,
7317 .manufacture_id = ISSI_ID,
7318 .model_id = ISSI_PMC_IS29GL128HL,
7319 .total_size = 16384,
7320 .page_size = 128 * 1024, /* actual page size is 16 */
7321 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7322 .tested = TEST_UNTESTED,
7323 .probe = probe_jedec_29gl,
7324 .probe_timing = TIMING_ZERO,
7325 .block_erasers =
7326 {
7327 {
7328 .eraseblocks = { {128 * 1024, 128} },
7329 .block_erase = erase_sector_jedec,
7330 }, {
7331 .eraseblocks = { {16 * 1024 * 1024, 1} },
7332 .block_erase = erase_chip_block_jedec,
7333 },
7334 },
7335 .write = write_jedec_1,
7336 .read = read_memmapped,
7337 .voltage = {2700, 3600},
7338 },
7339
7340 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007341 .vendor = "Intel",
7342 .name = "25F160S33B8",
7343 .bustype = BUS_SPI,
7344 .manufacture_id = INTEL_ID,
7345 .model_id = INTEL_25F160S33B8,
7346 .total_size = 2048,
7347 .page_size = 256,
7348 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
7349 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7350 .tested = TEST_UNTESTED,
7351 .probe = probe_spi_rdid,
7352 .probe_timing = TIMING_ZERO,
7353 .block_erasers =
7354 {
7355 {
7356 /* This chip supports erasing of the 8 so-called "parameter blocks" with
7357 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
7358 * have no effect on the memory contents, but sets a flag in the SR.
7359 .eraseblocks = {
7360 {8 * 1024, 8},
7361 {64 * 1024, 31} // inaccessible
7362 },
7363 .block_erase = spi_block_erase_40,
7364 }, { */
7365 .eraseblocks = { {64 * 1024, 32} },
7366 .block_erase = spi_block_erase_d8,
7367 }, {
7368 .eraseblocks = { {2 * 1024 * 1024, 1} },
7369 .block_erase = spi_block_erase_c7,
7370 }
7371 },
7372 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
7373 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
7374 .write = spi_chip_write_256,
7375 .read = spi_chip_read, /* also fast read 0x0B */
7376 .voltage = {2700, 3600},
7377 },
7378
7379 {
7380 .vendor = "Intel",
7381 .name = "25F160S33T8",
7382 .bustype = BUS_SPI,
7383 .manufacture_id = INTEL_ID,
7384 .model_id = INTEL_25F160S33T8,
7385 .total_size = 2048,
7386 .page_size = 256,
7387 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
7388 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7389 .tested = TEST_UNTESTED,
7390 .probe = probe_spi_rdid,
7391 .probe_timing = TIMING_ZERO,
7392 .block_erasers =
7393 {
7394 {
7395 /* This chip supports erasing of the 8 so-called "parameter blocks" with
7396 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
7397 * have no effect on the memory contents, but sets a flag in the SR.
7398 .eraseblocks = {
7399 {64 * 1024, 31}, // inaccessible
7400 {8 * 1024, 8}
7401 },
7402 .block_erase = spi_block_erase_40,
7403 }, { */
7404 .eraseblocks = { {64 * 1024, 32} },
7405 .block_erase = spi_block_erase_d8,
7406 }, {
7407 .eraseblocks = { {2 * 1024 * 1024, 1} },
7408 .block_erase = spi_block_erase_c7,
7409 }
7410 },
7411 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
7412 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
7413 .write = spi_chip_write_256,
7414 .read = spi_chip_read, /* also fast read 0x0B */
7415 .voltage = {2700, 3600},
7416 },
7417
7418 {
7419 .vendor = "Intel",
7420 .name = "25F320S33B8",
7421 .bustype = BUS_SPI,
7422 .manufacture_id = INTEL_ID,
7423 .model_id = INTEL_25F320S33B8,
7424 .total_size = 4096,
7425 .page_size = 256,
7426 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
7427 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7428 .tested = TEST_UNTESTED,
7429 .probe = probe_spi_rdid,
7430 .probe_timing = TIMING_ZERO,
7431 .block_erasers =
7432 {
7433 {
7434 /* This chip supports erasing of the 8 so-called "parameter blocks" with
7435 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
7436 * have no effect on the memory contents, but sets a flag in the SR.
7437 .eraseblocks = {
7438 {8 * 1024, 8},
7439 {64 * 1024, 63} // inaccessible
7440 },
7441 .block_erase = spi_block_erase_40,
7442 }, { */
7443 .eraseblocks = { {64 * 1024, 64} },
7444 .block_erase = spi_block_erase_d8,
7445 }, {
7446 .eraseblocks = { {4 * 1024 * 1024, 1} },
7447 .block_erase = spi_block_erase_c7,
7448 }
7449 },
7450 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
7451 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
7452 .write = spi_chip_write_256,
7453 .read = spi_chip_read, /* also fast read 0x0B */
7454 .voltage = {2700, 3600},
7455 },
7456
7457 {
7458 .vendor = "Intel",
7459 .name = "25F320S33T8",
7460 .bustype = BUS_SPI,
7461 .manufacture_id = INTEL_ID,
7462 .model_id = INTEL_25F320S33T8,
7463 .total_size = 4096,
7464 .page_size = 256,
7465 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
7466 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7467 .tested = TEST_UNTESTED,
7468 .probe = probe_spi_rdid,
7469 .probe_timing = TIMING_ZERO,
7470 .block_erasers =
7471 {
7472 {
7473 /* This chip supports erasing of the 8 so-called "parameter blocks" with
7474 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
7475 * have no effect on the memory contents, but sets a flag in the SR.
7476 .eraseblocks = {
7477 {64 * 1024, 63}, // inaccessible
7478 {8 * 1024, 8}
7479 },
7480 .block_erase = spi_block_erase_40,
7481 }, { */
7482 .eraseblocks = { {64 * 1024, 64} },
7483 .block_erase = spi_block_erase_d8,
7484 }, {
7485 .eraseblocks = { {4 * 1024 * 1024, 1} },
7486 .block_erase = spi_block_erase_c7,
7487 }
7488 },
7489 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
7490 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
7491 .write = spi_chip_write_256,
7492 .read = spi_chip_read, /* also fast read 0x0B */
7493 .voltage = {2700, 3600},
7494 },
7495
7496 {
7497 .vendor = "Intel",
7498 .name = "25F640S33B8",
7499 .bustype = BUS_SPI,
7500 .manufacture_id = INTEL_ID,
7501 .model_id = INTEL_25F640S33B8,
7502 .total_size = 8192,
7503 .page_size = 256,
7504 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
7505 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7506 .tested = TEST_UNTESTED,
7507 .probe = probe_spi_rdid,
7508 .probe_timing = TIMING_ZERO,
7509 .block_erasers =
7510 {
7511 {
7512 /* This chip supports erasing of the 8 so-called "parameter blocks" with
7513 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
7514 * have no effect on the memory contents, but sets a flag in the SR.
7515 .eraseblocks = {
7516 {8 * 1024, 8},
7517 {64 * 1024, 127} // inaccessible
7518 },
7519 .block_erase = spi_block_erase_40,
7520 }, { */
7521 .eraseblocks = { {64 * 1024, 128} },
7522 .block_erase = spi_block_erase_d8,
7523 }, {
7524 .eraseblocks = { {8 * 1024 * 1024, 1} },
7525 .block_erase = spi_block_erase_c7,
7526 }
7527 },
7528 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
7529 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
7530 .write = spi_chip_write_256,
7531 .read = spi_chip_read, /* also fast read 0x0B */
7532 .voltage = {2700, 3600},
7533 },
7534
7535 {
7536 .vendor = "Intel",
7537 .name = "25F640S33T8",
7538 .bustype = BUS_SPI,
7539 .manufacture_id = INTEL_ID,
7540 .model_id = INTEL_25F640S33T8,
7541 .total_size = 8192,
7542 .page_size = 256,
7543 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
7544 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7545 .tested = TEST_UNTESTED,
7546 .probe = probe_spi_rdid,
7547 .probe_timing = TIMING_ZERO,
7548 .block_erasers =
7549 {
7550 {
7551 /* This chip supports erasing of the 8 so-called "parameter blocks" with
7552 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
7553 * have no effect on the memory contents, but sets a flag in the SR.
7554 .eraseblocks = {
7555 {64 * 1024, 127}, // inaccessible
7556 {8 * 1024, 8}
7557 },
7558 .block_erase = spi_block_erase_40,
7559 }, { */
7560 .eraseblocks = { {64 * 1024, 128} },
7561 .block_erase = spi_block_erase_d8,
7562 }, {
7563 .eraseblocks = { {8 * 1024 * 1024, 1} },
7564 .block_erase = spi_block_erase_c7,
7565 }
7566 },
7567 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
7568 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
7569 .write = spi_chip_write_256,
7570 .read = spi_chip_read, /* also fast read 0x0B */
7571 .voltage = {2700, 3600},
7572 },
7573
7574 {
7575 .vendor = "Intel",
7576 .name = "28F001BN/BX-B",
7577 .bustype = BUS_PARALLEL,
7578 .manufacture_id = INTEL_ID,
7579 .model_id = INTEL_28F001B,
7580 .total_size = 128,
7581 .page_size = 128 * 1024, /* 8k + 2x4k + 112k */
7582 .tested = TEST_UNTESTED,
7583 .probe = probe_jedec,
7584 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7585 .block_erasers =
7586 {
7587 {
7588 .eraseblocks = {
7589 {8 * 1024, 1},
7590 {4 * 1024, 2},
7591 {112 * 1024, 1},
7592 },
7593 .block_erase = erase_block_82802ab,
7594 },
7595 },
7596 .write = write_82802ab,
7597 .read = read_memmapped,
7598 .voltage = {4500, 5500},
7599 },
7600
7601 {
7602 .vendor = "Intel",
7603 .name = "28F001BN/BX-T",
7604 .bustype = BUS_PARALLEL,
7605 .manufacture_id = INTEL_ID,
7606 .model_id = INTEL_28F001T,
7607 .total_size = 128,
7608 .page_size = 128 * 1024, /* 112k + 2x4k + 8k */
7609 .tested = TEST_OK_PREW,
7610 .probe = probe_jedec,
7611 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7612 .block_erasers =
7613 {
7614 {
7615 .eraseblocks = {
7616 {112 * 1024, 1},
7617 {4 * 1024, 2},
7618 {8 * 1024, 1},
7619 },
7620 .block_erase = erase_block_82802ab,
7621 },
7622 },
7623 .write = write_82802ab,
7624 .read = read_memmapped,
7625 .voltage = {4500, 5500},
7626 },
7627
7628 {
7629 .vendor = "Intel",
7630 .name = "28F002BC/BL/BV/BX-T",
7631 .bustype = BUS_PARALLEL,
7632 .manufacture_id = INTEL_ID,
7633 .model_id = INTEL_28F002T,
7634 .total_size = 256,
7635 .page_size = 256 * 1024,
7636 .tested = TEST_OK_PRE,
7637 .probe = probe_82802ab,
7638 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7639 .block_erasers =
7640 {
7641 {
7642 .eraseblocks = {
7643 {128 * 1024, 1},
7644 {96 * 1024, 1},
7645 {8 * 1024, 2},
7646 {16 * 1024, 1},
7647 },
7648 .block_erase = erase_block_82802ab,
7649 },
7650 },
7651 .write = write_82802ab,
7652 .read = read_memmapped,
7653 },
7654
7655 {
7656 .vendor = "Intel",
7657 .name = "28F004B5/BE/BV/BX-B",
7658 .bustype = BUS_PARALLEL,
7659 .manufacture_id = INTEL_ID,
7660 .model_id = INTEL_28F004B,
7661 .total_size = 512,
7662 .page_size = 128 * 1024, /* maximal block size */
7663 .tested = TEST_UNTESTED,
7664 .probe = probe_82802ab,
7665 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7666 .block_erasers =
7667 {
7668 {
7669 .eraseblocks = {
7670 {16 * 1024, 1},
7671 {8 * 1024, 2},
7672 {96 * 1024, 1},
7673 {128 * 1024, 3},
7674 },
7675 .block_erase = erase_block_82802ab,
7676 },
7677 },
7678 .write = write_82802ab,
7679 .read = read_memmapped,
7680 },
7681
7682 {
7683 .vendor = "Intel",
7684 .name = "28F004B5/BE/BV/BX-T",
7685 .bustype = BUS_PARALLEL,
7686 .manufacture_id = INTEL_ID,
7687 .model_id = INTEL_28F004T,
7688 .total_size = 512,
7689 .page_size = 128 * 1024, /* maximal block size */
7690 .tested = TEST_UNTESTED,
7691 .probe = probe_82802ab,
7692 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7693 .block_erasers =
7694 {
7695 {
7696 .eraseblocks = {
7697 {128 * 1024, 3},
7698 {96 * 1024, 1},
7699 {8 * 1024, 2},
7700 {16 * 1024, 1},
7701 },
7702 .block_erase = erase_block_82802ab,
7703 },
7704 },
7705 .write = write_82802ab,
7706 .read = read_memmapped,
7707 },
7708
7709 {
7710 .vendor = "Intel",
7711 .name = "28F008S3/S5/SC",
7712 .bustype = BUS_PARALLEL,
7713 .manufacture_id = INTEL_ID,
7714 .model_id = INTEL_28F004S3,
7715 .total_size = 512,
7716 .page_size = 256,
7717 .tested = TEST_UNTESTED,
7718 .probe = probe_82802ab,
7719 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7720 .block_erasers =
7721 {
7722 {
7723 .eraseblocks = { {64 * 1024, 8} },
7724 .block_erase = erase_block_82802ab,
7725 },
7726 },
7727 .unlock = unlock_28f004s5,
7728 .write = write_82802ab,
7729 .read = read_memmapped,
7730 },
7731
7732 {
7733 .vendor = "Intel",
7734 .name = "28F400BV/BX/CE/CV-B",
7735 .bustype = BUS_PARALLEL,
7736 .manufacture_id = INTEL_ID,
7737 .model_id = INTEL_28F400B,
7738 .total_size = 512,
7739 .page_size = 128 * 1024, /* maximal block size */
7740 .feature_bits = FEATURE_ADDR_SHIFTED,
7741 .tested = TEST_UNTESTED,
7742 .probe = probe_82802ab,
7743 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7744 .block_erasers =
7745 {
7746 {
7747 .eraseblocks = {
7748 {16 * 1024, 1},
7749 {8 * 1024, 2},
7750 {96 * 1024, 1},
7751 {128 * 1024, 3},
7752 },
7753 .block_erase = erase_block_82802ab,
7754 },
7755 },
7756 .write = write_82802ab,
7757 .read = read_memmapped,
7758 },
7759
7760 {
7761 .vendor = "Intel",
7762 .name = "28F400BV/BX/CE/CV-T",
7763 .bustype = BUS_PARALLEL,
7764 .manufacture_id = INTEL_ID,
7765 .model_id = INTEL_28F400T,
7766 .total_size = 512,
7767 .page_size = 128 * 1024, /* maximal block size */
7768 .feature_bits = FEATURE_ADDR_SHIFTED,
7769 .tested = TEST_UNTESTED,
7770 .probe = probe_82802ab,
7771 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7772 .block_erasers =
7773 {
7774 {
7775 .eraseblocks = {
7776 {128 * 1024, 3},
7777 {96 * 1024, 1},
7778 {8 * 1024, 2},
7779 {16 * 1024, 1},
7780 },
7781 .block_erase = erase_block_82802ab,
7782 },
7783 },
7784 .write = write_82802ab,
7785 .read = read_memmapped,
7786 },
7787
7788 {
7789 .vendor = "Intel",
7790 .name = "82802AB",
7791 .bustype = BUS_FWH,
7792 .manufacture_id = INTEL_ID,
7793 .model_id = INTEL_82802AB,
7794 .total_size = 512,
7795 .page_size = 64 * 1024,
7796 .feature_bits = FEATURE_REGISTERMAP,
Alan Green88552572019-07-24 13:56:06 +10007797 .tested = TEST_OK_PREW,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007798 .probe = probe_82802ab,
7799 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
7800 .block_erasers =
7801 {
7802 {
7803 .eraseblocks = { {64 * 1024, 8} },
7804 .block_erase = erase_block_82802ab,
7805 },
7806 },
7807 .unlock = unlock_regspace2_uniform_64k,
7808 .write = write_82802ab,
7809 .read = read_memmapped,
7810 .voltage = {3000, 3600},
7811 },
7812
7813 {
7814 .vendor = "Intel",
7815 .name = "82802AC",
7816 .bustype = BUS_FWH,
7817 .manufacture_id = INTEL_ID,
7818 .model_id = INTEL_82802AC,
7819 .total_size = 1024,
7820 .page_size = 64 * 1024,
7821 .feature_bits = FEATURE_REGISTERMAP,
7822 .tested = TEST_OK_PR,
7823 .probe = probe_82802ab,
7824 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
7825 .block_erasers =
7826 {
7827 {
7828 .eraseblocks = { {64 * 1024, 16} },
7829 .block_erase = erase_block_82802ab,
7830 },
7831 },
7832 .unlock = unlock_regspace2_uniform_64k,
7833 .write = write_82802ab,
7834 .read = read_memmapped,
7835 .voltage = {3000, 3600},
7836 },
7837
7838 {
7839 .vendor = "Macronix",
7840 .name = "MX23L12854",
7841 .bustype = BUS_SPI,
7842 .manufacture_id = MACRONIX_ID,
7843 .model_id = MACRONIX_MX23L12854,
7844 .total_size = 16384,
7845 .page_size = 256,
7846 .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA},
7847 .probe = probe_spi_rdid,
7848 .probe_timing = TIMING_ZERO,
7849 .write = NULL, /* MX23L12854 is a mask ROM, so it is read-only */
7850 .read = spi_chip_read, /* Fast read (0x0B) supported */
7851 .voltage = {3000, 3600},
7852 },
7853
7854 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007855 .vendor = "Macronix",
Michael Coppola583ea322014-08-20 18:56:35 +00007856 .name = "MX23L1654",
7857 .bustype = BUS_SPI,
7858 .manufacture_id = MACRONIX_ID,
7859 .model_id = MACRONIX_MX23L1654,
7860 .total_size = 2048,
7861 .page_size = 256,
7862 .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA},
7863 .probe = probe_spi_rdid,
7864 .probe_timing = TIMING_ZERO,
7865 .write = NULL, /* MX23L1654 is a mask ROM, so it is read-only */
7866 .read = spi_chip_read, /* Fast read (0x0B) supported */
7867 .voltage = {3000, 3600},
7868 },
7869
7870 {
7871 .vendor = "Macronix",
Michael Coppola4e7f36e2014-05-03 23:01:18 +00007872 .name = "MX23L3254",
7873 .bustype = BUS_SPI,
7874 .manufacture_id = MACRONIX_ID,
7875 .model_id = MACRONIX_MX23L3254,
7876 .total_size = 4096,
7877 .page_size = 256,
Stefan Tauner6455dff2014-05-26 00:36:24 +00007878 .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA},
Michael Coppola4e7f36e2014-05-03 23:01:18 +00007879 .probe = probe_spi_rdid,
7880 .probe_timing = TIMING_ZERO,
7881 .write = NULL, /* MX23L3254 is a mask ROM, so it is read-only */
7882 .read = spi_chip_read, /* Fast read (0x0B) supported */
7883 .voltage = {3000, 3600},
7884 },
7885
7886 {
7887 .vendor = "Macronix",
Michael Coppola583ea322014-08-20 18:56:35 +00007888 .name = "MX23L6454",
7889 .bustype = BUS_SPI,
7890 .manufacture_id = MACRONIX_ID,
7891 .model_id = MACRONIX_MX23L6454,
7892 .total_size = 8192,
7893 .page_size = 256,
Stefan Tauner23e10b82016-01-23 16:16:49 +00007894 .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA},
Michael Coppola583ea322014-08-20 18:56:35 +00007895 .probe = probe_spi_rdid,
7896 .probe_timing = TIMING_ZERO,
7897 .write = NULL, /* MX23L6454 is a mask ROM, so it is read-only */
7898 .read = spi_chip_read, /* Fast read (0x0B) supported */
7899 .voltage = {3000, 3600},
7900 },
7901
7902 {
7903 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00007904 .name = "MX25L1005(C)/MX25L1006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007905 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007906 .manufacture_id = MACRONIX_ID,
7907 .model_id = MACRONIX_MX25L1005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007908 .total_size = 128,
7909 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007910 /* MX25L1006E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00007911 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00007912 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007913 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007914 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007915 .block_erasers =
7916 {
7917 {
7918 .eraseblocks = { {4 * 1024, 32} },
7919 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007920 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007921 .eraseblocks = { {64 * 1024, 2} },
7922 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007923 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007924 .eraseblocks = { {128 * 1024, 1} },
7925 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007926 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007927 .eraseblocks = { {128 * 1024, 1} },
7928 .block_erase = spi_block_erase_c7,
7929 },
7930 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007931 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007932 .unlock = spi_disable_blockprotect,
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, MX25L1006E supports dual I/O */
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",
Alan Green1f9cc7d2019-07-01 11:10:45 +10007940 .name = "MX25L12805D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007941 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007942 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007943 .model_id = MACRONIX_MX25L12805D,
7944 .total_size = 16384,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007945 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007946 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
7947 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007948 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007949 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007950 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007951 .block_erasers =
7952 {
7953 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007954 .eraseblocks = { {4 * 1024, 4096} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007955 .block_erase = spi_block_erase_20,
7956 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007957 .eraseblocks = { {64 * 1024, 256} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007958 .block_erase = spi_block_erase_d8,
7959 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007960 .eraseblocks = { {16 * 1024 * 1024, 1} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007961 .block_erase = spi_block_erase_60,
7962 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007963 .eraseblocks = { {16 * 1024 * 1024, 1} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007964 .block_erase = spi_block_erase_c7,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007965 }
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007966 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10007967 .printlock = spi_prettyprint_status_register_bp3_srwd,
7968 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007969 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007970 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007971 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007972 },
7973
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007974 {
7975 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10007976 .name = "MX25L12835F/MX25L12845E/MX25L12865E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007977 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007978 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007979 .model_id = MACRONIX_MX25L12805D,
7980 .total_size = 16384,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007981 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007982 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
7983 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner8179be52011-06-04 13:13:34 +00007984 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007985 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007986 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007987 .block_erasers =
7988 {
7989 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007990 .eraseblocks = { {4 * 1024, 4096} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007991 .block_erase = spi_block_erase_20,
7992 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007993 .eraseblocks = { {32 * 1024, 512} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007994 .block_erase = spi_block_erase_52,
7995 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007996 .eraseblocks = { {64 * 1024, 256} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007997 .block_erase = spi_block_erase_d8,
7998 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007999 .eraseblocks = { {16 * 1024 * 1024, 1} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008000 .block_erase = spi_block_erase_60,
8001 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008002 .eraseblocks = { {16 * 1024 * 1024, 1} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008003 .block_erase = spi_block_erase_c7,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008004 }
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008005 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10008006 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
8007 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8008 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008009 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00008010 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008011 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008012 },
8013
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008014 {
8015 .vendor = "Macronix",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008016 .name = "MX25L1605",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008017 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008018 .manufacture_id = MACRONIX_ID,
8019 .model_id = MACRONIX_MX25L1605,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008020 .total_size = 2048,
8021 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00008022 .feature_bits = FEATURE_WRSR_WREN,
Sven Schnelle4bd8a402011-03-07 10:59:06 +00008023 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008024 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008025 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008026 .block_erasers =
8027 {
8028 {
Stefan Tauner226037d2013-03-16 01:22:12 +00008029 .eraseblocks = { {64 * 1024, 32} },
8030 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008031 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00008032 .eraseblocks = { {64 * 1024, 32} },
8033 .block_erase = spi_block_erase_d8,
8034 }, {
8035 .eraseblocks = { {2 * 1024 * 1024, 1} },
8036 .block_erase = spi_block_erase_60,
8037 }, {
8038 .eraseblocks = { {2 * 1024 * 1024, 1} },
8039 .block_erase = spi_block_erase_c7,
8040 },
8041 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008042 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */
Stefan Tauner226037d2013-03-16 01:22:12 +00008043 .unlock = spi_disable_blockprotect,
8044 .write = spi_chip_write_256,
8045 .read = spi_chip_read, /* Fast read (0x0B) supported */
8046 .voltage = {2700, 3600},
8047 },
8048
8049 {
8050 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008051 .name = "MX25L1605A/MX25L1606E/MX25L1608E",
Stefan Tauner226037d2013-03-16 01:22:12 +00008052 .bustype = BUS_SPI,
8053 .manufacture_id = MACRONIX_ID,
8054 .model_id = MACRONIX_MX25L1605,
8055 .total_size = 2048,
8056 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008057 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L1606E and MX25L1608E only) */
Stefan Tauner226037d2013-03-16 01:22:12 +00008058 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8059 .tested = TEST_OK_PREW,
8060 .probe = probe_spi_rdid,
8061 .probe_timing = TIMING_ZERO,
8062 .block_erasers =
8063 {
8064 {
8065 .eraseblocks = { {4 * 1024, 512} },
8066 .block_erase = spi_block_erase_20,
8067 }, {
8068 .eraseblocks = { {64 * 1024, 32} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008069 .block_erase = spi_block_erase_52,
8070 }, {
8071 .eraseblocks = { {64 * 1024, 32} },
8072 .block_erase = spi_block_erase_d8,
8073 }, {
8074 .eraseblocks = { {2 * 1024 * 1024, 1} },
8075 .block_erase = spi_block_erase_60,
8076 }, {
8077 .eraseblocks = { {2 * 1024 * 1024, 1} },
8078 .block_erase = spi_block_erase_c7,
8079 },
8080 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008081 .printlock = spi_prettyprint_status_register_bp3_srwd, /* MX25L1605A bp2 only */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008082 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008083 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008084 .read = spi_chip_read, /* Fast read (0x0B) supported (MX25L1608E supports dual-I/O read) */
Stefan Tauner226037d2013-03-16 01:22:12 +00008085 .voltage = {2700, 3600},
8086 },
8087
8088 {
8089 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008090 .name = "MX25L1605D/MX25L1608D/MX25L1673E",
Stefan Tauner226037d2013-03-16 01:22:12 +00008091 .bustype = BUS_SPI,
8092 .manufacture_id = MACRONIX_ID,
8093 .model_id = MACRONIX_MX25L1605,
8094 .total_size = 2048,
8095 .page_size = 256,
8096 .feature_bits = FEATURE_WRSR_WREN,
8097 .tested = TEST_OK_PREW,
8098 .probe = probe_spi_rdid,
8099 .probe_timing = TIMING_ZERO,
8100 .block_erasers =
8101 {
8102 {
8103 .eraseblocks = { {4 * 1024, 512} },
8104 .block_erase = spi_block_erase_20,
8105 }, {
8106 .eraseblocks = { {64 * 1024, 32} },
8107 .block_erase = spi_block_erase_d8,
8108 }, {
8109 .eraseblocks = { {2 * 1024 * 1024, 1} },
8110 .block_erase = spi_block_erase_60,
8111 }, {
8112 .eraseblocks = { {2 * 1024 * 1024, 1} },
8113 .block_erase = spi_block_erase_c7,
8114 },
8115 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008116 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: Continuously Program (CP) mode, for 73E is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008117 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00008118 .write = spi_chip_write_256,
8119 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008120 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008121 },
8122
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008123 {
8124 .vendor = "Macronix",
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008125 .name = "MX25L1635D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008126 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008127 .manufacture_id = MACRONIX_ID,
8128 .model_id = MACRONIX_MX25L1635D,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008129 .total_size = 2048,
8130 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008131 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8132 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008133 .tested = TEST_UNTESTED,
8134 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008135 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008136 .block_erasers =
8137 {
8138 {
8139 .eraseblocks = { {4 * 1024, 512} },
8140 .block_erase = spi_block_erase_20,
8141 }, {
8142 .eraseblocks = { {64 * 1024, 32} },
8143 .block_erase = spi_block_erase_d8,
8144 }, {
8145 .eraseblocks = { {2 * 1024 * 1024, 1} },
8146 .block_erase = spi_block_erase_60,
8147 }, {
8148 .eraseblocks = { {2 * 1024 * 1024, 1} },
8149 .block_erase = spi_block_erase_c7,
8150 }
8151 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008152 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008153 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008154 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008155 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008156 .voltage = {2700, 3600},
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008157 },
Stephan Guillouxfd315502009-04-20 22:54:13 +00008158
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008159 {
8160 .vendor = "Macronix",
Stephan Guilloux3611b802010-09-13 19:59:28 +00008161 .name = "MX25L1635E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008162 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008163 .manufacture_id = MACRONIX_ID,
8164 .model_id = MACRONIX_MX25L1635E,
Stephan Guilloux3611b802010-09-13 19:59:28 +00008165 .total_size = 2048,
8166 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008167 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8168 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux3611b802010-09-13 19:59:28 +00008169 .tested = TEST_UNTESTED,
8170 .probe = probe_spi_rdid,
8171 .probe_timing = TIMING_ZERO,
8172 .block_erasers =
8173 {
8174 {
8175 .eraseblocks = { {4 * 1024, 512} },
8176 .block_erase = spi_block_erase_20,
8177 }, {
8178 .eraseblocks = { {64 * 1024, 32} },
8179 .block_erase = spi_block_erase_d8,
8180 }, {
8181 .eraseblocks = { {2 * 1024 * 1024, 1} },
8182 .block_erase = spi_block_erase_60,
8183 }, {
8184 .eraseblocks = { {2 * 1024 * 1024, 1} },
8185 .block_erase = spi_block_erase_c7,
8186 }
8187 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008188 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008189 .unlock = spi_disable_blockprotect_bp3_srwd,
Stephan Guilloux3611b802010-09-13 19:59:28 +00008190 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008191 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00008192 .voltage = {2700, 3600},
Stephan Guilloux3611b802010-09-13 19:59:28 +00008193 },
8194
8195 {
8196 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008197 .name = "MX25L2005(C)/MX25L2006E",
8198 .bustype = BUS_SPI,
8199 .manufacture_id = MACRONIX_ID,
8200 .model_id = MACRONIX_MX25L2005,
8201 .total_size = 256,
8202 .page_size = 256,
8203 .feature_bits = FEATURE_WRSR_WREN,
8204 .tested = TEST_OK_PREW,
8205 .probe = probe_spi_rdid,
8206 .probe_timing = TIMING_ZERO,
8207 .block_erasers =
8208 {
8209 {
8210 .eraseblocks = { {4 * 1024, 64} },
8211 .block_erase = spi_block_erase_20,
8212 }, {
8213 .eraseblocks = { {64 * 1024, 4} },
8214 .block_erase = spi_block_erase_52,
8215 }, {
8216 .eraseblocks = { {64 * 1024, 4} },
8217 .block_erase = spi_block_erase_d8,
8218 }, {
8219 .eraseblocks = { {256 * 1024, 1} },
8220 .block_erase = spi_block_erase_60,
8221 }, {
8222 .eraseblocks = { {256 * 1024, 1} },
8223 .block_erase = spi_block_erase_c7,
8224 },
8225 },
8226 .printlock = spi_prettyprint_status_register_bp1_srwd,
8227 .unlock = spi_disable_blockprotect,
8228 .write = spi_chip_write_256,
8229 .read = spi_chip_read, /* Fast read (0x0B) supported */
8230 .voltage = {2700, 3600},
8231 },
8232
8233 {
8234 .vendor = "Macronix",
Alan Green03707302019-08-26 12:50:43 +10008235 .name = "MX25L25635F/MX25L25645G",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008236 .bustype = BUS_SPI,
8237 .manufacture_id = MACRONIX_ID,
8238 .model_id = MACRONIX_MX25L25635F,
8239 .total_size = 32768,
8240 .page_size = 256,
8241 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8242 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
8243 .tested = TEST_OK_PREW,
8244 .probe = probe_spi_rdid,
8245 .probe_timing = TIMING_ZERO,
8246 .block_erasers =
8247 {
8248 {
8249 .eraseblocks = { {4 * 1024, 8192} },
8250 .block_erase = spi_block_erase_21,
8251 }, {
8252 .eraseblocks = { {4 * 1024, 8192} },
8253 .block_erase = spi_block_erase_20,
8254 }, {
8255 .eraseblocks = { {32 * 1024, 1024} },
8256 .block_erase = spi_block_erase_5c,
8257 }, {
8258 .eraseblocks = { {32 * 1024, 1024} },
8259 .block_erase = spi_block_erase_52,
8260 }, {
8261 .eraseblocks = { {64 * 1024, 512} },
8262 .block_erase = spi_block_erase_dc,
8263 }, {
8264 .eraseblocks = { {64 * 1024, 512} },
8265 .block_erase = spi_block_erase_d8,
8266 }, {
8267 .eraseblocks = { {32 * 1024 * 1024, 1} },
8268 .block_erase = spi_block_erase_60,
8269 }, {
8270 .eraseblocks = { {32 * 1024 * 1024, 1} },
8271 .block_erase = spi_block_erase_c7,
8272 }
8273 },
8274 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
8275 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8276 .unlock = spi_disable_blockprotect_bp3_srwd,
8277 .write = spi_chip_write_256,
8278 .read = spi_chip_read, /* Fast read (0x0B) supported */
8279 .voltage = {2700, 3600},
8280 },
8281
8282 {
8283 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00008284 .name = "MX25L3205(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008285 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008286 .manufacture_id = MACRONIX_ID,
8287 .model_id = MACRONIX_MX25L3205,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008288 .total_size = 4096,
8289 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00008290 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00008291 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008292 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008293 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00008294 .block_erasers =
8295 {
8296 {
Stefan Tauner226037d2013-03-16 01:22:12 +00008297 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00008298 .block_erase = spi_block_erase_20,
8299 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00008300 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00008301 .block_erase = spi_block_erase_d8,
8302 }, {
8303 .eraseblocks = { {4 * 1024 * 1024, 1} },
8304 .block_erase = spi_block_erase_60,
8305 }, {
8306 .eraseblocks = { {4 * 1024 * 1024, 1} },
8307 .block_erase = spi_block_erase_c7,
8308 },
8309 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008310 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008311 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008312 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008313 .read = spi_chip_read, /* Fast read (0x0B) supported */
8314 .voltage = {2700, 3600},
8315 },
8316
8317 {
8318 .vendor = "Macronix",
8319 .name = "MX25L3205D/MX25L3208D",
8320 .bustype = BUS_SPI,
8321 .manufacture_id = MACRONIX_ID,
8322 .model_id = MACRONIX_MX25L3205,
8323 .total_size = 4096,
8324 .page_size = 256,
8325 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8326 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8327 .tested = TEST_OK_PREW,
8328 .probe = probe_spi_rdid,
8329 .probe_timing = TIMING_ZERO,
8330 .block_erasers =
8331 {
8332 {
8333 .eraseblocks = { {4 * 1024, 1024} },
8334 .block_erase = spi_block_erase_20,
8335 }, {
8336 .eraseblocks = { {64 * 1024, 64} },
8337 .block_erase = spi_block_erase_d8,
8338 }, {
8339 .eraseblocks = { {4 * 1024 * 1024, 1} },
8340 .block_erase = spi_block_erase_60,
8341 }, {
8342 .eraseblocks = { {4 * 1024 * 1024, 1} },
8343 .block_erase = spi_block_erase_c7,
8344 },
8345 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008346 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008347 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00008348 .write = spi_chip_write_256,
8349 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
8350 .voltage = {2700, 3600},
8351 },
8352
8353 {
8354 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008355 .name = "MX25L3206E/MX25L3208E",
Stefan Tauner226037d2013-03-16 01:22:12 +00008356 .bustype = BUS_SPI,
8357 .manufacture_id = MACRONIX_ID,
8358 .model_id = MACRONIX_MX25L3205,
8359 .total_size = 4096,
8360 .page_size = 256,
8361 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8362 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8363 .tested = TEST_OK_PREW,
8364 .probe = probe_spi_rdid,
8365 .probe_timing = TIMING_ZERO,
8366 .block_erasers =
8367 {
8368 {
8369 .eraseblocks = { {4 * 1024, 1024} },
8370 .block_erase = spi_block_erase_20,
8371 }, {
8372 .eraseblocks = { {64 * 1024, 64} },
8373 .block_erase = spi_block_erase_d8,
8374 }, {
8375 .eraseblocks = { {64 * 1024, 64} },
8376 .block_erase = spi_block_erase_52,
8377 }, {
8378 .eraseblocks = { {4 * 1024 * 1024, 1} },
8379 .block_erase = spi_block_erase_60,
8380 }, {
8381 .eraseblocks = { {4 * 1024 * 1024, 1} },
8382 .block_erase = spi_block_erase_c7,
8383 },
8384 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008385 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008386 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00008387 .write = spi_chip_write_256,
8388 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008389 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008390 },
8391
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008392 {
8393 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008394 .name = "MX25L3235D",
8395 .bustype = BUS_SPI,
8396 .manufacture_id = MACRONIX_ID,
8397 .model_id = MACRONIX_MX25L3235D,
8398 .total_size = 4096,
8399 .page_size = 256,
8400 /* OTP: 256B total; enter 0xB1, exit 0xC1 */
8401 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8402 .tested = TEST_UNTESTED,
8403 .probe = probe_spi_rdid,
8404 .probe_timing = TIMING_ZERO,
8405 .block_erasers =
8406 {
8407 {
8408 .eraseblocks = { {4 * 1024, 1024} },
8409 .block_erase = spi_block_erase_20,
8410 }, {
8411 .eraseblocks = { {64 * 1024, 64} },
8412 .block_erase = spi_block_erase_d8,
8413 }, {
8414 .eraseblocks = { {4 * 1024 * 1024, 1} },
8415 .block_erase = spi_block_erase_60,
8416 }, {
8417 .eraseblocks = { {4 * 1024 * 1024, 1} },
8418 .block_erase = spi_block_erase_c7,
8419 }
8420 },
8421 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8422 .unlock = spi_disable_blockprotect_bp3_srwd,
8423 .write = spi_chip_write_256,
8424 .read = spi_chip_read,
8425 .voltage = {2700, 3600},
8426 },
8427
8428 {
8429 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008430 .name = "MX25L3273E",
8431 .bustype = BUS_SPI,
8432 .manufacture_id = MACRONIX_ID,
8433 .model_id = MACRONIX_MX25L3205,
8434 .total_size = 4096,
8435 .page_size = 256,
8436 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8437 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +00008438 .tested = TEST_OK_PREW,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008439 .probe = probe_spi_rdid,
8440 .probe_timing = TIMING_ZERO,
8441 .block_erasers =
8442 {
8443 {
8444 .eraseblocks = { {4 * 1024, 1024} },
8445 .block_erase = spi_block_erase_20,
8446 }, {
8447 .eraseblocks = { {32 * 1024, 128} },
8448 .block_erase = spi_block_erase_52,
8449 }, {
8450 .eraseblocks = { {64 * 1024, 64} },
8451 .block_erase = spi_block_erase_d8,
8452 }, {
8453 .eraseblocks = { {4 * 1024 * 1024, 1} },
8454 .block_erase = spi_block_erase_60,
8455 }, {
8456 .eraseblocks = { {4 * 1024 * 1024, 1} },
8457 .block_erase = spi_block_erase_c7,
8458 },
8459 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008460 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008461 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008462 .write = spi_chip_write_256,
8463 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
8464 .voltage = {2700, 3600},
8465 },
8466
8467 {
8468 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008469 .name = "MX25L4005(A/C)/MX25L4006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008470 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008471 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008472 .model_id = MACRONIX_MX25L4005,
8473 .total_size = 512,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00008474 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008475 .feature_bits = FEATURE_WRSR_WREN,
8476 .tested = TEST_OK_PREW,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00008477 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008478 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008479 .block_erasers =
8480 {
8481 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008482 .eraseblocks = { {4 * 1024, 128} },
Sean Nelson54596372010-01-09 05:30:14 +00008483 .block_erase = spi_block_erase_20,
8484 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008485 .eraseblocks = { {64 * 1024, 8} },
8486 .block_erase = spi_block_erase_52,
8487 }, {
8488 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson54596372010-01-09 05:30:14 +00008489 .block_erase = spi_block_erase_d8,
8490 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008491 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00008492 .block_erase = spi_block_erase_60,
8493 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008494 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00008495 .block_erase = spi_block_erase_c7,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008496 },
Sean Nelson54596372010-01-09 05:30:14 +00008497 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10008498 .printlock = spi_prettyprint_status_register_bp2_srwd,
8499 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008500 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008501 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008502 .voltage = {2700, 3600},
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00008503 },
8504
8505 {
8506 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008507 .name = "MX25L512(E)/MX25V512(C)",
8508 .bustype = BUS_SPI,
8509 .manufacture_id = MACRONIX_ID,
8510 .model_id = MACRONIX_MX25L512,
8511 .total_size = 64,
8512 .page_size = 256,
8513 /* MX25L512E supports SFDP */
8514 .feature_bits = FEATURE_WRSR_WREN,
8515 .tested = TEST_OK_PREW,
8516 .probe = probe_spi_rdid,
8517 .probe_timing = TIMING_ZERO,
8518 .block_erasers =
8519 {
8520 {
8521 .eraseblocks = { {4 * 1024, 16} },
8522 .block_erase = spi_block_erase_20,
8523 }, {
8524 .eraseblocks = { {64 * 1024, 1} },
8525 .block_erase = spi_block_erase_52,
8526 }, {
8527 .eraseblocks = { {64 * 1024, 1} },
8528 .block_erase = spi_block_erase_d8,
8529 }, {
8530 .eraseblocks = { {64 * 1024, 1} },
8531 .block_erase = spi_block_erase_60,
8532 }, {
8533 .eraseblocks = { {64 * 1024, 1} },
8534 .block_erase = spi_block_erase_c7,
8535 },
8536 },
8537 .printlock = spi_prettyprint_status_register_bp1_srwd,
8538 .unlock = spi_disable_blockprotect,
8539 .write = spi_chip_write_256,
8540 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L512E supports dual I/O */
8541 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V512(C) */
8542 },
8543
8544 {
8545 .vendor = "Macronix",
Steve Markgraf7e6f3a72020-07-13 18:22:56 +02008546 .name = "MX25L5121E",
8547 .bustype = BUS_SPI,
8548 .manufacture_id = MACRONIX_ID,
8549 .model_id = MACRONIX_MX25L5121E,
8550 .total_size = 64,
8551 .page_size = 32,
8552 .feature_bits = FEATURE_WRSR_WREN,
8553 .tested = TEST_OK_PREW,
8554 .probe = probe_spi_rdid,
8555 .probe_timing = TIMING_ZERO,
8556 .block_erasers =
8557 {
8558 {
8559 .eraseblocks = { {4 * 1024, 16} },
8560 .block_erase = spi_block_erase_20,
8561 }, {
8562 .eraseblocks = { {64 * 1024, 1} },
8563 .block_erase = spi_block_erase_52,
8564 }, {
8565 .eraseblocks = { {64 * 1024, 1} },
8566 .block_erase = spi_block_erase_d8,
8567 }, {
8568 .eraseblocks = { {64 * 1024, 1} },
8569 .block_erase = spi_block_erase_60,
8570 }, {
8571 .eraseblocks = { {64 * 1024, 1} },
8572 .block_erase = spi_block_erase_c7,
8573 },
8574 },
8575 .printlock = spi_prettyprint_status_register_bp1_srwd,
8576 .unlock = spi_disable_blockprotect,
8577 .write = spi_chip_write_256,
8578 .read = spi_chip_read, /* Fast read (0x0B) supported */
8579 .voltage = {2700, 3600},
8580 },
8581
8582 {
8583 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008584 .name = "MX25L6405",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008585 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008586 .manufacture_id = MACRONIX_ID,
8587 .model_id = MACRONIX_MX25L6405,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008588 .total_size = 8192,
8589 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008590 /* Has an additional 512B EEPROM sector */
8591 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzelac427b22012-02-16 21:07:07 +00008592 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008593 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008594 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008595 .block_erasers =
8596 {
8597 {
8598 .eraseblocks = { {64 * 1024, 128} },
8599 .block_erase = spi_block_erase_20,
8600 }, {
8601 .eraseblocks = { {64 * 1024, 128} },
8602 .block_erase = spi_block_erase_d8,
8603 }, {
8604 .eraseblocks = { {8 * 1024 * 1024, 1} },
8605 .block_erase = spi_block_erase_60,
8606 }, {
8607 .eraseblocks = { {8 * 1024 * 1024, 1} },
8608 .block_erase = spi_block_erase_c7,
8609 }
8610 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008611 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: error flag */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008612 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008613 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008614 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008615 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008616 },
8617
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008618 {
8619 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008620 .name = "MX25L6405D",
Stefan Tauner226037d2013-03-16 01:22:12 +00008621 .bustype = BUS_SPI,
8622 .manufacture_id = MACRONIX_ID,
8623 .model_id = MACRONIX_MX25L6405,
8624 .total_size = 8192,
8625 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008626 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
Stefan Tauner226037d2013-03-16 01:22:12 +00008627 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8628 .tested = TEST_OK_PREW,
8629 .probe = probe_spi_rdid,
8630 .probe_timing = TIMING_ZERO,
8631 .block_erasers =
8632 {
8633 {
8634 .eraseblocks = { {4 * 1024, 2048} },
8635 .block_erase = spi_block_erase_20,
8636 }, {
8637 .eraseblocks = { {64 * 1024, 128} },
8638 .block_erase = spi_block_erase_d8,
8639 }, {
8640 .eraseblocks = { {8 * 1024 * 1024, 1} },
8641 .block_erase = spi_block_erase_60,
8642 }, {
8643 .eraseblocks = { {8 * 1024 * 1024, 1} },
8644 .block_erase = spi_block_erase_c7,
8645 }
8646 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008647 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008648 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00008649 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008650 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0xBB) supported */
Stefan Tauner226037d2013-03-16 01:22:12 +00008651 .voltage = {2700, 3600},
8652 },
8653
8654 {
8655 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008656 .name = "MX25L6406E/MX25L6408E",
8657 .bustype = BUS_SPI,
8658 .manufacture_id = MACRONIX_ID,
8659 .model_id = MACRONIX_MX25L6405,
8660 .total_size = 8192,
8661 .page_size = 256,
8662 /* MX25L6406E supports SFDP */
8663 /* OTP: 06E 64B total; enter 0xB1, exit 0xC1 */
8664 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8665 .tested = TEST_OK_PREW,
8666 .probe = probe_spi_rdid,
8667 .probe_timing = TIMING_ZERO,
8668 .block_erasers =
8669 {
8670 {
8671 .eraseblocks = { {4 * 1024, 2048} },
8672 .block_erase = spi_block_erase_20,
8673 }, {
8674 .eraseblocks = { {64 * 1024, 128} },
8675 .block_erase = spi_block_erase_52,
8676 }, {
8677 .eraseblocks = { {64 * 1024, 128} },
8678 .block_erase = spi_block_erase_d8,
8679 }, {
8680 .eraseblocks = { {8 * 1024 * 1024, 1} },
8681 .block_erase = spi_block_erase_60,
8682 }, {
8683 .eraseblocks = { {8 * 1024 * 1024, 1} },
8684 .block_erase = spi_block_erase_c7,
8685 }
8686 },
8687 .printlock = spi_prettyprint_status_register_bp3_srwd,
8688 .unlock = spi_disable_blockprotect_bp3_srwd,
8689 .write = spi_chip_write_256,
8690 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read supported */
8691 .voltage = {2700, 3600},
8692 },
8693
8694 {
8695 .vendor = "Macronix",
Nico Huberb0072782017-12-06 21:02:57 +01008696 .name = "MX25L6436E/MX25L6445E/MX25L6465E/MX25L6473E/MX25L6473F",
Stefan Tauner226037d2013-03-16 01:22:12 +00008697 .bustype = BUS_SPI,
8698 .manufacture_id = MACRONIX_ID,
8699 .model_id = MACRONIX_MX25L6405,
8700 .total_size = 8192,
8701 .page_size = 256,
8702 /* supports SFDP */
8703 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8704 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8705 .tested = TEST_OK_PREW,
8706 .probe = probe_spi_rdid,
8707 .probe_timing = TIMING_ZERO,
8708 .block_erasers =
8709 {
8710 {
8711 .eraseblocks = { {4 * 1024, 2048} },
8712 .block_erase = spi_block_erase_20,
8713 }, {
8714 .eraseblocks = { {32 * 1024, 256} },
8715 .block_erase = spi_block_erase_52,
8716 }, {
8717 .eraseblocks = { {64 * 1024, 128} },
8718 .block_erase = spi_block_erase_d8,
8719 }, {
8720 .eraseblocks = { {8 * 1024 * 1024, 1} },
8721 .block_erase = spi_block_erase_60,
8722 }, {
8723 .eraseblocks = { {8 * 1024 * 1024, 1} },
8724 .block_erase = spi_block_erase_c7,
8725 }
8726 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008727 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008728 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00008729 .write = spi_chip_write_256,
8730 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8731 .voltage = {2700, 3600},
8732 },
8733
8734 {
8735 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008736 .name = "MX25L6495F",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008737 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008738 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008739 .model_id = MACRONIX_MX25L6495F,
8740 .total_size = 8192,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00008741 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008742 /* OTP: 1024B total; enter 0xB1, exit 0xC1 */
Stefan Tauner226037d2013-03-16 01:22:12 +00008743 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +00008744 .tested = TEST_OK_PREW,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00008745 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008746 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008747 .block_erasers =
8748 {
8749 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008750 .eraseblocks = { {4 * 1024, 2048} },
Sean Nelson54596372010-01-09 05:30:14 +00008751 .block_erase = spi_block_erase_20,
8752 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008753 .eraseblocks = { {64 * 1024, 128} },
Sean Nelson54596372010-01-09 05:30:14 +00008754 .block_erase = spi_block_erase_d8,
8755 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008756 .eraseblocks = { {32 * 1024, 256} },
8757 .block_erase = spi_block_erase_52,
8758 }, {
8759 .eraseblocks = { {8 * 1024 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00008760 .block_erase = spi_block_erase_60,
8761 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008762 .eraseblocks = { {8 * 1024 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00008763 .block_erase = spi_block_erase_c7,
8764 }
8765 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10008766 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008767 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008768 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008769 .voltage = {2700, 3600},
8770 },
8771
8772 {
8773 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008774 .name = "MX25L8005/MX25L8006E/MX25L8008E/MX25V8005",
Stefan Tauner5c316f92015-02-08 21:57:52 +00008775 .bustype = BUS_SPI,
8776 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008777 .model_id = MACRONIX_MX25L8005,
8778 .total_size = 1024,
8779 .page_size = 256,
8780 /* MX25L8006E, MX25L8008E support SFDP */
8781 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L8006E, MX25L8008E only) */
8782 .feature_bits = FEATURE_WRSR_WREN,
8783 .tested = TEST_OK_PREW,
8784 .probe = probe_spi_rdid,
8785 .probe_timing = TIMING_ZERO,
8786 .block_erasers =
8787 {
8788 {
8789 .eraseblocks = { {4 * 1024, 256} },
8790 .block_erase = spi_block_erase_20,
8791 }, {
8792 .eraseblocks = { {64 * 1024, 16} },
8793 .block_erase = spi_block_erase_52,
8794 }, {
8795 .eraseblocks = { {64 * 1024, 16} },
8796 .block_erase = spi_block_erase_d8,
8797 }, {
8798 .eraseblocks = { {1024 * 1024, 1} },
8799 .block_erase = spi_block_erase_60,
8800 }, {
8801 .eraseblocks = { {1024 * 1024, 1} },
8802 .block_erase = spi_block_erase_c7,
8803 },
8804 },
8805 .printlock = spi_prettyprint_status_register_bp2_srwd,
8806 .unlock = spi_disable_blockprotect,
8807 .write = spi_chip_write_256,
8808 .read = spi_chip_read, /* Fast read (0x0B) supported */
8809 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V8005 */
8810 },
8811
8812 {
8813 .vendor = "Macronix",
sibradzicf62623c2020-03-14 17:21:34 +09008814 .name = "MX25R3235F",
8815 .bustype = BUS_SPI,
8816 .manufacture_id = MACRONIX_ID,
8817 .model_id = MACRONIX_MX25R3235F,
8818 .total_size = 4096,
8819 .page_size = 256,
8820 /* OTP: 1024B total; enter 0xB1, exit 0xC1 */
8821 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8822 .tested = TEST_OK_PREW,
8823 .probe = probe_spi_rdid,
8824 .probe_timing = TIMING_ZERO,
8825 .block_erasers =
8826 {
8827 {
8828 .eraseblocks = { {4 * 1024, 1024} },
8829 .block_erase = spi_block_erase_20,
8830 }, {
8831 .eraseblocks = { {64 * 1024, 64} },
8832 .block_erase = spi_block_erase_d8,
8833 }, {
8834 .eraseblocks = { {32 * 1024, 128} },
8835 .block_erase = spi_block_erase_52,
8836 }, {
8837 .eraseblocks = { {4 * 1024 * 1024, 1} },
8838 .block_erase = spi_block_erase_60,
8839 }, {
8840 .eraseblocks = { {4 * 1024 * 1024, 1} },
8841 .block_erase = spi_block_erase_c7,
8842 }
8843 },
8844 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit 6 is quad enable */
8845 .unlock = spi_disable_blockprotect_bp3_srwd,
8846 .write = spi_chip_write_256,
8847 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8848 .voltage = {1650, 3600},
8849 },
8850
8851 {
8852 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008853 .name = "MX25R6435F",
8854 .bustype = BUS_SPI,
8855 .manufacture_id = MACRONIX_ID,
8856 .model_id = MACRONIX_MX25R6435F,
8857 .total_size = 8192,
8858 .page_size = 256,
8859 /* OTP: 1024B total; enter 0xB1, exit 0xC1 */
8860 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8861 .tested = TEST_OK_PREW,
8862 .probe = probe_spi_rdid,
8863 .probe_timing = TIMING_ZERO,
8864 .block_erasers =
8865 {
8866 {
8867 .eraseblocks = { {4 * 1024, 2048} },
8868 .block_erase = spi_block_erase_20,
8869 }, {
8870 .eraseblocks = { {64 * 1024, 128} },
8871 .block_erase = spi_block_erase_d8,
8872 }, {
8873 .eraseblocks = { {32 * 1024, 256} },
8874 .block_erase = spi_block_erase_52,
8875 }, {
8876 .eraseblocks = { {8 * 1024 * 1024, 1} },
8877 .block_erase = spi_block_erase_60,
8878 }, {
8879 .eraseblocks = { {8 * 1024 * 1024, 1} },
8880 .block_erase = spi_block_erase_c7,
8881 }
8882 },
8883 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8884 .unlock = spi_disable_blockprotect_bp3_srwd,
8885 .write = spi_chip_write_256,
8886 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8887 .voltage = {1650, 3600},
8888 },
8889
8890 {
8891 .vendor = "Macronix",
8892 .name = "MX25U12835F",
8893 .bustype = BUS_SPI,
8894 .manufacture_id = MACRONIX_ID,
8895 .model_id = MACRONIX_MX25U12835E,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008896 .total_size = 16384,
8897 .page_size = 256,
8898 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
Alan Green1f9cc7d2019-07-01 11:10:45 +10008899 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008900 .tested = TEST_OK_PREW,
8901 .probe = probe_spi_rdid,
8902 .probe_timing = TIMING_ZERO,
8903 .block_erasers =
8904 {
8905 {
8906 .eraseblocks = { {4 * 1024, 4096} },
8907 .block_erase = spi_block_erase_20,
8908 }, {
8909 .eraseblocks = { {32 * 1024, 512} },
8910 .block_erase = spi_block_erase_52,
8911 }, {
8912 .eraseblocks = { {64 * 1024, 256} },
8913 .block_erase = spi_block_erase_d8,
8914 }, {
8915 .eraseblocks = { {16 * 1024 * 1024, 1} },
8916 .block_erase = spi_block_erase_60,
8917 }, {
8918 .eraseblocks = { {16 * 1024 * 1024, 1} },
8919 .block_erase = spi_block_erase_c7,
8920 }
8921 },
Angel Ponsf112e242018-09-30 20:14:17 +02008922 /* TODO: security register */
8923 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8924 .unlock = spi_disable_blockprotect_bp3_srwd,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008925 .write = spi_chip_write_256, /* Multi I/O supported */
Angel Ponsf112e242018-09-30 20:14:17 +02008926 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8927 .voltage = {1650, 2000},
8928 },
8929
8930 {
8931 .vendor = "Macronix",
Vincent Palatinf800f552013-03-15 02:03:16 +00008932 .name = "MX25U1635E",
8933 .bustype = BUS_SPI,
8934 .manufacture_id = MACRONIX_ID,
8935 .model_id = MACRONIX_MX25U1635E,
8936 .total_size = 2048,
8937 .page_size = 256,
8938 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8939 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
8940 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008941 .tested = TEST_OK_PR,
Vincent Palatinf800f552013-03-15 02:03:16 +00008942 .probe = probe_spi_rdid,
8943 .probe_timing = TIMING_ZERO,
8944 .block_erasers =
8945 {
8946 {
8947 .eraseblocks = { {4 * 1024, 512} },
8948 .block_erase = spi_block_erase_20,
8949 }, {
8950 .eraseblocks = { {32 * 1024, 64} },
8951 .block_erase = spi_block_erase_52,
8952 }, {
8953 .eraseblocks = { {64 * 1024, 32} },
8954 .block_erase = spi_block_erase_d8,
8955 }, {
8956 .eraseblocks = { {2 * 1024 * 1024, 1} },
8957 .block_erase = spi_block_erase_60,
8958 }, {
8959 .eraseblocks = { {2 * 1024 * 1024, 1} },
8960 .block_erase = spi_block_erase_c7,
8961 }
8962 },
8963 /* TODO: security register */
Stefan Tauner12f3d512014-05-27 21:27:27 +00008964 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008965 .unlock = spi_disable_blockprotect_bp3_srwd,
Vincent Palatinf800f552013-03-15 02:03:16 +00008966 .write = spi_chip_write_256,
8967 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8968 .voltage = {1650, 2000},
8969 },
8970
8971 {
8972 .vendor = "Macronix",
David Tomaschikf75d8c52019-06-20 09:49:01 -07008973 .name = "MX25U25635F",
8974 .bustype = BUS_SPI,
8975 .manufacture_id = MACRONIX_ID,
8976 .model_id = MACRONIX_MX25U25635F,
8977 .total_size = 32768,
8978 .page_size = 256,
8979 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8980 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_4BA,
8981 .tested = TEST_OK_PR,
8982 .probe = probe_spi_rdid,
8983 .probe_timing = TIMING_ZERO,
8984 .block_erasers =
8985 {
8986 {
8987 .eraseblocks = { {4 * 1024, 8192} },
8988 .block_erase = spi_block_erase_21,
8989 }, {
8990 .eraseblocks = { {4 * 1024, 8192} },
8991 .block_erase = spi_block_erase_20,
8992 }, {
8993 .eraseblocks = { {32 * 1024, 1024} },
8994 .block_erase = spi_block_erase_5c,
8995 }, {
8996 .eraseblocks = { {32 * 1024, 1024} },
8997 .block_erase = spi_block_erase_52,
8998 }, {
8999 .eraseblocks = { {64 * 1024, 512} },
9000 .block_erase = spi_block_erase_dc,
9001 }, {
9002 .eraseblocks = { {64 * 1024, 512} },
9003 .block_erase = spi_block_erase_d8,
9004 }, {
9005 .eraseblocks = { {32 * 1024 * 1024, 1} },
9006 .block_erase = spi_block_erase_60,
9007 }, {
9008 .eraseblocks = { {32 * 1024 * 1024, 1} },
9009 .block_erase = spi_block_erase_c7,
9010 }
9011 },
9012 /* TODO: security register */
9013 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9014 .unlock = spi_disable_blockprotect_bp3_srwd,
9015 .write = spi_chip_write_256, /* Multi I/O supported */
9016 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9017 .voltage = {1650, 2000},
9018 },
9019
9020 {
9021 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009022 .name = "MX25U3235E/F",
9023 .bustype = BUS_SPI,
9024 .manufacture_id = MACRONIX_ID,
9025 .model_id = MACRONIX_MX25U3235E,
9026 .total_size = 4096,
9027 .page_size = 256,
9028 /* F model supports SFDP */
9029 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9030 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
9031 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
9032 .tested = TEST_OK_PREW,
9033 .probe = probe_spi_rdid,
9034 .probe_timing = TIMING_ZERO,
9035 .block_erasers =
9036 {
9037 {
9038 .eraseblocks = { {4 * 1024, 1024} },
9039 .block_erase = spi_block_erase_20,
9040 }, {
9041 .eraseblocks = { {32 * 1024, 128} },
9042 .block_erase = spi_block_erase_52,
9043 }, {
9044 .eraseblocks = { {64 * 1024, 64} },
9045 .block_erase = spi_block_erase_d8,
9046 }, {
9047 .eraseblocks = { {4 * 1024 * 1024, 1} },
9048 .block_erase = spi_block_erase_60,
9049 }, {
9050 .eraseblocks = { {4 * 1024 * 1024, 1} },
9051 .block_erase = spi_block_erase_c7,
9052 }
9053 },
9054 /* TODO: security register */
9055 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9056 .unlock = spi_disable_blockprotect_bp3_srwd,
9057 .write = spi_chip_write_256,
9058 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9059 .voltage = {1650, 2000},
9060 },
9061
9062 {
9063 .vendor = "Macronix",
Daniel Thompsoncadd4202018-06-04 13:52:22 +01009064 .name = "MX25U51245G",
9065 .bustype = BUS_SPI,
9066 .manufacture_id = MACRONIX_ID,
9067 .model_id = MACRONIX_MX25U51245G,
9068 .total_size = 65536,
9069 .page_size = 256,
9070 /* OTP: 512B factory programmed and 512B customer programmed; enter 0xB1, exit 0xC1 */
9071 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_4BA,
9072 .tested = TEST_OK_PREW,
9073 .probe = probe_spi_rdid,
9074 .probe_timing = TIMING_ZERO,
9075 .block_erasers =
9076 {
9077 {
9078 .eraseblocks = { {4 * 1024, 16384} },
9079 .block_erase = spi_block_erase_21,
9080 }, {
9081 .eraseblocks = { {4 * 1024, 16384} },
9082 .block_erase = spi_block_erase_20,
9083 }, {
9084 .eraseblocks = { {32 * 1024, 2048} },
9085 .block_erase = spi_block_erase_5c,
9086 }, {
9087 .eraseblocks = { {32 * 1024, 2048} },
9088 .block_erase = spi_block_erase_52,
9089 }, {
9090 .eraseblocks = { {64 * 1024, 1024} },
9091 .block_erase = spi_block_erase_dc,
9092 }, {
9093 .eraseblocks = { {64 * 1024, 1024} },
9094 .block_erase = spi_block_erase_d8,
9095 }, {
9096 .eraseblocks = { {64 * 1024 * 1024, 1} },
9097 .block_erase = spi_block_erase_60,
9098 }, {
9099 .eraseblocks = { {64 * 1024 * 1024, 1} },
9100 .block_erase = spi_block_erase_c7,
9101 }
9102 },
9103 /* TODO: security register */
9104 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9105 .unlock = spi_disable_blockprotect_bp3_srwd,
9106 .write = spi_chip_write_256, /* Multi I/O supported */
9107 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9108 .voltage = {1650, 2000},
9109 },
9110
9111 {
9112 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009113 .name = "MX25U6435E/F",
Stefan Tauner40bc96f2015-01-10 09:33:14 +00009114 .bustype = BUS_SPI,
9115 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009116 .model_id = MACRONIX_MX25U6435E,
Stefan Tauner40bc96f2015-01-10 09:33:14 +00009117 .total_size = 8192,
9118 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009119 /* F model supports SFDP */
9120 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9121 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
9122 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner40bc96f2015-01-10 09:33:14 +00009123 .tested = TEST_OK_PREW,
9124 .probe = probe_spi_rdid,
9125 .probe_timing = TIMING_ZERO,
9126 .block_erasers =
9127 {
9128 {
9129 .eraseblocks = { {4 * 1024, 2048} },
9130 .block_erase = spi_block_erase_20,
9131 }, {
Stefan Tauner40bc96f2015-01-10 09:33:14 +00009132 .eraseblocks = { {32 * 1024, 256} },
9133 .block_erase = spi_block_erase_52,
9134 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009135 .eraseblocks = { {64 * 1024, 128} },
9136 .block_erase = spi_block_erase_d8,
9137 }, {
Stefan Tauner40bc96f2015-01-10 09:33:14 +00009138 .eraseblocks = { {8 * 1024 * 1024, 1} },
9139 .block_erase = spi_block_erase_60,
9140 }, {
9141 .eraseblocks = { {8 * 1024 * 1024, 1} },
9142 .block_erase = spi_block_erase_c7,
9143 }
9144 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10009145 /* TODO: security register */
Nathan Rennie-Waldock5a7f9422018-08-10 15:35:23 +01009146 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9147 .unlock = spi_disable_blockprotect_bp3_srwd,
9148 .write = spi_chip_write_256,
9149 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Alan Green1f9cc7d2019-07-01 11:10:45 +10009150 .voltage = {1650, 2000},
9151 },
9152
9153 {
9154 .vendor = "Macronix",
9155 .name = "MX25U8032E",
9156 .bustype = BUS_SPI,
9157 .manufacture_id = MACRONIX_ID,
9158 .model_id = MACRONIX_MX25U8032E,
9159 .total_size = 1024,
9160 .page_size = 256,
9161 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9162 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9163 .tested = TEST_OK_PREW,
9164 .probe = probe_spi_rdid,
9165 .probe_timing = TIMING_ZERO,
9166 .block_erasers =
9167 {
9168 {
9169 .eraseblocks = { {4 * 1024, 256} },
9170 .block_erase = spi_block_erase_20,
9171 }, {
9172 .eraseblocks = { {32 * 1024, 32} },
9173 .block_erase = spi_block_erase_52,
9174 }, {
9175 .eraseblocks = { {64 * 1024, 16} },
9176 .block_erase = spi_block_erase_d8,
9177 }, {
9178 .eraseblocks = { {1024 * 1024, 1} },
9179 .block_erase = spi_block_erase_60,
9180 }, {
9181 .eraseblocks = { {1024 * 1024, 1} },
9182 .block_erase = spi_block_erase_c7,
9183 }
9184 },
9185 /* TODO: security register */
9186 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9187 .unlock = spi_disable_blockprotect_bp3_srwd,
9188 .write = spi_chip_write_256,
9189 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9190 .voltage = {1650, 2000},
Nathan Rennie-Waldock5a7f9422018-08-10 15:35:23 +01009191 },
9192
9193 {
9194 .vendor = "Macronix",
Mark Panajotovic502a9132009-08-24 01:42:24 +00009195 .name = "MX29F001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009196 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009197 .manufacture_id = MACRONIX_ID,
9198 .model_id = MACRONIX_MX29F001B,
Mark Panajotovic502a9132009-08-24 01:42:24 +00009199 .total_size = 128,
9200 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009201 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9202 .tested = TEST_UNTESTED,
9203 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009204 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00009205 .block_erasers =
9206 {
9207 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00009208 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00009209 {8 * 1024, 1},
9210 {4 * 1024, 2},
9211 {8 * 1024, 2},
9212 {32 * 1024, 1},
9213 {64 * 1024, 1},
9214 },
Sean Nelson35727f72010-01-28 23:55:12 +00009215 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009216 }, {
9217 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009218 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009219 }
9220 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009221 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00009222 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009223 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00009224 },
9225
9226 {
9227 .vendor = "Macronix",
9228 .name = "MX29F001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009229 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009230 .manufacture_id = MACRONIX_ID,
9231 .model_id = MACRONIX_MX29F001T,
Mark Panajotovic502a9132009-08-24 01:42:24 +00009232 .total_size = 128,
9233 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009234 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stefan Tauner74c6ec62011-05-18 01:31:46 +00009235 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00009236 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009237 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00009238 .block_erasers =
9239 {
9240 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00009241 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00009242 {64 * 1024, 1},
9243 {32 * 1024, 1},
9244 {8 * 1024, 2},
9245 {4 * 1024, 2},
9246 {8 * 1024, 1},
9247 },
Sean Nelson35727f72010-01-28 23:55:12 +00009248 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009249 }, {
9250 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009251 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009252 }
9253 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009254 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00009255 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009256 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00009257 },
9258
9259 {
9260 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00009261 .name = "MX29F002(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009262 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009263 .manufacture_id = MACRONIX_ID,
9264 .model_id = MACRONIX_MX29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009265 .total_size = 256,
9266 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009267 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009268 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00009269 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009270 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009271 .block_erasers =
9272 {
9273 {
9274 .eraseblocks = {
9275 {16 * 1024, 1},
9276 {8 * 1024, 2},
9277 {32 * 1024, 1},
9278 {64 * 1024, 3},
9279 },
Sean Nelson35727f72010-01-28 23:55:12 +00009280 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009281 }, {
9282 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009283 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009284 },
9285 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009286 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009287 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009288 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009289 },
9290
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009291 {
9292 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00009293 .name = "MX29F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009294 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009295 .manufacture_id = MACRONIX_ID,
9296 .model_id = MACRONIX_MX29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009297 .total_size = 256,
9298 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009299 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00009300 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00009301 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009302 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009303 .block_erasers =
9304 {
9305 {
9306 .eraseblocks = {
9307 {64 * 1024, 3},
9308 {32 * 1024, 1},
9309 {8 * 1024, 2},
9310 {16 * 1024, 1},
9311 },
Sean Nelson35727f72010-01-28 23:55:12 +00009312 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009313 }, {
9314 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009315 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009316 },
9317 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009318 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009319 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009320 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009321 },
9322
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009323 {
9324 .vendor = "Macronix",
Daniele Forsi6a18a932014-07-13 14:53:45 +00009325 .name = "MX29F022(N)B",
9326 .bustype = BUS_PARALLEL,
9327 .manufacture_id = MACRONIX_ID,
9328 .model_id = MACRONIX_MX29F022B,
9329 .total_size = 256,
9330 .page_size = 0, /* unused */
9331 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9332 .tested = TEST_UNTESTED,
9333 .probe = probe_jedec,
9334 .probe_timing = TIMING_ZERO,
9335 .block_erasers =
9336 {
9337 {
9338 .eraseblocks = {
9339 {16 * 1024, 1},
9340 {8 * 1024, 2},
9341 {32 * 1024, 1},
9342 {64 * 1024, 3},
9343 },
9344 .block_erase = erase_sector_jedec,
9345 }, {
9346 .eraseblocks = { {256 * 1024, 1} },
9347 .block_erase = erase_chip_block_jedec,
9348 }
9349 },
9350 .write = write_jedec_1,
9351 .read = read_memmapped,
9352 .voltage = {4500, 5500},
9353 },
9354
9355 {
9356 .vendor = "Macronix",
9357 .name = "MX29F022(N)T",
9358 .bustype = BUS_PARALLEL,
9359 .manufacture_id = MACRONIX_ID,
9360 .model_id = MACRONIX_MX29F022T,
9361 .total_size = 256,
9362 .page_size = 0, /* unused */
9363 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9364 .tested = TEST_OK_PREW,
9365 .probe = probe_jedec,
9366 .probe_timing = TIMING_ZERO,
9367 .block_erasers =
9368 {
9369 {
9370 .eraseblocks = {
9371 {64 * 1024, 3},
9372 {32 * 1024, 1},
9373 {8 * 1024, 2},
9374 {16 * 1024, 1},
9375 },
9376 .block_erase = erase_sector_jedec,
9377 }, {
9378 .eraseblocks = { {256 * 1024, 1} },
9379 .block_erase = erase_chip_block_jedec,
9380 }
9381 },
9382 .write = write_jedec_1,
9383 .read = read_memmapped,
9384 .voltage = {4500, 5500},
9385 },
9386
9387 {
9388 .vendor = "Macronix",
Joshua Roysf1324e02010-09-16 00:51:51 +00009389 .name = "MX29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009390 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00009391 .manufacture_id = MACRONIX_ID,
9392 .model_id = MACRONIX_MX29F040,
9393 .total_size = 512,
9394 .page_size = 64 * 1024,
9395 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9396 .tested = TEST_UNTESTED,
9397 .probe = probe_jedec,
9398 .probe_timing = TIMING_ZERO,
9399 .block_erasers =
9400 {
9401 {
9402 .eraseblocks = { {64 * 1024, 8} },
9403 .block_erase = erase_sector_jedec,
9404 }, {
9405 .eraseblocks = { {512 * 1024, 1} },
9406 .block_erase = erase_chip_block_jedec,
9407 },
9408 },
9409 .write = write_jedec_1,
9410 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009411 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00009412 },
9413
9414 {
9415 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009416 .name = "MX29GL128F",
9417 .bustype = BUS_PARALLEL,
9418 .manufacture_id = MACRONIX_ID,
9419 .model_id = MACRONIX_MX29GL128F,
9420 .total_size = 16384,
9421 .page_size = 128 * 1024, /* actual page size is 16 */
9422 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9423 .tested = TEST_UNTESTED,
9424 .probe = probe_jedec_29gl,
9425 .probe_timing = TIMING_ZERO,
9426 .block_erasers =
9427 {
9428 {
9429 .eraseblocks = { {128 * 1024, 128} },
9430 .block_erase = erase_sector_jedec,
9431 }, {
9432 .eraseblocks = { {16 * 1024 * 1024, 1} },
9433 .block_erase = erase_chip_block_jedec,
9434 },
9435 },
9436 .write = write_jedec_1,
9437 .read = read_memmapped,
9438 .voltage = {2700, 3600},
9439 },
9440
9441 {
9442 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00009443 .name = "MX29GL320EB",
9444 .bustype = BUS_PARALLEL,
9445 .manufacture_id = MACRONIX_ID,
9446 .model_id = MACRONIX_MX29GL320EB,
9447 .total_size = 4096,
9448 .page_size = 128 * 1024, /* actual page size is 16 */
9449 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9450 .tested = TEST_UNTESTED,
9451 .probe = probe_jedec_29gl,
9452 .probe_timing = TIMING_ZERO,
9453 .block_erasers =
9454 {
9455 {
9456 .eraseblocks = {
9457 {8 * 1024, 8},
9458 {64 * 1024, 63},
9459 },
9460 .block_erase = erase_sector_jedec,
9461 }, {
9462 .eraseblocks = { {4 * 1024 * 1024, 1} },
9463 .block_erase = erase_chip_block_jedec,
9464 },
9465 },
9466 .write = write_jedec_1,
9467 .read = read_memmapped,
9468 .voltage = {2700, 3600},
9469 },
9470
9471 {
9472 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009473 .name = "MX29GL320EH/L",
9474 .bustype = BUS_PARALLEL,
9475 .manufacture_id = MACRONIX_ID,
9476 .model_id = MACRONIX_MX29GL320EHL,
9477 .total_size = 4096,
9478 .page_size = 128 * 1024, /* actual page size is 16 */
9479 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9480 .tested = TEST_UNTESTED,
9481 .probe = probe_jedec_29gl,
9482 .probe_timing = TIMING_ZERO,
9483 .block_erasers =
9484 {
9485 {
9486 .eraseblocks = { {64 * 1024, 64} },
9487 .block_erase = erase_sector_jedec,
9488 }, {
9489 .eraseblocks = { {4 * 1024 * 1024, 1} },
9490 .block_erase = erase_chip_block_jedec,
9491 },
9492 },
9493 .write = write_jedec_1,
9494 .read = read_memmapped,
9495 .voltage = {2700, 3600},
9496 },
9497
9498 {
9499 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00009500 .name = "MX29GL320ET",
9501 .bustype = BUS_PARALLEL,
9502 .manufacture_id = MACRONIX_ID,
9503 .model_id = MACRONIX_MX29GL320ET,
9504 .total_size = 4096,
9505 .page_size = 128 * 1024, /* actual page size is 16 */
9506 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9507 .tested = TEST_UNTESTED,
9508 .probe = probe_jedec_29gl,
9509 .probe_timing = TIMING_ZERO,
9510 .block_erasers =
9511 {
9512 {
9513 .eraseblocks = {
9514 {64 * 1024, 63},
9515 {8 * 1024, 8},
9516 },
9517 .block_erase = erase_sector_jedec,
9518 }, {
9519 .eraseblocks = { {4 * 1024 * 1024, 1} },
9520 .block_erase = erase_chip_block_jedec,
9521 },
9522 },
9523 .write = write_jedec_1,
9524 .read = read_memmapped,
9525 .voltage = {2700, 3600},
9526 },
9527
9528 {
9529 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00009530 .name = "MX29GL640EB",
9531 .bustype = BUS_PARALLEL,
9532 .manufacture_id = MACRONIX_ID,
9533 .model_id = MACRONIX_MX29GL640EB,
9534 .total_size = 8192,
9535 .page_size = 128 * 1024, /* actual page size is 16 */
9536 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9537 .tested = TEST_UNTESTED,
9538 .probe = probe_jedec_29gl,
9539 .probe_timing = TIMING_ZERO,
9540 .block_erasers =
9541 {
9542 {
9543 .eraseblocks = {
9544 {8 * 1024, 8},
9545 {64 * 1024, 127},
9546 },
9547 .block_erase = erase_sector_jedec,
9548 }, {
9549 .eraseblocks = { {8 * 1024 * 1024, 1} },
9550 .block_erase = erase_chip_block_jedec,
9551 },
9552 },
9553 .write = write_jedec_1,
9554 .read = read_memmapped,
9555 .voltage = {2700, 3600},
9556 },
9557
9558 {
9559 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009560 .name = "MX29GL640EH/L",
9561 .bustype = BUS_PARALLEL,
9562 .manufacture_id = MACRONIX_ID,
9563 .model_id = MACRONIX_MX29GL640EHL,
9564 .total_size = 8192,
9565 .page_size = 128 * 1024, /* actual page size is 16 */
9566 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9567 .tested = TEST_UNTESTED,
9568 .probe = probe_jedec_29gl,
9569 .probe_timing = TIMING_ZERO,
9570 .block_erasers =
9571 {
9572 {
9573 .eraseblocks = { {64 * 1024, 128} },
9574 .block_erase = erase_sector_jedec,
9575 }, {
9576 .eraseblocks = { {8 * 1024 * 1024, 1} },
9577 .block_erase = erase_chip_block_jedec,
9578 },
9579 },
9580 .write = write_jedec_1,
9581 .read = read_memmapped,
9582 .voltage = {2700, 3600},
9583 },
9584
9585 {
9586 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00009587 .name = "MX29GL640ET",
9588 .bustype = BUS_PARALLEL,
9589 .manufacture_id = MACRONIX_ID,
9590 .model_id = MACRONIX_MX29GL640ET,
9591 .total_size = 8192,
9592 .page_size = 128 * 1024, /* actual page size is 16 */
9593 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9594 .tested = TEST_UNTESTED,
9595 .probe = probe_jedec_29gl,
9596 .probe_timing = TIMING_ZERO,
9597 .block_erasers =
9598 {
9599 {
9600 .eraseblocks = {
9601 {64 * 1024, 127},
9602 {8 * 1024, 8},
9603 },
9604 .block_erase = erase_sector_jedec,
9605 }, {
9606 .eraseblocks = { {8 * 1024 * 1024, 1} },
9607 .block_erase = erase_chip_block_jedec,
9608 },
9609 },
9610 .write = write_jedec_1,
9611 .read = read_memmapped,
9612 .voltage = {2700, 3600},
9613 },
9614
9615 {
9616 .vendor = "Macronix",
Carl-Daniel Hailfinger350a0c32009-07-24 13:59:27 +00009617 .name = "MX29LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009618 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009619 .manufacture_id = MACRONIX_ID,
9620 .model_id = MACRONIX_MX29LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009621 .total_size = 512,
9622 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009623 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9624 .tested = TEST_UNTESTED,
9625 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009626 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00009627 .block_erasers =
9628 {
9629 {
Stefan Tauner6697f712014-08-06 15:09:15 +00009630 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +00009631 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009632 }, {
9633 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009634 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009635 },
9636 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009637 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009638 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009639 .voltage = {2700, 3600},
Carl-Daniel Hailfinger7de86392008-12-10 10:32:05 +00009640 },
9641
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009642 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009643 .vendor = "Macronix",
Hemanth Guruva Reddya136d422019-07-11 11:08:27 +02009644 .name = "MX66L51235F/MX25L51245G",
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009645 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009646 .manufacture_id = MACRONIX_ID,
9647 .model_id = MACRONIX_MX66L51235F,
9648 .total_size = 65536,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009649 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009650 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9651 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009652 .tested = TEST_OK_PREW,
9653 .probe = probe_spi_rdid,
9654 .probe_timing = TIMING_ZERO,
9655 .block_erasers =
9656 {
9657 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009658 .eraseblocks = { {4 * 1024, 16384} },
9659 .block_erase = spi_block_erase_21,
9660 }, {
9661 .eraseblocks = { {4 * 1024, 16384} },
9662 .block_erase = spi_block_erase_20,
9663 }, {
9664 .eraseblocks = { {32 * 1024, 2048} },
9665 .block_erase = spi_block_erase_5c,
9666 }, {
9667 .eraseblocks = { {32 * 1024, 2048} },
9668 .block_erase = spi_block_erase_52,
9669 }, {
9670 .eraseblocks = { {64 * 1024, 1024} },
9671 .block_erase = spi_block_erase_dc,
9672 }, {
9673 .eraseblocks = { {64 * 1024, 1024} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009674 .block_erase = spi_block_erase_d8,
9675 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009676 .eraseblocks = { {64 * 1024 * 1024, 1} },
9677 .block_erase = spi_block_erase_60,
9678 }, {
9679 .eraseblocks = { {64 * 1024 * 1024, 1} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009680 .block_erase = spi_block_erase_c7,
9681 }
9682 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10009683 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
9684 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009685 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009686 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009687 .read = spi_chip_read, /* Fast read (0x0B) supported */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009688 .voltage = {2700, 3600},
9689 },
9690
9691 /* The ST M25P05 is a bit of a problem. It has the same ID as the
9692 * ST M25P05-A in RES mode, but supports only 128 byte writes instead
9693 * of 256 byte writes. We rely heavily on the fact that probe_spi_res1
9694 * only is successful if RDID does not work.
9695 */
9696 {
9697 .vendor = "Micron/Numonyx/ST",
9698 .name = "M25P05",
9699 .bustype = BUS_SPI,
9700 .manufacture_id = 0, /* Not used. */
9701 .model_id = ST_M25P05_RES,
9702 .total_size = 64,
9703 .page_size = 256,
9704 .feature_bits = FEATURE_WRSR_WREN,
9705 .tested = TEST_UNTESTED,
9706 .probe = probe_spi_res1,
9707 .probe_timing = TIMING_ZERO,
9708 .block_erasers =
9709 {
9710 {
9711 .eraseblocks = { {32 * 1024, 2} },
9712 .block_erase = spi_block_erase_d8,
9713 }, {
9714 .eraseblocks = { {64 * 1024, 1} },
9715 .block_erase = spi_block_erase_c7,
9716 }
9717 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009718 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009719 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009720 .write = spi_chip_write_1, /* 128 */
9721 .read = spi_chip_read,
9722 .voltage = {2700, 3600},
9723 },
9724
9725 {
9726 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009727 .name = "M25P05-A",
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009728 .bustype = BUS_SPI,
9729 .manufacture_id = ST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009730 .model_id = ST_M25P05A,
9731 .total_size = 64,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009732 .page_size = 256,
9733 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +00009734 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009735 .probe = probe_spi_rdid,
9736 .probe_timing = TIMING_ZERO,
9737 .block_erasers =
9738 {
9739 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009740 .eraseblocks = { {32 * 1024, 2} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009741 .block_erase = spi_block_erase_d8,
9742 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009743 .eraseblocks = { {64 * 1024, 1} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009744 .block_erase = spi_block_erase_c7,
9745 }
9746 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009747 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009748 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009749 .write = spi_chip_write_256,
9750 .read = spi_chip_read,
9751 .voltage = {2700, 3600},
9752 },
9753
9754 /* The ST M25P10 has the same problem as the M25P05. */
9755 {
9756 .vendor = "Micron/Numonyx/ST",
9757 .name = "M25P10",
9758 .bustype = BUS_SPI,
9759 .manufacture_id = 0, /* Not used. */
9760 .model_id = ST_M25P10_RES,
9761 .total_size = 128,
9762 .page_size = 256,
9763 .feature_bits = FEATURE_WRSR_WREN,
9764 .tested = TEST_UNTESTED,
9765 .probe = probe_spi_res1,
9766 .probe_timing = TIMING_ZERO,
9767 .block_erasers =
9768 {
9769 {
9770 .eraseblocks = { {32 * 1024, 4} },
9771 .block_erase = spi_block_erase_d8,
9772 }, {
9773 .eraseblocks = { {128 * 1024, 1} },
9774 .block_erase = spi_block_erase_c7,
9775 }
9776 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009777 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009778 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009779 .write = spi_chip_write_1, /* 128 */
9780 .read = spi_chip_read,
9781 .voltage = {2700, 3600},
9782 },
9783
9784 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009785 .vendor = "Micron/Numonyx/ST",
9786 .name = "M25P10-A",
9787 .bustype = BUS_SPI,
9788 .manufacture_id = ST_ID,
9789 .model_id = ST_M25P10A,
9790 .total_size = 128,
9791 .page_size = 256,
9792 .feature_bits = FEATURE_WRSR_WREN,
9793 .tested = TEST_OK_PREW,
9794 .probe = probe_spi_rdid,
9795 .probe_timing = TIMING_ZERO,
9796 .block_erasers =
9797 {
9798 {
9799 .eraseblocks = { {32 * 1024, 4} },
9800 .block_erase = spi_block_erase_d8,
9801 }, {
9802 .eraseblocks = { {128 * 1024, 1} },
9803 .block_erase = spi_block_erase_c7,
9804 }
9805 },
9806 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
9807 .unlock = spi_disable_blockprotect_bp3_srwd,
9808 .write = spi_chip_write_256,
9809 .read = spi_chip_read,
9810 .voltage = {2700, 3600},
9811 },
9812
9813 {
9814 .vendor = "Micron/Numonyx/ST",
9815 .name = "M25P128",
9816 .bustype = BUS_SPI,
9817 .manufacture_id = ST_ID,
9818 .model_id = ST_M25P128,
9819 .total_size = 16384,
9820 .page_size = 256,
9821 .feature_bits = FEATURE_WRSR_WREN,
9822 .tested = TEST_OK_PREW,
9823 .probe = probe_spi_rdid,
9824 .probe_timing = TIMING_ZERO,
9825 .block_erasers =
9826 {
9827 {
9828 .eraseblocks = { {256 * 1024, 64} },
9829 .block_erase = spi_block_erase_d8,
9830 }, {
9831 .eraseblocks = { {16 * 1024 * 1024, 1} },
9832 .block_erase = spi_block_erase_c7,
9833 }
9834 },
9835 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
9836 .unlock = spi_disable_blockprotect_bp3_srwd,
9837 .write = spi_chip_write_256,
9838 .read = spi_chip_read,
9839 .voltage = {2700, 3600},
9840 },
9841
9842 {
9843 .vendor = "Micron/Numonyx/ST",
9844 .name = "M25P16",
9845 .bustype = BUS_SPI,
9846 .manufacture_id = ST_ID,
9847 .model_id = ST_M25P16,
9848 .total_size = 2048,
9849 .page_size = 256,
9850 .feature_bits = FEATURE_WRSR_WREN,
9851 .tested = TEST_OK_PREW,
9852 .probe = probe_spi_rdid,
9853 .probe_timing = TIMING_ZERO,
9854 .block_erasers =
9855 {
9856 {
9857 .eraseblocks = { {64 * 1024, 32} },
9858 .block_erase = spi_block_erase_d8,
9859 }, {
9860 .eraseblocks = { {2 * 1024 * 1024, 1} },
9861 .block_erase = spi_block_erase_c7,
9862 }
9863 },
9864 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
9865 .unlock = spi_disable_blockprotect_bp3_srwd,
9866 .write = spi_chip_write_256,
9867 .read = spi_chip_read,
9868 .voltage = {2700, 3600},
9869 },
9870
9871 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009872 .vendor = "Micron/Numonyx/ST", /* Numonyx */
9873 .name = "M25P20",
9874 .bustype = BUS_SPI,
9875 .manufacture_id = ST_ID,
9876 .model_id = ST_M25P20,
9877 .total_size = 256,
9878 .page_size = 256,
9879 .feature_bits = FEATURE_WRSR_WREN,
9880 .tested = TEST_UNTESTED,
9881 .probe = probe_spi_rdid,
9882 .probe_timing = TIMING_ZERO,
9883 .block_erasers =
9884 {
9885 {
9886 .eraseblocks = { {64 * 1024, 4} },
9887 .block_erase = spi_block_erase_d8,
9888 }, {
9889 .eraseblocks = { {256 * 1024, 1} },
9890 .block_erase = spi_block_erase_c7,
9891 }
9892 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009893 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009894 .unlock = spi_disable_blockprotect,
9895 .write = spi_chip_write_256,
9896 .read = spi_chip_read, /* Fast read (0x0B) supported */
9897 .voltage = {2700, 3600},
9898 },
9899
9900 {
9901 .vendor = "Micron/Numonyx/ST",
9902 .name = "M25P20-old",
9903 .bustype = BUS_SPI,
9904 .manufacture_id = 0, /* Not used. */
9905 .model_id = ST_M25P20_RES,
9906 .total_size = 256,
9907 .page_size = 256,
9908 .feature_bits = FEATURE_WRSR_WREN,
9909 .tested = TEST_OK_PREW,
9910 .probe = probe_spi_res1,
9911 .probe_timing = TIMING_ZERO,
9912 .block_erasers =
9913 {
9914 {
9915 .eraseblocks = { {64 * 1024, 4} },
9916 .block_erase = spi_block_erase_d8,
9917 }, {
9918 .eraseblocks = { {256 * 1024, 1} },
9919 .block_erase = spi_block_erase_c7,
9920 }
9921 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009922 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009923 .unlock = spi_disable_blockprotect,
9924 .write = spi_chip_write_256,
9925 .read = spi_chip_read, /* Fast read (0x0B) supported */
9926 .voltage = {2700, 3600},
9927 },
9928
9929 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009930 .vendor = "Micron/Numonyx/ST",
9931 .name = "M25P32",
9932 .bustype = BUS_SPI,
9933 .manufacture_id = ST_ID,
9934 .model_id = ST_M25P32,
9935 .total_size = 4096,
9936 .page_size = 256,
9937 .feature_bits = FEATURE_WRSR_WREN,
9938 .tested = TEST_OK_PREW,
9939 .probe = probe_spi_rdid,
9940 .probe_timing = TIMING_ZERO,
9941 .block_erasers =
9942 {
9943 {
9944 .eraseblocks = { {64 * 1024, 64} },
9945 .block_erase = spi_block_erase_d8,
9946 }, {
9947 .eraseblocks = { {4 * 1024 * 1024, 1} },
9948 .block_erase = spi_block_erase_c7,
9949 }
9950 },
9951 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
9952 .unlock = spi_disable_blockprotect_bp3_srwd,
9953 .write = spi_chip_write_256,
9954 .read = spi_chip_read,
9955 .voltage = {2700, 3600},
9956 },
9957
9958 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009959 .vendor = "Micron/Numonyx/ST", /* Numonyx */
9960 .name = "M25P40",
9961 .bustype = BUS_SPI,
9962 .manufacture_id = ST_ID,
9963 .model_id = ST_M25P40,
9964 .total_size = 512,
9965 .page_size = 256,
9966 .feature_bits = FEATURE_WRSR_WREN,
9967 .tested = TEST_OK_PREW,
9968 .probe = probe_spi_rdid,
9969 .probe_timing = TIMING_ZERO,
9970 .block_erasers =
9971 {
9972 {
9973 .eraseblocks = { {64 * 1024, 8} },
9974 .block_erase = spi_block_erase_d8,
9975 }, {
9976 .eraseblocks = { {512 * 1024, 1} },
9977 .block_erase = spi_block_erase_c7,
9978 }
9979 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009980 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009981 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009982 .write = spi_chip_write_256,
9983 .read = spi_chip_read,
9984 .voltage = {2700, 3600},
9985 },
9986
9987 {
9988 .vendor = "Micron/Numonyx/ST",
9989 .name = "M25P40-old",
9990 .bustype = BUS_SPI,
9991 .manufacture_id = 0, /* Not used. */
9992 .model_id = ST_M25P40_RES,
9993 .total_size = 512,
9994 .page_size = 256,
9995 .feature_bits = FEATURE_WRSR_WREN,
9996 .tested = TEST_UNTESTED,
9997 .probe = probe_spi_res1,
9998 .probe_timing = TIMING_ZERO,
9999 .block_erasers =
10000 {
10001 {
10002 .eraseblocks = { {64 * 1024, 8} },
10003 .block_erase = spi_block_erase_d8,
10004 }, {
10005 .eraseblocks = { {512 * 1024, 1} },
10006 .block_erase = spi_block_erase_c7,
10007 }
10008 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010009 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010010 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010011 .write = spi_chip_write_256,
10012 .read = spi_chip_read,
10013 },
10014
10015 {
10016 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010017 .name = "M25P64",
10018 .bustype = BUS_SPI,
10019 .manufacture_id = ST_ID,
10020 .model_id = ST_M25P64,
10021 .total_size = 8192,
10022 .page_size = 256,
10023 .feature_bits = FEATURE_WRSR_WREN,
10024 .tested = TEST_OK_PREW,
10025 .probe = probe_spi_rdid,
10026 .probe_timing = TIMING_ZERO,
10027 .block_erasers =
10028 {
10029 {
10030 .eraseblocks = { {64 * 1024, 128} },
10031 .block_erase = spi_block_erase_d8,
10032 }, {
10033 .eraseblocks = { {8 * 1024 * 1024, 1} },
10034 .block_erase = spi_block_erase_c7,
10035 }
10036 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010037 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010038 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010039 .write = spi_chip_write_256,
10040 .read = spi_chip_read,
10041 .voltage = {2700, 3600},
10042 },
10043
10044 {
10045 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010046 .name = "M25P80",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010047 .bustype = BUS_SPI,
10048 .manufacture_id = ST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010049 .model_id = ST_M25P80,
10050 .total_size = 1024,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010051 .page_size = 256,
10052 .feature_bits = FEATURE_WRSR_WREN,
10053 .tested = TEST_OK_PREW,
10054 .probe = probe_spi_rdid,
10055 .probe_timing = TIMING_ZERO,
10056 .block_erasers =
10057 {
10058 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010059 .eraseblocks = { {64 * 1024, 16} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010060 .block_erase = spi_block_erase_d8,
10061 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010062 .eraseblocks = { {1024 * 1024, 1} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010063 .block_erase = spi_block_erase_c7,
10064 }
10065 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010066 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010067 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010068 .write = spi_chip_write_256,
10069 .read = spi_chip_read,
10070 .voltage = {2700, 3600},
10071 },
10072
10073 {
10074 .vendor = "Micron/Numonyx/ST",
10075 .name = "M25PE10",
10076 .bustype = BUS_SPI,
10077 .manufacture_id = ST_ID,
10078 .model_id = ST_M25PE10,
10079 .total_size = 128,
10080 .page_size = 256,
10081 .feature_bits = FEATURE_WRSR_WREN,
10082 .tested = TEST_UNTESTED,
10083 .probe = probe_spi_rdid,
10084 .probe_timing = TIMING_ZERO,
10085 .block_erasers =
10086 {
10087 {
10088 .eraseblocks = { {4 * 1024, 32} },
10089 .block_erase = spi_block_erase_20,
10090 }, {
10091 .eraseblocks = { {64 * 1024, 2} },
10092 .block_erase = spi_block_erase_d8,
10093 }, {
10094 .eraseblocks = { {128 * 1024, 1} },
10095 .block_erase = spi_block_erase_c7,
10096 }
10097 },
10098 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10099 .unlock = spi_disable_blockprotect,
10100 .write = spi_chip_write_256,
10101 .read = spi_chip_read,
10102 .voltage = {2700, 3600},
10103 },
10104
10105 {
10106 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010107 .name = "M25PE16",
10108 .bustype = BUS_SPI,
10109 .manufacture_id = ST_ID,
10110 .model_id = ST_M25PE16,
10111 .total_size = 2048,
10112 .page_size = 256,
10113 .feature_bits = FEATURE_WRSR_WREN,
10114 .tested = TEST_UNTESTED,
10115 .probe = probe_spi_rdid,
10116 .probe_timing = TIMING_ZERO,
10117 .block_erasers =
10118 {
10119 {
10120 .eraseblocks = { {4 * 1024, 512} },
10121 .block_erase = spi_block_erase_20,
10122 }, {
10123 .eraseblocks = { {64 * 1024, 32} },
10124 .block_erase = spi_block_erase_d8,
10125 }, {
10126 .eraseblocks = { {2 * 1024 * 1024, 1} },
10127 .block_erase = spi_block_erase_c7,
10128 }
10129 },
10130 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10131 .unlock = spi_disable_blockprotect,
10132 .write = spi_chip_write_256,
10133 .read = spi_chip_read,
10134 .voltage = {2700, 3600},
10135 },
10136
10137 {
10138 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010139 .name = "M25PE20",
10140 .bustype = BUS_SPI,
10141 .manufacture_id = ST_ID,
10142 .model_id = ST_M25PE20,
10143 .total_size = 256,
10144 .page_size = 256,
10145 .feature_bits = FEATURE_WRSR_WREN,
10146 .tested = TEST_UNTESTED,
10147 .probe = probe_spi_rdid,
10148 .probe_timing = TIMING_ZERO,
10149 .block_erasers =
10150 {
10151 {
10152 .eraseblocks = { {4 * 1024, 64} },
10153 .block_erase = spi_block_erase_20,
10154 }, {
10155 .eraseblocks = { {64 * 1024, 4} },
10156 .block_erase = spi_block_erase_d8,
10157 }, {
10158 .eraseblocks = { {256 * 1024, 1} },
10159 .block_erase = spi_block_erase_c7,
10160 }
10161 },
10162 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10163 .unlock = spi_disable_blockprotect,
10164 .write = spi_chip_write_256,
10165 .read = spi_chip_read,
10166 .voltage = {2700, 3600},
10167 },
10168
10169 {
10170 .vendor = "Micron/Numonyx/ST",
10171 .name = "M25PE40",
10172 .bustype = BUS_SPI,
10173 .manufacture_id = ST_ID,
10174 .model_id = ST_M25PE40,
10175 .total_size = 512,
10176 .page_size = 256,
10177 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000010178 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010179 .probe = probe_spi_rdid,
10180 .probe_timing = TIMING_ZERO,
10181 .block_erasers =
10182 {
10183 {
10184 .eraseblocks = { {4 * 1024, 128} },
10185 .block_erase = spi_block_erase_20,
10186 }, {
10187 .eraseblocks = { {64 * 1024, 8} },
10188 .block_erase = spi_block_erase_d8,
10189 }, {
10190 .eraseblocks = { {512 * 1024, 1} },
10191 .block_erase = spi_block_erase_c7,
10192 }
10193 },
10194 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10195 .unlock = spi_disable_blockprotect,
10196 .write = spi_chip_write_256,
10197 .read = spi_chip_read,
10198 .voltage = {2700, 3600},
10199 },
10200
10201 {
10202 .vendor = "Micron/Numonyx/ST",
10203 .name = "M25PE80",
10204 .bustype = BUS_SPI,
10205 .manufacture_id = ST_ID,
10206 .model_id = ST_M25PE80,
10207 .total_size = 1024,
10208 .page_size = 256,
10209 .feature_bits = FEATURE_WRSR_WREN,
10210 .tested = TEST_OK_PREW,
10211 .probe = probe_spi_rdid,
10212 .probe_timing = TIMING_ZERO,
10213 .block_erasers =
10214 {
10215 {
10216 .eraseblocks = { {4 * 1024, 256} },
10217 .block_erase = spi_block_erase_20,
10218 }, {
10219 .eraseblocks = { {64 * 1024, 16} },
10220 .block_erase = spi_block_erase_d8,
10221 }, {
10222 .eraseblocks = { {1024 * 1024, 1} },
10223 .block_erase = spi_block_erase_c7,
10224 }
10225 },
10226 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10227 .unlock = spi_disable_blockprotect,
10228 .write = spi_chip_write_256,
10229 .read = spi_chip_read,
10230 .voltage = {2700, 3600},
10231 },
10232
10233 {
10234 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010235 .name = "M25PX16",
10236 .bustype = BUS_SPI,
10237 .manufacture_id = ST_ID,
10238 .model_id = ST_M25PX16,
10239 .total_size = 2048,
10240 .page_size = 256,
10241 /* OTP: 64B total; read 0x4B; write 0x42 */
10242 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10243 .tested = TEST_OK_PREW,
10244 .probe = probe_spi_rdid,
10245 .probe_timing = TIMING_ZERO,
10246 .block_erasers =
10247 {
10248 {
10249 .eraseblocks = { { 4 * 1024, 512 } },
10250 .block_erase = spi_block_erase_20,
10251 }, {
10252 .eraseblocks = { {64 * 1024, 32} },
10253 .block_erase = spi_block_erase_d8,
10254 }, {
10255 .eraseblocks = { {2 * 1024 * 1024, 1} },
10256 .block_erase = spi_block_erase_c7,
10257 }
10258 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010259 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010260 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
10261 .write = spi_chip_write_256,
10262 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000010263 .voltage = {2300, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010264 },
10265
10266 {
10267 .vendor = "Micron/Numonyx/ST",
10268 .name = "M25PX32",
10269 .bustype = BUS_SPI,
10270 .manufacture_id = ST_ID,
10271 .model_id = ST_M25PX32,
10272 .total_size = 4096,
10273 .page_size = 256,
10274 /* OTP: 64B total; read 0x4B; write 0x42 */
10275 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10276 .tested = TEST_OK_PRE,
10277 .probe = probe_spi_rdid,
10278 .probe_timing = TIMING_ZERO,
10279 .block_erasers =
10280 {
10281 {
10282 .eraseblocks = { { 4 * 1024, 1024 } },
10283 .block_erase = spi_block_erase_20,
10284 }, {
10285 .eraseblocks = { {64 * 1024, 64} },
10286 .block_erase = spi_block_erase_d8,
10287 }, {
10288 .eraseblocks = { {4 * 1024 * 1024, 1} },
10289 .block_erase = spi_block_erase_c7,
10290 }
10291 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010292 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010293 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
10294 .write = spi_chip_write_256,
10295 .read = spi_chip_read,
10296 .voltage = {2700, 3600},
10297 },
10298
10299 {
10300 .vendor = "Micron/Numonyx/ST",
10301 .name = "M25PX64",
10302 .bustype = BUS_SPI,
10303 .manufacture_id = ST_ID,
10304 .model_id = ST_M25PX64,
10305 .total_size = 8192,
10306 .page_size = 256,
10307 /* OTP: 64B total; read 0x4B; write 0x42 */
10308 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000010309 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010310 .probe = probe_spi_rdid,
10311 .probe_timing = TIMING_ZERO,
10312 .block_erasers =
10313 {
10314 {
10315 .eraseblocks = { { 4 * 1024, 2048 } },
10316 .block_erase = spi_block_erase_20,
10317 }, {
10318 .eraseblocks = { {64 * 1024, 128} },
10319 .block_erase = spi_block_erase_d8,
10320 }, {
10321 .eraseblocks = { {8 * 1024 * 1024, 1} },
10322 .block_erase = spi_block_erase_c7,
10323 }
10324 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010325 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010326 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
10327 .write = spi_chip_write_256,
10328 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000010329 .voltage = {2700, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010330 },
10331
10332 {
10333 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010334 .name = "M25PX80",
10335 .bustype = BUS_SPI,
10336 .manufacture_id = ST_ID,
10337 .model_id = ST_M25PX80,
10338 .total_size = 1024,
10339 .page_size = 256,
10340 /* OTP: 64B total; read 0x4B, write 0x42 */
10341 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10342 .tested = TEST_OK_PREW,
10343 .probe = probe_spi_rdid,
10344 .probe_timing = TIMING_ZERO,
10345 .block_erasers =
10346 {
10347 {
10348 .eraseblocks = { { 4 * 1024, 256 } },
10349 .block_erase = spi_block_erase_20,
10350 }, {
10351 .eraseblocks = { {64 * 1024, 16} },
10352 .block_erase = spi_block_erase_d8,
10353 }, {
10354 .eraseblocks = { {1024 * 1024, 1} },
10355 .block_erase = spi_block_erase_c7,
10356 }
10357 },
10358 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
10359 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
10360 .write = spi_chip_write_256,
10361 .read = spi_chip_read,
10362 .voltage = {2700, 3600},
10363 },
10364
10365 {
10366 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010367 .name = "M45PE10",
10368 .bustype = BUS_SPI,
10369 .manufacture_id = ST_ID,
10370 .model_id = ST_M45PE10,
10371 .total_size = 128,
10372 .page_size = 256,
10373 .tested = TEST_UNTESTED,
10374 .probe = probe_spi_rdid,
10375 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100010376 .block_erasers =
10377 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010378 {
10379 .eraseblocks = { {256, 512} },
10380 .block_erase = spi_block_erase_db,
10381 }, {
10382 .eraseblocks = { {64 * 1024, 2} },
10383 .block_erase = spi_block_erase_d8,
10384 }
10385 },
10386 .printlock = spi_prettyprint_status_register_default_welwip,
10387 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
10388 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
10389 .read = spi_chip_read, /* Fast read (0x0B) supported */
10390 .voltage = {2700, 3600},
10391 },
10392
10393 {
10394 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010395 .name = "M45PE16",
10396 .bustype = BUS_SPI,
10397 .manufacture_id = ST_ID,
10398 .model_id = ST_M45PE16,
10399 .total_size = 2048,
10400 .page_size = 256,
10401 .tested = TEST_UNTESTED,
10402 .probe = probe_spi_rdid,
10403 .probe_timing = TIMING_ZERO,
10404 .block_erasers =
10405 {
10406 {
10407 .eraseblocks = { {256, 8192} },
10408 .block_erase = spi_block_erase_db,
10409 }, {
10410 .eraseblocks = { {64 * 1024, 32} },
10411 .block_erase = spi_block_erase_d8,
10412 }
10413 },
10414 .printlock = spi_prettyprint_status_register_default_welwip,
10415 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
10416 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
10417 .read = spi_chip_read, /* Fast read (0x0B) supported */
10418 .voltage = {2700, 3600},
10419 },
10420
10421 {
10422 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010423 .name = "M45PE20",
10424 .bustype = BUS_SPI,
10425 .manufacture_id = ST_ID,
10426 .model_id = ST_M45PE20,
10427 .total_size = 256,
10428 .page_size = 256,
10429 .tested = TEST_UNTESTED,
10430 .probe = probe_spi_rdid,
10431 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100010432 .block_erasers =
10433 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010434 {
10435 .eraseblocks = { {256, 1024} },
10436 .block_erase = spi_block_erase_db,
10437 }, {
10438 .eraseblocks = { {64 * 1024, 4} },
10439 .block_erase = spi_block_erase_d8,
10440 }
10441 },
10442 .printlock = spi_prettyprint_status_register_default_welwip,
10443 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
10444 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
10445 .read = spi_chip_read, /* Fast read (0x0B) supported */
10446 .voltage = {2700, 3600},
10447 },
10448
10449 {
10450 .vendor = "Micron/Numonyx/ST",
10451 .name = "M45PE40",
10452 .bustype = BUS_SPI,
10453 .manufacture_id = ST_ID,
10454 .model_id = ST_M45PE40,
10455 .total_size = 512,
10456 .page_size = 256,
10457 .tested = TEST_UNTESTED,
10458 .probe = probe_spi_rdid,
10459 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100010460 .block_erasers =
10461 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010462 {
10463 .eraseblocks = { {256, 2048} },
10464 .block_erase = spi_block_erase_db,
10465 }, {
10466 .eraseblocks = { {64 * 1024, 8} },
10467 .block_erase = spi_block_erase_d8,
10468 }
10469 },
10470 .printlock = spi_prettyprint_status_register_default_welwip,
10471 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
Stefan Tauner23e10b82016-01-23 16:16:49 +000010472 .write = spi_chip_write_256, /* Page write supported (similar to PP but allows 0->1 changes) */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010473 .read = spi_chip_read, /* Fast read (0x0B) supported */
10474 .voltage = {2700, 3600},
10475 },
10476
10477 {
10478 .vendor = "Micron/Numonyx/ST",
10479 .name = "M45PE80",
10480 .bustype = BUS_SPI,
10481 .manufacture_id = ST_ID,
10482 .model_id = ST_M45PE80,
10483 .total_size = 1024,
10484 .page_size = 256,
10485 .tested = TEST_UNTESTED,
10486 .probe = probe_spi_rdid,
10487 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100010488 .block_erasers =
10489 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010490 {
10491 .eraseblocks = { {256, 4096} },
10492 .block_erase = spi_block_erase_db,
10493 }, {
10494 .eraseblocks = { {64 * 1024, 16} },
10495 .block_erase = spi_block_erase_d8,
10496 }
10497 },
10498 .printlock = spi_prettyprint_status_register_default_welwip,
10499 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
10500 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
10501 .read = spi_chip_read, /* Fast read (0x0B) supported */
10502 .voltage = {2700, 3600},
10503 },
10504
10505 {
10506 .vendor = "Micron/Numonyx/ST",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070010507 .name = "N25Q00A..1G", /* ..1G = 1.8V, uniform 64KB/4KB blocks/sectors */
10508 .bustype = BUS_SPI,
10509 .manufacture_id = ST_ID,
10510 .model_id = ST_N25Q00A__1G,
10511 .total_size = 131072,
10512 .page_size = 256,
10513 /* supports SFDP */
10514 /* OTP: 64B total; read 0x4B, write 0x42 */
10515 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
10516 .tested = TEST_UNTESTED,
10517 .probe = probe_spi_rdid,
10518 .probe_timing = TIMING_ZERO,
10519 .block_erasers =
10520 {
10521 {
10522 .eraseblocks = { {4 * 1024, 32768} },
10523 .block_erase = spi_block_erase_21,
10524 }, {
10525 .eraseblocks = { {4 * 1024, 32768} },
10526 .block_erase = spi_block_erase_20,
10527 }, {
10528 .eraseblocks = { {64 * 1024, 2048} },
10529 .block_erase = spi_block_erase_dc,
10530 }, {
10531 .eraseblocks = { {64 * 1024, 2048} },
10532 .block_erase = spi_block_erase_d8,
10533 }, {
10534 .eraseblocks = { {32768 * 1024, 4} },
10535 .block_erase = spi_block_erase_c4,
10536 }
10537 },
10538 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10539 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10540 .write = spi_chip_write_256, /* Multi I/O supported */
10541 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10542 .voltage = {1700, 2000},
10543 },
10544
10545 {
10546 .vendor = "Micron/Numonyx/ST",
10547 .name = "N25Q00A..3G", /* ..3G = 3V, uniform 64KB/4KB blocks/sectors */
10548 .bustype = BUS_SPI,
10549 .manufacture_id = ST_ID,
10550 .model_id = ST_N25Q00A__3G,
10551 .total_size = 131072,
10552 .page_size = 256,
10553 /* supports SFDP */
10554 /* OTP: 64B total; read 0x4B, write 0x42 */
10555 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
10556 .tested = TEST_UNTESTED,
10557 .probe = probe_spi_rdid,
10558 .probe_timing = TIMING_ZERO,
10559 .block_erasers =
10560 {
10561 {
10562 .eraseblocks = { {4 * 1024, 32768} },
10563 .block_erase = spi_block_erase_21,
10564 }, {
10565 .eraseblocks = { {4 * 1024, 32768} },
10566 .block_erase = spi_block_erase_20,
10567 }, {
10568 .eraseblocks = { {64 * 1024, 2048} },
10569 .block_erase = spi_block_erase_dc,
10570 }, {
10571 .eraseblocks = { {64 * 1024, 2048} },
10572 .block_erase = spi_block_erase_d8,
10573 }, {
10574 .eraseblocks = { {32768 * 1024, 4} },
10575 .block_erase = spi_block_erase_c4,
10576 }
10577 },
10578 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10579 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10580 .write = spi_chip_write_256, /* Multi I/O supported */
10581 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10582 .voltage = {2700, 3600},
10583 },
10584
10585 {
10586 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010587 .name = "N25Q016",
10588 .bustype = BUS_SPI,
10589 .manufacture_id = ST_ID,
10590 .model_id = ST_N25Q016__1E,
10591 .total_size = 2048,
10592 .page_size = 256,
10593 /* supports SFDP */
10594 /* OTP: 64B total; read 0x4B, write 0x42 */
10595 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10596 .tested = TEST_UNTESTED,
10597 .probe = probe_spi_rdid,
10598 .probe_timing = TIMING_ZERO,
10599 .block_erasers =
10600 {
10601 {
10602 .eraseblocks = { {4 * 1024, 512} },
10603 .block_erase = spi_block_erase_20,
10604 }, {
10605 .eraseblocks = { {32 * 1024, 64} },
10606 .block_erase = spi_block_erase_52,
10607 }, {
10608 .eraseblocks = { {64 * 1024, 32} },
10609 .block_erase = spi_block_erase_d8,
10610 }, {
10611 .eraseblocks = { {2 * 1024 * 1024, 1} },
10612 .block_erase = spi_block_erase_c7,
10613 }
10614 },
10615 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10616 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10617 .write = spi_chip_write_256, /* Multi I/O supported */
10618 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10619 .voltage = {1700, 2000},
10620 },
10621
10622 {
10623 .vendor = "Micron/Numonyx/ST",
10624 .name = "N25Q032..1E",
10625 .bustype = BUS_SPI,
10626 .manufacture_id = ST_ID,
10627 .model_id = ST_N25Q032__1E,
10628 .total_size = 4096,
10629 .page_size = 256,
10630 /* supports SFDP */
10631 /* OTP: 64B total; read 0x4B, write 0x42 */
10632 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10633 .tested = TEST_UNTESTED,
10634 .probe = probe_spi_rdid,
10635 .probe_timing = TIMING_ZERO,
10636 .block_erasers =
10637 {
10638 {
10639 .eraseblocks = { {4 * 1024, 1024} },
10640 .block_erase = spi_block_erase_20,
10641 }, {
10642 .eraseblocks = { {64 * 1024, 64} },
10643 .block_erase = spi_block_erase_d8,
10644 }, {
10645 .eraseblocks = { {4 * 1024 * 1024, 1} },
10646 .block_erase = spi_block_erase_c7,
10647 }
10648 },
10649 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10650 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10651 .write = spi_chip_write_256, /* Multi I/O supported */
10652 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10653 .voltage = {1700, 2000},
10654 },
10655
10656 {
10657 .vendor = "Micron/Numonyx/ST",
10658 .name = "N25Q032..3E",
10659 .bustype = BUS_SPI,
10660 .manufacture_id = ST_ID,
10661 .model_id = ST_N25Q032__3E,
10662 .total_size = 4096,
10663 .page_size = 256,
10664 /* supports SFDP */
10665 /* OTP: 64B total; read 0x4B, write 0x42 */
10666 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10667 .tested = TEST_OK_PREW,
10668 .probe = probe_spi_rdid,
10669 .probe_timing = TIMING_ZERO,
10670 .block_erasers =
10671 {
10672 {
10673 .eraseblocks = { {4 * 1024, 1024} },
10674 .block_erase = spi_block_erase_20,
10675 }, {
10676 .eraseblocks = { {64 * 1024, 64} },
10677 .block_erase = spi_block_erase_d8,
10678 }, {
10679 .eraseblocks = { {4 * 1024 * 1024, 1} },
10680 .block_erase = spi_block_erase_c7,
10681 }
10682 },
10683 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10684 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10685 .write = spi_chip_write_256, /* Multi I/O supported */
10686 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10687 .voltage = {2700, 3600},
10688 },
10689
10690 {
10691 .vendor = "Micron/Numonyx/ST",
10692 .name = "N25Q064..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
10693 .bustype = BUS_SPI,
10694 .manufacture_id = ST_ID,
10695 .model_id = ST_N25Q064__1E,
10696 .total_size = 8192,
10697 .page_size = 256,
10698 /* supports SFDP */
10699 /* OTP: 64B total; read 0x4B, write 0x42 */
10700 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000010701 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010702 .probe = probe_spi_rdid,
10703 .probe_timing = TIMING_ZERO,
10704 .block_erasers =
10705 {
10706 {
10707 .eraseblocks = { {4 * 1024, 2048 } },
10708 .block_erase = spi_block_erase_20,
10709 }, {
10710 .eraseblocks = { {64 * 1024, 128} },
10711 .block_erase = spi_block_erase_d8,
10712 }, {
10713 .eraseblocks = { {8 * 1024 * 1024, 1} },
10714 .block_erase = spi_block_erase_c7,
10715 }
10716 },
10717 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10718 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10719 .write = spi_chip_write_256, /* Multi I/O supported */
10720 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10721 .voltage = {1700, 2000},
10722 },
10723
10724 {
10725 .vendor = "Micron/Numonyx/ST",
10726 .name = "N25Q064..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
10727 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100010728 .manufacture_id = ST_ID,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010729 .model_id = ST_N25Q064__3E,
10730 .total_size = 8192,
10731 .page_size = 256,
10732 /* supports SFDP */
10733 /* OTP: 64B total; read 0x4B, write 0x42 */
10734 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10735 .tested = TEST_OK_PREW,
10736 .probe = probe_spi_rdid,
10737 .probe_timing = TIMING_ZERO,
10738 .block_erasers =
10739 {
10740 {
10741 .eraseblocks = { {4 * 1024, 2048 } },
10742 .block_erase = spi_block_erase_20,
10743 }, {
10744 .eraseblocks = { {64 * 1024, 128} },
10745 .block_erase = spi_block_erase_d8,
10746 }, {
10747 .eraseblocks = { {8 * 1024 * 1024, 1} },
10748 .block_erase = spi_block_erase_c7,
10749 }
10750 },
10751 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10752 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10753 .write = spi_chip_write_256, /* Multi I/O supported */
10754 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10755 .voltage = {2700, 3600},
10756 },
10757
10758 {
10759 .vendor = "Micron/Numonyx/ST",
10760 .name = "N25Q128..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
10761 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100010762 .manufacture_id = ST_ID,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010763 .model_id = ST_N25Q128__1E,
10764 .total_size = 16384,
10765 .page_size = 256,
10766 /* supports SFDP */
10767 /* OTP: 64B total; read 0x4B, write 0x42 */
10768 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000010769 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010770 .probe = probe_spi_rdid,
10771 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100010772 .block_erasers =
10773 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010774 {
10775 .eraseblocks = { {4 * 1024, 4096 } },
10776 .block_erase = spi_block_erase_20,
10777 }, {
10778 .eraseblocks = { {64 * 1024, 256} },
10779 .block_erase = spi_block_erase_d8,
10780 }, {
10781 .eraseblocks = { {16384 * 1024, 1} },
10782 .block_erase = spi_block_erase_c7,
10783 }
10784 },
10785 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10786 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10787 .write = spi_chip_write_256, /* Multi I/O supported */
10788 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10789 .voltage = {1700, 2000},
10790 },
10791
10792 {
10793 .vendor = "Micron/Numonyx/ST",
10794 .name = "N25Q128..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
10795 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100010796 .manufacture_id = ST_ID,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010797 .model_id = ST_N25Q128__3E,
10798 .total_size = 16384,
10799 .page_size = 256,
10800 /* supports SFDP */
10801 /* OTP: 64B total; read 0x4B, write 0x42 */
10802 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10803 .tested = TEST_OK_PREW,
10804 .probe = probe_spi_rdid,
10805 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100010806 .block_erasers =
10807 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010808 {
10809 .eraseblocks = { {4 * 1024, 4096 } },
10810 .block_erase = spi_block_erase_20,
10811 }, {
10812 .eraseblocks = { {64 * 1024, 256} },
10813 .block_erase = spi_block_erase_d8,
10814 }, {
10815 .eraseblocks = { {16384 * 1024, 1} },
10816 .block_erase = spi_block_erase_c7,
10817 }
10818 },
10819 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10820 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10821 .write = spi_chip_write_256, /* Multi I/O supported */
10822 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10823 .voltage = {2700, 3600},
10824 },
10825
10826 {
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070010827 .vendor = "Micron/Numonyx/ST",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070010828 .name = "N25Q256..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
10829 .bustype = BUS_SPI,
10830 .manufacture_id = ST_ID,
10831 .model_id = ST_N25Q256__1E,
10832 .total_size = 32768,
10833 .page_size = 256,
10834 /* supports SFDP */
10835 /* OTP: 64B total; read 0x4B, write 0x42 */
10836 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
10837 .tested = TEST_UNTESTED,
10838 .probe = probe_spi_rdid,
10839 .probe_timing = TIMING_ZERO,
10840 .block_erasers =
10841 {
10842 {
10843 .eraseblocks = { {4 * 1024, 8192} },
10844 .block_erase = spi_block_erase_21,
10845 }, {
10846 .eraseblocks = { {4 * 1024, 8192} },
10847 .block_erase = spi_block_erase_20,
10848 }, {
10849 .eraseblocks = { {64 * 1024, 512} },
10850 .block_erase = spi_block_erase_dc,
10851 }, {
10852 .eraseblocks = { {64 * 1024, 512} },
10853 .block_erase = spi_block_erase_d8,
10854 }, {
10855 .eraseblocks = { {32768 * 1024, 1} },
10856 .block_erase = spi_block_erase_c7,
10857 }
10858 },
10859 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10860 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10861 .write = spi_chip_write_256, /* Multi I/O supported */
10862 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10863 .voltage = {1700, 2000},
10864 },
10865
10866 {
10867 .vendor = "Micron/Numonyx/ST",
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070010868 .name = "N25Q256..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
10869 .bustype = BUS_SPI,
10870 .manufacture_id = ST_ID,
10871 .model_id = ST_N25Q256__3E,
10872 .total_size = 32768,
10873 .page_size = 256,
10874 /* supports SFDP */
10875 /* OTP: 64B total; read 0x4B, write 0x42 */
10876 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
10877 .tested = TEST_UNTESTED,
10878 .probe = probe_spi_rdid,
10879 .probe_timing = TIMING_ZERO,
10880 .block_erasers =
10881 {
10882 {
10883 .eraseblocks = { {4 * 1024, 8192} },
10884 .block_erase = spi_block_erase_21,
10885 }, {
10886 .eraseblocks = { {4 * 1024, 8192} },
10887 .block_erase = spi_block_erase_20,
10888 }, {
10889 .eraseblocks = { {64 * 1024, 512} },
10890 .block_erase = spi_block_erase_dc,
10891 }, {
10892 .eraseblocks = { {64 * 1024, 512} },
10893 .block_erase = spi_block_erase_d8,
10894 }, {
10895 .eraseblocks = { {32768 * 1024, 1} },
10896 .block_erase = spi_block_erase_c7,
10897 }
10898 },
10899 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10900 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10901 .write = spi_chip_write_256, /* Multi I/O supported */
10902 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10903 .voltage = {2700, 3600},
10904 },
10905
10906 {
10907 .vendor = "Micron/Numonyx/ST",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070010908 .name = "N25Q512..1G", /* ..1G = 1.8V, uniform 64KB/4KB blocks/sectors */
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070010909 .bustype = BUS_SPI,
10910 .manufacture_id = ST_ID,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070010911 .model_id = ST_N25Q512__1G,
10912 .total_size = 65536,
10913 .page_size = 256,
10914 /* supports SFDP */
10915 /* OTP: 64B total; read 0x4B, write 0x42 */
10916 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
10917 .tested = TEST_UNTESTED,
10918 .probe = probe_spi_rdid,
10919 .probe_timing = TIMING_ZERO,
10920 .block_erasers =
10921 {
10922 {
10923 .eraseblocks = { {4 * 1024, 16384} },
10924 .block_erase = spi_block_erase_21,
10925 }, {
10926 .eraseblocks = { {4 * 1024, 16384} },
10927 .block_erase = spi_block_erase_20,
10928 }, {
10929 .eraseblocks = { {64 * 1024, 1024} },
10930 .block_erase = spi_block_erase_dc,
10931 }, {
10932 .eraseblocks = { {64 * 1024, 1024} },
10933 .block_erase = spi_block_erase_d8,
10934 }, {
10935 .eraseblocks = { {32768 * 1024, 2} },
10936 .block_erase = spi_block_erase_c4,
10937 }
10938 },
10939 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10940 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10941 .write = spi_chip_write_256, /* Multi I/O supported */
10942 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10943 .voltage = {1700, 2000},
10944 },
10945
10946 {
10947 .vendor = "Micron/Numonyx/ST",
10948 .name = "N25Q512..3G", /* ..3G = 3V, uniform 64KB/4KB blocks/sectors */
10949 .bustype = BUS_SPI,
10950 .manufacture_id = ST_ID,
10951 .model_id = ST_N25Q512__3G,
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070010952 .total_size = 65536,
10953 .page_size = 256,
10954 /* supports SFDP */
10955 /* OTP: 64B total; read 0x4B, write 0x42 */
10956 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
10957 .tested = TEST_OK_PREW,
10958 .probe = probe_spi_rdid,
10959 .probe_timing = TIMING_ZERO,
10960 .block_erasers =
10961 {
10962 {
10963 .eraseblocks = { {4 * 1024, 16384} },
10964 .block_erase = spi_block_erase_21,
10965 }, {
10966 .eraseblocks = { {4 * 1024, 16384} },
10967 .block_erase = spi_block_erase_20,
10968 }, {
10969 .eraseblocks = { {64 * 1024, 1024} },
10970 .block_erase = spi_block_erase_dc,
10971 }, {
10972 .eraseblocks = { {64 * 1024, 1024} },
10973 .block_erase = spi_block_erase_d8,
10974 }, {
Jacob Creedone8e7b0e2019-07-22 12:21:22 -070010975 .eraseblocks = { {32768 * 1024, 2} },
10976 .block_erase = spi_block_erase_c4,
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070010977 }
10978 },
10979 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10980 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10981 .write = spi_chip_write_256, /* Multi I/O supported */
10982 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10983 .voltage = {2700, 3600},
10984 },
10985
10986 {
Ed Swierk199ab392017-07-03 13:33:44 -070010987 .vendor = "Micron",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070010988 .name = "MT25QL01G", /* L = 3V, uniform 64KB/4KB blocks/sectors */
10989 .bustype = BUS_SPI,
10990 .manufacture_id = ST_ID,
10991 .model_id = ST_N25Q00A__3G,
10992 .total_size = 131072,
10993 .page_size = 256,
10994 /* supports SFDP */
10995 /* OTP: 64B total; read 0x4B, write 0x42 */
10996 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
10997 .tested = TEST_OK_PREW,
10998 .probe = probe_spi_rdid,
10999 .probe_timing = TIMING_ZERO,
11000 .block_erasers =
11001 {
11002 {
11003 .eraseblocks = { {4 * 1024, 32768} },
11004 .block_erase = spi_block_erase_21,
11005 }, {
11006 .eraseblocks = { {4 * 1024, 32768} },
11007 .block_erase = spi_block_erase_20,
11008 }, {
11009 .eraseblocks = { {32 * 1024, 4096} },
11010 .block_erase = spi_block_erase_5c,
11011 }, {
11012 .eraseblocks = { {32 * 1024, 4096} },
11013 .block_erase = spi_block_erase_52,
11014 }, {
11015 .eraseblocks = { {64 * 1024, 2048} },
11016 .block_erase = spi_block_erase_dc,
11017 }, {
11018 .eraseblocks = { {64 * 1024, 2048} },
11019 .block_erase = spi_block_erase_d8,
11020 }, {
11021 .eraseblocks = { {65536 * 1024, 2} },
11022 .block_erase = spi_block_erase_c4,
11023 }
11024 },
11025 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11026 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11027 .write = spi_chip_write_256, /* Multi I/O supported */
11028 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11029 .voltage = {2700, 3600},
11030 },
11031
11032 {
11033 .vendor = "Micron",
11034 .name = "MT25QU01G", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
11035 .bustype = BUS_SPI,
11036 .manufacture_id = ST_ID,
11037 .model_id = ST_N25Q00A__1G,
11038 .total_size = 131072,
11039 .page_size = 256,
11040 /* supports SFDP */
11041 /* OTP: 64B total; read 0x4B, write 0x42 */
11042 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11043 .tested = TEST_UNTESTED,
11044 .probe = probe_spi_rdid,
11045 .probe_timing = TIMING_ZERO,
11046 .block_erasers =
11047 {
11048 {
11049 .eraseblocks = { {4 * 1024, 32768} },
11050 .block_erase = spi_block_erase_21,
11051 }, {
11052 .eraseblocks = { {4 * 1024, 32768} },
11053 .block_erase = spi_block_erase_20,
11054 }, {
11055 .eraseblocks = { {32 * 1024, 4096} },
11056 .block_erase = spi_block_erase_5c,
11057 }, {
11058 .eraseblocks = { {32 * 1024, 4096} },
11059 .block_erase = spi_block_erase_52,
11060 }, {
11061 .eraseblocks = { {64 * 1024, 2048} },
11062 .block_erase = spi_block_erase_dc,
11063 }, {
11064 .eraseblocks = { {64 * 1024, 2048} },
11065 .block_erase = spi_block_erase_d8,
11066 }, {
11067 .eraseblocks = { {65536 * 1024, 2} },
11068 .block_erase = spi_block_erase_c4,
11069 }
11070 },
11071 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11072 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11073 .write = spi_chip_write_256, /* Multi I/O supported */
11074 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11075 .voltage = {1700, 2000},
11076 },
11077
11078 {
11079 .vendor = "Micron",
11080 .name = "MT25QL02G", /* L = 3V, uniform 64KB/4KB blocks/sectors */
11081 .bustype = BUS_SPI,
11082 .manufacture_id = ST_ID,
11083 .model_id = ST_MT25QL02G,
11084 .total_size = 262144,
11085 .page_size = 256,
11086 /* supports SFDP */
11087 /* OTP: 64B total; read 0x4B, write 0x42 */
11088 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11089 .tested = TEST_UNTESTED,
11090 .probe = probe_spi_rdid,
11091 .probe_timing = TIMING_ZERO,
11092 .block_erasers =
11093 {
11094 {
11095 .eraseblocks = { {4 * 1024, 65536} },
11096 .block_erase = spi_block_erase_21,
11097 }, {
11098 .eraseblocks = { {4 * 1024, 65536} },
11099 .block_erase = spi_block_erase_20,
11100 }, {
11101 .eraseblocks = { {32 * 1024, 8192} },
11102 .block_erase = spi_block_erase_5c,
11103 }, {
11104 .eraseblocks = { {32 * 1024, 8192} },
11105 .block_erase = spi_block_erase_52,
11106 }, {
11107 .eraseblocks = { {64 * 1024, 4096} },
11108 .block_erase = spi_block_erase_dc,
11109 }, {
11110 .eraseblocks = { {64 * 1024, 4096} },
11111 .block_erase = spi_block_erase_d8,
11112 }, {
11113 .eraseblocks = { {65536 * 1024, 4} },
11114 .block_erase = spi_block_erase_c4,
11115 }
11116 },
11117 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11118 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11119 .write = spi_chip_write_256, /* Multi I/O supported */
11120 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11121 .voltage = {2700, 3600},
11122 },
11123
11124 {
11125 .vendor = "Micron",
11126 .name = "MT25QU02G", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
11127 .bustype = BUS_SPI,
11128 .manufacture_id = ST_ID,
11129 .model_id = ST_MT25QU02G,
11130 .total_size = 262144,
11131 .page_size = 256,
11132 /* supports SFDP */
11133 /* OTP: 64B total; read 0x4B, write 0x42 */
11134 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11135 .tested = TEST_UNTESTED,
11136 .probe = probe_spi_rdid,
11137 .probe_timing = TIMING_ZERO,
11138 .block_erasers =
11139 {
11140 {
11141 .eraseblocks = { {4 * 1024, 65536} },
11142 .block_erase = spi_block_erase_21,
11143 }, {
11144 .eraseblocks = { {4 * 1024, 65536} },
11145 .block_erase = spi_block_erase_20,
11146 }, {
11147 .eraseblocks = { {32 * 1024, 8192} },
11148 .block_erase = spi_block_erase_5c,
11149 }, {
11150 .eraseblocks = { {32 * 1024, 8192} },
11151 .block_erase = spi_block_erase_52,
11152 }, {
11153 .eraseblocks = { {64 * 1024, 4096} },
11154 .block_erase = spi_block_erase_dc,
11155 }, {
11156 .eraseblocks = { {64 * 1024, 4096} },
11157 .block_erase = spi_block_erase_d8,
11158 }, {
11159 .eraseblocks = { {65536 * 1024, 4} },
11160 .block_erase = spi_block_erase_c4,
11161 }
11162 },
11163 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11164 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11165 .write = spi_chip_write_256, /* Multi I/O supported */
11166 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11167 .voltage = {1700, 2000},
11168 },
11169
11170 {
11171 .vendor = "Micron",
11172 .name = "MT25QU128", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
11173 .bustype = BUS_SPI,
11174 .manufacture_id = ST_ID,
11175 .model_id = ST_N25Q128__1E,
11176 .total_size = 16384,
11177 .page_size = 256,
11178 /* supports SFDP */
11179 /* OTP: 64B total; read 0x4B, write 0x42 */
11180 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11181 .tested = TEST_UNTESTED,
11182 .probe = probe_spi_rdid,
11183 .probe_timing = TIMING_ZERO,
11184 .block_erasers =
11185 {
11186 {
11187 .eraseblocks = { {4 * 1024, 4096} },
11188 .block_erase = spi_block_erase_20,
11189 }, {
11190 .eraseblocks = { {32 * 1024, 512} },
11191 .block_erase = spi_block_erase_52,
11192 }, {
11193 .eraseblocks = { {64 * 1024, 256} },
11194 .block_erase = spi_block_erase_d8,
11195 }, {
11196 .eraseblocks = { {16384 * 1024, 1} },
11197 .block_erase = spi_block_erase_c7,
11198 }, {
11199 .eraseblocks = { {16384 * 1024, 1} },
11200 .block_erase = spi_block_erase_60,
11201 }
11202 },
11203 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11204 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11205 .write = spi_chip_write_256, /* Multi I/O supported */
11206 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11207 .voltage = {1700, 2000},
11208 },
11209
11210 {
11211 .vendor = "Micron",
11212 .name = "MT25QL128", /* L = 3V, uniform 64KB/4KB blocks/sectors */
11213 .bustype = BUS_SPI,
11214 .manufacture_id = ST_ID,
11215 .model_id = ST_N25Q128__3E,
11216 .total_size = 16384,
11217 .page_size = 256,
11218 /* supports SFDP */
11219 /* OTP: 64B total; read 0x4B, write 0x42 */
11220 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11221 .tested = TEST_UNTESTED,
11222 .probe = probe_spi_rdid,
11223 .probe_timing = TIMING_ZERO,
11224 .block_erasers =
11225 {
11226 {
11227 .eraseblocks = { {4 * 1024, 4096} },
11228 .block_erase = spi_block_erase_20,
11229 }, {
11230 .eraseblocks = { {32 * 1024, 512} },
11231 .block_erase = spi_block_erase_52,
11232 }, {
11233 .eraseblocks = { {64 * 1024, 256} },
11234 .block_erase = spi_block_erase_d8,
11235 }, {
11236 .eraseblocks = { {16384 * 1024, 1} },
11237 .block_erase = spi_block_erase_c7,
11238 }, {
11239 .eraseblocks = { {16384 * 1024, 1} },
11240 .block_erase = spi_block_erase_60,
11241 }
11242 },
11243 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11244 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11245 .write = spi_chip_write_256, /* Multi I/O supported */
11246 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11247 .voltage = {2700, 3600},
11248 },
11249
11250 {
11251 .vendor = "Micron",
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011252 .name = "MT25QL256", /* L = 3V, uniform 64KB/4KB blocks/sectors */
Ed Swierk199ab392017-07-03 13:33:44 -070011253 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100011254 .manufacture_id = ST_ID,
Ed Swierk199ab392017-07-03 13:33:44 -070011255 .model_id = ST_N25Q256__3E,
11256 .total_size = 32768,
11257 .page_size = 256,
11258 /* supports SFDP */
11259 /* OTP: 64B total; read 0x4B, write 0x42 */
Nico Huberaac81422017-11-10 22:54:13 +010011260 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11261 .tested = TEST_UNTESTED,
Ed Swierk199ab392017-07-03 13:33:44 -070011262 .probe = probe_spi_rdid,
11263 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011264 .block_erasers =
11265 {
Ed Swierk199ab392017-07-03 13:33:44 -070011266 {
11267 .eraseblocks = { {4 * 1024, 8192} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020011268 .block_erase = spi_block_erase_21,
Ed Swierk199ab392017-07-03 13:33:44 -070011269 }, {
Nico Huberaac81422017-11-10 22:54:13 +010011270 .eraseblocks = { {4 * 1024, 8192} },
11271 .block_erase = spi_block_erase_20,
11272 }, {
Jacob Creedon045b97e2019-07-22 12:26:56 -070011273 .eraseblocks = { {32 * 1024, 1024} },
11274 .block_erase = spi_block_erase_5c,
11275 }, {
11276 .eraseblocks = { {32 * 1024, 1024} },
11277 .block_erase = spi_block_erase_52,
11278 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070011279 .eraseblocks = { {64 * 1024, 512} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020011280 .block_erase = spi_block_erase_dc,
Ed Swierk199ab392017-07-03 13:33:44 -070011281 }, {
Nico Huberaac81422017-11-10 22:54:13 +010011282 .eraseblocks = { {64 * 1024, 512} },
11283 .block_erase = spi_block_erase_d8,
11284 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070011285 .eraseblocks = { {32768 * 1024, 1} },
11286 .block_erase = spi_block_erase_c7,
Jacob Creedon045b97e2019-07-22 12:26:56 -070011287 }, {
11288 .eraseblocks = { {32768 * 1024, 1} },
11289 .block_erase = spi_block_erase_60,
Ed Swierk199ab392017-07-03 13:33:44 -070011290 }
11291 },
11292 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11293 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11294 .write = spi_chip_write_256, /* Multi I/O supported */
11295 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11296 .voltage = {2700, 3600},
11297 },
11298
11299 {
11300 .vendor = "Micron",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011301 .name = "MT25QU256", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
11302 .bustype = BUS_SPI,
11303 .manufacture_id = ST_ID,
11304 .model_id = ST_N25Q256__1E,
11305 .total_size = 32768,
11306 .page_size = 256,
11307 /* supports SFDP */
11308 /* OTP: 64B total; read 0x4B, write 0x42 */
11309 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11310 .tested = TEST_UNTESTED,
11311 .probe = probe_spi_rdid,
11312 .probe_timing = TIMING_ZERO,
11313 .block_erasers =
11314 {
11315 {
11316 .eraseblocks = { {4 * 1024, 8192} },
11317 .block_erase = spi_block_erase_21,
11318 }, {
11319 .eraseblocks = { {4 * 1024, 8192} },
11320 .block_erase = spi_block_erase_20,
11321 }, {
11322 .eraseblocks = { {32 * 1024, 1024} },
11323 .block_erase = spi_block_erase_5c,
11324 }, {
11325 .eraseblocks = { {32 * 1024, 1024} },
11326 .block_erase = spi_block_erase_52,
11327 }, {
11328 .eraseblocks = { {64 * 1024, 512} },
11329 .block_erase = spi_block_erase_dc,
11330 }, {
11331 .eraseblocks = { {64 * 1024, 512} },
11332 .block_erase = spi_block_erase_d8,
11333 }, {
11334 .eraseblocks = { {32768 * 1024, 1} },
11335 .block_erase = spi_block_erase_c7,
11336 }, {
11337 .eraseblocks = { {32768 * 1024, 1} },
11338 .block_erase = spi_block_erase_60,
11339 }
11340 },
11341 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11342 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11343 .write = spi_chip_write_256, /* Multi I/O supported */
11344 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11345 .voltage = {1700, 2000},
11346 },
11347
11348 {
11349 .vendor = "Micron",
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011350 .name = "MT25QL512", /* L = 3V, uniform 64KB/4KB blocks/sectors */
Ed Swierk199ab392017-07-03 13:33:44 -070011351 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100011352 .manufacture_id = ST_ID,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011353 .model_id = ST_N25Q512__3G,
Ed Swierk199ab392017-07-03 13:33:44 -070011354 .total_size = 65536,
11355 .page_size = 256,
11356 /* supports SFDP */
11357 /* OTP: 64B total; read 0x4B, write 0x42 */
Nico Huberaac81422017-11-10 22:54:13 +010011358 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
Angel Pons3ed5a352018-09-30 16:31:09 +020011359 .tested = TEST_OK_PREW,
Ed Swierk199ab392017-07-03 13:33:44 -070011360 .probe = probe_spi_rdid,
11361 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011362 .block_erasers =
11363 {
Ed Swierk199ab392017-07-03 13:33:44 -070011364 {
11365 .eraseblocks = { {4 * 1024, 16384} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020011366 .block_erase = spi_block_erase_21,
Ed Swierk199ab392017-07-03 13:33:44 -070011367 }, {
Nico Huberaac81422017-11-10 22:54:13 +010011368 .eraseblocks = { {4 * 1024, 16384} },
11369 .block_erase = spi_block_erase_20,
11370 }, {
Jacob Creedon045b97e2019-07-22 12:26:56 -070011371 .eraseblocks = { {32 * 1024, 2048} },
11372 .block_erase = spi_block_erase_5c,
11373 }, {
11374 .eraseblocks = { {32 * 1024, 2048} },
11375 .block_erase = spi_block_erase_52,
11376 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070011377 .eraseblocks = { {64 * 1024, 1024} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020011378 .block_erase = spi_block_erase_dc,
Ed Swierk199ab392017-07-03 13:33:44 -070011379 }, {
Nico Huberaac81422017-11-10 22:54:13 +010011380 .eraseblocks = { {64 * 1024, 1024} },
11381 .block_erase = spi_block_erase_d8,
11382 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070011383 .eraseblocks = { {65536 * 1024, 1} },
11384 .block_erase = spi_block_erase_c7,
Jacob Creedon045b97e2019-07-22 12:26:56 -070011385 }, {
11386 .eraseblocks = { {65536 * 1024, 1} },
11387 .block_erase = spi_block_erase_60,
Ed Swierk199ab392017-07-03 13:33:44 -070011388 }
11389 },
11390 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11391 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11392 .write = spi_chip_write_256, /* Multi I/O supported */
11393 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11394 .voltage = {2700, 3600},
11395 },
11396
11397 {
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011398 .vendor = "Micron",
11399 .name = "MT25QU512", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
11400 .bustype = BUS_SPI,
11401 .manufacture_id = ST_ID,
11402 .model_id = ST_N25Q512__1G,
11403 .total_size = 65536,
11404 .page_size = 256,
11405 /* supports SFDP */
11406 /* OTP: 64B total; read 0x4B, write 0x42 */
11407 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11408 .tested = TEST_OK_PREW,
11409 .probe = probe_spi_rdid,
11410 .probe_timing = TIMING_ZERO,
11411 .block_erasers =
11412 {
11413 {
11414 .eraseblocks = { {4 * 1024, 16384} },
11415 .block_erase = spi_block_erase_21,
11416 }, {
11417 .eraseblocks = { {4 * 1024, 16384} },
11418 .block_erase = spi_block_erase_20,
11419 }, {
11420 .eraseblocks = { {32 * 1024, 2048} },
11421 .block_erase = spi_block_erase_5c,
11422 }, {
11423 .eraseblocks = { {32 * 1024, 2048} },
11424 .block_erase = spi_block_erase_52,
11425 }, {
11426 .eraseblocks = { {64 * 1024, 1024} },
11427 .block_erase = spi_block_erase_dc,
11428 }, {
11429 .eraseblocks = { {64 * 1024, 1024} },
11430 .block_erase = spi_block_erase_d8,
11431 }, {
11432 .eraseblocks = { {65536 * 1024, 1} },
11433 .block_erase = spi_block_erase_c7,
11434 }, {
11435 .eraseblocks = { {65536 * 1024, 1} },
11436 .block_erase = spi_block_erase_60,
11437 }
11438 },
11439 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11440 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11441 .write = spi_chip_write_256, /* Multi I/O supported */
11442 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11443 .voltage = {1700, 2000},
11444 },
11445
11446 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000011447 .vendor = "MoselVitelic",
11448 .name = "V29C51000B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011449 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011450 .manufacture_id = SYNCMOS_MVC_ID,
11451 .model_id = MVC_V29C51000B,
11452 .total_size = 64,
11453 .page_size = 512,
11454 .feature_bits = FEATURE_EITHER_RESET,
11455 .tested = TEST_UNTESTED,
11456 .probe = probe_jedec,
11457 .probe_timing = TIMING_ZERO,
11458 .block_erasers =
11459 {
11460 {
11461 .eraseblocks = { {512, 128} },
11462 .block_erase = erase_sector_jedec,
11463 }, {
11464 .eraseblocks = { {64 * 1024, 1} },
11465 .block_erase = erase_chip_block_jedec,
11466 },
11467 },
11468 .write = write_jedec_1,
11469 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011470 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011471 },
11472
11473 {
11474 .vendor = "MoselVitelic",
11475 .name = "V29C51000T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011476 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011477 .manufacture_id = SYNCMOS_MVC_ID,
11478 .model_id = MVC_V29C51000T,
11479 .total_size = 64,
11480 .page_size = 512,
11481 .feature_bits = FEATURE_EITHER_RESET,
11482 .tested = TEST_UNTESTED,
11483 .probe = probe_jedec,
11484 .probe_timing = TIMING_ZERO,
11485 .block_erasers =
11486 {
11487 {
11488 .eraseblocks = { {512, 128} },
11489 .block_erase = erase_sector_jedec,
11490 }, {
11491 .eraseblocks = { {64 * 1024, 1} },
11492 .block_erase = erase_chip_block_jedec,
11493 },
11494 },
11495 .write = write_jedec_1,
11496 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011497 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011498 },
11499
11500 {
11501 .vendor = "MoselVitelic",
11502 .name = "V29C51400B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011503 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011504 .manufacture_id = SYNCMOS_MVC_ID,
11505 .model_id = MVC_V29C51400B,
11506 .total_size = 512,
11507 .page_size = 1024,
11508 .feature_bits = FEATURE_EITHER_RESET,
11509 .tested = TEST_UNTESTED,
11510 .probe = probe_jedec,
11511 .probe_timing = TIMING_ZERO,
11512 .block_erasers =
11513 {
11514 {
11515 .eraseblocks = { {1024, 512} },
11516 .block_erase = erase_sector_jedec,
11517 }, {
11518 .eraseblocks = { {512 * 1024, 1} },
11519 .block_erase = erase_chip_block_jedec,
11520 },
11521 },
11522 .write = write_jedec_1,
11523 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011524 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011525 },
11526
11527 {
11528 .vendor = "MoselVitelic",
11529 .name = "V29C51400T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011530 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011531 .manufacture_id = SYNCMOS_MVC_ID,
11532 .model_id = MVC_V29C51400T,
11533 .total_size = 512,
11534 .page_size = 1024,
11535 .feature_bits = FEATURE_EITHER_RESET,
11536 .tested = TEST_UNTESTED,
11537 .probe = probe_jedec,
11538 .probe_timing = TIMING_ZERO,
11539 .block_erasers =
11540 {
11541 {
11542 .eraseblocks = { {1024, 512} },
11543 .block_erase = erase_sector_jedec,
11544 }, {
11545 .eraseblocks = { {512 * 1024, 1} },
11546 .block_erase = erase_chip_block_jedec,
11547 },
11548 },
11549 .write = write_jedec_1,
11550 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011551 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011552 },
11553
11554 {
11555 .vendor = "MoselVitelic",
11556 .name = "V29LC51000",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011557 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011558 .manufacture_id = SYNCMOS_MVC_ID,
11559 .model_id = MVC_V29LC51000,
11560 .total_size = 64,
11561 .page_size = 512,
11562 .feature_bits = FEATURE_EITHER_RESET,
11563 .tested = TEST_UNTESTED,
11564 .probe = probe_jedec,
11565 .probe_timing = TIMING_ZERO,
11566 .block_erasers =
11567 {
11568 {
11569 .eraseblocks = { {512, 128} },
11570 .block_erase = erase_sector_jedec,
11571 }, {
11572 .eraseblocks = { {64 * 1024, 1} },
11573 .block_erase = erase_chip_block_jedec,
11574 },
11575 },
11576 .write = write_jedec_1,
11577 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011578 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011579 },
11580
11581 {
11582 .vendor = "MoselVitelic",
11583 .name = "V29LC51001",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011584 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011585 .manufacture_id = SYNCMOS_MVC_ID,
11586 .model_id = MVC_V29LC51001,
11587 .total_size = 128,
11588 .page_size = 512,
11589 .feature_bits = FEATURE_EITHER_RESET,
11590 .tested = TEST_UNTESTED,
11591 .probe = probe_jedec,
11592 .probe_timing = TIMING_ZERO,
11593 .block_erasers =
11594 {
11595 {
11596 .eraseblocks = { {512, 256} },
11597 .block_erase = erase_sector_jedec,
11598 }, {
11599 .eraseblocks = { {128 * 1024, 1} },
11600 .block_erase = erase_chip_block_jedec,
11601 },
11602 },
11603 .write = write_jedec_1,
11604 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011605 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011606 },
11607
11608 {
11609 .vendor = "MoselVitelic",
11610 .name = "V29LC51002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011611 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011612 .manufacture_id = SYNCMOS_MVC_ID,
11613 .model_id = MVC_V29LC51002,
11614 .total_size = 256,
11615 .page_size = 512,
11616 .feature_bits = FEATURE_EITHER_RESET,
11617 .tested = TEST_UNTESTED,
11618 .probe = probe_jedec,
11619 .probe_timing = TIMING_ZERO,
11620 .block_erasers =
11621 {
11622 {
11623 .eraseblocks = { {512, 512} },
11624 .block_erase = erase_sector_jedec,
11625 }, {
11626 .eraseblocks = { {256 * 1024, 1} },
11627 .block_erase = erase_chip_block_jedec,
11628 },
11629 },
11630 .write = write_jedec_1,
11631 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011632 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011633 },
11634
11635 {
Stefan Taunerb6b00e92013-06-28 21:28:43 +000011636 .vendor = "Nantronics",
11637 .name = "N25S10",
11638 .bustype = BUS_SPI,
11639 .manufacture_id = NANTRONICS_ID_NOPREFIX,
11640 .model_id = NANTRONICS_N25S10,
11641 .total_size = 128,
11642 .page_size = 256,
11643 .feature_bits = FEATURE_WRSR_WREN,
11644 .tested = TEST_UNTESTED,
11645 .probe = probe_spi_rdid,
11646 .probe_timing = TIMING_ZERO,
11647 .block_erasers =
11648 {
11649 {
11650 .eraseblocks = { {4 * 1024, 32} },
11651 .block_erase = spi_block_erase_20,
11652 }, {
11653 .eraseblocks = { {4 * 1024, 32} },
11654 .block_erase = spi_block_erase_d7,
11655 }, {
11656 .eraseblocks = { {32 * 1024, 4} },
11657 .block_erase = spi_block_erase_52,
11658 }, {
11659 .eraseblocks = { {64 * 1024, 2} },
11660 .block_erase = spi_block_erase_d8,
11661 }, {
11662 .eraseblocks = { {128 * 1024, 1} },
11663 .block_erase = spi_block_erase_60,
11664 }, {
11665 .eraseblocks = { {128 * 1024, 1} },
11666 .block_erase = spi_block_erase_c7,
11667 }
11668 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011669 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000011670 .unlock = spi_disable_blockprotect_bp3_srwd,
11671 .write = spi_chip_write_256,
11672 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
11673 .voltage = {2700, 3600},
11674 },
11675
11676 {
11677 .vendor = "Nantronics",
Alan Green1f9cc7d2019-07-01 11:10:45 +100011678 .name = "N25S16",
11679 .bustype = BUS_SPI,
11680 .manufacture_id = NANTRONICS_ID_NOPREFIX,
11681 .model_id = NANTRONICS_N25S16,
11682 .total_size = 2048,
11683 .page_size = 256,
11684 .feature_bits = FEATURE_WRSR_WREN,
11685 .tested = TEST_UNTESTED,
11686 .probe = probe_spi_rdid,
11687 .probe_timing = TIMING_ZERO,
11688 .block_erasers =
11689 {
11690 {
11691 .eraseblocks = { {4 * 1024, 512} },
11692 .block_erase = spi_block_erase_20,
11693 }, {
11694 .eraseblocks = { {64 * 1024, 32} },
11695 .block_erase = spi_block_erase_d8,
11696 }, {
11697 .eraseblocks = { {2048 * 1024, 1} },
11698 .block_erase = spi_block_erase_60,
11699 }, {
11700 .eraseblocks = { {2048 * 1024, 1} },
11701 .block_erase = spi_block_erase_c7,
11702 }
11703 },
11704 .printlock = spi_prettyprint_status_register_bp3_srwd,
11705 .unlock = spi_disable_blockprotect_bp3_srwd,
11706 .write = spi_chip_write_256,
11707 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
11708 .voltage = {2700, 3600},
11709 },
11710
11711 {
11712 .vendor = "Nantronics",
Stefan Taunerb6b00e92013-06-28 21:28:43 +000011713 .name = "N25S20",
11714 .bustype = BUS_SPI,
11715 .manufacture_id = NANTRONICS_ID_NOPREFIX,
11716 .model_id = NANTRONICS_N25S20,
11717 .total_size = 256,
11718 .page_size = 256,
11719 .feature_bits = FEATURE_WRSR_WREN,
11720 .tested = TEST_UNTESTED,
11721 .probe = probe_spi_rdid,
11722 .probe_timing = TIMING_ZERO,
11723 .block_erasers =
11724 {
11725 {
11726 .eraseblocks = { {4 * 1024, 64} },
11727 .block_erase = spi_block_erase_20,
11728 }, {
11729 .eraseblocks = { {4 * 1024, 64} },
11730 .block_erase = spi_block_erase_d7,
11731 }, {
11732 .eraseblocks = { {32 * 1024, 8} },
11733 .block_erase = spi_block_erase_52,
11734 }, {
11735 .eraseblocks = { {64 * 1024, 4} },
11736 .block_erase = spi_block_erase_d8,
11737 }, {
11738 .eraseblocks = { {256 * 1024, 1} },
11739 .block_erase = spi_block_erase_60,
11740 }, {
11741 .eraseblocks = { {256 * 1024, 1} },
11742 .block_erase = spi_block_erase_c7,
11743 }
11744 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011745 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000011746 .unlock = spi_disable_blockprotect_bp3_srwd,
11747 .write = spi_chip_write_256,
11748 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
11749 .voltage = {2700, 3600},
11750 },
11751
11752 {
11753 .vendor = "Nantronics",
11754 .name = "N25S40",
11755 .bustype = BUS_SPI,
11756 .manufacture_id = NANTRONICS_ID_NOPREFIX,
11757 .model_id = NANTRONICS_N25S40,
11758 .total_size = 512,
11759 .page_size = 256,
11760 .feature_bits = FEATURE_WRSR_WREN,
11761 .tested = TEST_UNTESTED,
11762 .probe = probe_spi_rdid,
11763 .probe_timing = TIMING_ZERO,
11764 .block_erasers =
11765 {
11766 {
11767 .eraseblocks = { {4 * 1024, 128} },
11768 .block_erase = spi_block_erase_20,
11769 }, {
11770 .eraseblocks = { {4 * 1024, 128} },
11771 .block_erase = spi_block_erase_d7,
11772 }, {
11773 .eraseblocks = { {32 * 1024, 16} },
11774 .block_erase = spi_block_erase_52,
11775 }, {
11776 .eraseblocks = { {64 * 1024, 8} },
11777 .block_erase = spi_block_erase_d8,
11778 }, {
11779 .eraseblocks = { {512 * 1024, 1} },
11780 .block_erase = spi_block_erase_60,
11781 }, {
11782 .eraseblocks = { {512 * 1024, 1} },
11783 .block_erase = spi_block_erase_c7,
11784 }
11785 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011786 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000011787 .unlock = spi_disable_blockprotect_bp3_srwd,
11788 .write = spi_chip_write_256,
11789 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
11790 .voltage = {2700, 3600},
11791 },
11792
11793 {
11794 .vendor = "Nantronics",
11795 .name = "N25S80",
11796 .bustype = BUS_SPI,
11797 .manufacture_id = NANTRONICS_ID_NOPREFIX,
11798 .model_id = NANTRONICS_N25S80,
11799 .total_size = 1024,
11800 .page_size = 256,
11801 .feature_bits = FEATURE_WRSR_WREN,
11802 .tested = TEST_UNTESTED,
11803 .probe = probe_spi_rdid,
11804 .probe_timing = TIMING_ZERO,
11805 .block_erasers =
11806 {
11807 {
11808 .eraseblocks = { {4 * 1024, 256} },
11809 .block_erase = spi_block_erase_20,
11810 }, {
11811 .eraseblocks = { {32 * 1024, 32} },
11812 .block_erase = spi_block_erase_52,
11813 }, {
11814 .eraseblocks = { {64 * 1024, 16} },
11815 .block_erase = spi_block_erase_d8,
11816 }, {
11817 .eraseblocks = { {1024 * 1024, 1} },
11818 .block_erase = spi_block_erase_60,
11819 }, {
11820 .eraseblocks = { {1024 * 1024, 1} },
11821 .block_erase = spi_block_erase_c7,
11822 }
11823 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011824 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000011825 .unlock = spi_disable_blockprotect_bp3_srwd,
11826 .write = spi_chip_write_256,
11827 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
11828 .voltage = {2700, 3600},
11829 },
11830
11831 {
Stefan Taunerf4451612013-04-19 01:59:15 +000011832 .vendor = "PMC",
11833 .name = "Pm25LD010(C)",
11834 .bustype = BUS_SPI,
11835 .manufacture_id = PMC_ID,
11836 .model_id = PMC_PM25LD010,
11837 .total_size = 128,
11838 .page_size = 256,
11839 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000011840 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +000011841 .probe = probe_spi_rdid,
11842 .probe_timing = TIMING_ZERO,
11843 .block_erasers =
11844 {
11845 {
11846 .eraseblocks = { {4 * 1024, 32} },
11847 .block_erase = spi_block_erase_20,
11848 }, {
11849 .eraseblocks = { {4 * 1024, 32} },
11850 .block_erase = spi_block_erase_d7,
11851 }, {
11852 .eraseblocks = { {32 * 1024, 4} },
11853 .block_erase = spi_block_erase_d8,
11854 }, {
11855 .eraseblocks = { {128 * 1024, 1} },
11856 .block_erase = spi_block_erase_60,
11857 }, {
11858 .eraseblocks = { {128 * 1024, 1} },
11859 .block_erase = spi_block_erase_c7,
11860 }
11861 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011862 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000011863 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
11864 .write = spi_chip_write_256,
11865 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
11866 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD010 */
11867 },
11868
11869 {
11870 .vendor = "PMC",
11871 .name = "Pm25LD020(C)",
11872 .bustype = BUS_SPI,
11873 .manufacture_id = PMC_ID,
11874 .model_id = PMC_PM25LD020,
11875 .total_size = 256,
11876 .page_size = 256,
11877 .feature_bits = FEATURE_WRSR_WREN,
Angel Ponsf5822a82018-09-30 20:09:58 +020011878 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +000011879 .probe = probe_spi_rdid,
11880 .probe_timing = TIMING_ZERO,
11881 .block_erasers =
11882 {
11883 {
11884 .eraseblocks = { {4 * 1024, 64} },
11885 .block_erase = spi_block_erase_20,
11886 }, {
11887 .eraseblocks = { {4 * 1024, 64} },
11888 .block_erase = spi_block_erase_d7,
11889 }, {
11890 .eraseblocks = { {64 * 1024, 4} },
11891 .block_erase = spi_block_erase_d8,
11892 }, {
11893 .eraseblocks = { {256 * 1024, 1} },
11894 .block_erase = spi_block_erase_60,
11895 }, {
11896 .eraseblocks = { {256 * 1024, 1} },
11897 .block_erase = spi_block_erase_c7,
11898 }
11899 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011900 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000011901 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
11902 .write = spi_chip_write_256,
11903 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
11904 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD020 */
11905 },
11906
11907 {
11908 .vendor = "PMC",
11909 .name = "Pm25LD040(C)",
11910 .bustype = BUS_SPI,
11911 .manufacture_id = PMC_ID,
11912 .model_id = PMC_PM25LV040,
11913 .total_size = 512,
11914 .page_size = 256,
11915 .feature_bits = FEATURE_WRSR_WREN,
Angel Pons05127bf2018-09-30 20:23:24 +020011916 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +000011917 .probe = probe_spi_rdid,
11918 .probe_timing = TIMING_ZERO,
11919 .block_erasers =
11920 {
11921 {
11922 .eraseblocks = { {4 * 1024, 128} },
11923 .block_erase = spi_block_erase_20,
11924 }, {
11925 .eraseblocks = { {4 * 1024, 128} },
11926 .block_erase = spi_block_erase_d7,
11927 }, {
11928 .eraseblocks = { {64 * 1024, 8} },
11929 .block_erase = spi_block_erase_d8,
11930 }, {
11931 .eraseblocks = { {512 * 1024, 1} },
11932 .block_erase = spi_block_erase_60,
11933 }, {
11934 .eraseblocks = { {512 * 1024, 1} },
11935 .block_erase = spi_block_erase_c7,
11936 }
11937 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011938 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000011939 .unlock = spi_disable_blockprotect,
11940 .write = spi_chip_write_256,
11941 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
11942 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD040 */
11943 },
11944
Steven Honeyman81a8fb72015-06-02 22:32:24 +000011945 {
11946 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100011947 .name = "Pm25LD256C",
11948 .bustype = BUS_SPI,
11949 .manufacture_id = PMC_ID,
11950 .model_id = PMC_PM25LD256C,
11951 .total_size = 32,
11952 .page_size = 256,
11953 .feature_bits = FEATURE_WRSR_WREN,
11954 .tested = TEST_UNTESTED,
11955 .probe = probe_spi_rdid,
11956 .probe_timing = TIMING_ZERO,
11957 .block_erasers =
11958 {
11959 {
11960 .eraseblocks = { {4 * 1024, 8} },
11961 .block_erase = spi_block_erase_20,
11962 }, {
11963 .eraseblocks = { {4 * 1024, 8} },
11964 .block_erase = spi_block_erase_d7,
11965 }, {
11966 .eraseblocks = { {32 * 1024, 1} },
11967 .block_erase = spi_block_erase_d8,
11968 }, {
11969 .eraseblocks = { {32 * 1024, 1} },
11970 .block_erase = spi_block_erase_60,
11971 }, {
11972 .eraseblocks = { {32 * 1024, 1} },
11973 .block_erase = spi_block_erase_c7,
11974 }
11975 },
11976 .printlock = spi_prettyprint_status_register_bp2_srwd,
11977 .unlock = spi_disable_blockprotect,
11978 .write = spi_chip_write_256,
11979 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
11980 .voltage = {2700, 3600},
11981 },
11982
11983 {
11984 .vendor = "PMC",
11985 .name = "Pm25LD512(C)",
11986 .bustype = BUS_SPI,
11987 .manufacture_id = PMC_ID,
11988 .model_id = PMC_PM25LD512,
11989 .total_size = 64,
11990 .page_size = 256,
11991 .feature_bits = FEATURE_WRSR_WREN,
11992 .tested = TEST_OK_PREW,
11993 .probe = probe_spi_rdid,
11994 .probe_timing = TIMING_ZERO,
11995 .block_erasers =
11996 {
11997 {
11998 .eraseblocks = { {4 * 1024, 16} },
11999 .block_erase = spi_block_erase_20,
12000 }, {
12001 .eraseblocks = { {4 * 1024, 16} },
12002 .block_erase = spi_block_erase_d7,
12003 }, {
12004 .eraseblocks = { {32 * 1024, 2} },
12005 .block_erase = spi_block_erase_d8,
12006 }, {
12007 .eraseblocks = { {64 * 1024, 1} },
12008 .block_erase = spi_block_erase_60,
12009 }, {
12010 .eraseblocks = { {64 * 1024, 1} },
12011 .block_erase = spi_block_erase_c7,
12012 }
12013 },
12014 .printlock = spi_prettyprint_status_register_bp2_srwd,
12015 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
12016 .write = spi_chip_write_256,
12017 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
12018 .voltage = {2300, 3600},
12019 },
12020
12021 {
12022 .vendor = "PMC",
12023 .name = "Pm25LQ016",
12024 .bustype = BUS_SPI,
12025 .manufacture_id = PMC_ID,
12026 .model_id = PMC_PM25LQ016,
12027 .total_size = 2048,
12028 .page_size = 256,
12029 /* OTP: 256B total; read 0x4B, write 0xB1 */
12030 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12031 .tested = TEST_UNTESTED,
12032 .probe = probe_spi_rdid,
12033 .probe_timing = TIMING_ZERO,
12034 .block_erasers =
12035 {
12036 {
12037 .eraseblocks = { {4 * 1024, 512} },
12038 .block_erase = spi_block_erase_20,
12039 }, {
12040 .eraseblocks = { {4 * 1024, 512} },
12041 .block_erase = spi_block_erase_d7,
12042 }, {
12043 .eraseblocks = { {64 * 1024, 32} },
12044 .block_erase = spi_block_erase_d8,
12045 }, {
12046 .eraseblocks = { {2048 * 1024, 1} },
12047 .block_erase = spi_block_erase_60,
12048 }, {
12049 .eraseblocks = { {2048 * 1024, 1} },
12050 .block_erase = spi_block_erase_c7,
12051 }
12052 },
12053 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
12054 .unlock = spi_disable_blockprotect_bp3_srwd,
12055 .write = spi_chip_write_256,
12056 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12057 .voltage = {2300, 3600},
12058 },
12059
12060 {
12061 .vendor = "PMC",
Steven Honeyman81a8fb72015-06-02 22:32:24 +000012062 .name = "Pm25LQ020",
12063 .bustype = BUS_SPI,
12064 .manufacture_id = PMC_ID,
12065 .model_id = PMC_PM25LQ020,
12066 .total_size = 256,
12067 .page_size = 256,
12068 /* OTP: 256B total; read 0x4B, write 0xB1 */
12069 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12070 .tested = TEST_UNTESTED,
12071 .probe = probe_spi_rdid,
12072 .probe_timing = TIMING_ZERO,
12073 .block_erasers =
12074 {
12075 {
12076 .eraseblocks = { {4 * 1024, 64} },
12077 .block_erase = spi_block_erase_20,
12078 }, {
12079 .eraseblocks = { {4 * 1024, 64} },
12080 .block_erase = spi_block_erase_d7,
12081 }, {
12082 .eraseblocks = { {64 * 1024, 4} },
12083 .block_erase = spi_block_erase_d8,
12084 }, {
12085 .eraseblocks = { {256 * 1024, 1} },
12086 .block_erase = spi_block_erase_60,
12087 }, {
12088 .eraseblocks = { {256 * 1024, 1} },
12089 .block_erase = spi_block_erase_c7,
12090 }
12091 },
12092 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
12093 .unlock = spi_disable_blockprotect_bp3_srwd,
12094 .write = spi_chip_write_256,
12095 .read = spi_chip_read,
12096 .voltage = {2300, 3600},
12097 },
12098
12099 {
12100 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012101 .name = "Pm25LQ032C",
12102 .bustype = BUS_SPI,
12103 .manufacture_id = PMC_ID,
12104 .model_id = PMC_PM25LQ032C,
12105 .total_size = 4096,
12106 .page_size = 256,
12107 /* OTP: 64B total; read 0x4B, write 0xB1 */
12108 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12109 .tested = TEST_OK_PREW,
12110 .probe = probe_spi_rdid,
12111 .probe_timing = TIMING_ZERO,
12112 .block_erasers =
12113 {
12114 {
12115 .eraseblocks = { {4 * 1024, 1024} },
12116 .block_erase = spi_block_erase_20,
12117 }, {
12118 .eraseblocks = { {4 * 1024, 1024} },
12119 .block_erase = spi_block_erase_d7,
12120 }, {
12121 .eraseblocks = { {64 * 1024, 64} },
12122 .block_erase = spi_block_erase_d8,
12123 }, {
12124 .eraseblocks = { {4096 * 1024, 1} },
12125 .block_erase = spi_block_erase_60,
12126 }, {
12127 .eraseblocks = { {4096 * 1024, 1} },
12128 .block_erase = spi_block_erase_c7,
12129 }
12130 },
12131 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
12132 .unlock = spi_disable_blockprotect_bp3_srwd,
12133 .write = spi_chip_write_256,
12134 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12135 .voltage = {2700, 3600},
12136 },
12137
12138 {
12139 .vendor = "PMC",
Steven Honeyman81a8fb72015-06-02 22:32:24 +000012140 .name = "Pm25LQ040",
12141 .bustype = BUS_SPI,
12142 .manufacture_id = PMC_ID,
12143 .model_id = PMC_PM25LQ040,
12144 .total_size = 512,
12145 .page_size = 256,
12146 /* OTP: 256B total; read 0x4B, write 0xB1 */
12147 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12148 .tested = TEST_UNTESTED,
12149 .probe = probe_spi_rdid,
12150 .probe_timing = TIMING_ZERO,
12151 .block_erasers =
12152 {
12153 {
12154 .eraseblocks = { {4 * 1024, 128} },
12155 .block_erase = spi_block_erase_20,
12156 }, {
12157 .eraseblocks = { {4 * 1024, 128} },
12158 .block_erase = spi_block_erase_d7,
12159 }, {
12160 .eraseblocks = { {64 * 1024, 8} },
12161 .block_erase = spi_block_erase_d8,
12162 }, {
12163 .eraseblocks = { {512 * 1024, 1} },
12164 .block_erase = spi_block_erase_60,
12165 }, {
12166 .eraseblocks = { {512 * 1024, 1} },
12167 .block_erase = spi_block_erase_c7,
12168 }
12169 },
12170 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
12171 .unlock = spi_disable_blockprotect_bp3_srwd,
12172 .write = spi_chip_write_256,
12173 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12174 .voltage = {2300, 3600},
12175 },
12176
12177 {
12178 .vendor = "PMC",
12179 .name = "Pm25LQ080",
12180 .bustype = BUS_SPI,
12181 .manufacture_id = PMC_ID,
12182 .model_id = PMC_PM25LQ080,
12183 .total_size = 1024,
12184 .page_size = 256,
12185 /* OTP: 64B total; read 0x4B, write 0xB1 */
12186 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12187 .tested = TEST_UNTESTED,
12188 .probe = probe_spi_rdid,
12189 .probe_timing = TIMING_ZERO,
12190 .block_erasers =
12191 {
12192 {
12193 .eraseblocks = { {4 * 1024, 256} },
12194 .block_erase = spi_block_erase_20,
12195 }, {
12196 .eraseblocks = { {4 * 1024, 256} },
12197 .block_erase = spi_block_erase_d7,
12198 }, {
12199 .eraseblocks = { {64 * 1024, 16} },
12200 .block_erase = spi_block_erase_d8,
12201 }, {
12202 .eraseblocks = { {1024 * 1024, 1} },
12203 .block_erase = spi_block_erase_60,
12204 }, {
12205 .eraseblocks = { {1024 * 1024, 1} },
12206 .block_erase = spi_block_erase_c7,
12207 }
12208 },
12209 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
12210 .unlock = spi_disable_blockprotect_bp3_srwd,
12211 .write = spi_chip_write_256,
12212 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12213 .voltage = {2300, 3600},
12214 },
12215
12216 {
12217 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012218 .name = "Pm25LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012219 .bustype = BUS_SPI,
Stefan Taunerbecda742014-05-30 19:34:00 +000012220 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012221 .model_id = PMC_PM25LV010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012222 .total_size = 128,
12223 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012224 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerbecda742014-05-30 19:34:00 +000012225 .tested = TEST_OK_PREW,
12226 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000012227 .probe_timing = TIMING_ZERO,
12228 .block_erasers =
12229 {
12230 {
12231 .eraseblocks = { {4 * 1024, 32} },
12232 .block_erase = spi_block_erase_d7,
12233 }, {
12234 .eraseblocks = { {32 * 1024, 4} },
12235 .block_erase = spi_block_erase_d8,
12236 }, {
12237 .eraseblocks = { {128 * 1024, 1} },
12238 .block_erase = spi_block_erase_c7,
12239 }
12240 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012241 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000012242 .unlock = spi_disable_blockprotect,
12243 .write = spi_chip_write_256,
12244 .read = spi_chip_read, /* Fast read (0x0B) supported */
12245 .voltage = {2700, 3600},
12246 },
12247
12248 {
12249 .vendor = "PMC",
12250 .name = "Pm25LV010A",
12251 .bustype = BUS_SPI,
12252 .manufacture_id = PMC_ID,
12253 .model_id = PMC_PM25LV010,
12254 .total_size = 128,
12255 .page_size = 256,
12256 .feature_bits = FEATURE_WRSR_WREN,
12257 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012258 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012259 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000012260 .block_erasers =
12261 {
12262 {
12263 .eraseblocks = { {4 * 1024, 32} },
12264 .block_erase = spi_block_erase_d7,
12265 }, {
12266 .eraseblocks = { {32 * 1024, 4} },
12267 .block_erase = spi_block_erase_d8,
12268 }, {
12269 .eraseblocks = { {128 * 1024, 1} },
12270 .block_erase = spi_block_erase_c7,
12271 }
12272 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012273 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012274 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012275 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000012276 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +000012277 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012278 },
12279
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012280 {
12281 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012282 .name = "Pm25LV016B",
12283 .bustype = BUS_SPI,
12284 .manufacture_id = PMC_ID,
12285 .model_id = PMC_PM25LV016B,
12286 .total_size = 2048,
12287 .page_size = 256,
12288 .feature_bits = FEATURE_WRSR_WREN,
12289 .tested = TEST_UNTESTED,
12290 .probe = probe_spi_rdid,
12291 .probe_timing = TIMING_ZERO,
12292 .block_erasers =
12293 {
12294 {
12295 .eraseblocks = { {4 * 1024, 512} },
12296 .block_erase = spi_block_erase_d7,
12297 }, {
12298 .eraseblocks = { {4 * 1024, 512} },
12299 .block_erase = spi_block_erase_20,
12300 }, {
12301 .eraseblocks = { {64 * 1024, 32} },
12302 .block_erase = spi_block_erase_d8,
12303 }, {
12304 .eraseblocks = { {2 * 1024 * 1024, 1} },
12305 .block_erase = spi_block_erase_60,
12306 }, {
12307 .eraseblocks = { {2 * 1024 * 1024, 1} },
12308 .block_erase = spi_block_erase_c7,
12309 }
12310 },
12311 .printlock = spi_prettyprint_status_register_bp2_srwd,
12312 .unlock = spi_disable_blockprotect,
12313 .write = spi_chip_write_256,
12314 .read = spi_chip_read, /* Fast read (0x0B) supported */
12315 .voltage = {2700, 3600},
12316 },
12317
12318 {
12319 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012320 .name = "Pm25LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012321 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012322 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012323 .model_id = PMC_PM25LV020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012324 .total_size = 256,
12325 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012326 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012327 .tested = TEST_UNTESTED,
12328 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012329 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000012330 .block_erasers =
12331 {
12332 {
12333 .eraseblocks = { {4 * 1024, 64} },
12334 .block_erase = spi_block_erase_d7,
12335 }, {
12336 .eraseblocks = { {64 * 1024, 4} },
12337 .block_erase = spi_block_erase_d8,
12338 }, {
12339 .eraseblocks = { {256 * 1024, 1} },
12340 .block_erase = spi_block_erase_c7,
12341 }
12342 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012343 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012344 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012345 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012346 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012347 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012348 },
12349
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012350 {
12351 .vendor = "PMC",
12352 .name = "Pm25LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012353 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012354 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012355 .model_id = PMC_PM25LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012356 .total_size = 512,
12357 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012358 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +000012359 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012360 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012361 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000012362 .block_erasers =
12363 {
12364 {
12365 .eraseblocks = { {4 * 1024, 128} },
12366 .block_erase = spi_block_erase_d7,
12367 }, {
12368 .eraseblocks = { {64 * 1024, 8} },
12369 .block_erase = spi_block_erase_d8,
12370 }, {
12371 .eraseblocks = { {512 * 1024, 1} },
12372 .block_erase = spi_block_erase_c7,
12373 }
12374 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012375 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012376 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012377 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000012378 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012379 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012380 },
12381
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012382 {
12383 .vendor = "PMC",
12384 .name = "Pm25LV080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012385 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012386 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012387 .model_id = PMC_PM25LV080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012388 .total_size = 1024,
12389 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012390 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012391 .tested = TEST_UNTESTED,
12392 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012393 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000012394 .block_erasers =
12395 {
12396 {
12397 .eraseblocks = { {4 * 1024, 256} },
12398 .block_erase = spi_block_erase_d7,
12399 }, {
12400 .eraseblocks = { {4 * 1024, 256} },
12401 .block_erase = spi_block_erase_20,
12402 }, {
12403 .eraseblocks = { {64 * 1024, 16} },
12404 .block_erase = spi_block_erase_d8,
12405 }, {
12406 .eraseblocks = { {1024 * 1024, 1} },
12407 .block_erase = spi_block_erase_60,
12408 }, {
12409 .eraseblocks = { {1024 * 1024, 1} },
12410 .block_erase = spi_block_erase_c7,
12411 }
12412 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012413 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012414 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012415 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000012416 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012417 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012418 },
12419
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012420 {
12421 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012422 .name = "Pm25LV512(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012423 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +100012424 .manufacture_id = PMC_ID_NOPREFIX,
12425 .model_id = PMC_PM25LV512,
12426 .total_size = 64,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012427 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012428 .feature_bits = FEATURE_WRSR_WREN,
Alan Green1f9cc7d2019-07-01 11:10:45 +100012429 .tested = TEST_OK_PREW,
12430 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012431 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000012432 .block_erasers =
12433 {
12434 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100012435 .eraseblocks = { {4 * 1024, 16} },
Sean Nelson5643c072010-01-19 03:23:07 +000012436 .block_erase = spi_block_erase_d7,
12437 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100012438 .eraseblocks = { {32 * 1024, 2} },
Sean Nelson5643c072010-01-19 03:23:07 +000012439 .block_erase = spi_block_erase_d8,
12440 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100012441 .eraseblocks = { {64 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +000012442 .block_erase = spi_block_erase_c7,
12443 }
12444 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100012445 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012446 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012447 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000012448 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +000012449 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012450 },
12451
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012452 {
12453 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +000012454 .name = "Pm29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012455 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000012456 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012457 .model_id = PMC_PM29F002B,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000012458 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +000012459 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012460 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000012461 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000012462 .probe = probe_jedec,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000012463 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +000012464 .block_erasers =
12465 {
12466 {
12467 .eraseblocks = {
12468 {16 * 1024, 1},
12469 {8 * 1024, 2},
12470 {96 * 1024, 1},
12471 {128 * 1024, 1},
12472 },
Sean Nelson35727f72010-01-28 23:55:12 +000012473 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000012474 }, {
12475 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000012476 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000012477 },
12478 },
Sean Nelson35727f72010-01-28 23:55:12 +000012479 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000012480 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012481 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +000012482 },
12483
12484 {
12485 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012486 .name = "Pm29F002T",
12487 .bustype = BUS_PARALLEL,
12488 .manufacture_id = PMC_ID_NOPREFIX,
12489 .model_id = PMC_PM29F002T,
12490 .total_size = 256,
12491 .page_size = 8 * 1024,
12492 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
12493 .tested = TEST_OK_PREW,
12494 .probe = probe_jedec,
12495 .probe_timing = TIMING_FIXME,
12496 .block_erasers =
12497 {
12498 {
12499 .eraseblocks = {
12500 {128 * 1024, 1},
12501 {96 * 1024, 1},
12502 {8 * 1024, 2},
12503 {16 * 1024, 1},
12504 },
12505 .block_erase = erase_sector_jedec,
12506 }, {
12507 .eraseblocks = { {256 * 1024, 1} },
12508 .block_erase = erase_chip_block_jedec,
12509 },
12510 },
12511 .write = write_jedec_1,
12512 .read = read_memmapped,
12513 .voltage = {4500, 5500},
12514 },
12515
12516 {
12517 .vendor = "PMC",
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000012518 .name = "Pm39LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012519 .bustype = BUS_PARALLEL,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000012520 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012521 .model_id = PMC_PM39F010, /* Pm39LV010 and Pm39F010 have identical IDs but different voltage */
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000012522 .total_size = 128,
12523 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000012524 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000012525 .tested = TEST_OK_PREW,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000012526 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012527 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson5643c072010-01-19 03:23:07 +000012528 .block_erasers =
12529 {
12530 {
12531 .eraseblocks = { {4 * 1024, 32} },
12532 .block_erase = erase_sector_jedec,
12533 }, {
12534 .eraseblocks = { {64 * 1024, 2} },
12535 .block_erase = erase_block_jedec,
12536 }, {
12537 .eraseblocks = { {128 * 1024, 1} },
12538 .block_erase = erase_chip_block_jedec,
12539 }
12540 },
Sean Nelson35727f72010-01-28 23:55:12 +000012541 .write = write_jedec_1,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000012542 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012543 .voltage = {2700, 3600},
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000012544 },
12545
12546 {
12547 .vendor = "PMC",
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012548 .name = "Pm39LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012549 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012550 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012551 .model_id = PMC_PM39LV020,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012552 .total_size = 256,
12553 .page_size = 4096,
12554 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
12555 .tested = TEST_UNTESTED,
12556 .probe = probe_jedec,
12557 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Alan Greenfa3fcd32019-06-27 15:41:50 +100012558 .block_erasers =
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012559 {
12560 {
12561 .eraseblocks = { {4 * 1024, 64} },
12562 .block_erase = erase_sector_jedec,
12563 }, {
12564 .eraseblocks = { {64 * 1024, 4} },
12565 .block_erase = erase_block_jedec,
12566 }, {
12567 .eraseblocks = { {256 * 1024, 1} },
12568 .block_erase = erase_chip_block_jedec,
12569 }
12570 },
12571 .write = write_jedec_1,
12572 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012573 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012574 },
12575
12576 {
12577 .vendor = "PMC",
12578 .name = "Pm39LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012579 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012580 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012581 .model_id = PMC_PM39LV040,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012582 .total_size = 512,
12583 .page_size = 4096,
12584 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000012585 .tested = TEST_OK_PR,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012586 .probe = probe_jedec,
12587 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Alan Greenfa3fcd32019-06-27 15:41:50 +100012588 .block_erasers =
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012589 {
12590 {
12591 .eraseblocks = { {4 * 1024, 128} },
12592 .block_erase = erase_sector_jedec,
12593 }, {
12594 .eraseblocks = { {64 * 1024, 8} },
12595 .block_erase = erase_block_jedec,
12596 }, {
12597 .eraseblocks = { {512 * 1024, 1} },
12598 .block_erase = erase_chip_block_jedec,
12599 }
12600 },
12601 .write = write_jedec_1,
12602 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012603 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012604 },
Kyösti Mälkkiedab1d22012-05-20 23:32:33 +000012605
12606 {
12607 .vendor = "PMC",
12608 .name = "Pm39LV512",
12609 .bustype = BUS_PARALLEL,
12610 .manufacture_id = PMC_ID_NOPREFIX,
12611 .model_id = PMC_PM39LV512,
12612 .total_size = 64,
12613 .page_size = 4096,
12614 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
12615 .tested = TEST_OK_PREW,
12616 .probe = probe_jedec,
12617 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
12618 .block_erasers =
12619 {
12620 {
12621 .eraseblocks = { {4 * 1024, 16} },
12622 .block_erase = erase_sector_jedec,
12623 }, {
12624 .eraseblocks = { {64 * 1024, 1} },
12625 .block_erase = erase_block_jedec,
12626 }, {
12627 .eraseblocks = { {64 * 1024, 1} },
12628 .block_erase = erase_chip_block_jedec,
12629 }
12630 },
12631 .write = write_jedec_1,
12632 .read = read_memmapped,
12633 .voltage = {2700, 3600},
12634 },
12635
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012636 {
12637 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012638 .name = "Pm49FL002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012639 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012640 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012641 .model_id = PMC_PM49FL002,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012642 .total_size = 256,
12643 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012644 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012645 .tested = TEST_OK_PR,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000012646 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012647 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +000012648 .block_erasers =
12649 {
12650 {
12651 .eraseblocks = { {4 * 1024, 64} },
12652 .block_erase = erase_sector_jedec,
12653 }, {
12654 .eraseblocks = { {16 * 1024, 16} },
12655 .block_erase = erase_block_jedec,
12656 }, {
12657 .eraseblocks = { {256 * 1024, 1} },
12658 .block_erase = erase_chip_block_jedec,
12659 }
12660 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012661 .unlock = unlock_regspace2_uniform_32k,
Sean Nelson36172342010-02-27 18:01:15 +000012662 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012663 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012664 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012665 },
12666
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012667 {
12668 .vendor = "PMC",
12669 .name = "Pm49FL004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012670 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012671 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012672 .model_id = PMC_PM49FL004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012673 .total_size = 512,
12674 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012675 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner74dc73f2015-03-01 22:04:38 +000012676 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000012677 .probe = probe_jedec,
Stefan Tauner74dc73f2015-03-01 22:04:38 +000012678 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000012679 .block_erasers =
12680 {
12681 {
12682 .eraseblocks = { {4 * 1024, 128} },
12683 .block_erase = erase_sector_jedec,
12684 }, {
12685 .eraseblocks = { {64 * 1024, 8} },
12686 .block_erase = erase_block_jedec,
12687 }, {
12688 .eraseblocks = { {512 * 1024, 1} },
12689 .block_erase = erase_chip_block_jedec,
12690 }
12691 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012692 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson36172342010-02-27 18:01:15 +000012693 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012694 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012695 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012696 },
12697
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012698 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012699 .vendor = "SST",
Idwer Volleringf3607d12014-05-07 15:25:04 +000012700 .name = "SST25LF020A",
12701 .bustype = BUS_SPI,
12702 .manufacture_id = SST_ID,
12703 .model_id = SST_SST25VF020_REMS,
12704 .total_size = 256,
12705 .page_size = 256,
12706 .feature_bits = FEATURE_WRSR_EWSR,
12707 .tested = TEST_OK_PREW,
12708 .probe = probe_spi_rems,
12709 .probe_timing = TIMING_ZERO,
12710 .block_erasers =
12711 {
12712 {
12713 .eraseblocks = { {4 * 1024, 64} },
12714 .block_erase = spi_block_erase_20,
12715 }, {
12716 .eraseblocks = { {32 * 1024, 8} },
12717 .block_erase = spi_block_erase_52,
12718 }, {
12719 .eraseblocks = { {256 * 1024, 1} },
12720 .block_erase = spi_block_erase_60,
12721 },
12722 },
12723 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
12724 .unlock = spi_disable_blockprotect,
12725 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
12726 .read = spi_chip_read, /* Fast read (0x0B) supported */
12727 .voltage = {2700, 3600},
12728 },
12729
12730 {
12731 .vendor = "SST",
Zeus Castro33670ba2011-08-17 09:50:11 +000012732 .name = "SST25LF040A",
12733 .bustype = BUS_SPI,
12734 .manufacture_id = SST_ID,
12735 .model_id = SST_SST25VF040_REMS,
12736 .total_size = 512,
12737 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012738 .feature_bits = FEATURE_WRSR_EWSR,
Uwe Hermann4335ec82011-09-07 20:20:25 +000012739 .tested = TEST_OK_PREW,
Zeus Castro33670ba2011-08-17 09:50:11 +000012740 .probe = probe_spi_res2,
12741 .probe_timing = TIMING_ZERO,
12742 .block_erasers =
12743 {
12744 {
12745 .eraseblocks = { {4 * 1024, 128} },
12746 .block_erase = spi_block_erase_20,
12747 }, {
12748 .eraseblocks = { {32 * 1024, 16} },
12749 .block_erase = spi_block_erase_52,
12750 }, {
12751 .eraseblocks = { {512 * 1024, 1} },
12752 .block_erase = spi_block_erase_60,
12753 },
12754 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012755 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +000012756 .unlock = spi_disable_blockprotect,
12757 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
12758 .read = spi_chip_read,
12759 .voltage = {3000, 3600},
12760 },
12761
12762 {
12763 .vendor = "SST",
Stefan Taunere34e3e82013-01-01 00:06:51 +000012764 .name = "SST25LF080(A)",
Zeus Castro33670ba2011-08-17 09:50:11 +000012765 .bustype = BUS_SPI,
12766 .manufacture_id = SST_ID,
12767 .model_id = SST_SST25VF080_REMS,
12768 .total_size = 1024,
12769 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000012770 .feature_bits = FEATURE_WRSR_EITHER,
Zeus Castro33670ba2011-08-17 09:50:11 +000012771 .tested = TEST_UNTESTED,
12772 .probe = probe_spi_res2,
12773 .probe_timing = TIMING_ZERO,
12774 .block_erasers =
12775 {
12776 {
12777 .eraseblocks = { {4 * 1024, 256} },
12778 .block_erase = spi_block_erase_20,
12779 }, {
12780 .eraseblocks = { {32 * 1024, 32} },
12781 .block_erase = spi_block_erase_52,
12782 }, {
12783 .eraseblocks = { {1024 * 1024, 1} },
12784 .block_erase = spi_block_erase_60,
12785 },
12786 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012787 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +000012788 .unlock = spi_disable_blockprotect,
12789 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
12790 .read = spi_chip_read,
12791 .voltage = {3000, 3600},
12792 },
12793
12794 {
12795 .vendor = "SST",
Stefan Tauner6697f712014-08-06 15:09:15 +000012796 .name = "SST25VF010(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012797 .bustype = BUS_SPI,
Mark Marshall90021f22010-12-03 14:48:11 +000012798 .manufacture_id = SST_ID,
12799 .model_id = SST_SST25VF010_REMS,
12800 .total_size = 128,
12801 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012802 .feature_bits = FEATURE_WRSR_EWSR,
Mark Marshall90021f22010-12-03 14:48:11 +000012803 .tested = TEST_OK_PREW,
12804 .probe = probe_spi_rems,
12805 .probe_timing = TIMING_ZERO,
12806 .block_erasers =
12807 {
12808 {
12809 .eraseblocks = { {4 * 1024, 32} },
12810 .block_erase = spi_block_erase_20,
12811 }, {
12812 .eraseblocks = { {32 * 1024, 4} },
12813 .block_erase = spi_block_erase_52,
12814 }, {
Cory Henderson370f5822013-10-19 23:09:16 +000012815 .eraseblocks = { {32 * 1024, 4} },
Stefan Tauner6697f712014-08-06 15:09:15 +000012816 .block_erase = spi_block_erase_d8, /* Supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000012817 }, {
Mark Marshall90021f22010-12-03 14:48:11 +000012818 .eraseblocks = { {128 * 1024, 1} },
12819 .block_erase = spi_block_erase_60,
Cory Henderson370f5822013-10-19 23:09:16 +000012820 }, {
12821 .eraseblocks = { {128 * 1024, 1} },
Stefan Tauner6697f712014-08-06 15:09:15 +000012822 .block_erase = spi_block_erase_c7, /* Supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000012823 },
12824 },
12825 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
12826 .unlock = spi_disable_blockprotect,
12827 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
Stefan Tauner6697f712014-08-06 15:09:15 +000012828 .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000012829 .voltage = {2700, 3600},
12830 },
12831
12832 {
12833 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012834 .name = "SST25VF016B",
12835 .bustype = BUS_SPI,
12836 .manufacture_id = SST_ID,
12837 .model_id = SST_SST25VF016B,
12838 .total_size = 2048,
12839 .page_size = 256,
12840 .feature_bits = FEATURE_WRSR_EITHER,
12841 .tested = TEST_OK_PREW,
12842 .probe = probe_spi_rdid,
12843 .probe_timing = TIMING_ZERO,
12844 .block_erasers =
12845 {
12846 {
12847 .eraseblocks = { {4 * 1024, 512} },
12848 .block_erase = spi_block_erase_20,
12849 }, {
12850 .eraseblocks = { {32 * 1024, 64} },
12851 .block_erase = spi_block_erase_52,
12852 }, {
12853 .eraseblocks = { {64 * 1024, 32} },
12854 .block_erase = spi_block_erase_d8,
12855 }, {
12856 .eraseblocks = { {2 * 1024 * 1024, 1} },
12857 .block_erase = spi_block_erase_60,
12858 }, {
12859 .eraseblocks = { {2 * 1024 * 1024, 1} },
12860 .block_erase = spi_block_erase_c7,
12861 },
12862 },
12863 .printlock = spi_prettyprint_status_register_sst25vf016,
12864 .unlock = spi_disable_blockprotect,
12865 .write = spi_aai_write,
12866 .read = spi_chip_read,
12867 .voltage = {2700, 3600},
12868 },
12869
12870 {
12871 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +000012872 .name = "SST25VF020",
12873 .bustype = BUS_SPI,
12874 .manufacture_id = SST_ID,
12875 .model_id = SST_SST25VF020_REMS,
12876 .total_size = 256,
12877 .page_size = 256,
12878 .feature_bits = FEATURE_WRSR_EWSR,
12879 .tested = TEST_UNTESTED,
12880 .probe = probe_spi_rems,
12881 .probe_timing = TIMING_ZERO,
12882 .block_erasers =
12883 {
12884 {
12885 .eraseblocks = { {4 * 1024, 64} },
12886 .block_erase = spi_block_erase_20,
12887 }, {
12888 .eraseblocks = { {32 * 1024, 8} },
12889 .block_erase = spi_block_erase_52,
12890 }, {
12891 .eraseblocks = { {256 * 1024, 1} },
12892 .block_erase = spi_block_erase_60,
12893 },
12894 },
12895 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
12896 .unlock = spi_disable_blockprotect,
12897 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
12898 .read = spi_chip_read, /* only */
12899 .voltage = {2700, 3600},
12900 },
12901
12902 {
12903 .vendor = "SST",
12904 .name = "SST25VF020B",
12905 .bustype = BUS_SPI,
12906 .manufacture_id = SST_ID,
12907 .model_id = SST_SST25VF020B,
12908 .total_size = 256,
12909 .page_size = 256,
12910 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000012911 .tested = TEST_OK_PREW,
Cory Henderson370f5822013-10-19 23:09:16 +000012912 .probe = probe_spi_rdid,
12913 .probe_timing = TIMING_ZERO,
12914 .block_erasers =
12915 {
12916 {
12917 .eraseblocks = { {4 * 1024, 64} },
12918 .block_erase = spi_block_erase_20,
12919 }, {
12920 .eraseblocks = { {32 * 1024, 8} },
12921 .block_erase = spi_block_erase_52,
12922 }, {
12923 .eraseblocks = { {64 * 1024, 4} },
12924 .block_erase = spi_block_erase_d8,
12925 }, {
12926 .eraseblocks = { {256 * 1024, 1} },
12927 .block_erase = spi_block_erase_60,
12928 }, {
12929 .eraseblocks = { {256 * 1024, 1} },
12930 .block_erase = spi_block_erase_c7,
12931 },
12932 },
12933 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 and 2nd SR */
12934 .unlock = spi_disable_blockprotect, /* FIXME: 2nd SR */
12935 .write = spi_aai_write, /* AAI supported (0xAD) */
12936 .read = spi_chip_read, /* Fast read (0x0B) supported */
12937 .voltage = {2700, 3600},
12938 },
12939
12940 {
12941 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012942 .name = "SST25VF032B",
12943 .bustype = BUS_SPI,
12944 .manufacture_id = SST_ID,
12945 .model_id = SST_SST25VF032B,
12946 .total_size = 4096,
12947 .page_size = 256,
12948 .feature_bits = FEATURE_WRSR_EWSR,
12949 .tested = TEST_OK_PREW,
12950 .probe = probe_spi_rdid,
12951 .probe_timing = TIMING_ZERO,
12952 .block_erasers =
12953 {
12954 {
12955 .eraseblocks = { {4 * 1024, 1024} },
12956 .block_erase = spi_block_erase_20,
12957 }, {
12958 .eraseblocks = { {32 * 1024, 128} },
12959 .block_erase = spi_block_erase_52,
12960 }, {
12961 .eraseblocks = { {64 * 1024, 64} },
12962 .block_erase = spi_block_erase_d8,
12963 }, {
12964 .eraseblocks = { {4 * 1024 * 1024, 1} },
12965 .block_erase = spi_block_erase_60,
12966 }, {
12967 .eraseblocks = { {4 * 1024 * 1024, 1} },
12968 .block_erase = spi_block_erase_c7,
12969 },
12970 },
12971 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
12972 .unlock = spi_disable_blockprotect,
12973 .write = spi_aai_write,
12974 .read = spi_chip_read,
12975 .voltage = {2700, 3600},
12976 },
12977
12978 {
12979 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +000012980 .name = "SST25VF040",
12981 .bustype = BUS_SPI,
12982 .manufacture_id = SST_ID,
12983 .model_id = SST_SST25VF040_REMS,
12984 .total_size = 512,
12985 .page_size = 256,
12986 .feature_bits = FEATURE_WRSR_EWSR,
12987 .tested = TEST_OK_PR,
12988 .probe = probe_spi_rems,
12989 .probe_timing = TIMING_ZERO,
12990 .block_erasers =
12991 {
12992 {
12993 .eraseblocks = { {4 * 1024, 128} },
12994 .block_erase = spi_block_erase_20,
12995 }, {
12996 .eraseblocks = { {32 * 1024, 16} },
12997 .block_erase = spi_block_erase_52,
12998 }, {
12999 .eraseblocks = { {512 * 1024, 1} },
13000 .block_erase = spi_block_erase_60,
Mark Marshall90021f22010-12-03 14:48:11 +000013001 },
13002 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013003 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Mark Marshall90021f22010-12-03 14:48:11 +000013004 .unlock = spi_disable_blockprotect,
Cory Henderson370f5822013-10-19 23:09:16 +000013005 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13006 .read = spi_chip_read,
13007 .voltage = {2700, 3600},
13008 },
13009
13010 {
13011 .vendor = "SST",
13012 .name = "SST25VF040B",
13013 .bustype = BUS_SPI,
13014 .manufacture_id = SST_ID,
13015 .model_id = SST_SST25VF040B,
13016 .total_size = 512,
13017 .page_size = 256,
13018 .feature_bits = FEATURE_WRSR_EWSR,
13019 .tested = TEST_OK_PREW,
13020 .probe = probe_spi_rdid,
13021 .probe_timing = TIMING_ZERO,
13022 .block_erasers =
13023 {
13024 {
13025 .eraseblocks = { {4 * 1024, 128} },
13026 .block_erase = spi_block_erase_20,
13027 }, {
13028 .eraseblocks = { {32 * 1024, 16} },
13029 .block_erase = spi_block_erase_52,
13030 }, {
13031 .eraseblocks = { {64 * 1024, 8} },
13032 .block_erase = spi_block_erase_d8,
13033 }, {
13034 .eraseblocks = { {512 * 1024, 1} },
13035 .block_erase = spi_block_erase_60,
13036 }, {
13037 .eraseblocks = { {512 * 1024, 1} },
13038 .block_erase = spi_block_erase_c7,
13039 },
13040 },
13041 .printlock = spi_prettyprint_status_register_sst25vf040b,
13042 .unlock = spi_disable_blockprotect,
13043 .write = spi_aai_write, /* AAI supported (0xAD) */
13044 .read = spi_chip_read, /* Fast read (0x0B) supported */
13045 .voltage = {2700, 3600},
13046 },
13047
13048 {
13049 .vendor = "SST",
13050 .name = "SST25VF040B.REMS",
13051 .bustype = BUS_SPI,
13052 .manufacture_id = SST_ID,
13053 .model_id = SST_SST25VF040B_REMS,
13054 .total_size = 512,
13055 .page_size = 256,
13056 .feature_bits = FEATURE_WRSR_EWSR,
13057 .tested = TEST_OK_PREW,
13058 .probe = probe_spi_rems,
13059 .probe_timing = TIMING_ZERO,
13060 .block_erasers =
13061 {
13062 {
13063 .eraseblocks = { {4 * 1024, 128} },
13064 .block_erase = spi_block_erase_20,
13065 }, {
13066 .eraseblocks = { {32 * 1024, 16} },
13067 .block_erase = spi_block_erase_52,
13068 }, {
13069 .eraseblocks = { {64 * 1024, 8} },
13070 .block_erase = spi_block_erase_d8,
13071 }, {
13072 .eraseblocks = { {512 * 1024, 1} },
13073 .block_erase = spi_block_erase_60,
13074 }, {
13075 .eraseblocks = { {512 * 1024, 1} },
13076 .block_erase = spi_block_erase_c7,
13077 },
13078 },
13079 .printlock = spi_prettyprint_status_register_sst25vf040b,
13080 .unlock = spi_disable_blockprotect,
13081 .write = spi_aai_write,
13082 .read = spi_chip_read,
13083 .voltage = {2700, 3600},
13084 },
13085
13086 {
13087 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013088 .name = "SST25VF064C",
Ben Gardnerbcf61092015-11-22 02:23:31 +000013089 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013090 .manufacture_id = SST_ID,
13091 .model_id = SST_SST25VF064C,
13092 .total_size = 8192,
Ben Gardnerbcf61092015-11-22 02:23:31 +000013093 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013094 .feature_bits = FEATURE_WRSR_EWSR,
Ben Gardnerbcf61092015-11-22 02:23:31 +000013095 .tested = TEST_OK_PREW,
13096 .probe = probe_spi_rdid,
13097 .probe_timing = TIMING_ZERO,
13098 .block_erasers =
13099 {
13100 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013101 .eraseblocks = { {4 * 1024, 2048} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000013102 .block_erase = spi_block_erase_20,
13103 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013104 .eraseblocks = { {32 * 1024, 256} },
13105 .block_erase = spi_block_erase_52,
13106 }, {
13107 .eraseblocks = { {64 * 1024, 128} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000013108 .block_erase = spi_block_erase_d8,
13109 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013110 .eraseblocks = { {8 * 1024 * 1024, 1} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000013111 .block_erase = spi_block_erase_60,
13112 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013113 .eraseblocks = { {8 * 1024 * 1024, 1} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000013114 .block_erase = spi_block_erase_c7,
13115 },
13116 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100013117 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
13118 .unlock = spi_disable_blockprotect,
Ben Gardnerbcf61092015-11-22 02:23:31 +000013119 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013120 .read = spi_chip_read,
13121 .voltage = {2700, 3600},
Ben Gardnerbcf61092015-11-22 02:23:31 +000013122 },
13123
13124 {
13125 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +000013126 .name = "SST25VF080B",
13127 .bustype = BUS_SPI,
13128 .manufacture_id = SST_ID,
13129 .model_id = SST_SST25VF080B,
13130 .total_size = 1024,
13131 .page_size = 256,
13132 .feature_bits = FEATURE_WRSR_EWSR,
13133 .tested = TEST_OK_PREW,
13134 .probe = probe_spi_rdid,
13135 .probe_timing = TIMING_ZERO,
13136 .block_erasers =
13137 {
13138 {
13139 .eraseblocks = { {4 * 1024, 256} },
13140 .block_erase = spi_block_erase_20,
13141 }, {
13142 .eraseblocks = { {32 * 1024, 32} },
13143 .block_erase = spi_block_erase_52,
13144 }, {
13145 .eraseblocks = { {64 * 1024, 16} },
13146 .block_erase = spi_block_erase_d8,
13147 }, {
13148 .eraseblocks = { {1024 * 1024, 1} },
13149 .block_erase = spi_block_erase_60,
13150 }, {
13151 .eraseblocks = { {1024 * 1024, 1} },
13152 .block_erase = spi_block_erase_c7,
13153 },
13154 },
13155 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
13156 .unlock = spi_disable_blockprotect,
13157 .write = spi_aai_write,
Mark Marshall90021f22010-12-03 14:48:11 +000013158 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000013159 .voltage = {2700, 3600},
Mark Marshall90021f22010-12-03 14:48:11 +000013160 },
13161
13162 {
13163 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013164 .name = "SST25VF512(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013165 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013166 .manufacture_id = SST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013167 .model_id = SST_SST25VF512_REMS,
13168 .total_size = 64,
13169 .page_size = 256,
13170 .feature_bits = FEATURE_WRSR_EWSR,
13171 .tested = TEST_OK_PREW,
13172 .probe = probe_spi_rems,
13173 .probe_timing = TIMING_ZERO,
13174 .block_erasers =
13175 {
13176 {
13177 .eraseblocks = { {4 * 1024, 16} },
13178 .block_erase = spi_block_erase_20,
13179 }, {
13180 .eraseblocks = { {32 * 1024, 2} },
13181 .block_erase = spi_block_erase_52,
13182 }, {
13183 .eraseblocks = { {32 * 1024, 2} },
13184 .block_erase = spi_block_erase_d8, /* Supported by SST25VF512A only */
13185 }, {
13186 .eraseblocks = { {64 * 1024, 1} },
13187 .block_erase = spi_block_erase_60,
13188 }, {
13189 .eraseblocks = { {64 * 1024, 1} },
13190 .block_erase = spi_block_erase_c7, /* Supported by SST25VF512A only */
13191 },
13192 },
13193 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
13194 .unlock = spi_disable_blockprotect,
13195 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13196 .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF512A only */
13197 .voltage = {2700, 3600},
13198 },
13199
13200 {
13201 .vendor = "SST",
13202 .name = "SST25WF010",
13203 .bustype = BUS_SPI,
13204 .manufacture_id = SST_ID,
13205 .model_id = SST_SST25WF010,
13206 .total_size = 128,
13207 .page_size = 256,
13208 .feature_bits = FEATURE_WRSR_EITHER,
13209 .tested = TEST_UNTESTED,
13210 .probe = probe_spi_rdid,
13211 .probe_timing = TIMING_ZERO,
13212 .block_erasers =
13213 {
13214 {
13215 .eraseblocks = { {4 * 1024, 32} },
13216 .block_erase = spi_block_erase_20,
13217 }, {
13218 .eraseblocks = { {32 * 1024, 4} },
13219 .block_erase = spi_block_erase_52,
13220 }, {
13221 .eraseblocks = { {1024 * 128, 1} },
13222 .block_erase = spi_block_erase_60,
13223 }, {
13224 .eraseblocks = { {1024 * 128, 1} },
13225 .block_erase = spi_block_erase_c7,
13226 },
13227 },
13228 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
13229 .unlock = spi_disable_blockprotect_bp2_srwd,
13230 .write = spi_aai_write,
13231 .read = spi_chip_read, /* Fast read (0x0B) supported */
13232 .voltage = {1650, 1950},
13233 },
13234
13235 {
13236 .vendor = "SST",
13237 .name = "SST25WF020",
13238 .bustype = BUS_SPI,
13239 .manufacture_id = SST_ID,
13240 .model_id = SST_SST25WF020,
13241 .total_size = 256,
13242 .page_size = 256,
13243 .feature_bits = FEATURE_WRSR_EITHER,
13244 .tested = TEST_UNTESTED,
13245 .probe = probe_spi_rdid,
13246 .probe_timing = TIMING_ZERO,
13247 .block_erasers =
13248 {
13249 {
13250 .eraseblocks = { {4 * 1024, 64} },
13251 .block_erase = spi_block_erase_20,
13252 }, {
13253 .eraseblocks = { {32 * 1024, 8} },
13254 .block_erase = spi_block_erase_52,
13255 }, {
13256 .eraseblocks = { {64 * 1024, 4} },
13257 .block_erase = spi_block_erase_d8,
13258 }, {
13259 .eraseblocks = { {1024 * 256, 1} },
13260 .block_erase = spi_block_erase_60,
13261 }, {
13262 .eraseblocks = { {1024 * 256, 1} },
13263 .block_erase = spi_block_erase_c7,
13264 },
13265 },
13266 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
13267 .unlock = spi_disable_blockprotect_bp2_srwd,
13268 .write = spi_aai_write,
13269 .read = spi_chip_read, /* Fast read (0x0B) supported */
13270 .voltage = {1650, 1950},
13271 },
13272
13273 {
13274 .vendor = "SST",
13275 .name = "SST25WF020A",
13276 .bustype = BUS_SPI,
13277 .manufacture_id = SANYO_ID, /* See flashchips.h */
13278 .model_id = SST_SST25WF020A,
13279 .total_size = 256,
13280 .page_size = 256,
13281 .feature_bits = FEATURE_WRSR_WREN,
13282 .tested = TEST_UNTESTED,
13283 .probe = probe_spi_rdid,
13284 .probe_timing = TIMING_ZERO,
13285 .block_erasers =
13286 {
13287 {
13288 .eraseblocks = { {4 * 1024, 64} },
13289 .block_erase = spi_block_erase_20,
13290 }, {
13291 .eraseblocks = { {64 * 1024, 4} },
13292 .block_erase = spi_block_erase_d8,
13293 }, {
13294 .eraseblocks = { {256 * 1024, 1} },
13295 .block_erase = spi_block_erase_60,
13296 }, {
13297 .eraseblocks = { {256 * 1024, 1} },
13298 .block_erase = spi_block_erase_c7,
13299 },
13300 },
13301 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
13302 .unlock = spi_disable_blockprotect_bp2_srwd,
13303 .write = spi_chip_write_256,
13304 .read = spi_chip_read, /* Fast read (0x0B) supported */
13305 .voltage = {1650, 1950},
13306 },
13307
13308 {
13309 .vendor = "SST",
13310 .name = "SST25WF040",
13311 .bustype = BUS_SPI,
13312 .manufacture_id = SST_ID,
13313 .model_id = SST_SST25WF040,
13314 .total_size = 512,
13315 .page_size = 256,
13316 .feature_bits = FEATURE_WRSR_EITHER,
13317 .tested = TEST_UNTESTED,
13318 .probe = probe_spi_rdid,
13319 .probe_timing = TIMING_ZERO,
13320 .block_erasers =
13321 {
13322 {
13323 .eraseblocks = { {4 * 1024, 128} },
13324 .block_erase = spi_block_erase_20,
13325 }, {
13326 .eraseblocks = { {32 * 1024, 16} },
13327 .block_erase = spi_block_erase_52,
13328 }, {
13329 .eraseblocks = { {64 * 1024, 8} },
13330 .block_erase = spi_block_erase_d8,
13331 }, {
13332 .eraseblocks = { {1024 * 512, 1} },
13333 .block_erase = spi_block_erase_60,
13334 }, {
13335 .eraseblocks = { {1024 * 512, 1} },
13336 .block_erase = spi_block_erase_c7,
13337 },
13338 },
13339 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
13340 .unlock = spi_disable_blockprotect_bp2_srwd,
13341 .write = spi_aai_write,
13342 .read = spi_chip_read, /* Fast read (0x0B) supported */
13343 .voltage = {1650, 1950},
13344 },
13345
13346 {
13347 .vendor = "SST",
13348 .name = "SST25WF040B",
13349 .bustype = BUS_SPI,
13350 .manufacture_id = SANYO_ID, /* See flashchips.h */
13351 .model_id = SST_SST25WF040B,
13352 .total_size = 512,
13353 .page_size = 256,
13354 .feature_bits = FEATURE_WRSR_WREN,
13355 .tested = TEST_UNTESTED,
13356 .probe = probe_spi_rdid,
13357 .probe_timing = TIMING_ZERO,
13358 .block_erasers =
13359 {
13360 {
13361 .eraseblocks = { {4 * 1024, 128} },
13362 .block_erase = spi_block_erase_20,
13363 }, {
13364 .eraseblocks = { {64 * 1024, 8} },
13365 .block_erase = spi_block_erase_d8,
13366 }, {
13367 .eraseblocks = { {512 * 1024, 1} },
13368 .block_erase = spi_block_erase_60,
13369 }, {
13370 .eraseblocks = { {512 * 1024, 1} },
13371 .block_erase = spi_block_erase_c7,
13372 },
13373 },
13374 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
13375 .unlock = spi_disable_blockprotect_bp2_srwd,
13376 .write = spi_chip_write_256,
13377 .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */
13378 .voltage = {1650, 1950},
13379 },
13380
13381 {
13382 .vendor = "SST",
13383 .name = "SST25WF080",
13384 .bustype = BUS_SPI,
13385 .manufacture_id = SST_ID,
13386 .model_id = SST_SST25WF080,
13387 .total_size = 1024,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013388 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000013389 .feature_bits = FEATURE_WRSR_EITHER,
Mark Marshall90021f22010-12-03 14:48:11 +000013390 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013391 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013392 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013393 .block_erasers =
13394 {
13395 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013396 .eraseblocks = { {4 * 1024, 256} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013397 .block_erase = spi_block_erase_20,
13398 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013399 .eraseblocks = { {32 * 1024, 32} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013400 .block_erase = spi_block_erase_52,
13401 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013402 .eraseblocks = { {64 * 1024, 16} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013403 .block_erase = spi_block_erase_d8,
13404 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013405 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013406 .block_erase = spi_block_erase_60,
13407 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013408 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013409 .block_erase = spi_block_erase_c7,
13410 },
13411 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100013412 .printlock = spi_prettyprint_status_register_sst25, /* *does* have a BP3 but it is useless */
13413 .unlock = spi_disable_blockprotect_bp3_srwd,
Joshua Roys87955bf2011-08-01 18:39:28 +000013414 .write = spi_aai_write,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013415 .read = spi_chip_read, /* Fast read (0x0B) supported */
13416 .voltage = {1650, 1950},
FENG yu ningff692fb2008-12-08 18:15:10 +000013417 },
13418
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013419 {
13420 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013421 .name = "SST25WF080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013422 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013423 .manufacture_id = SANYO_ID, /* See flashchips.h */
13424 .model_id = SST_SST25WF080B,
13425 .total_size = 1024,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013426 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013427 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerfcf6a8c2011-05-18 01:32:00 +000013428 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013429 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013430 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013431 .block_erasers =
13432 {
13433 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013434 .eraseblocks = { {4 * 1024, 256} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013435 .block_erase = spi_block_erase_20,
13436 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013437 .eraseblocks = { {64 * 1024, 16} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013438 .block_erase = spi_block_erase_d8,
13439 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013440 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013441 .block_erase = spi_block_erase_60,
13442 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013443 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013444 .block_erase = spi_block_erase_c7,
13445 },
13446 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100013447 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
13448 .unlock = spi_disable_blockprotect_bp2_srwd,
Helge Wagner1db7a442010-10-05 22:29:08 +000013449 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013450 .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */
13451 .voltage = {1650, 1950},
13452 },
13453
13454 {
13455 .vendor = "SST",
13456 .name = "SST25WF512",
13457 .bustype = BUS_SPI,
13458 .manufacture_id = SST_ID,
13459 .model_id = SST_SST25WF512,
13460 .total_size = 64,
13461 .page_size = 256,
13462 .feature_bits = FEATURE_WRSR_EITHER,
13463 .tested = TEST_UNTESTED,
13464 .probe = probe_spi_rdid,
13465 .probe_timing = TIMING_ZERO,
13466 .block_erasers =
13467 {
13468 {
13469 .eraseblocks = { {4 * 1024, 16} },
13470 .block_erase = spi_block_erase_20,
13471 }, {
13472 .eraseblocks = { {32 * 1024, 2} },
13473 .block_erase = spi_block_erase_52,
13474 }, {
13475 .eraseblocks = { {1024 * 64, 1} },
13476 .block_erase = spi_block_erase_60,
13477 }, {
13478 .eraseblocks = { {1024 * 64, 1} },
13479 .block_erase = spi_block_erase_c7,
13480 },
13481 },
13482 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
13483 .unlock = spi_disable_blockprotect_bp2_srwd,
13484 .write = spi_aai_write,
13485 .read = spi_chip_read, /* Fast read (0x0B) supported */
13486 .voltage = {1650, 1950},
Ed Swierk86f4e6d2010-07-21 15:02:22 +000013487 },
13488
13489 {
13490 .vendor = "SST",
Wei Hu25584de2018-04-30 14:02:08 -070013491 .name = "SST26VF016B(A)",
13492 .bustype = BUS_SPI,
13493 .manufacture_id = SST_ID,
13494 .model_id = SST_SST26VF016B,
13495 .total_size = 2048,
13496 .page_size = 256,
13497 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
13498 .tested = TEST_OK_PREW,
13499 .probe = probe_spi_rdid,
13500 .probe_timing = TIMING_ZERO,
13501 .block_erasers =
13502 {
13503 {
13504 .eraseblocks = { {4 * 1024, 512} },
13505 .block_erase = spi_block_erase_20,
13506 }, {
13507 .eraseblocks = {
13508 {8 * 1024, 4},
13509 {32 * 1024, 1},
13510 {64 * 1024, 30},
13511 {32 * 1024, 1},
13512 {8 * 1024, 4},
13513 },
13514 .block_erase = spi_block_erase_d8,
13515 }, {
13516 .eraseblocks = { {2 * 1024 * 1024, 1} },
13517 .block_erase = spi_block_erase_c7,
13518 },
13519 },
13520 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
13521 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
13522 .write = spi_chip_write_256, /* Multi I/O supported */
13523 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
13524 .voltage = {2700, 3600},
13525 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100013526
Wei Hu25584de2018-04-30 14:02:08 -070013527 {
13528 .vendor = "SST",
13529 .name = "SST26VF032B(A)",
13530 .bustype = BUS_SPI,
13531 .manufacture_id = SST_ID,
13532 .model_id = SST_SST26VF032B,
13533 .total_size = 4096,
13534 .page_size = 256,
13535 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
13536 .tested = TEST_UNTESTED,
13537 .probe = probe_spi_rdid,
13538 .probe_timing = TIMING_ZERO,
13539 .block_erasers =
13540 {
13541 {
13542 .eraseblocks = { {4 * 1024, 1024} },
13543 .block_erase = spi_block_erase_20,
13544 }, {
13545 .eraseblocks = {
13546 {8 * 1024, 4},
13547 {32 * 1024, 1},
13548 {64 * 1024, 62},
13549 {32 * 1024, 1},
13550 {8 * 1024, 4},
13551 },
13552 .block_erase = spi_block_erase_d8,
13553 }, {
13554 .eraseblocks = { {4 * 1024 * 1024, 1} },
13555 .block_erase = spi_block_erase_c7,
13556 },
13557 },
13558 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
13559 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
13560 .write = spi_chip_write_256, /* Multi I/O supported */
13561 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
13562 .voltage = {2700, 3600},
13563 },
13564
Wei Hu25584de2018-04-30 14:02:08 -070013565 {
13566 .vendor = "SST",
13567 .name = "SST26VF064B(A)",
13568 .bustype = BUS_SPI,
13569 .manufacture_id = SST_ID,
13570 .model_id = SST_SST26VF064B,
13571 .total_size = 8192,
13572 .page_size = 256,
13573 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
13574 .tested = TEST_OK_PREW,
13575 .probe = probe_spi_rdid,
13576 .probe_timing = TIMING_ZERO,
13577 .block_erasers =
13578 {
13579 {
13580 .eraseblocks = { {4 * 1024, 2048} },
13581 .block_erase = spi_block_erase_20,
13582 }, {
13583 .eraseblocks = {
13584 {8 * 1024, 4},
13585 {32 * 1024, 1},
13586 {64 * 1024, 126},
13587 {32 * 1024, 1},
13588 {8 * 1024, 4},
13589 },
13590 .block_erase = spi_block_erase_d8,
13591 }, {
13592 .eraseblocks = { {8 * 1024 * 1024, 1} },
13593 .block_erase = spi_block_erase_c7,
13594 },
13595 },
13596 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
13597 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
13598 .write = spi_chip_write_256, /* Multi I/O supported */
13599 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
13600 .voltage = {2700, 3600},
13601 },
13602
13603 {
13604 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013605 .name = "SST28SF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013606 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013607 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013608 .model_id = SST_SST28SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013609 .total_size = 512,
13610 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000013611 .feature_bits = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013612 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013613 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000013614 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013615 .block_erasers =
13616 {
13617 {
13618 .eraseblocks = { {128, 4096} },
13619 .block_erase = erase_sector_28sf040,
13620 }, {
13621 .eraseblocks = { {512 * 1024, 1} },
13622 .block_erase = erase_chip_28sf040,
13623 }
13624 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000013625 .unlock = unprotect_28sf040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013626 .write = write_28sf040,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013627 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013628 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013629 },
13630
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013631 {
13632 .vendor = "SST",
13633 .name = "SST29EE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013634 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013635 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013636 .model_id = SST_SST29EE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013637 .total_size = 128,
13638 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000013639 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000013640 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013641 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000013642 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013643 .block_erasers =
13644 {
13645 {
13646 .eraseblocks = { {128 * 1024, 1} },
13647 .block_erase = erase_chip_block_jedec,
13648 }
13649 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013650 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013651 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013652 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013653 },
13654
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013655 {
13656 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013657 .name = "SST29EE020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013658 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013659 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013660 .model_id = SST_SST29EE020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013661 .total_size = 256,
13662 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000013663 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000013664 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013665 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013666 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013667 .block_erasers =
13668 {
13669 {
13670 .eraseblocks = { {256 * 1024, 1} },
13671 .block_erase = erase_chip_block_jedec,
13672 }
13673 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013674 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013675 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013676 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013677 },
13678
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013679 {
13680 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013681 .name = "SST29LE010",
13682 .bustype = BUS_PARALLEL,
13683 .manufacture_id = SST_ID,
13684 .model_id = SST_SST29LE010,
13685 .total_size = 128,
13686 .page_size = 128,
13687 .feature_bits = FEATURE_LONG_RESET,
13688 .tested = TEST_UNTESTED,
13689 .probe = probe_jedec,
13690 .probe_timing = 10,
13691 .block_erasers =
13692 {
13693 {
13694 .eraseblocks = { {128 * 1024, 1} },
13695 .block_erase = erase_chip_block_jedec,
13696 }
13697 },
13698 .write = write_jedec,
13699 .read = read_memmapped,
13700 .voltage = {3000, 3600},
13701 },
13702
13703 {
13704 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013705 .name = "SST29LE020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013706 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013707 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013708 .model_id = SST_SST29LE020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013709 .total_size = 256,
13710 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000013711 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000013712 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013713 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000013714 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013715 .block_erasers =
13716 {
13717 {
13718 .eraseblocks = { {256 * 1024, 1} },
13719 .block_erase = erase_chip_block_jedec,
13720 }
13721 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013722 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013723 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013724 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013725 },
13726
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013727 {
13728 .vendor = "SST",
13729 .name = "SST39SF010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013730 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013731 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013732 .model_id = SST_SST39SF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013733 .total_size = 128,
13734 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013735 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000013736 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013737 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000013738 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013739 .block_erasers =
13740 {
13741 {
13742 .eraseblocks = { {4 * 1024, 32} },
13743 .block_erase = erase_sector_jedec,
13744 }, {
13745 .eraseblocks = { {128 * 1024, 1} },
13746 .block_erase = erase_chip_block_jedec,
13747 }
13748 },
Sean Nelson35727f72010-01-28 23:55:12 +000013749 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013750 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013751 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013752 },
13753
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013754 {
13755 .vendor = "SST",
13756 .name = "SST39SF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013757 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013758 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013759 .model_id = SST_SST39SF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013760 .total_size = 256,
13761 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013762 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann19f46f22011-06-18 22:56:14 +000013763 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013764 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013765 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013766 .block_erasers =
13767 {
13768 {
13769 .eraseblocks = { {4 * 1024, 64} },
13770 .block_erase = erase_sector_jedec,
13771 }, {
13772 .eraseblocks = { {256 * 1024, 1} },
13773 .block_erase = erase_chip_block_jedec,
13774 }
13775 },
Sean Nelson35727f72010-01-28 23:55:12 +000013776 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013777 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013778 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013779 },
13780
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013781 {
13782 .vendor = "SST",
13783 .name = "SST39SF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013784 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013785 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013786 .model_id = SST_SST39SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013787 .total_size = 512,
13788 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013789 .feature_bits = FEATURE_EITHER_RESET,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +000013790 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013791 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013792 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013793 .block_erasers =
13794 {
13795 {
13796 .eraseblocks = { {4 * 1024, 128} },
13797 .block_erase = erase_sector_jedec,
13798 }, {
13799 .eraseblocks = { {512 * 1024, 1} },
13800 .block_erase = erase_chip_block_jedec,
13801 }
13802 },
Sean Nelson35727f72010-01-28 23:55:12 +000013803 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013804 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013805 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013806 },
13807
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013808 {
13809 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013810 .name = "SST39SF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013811 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013812 .manufacture_id = SST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013813 .model_id = SST_SST39SF512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013814 .total_size = 64,
13815 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013816 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd7d423b2012-10-20 09:13:16 +000013817 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013818 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013819 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013820 .block_erasers =
13821 {
13822 {
13823 .eraseblocks = { {4 * 1024, 16} },
13824 .block_erase = erase_sector_jedec,
13825 }, {
13826 .eraseblocks = { {64 * 1024, 1} },
13827 .block_erase = erase_chip_block_jedec,
13828 }
13829 },
Sean Nelson35727f72010-01-28 23:55:12 +000013830 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013831 .read = read_memmapped,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013832 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013833 },
13834
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013835 {
13836 .vendor = "SST",
13837 .name = "SST39VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013838 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013839 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013840 .model_id = SST_SST39VF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013841 .total_size = 128,
13842 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013843 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd94d25d2012-07-28 03:17:15 +000013844 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013845 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013846 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013847 .block_erasers =
13848 {
13849 {
13850 .eraseblocks = { {4 * 1024, 32} },
13851 .block_erase = erase_sector_jedec,
13852 }, {
13853 .eraseblocks = { {128 * 1024, 1} },
13854 .block_erase = erase_chip_block_jedec,
13855 }
13856 },
Sean Nelson35727f72010-01-28 23:55:12 +000013857 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013858 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013859 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013860 },
13861
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013862 {
13863 .vendor = "SST",
13864 .name = "SST39VF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013865 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013866 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013867 .model_id = SST_SST39VF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013868 .total_size = 256,
13869 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013870 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner5c316f92015-02-08 21:57:52 +000013871 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013872 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013873 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013874 .block_erasers =
13875 {
13876 {
13877 .eraseblocks = { {4 * 1024, 64} },
13878 .block_erase = erase_sector_jedec,
13879 }, {
13880 .eraseblocks = { {256 * 1024, 1} },
13881 .block_erase = erase_chip_block_jedec,
13882 }
13883 },
Sean Nelson35727f72010-01-28 23:55:12 +000013884 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013885 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013886 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013887 },
13888
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013889 {
13890 .vendor = "SST",
13891 .name = "SST39VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013892 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013893 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013894 .model_id = SST_SST39VF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013895 .total_size = 512,
13896 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013897 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner23e10b82016-01-23 16:16:49 +000013898 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013899 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013900 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013901 .block_erasers =
13902 {
13903 {
13904 .eraseblocks = { {4 * 1024, 128} },
13905 .block_erase = erase_sector_jedec,
13906 }, {
13907 .eraseblocks = { {512 * 1024, 1} },
13908 .block_erase = erase_chip_block_jedec,
13909 }
13910 },
Sean Nelson35727f72010-01-28 23:55:12 +000013911 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013912 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013913 .voltage = {2700, 3600},
Carl-Daniel Hailfinger90eff152008-12-08 23:51:45 +000013914 },
FENG yu ningff692fb2008-12-08 18:15:10 +000013915
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013916 {
13917 .vendor = "SST",
Peter Stuge8440cc02009-01-25 23:55:12 +000013918 .name = "SST39VF080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013919 .bustype = BUS_PARALLEL,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000013920 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013921 .model_id = SST_SST39VF080,
Peter Stuge8440cc02009-01-25 23:55:12 +000013922 .total_size = 1024,
13923 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013924 .feature_bits = FEATURE_EITHER_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +000013925 .tested = TEST_UNTESTED,
13926 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013927 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013928 .block_erasers =
13929 {
13930 {
13931 .eraseblocks = { {4 * 1024, 256} },
13932 .block_erase = erase_sector_jedec,
13933 }, {
13934 .eraseblocks = { {64 * 1024, 16} },
13935 .block_erase = erase_block_jedec,
13936 }, {
13937 .eraseblocks = { {1024 * 1024, 1} },
13938 .block_erase = erase_chip_block_jedec,
13939 }
13940 },
Sean Nelson35727f72010-01-28 23:55:12 +000013941 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013942 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013943 .voltage = {2700, 3600},
Peter Stuge8440cc02009-01-25 23:55:12 +000013944 },
13945
13946 {
13947 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013948 .name = "SST39VF512",
13949 .bustype = BUS_PARALLEL,
13950 .manufacture_id = SST_ID,
13951 .model_id = SST_SST39VF512,
13952 .total_size = 64,
13953 .page_size = 4096,
13954 .feature_bits = FEATURE_EITHER_RESET,
13955 .tested = TEST_OK_PREW,
13956 .probe = probe_jedec,
13957 .probe_timing = 1, /* 150 ns */
13958 .block_erasers =
13959 {
13960 {
13961 .eraseblocks = { {4 * 1024, 16} },
13962 .block_erase = erase_sector_jedec,
13963 }, {
13964 .eraseblocks = { {64 * 1024, 1} },
13965 .block_erase = erase_chip_block_jedec,
13966 }
13967 },
13968 .write = write_jedec_1,
13969 .read = read_memmapped,
13970 .voltage = {2700, 3600},
13971 },
13972
13973 {
13974 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013975 .name = "SST49LF002A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013976 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013977 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013978 .model_id = SST_SST49LF002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013979 .total_size = 256,
13980 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013981 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000013982 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013983 .probe = probe_jedec,
13984 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013985 .block_erasers =
13986 {
13987 {
13988 .eraseblocks = { {4 * 1024, 64} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013989 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013990 }, {
13991 .eraseblocks = { {16 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013992 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013993 }, {
13994 .eraseblocks = { {256 * 1024, 1} },
13995 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
13996 }
13997 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013998 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013999 .unlock = unlock_sst_fwhub,
14000 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014001 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014002 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014003 },
14004
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014005 {
14006 .vendor = "SST",
14007 .name = "SST49LF003A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014008 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014009 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014010 .model_id = SST_SST49LF003A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014011 .total_size = 384,
14012 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014013 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000014014 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014015 .probe = probe_jedec,
14016 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014017 .block_erasers =
14018 {
14019 {
14020 .eraseblocks = { {4 * 1024, 96} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014021 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014022 }, {
14023 .eraseblocks = { {64 * 1024, 6} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014024 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014025 }, {
14026 .eraseblocks = { {384 * 1024, 1} },
14027 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
14028 }
14029 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014030 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014031 .unlock = unlock_sst_fwhub,
14032 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014033 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014034 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014035 },
14036
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014037 {
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000014038 /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB)
14039 * and is only honored for 64k block erase, but not 4k sector erase.
14040 */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014041 .vendor = "SST",
14042 .name = "SST49LF004A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014043 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014044 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014045 .model_id = SST_SST49LF004A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014046 .total_size = 512,
14047 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014048 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000014049 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014050 .probe = probe_jedec,
14051 .probe_timing = 1, /* 150 ns */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000014052 .block_erasers =
14053 {
14054 {
14055 .eraseblocks = { {4 * 1024, 128} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014056 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000014057 }, {
14058 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014059 .block_erase = erase_block_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000014060 }, {
14061 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson51c83fb2010-01-20 20:55:53 +000014062 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000014063 },
14064 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014065 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014066 .unlock = unlock_sst_fwhub,
14067 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014068 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014069 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014070 },
14071
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014072 {
14073 .vendor = "SST",
14074 .name = "SST49LF004C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014075 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014076 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014077 .model_id = SST_SST49LF004C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014078 .total_size = 512,
14079 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014080 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014081 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014082 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014083 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014084 .block_erasers =
14085 {
14086 {
14087 .eraseblocks = { {4 * 1024, 128} },
14088 .block_erase = erase_sector_49lfxxxc,
14089 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000014090 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000014091 {64 * 1024, 7},
14092 {32 * 1024, 1},
14093 {8 * 1024, 2},
14094 {16 * 1024, 1},
14095 },
Sean Nelson69e58112010-03-23 17:10:28 +000014096 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014097 }
14098 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014099 .printlock = printlock_regspace2_block_eraser_1,
14100 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014101 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014102 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014103 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014104 },
14105
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014106 {
14107 .vendor = "SST",
14108 .name = "SST49LF008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014109 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014110 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014111 .model_id = SST_SST49LF008A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014112 .total_size = 1024,
14113 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014114 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000014115 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014116 .probe = probe_jedec,
14117 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014118 .block_erasers =
14119 {
14120 {
14121 .eraseblocks = { {4 * 1024, 256} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014122 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014123 }, {
14124 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014125 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014126 }, {
14127 .eraseblocks = { {1024 * 1024, 1} },
14128 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
14129 }
14130 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014131 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014132 .unlock = unlock_sst_fwhub,
14133 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014134 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014135 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014136 },
14137
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014138 {
14139 .vendor = "SST",
14140 .name = "SST49LF008C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014141 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014142 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014143 .model_id = SST_SST49LF008C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014144 .total_size = 1024,
14145 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014146 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014147 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014148 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014149 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014150 .block_erasers =
14151 {
14152 {
14153 .eraseblocks = { {4 * 1024, 256} },
14154 .block_erase = erase_sector_49lfxxxc,
14155 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000014156 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000014157 {64 * 1024, 15},
14158 {32 * 1024, 1},
14159 {8 * 1024, 2},
14160 {16 * 1024, 1},
14161 },
Sean Nelson69e58112010-03-23 17:10:28 +000014162 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014163 }
14164 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014165 .printlock = printlock_regspace2_block_eraser_1,
14166 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014167 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014168 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014169 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014170 },
14171
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014172 {
14173 .vendor = "SST",
14174 .name = "SST49LF016C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014175 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014176 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014177 .model_id = SST_SST49LF016C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014178 .total_size = 2048,
14179 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014180 .feature_bits = FEATURE_REGISTERMAP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000014181 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014182 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014183 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014184 .block_erasers =
14185 {
14186 {
14187 .eraseblocks = { {4 * 1024, 512} },
14188 .block_erase = erase_sector_49lfxxxc,
14189 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000014190 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000014191 {64 * 1024, 31},
14192 {32 * 1024, 1},
14193 {8 * 1024, 2},
14194 {16 * 1024, 1},
14195 },
Sean Nelson69e58112010-03-23 17:10:28 +000014196 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014197 }
14198 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014199 .printlock = printlock_regspace2_block_eraser_1,
14200 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014201 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014202 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014203 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014204 },
14205
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014206 {
14207 .vendor = "SST",
14208 .name = "SST49LF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014209 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014210 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014211 .model_id = SST_SST49LF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014212 .total_size = 256,
14213 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014214 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +000014215 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014216 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014217 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014218 .block_erasers =
14219 {
14220 {
14221 .eraseblocks = { {4 * 1024, 64} },
14222 .block_erase = erase_sector_jedec,
14223 }, {
14224 .eraseblocks = { {16 * 1024, 16} },
14225 .block_erase = erase_block_jedec,
14226 }, {
14227 .eraseblocks = { {256 * 1024, 1} },
14228 .block_erase = NULL,
14229 }
14230 },
Sean Nelson35727f72010-01-28 23:55:12 +000014231 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014232 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014233 .voltage = {3000, 3600},
Sven Schnellec208dfb2009-01-07 12:35:09 +000014234 },
14235
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014236 {
14237 .vendor = "SST",
14238 .name = "SST49LF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014239 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014240 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014241 .model_id = SST_SST49LF020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014242 .total_size = 256,
Carl-Daniel Hailfingerda654322009-07-23 01:44:38 +000014243 .page_size = 4 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014244 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000014245 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014246 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014247 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014248 .block_erasers =
14249 {
14250 {
14251 .eraseblocks = { {4 * 1024, 64} },
14252 .block_erase = erase_sector_jedec,
14253 }, {
14254 .eraseblocks = { {16 * 1024, 16} },
14255 .block_erase = erase_block_jedec,
14256 }, {
14257 .eraseblocks = { {256 * 1024, 1} },
14258 .block_erase = NULL,
14259 }
14260 },
Sean Nelson35727f72010-01-28 23:55:12 +000014261 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014262 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014263 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014264 },
14265
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014266 {
14267 .vendor = "SST",
14268 .name = "SST49LF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014269 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014270 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014271 .model_id = SST_SST49LF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014272 .total_size = 512,
14273 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014274 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000014275 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014276 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014277 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014278 .block_erasers =
14279 {
14280 {
14281 .eraseblocks = { {4 * 1024, 128} },
14282 .block_erase = erase_sector_jedec,
14283 }, {
14284 .eraseblocks = { {64 * 1024, 8} },
14285 .block_erase = erase_block_jedec,
14286 }, {
14287 .eraseblocks = { {512 * 1024, 1} },
14288 .block_erase = NULL,
14289 }
14290 },
Sean Nelson35727f72010-01-28 23:55:12 +000014291 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014292 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014293 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014294 },
14295
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014296 {
14297 .vendor = "SST",
14298 .name = "SST49LF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014299 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014300 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014301 .model_id = SST_SST49LF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014302 .total_size = 512,
14303 .page_size = 64 * 1024,
Joshua Roysa84b0bd2010-08-16 22:12:39 +000014304 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000014305 .tested = TEST_OK_PREW,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014306 .probe = probe_jedec,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014307 .probe_timing = 1, /* 150ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014308 .block_erasers =
14309 {
14310 {
14311 .eraseblocks = { {4 * 1024, 128} },
14312 .block_erase = erase_sector_jedec,
14313 }, {
14314 .eraseblocks = { {64 * 1024, 8} },
14315 .block_erase = erase_block_jedec,
14316 }, {
14317 .eraseblocks = { {512 * 1024, 1} },
14318 .block_erase = NULL,
14319 }
14320 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014321 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000014322 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014323 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014324 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014325 },
14326
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014327 {
14328 .vendor = "SST",
14329 .name = "SST49LF080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014330 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014331 .manufacture_id = SST_ID,
Elyes HAOUAS124ef382018-03-27 12:15:09 +020014332 .model_id = SST_SST49LF080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014333 .total_size = 1024,
14334 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014335 .feature_bits = FEATURE_EITHER_RESET,
Brandon Dowdyf07bf322011-03-06 18:31:11 +000014336 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014337 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000014338 .probe_timing = TIMING_FIXME,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014339 .block_erasers =
14340 {
14341 {
14342 .eraseblocks = { {4 * 1024, 256} },
14343 .block_erase = erase_sector_jedec,
14344 }, {
14345 .eraseblocks = { {64 * 1024, 16} },
14346 .block_erase = erase_block_jedec,
14347 }, {
14348 .eraseblocks = { {1024 * 1024, 1} },
14349 .block_erase = NULL,
14350 }
14351 },
Sean Nelson35727f72010-01-28 23:55:12 +000014352 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014353 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014354 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014355 },
14356
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014357 {
14358 .vendor = "SST",
14359 .name = "SST49LF160C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014360 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014361 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014362 .model_id = SST_SST49LF160C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014363 .total_size = 2048,
14364 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014365 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014366 .tested = TEST_OK_PR,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014367 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014368 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014369 .block_erasers =
14370 {
14371 {
14372 .eraseblocks = { {4 * 1024, 512} },
14373 .block_erase = erase_sector_49lfxxxc,
14374 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000014375 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000014376 {64 * 1024, 31},
14377 {32 * 1024, 1},
14378 {8 * 1024, 2},
14379 {16 * 1024, 1},
14380 },
Sean Nelson69e58112010-03-23 17:10:28 +000014381 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014382 }
14383 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014384 .printlock = printlock_regspace2_block_eraser_1,
14385 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014386 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014387 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014388 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014389 },
14390
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014391 {
14392 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014393 .name = "M29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014394 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014395 .manufacture_id = ST_ID,
14396 .model_id = ST_M29F002B,
14397 .total_size = 256,
14398 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014399 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014400 .tested = TEST_UNTESTED,
14401 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014402 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014403 .block_erasers =
14404 {
14405 {
14406 .eraseblocks = {
14407 {16 * 1024, 1},
14408 {8 * 1024, 2},
14409 {32 * 1024, 1},
14410 {64 * 1024, 3},
14411 },
14412 .block_erase = erase_sector_jedec,
14413 }, {
14414 .eraseblocks = { {256 * 1024, 1} },
14415 .block_erase = erase_chip_block_jedec,
14416 }
14417 },
Sean Nelson35727f72010-01-28 23:55:12 +000014418 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014419 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000014420 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000014421 },
14422
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014423 {
14424 .vendor = "ST",
14425 .name = "M29F002T/NT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014426 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014427 .manufacture_id = ST_ID,
14428 .model_id = ST_M29F002T,
14429 .total_size = 256,
14430 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014431 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stefan Taunere34e3e82013-01-01 00:06:51 +000014432 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014433 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014434 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014435 .block_erasers =
14436 {
14437 {
14438 .eraseblocks = {
14439 {64 * 1024, 3},
14440 {32 * 1024, 1},
14441 {8 * 1024, 2},
14442 {16 * 1024, 1},
14443 },
14444 .block_erase = erase_sector_jedec,
14445 }, {
14446 .eraseblocks = { {256 * 1024, 1} },
14447 .block_erase = erase_chip_block_jedec,
14448 }
14449 },
Sean Nelson35727f72010-01-28 23:55:12 +000014450 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014451 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000014452 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000014453 },
14454
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014455 {
14456 .vendor = "ST",
14457 .name = "M29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014458 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014459 .manufacture_id = ST_ID,
14460 .model_id = ST_M29F040B,
14461 .total_size = 512,
14462 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014463 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
14464 .tested = TEST_UNTESTED,
14465 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +000014466 .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */
Sean Nelson56358aa2010-01-19 16:08:51 +000014467 .block_erasers =
14468 {
14469 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014470 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +000014471 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000014472 }, {
14473 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000014474 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000014475 }
14476 },
Sean Nelson35727f72010-01-28 23:55:12 +000014477 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014478 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014479 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014480 },
14481
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014482 {
Sean Nelson35727f72010-01-28 23:55:12 +000014483 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014484 .vendor = "ST",
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014485 .name = "M29F400BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014486 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014487 .manufacture_id = ST_ID,
14488 .model_id = ST_M29F400BB,
14489 .total_size = 512,
14490 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014491 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014492 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014493 .probe = probe_jedec,
14494 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014495 .block_erasers =
14496 {
14497 {
14498 .eraseblocks = {
14499 {16 * 1024, 1},
14500 {8 * 1024, 2},
14501 {32 * 1024, 1},
14502 {64 * 1024, 7},
14503 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014504 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014505 }, {
14506 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014507 .block_erase = erase_chip_block_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014508 }
14509 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014510 .write = write_jedec_1,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014511 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014512 .voltage = {4500, 5500},
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014513 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100014514
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014515 {
14516 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
14517 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014518 .name = "M29F400BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014519 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014520 .manufacture_id = ST_ID,
14521 .model_id = ST_M29F400BT,
14522 .total_size = 512,
14523 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014524 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014525 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014526 .probe = probe_jedec,
14527 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson56358aa2010-01-19 16:08:51 +000014528 .block_erasers =
14529 {
14530 {
14531 .eraseblocks = {
14532 {64 * 1024, 7},
14533 {32 * 1024, 1},
14534 {8 * 1024, 2},
14535 {16 * 1024, 1},
14536 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014537 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000014538 }, {
14539 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014540 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000014541 }
14542 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014543 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014544 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014545 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014546 },
14547
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014548 {
14549 .vendor = "ST",
14550 .name = "M29W010B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014551 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014552 .manufacture_id = ST_ID,
14553 .model_id = ST_M29W010B,
14554 .total_size = 128,
14555 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014556 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014557 .tested = TEST_UNTESTED,
14558 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014559 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014560 .block_erasers =
14561 {
14562 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014563 .eraseblocks = { {16 * 1024, 8} },
Sean Nelson56358aa2010-01-19 16:08:51 +000014564 .block_erase = erase_sector_jedec,
14565 }, {
14566 .eraseblocks = { {128 * 1024, 1} },
14567 .block_erase = erase_chip_block_jedec,
14568 }
14569 },
Sean Nelson35727f72010-01-28 23:55:12 +000014570 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014571 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014572 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014573 },
14574
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014575 {
14576 .vendor = "ST",
14577 .name = "M29W040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014578 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014579 .manufacture_id = ST_ID,
14580 .model_id = ST_M29W040B,
14581 .total_size = 512,
14582 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014583 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014584 .tested = TEST_UNTESTED,
14585 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014586 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014587 .block_erasers =
14588 {
14589 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014590 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson56358aa2010-01-19 16:08:51 +000014591 .block_erase = erase_sector_jedec,
14592 }, {
14593 .eraseblocks = { {512 * 1024, 1} },
14594 .block_erase = erase_chip_block_jedec,
14595 }
14596 },
Sean Nelson35727f72010-01-28 23:55:12 +000014597 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014598 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014599 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014600 },
14601
Stefan Taunereb582572012-09-21 12:52:50 +000014602 {
14603 .vendor = "ST",
14604 .name = "M29W512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014605 .bustype = BUS_PARALLEL,
Alan Greenfa3fcd32019-06-27 15:41:50 +100014606 .manufacture_id = ST_ID,
Stefan Taunereb582572012-09-21 12:52:50 +000014607 .model_id = ST_M29W512B,
14608 .total_size = 64,
14609 .page_size = 64 * 1024,
14610 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauner0554ca52013-07-25 22:54:25 +000014611 .tested = TEST_OK_PREW,
Stefan Taunereb582572012-09-21 12:52:50 +000014612 .probe = probe_jedec,
14613 .probe_timing = TIMING_ZERO,
14614 .block_erasers =
14615 {
14616 {
14617 .eraseblocks = { {64 * 1024, 1} },
14618 .block_erase = erase_chip_block_jedec,
14619 }
14620 },
14621 .write = write_jedec_1,
14622 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014623 .voltage = {2700, 3600},
Stefan Taunereb582572012-09-21 12:52:50 +000014624 },
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +000014625
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014626 {
14627 .vendor = "ST",
14628 .name = "M50FLW040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014629 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014630 .manufacture_id = ST_ID,
14631 .model_id = ST_M50FLW040A,
14632 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000014633 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014634 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014635 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000014636 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000014637 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000014638 .block_erasers =
14639 {
14640 {
Sean Nelson329bde72010-01-19 16:39:19 +000014641 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000014642 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000014643 {64 * 1024, 5}, /* block */
14644 {4 * 1024, 16}, /* sector */
14645 {4 * 1024, 16}, /* sector */
14646 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000014647 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000014648 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000014649 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000014650 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014651 }
14652 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014653 .unlock = unlock_regspace2_uniform_64k,
Alan Greenc1863ca2019-06-27 15:08:03 +100014654 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014655 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014656 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014657 },
14658
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014659 {
14660 .vendor = "ST",
14661 .name = "M50FLW040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014662 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014663 .manufacture_id = ST_ID,
14664 .model_id = ST_M50FLW040B,
14665 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000014666 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014667 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014668 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000014669 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000014670 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000014671 .block_erasers =
14672 {
14673 {
Sean Nelson329bde72010-01-19 16:39:19 +000014674 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000014675 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000014676 {4 * 1024, 16}, /* sector */
14677 {64 * 1024, 5}, /* block */
14678 {4 * 1024, 16}, /* sector */
14679 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000014680 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000014681 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000014682 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000014683 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014684 }
14685 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014686 .unlock = unlock_regspace2_uniform_64k,
Alan Greenc1863ca2019-06-27 15:08:03 +100014687 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014688 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014689 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014690 },
14691
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014692 {
14693 .vendor = "ST",
14694 .name = "M50FLW080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014695 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014696 .manufacture_id = ST_ID,
14697 .model_id = ST_M50FLW080A,
14698 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000014699 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014700 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014701 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +000014702 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000014703 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000014704 .block_erasers =
14705 {
14706 {
Sean Nelson329bde72010-01-19 16:39:19 +000014707 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000014708 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000014709 {64 * 1024, 13}, /* block */
14710 {4 * 1024, 16}, /* sector */
14711 {4 * 1024, 16}, /* sector */
14712 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000014713 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000014714 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000014715 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000014716 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014717 }
14718 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014719 .printlock = printlock_regspace2_block_eraser_0,
14720 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000014721 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014722 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014723 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014724 },
14725
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014726 {
14727 .vendor = "ST",
14728 .name = "M50FLW080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014729 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014730 .manufacture_id = ST_ID,
14731 .model_id = ST_M50FLW080B,
14732 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000014733 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014734 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014735 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000014736 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000014737 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000014738 .block_erasers =
14739 {
14740 {
Sean Nelson329bde72010-01-19 16:39:19 +000014741 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000014742 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000014743 {4 * 1024, 16}, /* sector */
14744 {64 * 1024, 13}, /* block */
14745 {4 * 1024, 16}, /* sector */
14746 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000014747 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000014748 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000014749 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000014750 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014751 }
14752 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014753 .printlock = printlock_regspace2_block_eraser_0,
14754 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000014755 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014756 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014757 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014758 },
14759
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014760 {
14761 .vendor = "ST",
14762 .name = "M50FW002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014763 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014764 .manufacture_id = ST_ID,
14765 .model_id = ST_M50FW002,
14766 .total_size = 256,
Stefan Tauner4404f732013-09-12 08:28:56 +000014767 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014768 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014769 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +000014770 .probe = probe_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014771 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000014772 .block_erasers =
14773 {
14774 {
14775 .eraseblocks = {
14776 {64 * 1024, 3},
14777 {32 * 1024, 1},
14778 {8 * 1024, 2},
14779 {16 * 1024, 1},
14780 },
Sean Nelson28accc22010-03-19 18:47:06 +000014781 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014782 }, {
Stefan Tauner5c316f92015-02-08 21:57:52 +000014783 .eraseblocks = { {256 * 1024, 1} },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014784 .block_erase = NULL, /* Only in A/A mux mode */
Sean Nelson56358aa2010-01-19 16:08:51 +000014785 }
14786 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014787 .printlock = printlock_regspace2_block_eraser_0,
14788 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000014789 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014790 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014791 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014792 },
14793
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014794 {
14795 .vendor = "ST",
14796 .name = "M50FW016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014797 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014798 .manufacture_id = ST_ID,
14799 .model_id = ST_M50FW016,
14800 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000014801 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014802 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014803 .tested = TEST_UNTESTED,
14804 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014805 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000014806 .block_erasers =
14807 {
14808 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014809 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson28accc22010-03-19 18:47:06 +000014810 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014811 }
14812 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014813 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000014814 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014815 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014816 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014817 },
14818
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014819 {
14820 .vendor = "ST",
14821 .name = "M50FW040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014822 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014823 .manufacture_id = ST_ID,
14824 .model_id = ST_M50FW040,
14825 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000014826 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014827 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +000014828 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014829 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014830 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000014831 .block_erasers =
14832 {
14833 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014834 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000014835 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014836 }
14837 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014838 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000014839 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014840 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014841 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014842 },
14843
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014844 {
14845 .vendor = "ST",
14846 .name = "M50FW080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014847 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014848 .manufacture_id = ST_ID,
14849 .model_id = ST_M50FW080,
14850 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000014851 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014852 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014853 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014854 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014855 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000014856 .block_erasers =
14857 {
14858 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014859 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000014860 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014861 }
14862 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014863 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000014864 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014865 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014866 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014867 },
14868
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014869 {
14870 .vendor = "ST",
Stefan Tauner8c4602b2013-09-12 08:29:00 +000014871 .name = "M50LPW080",
14872 .bustype = BUS_LPC, /* A/A Mux */
14873 .manufacture_id = ST_ID,
14874 .model_id = ST_M50LPW080,
14875 .total_size = 1024,
14876 .page_size = 0,
14877 .feature_bits = FEATURE_REGISTERMAP,
14878 .tested = TEST_UNTESTED,
14879 .probe = probe_82802ab,
14880 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
14881 .block_erasers =
14882 {
14883 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014884 .eraseblocks = { {64 * 1024, 16} },
Stefan Tauner8c4602b2013-09-12 08:29:00 +000014885 .block_erase = erase_block_82802ab,
14886 }
14887 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014888 .unlock = unlock_regspace2_uniform_64k,
Stefan Tauner8c4602b2013-09-12 08:29:00 +000014889 .write = write_82802ab,
14890 .read = read_memmapped,
14891 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
14892 },
14893
14894 {
14895 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014896 .name = "M50LPW116",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014897 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014898 .manufacture_id = ST_ID,
14899 .model_id = ST_M50LPW116,
14900 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000014901 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014902 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014903 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000014904 .probe = probe_82802ab,
Udu Ogahc04ee222009-09-05 01:31:32 +000014905 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014906 .block_erasers =
14907 {
14908 {
14909 .eraseblocks = {
14910 {4 * 1024, 16},
14911 {64 * 1024, 30},
14912 {32 * 1024, 1},
14913 {8 * 1024, 2},
14914 {16 * 1024, 1},
14915 },
Sean Nelson28accc22010-03-19 18:47:06 +000014916 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014917 }
14918 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014919 .printlock = printlock_regspace2_block_eraser_0,
14920 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000014921 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014922 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014923 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014924 },
14925
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014926 {
Konstantin Grudnev3d8868c2019-07-23 00:48:54 +030014927 .vendor = "ST",
14928 .name = "M95M02",
14929 .bustype = BUS_SPI,
14930 .manufacture_id = ST_ID,
14931 .model_id = ST_M95M02,
14932 .total_size = 256,
14933 .page_size = 256,
14934 .feature_bits = FEATURE_WRSR_WREN | FEATURE_NO_ERASE | FEATURE_ERASED_ZERO,
14935 .tested = TEST_OK_PREW,
14936 .probe = probe_spi_st95,
14937 .probe_timing = TIMING_ZERO,
14938 .block_erasers =
14939 {
14940 {
14941 .eraseblocks = { {256 * 1024, 1} },
14942 .block_erase = spi_block_erase_emulation,
14943 }
14944 },
14945
14946 .printlock = spi_prettyprint_status_register_bp1_srwd,
14947 .unlock = spi_disable_blockprotect_bp1_srwd,
14948 .write = spi_chip_write_256,
14949 .read = spi_chip_read,
14950 .voltage = {2500, 5500},
14951 },
14952
14953 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014954 .vendor = "Sanyo",
14955 .name = "LE25FU106B",
14956 .bustype = BUS_SPI,
14957 .manufacture_id = SANYO_ID,
14958 .model_id = SANYO_LE25FU106B,
14959 .total_size = 128,
14960 .page_size = 256,
14961 .feature_bits = FEATURE_WRSR_WREN,
14962 .tested = TEST_UNTESTED,
14963 .probe = probe_spi_res2,
14964 .probe_timing = TIMING_ZERO,
14965 .block_erasers =
14966 {
14967 /* FIXME: Is this correct?
14968 {
14969 .eraseblocks = { {2 * 1024, 64} },
14970 .block_erase = spi_block_erase_d7,
14971 },*/
14972 {
14973 .eraseblocks = { {32 * 1024, 4} },
14974 .block_erase = spi_block_erase_d8,
14975 }, {
14976 .eraseblocks = { {128 * 1024, 1} },
14977 .block_erase = spi_block_erase_c7,
14978 }
14979 },
14980 .printlock = spi_prettyprint_status_register_bp1_srwd,
14981 .unlock = spi_disable_blockprotect_bp1_srwd,
14982 .write = spi_chip_write_256,
14983 .read = spi_chip_read,
14984 .voltage = {2300, 3600},
14985 },
14986
14987 {
14988 .vendor = "Sanyo",
14989 .name = "LE25FU206",
14990 .bustype = BUS_SPI,
14991 .manufacture_id = SANYO_ID,
14992 .model_id = SANYO_LE25FU206,
14993 .total_size = 256,
14994 .page_size = 256,
14995 .feature_bits = FEATURE_WRSR_WREN,
14996 .tested = TEST_UNTESTED,
14997 .probe = probe_spi_res2,
14998 .probe_timing = TIMING_ZERO,
14999 .block_erasers =
15000 {
15001 {
15002 .eraseblocks = { {4 * 1024, 64} },
15003 .block_erase = spi_block_erase_d7,
15004 }, {
15005 .eraseblocks = { {64 * 1024, 4} },
15006 .block_erase = spi_block_erase_d8,
15007 }, {
15008 .eraseblocks = { {256 * 1024, 1} },
15009 .block_erase = spi_block_erase_c7,
15010 }
15011 },
15012 .printlock = spi_prettyprint_status_register_bp1_srwd,
15013 .unlock = spi_disable_blockprotect_bp1_srwd,
15014 .write = spi_chip_write_256,
15015 .read = spi_chip_read,
15016 .voltage = {2300, 3600},
15017 },
15018
15019 {
15020 .vendor = "Sanyo",
15021 .name = "LE25FU206A",
15022 .bustype = BUS_SPI,
15023 .manufacture_id = SANYO_ID,
15024 .model_id = SANYO_LE25FU206A,
15025 .total_size = 256,
15026 .page_size = 256,
15027 .tested = TEST_UNTESTED,
15028 .probe = probe_spi_rdid,
15029 .probe_timing = TIMING_ZERO,
15030 .block_erasers =
15031 {
15032 {
15033 .eraseblocks = { {4 * 1024, 64} },
15034 .block_erase = spi_block_erase_20,
15035 }, {
15036 .eraseblocks = { {4 * 1024, 64} },
15037 .block_erase = spi_block_erase_d7,
15038 }, {
15039 .eraseblocks = { {64 * 1024, 4} },
15040 .block_erase = spi_block_erase_d8,
15041 }, {
15042 .eraseblocks = { {256 * 1024, 1} },
15043 .block_erase = spi_block_erase_60,
15044 }, {
15045 .eraseblocks = { {256 * 1024, 1} },
15046 .block_erase = spi_block_erase_c7,
15047 }
15048 },
15049 .printlock = spi_prettyprint_status_register_bp2_srwd,
15050 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
15051 .write = spi_chip_write_256,
15052 .read = spi_chip_read,
15053 .voltage = {2300, 3600},
15054 },
15055
15056 {
15057 .vendor = "Sanyo",
15058 .name = "LE25FU406B",
15059 .bustype = BUS_SPI,
15060 .manufacture_id = SANYO_ID,
15061 .model_id = SANYO_LE25FU406B,
15062 .total_size = 512,
15063 .page_size = 256,
15064 .feature_bits = FEATURE_WRSR_WREN,
15065 .tested = TEST_OK_PREW,
15066 .probe = probe_spi_res2,
15067 .probe_timing = TIMING_ZERO,
15068 .block_erasers =
15069 {
15070 {
15071 .eraseblocks = { {4 * 1024, 128} },
15072 .block_erase = spi_block_erase_d7,
15073 }, {
15074 .eraseblocks = { {64 * 1024, 8} },
15075 .block_erase = spi_block_erase_d8,
15076 }, {
15077 .eraseblocks = { {512 * 1024, 1} },
15078 .block_erase = spi_block_erase_c7,
15079 }
15080 },
15081 .printlock = spi_prettyprint_status_register_bp2_srwd,
15082 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
15083 .write = spi_chip_write_256,
15084 .read = spi_chip_read,
15085 .voltage = {2300, 3600},
15086 },
15087
15088 {
15089 .vendor = "Sanyo",
15090 .name = "LE25FU406C/LE25U40CMC",
15091 .bustype = BUS_SPI,
15092 .manufacture_id = SANYO_ID,
15093 .model_id = SANYO_LE25FU406C,
15094 .total_size = 512,
15095 .page_size = 256,
15096 .feature_bits = FEATURE_WRSR_WREN,
15097 .tested = TEST_OK_PREW,
15098 .probe = probe_spi_rdid,
15099 .probe_timing = TIMING_ZERO,
15100 .block_erasers =
15101 {
15102 {
15103 .eraseblocks = { {4 * 1024, 128} },
15104 .block_erase = spi_block_erase_20,
15105 }, {
15106 .eraseblocks = { {4 * 1024, 128} },
15107 .block_erase = spi_block_erase_d7,
15108 }, {
15109 .eraseblocks = { {64 * 1024, 8} },
15110 .block_erase = spi_block_erase_d8,
15111 }, {
15112 .eraseblocks = { {512 * 1024, 1} },
15113 .block_erase = spi_block_erase_60,
15114 }, {
15115 .eraseblocks = { {512 * 1024, 1} },
15116 .block_erase = spi_block_erase_c7,
15117 }
15118 },
15119 .printlock = spi_prettyprint_status_register_bp2_srwd,
15120 .unlock = spi_disable_blockprotect_bp2_srwd,
15121 .write = spi_chip_write_256,
15122 .read = spi_chip_read, /* Fast read (0x0B), dual read (0x3B) and dual I/O (0xBB) supported */
15123 .voltage = {2300, 3600},
15124 },
15125
15126 {
15127 .vendor = "Sanyo",
15128 .name = "LE25FW106",
15129 .bustype = BUS_SPI,
15130 .manufacture_id = SANYO_ID,
15131 .model_id = SANYO_LE25FW106,
15132 .total_size = 128,
15133 .page_size = 256,
15134 .feature_bits = FEATURE_WRSR_WREN,
15135 .tested = TEST_OK_PREW,
15136 .probe = probe_spi_res2,
15137 .probe_timing = TIMING_ZERO,
15138 .block_erasers =
15139 {
15140 {
15141 .eraseblocks = { {2 * 1024, 64} },
15142 .block_erase = spi_block_erase_d7,
15143 }, {
15144 .eraseblocks = { {32 * 1024, 4} },
15145 .block_erase = spi_block_erase_d8,
15146 }, {
15147 .eraseblocks = { {128 * 1024, 1} },
15148 .block_erase = spi_block_erase_c7,
15149 }
15150 },
15151 .printlock = spi_prettyprint_status_register_bp1_srwd, /* FIXME: Add ERSER error flag. */
15152 .unlock = spi_disable_blockprotect_bp1_srwd,
15153 .write = spi_chip_write_256,
15154 .read = spi_chip_read,
15155 .voltage = {2700, 3600},
15156 },
15157
15158 {
15159 .vendor = "Sanyo",
15160 .name = "LE25FW203A",
15161 .bustype = BUS_SPI,
15162 .manufacture_id = SANYO_ID,
15163 .model_id = SANYO_LE25FW203A,
15164 .total_size = 256,
15165 .page_size = 256,
15166 .tested = TEST_UNTESTED,
15167 .probe = probe_spi_rdid,
15168 .probe_timing = TIMING_ZERO,
15169 .block_erasers =
15170 {
15171 {
15172 .eraseblocks = { {256, 1024} },
15173 .block_erase = spi_block_erase_db,
15174 }, {
15175 .eraseblocks = { {64 * 1024, 4} },
15176 .block_erase = spi_block_erase_d8,
15177 }, {
15178 .eraseblocks = { {256 * 1024, 1} },
15179 .block_erase = spi_block_erase_c7,
15180 }
15181 },
15182 .printlock = spi_prettyprint_status_register_default_welwip,
15183 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
15184 .write = spi_chip_write_256,
15185 .read = spi_chip_read,
15186 .voltage = {2700, 3600},
15187 },
15188
15189 {
15190 .vendor = "Sanyo",
15191 .name = "LE25FW403A",
15192 .bustype = BUS_SPI,
15193 .manufacture_id = SANYO_ID,
15194 .model_id = SANYO_LE25FW403A,
15195 .total_size = 512,
15196 .page_size = 256,
15197 .tested = TEST_UNTESTED,
15198 .probe = probe_spi_rdid,
15199 .probe_timing = TIMING_ZERO,
15200 .block_erasers =
15201 {
15202 {
15203 .eraseblocks = { {256, 2 * 1024} },
15204 .block_erase = spi_block_erase_db,
15205 }, {
15206 .eraseblocks = { {64 * 1024, 8} },
15207 .block_erase = spi_block_erase_d8,
15208 }, {
15209 .eraseblocks = { {512 * 1024, 1} },
15210 .block_erase = spi_block_erase_c7,
15211 }
15212 },
15213 .printlock = spi_prettyprint_status_register_default_welwip,
15214 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
15215 .write = spi_chip_write_256,
15216 .read = spi_chip_read,
15217 .voltage = {2700, 3600},
15218 },
15219
15220 {
15221 .vendor = "Sanyo",
15222 .name = "LE25FW406A",
15223 .bustype = BUS_SPI,
15224 .manufacture_id = SANYO_ID,
15225 .model_id = SANYO_LE25FW406A,
15226 .total_size = 512,
15227 .page_size = 256,
15228 .feature_bits = FEATURE_WRSR_WREN,
15229 .tested = TEST_OK_PREW,
15230 .probe = probe_spi_res2,
15231 .probe_timing = TIMING_ZERO,
15232 .block_erasers =
15233 {
15234 {
15235 .eraseblocks = { {4 * 1024, 128} },
15236 .block_erase = spi_block_erase_d7,
15237 }, {
15238 .eraseblocks = { {64 * 1024, 8} },
15239 .block_erase = spi_block_erase_d8,
15240 }, {
15241 .eraseblocks = { {512 * 1024, 1} },
15242 .block_erase = spi_block_erase_c7,
15243 }
15244 },
15245 .printlock = spi_prettyprint_status_register_plain,
15246 .unlock = spi_disable_blockprotect,
15247 .write = spi_chip_write_256,
15248 .read = spi_chip_read,
15249 .voltage = {2700, 3600},
15250 },
15251
15252 {
15253 .vendor = "Sanyo",
15254 .name = "LE25FW418A",
15255 .bustype = BUS_SPI,
15256 .manufacture_id = SANYO_ID,
15257 .model_id = SANYO_LE25FW418A,
15258 .total_size = 512,
15259 .page_size = 256,
15260 .feature_bits = FEATURE_WRSR_WREN,
15261 .tested = TEST_UNTESTED,
15262 .probe = probe_spi_res2,
15263 .probe_timing = TIMING_ZERO,
15264 .block_erasers =
15265 {
15266 {
15267 .eraseblocks = { {4 * 1024, 128} },
15268 .block_erase = spi_block_erase_d7,
15269 }, {
15270 .eraseblocks = { {64 * 1024, 8} },
15271 .block_erase = spi_block_erase_d8,
15272 }, {
15273 .eraseblocks = { {512 * 1024, 1} },
15274 .block_erase = spi_block_erase_c7,
15275 }
15276 },
15277 .printlock = spi_prettyprint_status_register_bp2_srwd,
15278 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
15279 .write = spi_chip_write_256,
15280 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
15281 .voltage = {2700, 3600},
15282 },
15283
15284 {
15285 .vendor = "Sanyo",
15286 .name = "LE25FW806",
15287 .bustype = BUS_SPI,
15288 .manufacture_id = SANYO_ID,
15289 .model_id = SANYO_LE25FW806,
15290 .total_size = 1024,
15291 .page_size = 256,
15292 .feature_bits = FEATURE_WRSR_WREN,
15293 .tested = TEST_UNTESTED,
15294 .probe = probe_spi_res2,
15295 .probe_timing = TIMING_ZERO,
15296 .block_erasers =
15297 {
15298 {
15299 .eraseblocks = { {4 * 1024, 256} },
15300 .block_erase = spi_block_erase_20,
15301 }, {
15302 .eraseblocks = { {4 * 1024, 256} },
15303 .block_erase = spi_block_erase_d7,
15304 }, {
15305 .eraseblocks = { {64 * 1024, 16} },
15306 .block_erase = spi_block_erase_d8,
15307 }, {
15308 .eraseblocks = { {1024 * 1024, 1} },
15309 .block_erase = spi_block_erase_c7,
15310 }
15311 },
15312 .printlock = spi_prettyprint_status_register_bp2_srwd,
15313 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
15314 .write = spi_chip_write_256,
15315 .read = spi_chip_read,
15316 .voltage = {2700, 3600},
15317 },
15318
15319 {
15320 .vendor = "Sanyo",
15321 .name = "LE25FW808",
15322 .bustype = BUS_SPI,
15323 .manufacture_id = SANYO_ID,
15324 .model_id = SANYO_LE25FW808,
15325 .total_size = 1024,
15326 .page_size = 256,
15327 .feature_bits = FEATURE_WRSR_WREN,
15328 .tested = TEST_UNTESTED,
15329 .probe = probe_spi_res2,
15330 .probe_timing = TIMING_ZERO,
15331 .block_erasers =
15332 {
15333 {
15334 .eraseblocks = { {8 * 1024, 128} },
15335 .block_erase = spi_block_erase_d7,
15336 }, {
15337 .eraseblocks = { {64 * 1024, 16} },
15338 .block_erase = spi_block_erase_d8,
15339 }, {
15340 .eraseblocks = { {1024 * 1024, 1} },
15341 .block_erase = spi_block_erase_c7,
15342 }
15343 },
15344 .printlock = spi_prettyprint_status_register_bp2_srwd,
15345 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
15346 .write = spi_chip_write_256,
15347 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
15348 .voltage = {2700, 3600},
15349 },
15350
15351 {
15352 .vendor = "Sharp",
15353 .name = "LH28F008BJT-BTLZ1",
15354 .bustype = BUS_PARALLEL,
15355 .manufacture_id = SHARP_ID,
15356 .model_id = SHARP_LH28F008BJ__PB,
15357 .total_size = 1024,
15358 .page_size = 64 * 1024,
15359 .tested = TEST_OK_PREW,
15360 .probe = probe_82802ab,
15361 .probe_timing = TIMING_ZERO,
15362 .block_erasers =
15363 {
15364 {
15365 .eraseblocks = {
15366 {8 * 1024, 8},
15367 {64 * 1024, 15}
15368 },
15369 .block_erase = erase_block_82802ab,
15370 }, {
15371 .eraseblocks = { {1024 * 1024, 1} },
15372 .block_erase = erase_sector_49lfxxxc,
15373 }
15374 },
15375 .unlock = unlock_lh28f008bjt,
15376 .write = write_82802ab,
15377 .read = read_memmapped,
15378 .voltage = {2700, 3600},
15379 },
15380
15381 {
15382 .vendor = "Sharp",
15383 .name = "LHF00L04",
15384 .bustype = BUS_FWH, /* A/A Mux */
15385 .manufacture_id = SHARP_ID,
15386 .model_id = SHARP_LHF00L04,
15387 .total_size = 1024,
15388 .page_size = 64 * 1024,
15389 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
15390 .tested = TEST_UNTESTED,
15391 .probe = probe_82802ab,
15392 .probe_timing = TIMING_ZERO,
15393 .block_erasers =
15394 {
15395 {
15396 .eraseblocks = {
15397 {64 * 1024, 15},
15398 {8 * 1024, 8}
15399 },
15400 .block_erase = erase_block_82802ab,
15401 }, {
15402 .eraseblocks = {
15403 {1024 * 1024, 1}
15404 },
15405 .block_erase = NULL, /* 30 D0, only in A/A mux mode */
15406 },
15407 },
15408 .unlock = unlock_regspace2_uniform_64k,
15409 .write = write_82802ab,
15410 .read = read_memmapped,
15411 .voltage = {3000, 3600},
15412 },
15413
15414 {
15415 .vendor = "Spansion",
15416 .name = "S25FL004A",
15417 .bustype = BUS_SPI,
15418 .manufacture_id = SPANSION_ID,
15419 .model_id = SPANSION_S25FL004A,
15420 .total_size = 512,
15421 .page_size = 256,
15422 .feature_bits = FEATURE_WRSR_WREN,
15423 .tested = TEST_UNTESTED,
15424 .probe = probe_spi_rdid,
15425 .probe_timing = TIMING_ZERO,
15426 .block_erasers =
15427 {
15428 {
15429 .eraseblocks = { {64 * 1024, 8} },
15430 .block_erase = spi_block_erase_d8,
15431 }, {
15432 .eraseblocks = { {512 * 1024, 1} },
15433 .block_erase = spi_block_erase_c7,
15434 }
15435 },
15436 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15437 .unlock = spi_disable_blockprotect,
15438 .write = spi_chip_write_256,
15439 .read = spi_chip_read,
15440 .voltage = {2700, 3600},
15441 },
15442
15443 {
15444 .vendor = "Spansion",
15445 .name = "S25FL008A",
15446 .bustype = BUS_SPI,
15447 .manufacture_id = SPANSION_ID,
15448 .model_id = SPANSION_S25FL008A,
15449 .total_size = 1024,
15450 .page_size = 256,
15451 .feature_bits = FEATURE_WRSR_WREN,
15452 .tested = TEST_OK_PRE,
15453 .probe = probe_spi_rdid,
15454 .probe_timing = TIMING_ZERO,
15455 .block_erasers =
15456 {
15457 {
15458 .eraseblocks = { {64 * 1024, 16} },
15459 .block_erase = spi_block_erase_d8,
15460 }, {
15461 .eraseblocks = { {1024 * 1024, 1} },
15462 .block_erase = spi_block_erase_c7,
15463 }
15464 },
15465 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15466 .unlock = spi_disable_blockprotect,
15467 .write = spi_chip_write_256,
15468 .read = spi_chip_read,
15469 .voltage = {2700, 3600},
15470 },
15471
15472 {
15473 .vendor = "Spansion",
15474 .name = "S25FL016A",
15475 .bustype = BUS_SPI,
15476 .manufacture_id = SPANSION_ID,
15477 .model_id = SPANSION_S25FL016A,
15478 .total_size = 2048,
15479 .page_size = 256,
15480 .feature_bits = FEATURE_WRSR_WREN,
15481 .tested = TEST_OK_PREW,
15482 .probe = probe_spi_rdid,
15483 .probe_timing = TIMING_ZERO,
15484 .block_erasers =
15485 {
15486 {
15487 .eraseblocks = { {64 * 1024, 32} },
15488 .block_erase = spi_block_erase_d8,
15489 }, {
15490 .eraseblocks = { {2 * 1024 * 1024, 1} },
15491 .block_erase = spi_block_erase_c7,
15492 }
15493 },
15494 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15495 .unlock = spi_disable_blockprotect,
15496 .write = spi_chip_write_256,
15497 .read = spi_chip_read,
15498 .voltage = {2700, 3600},
15499 },
15500
15501 {
15502 .vendor = "Spansion",
15503 .name = "S25FL032A/P",
15504 .bustype = BUS_SPI,
15505 .manufacture_id = SPANSION_ID,
15506 .model_id = SPANSION_S25FL032A,
15507 .total_size = 4096,
15508 .page_size = 256,
15509 .feature_bits = FEATURE_WRSR_WREN,
15510 .tested = TEST_OK_PREW,
15511 .probe = probe_spi_rdid,
15512 .probe_timing = TIMING_ZERO,
15513 .block_erasers =
15514 {
15515 {
15516 .eraseblocks = { {64 * 1024, 64} },
15517 .block_erase = spi_block_erase_d8,
15518 }, {
15519 .eraseblocks = { {4 * 1024 * 1024, 1} },
15520 .block_erase = spi_block_erase_c7,
15521 }
15522 },
15523 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15524 .unlock = spi_disable_blockprotect,
15525 .write = spi_chip_write_256,
15526 .read = spi_chip_read,
15527 .voltage = {2700, 3600},
15528 },
15529
15530 {
15531 .vendor = "Spansion",
15532 .name = "S25FL064A/P",
15533 .bustype = BUS_SPI,
15534 .manufacture_id = SPANSION_ID,
15535 .model_id = SPANSION_S25FL064A,
15536 .total_size = 8192,
15537 .page_size = 256,
15538 .feature_bits = FEATURE_WRSR_WREN,
15539 .tested = TEST_OK_PREW,
15540 .probe = probe_spi_rdid,
15541 .probe_timing = TIMING_ZERO,
15542 .block_erasers =
15543 {
15544 {
15545 .eraseblocks = { {64 * 1024, 128} },
15546 .block_erase = spi_block_erase_d8,
15547 }, {
15548 .eraseblocks = { {8 * 1024 * 1024, 1} },
15549 .block_erase = spi_block_erase_c7,
15550 }
15551 },
15552 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15553 .unlock = spi_disable_blockprotect,
15554 .write = spi_chip_write_256,
15555 .read = spi_chip_read,
15556 .voltage = {2700, 3600},
15557 },
15558
15559 {
15560 .vendor = "Spansion",
15561 .name = "S25FL116K/S25FL216K", /* FIXME: separate them */
15562 .bustype = BUS_SPI,
15563 .manufacture_id = SPANSION_ID,
15564 .model_id = SPANSION_S25FL216,
15565 .total_size = 2048,
15566 .page_size = 256,
15567 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (S25FL116K only) */
15568 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
15569 .tested = TEST_UNTESTED,
15570 .probe = probe_spi_rdid,
15571 .probe_timing = TIMING_ZERO,
15572 .block_erasers =
15573 {
15574 {
15575 .eraseblocks = { {4 * 1024, 512} },
15576 .block_erase = spi_block_erase_20,
15577 }, {
15578 .eraseblocks = { {64 * 1024, 32} },
15579 .block_erase = spi_block_erase_d8,
15580 }, {
15581 .eraseblocks = { { 2048 * 1024, 1} },
15582 .block_erase = spi_block_erase_60,
15583 }, {
15584 .eraseblocks = { { 2048 * 1024, 1} },
15585 .block_erase = spi_block_erase_c7,
15586 }
15587 },
15588 .printlock = spi_prettyprint_status_register_bp3_srwd,
15589 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
15590 .write = spi_chip_write_256,
15591 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
15592 .voltage = {2700, 3600},
15593 },
15594
15595 {
15596 .vendor = "Spansion",
15597 .name = "S25FL127S-256kB", /* uniform 256kB sectors */
15598 .bustype = BUS_SPI,
15599 .manufacture_id = SPANSION_ID,
15600 .model_id = SPANSION_S25FL128,
15601 .total_size = 16384,
15602 .page_size = 512,
15603 /* supports 4B addressing */
15604 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
15605 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
15606 .tested = TEST_UNTESTED,
15607 .probe = probe_spi_rdid,
15608 .probe_timing = TIMING_ZERO,
15609 .block_erasers =
15610 {
15611 {
15612 .eraseblocks = { {256 * 1024, 64} },
15613 .block_erase = spi_block_erase_d8,
15614 }, {
15615 .eraseblocks = { { 16384 * 1024, 1} },
15616 .block_erase = spi_block_erase_60,
15617 }, {
15618 .eraseblocks = { { 16384 * 1024, 1} },
15619 .block_erase = spi_block_erase_c7,
15620 }
15621 },
15622 .printlock = spi_prettyprint_status_register_bp2_srwd,
15623 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
15624 .write = spi_chip_write_256, /* Multi I/O supported */
15625 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
15626 .voltage = {2700, 3600},
15627 },
15628
15629 {
15630 .vendor = "Spansion",
15631 .name = "S25FL127S-64kB", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
15632 .bustype = BUS_SPI,
15633 .manufacture_id = SPANSION_ID,
15634 .model_id = SPANSION_S25FL128,
15635 .total_size = 16384,
15636 .page_size = 256,
15637 /* supports 4B addressing */
15638 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
15639 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
15640 .tested = TEST_OK_PREW,
15641 /* FIXME: we should distinguish the configuration on probing time like we do for AT45DB chips */
15642 .probe = probe_spi_rdid,
15643 .probe_timing = TIMING_ZERO,
15644 .block_erasers =
15645 {
15646 {
15647 /* This chip supports erasing of 32 so-called "parameter sectors" with
15648 * opcode 0x20 which may be configured to be on top or bottom of the address
15649 * space. Trying to access an address outside these 4kB blocks does have no
15650 * effect on the memory contents, e.g.
15651 .eraseblocks = {
15652 {4 * 1024, 32},
15653 {64 * 1024, 254} // inaccessible
15654 },
15655 .block_erase = spi_block_erase_20,
15656 }, { */
15657 .eraseblocks = { { 64 * 1024, 256} },
15658 .block_erase = spi_block_erase_d8,
15659 }, {
15660 .eraseblocks = { { 16384 * 1024, 1} },
15661 .block_erase = spi_block_erase_60,
15662 }, {
15663 .eraseblocks = { { 16384 * 1024, 1} },
15664 .block_erase = spi_block_erase_c7,
15665 }
15666 },
15667 .printlock = spi_prettyprint_status_register_bp2_srwd,
15668 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
15669 .write = spi_chip_write_256, /* Multi I/O supported */
15670 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
15671 .voltage = {2700, 3600},
15672 },
15673
15674 {
15675 .vendor = "Spansion",
15676 .name = "S25FL128P......0", /* uniform 64 kB sectors */
15677 .bustype = BUS_SPI,
15678 .manufacture_id = SPANSION_ID,
15679 .model_id = SPANSION_S25FL128,
15680 .total_size = 16384,
15681 .page_size = 256,
15682 .feature_bits = FEATURE_WRSR_WREN,
15683 .tested = TEST_OK_PREW,
15684 .probe = probe_spi_rdid,
15685 .probe_timing = TIMING_ZERO,
15686 .block_erasers =
15687 {
15688 {
15689 .eraseblocks = { {64 * 1024, 256} },
15690 .block_erase = spi_block_erase_20,
15691 }, {
15692 .eraseblocks = { {64 * 1024, 256} },
15693 .block_erase = spi_block_erase_d8,
15694 }, {
15695 .eraseblocks = { { 16384 * 1024, 1} },
15696 .block_erase = spi_block_erase_60,
15697 }, {
15698 .eraseblocks = { { 16384 * 1024, 1} },
15699 .block_erase = spi_block_erase_c7,
15700 }
15701 },
15702 .printlock = spi_prettyprint_status_register_bp3_srwd,
15703 .unlock = spi_disable_blockprotect_bp3_srwd,
15704 .write = spi_chip_write_256,
15705 .read = spi_chip_read, /* Fast read (0x0B) supported */
15706 .voltage = {2700, 3600},
15707 },
15708
15709 {
15710 .vendor = "Spansion",
15711 .name = "S25FL128P......1", /* uniform 256kB sectors */
15712 .bustype = BUS_SPI,
15713 .manufacture_id = SPANSION_ID,
15714 .model_id = SPANSION_S25FL128,
15715 .total_size = 16384,
15716 .page_size = 256,
15717 .feature_bits = FEATURE_WRSR_WREN,
15718 .tested = TEST_UNTESTED,
15719 .probe = probe_spi_rdid,
15720 .probe_timing = TIMING_ZERO,
15721 .block_erasers =
15722 {
15723 {
15724 .eraseblocks = { {256 * 1024, 64} },
15725 .block_erase = spi_block_erase_d8,
15726 }, {
15727 .eraseblocks = { { 16384 * 1024, 1} },
15728 .block_erase = spi_block_erase_c7,
15729 }
15730 },
15731 .printlock = spi_prettyprint_status_register_bp2_srwd,
15732 .unlock = spi_disable_blockprotect_bp2_srwd,
15733 .write = spi_chip_write_256,
15734 .read = spi_chip_read, /* Fast read (0x0B) supported */
15735 .voltage = {2700, 3600},
15736 },
15737
15738 {
15739 .vendor = "Spansion",
15740 .name = "S25FL128S......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
15741 .bustype = BUS_SPI,
15742 .manufacture_id = SPANSION_ID,
15743 .model_id = SPANSION_S25FL128,
15744 .total_size = 16384,
15745 .page_size = 256,
15746 /* supports 4B addressing */
15747 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
15748 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
15749 .tested = TEST_OK_PREW,
15750 .probe = probe_spi_rdid,
15751 .probe_timing = TIMING_ZERO,
15752 .block_erasers =
15753 {
15754 {
15755 /* This chip supports erasing of the 32 so-called "parameter sectors" with
15756 * opcode 0x20. Trying to access an address outside these 4kB blocks does
15757 * have no effect on the memory contents, but sets a flag in the SR.
15758 .eraseblocks = {
15759 {4 * 1024, 32},
15760 {64 * 1024, 254} // inaccessible
15761 },
15762 .block_erase = spi_block_erase_20,
15763 }, { */
15764 .eraseblocks = { { 64 * 1024, 256} },
15765 .block_erase = spi_block_erase_d8,
15766 }, {
15767 .eraseblocks = { { 16384 * 1024, 1} },
15768 .block_erase = spi_block_erase_60,
15769 }, {
15770 .eraseblocks = { { 16384 * 1024, 1} },
15771 .block_erase = spi_block_erase_c7,
15772 }
15773 },
15774 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
15775 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
15776 .write = spi_chip_write_256, /* Multi I/O supported */
15777 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
15778 .voltage = {2700, 3600},
15779 },
15780
15781 {
15782 .vendor = "Spansion",
15783 .name = "S25FL128S......1", /* uniform 256 kB sectors */
15784 .bustype = BUS_SPI,
15785 .manufacture_id = SPANSION_ID,
15786 .model_id = SPANSION_S25FL128,
15787 .total_size = 16384,
15788 .page_size = 512,
15789 /* supports 4B addressing */
15790 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
15791 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
15792 .tested = TEST_UNTESTED,
15793 .probe = probe_spi_rdid,
15794 .probe_timing = TIMING_ZERO,
15795 .block_erasers =
15796 {
15797 {
15798 .eraseblocks = { {256 * 1024, 64} },
15799 .block_erase = spi_block_erase_d8,
15800 }, {
15801 .eraseblocks = { { 16384 * 1024, 1} },
15802 .block_erase = spi_block_erase_60,
15803 }, {
15804 .eraseblocks = { { 16384 * 1024, 1} },
15805 .block_erase = spi_block_erase_c7,
15806 }
15807 },
15808 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
15809 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
15810 .write = spi_chip_write_256, /* Multi I/O supported */
15811 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
15812 .voltage = {2700, 3600},
15813 },
15814
15815 {
15816 .vendor = "Spansion",
15817 .name = "S25FL129P......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
15818 .bustype = BUS_SPI,
15819 .manufacture_id = SPANSION_ID,
15820 .model_id = SPANSION_S25FL128,
15821 .total_size = 16384,
15822 .page_size = 256,
15823 /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */
15824 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
15825 .tested = TEST_OK_PREW,
15826 .probe = probe_spi_rdid,
15827 .probe_timing = TIMING_ZERO,
15828 .block_erasers =
15829 {
15830 {
15831 /* FIXME: This chip supports erasing of the 32 so-called "parameter sectors" with
15832 * opcode 0x20. Trying to access an address outside these 4kB blocks does have no
15833 * effect on the memory contents, but sets a flag in the SR.
15834 .eraseblocks = {
15835 {4 * 1024, 32},
15836 {64 * 1024, 254} // inaccessible
15837 },
15838 .block_erase = spi_block_erase_20,
15839 }, { */
15840 /* FIXME: Additionally it also supports erase opcode 40h for the respective 2*4 kB pairs
15841 .eraseblocks = {
15842 {8 * 1024, 16},
15843 {64 * 1024, 254} // inaccessible
15844 },
15845 .block_erase = spi_block_erase_40,
15846 }, { */
15847 .eraseblocks = { { 64 * 1024, 256} },
15848 .block_erase = spi_block_erase_d8,
15849 }, {
15850 .eraseblocks = { { 16384 * 1024, 1} },
15851 .block_erase = spi_block_erase_60,
15852 }, {
15853 .eraseblocks = { { 16384 * 1024, 1} },
15854 .block_erase = spi_block_erase_c7,
15855 }
15856 },
15857 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */
15858 .unlock = spi_disable_blockprotect_bp2_srwd,
15859 .write = spi_chip_write_256, /* Multi I/O supported */
15860 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
15861 .voltage = {2700, 3600},
15862 },
15863
15864 {
15865 .vendor = "Spansion",
15866 .name = "S25FL129P......1", /* uniform 256 kB sectors */
15867 .bustype = BUS_SPI,
15868 .manufacture_id = SPANSION_ID,
15869 .model_id = SPANSION_S25FL128,
15870 .total_size = 16384,
15871 .page_size = 256,
15872 /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */
15873 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
15874 .tested = TEST_UNTESTED,
15875 .probe = probe_spi_rdid,
15876 .probe_timing = TIMING_ZERO,
15877 .block_erasers =
15878 {
15879 {
15880 .eraseblocks = { {256 * 1024, 64} },
15881 .block_erase = spi_block_erase_d8,
15882 }, {
15883 .eraseblocks = { { 16384 * 1024, 1} },
15884 .block_erase = spi_block_erase_60,
15885 }, {
15886 .eraseblocks = { { 16384 * 1024, 1} },
15887 .block_erase = spi_block_erase_c7,
15888 }
15889 },
15890 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */
15891 .unlock = spi_disable_blockprotect_bp2_srwd,
15892 .write = spi_chip_write_256, /* Multi I/O supported */
15893 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
15894 .voltage = {2700, 3600},
15895 },
15896
15897 {
15898 .vendor = "Spansion",
15899 .name = "S25FL132K",
15900 .bustype = BUS_SPI,
15901 .manufacture_id = SPANSION_ID,
15902 .model_id = SPANSION_S25FL132K,
15903 .total_size = 4096,
15904 .page_size = 256,
15905 /* OTP: 768B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
15906 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
15907 .tested = TEST_UNTESTED,
15908 .probe = probe_spi_rdid,
15909 .probe_timing = TIMING_ZERO,
15910 .block_erasers =
15911 {
15912 {
15913 .eraseblocks = { {4 * 1024, 1024} },
15914 .block_erase = spi_block_erase_20,
15915 }, {
15916 .eraseblocks = { {64 * 1024, 64} },
15917 .block_erase = spi_block_erase_d8,
15918 }, {
15919 .eraseblocks = { { 4096 * 1024, 1} },
15920 .block_erase = spi_block_erase_60,
15921 }, {
15922 .eraseblocks = { { 4096 * 1024, 1} },
15923 .block_erase = spi_block_erase_c7,
15924 }
15925 },
15926 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
15927 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
15928 .write = spi_chip_write_256,
15929 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
15930 .voltage = {2700, 3600},
15931 },
15932
15933 {
15934 .vendor = "Spansion",
15935 .name = "S25FL164K",
15936 .bustype = BUS_SPI,
15937 .manufacture_id = SPANSION_ID,
15938 .model_id = SPANSION_S25FL164K,
15939 .total_size = 8192,
15940 .page_size = 256,
15941 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
15942 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
15943 .tested = TEST_OK_PREW,
15944 .probe = probe_spi_rdid,
15945 .probe_timing = TIMING_ZERO,
15946 .block_erasers =
15947 {
15948 {
15949 .eraseblocks = { {4 * 1024, 2048} },
15950 .block_erase = spi_block_erase_20,
15951 }, {
15952 .eraseblocks = { {64 * 1024, 128} },
15953 .block_erase = spi_block_erase_d8,
15954 }, {
15955 .eraseblocks = { { 8192 * 1024, 1} },
15956 .block_erase = spi_block_erase_60,
15957 }, {
15958 .eraseblocks = { { 8192 * 1024, 1} },
15959 .block_erase = spi_block_erase_c7,
15960 }
15961 },
15962 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
15963 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
15964 .write = spi_chip_write_256,
15965 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
15966 .voltage = {2700, 3600},
15967 },
15968
15969 {
15970 .vendor = "Spansion",
15971 .name = "S25FL204K",
15972 .bustype = BUS_SPI,
15973 .manufacture_id = SPANSION_ID,
15974 .model_id = SPANSION_S25FL204,
15975 .total_size = 512,
15976 .page_size = 256,
15977 .feature_bits = FEATURE_WRSR_WREN,
15978 .tested = TEST_OK_PR,
15979 .probe = probe_spi_rdid,
15980 .probe_timing = TIMING_ZERO,
15981 .block_erasers =
15982 {
15983 {
15984 .eraseblocks = { {4 * 1024, 128} },
15985 .block_erase = spi_block_erase_20,
15986 }, {
15987 .eraseblocks = { {64 * 1024, 8} },
15988 .block_erase = spi_block_erase_d8,
15989 }, {
15990 .eraseblocks = { { 512 * 1024, 1} },
15991 .block_erase = spi_block_erase_60,
15992 }, {
15993 .eraseblocks = { { 512 * 1024, 1} },
15994 .block_erase = spi_block_erase_c7,
15995 }
15996 },
15997 .printlock = spi_prettyprint_status_register_bp3_srwd,
15998 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
15999 .write = spi_chip_write_256,
16000 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
16001 .voltage = {2700, 3600},
16002 },
16003
16004 {
16005 .vendor = "Spansion",
16006 .name = "S25FL208K",
16007 .bustype = BUS_SPI,
16008 .manufacture_id = SPANSION_ID,
16009 .model_id = SPANSION_S25FL208,
16010 .total_size = 1024,
16011 .page_size = 256,
16012 .feature_bits = FEATURE_WRSR_WREN,
16013 .tested = TEST_OK_PREW,
16014 .probe = probe_spi_rdid,
16015 .probe_timing = TIMING_ZERO,
16016 .block_erasers =
16017 {
16018 {
16019 .eraseblocks = { {4 * 1024, 256} },
16020 .block_erase = spi_block_erase_20,
16021 }, {
16022 .eraseblocks = { {64 * 1024, 16} },
16023 .block_erase = spi_block_erase_d8,
16024 }, {
16025 .eraseblocks = { { 1024 * 1024, 1} },
16026 .block_erase = spi_block_erase_60,
16027 }, {
16028 .eraseblocks = { { 1024 * 1024, 1} },
16029 .block_erase = spi_block_erase_c7,
16030 }
16031 },
16032 .printlock = spi_prettyprint_status_register_bp3_srwd,
16033 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
16034 .write = spi_chip_write_256,
16035 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
16036 .voltage = {2700, 3600},
16037 },
16038
16039 {
16040 .vendor = "Spansion",
16041 .name = "S25FL256S......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
16042 .bustype = BUS_SPI,
16043 .manufacture_id = SPANSION_ID,
16044 .model_id = SPANSION_S25FL256,
16045 .total_size = 32768,
16046 .page_size = 256,
16047 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
16048 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_EAR7,
16049 .tested = TEST_OK_PREW,
16050 .probe = probe_spi_rdid,
16051 .probe_timing = TIMING_ZERO,
16052 .block_erasers =
16053 {
16054 {
16055 /* This chip supports erasing of the 32 so-called "parameter sectors" with
16056 * opcode 0x20. Trying to access an address outside these 4kB blocks does
16057 * have no effect on the memory contents, but sets a flag in the SR.
16058 .eraseblocks = {
16059 {4 * 1024, 32},
16060 {64 * 1024, 254} // inaccessible
16061 },
16062 .block_erase = spi_block_erase_20,
16063 }, { */
16064 .eraseblocks = { { 64 * 1024, 512} },
16065 .block_erase = spi_block_erase_dc,
16066 }, {
16067 .eraseblocks = { { 64 * 1024, 512} },
16068 .block_erase = spi_block_erase_d8,
16069 }, {
16070 .eraseblocks = { { 32768 * 1024, 1} },
16071 .block_erase = spi_block_erase_60,
16072 }, {
16073 .eraseblocks = { { 32768 * 1024, 1} },
16074 .block_erase = spi_block_erase_c7,
16075 }
16076 },
16077 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
16078 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
16079 .write = spi_chip_write_256, /* Multi I/O supported */
16080 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16081 .voltage = {2700, 3600},
16082 .wrea_override = 0x17,
16083 },
16084
16085 {
Bernhard Urban-Forster05c629b2020-02-02 21:29:48 +010016086 .vendor = "Spansion",
16087 .name = "S25FL512S",
16088 .bustype = BUS_SPI,
16089 .manufacture_id = SPANSION_ID,
16090 .model_id = SPANSION_S25FL512,
16091 .total_size = 65536, /* 512 Mb (=> 64 MB)) */
16092 .page_size = 256,
16093 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
16094 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_NATIVE,
16095 .tested = TEST_OK_PREW,
16096 .probe = probe_spi_rdid,
16097 .probe_timing = TIMING_ZERO,
16098 .block_erasers =
16099 {
16100 {
16101 .eraseblocks = { { 256 * 1024, 256} },
16102 .block_erase = spi_block_erase_dc,
16103 }, {
16104 .eraseblocks = { { 65536 * 1024, 1} },
16105 .block_erase = spi_block_erase_60,
16106 }, {
16107 .eraseblocks = { { 65536 * 1024, 1} },
16108 .block_erase = spi_block_erase_c7,
16109 }
16110 },
16111 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
16112 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
16113 .write = spi_chip_write_256, /* Multi I/O supported, IGNORE for now */
16114 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16115 .voltage = {2700, 3600},
16116 },
16117
16118 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000016119 .vendor = "SyncMOS/MoselVitelic",
16120 .name = "{F,S,V}29C51001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016121 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016122 .manufacture_id = SYNCMOS_MVC_ID,
16123 .model_id = SM_MVC_29C51001B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016124 .total_size = 128,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016125 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000016126 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016127 .tested = TEST_UNTESTED,
16128 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000016129 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000016130 .block_erasers =
16131 {
16132 {
16133 .eraseblocks = { {512, 256} },
16134 .block_erase = erase_sector_jedec,
16135 }, {
16136 .eraseblocks = { {128 * 1024, 1} },
16137 .block_erase = erase_chip_block_jedec,
16138 },
16139 },
Sean Nelson35727f72010-01-28 23:55:12 +000016140 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016141 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016142 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000016143 },
16144
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016145 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000016146 .vendor = "SyncMOS/MoselVitelic",
16147 .name = "{F,S,V}29C51001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016148 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016149 .manufacture_id = SYNCMOS_MVC_ID,
16150 .model_id = SM_MVC_29C51001T,
16151 .total_size = 128,
16152 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000016153 .feature_bits = FEATURE_EITHER_RESET,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016154 .tested = TEST_UNTESTED,
16155 .probe = probe_jedec,
16156 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
16157 .block_erasers =
16158 {
16159 {
16160 .eraseblocks = { {512, 256} },
16161 .block_erase = erase_sector_jedec,
16162 }, {
16163 .eraseblocks = { {128 * 1024, 1} },
16164 .block_erase = erase_chip_block_jedec,
16165 },
16166 },
16167 .write = write_jedec_1,
16168 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016169 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000016170 },
16171
16172 {
16173 .vendor = "SyncMOS/MoselVitelic",
16174 .name = "{F,S,V}29C51002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016175 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016176 .manufacture_id = SYNCMOS_MVC_ID,
16177 .model_id = SM_MVC_29C51002B,
16178 .total_size = 256,
16179 .page_size = 512,
16180 .feature_bits = FEATURE_EITHER_RESET,
16181 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016182 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000016183 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000016184 .block_erasers =
16185 {
16186 {
16187 .eraseblocks = { {512, 512} },
16188 .block_erase = erase_sector_jedec,
16189 }, {
16190 .eraseblocks = { {256 * 1024, 1} },
16191 .block_erase = erase_chip_block_jedec,
16192 },
16193 },
Sean Nelson35727f72010-01-28 23:55:12 +000016194 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016195 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000016196 },
16197
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016198 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000016199 .vendor = "SyncMOS/MoselVitelic",
16200 .name = "{F,S,V}29C51002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016201 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016202 .manufacture_id = SYNCMOS_MVC_ID,
16203 .model_id = SM_MVC_29C51002T,
16204 .total_size = 256,
16205 .page_size = 512,
16206 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000016207 .tested = TEST_OK_PREW,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016208 .probe = probe_jedec,
16209 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
16210 .block_erasers =
16211 {
16212 {
16213 .eraseblocks = { {512, 512} },
16214 .block_erase = erase_sector_jedec,
16215 }, {
16216 .eraseblocks = { {256 * 1024, 1} },
16217 .block_erase = erase_chip_block_jedec,
16218 },
16219 },
16220 .write = write_jedec_1,
16221 .read = read_memmapped,
16222 },
16223
16224 {
16225 .vendor = "SyncMOS/MoselVitelic",
16226 .name = "{F,S,V}29C51004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016227 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016228 .manufacture_id = SYNCMOS_MVC_ID,
16229 .model_id = SM_MVC_29C51004B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016230 .total_size = 512,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016231 .page_size = 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000016232 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016233 .tested = TEST_UNTESTED,
16234 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000016235 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +000016236 .block_erasers =
16237 {
16238 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000016239 .eraseblocks = { {1024, 512} },
16240 .block_erase = erase_sector_jedec,
16241 }, {
16242 .eraseblocks = { {512 * 1024, 1} },
16243 .block_erase = erase_chip_block_jedec,
16244 },
16245 },
16246 .write = write_jedec_1,
16247 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016248 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000016249 },
16250
16251 {
16252 .vendor = "SyncMOS/MoselVitelic",
16253 .name = "{F,S,V}29C51004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016254 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016255 .manufacture_id = SYNCMOS_MVC_ID,
16256 .model_id = SM_MVC_29C51004T,
16257 .total_size = 512,
16258 .page_size = 1024,
16259 .feature_bits = FEATURE_EITHER_RESET,
16260 .tested = TEST_UNTESTED,
16261 .probe = probe_jedec,
16262 .probe_timing = TIMING_ZERO,
16263 .block_erasers =
16264 {
16265 {
16266 .eraseblocks = { {1024, 512} },
16267 .block_erase = erase_sector_jedec,
16268 }, {
16269 .eraseblocks = { {512 * 1024, 1} },
16270 .block_erase = erase_chip_block_jedec,
16271 },
16272 },
16273 .write = write_jedec_1,
16274 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016275 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000016276 },
16277
16278 {
16279 .vendor = "SyncMOS/MoselVitelic",
16280 .name = "{S,V}29C31004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016281 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016282 .manufacture_id = SYNCMOS_MVC_ID,
16283 .model_id = SM_MVC_29C31004B,
16284 .total_size = 512,
16285 .page_size = 1024,
16286 .feature_bits = FEATURE_EITHER_RESET,
16287 .tested = TEST_UNTESTED,
16288 .probe = probe_jedec,
16289 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
16290 .block_erasers =
16291 {
16292 {
16293 .eraseblocks = { {1024, 512} },
16294 .block_erase = erase_sector_jedec,
16295 }, {
16296 .eraseblocks = { {512 * 1024, 1} },
16297 .block_erase = erase_chip_block_jedec,
16298 },
16299 },
16300 .write = write_jedec_1,
16301 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016302 .voltage = {3000, 3600},
Mattias Mattsson4c066502010-07-29 20:01:13 +000016303 },
16304
16305 {
16306 .vendor = "SyncMOS/MoselVitelic",
16307 .name = "{S,V}29C31004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016308 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016309 .manufacture_id = SYNCMOS_MVC_ID,
16310 .model_id = SM_MVC_29C31004T,
16311 .total_size = 512,
16312 .page_size = 1024,
16313 .feature_bits = FEATURE_EITHER_RESET,
16314 .tested = TEST_UNTESTED,
16315 .probe = probe_jedec,
16316 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
16317 .block_erasers =
16318 {
16319 {
16320 .eraseblocks = { {1024, 512} },
Sean Nelson56358aa2010-01-19 16:08:51 +000016321 .block_erase = erase_sector_jedec,
16322 }, {
16323 .eraseblocks = { {512 * 1024, 1} },
16324 .block_erase = erase_chip_block_jedec,
16325 },
16326 },
Sean Nelson35727f72010-01-28 23:55:12 +000016327 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016328 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016329 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000016330 },
16331
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016332 {
Uwe Hermanna106d152009-05-27 23:17:40 +000016333 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016334 .name = "TMS29F002RB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016335 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016336 .manufacture_id = TI_OLD_ID,
16337 .model_id = TI_TMS29F002RB,
16338 .total_size = 256,
16339 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000016340 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016341 .tested = TEST_UNTESTED,
16342 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000016343 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000016344 .block_erasers =
16345 {
16346 {
16347 .eraseblocks = {
16348 {16 * 1024, 1},
16349 {8 * 1024, 2},
16350 {32 * 1024, 1},
16351 {64 * 1024, 3},
16352 },
16353 .block_erase = erase_sector_jedec,
16354 }, {
16355 .eraseblocks = { {256 * 1024, 1} },
16356 .block_erase = erase_chip_block_jedec,
16357 },
16358 },
Sean Nelson35727f72010-01-28 23:55:12 +000016359 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016360 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016361 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016362 },
16363
16364 {
Uwe Hermanna106d152009-05-27 23:17:40 +000016365 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016366 .name = "TMS29F002RT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016367 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016368 .manufacture_id = TI_OLD_ID,
16369 .model_id = TI_TMS29F002RT,
16370 .total_size = 256,
16371 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000016372 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016373 .tested = TEST_UNTESTED,
16374 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000016375 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000016376 .block_erasers =
16377 {
16378 {
16379 .eraseblocks = {
16380 {64 * 1024, 3},
16381 {32 * 1024, 1},
16382 {8 * 1024, 2},
16383 {16 * 1024, 1},
16384 },
16385 .block_erase = erase_sector_jedec,
16386 }, {
16387 .eraseblocks = { {256 * 1024, 1} },
16388 .block_erase = erase_chip_block_jedec,
16389 },
16390 },
Sean Nelson35727f72010-01-28 23:55:12 +000016391 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016392 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016393 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016394 },
16395
16396 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016397 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100016398 .name = "W25P16",
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000016399 .bustype = BUS_SPI,
16400 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016401 .model_id = WINBOND_NEX_W25P16,
16402 .total_size = 2048,
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000016403 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016404 .feature_bits = FEATURE_WRSR_WREN,
16405 .tested = TEST_UNTESTED,
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000016406 .probe = probe_spi_rdid,
16407 .probe_timing = TIMING_ZERO,
16408 .block_erasers =
16409 {
16410 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016411 .eraseblocks = { {64 * 1024, 32} },
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000016412 .block_erase = spi_block_erase_d8,
16413 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016414 .eraseblocks = { {2048 * 1024, 1} },
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000016415 .block_erase = spi_block_erase_c7,
16416 }
16417 },
16418 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16419 .unlock = spi_disable_blockprotect,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016420 .write = spi_chip_write_256,
16421 .read = spi_chip_read, /* Fast read (0x0B) supported */
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000016422 .voltage = {2700, 3600},
16423 },
16424
16425 {
16426 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100016427 .name = "W25P32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016428 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000016429 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016430 .model_id = WINBOND_NEX_W25P32,
16431 .total_size = 4096,
Rudolf Marekce1c7982010-04-20 19:34:31 +000016432 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016433 .feature_bits = FEATURE_WRSR_WREN,
16434 .tested = TEST_UNTESTED,
Rudolf Marekce1c7982010-04-20 19:34:31 +000016435 .probe = probe_spi_rdid,
16436 .probe_timing = TIMING_ZERO,
16437 .block_erasers =
16438 {
16439 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016440 .eraseblocks = { {64 * 1024, 64} },
16441 .block_erase = spi_block_erase_d8,
Rudolf Marekce1c7982010-04-20 19:34:31 +000016442 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016443 .eraseblocks = { {4096 * 1024, 1} },
16444 .block_erase = spi_block_erase_c7,
16445 }
16446 },
16447 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16448 .unlock = spi_disable_blockprotect,
16449 .write = spi_chip_write_256,
16450 .read = spi_chip_read, /* Fast read (0x0B) supported */
16451 .voltage = {2700, 3600},
16452 },
16453
16454 {
16455 .vendor = "Winbond",
16456 .name = "W25P80",
16457 .bustype = BUS_SPI,
16458 .manufacture_id = WINBOND_NEX_ID,
16459 .model_id = WINBOND_NEX_W25P80,
16460 .total_size = 1024,
16461 .page_size = 256,
16462 .feature_bits = FEATURE_WRSR_WREN,
16463 .tested = TEST_UNTESTED,
16464 .probe = probe_spi_rdid,
16465 .probe_timing = TIMING_ZERO,
16466 .block_erasers =
16467 {
16468 {
Rudolf Marekce1c7982010-04-20 19:34:31 +000016469 .eraseblocks = { {64 * 1024, 16} },
16470 .block_erase = spi_block_erase_d8,
16471 }, {
16472 .eraseblocks = { {1024 * 1024, 1} },
Rudolf Marekce1c7982010-04-20 19:34:31 +000016473 .block_erase = spi_block_erase_c7,
16474 }
16475 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000016476 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000016477 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000016478 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016479 .read = spi_chip_read, /* Fast read (0x0B) supported */
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016480 .voltage = {2700, 3600},
David Hendricksc4acec92010-06-24 11:39:57 +000016481 },
16482
16483 {
16484 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016485 .name = "W25Q128.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016486 .bustype = BUS_SPI,
Antony Rheneus0fbba982011-05-26 14:28:51 +000016487 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016488 .model_id = WINBOND_NEX_W25Q128_V,
Antony Rheneus0fbba982011-05-26 14:28:51 +000016489 .total_size = 16384,
16490 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016491 /* supports SFDP */
16492 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000016493 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +000016494 .tested = TEST_OK_PREW,
Antony Rheneus0fbba982011-05-26 14:28:51 +000016495 .probe = probe_spi_rdid,
16496 .probe_timing = TIMING_ZERO,
16497 .block_erasers =
16498 {
16499 {
16500 .eraseblocks = { {4 * 1024, 4096} },
16501 .block_erase = spi_block_erase_20,
16502 }, {
16503 .eraseblocks = { {32 * 1024, 512} },
16504 .block_erase = spi_block_erase_52,
16505 }, {
16506 .eraseblocks = { {64 * 1024, 256} },
16507 .block_erase = spi_block_erase_d8,
16508 }, {
16509 .eraseblocks = { {16 * 1024 * 1024, 1} },
16510 .block_erase = spi_block_erase_60,
16511 }, {
16512 .eraseblocks = { {16 * 1024 * 1024, 1} },
16513 .block_erase = spi_block_erase_c7,
16514 }
16515 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000016516 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Antony Rheneus0fbba982011-05-26 14:28:51 +000016517 .unlock = spi_disable_blockprotect,
16518 .write = spi_chip_write_256,
16519 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016520 .voltage = {2700, 3600},
16521 },
16522
16523 {
16524 .vendor = "Winbond",
Patrick Rudolph34323492018-10-04 14:59:40 +020016525 .name = "W25Q128.V..M",
16526 .bustype = BUS_SPI,
16527 .manufacture_id = WINBOND_NEX_ID,
16528 .model_id = WINBOND_NEX_W25Q128_V_M,
16529 .total_size = 16384,
16530 .page_size = 256,
16531 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
16532 .tested = TEST_OK_PREW,
16533 .probe = probe_spi_rdid,
16534 .probe_timing = TIMING_ZERO,
16535 .block_erasers =
16536 {
16537 {
16538 .eraseblocks = { {4 * 1024, 4096} },
16539 .block_erase = spi_block_erase_20,
16540 }, {
16541 .eraseblocks = { {32 * 1024, 512} },
16542 .block_erase = spi_block_erase_52,
16543 }, {
16544 .eraseblocks = { {64 * 1024, 256} },
16545 .block_erase = spi_block_erase_d8,
16546 }, {
16547 .eraseblocks = { {16 * 1024 * 1024, 1} },
16548 .block_erase = spi_block_erase_60,
16549 }, {
16550 .eraseblocks = { {16 * 1024 * 1024, 1} },
16551 .block_erase = spi_block_erase_c7,
16552 }
16553 },
Alan Greena1fc01d2019-09-23 17:12:44 +100016554 .printlock = spi_prettyprint_status_register_plain,
Patrick Rudolph34323492018-10-04 14:59:40 +020016555 .unlock = spi_disable_blockprotect,
16556 .write = spi_chip_write_256,
16557 .read = spi_chip_read,
16558 .voltage = {2700, 3600},
16559 },
16560
16561 {
16562 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100016563 .name = "W25Q128.W",
16564 .bustype = BUS_SPI,
16565 .manufacture_id = WINBOND_NEX_ID,
16566 .model_id = WINBOND_NEX_W25Q128_W,
16567 .total_size = 16384,
16568 .page_size = 256,
16569 /* supports SFDP */
16570 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
16571 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
16572 .tested = TEST_OK_PREW,
16573 .probe = probe_spi_rdid,
16574 .probe_timing = TIMING_ZERO,
16575 .block_erasers =
16576 {
16577 {
16578 .eraseblocks = { {4 * 1024, 4096} },
16579 .block_erase = spi_block_erase_20,
16580 }, {
16581 .eraseblocks = { {32 * 1024, 512} },
16582 .block_erase = spi_block_erase_52,
16583 }, {
16584 .eraseblocks = { {64 * 1024, 256} },
16585 .block_erase = spi_block_erase_d8,
16586 }, {
16587 .eraseblocks = { {16 * 1024 * 1024, 1} },
16588 .block_erase = spi_block_erase_60,
16589 }, {
16590 .eraseblocks = { {16 * 1024 * 1024, 1} },
16591 .block_erase = spi_block_erase_c7,
16592 }
16593 },
16594 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16595 .unlock = spi_disable_blockprotect,
16596 .write = spi_chip_write_256,
16597 .read = spi_chip_read,
16598 .voltage = {1650, 1950},
16599 },
16600
16601 {
16602 .vendor = "Winbond",
Peichao Wang1a119492019-11-11 15:26:41 +080016603 .name = "W25Q128.JW.DTR",
16604 .bustype = BUS_SPI,
16605 .manufacture_id = WINBOND_NEX_ID,
16606 .model_id = WINBOND_NEX_W25Q128_DTR,
16607 .total_size = 16384,
16608 .page_size = 256,
16609 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
16610 .tested = TEST_OK_PREW,
16611 .probe = probe_spi_rdid,
16612 .probe_timing = TIMING_ZERO,
16613 .block_erasers =
16614 {
16615 {
16616 .eraseblocks = { {4 * 1024, 4096} },
16617 .block_erase = spi_block_erase_20,
16618 }, {
16619 .eraseblocks = { {32 * 1024, 512} },
16620 .block_erase = spi_block_erase_52,
16621 }, {
16622 .eraseblocks = { {64 * 1024, 256} },
16623 .block_erase = spi_block_erase_d8,
16624 }, {
16625 .eraseblocks = { {16 * 1024 * 1024, 1} },
16626 .block_erase = spi_block_erase_60,
16627 }, {
16628 .eraseblocks = { {16 * 1024 * 1024, 1} },
16629 .block_erase = spi_block_erase_c7,
16630 }
16631 },
16632 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16633 .unlock = spi_disable_blockprotect,
16634 .write = spi_chip_write_256,
16635 .read = spi_chip_read,
16636 .voltage = {1650, 1950},
16637 },
16638
16639 {
16640 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100016641 .name = "W25Q16.V",
16642 .bustype = BUS_SPI,
16643 .manufacture_id = WINBOND_NEX_ID,
16644 .model_id = WINBOND_NEX_W25Q16_V,
16645 .total_size = 2048,
16646 .page_size = 256,
16647 /* supports SFDP */
16648 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
16649 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16650 .tested = TEST_OK_PREW,
16651 .probe = probe_spi_rdid,
16652 .probe_timing = TIMING_ZERO,
16653 .block_erasers =
16654 {
16655 {
16656 .eraseblocks = { {4 * 1024, 512} },
16657 .block_erase = spi_block_erase_20,
16658 }, {
16659 .eraseblocks = { {32 * 1024, 64} },
16660 .block_erase = spi_block_erase_52,
16661 }, {
16662 .eraseblocks = { {64 * 1024, 32} },
16663 .block_erase = spi_block_erase_d8,
16664 }, {
16665 .eraseblocks = { {2 * 1024 * 1024, 1} },
16666 .block_erase = spi_block_erase_60,
16667 }, {
16668 .eraseblocks = { {2 * 1024 * 1024, 1} },
16669 .block_erase = spi_block_erase_c7,
16670 }
16671 },
16672 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16673 .unlock = spi_disable_blockprotect,
16674 .write = spi_chip_write_256,
16675 .read = spi_chip_read,
16676 .voltage = {2700, 3600},
16677 },
16678
16679 {
16680 .vendor = "Winbond",
16681 .name = "W25Q16.W",
16682 .bustype = BUS_SPI,
16683 .manufacture_id = WINBOND_NEX_ID,
16684 .model_id = WINBOND_NEX_W25Q16_W,
16685 .total_size = 2048,
16686 .page_size = 256,
16687 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
16688 /* QPI enable 0x38, disable 0xFF */
16689 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
16690 .tested = TEST_UNTESTED,
16691 .probe = probe_spi_rdid,
16692 .probe_timing = TIMING_ZERO,
16693 .block_erasers =
16694 {
16695 {
16696 .eraseblocks = { {4 * 1024, 512} },
16697 .block_erase = spi_block_erase_20,
16698 }, {
16699 .eraseblocks = { {32 * 1024, 64} },
16700 .block_erase = spi_block_erase_52,
16701 }, {
16702 .eraseblocks = { {64 * 1024, 32} },
16703 .block_erase = spi_block_erase_d8,
16704 }, {
16705 .eraseblocks = { {2 * 1024 * 1024, 1} },
16706 .block_erase = spi_block_erase_60,
16707 }, {
16708 .eraseblocks = { {2 * 1024 * 1024, 1} },
16709 .block_erase = spi_block_erase_c7,
16710 }
16711 },
16712 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16713 .unlock = spi_disable_blockprotect,
16714 .write = spi_chip_write_256,
16715 .read = spi_chip_read,
16716 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
16717 },
16718
16719 {
16720 .vendor = "Winbond",
16721 .name = "W25Q20.W",
16722 .bustype = BUS_SPI,
16723 .manufacture_id = WINBOND_NEX_ID,
16724 .model_id = WINBOND_NEX_W25Q20_W,
16725 .total_size = 256,
16726 .page_size = 256,
16727 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
16728 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16729 .tested = TEST_UNTESTED,
16730 .probe = probe_spi_rdid,
16731 .probe_timing = TIMING_ZERO,
16732 .block_erasers =
16733 {
16734 {
16735 .eraseblocks = { {4 * 1024, 64} },
16736 .block_erase = spi_block_erase_20,
16737 }, {
16738 .eraseblocks = { {32 * 1024, 8} },
16739 .block_erase = spi_block_erase_52,
16740 }, {
16741 .eraseblocks = { {64 * 1024, 4} },
16742 .block_erase = spi_block_erase_d8,
16743 }, {
16744 .eraseblocks = { {256 * 1024, 1} },
16745 .block_erase = spi_block_erase_60,
16746 }, {
16747 .eraseblocks = { {256 * 1024, 1} },
16748 .block_erase = spi_block_erase_c7,
16749 }
16750 },
16751 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16752 .unlock = spi_disable_blockprotect,
16753 .write = spi_chip_write_256,
16754 .read = spi_chip_read,
16755 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
16756 },
16757
16758 {
16759 .vendor = "Winbond",
Boris Baykovaa6c3742016-06-11 18:29:01 +020016760 .name = "W25Q256.V",
16761 .bustype = BUS_SPI,
16762 .manufacture_id = WINBOND_NEX_ID,
16763 .model_id = WINBOND_NEX_W25Q256_V,
16764 .total_size = 32768,
16765 .page_size = 256,
16766 /* supports SFDP */
16767 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
16768 /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */
Nico Huberaac81422017-11-10 22:54:13 +010016769 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_ENTER_WREN
16770 | FEATURE_4BA_EXT_ADDR | FEATURE_4BA_READ | FEATURE_4BA_FAST_READ,
Angel Pons3130cbd2018-09-30 19:32:30 +020016771 .tested = TEST_OK_PREW,
Boris Baykovaa6c3742016-06-11 18:29:01 +020016772 .probe = probe_spi_rdid,
16773 .probe_timing = TIMING_ZERO,
16774 .block_erasers =
16775 {
16776 {
16777 .eraseblocks = { {4 * 1024, 8192} },
Nico Huber7a077222017-10-14 18:18:30 +020016778 .block_erase = spi_block_erase_20,
Boris Baykovaa6c3742016-06-11 18:29:01 +020016779 }, {
16780 .eraseblocks = { {32 * 1024, 1024} },
Nico Huber7a077222017-10-14 18:18:30 +020016781 .block_erase = spi_block_erase_52,
Boris Baykovaa6c3742016-06-11 18:29:01 +020016782 }, {
16783 .eraseblocks = { {64 * 1024, 512} },
Nico Huber7a077222017-10-14 18:18:30 +020016784 .block_erase = spi_block_erase_d8,
Boris Baykovaa6c3742016-06-11 18:29:01 +020016785 }, {
16786 .eraseblocks = { {32 * 1024 * 1024, 1} },
16787 .block_erase = spi_block_erase_60,
16788 }, {
16789 .eraseblocks = { {32 * 1024 * 1024, 1} },
16790 .block_erase = spi_block_erase_c7,
16791 }
16792 },
16793 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16794 .unlock = spi_disable_blockprotect,
16795 .write = spi_chip_write_256,
16796 .read = spi_chip_read,
16797 .voltage = {2700, 3600},
16798 },
16799
16800 {
16801 .vendor = "Winbond",
David Hendricks49876792018-10-27 20:19:42 +000016802 .name = "W25Q256JV_M",
16803 .bustype = BUS_SPI,
16804 .manufacture_id = WINBOND_NEX_ID,
16805 .model_id = WINBOND_NEX_W25Q256JV_M,
16806 .total_size = 32768,
16807 .page_size = 256,
16808 /* supports SFDP */
16809 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
16810 /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */
16811 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
16812 .tested = TEST_OK_PREW,
16813 .probe = probe_spi_rdid,
16814 .probe_timing = TIMING_ZERO,
16815 .block_erasers =
16816 {
16817 {
16818 .eraseblocks = { {4 * 1024, 8192} },
16819 .block_erase = spi_block_erase_21,
16820 }, {
16821 .eraseblocks = { {4 * 1024, 8192} },
16822 .block_erase = spi_block_erase_20,
16823 }, {
16824 .eraseblocks = { {32 * 1024, 1024} },
16825 .block_erase = spi_block_erase_52,
16826 }, {
16827 .eraseblocks = { {64 * 1024, 512} },
16828 .block_erase = spi_block_erase_dc,
16829 }, {
16830 .eraseblocks = { {64 * 1024, 512} },
16831 .block_erase = spi_block_erase_d8,
16832 }, {
16833 .eraseblocks = { {32 * 1024 * 1024, 1} },
16834 .block_erase = spi_block_erase_60,
16835 }, {
16836 .eraseblocks = { {32 * 1024 * 1024, 1} },
16837 .block_erase = spi_block_erase_c7,
16838 }
16839 },
16840 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16841 .unlock = spi_disable_blockprotect,
16842 .write = spi_chip_write_256,
16843 .read = spi_chip_read,
16844 .voltage = {2700, 3600},
16845 },
16846
16847 {
16848 .vendor = "Winbond",
el-coderon01209852020-04-29 12:12:53 +020016849 .name = "W25Q256.W",
16850 .bustype = BUS_SPI,
16851 .manufacture_id = WINBOND_NEX_ID,
16852 .model_id = WINBOND_NEX_W25Q256_W,
16853 .total_size = 32768,
16854 .page_size = 256,
16855 /* supports SFDP */
16856 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
16857 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_ENTER_WREN
16858 | FEATURE_4BA_EXT_ADDR | FEATURE_4BA_READ | FEATURE_4BA_FAST_READ,
16859 .tested = TEST_OK_PREW,
16860 .probe = probe_spi_rdid,
16861 .probe_timing = TIMING_ZERO,
16862 .block_erasers =
16863 {
16864 {
16865 .eraseblocks = { {4 * 1024, 8192} },
16866 .block_erase = spi_block_erase_20,
16867 }, {
16868 .eraseblocks = { {32 * 1024, 1024} },
16869 .block_erase = spi_block_erase_52,
16870 }, {
16871 .eraseblocks = { {64 * 1024, 512} },
16872 .block_erase = spi_block_erase_d8,
16873 }, {
16874 .eraseblocks = { {32 * 1024 * 1024, 1} },
16875 .block_erase = spi_block_erase_60,
16876 }, {
16877 .eraseblocks = { {32 * 1024 * 1024, 1} },
16878 .block_erase = spi_block_erase_c7,
16879 }
16880 },
16881 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16882 .unlock = spi_disable_blockprotect,
16883 .write = spi_chip_write_256,
16884 .read = spi_chip_read,
16885 .voltage = {1650, 1950},
16886 },
16887
16888 {
16889 .vendor = "Winbond",
David Hendricks31532602020-08-16 17:14:56 -070016890 .name = "W25Q256JW_DTR",
16891 .bustype = BUS_SPI,
16892 .manufacture_id = WINBOND_NEX_ID,
16893 .model_id = WINBOND_NEX_W25Q256_DTR,
16894 .total_size = 32768,
16895 .page_size = 256,
16896 /* supports SFDP */
16897 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
16898 /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */
16899 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
16900 .tested = TEST_OK_PREW,
16901 .probe = probe_spi_rdid,
16902 .probe_timing = TIMING_ZERO,
16903 .block_erasers =
16904 {
16905 {
16906 .eraseblocks = { {4 * 1024, 8192} },
16907 .block_erase = spi_block_erase_21,
16908 }, {
16909 .eraseblocks = { {4 * 1024, 8192} },
16910 .block_erase = spi_block_erase_20,
16911 }, {
16912 .eraseblocks = { {32 * 1024, 1024} },
16913 .block_erase = spi_block_erase_52,
16914 }, {
16915 .eraseblocks = { {64 * 1024, 512} },
16916 .block_erase = spi_block_erase_dc,
16917 }, {
16918 .eraseblocks = { {64 * 1024, 512} },
16919 .block_erase = spi_block_erase_d8,
16920 }, {
16921 .eraseblocks = { {32 * 1024 * 1024, 1} },
16922 .block_erase = spi_block_erase_60,
16923 }, {
16924 .eraseblocks = { {32 * 1024 * 1024, 1} },
16925 .block_erase = spi_block_erase_c7,
16926 }
16927 },
16928 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16929 .unlock = spi_disable_blockprotect,
16930 .write = spi_chip_write_256,
16931 .read = spi_chip_read,
16932 .voltage = {1700, 1950},
16933 },
16934
16935 {
16936 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100016937 .name = "W25Q32.V",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016938 .bustype = BUS_SPI,
16939 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016940 .model_id = WINBOND_NEX_W25Q32_V,
16941 .total_size = 4096,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016942 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016943 /* supports SFDP */
16944 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016945 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016946 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016947 .probe = probe_spi_rdid,
16948 .probe_timing = TIMING_ZERO,
16949 .block_erasers =
16950 {
16951 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016952 .eraseblocks = { {4 * 1024, 1024} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016953 .block_erase = spi_block_erase_20,
16954 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016955 .eraseblocks = { {32 * 1024, 128} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016956 .block_erase = spi_block_erase_52,
16957 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016958 .eraseblocks = { {64 * 1024, 64} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016959 .block_erase = spi_block_erase_d8,
16960 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016961 .eraseblocks = { {4 * 1024 * 1024, 1} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016962 .block_erase = spi_block_erase_60,
16963 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016964 .eraseblocks = { {4 * 1024 * 1024, 1} },
16965 .block_erase = spi_block_erase_c7,
16966 }
16967 },
16968 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16969 .unlock = spi_disable_blockprotect,
16970 .write = spi_chip_write_256,
16971 .read = spi_chip_read,
16972 .voltage = {2700, 3600},
16973 },
16974
16975 {
16976 .vendor = "Winbond",
16977 .name = "W25Q32.W",
16978 .bustype = BUS_SPI,
16979 .manufacture_id = WINBOND_NEX_ID,
16980 .model_id = WINBOND_NEX_W25Q32_W,
16981 .total_size = 4096,
16982 .page_size = 256,
16983 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
16984 /* QPI enable 0x38, disable 0xFF */
16985 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
16986 .tested = TEST_OK_PREW,
16987 .probe = probe_spi_rdid,
16988 .probe_timing = TIMING_ZERO,
16989 .block_erasers =
16990 {
16991 {
16992 .eraseblocks = { {4 * 1024, 1024} },
16993 .block_erase = spi_block_erase_20,
16994 }, {
16995 .eraseblocks = { {32 * 1024, 128} },
16996 .block_erase = spi_block_erase_52,
16997 }, {
16998 .eraseblocks = { {64 * 1024, 64} },
16999 .block_erase = spi_block_erase_d8,
17000 }, {
17001 .eraseblocks = { {4 * 1024 * 1024, 1} },
17002 .block_erase = spi_block_erase_60,
17003 }, {
17004 .eraseblocks = { {4 * 1024 * 1024, 1} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017005 .block_erase = spi_block_erase_c7,
17006 }
17007 },
17008 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17009 .unlock = spi_disable_blockprotect,
17010 .write = spi_chip_write_256,
17011 .read = spi_chip_read,
17012 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
17013 },
17014
17015 {
17016 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017017 .name = "W25Q40.V",
17018 .bustype = BUS_SPI,
17019 .manufacture_id = WINBOND_NEX_ID,
17020 .model_id = WINBOND_NEX_W25Q40_V,
17021 .total_size = 512,
17022 .page_size = 256,
17023 /* supports SFDP */
17024 /* OTP: 756B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17025 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17026 .tested = TEST_OK_PREW,
17027 .probe = probe_spi_rdid,
17028 .probe_timing = TIMING_ZERO,
17029 .block_erasers =
17030 {
17031 {
17032 .eraseblocks = { {4 * 1024, 128} },
17033 .block_erase = spi_block_erase_20,
17034 }, {
17035 .eraseblocks = { {32 * 1024, 16} },
17036 .block_erase = spi_block_erase_52,
17037 }, {
17038 .eraseblocks = { {64 * 1024, 8} },
17039 .block_erase = spi_block_erase_d8,
17040 }, {
17041 .eraseblocks = { {512 * 1024, 1} },
17042 .block_erase = spi_block_erase_60,
17043 }, {
17044 .eraseblocks = { {512 * 1024, 1} },
17045 .block_erase = spi_block_erase_c7,
17046 }
17047 },
17048 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17049 .unlock = spi_disable_blockprotect,
17050 .write = spi_chip_write_256, /* Multi I/O supported */
17051 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
17052 .voltage = {2700, 3600},
17053 },
17054
17055 {
17056 .vendor = "Winbond",
Nico Huber25683572018-03-30 13:50:13 +020017057 .name = "W25Q40BW",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017058 .bustype = BUS_SPI,
17059 .manufacture_id = WINBOND_NEX_ID,
Nico Huber25683572018-03-30 13:50:13 +020017060 .model_id = WINBOND_NEX_W25Q40BW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017061 .total_size = 512,
17062 .page_size = 256,
17063 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17064 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Angel Pons3164a0c2018-09-30 20:26:06 +020017065 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017066 .probe = probe_spi_rdid,
17067 .probe_timing = TIMING_ZERO,
17068 .block_erasers =
17069 {
17070 {
17071 .eraseblocks = { {4 * 1024, 128} },
17072 .block_erase = spi_block_erase_20,
17073 }, {
17074 .eraseblocks = { {32 * 1024, 16} },
17075 .block_erase = spi_block_erase_52,
17076 }, {
17077 .eraseblocks = { {64 * 1024, 8} },
17078 .block_erase = spi_block_erase_d8,
17079 }, {
17080 .eraseblocks = { {512 * 1024, 1} },
17081 .block_erase = spi_block_erase_60,
17082 }, {
17083 .eraseblocks = { {512 * 1024, 1} },
17084 .block_erase = spi_block_erase_c7,
17085 }
17086 },
17087 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17088 .unlock = spi_disable_blockprotect,
17089 .write = spi_chip_write_256,
17090 .read = spi_chip_read,
17091 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
17092 },
17093
17094 {
17095 .vendor = "Winbond",
Nico Huber25683572018-03-30 13:50:13 +020017096 .name = "W25Q40EW",
17097 .bustype = BUS_SPI,
17098 .manufacture_id = WINBOND_NEX_ID,
17099 .model_id = WINBOND_NEX_W25Q40EW,
17100 .total_size = 512,
17101 .page_size = 256,
17102 /* OTP: 3*256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17103 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Alan Green07b8a172019-09-23 16:47:05 +100017104 .tested = TEST_OK_PREW,
Nico Huber25683572018-03-30 13:50:13 +020017105 .probe = probe_spi_rdid,
17106 .probe_timing = TIMING_ZERO,
17107 .block_erasers =
17108 {
17109 {
17110 .eraseblocks = { {4 * 1024, 128} },
17111 .block_erase = spi_block_erase_20,
17112 }, {
17113 .eraseblocks = { {32 * 1024, 16} },
17114 .block_erase = spi_block_erase_52,
17115 }, {
17116 .eraseblocks = { {64 * 1024, 8} },
17117 .block_erase = spi_block_erase_d8,
17118 }, {
17119 .eraseblocks = { {512 * 1024, 1} },
17120 .block_erase = spi_block_erase_60,
17121 }, {
17122 .eraseblocks = { {512 * 1024, 1} },
17123 .block_erase = spi_block_erase_c7,
17124 }
17125 },
17126 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17127 .unlock = spi_disable_blockprotect,
17128 .write = spi_chip_write_256,
17129 .read = spi_chip_read,
17130 .voltage = {1650, 1950}, /* Fast read (0x0B) and multi I/O supported */
17131 },
17132
Stanislav Sedovf5775442018-03-07 14:16:51 -080017133 {
17134 .vendor = "Winbond",
Joel Stanley55439612019-07-27 19:25:35 +093017135 .name = "W25Q512JV",
17136 .bustype = BUS_SPI,
17137 .manufacture_id = WINBOND_NEX_ID,
17138 .model_id = WINBOND_NEX_W25Q512JV,
17139 .total_size = 64 * 1024,
17140 .page_size = 256,
17141 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
17142 .tested = TEST_OK_PREW,
17143 .probe = probe_spi_rdid,
17144 .probe_timing = TIMING_ZERO,
17145 .block_erasers =
17146 {
17147 {
17148 .eraseblocks = { {4 * 1024, 16384} },
17149 .block_erase = spi_block_erase_21,
17150 }, {
17151 .eraseblocks = { {4 * 1024, 16384} },
17152 .block_erase = spi_block_erase_20,
17153 }, {
17154 .eraseblocks = { {32 * 1024, 2048} },
17155 .block_erase = spi_block_erase_52,
17156 }, {
17157 .eraseblocks = { {64 * 1024, 1024} },
17158 .block_erase = spi_block_erase_dc,
17159 }, {
17160 .eraseblocks = { {64 * 1024, 1024} },
17161 .block_erase = spi_block_erase_d8,
17162 }, {
17163 .eraseblocks = { {64 * 1024 * 1024, 1} },
17164 .block_erase = spi_block_erase_60,
17165 }, {
17166 .eraseblocks = { {64 * 1024 * 1024, 1} },
17167 .block_erase = spi_block_erase_c7,
17168 }
17169 },
17170 .printlock = spi_prettyprint_status_register_plain,
17171 .unlock = spi_disable_blockprotect,
17172 .write = spi_chip_write_256,
17173 .read = spi_chip_read,
17174 .voltage = {2700, 3600},
17175 },
17176
17177 {
17178 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017179 .name = "W25Q64.V",
Stanislav Sedovf5775442018-03-07 14:16:51 -080017180 .bustype = BUS_SPI,
17181 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017182 .model_id = WINBOND_NEX_W25Q64_V,
17183 .total_size = 8192,
Stanislav Sedovf5775442018-03-07 14:16:51 -080017184 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017185 /* supports SFDP */
17186 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Stanislav Sedovf5775442018-03-07 14:16:51 -080017187 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17188 .tested = TEST_OK_PREW,
17189 .probe = probe_spi_rdid,
17190 .probe_timing = TIMING_ZERO,
17191 .block_erasers =
17192 {
17193 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017194 .eraseblocks = { {4 * 1024, 2048} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080017195 .block_erase = spi_block_erase_20,
17196 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017197 .eraseblocks = { {32 * 1024, 256} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080017198 .block_erase = spi_block_erase_52,
17199 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017200 .eraseblocks = { {64 * 1024, 128} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080017201 .block_erase = spi_block_erase_d8,
17202 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017203 .eraseblocks = { {8 * 1024 * 1024, 1} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080017204 .block_erase = spi_block_erase_60,
17205 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017206 .eraseblocks = { {8 * 1024 * 1024, 1} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080017207 .block_erase = spi_block_erase_c7,
17208 }
17209 },
17210 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17211 .unlock = spi_disable_blockprotect,
17212 .write = spi_chip_write_256,
17213 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017214 .voltage = {2700, 3600},
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017215 },
17216
17217 {
17218 .vendor = "Winbond",
17219 .name = "W25Q64.W",
17220 .bustype = BUS_SPI,
17221 .manufacture_id = WINBOND_NEX_ID,
17222 .model_id = WINBOND_NEX_W25Q64_W,
17223 .total_size = 8192,
17224 .page_size = 256,
17225 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17226 /* QPI enable 0x38, disable 0xFF */
17227 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner0554ca52013-07-25 22:54:25 +000017228 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017229 .probe = probe_spi_rdid,
17230 .probe_timing = TIMING_ZERO,
17231 .block_erasers =
17232 {
17233 {
17234 .eraseblocks = { {4 * 1024, 2048} },
17235 .block_erase = spi_block_erase_20,
17236 }, {
17237 .eraseblocks = { {32 * 1024, 256} },
17238 .block_erase = spi_block_erase_52,
17239 }, {
17240 .eraseblocks = { {64 * 1024, 128} },
17241 .block_erase = spi_block_erase_d8,
17242 }, {
17243 .eraseblocks = { {8 * 1024 * 1024, 1} },
17244 .block_erase = spi_block_erase_60,
17245 }, {
17246 .eraseblocks = { {8 * 1024 * 1024, 1} },
17247 .block_erase = spi_block_erase_c7,
17248 }
17249 },
17250 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17251 .unlock = spi_disable_blockprotect,
17252 .write = spi_chip_write_256,
17253 .read = spi_chip_read,
17254 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
Antony Rheneus0fbba982011-05-26 14:28:51 +000017255 },
17256
17257 {
17258 .vendor = "Winbond",
Scott Chao1bbc5012020-04-08 22:10:50 +080017259 .name = "W25Q64JW",
17260 .bustype = BUS_SPI,
17261 .manufacture_id = WINBOND_NEX_ID,
17262 .model_id = WINBOND_NEX_W25Q64JW,
17263 .total_size = 8192,
17264 .page_size = 256,
17265 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17266 /* QPI enable 0x38, disable 0xFF */
17267 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
17268 .tested = TEST_OK_PREW,
17269 .probe = probe_spi_rdid,
17270 .probe_timing = TIMING_ZERO,
17271 .block_erasers =
17272 {
17273 {
17274 .eraseblocks = { {4 * 1024, 2048} },
17275 .block_erase = spi_block_erase_20,
17276 }, {
17277 .eraseblocks = { {32 * 1024, 256} },
17278 .block_erase = spi_block_erase_52,
17279 }, {
17280 .eraseblocks = { {64 * 1024, 128} },
17281 .block_erase = spi_block_erase_d8,
17282 }, {
17283 .eraseblocks = { {8 * 1024 * 1024, 1} },
17284 .block_erase = spi_block_erase_60,
17285 }, {
17286 .eraseblocks = { {8 * 1024 * 1024, 1} },
17287 .block_erase = spi_block_erase_c7,
17288 }
17289 },
17290 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17291 .unlock = spi_disable_blockprotect,
17292 .write = spi_chip_write_256,
17293 .read = spi_chip_read,
17294 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
17295 },
17296
17297 {
17298 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017299 .name = "W25Q80.V",
Nico Huber70eed9f2017-04-24 22:19:27 +020017300 .bustype = BUS_SPI,
17301 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017302 .model_id = WINBOND_NEX_W25Q80_V,
17303 .total_size = 1024,
Nico Huber70eed9f2017-04-24 22:19:27 +020017304 .page_size = 256,
17305 /* supports SFDP */
17306 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Alan Green1f9cc7d2019-07-01 11:10:45 +100017307 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks48729d32017-12-08 14:44:07 -080017308 .tested = TEST_OK_PREW,
Nico Huber70eed9f2017-04-24 22:19:27 +020017309 .probe = probe_spi_rdid,
17310 .probe_timing = TIMING_ZERO,
17311 .block_erasers =
17312 {
17313 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017314 .eraseblocks = { {4 * 1024, 256} },
Nico Huber70eed9f2017-04-24 22:19:27 +020017315 .block_erase = spi_block_erase_20,
17316 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017317 .eraseblocks = { {32 * 1024, 32} },
Nico Huber70eed9f2017-04-24 22:19:27 +020017318 .block_erase = spi_block_erase_52,
17319 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017320 .eraseblocks = { {64 * 1024, 16} },
Nico Huber70eed9f2017-04-24 22:19:27 +020017321 .block_erase = spi_block_erase_d8,
17322 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017323 .eraseblocks = { {1024 * 1024, 1} },
Nico Huber70eed9f2017-04-24 22:19:27 +020017324 .block_erase = spi_block_erase_60,
17325 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017326 .eraseblocks = { {1024 * 1024, 1} },
Nico Huber70eed9f2017-04-24 22:19:27 +020017327 .block_erase = spi_block_erase_c7,
17328 }
17329 },
17330 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17331 .unlock = spi_disable_blockprotect,
17332 .write = spi_chip_write_256,
17333 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017334 .voltage = {2700, 3600},
17335 },
17336
17337 {
17338 .vendor = "Winbond",
17339 .name = "W25Q80BW",
17340 .bustype = BUS_SPI,
17341 .manufacture_id = WINBOND_NEX_ID,
17342 .model_id = WINBOND_NEX_W25Q80BW,
17343 .total_size = 1024,
17344 .page_size = 256,
17345 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17346 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17347 .tested = TEST_OK_PREW,
17348 .probe = probe_spi_rdid,
17349 .probe_timing = TIMING_ZERO,
17350 .block_erasers =
17351 {
17352 {
17353 .eraseblocks = { {4 * 1024, 256} },
17354 .block_erase = spi_block_erase_20,
17355 }, {
17356 .eraseblocks = { {32 * 1024, 32} },
17357 .block_erase = spi_block_erase_52,
17358 }, {
17359 .eraseblocks = { {64 * 1024, 16} },
17360 .block_erase = spi_block_erase_d8,
17361 }, {
17362 .eraseblocks = { {1 * 1024 * 1024, 1} },
17363 .block_erase = spi_block_erase_60,
17364 }, {
17365 .eraseblocks = { {1 * 1024 * 1024, 1} },
17366 .block_erase = spi_block_erase_c7,
17367 }
17368 },
17369 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17370 .unlock = spi_disable_blockprotect,
17371 .write = spi_chip_write_256,
17372 .read = spi_chip_read,
17373 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
17374 },
17375
17376 {
17377 .vendor = "Winbond",
17378 .name = "W25Q80EW",
17379 .bustype = BUS_SPI,
17380 .manufacture_id = WINBOND_NEX_ID,
17381 .model_id = WINBOND_NEX_W25Q80EW,
17382 .total_size = 1024,
17383 .page_size = 256,
17384 /* OTP: 3*256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17385 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17386 .tested = TEST_OK_PREW,
17387 .probe = probe_spi_rdid,
17388 .probe_timing = TIMING_ZERO,
17389 .block_erasers =
17390 {
17391 {
17392 .eraseblocks = { {4 * 1024, 256} },
17393 .block_erase = spi_block_erase_20,
17394 }, {
17395 .eraseblocks = { {32 * 1024, 32} },
17396 .block_erase = spi_block_erase_52,
17397 }, {
17398 .eraseblocks = { {64 * 1024, 16} },
17399 .block_erase = spi_block_erase_d8,
17400 }, {
17401 .eraseblocks = { {1 * 1024 * 1024, 1} },
17402 .block_erase = spi_block_erase_60,
17403 }, {
17404 .eraseblocks = { {1 * 1024 * 1024, 1} },
17405 .block_erase = spi_block_erase_c7,
17406 }
17407 },
17408 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17409 .unlock = spi_disable_blockprotect,
17410 .write = spi_chip_write_256,
17411 .read = spi_chip_read,
17412 .voltage = {1650, 1950}, /* Fast read (0x0B) and multi I/O supported */
Nico Huber70eed9f2017-04-24 22:19:27 +020017413 },
17414
17415 {
17416 .vendor = "Winbond",
Jacob Appelbaumebbdc022019-09-02 09:10:43 -040017417 .name = "W25X05",
17418 .bustype = BUS_SPI,
17419 .manufacture_id = WINBOND_NEX_ID,
17420 .model_id = WINBOND_NEX_W25X05,
17421 .total_size = 64,
17422 .page_size = 256,
17423 .feature_bits = FEATURE_WRSR_WREN,
17424 .tested = TEST_OK_PREW,
17425 .probe = probe_spi_rdid,
17426 .probe_timing = TIMING_ZERO,
17427 .block_erasers =
17428 {
17429 {
17430 .eraseblocks = { {4 * 1024, 16} },
17431 .block_erase = spi_block_erase_20,
17432 }, {
17433 .eraseblocks = { {32 * 1024, 2} },
17434 .block_erase = spi_block_erase_52,
17435 }, {
17436 .eraseblocks = { {64 * 1024, 1} },
17437 .block_erase = spi_block_erase_d8,
17438 }
17439 },
17440 .printlock = spi_prettyprint_status_register_plain,
17441 .unlock = spi_disable_blockprotect,
17442 .write = spi_chip_write_256,
17443 .read = spi_chip_read,
17444 .voltage = {2300, 3600},
17445 },
17446
17447 {
17448 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000017449 .name = "W25X10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017450 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017451 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017452 .model_id = WINBOND_NEX_W25X10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017453 .total_size = 128,
17454 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000017455 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +000017456 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017457 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000017458 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017459 .block_erasers =
17460 {
17461 {
17462 .eraseblocks = { {4 * 1024, 32} },
17463 .block_erase = spi_block_erase_20,
17464 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017465 .eraseblocks = { {64 * 1024, 2} },
17466 .block_erase = spi_block_erase_d8,
17467 }, {
17468 .eraseblocks = { {128 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017469 .block_erase = spi_block_erase_c7,
17470 }
17471 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000017472 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000017473 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000017474 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017475 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017476 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000017477 },
17478
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017479 {
17480 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000017481 .name = "W25X16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017482 .bustype = BUS_SPI,
Hector Martina721ae22009-07-11 19:39:11 +000017483 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017484 .model_id = WINBOND_NEX_W25X16,
Hector Martina721ae22009-07-11 19:39:11 +000017485 .total_size = 2048,
17486 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000017487 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +000017488 .tested = TEST_OK_PREW,
Hector Martina721ae22009-07-11 19:39:11 +000017489 .probe = probe_spi_rdid,
17490 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017491 .block_erasers =
17492 {
17493 {
17494 .eraseblocks = { {4 * 1024, 512} },
17495 .block_erase = spi_block_erase_20,
17496 }, {
17497 .eraseblocks = { {32 * 1024, 64} },
17498 .block_erase = spi_block_erase_52,
17499 }, {
17500 .eraseblocks = { {64 * 1024, 32} },
17501 .block_erase = spi_block_erase_d8,
17502 }, {
17503 .eraseblocks = { {2 * 1024 * 1024, 1} },
17504 .block_erase = spi_block_erase_60,
17505 }, {
17506 .eraseblocks = { {2 * 1024 * 1024, 1} },
17507 .block_erase = spi_block_erase_c7,
17508 }
17509 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000017510 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000017511 .unlock = spi_disable_blockprotect,
Hector Martina721ae22009-07-11 19:39:11 +000017512 .write = spi_chip_write_256,
17513 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017514 .voltage = {2700, 3600},
Hector Martina721ae22009-07-11 19:39:11 +000017515 },
17516
17517 {
17518 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017519 .name = "W25X20",
17520 .bustype = BUS_SPI,
17521 .manufacture_id = WINBOND_NEX_ID,
17522 .model_id = WINBOND_NEX_W25X20,
17523 .total_size = 256,
17524 .page_size = 256,
17525 .feature_bits = FEATURE_WRSR_WREN,
17526 .tested = TEST_OK_PREW,
17527 .probe = probe_spi_rdid,
17528 .probe_timing = TIMING_ZERO,
17529 .block_erasers =
17530 {
17531 {
17532 .eraseblocks = { {4 * 1024, 64} },
17533 .block_erase = spi_block_erase_20,
17534 }, {
17535 .eraseblocks = { {64 * 1024, 4} },
17536 .block_erase = spi_block_erase_d8,
17537 }, {
17538 .eraseblocks = { {256 * 1024, 1} },
17539 .block_erase = spi_block_erase_c7,
17540 }
17541 },
17542 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17543 .unlock = spi_disable_blockprotect,
17544 .write = spi_chip_write_256,
17545 .read = spi_chip_read,
17546 .voltage = {2700, 3600},
17547 },
17548
17549 {
17550 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000017551 .name = "W25X32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017552 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000017553 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017554 .model_id = WINBOND_NEX_W25X32,
Zheng Bao1db2b752009-11-26 11:05:01 +000017555 .total_size = 4096,
17556 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000017557 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000017558 .tested = TEST_OK_PREW,
Zheng Bao1db2b752009-11-26 11:05:01 +000017559 .probe = probe_spi_rdid,
17560 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017561 .block_erasers =
17562 {
17563 {
17564 .eraseblocks = { {4 * 1024, 1024} },
17565 .block_erase = spi_block_erase_20,
17566 }, {
17567 .eraseblocks = { {32 * 1024, 128} },
17568 .block_erase = spi_block_erase_52,
17569 }, {
17570 .eraseblocks = { {64 * 1024, 64} },
17571 .block_erase = spi_block_erase_d8,
17572 }, {
17573 .eraseblocks = { {4 * 1024 * 1024, 1} },
17574 .block_erase = spi_block_erase_60,
17575 }, {
17576 .eraseblocks = { {4 * 1024 * 1024, 1} },
17577 .block_erase = spi_block_erase_c7,
17578 }
17579 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000017580 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000017581 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000017582 .write = spi_chip_write_256,
17583 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017584 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000017585 },
17586
17587 {
17588 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017589 .name = "W25X40",
17590 .bustype = BUS_SPI,
17591 .manufacture_id = WINBOND_NEX_ID,
17592 .model_id = WINBOND_NEX_W25X40,
17593 .total_size = 512,
17594 .page_size = 256,
17595 .feature_bits = FEATURE_WRSR_WREN,
17596 .tested = TEST_OK_PREW,
17597 .probe = probe_spi_rdid,
17598 .probe_timing = TIMING_ZERO,
17599 .block_erasers =
17600 {
17601 {
17602 .eraseblocks = { {4 * 1024, 128} },
17603 .block_erase = spi_block_erase_20,
17604 }, {
17605 .eraseblocks = { {64 * 1024, 8} },
17606 .block_erase = spi_block_erase_d8,
17607 }, {
17608 .eraseblocks = { {512 * 1024, 1} },
17609 .block_erase = spi_block_erase_c7,
17610 }
17611 },
17612 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17613 .unlock = spi_disable_blockprotect,
17614 .write = spi_chip_write_256,
17615 .read = spi_chip_read,
17616 .voltage = {2700, 3600},
17617 },
17618
17619 {
17620 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000017621 .name = "W25X64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017622 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000017623 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017624 .model_id = WINBOND_NEX_W25X64,
Zheng Bao1db2b752009-11-26 11:05:01 +000017625 .total_size = 8192,
17626 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000017627 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000017628 .tested = TEST_OK_PREW,
Zheng Bao1db2b752009-11-26 11:05:01 +000017629 .probe = probe_spi_rdid,
17630 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017631 .block_erasers =
17632 {
17633 {
17634 .eraseblocks = { {4 * 1024, 2048} },
17635 .block_erase = spi_block_erase_20,
17636 }, {
17637 .eraseblocks = { {32 * 1024, 256} },
17638 .block_erase = spi_block_erase_52,
17639 }, {
17640 .eraseblocks = { {64 * 1024, 128} },
17641 .block_erase = spi_block_erase_d8,
17642 }, {
17643 .eraseblocks = { {8 * 1024 * 1024, 1} },
17644 .block_erase = spi_block_erase_60,
17645 }, {
17646 .eraseblocks = { {8 * 1024 * 1024, 1} },
17647 .block_erase = spi_block_erase_c7,
17648 }
17649 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000017650 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000017651 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000017652 .write = spi_chip_write_256,
17653 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017654 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000017655 },
17656
17657 {
Alan Greenfa3fcd32019-06-27 15:41:50 +100017658 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017659 .name = "W25X80",
Alan Greenfa3fcd32019-06-27 15:41:50 +100017660 .bustype = BUS_SPI,
17661 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017662 .model_id = WINBOND_NEX_W25X80,
Alan Greenfa3fcd32019-06-27 15:41:50 +100017663 .total_size = 1024,
17664 .page_size = 256,
17665 .feature_bits = FEATURE_WRSR_WREN,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017666 .tested = TEST_OK_PREW,
Alan Greenfa3fcd32019-06-27 15:41:50 +100017667 .probe = probe_spi_rdid,
17668 .probe_timing = TIMING_ZERO,
17669 .block_erasers =
David Hendricksc9ee0ed2018-02-11 17:40:53 -080017670 {
17671 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017672 .eraseblocks = { {4 * 1024, 256} },
17673 .block_erase = spi_block_erase_20,
17674 }, {
David Hendricksc9ee0ed2018-02-11 17:40:53 -080017675 .eraseblocks = { {64 * 1024, 16} },
17676 .block_erase = spi_block_erase_d8,
17677 }, {
17678 .eraseblocks = { {1024 * 1024, 1} },
17679 .block_erase = spi_block_erase_c7,
17680 }
17681 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100017682 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17683 .unlock = spi_disable_blockprotect,
17684 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017685 .read = spi_chip_read,
Alan Greenfa3fcd32019-06-27 15:41:50 +100017686 .voltage = {2700, 3600},
David Hendricksc9ee0ed2018-02-11 17:40:53 -080017687 },
17688
Alan Greenf29ea362019-06-27 17:14:02 +100017689 /* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */
17690 {
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000017691 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000017692 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017693 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017694 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017695 .model_id = WINBOND_W29C010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017696 .total_size = 128,
17697 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000017698 .feature_bits = FEATURE_LONG_RESET,
David Hendricks567b7b82011-05-18 01:31:03 +000017699 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017700 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000017701 .probe_timing = 10, /* used datasheet for the W29C011A */
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017702 .block_erasers =
17703 {
17704 {
17705 .eraseblocks = { {128 * 1024, 1} },
17706 .block_erase = erase_chip_block_jedec,
17707 }
17708 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017709 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017710 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000017711 },
17712
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017713 {
17714 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017715 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old",
17716 .bustype = BUS_PARALLEL,
17717 .manufacture_id = WINBOND_ID,
17718 .model_id = WINBOND_W29C010,
17719 .total_size = 128,
17720 .page_size = 128,
17721 .feature_bits = FEATURE_LONG_RESET,
17722 .tested = TEST_OK_PREW,
17723 .probe = probe_w29ee011,
17724 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */
17725 .block_erasers =
17726 {
17727 {
17728 .eraseblocks = { {128 * 1024, 1} },
17729 .block_erase = erase_chip_block_jedec,
17730 }
17731 },
17732 .write = write_jedec,
17733 .read = read_memmapped,
17734 },
17735
17736 {
17737 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000017738 .name = "W29C020(C)/W29C022",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017739 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017740 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017741 .model_id = WINBOND_W29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017742 .total_size = 256,
17743 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000017744 .feature_bits = FEATURE_LONG_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000017745 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017746 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000017747 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017748 .block_erasers =
17749 {
17750 {
17751 .eraseblocks = { {256 * 1024, 1} },
17752 .block_erase = erase_chip_block_jedec,
17753 }
17754 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017755 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017756 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017757 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000017758 },
17759
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017760 {
17761 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000017762 .name = "W29C040/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017763 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017764 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017765 .model_id = WINBOND_W29C040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017766 .total_size = 512,
17767 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000017768 .feature_bits = FEATURE_LONG_RESET,
17769 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017770 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000017771 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017772 .block_erasers =
17773 {
17774 {
17775 .eraseblocks = { {512 * 1024, 1} },
17776 .block_erase = erase_chip_block_jedec,
17777 }
17778 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017779 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017780 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017781 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000017782 },
17783
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017784 {
17785 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017786 .name = "W29C512A/W29EE512",
17787 .bustype = BUS_PARALLEL,
17788 .manufacture_id = WINBOND_ID,
17789 .model_id = WINBOND_W29C512A,
17790 .total_size = 64,
17791 .page_size = 128,
17792 .feature_bits = FEATURE_LONG_RESET,
17793 .tested = TEST_OK_PREW,
17794 .probe = probe_jedec,
17795 .probe_timing = 10,
17796 .block_erasers =
17797 {
17798 {
17799 .eraseblocks = { {64 * 1024, 1} },
17800 .block_erase = erase_chip_block_jedec,
17801 }
17802 },
17803 .write = write_jedec,
17804 .read = read_memmapped,
17805 .voltage = {4500, 5500},
17806 },
17807
17808 {
17809 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000017810 .name = "W29GL032CB",
17811 .bustype = BUS_PARALLEL,
17812 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
17813 .model_id = WINBOND_W29GL032CB,
17814 .total_size = 4096,
17815 .page_size = 128 * 1024, /* actual page size is 16 */
17816 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
17817 .tested = TEST_UNTESTED,
17818 .probe = probe_jedec_29gl,
17819 .probe_timing = TIMING_ZERO,
17820 .block_erasers =
17821 {
17822 {
17823 .eraseblocks = {
17824 {8 * 1024, 8},
17825 {64 * 1024, 63},
17826 },
17827 .block_erase = erase_sector_jedec,
17828 }, {
17829 .eraseblocks = { {4 * 1024 * 1024, 1} },
17830 .block_erase = erase_chip_block_jedec,
17831 },
17832 },
17833 .write = write_jedec_1,
17834 .read = read_memmapped,
17835 .voltage = {2700, 3600},
17836 },
17837
17838 {
17839 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017840 .name = "W29GL032CH/L",
17841 .bustype = BUS_PARALLEL,
17842 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
17843 .model_id = WINBOND_W29GL032CHL,
17844 .total_size = 4096,
17845 .page_size = 128 * 1024, /* actual page size is 16 */
17846 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
17847 .tested = TEST_UNTESTED,
17848 .probe = probe_jedec_29gl,
17849 .probe_timing = TIMING_ZERO,
17850 .block_erasers =
17851 {
17852 {
17853 .eraseblocks = { {64 * 1024, 64} },
17854 .block_erase = erase_sector_jedec,
17855 }, {
17856 .eraseblocks = { {4 * 1024 * 1024, 1} },
17857 .block_erase = erase_chip_block_jedec,
17858 },
17859 },
17860 .write = write_jedec_1,
17861 .read = read_memmapped,
17862 .voltage = {2700, 3600},
17863 },
17864
17865 {
17866 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000017867 .name = "W29GL032CT",
17868 .bustype = BUS_PARALLEL,
17869 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
17870 .model_id = WINBOND_W29GL032CT,
17871 .total_size = 4096,
17872 .page_size = 128 * 1024, /* actual page size is 16 */
17873 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
17874 .tested = TEST_UNTESTED,
17875 .probe = probe_jedec_29gl,
17876 .probe_timing = TIMING_ZERO,
17877 .block_erasers =
17878 {
17879 {
17880 .eraseblocks = {
17881 {64 * 1024, 63},
17882 {8 * 1024, 8},
17883 },
17884 .block_erase = erase_sector_jedec,
17885 }, {
17886 .eraseblocks = { {4 * 1024 * 1024, 1} },
17887 .block_erase = erase_chip_block_jedec,
17888 },
17889 },
17890 .write = write_jedec_1,
17891 .read = read_memmapped,
17892 .voltage = {2700, 3600},
17893 },
17894
17895 {
17896 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000017897 .name = "W29GL064CB",
17898 .bustype = BUS_PARALLEL,
17899 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
17900 .model_id = WINBOND_W29GL064CB,
17901 .total_size = 8192,
17902 .page_size = 128 * 1024, /* actual page size is 16 */
17903 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
17904 .tested = TEST_UNTESTED,
17905 .probe = probe_jedec_29gl,
17906 .probe_timing = TIMING_ZERO,
17907 .block_erasers =
17908 {
17909 {
17910 .eraseblocks = {
17911 {8 * 1024, 8},
17912 {64 * 1024, 127},
17913 },
17914 .block_erase = erase_sector_jedec,
17915 }, {
17916 .eraseblocks = { {8 * 1024 * 1024, 1} },
17917 .block_erase = erase_chip_block_jedec,
17918 },
17919 },
17920 .write = write_jedec_1,
17921 .read = read_memmapped,
17922 .voltage = {2700, 3600},
17923 },
17924
17925 {
17926 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017927 .name = "W29GL064CH/L",
17928 .bustype = BUS_PARALLEL,
17929 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
17930 .model_id = WINBOND_W29GL064CHL,
17931 .total_size = 8192,
17932 .page_size = 128 * 1024, /* actual page size is 16 */
17933 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
17934 .tested = TEST_UNTESTED,
17935 .probe = probe_jedec_29gl,
17936 .probe_timing = TIMING_ZERO,
17937 .block_erasers =
17938 {
17939 {
17940 .eraseblocks = { {64 * 1024, 128} },
17941 .block_erase = erase_sector_jedec,
17942 }, {
17943 .eraseblocks = { {8 * 1024 * 1024, 1} },
17944 .block_erase = erase_chip_block_jedec,
17945 },
17946 },
17947 .write = write_jedec_1,
17948 .read = read_memmapped,
17949 .voltage = {2700, 3600},
17950 },
17951
17952 {
17953 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000017954 .name = "W29GL064CT",
17955 .bustype = BUS_PARALLEL,
17956 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
17957 .model_id = WINBOND_W29GL064CT,
17958 .total_size = 8192,
17959 .page_size = 128 * 1024, /* actual page size is 16 */
17960 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
17961 .tested = TEST_UNTESTED,
17962 .probe = probe_jedec_29gl,
17963 .probe_timing = TIMING_ZERO,
17964 .block_erasers =
17965 {
17966 {
17967 .eraseblocks = {
17968 {64 * 1024, 127},
17969 {8 * 1024, 8},
17970 },
17971 .block_erase = erase_sector_jedec,
17972 }, {
17973 .eraseblocks = { {8 * 1024 * 1024, 1} },
17974 .block_erase = erase_chip_block_jedec,
17975 },
17976 },
17977 .write = write_jedec_1,
17978 .read = read_memmapped,
17979 .voltage = {2700, 3600},
17980 },
17981
17982 {
17983 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000017984 .name = "W29GL128C",
17985 .bustype = BUS_PARALLEL,
17986 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
17987 .model_id = WINBOND_W29GL128CHL,
17988 .total_size = 16384,
17989 .page_size = 128 * 1024, /* actual page size is 16 */
17990 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
17991 .tested = TEST_UNTESTED,
17992 .probe = probe_jedec_29gl,
17993 .probe_timing = TIMING_ZERO,
17994 .block_erasers =
17995 {
17996 {
17997 .eraseblocks = { {128 * 1024, 128} },
17998 .block_erase = erase_sector_jedec,
17999 }, {
18000 .eraseblocks = { {16 * 1024 * 1024, 1} },
18001 .block_erase = erase_chip_block_jedec,
18002 },
18003 },
18004 .write = write_jedec_1,
18005 .read = read_memmapped,
18006 .voltage = {2700, 3600},
18007 },
18008
18009 {
18010 .vendor = "Winbond",
Kyösti Mälkkic31243e2012-10-28 01:50:08 +000018011 .name = "W39F010",
18012 .bustype = BUS_PARALLEL,
18013 .manufacture_id = WINBOND_ID,
18014 .model_id = WINBOND_W39F010,
18015 .total_size = 128,
18016 .page_size = 4 * 1024,
18017 .feature_bits = FEATURE_EITHER_RESET,
18018 .tested = TEST_OK_PREW,
18019 .probe = probe_jedec,
18020 .probe_timing = 10,
18021 .block_erasers =
18022 {
18023 {
18024 .eraseblocks = { {4 * 1024, 32} },
18025 .block_erase = erase_block_jedec,
18026 }, {
18027 .eraseblocks = { {128 * 1024, 1} },
18028 .block_erase = erase_chip_block_jedec,
18029 }
18030 },
18031 .printlock = printlock_w39f010,
18032 .write = write_jedec_1,
18033 .read = read_memmapped,
18034 .voltage = {4500, 5500},
18035 },
18036
18037 {
18038 .vendor = "Winbond",
18039 .name = "W39L010",
18040 .bustype = BUS_PARALLEL,
18041 .manufacture_id = WINBOND_ID,
18042 .model_id = WINBOND_W39L010,
18043 .total_size = 128,
18044 .page_size = 4 * 1024,
18045 .feature_bits = FEATURE_EITHER_RESET,
18046 .tested = TEST_UNTESTED,
18047 .probe = probe_jedec,
18048 .probe_timing = 10,
18049 .block_erasers =
18050 {
18051 {
18052 .eraseblocks = { {4 * 1024, 32} },
18053 .block_erase = erase_block_jedec,
18054 }, {
18055 .eraseblocks = { {128 * 1024, 1} },
18056 .block_erase = erase_chip_block_jedec,
18057 }
18058 },
18059 .printlock = printlock_w39l010,
18060 .write = write_jedec_1,
18061 .read = read_memmapped,
18062 .voltage = {3000, 3600},
18063 },
18064
18065 {
18066 .vendor = "Winbond",
18067 .name = "W39L020",
18068 .bustype = BUS_PARALLEL,
18069 .manufacture_id = WINBOND_ID,
18070 .model_id = WINBOND_W39L020,
18071 .total_size = 256,
18072 .page_size = 4 * 1024,
18073 .feature_bits = FEATURE_EITHER_RESET,
18074 .tested = TEST_UNTESTED,
18075 .probe = probe_jedec,
18076 .probe_timing = 10,
18077 .block_erasers =
18078 {
18079 {
18080 .eraseblocks = { {4 * 1024, 64} },
18081 .block_erase = erase_block_jedec,
18082 }, {
18083 .eraseblocks = { {64 * 1024, 4} },
18084 .block_erase = erase_sector_jedec,
18085 }, {
18086 .eraseblocks = { {256 * 1024, 1} },
18087 .block_erase = erase_chip_block_jedec,
18088 }
18089 },
18090 .printlock = printlock_w39l020,
18091 .write = write_jedec_1,
18092 .read = read_memmapped,
18093 .voltage = {3000, 3600},
18094 },
18095
18096 {
18097 .vendor = "Winbond",
Michael Karcher19e0aac2011-03-06 17:58:05 +000018098 .name = "W39L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018099 .bustype = BUS_PARALLEL,
Michael Karcher19e0aac2011-03-06 17:58:05 +000018100 .manufacture_id = WINBOND_ID,
18101 .model_id = WINBOND_W39L040,
18102 .total_size = 512,
18103 .page_size = 64 * 1024,
18104 .feature_bits = FEATURE_EITHER_RESET,
18105 .tested = TEST_OK_PR,
18106 .probe = probe_jedec,
18107 .probe_timing = 10,
18108 .block_erasers =
18109 {
18110 {
18111 .eraseblocks = { {4 * 1024, 128} },
18112 .block_erase = erase_block_jedec,
18113 }, {
18114 .eraseblocks = { {64 * 1024, 8} },
18115 .block_erase = erase_sector_jedec,
18116 }, {
18117 .eraseblocks = { {512 * 1024, 1} },
18118 .block_erase = erase_chip_block_jedec,
18119 }
18120 },
18121 .printlock = printlock_w39l040,
18122 .write = write_jedec_1,
18123 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000018124 .voltage = {3000, 3600},
Michael Karcher19e0aac2011-03-06 17:58:05 +000018125 },
18126
18127 {
18128 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018129 .name = "W39V040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018130 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018131 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018132 .model_id = WINBOND_W39V040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018133 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000018134 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000018135 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000018136 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018137 .probe = probe_jedec,
Stefan Tauner716e0982011-07-25 20:38:52 +000018138 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018139 .block_erasers =
18140 {
18141 {
18142 .eraseblocks = { {64 * 1024, 8} },
18143 .block_erase = erase_sector_jedec,
18144 }, {
18145 .eraseblocks = { {512 * 1024, 1} },
18146 .block_erase = erase_chip_block_jedec,
18147 }
18148 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018149 .printlock = printlock_w39v040a,
Sean Nelson35727f72010-01-28 23:55:12 +000018150 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018151 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018152 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000018153 },
18154
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018155 {
18156 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018157 .name = "W39V040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018158 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018159 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018160 .model_id = WINBOND_W39V040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018161 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000018162 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000018163 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000018164 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018165 .probe = probe_jedec,
Paul Menzel018d4822011-10-21 12:33:07 +000018166 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018167 .block_erasers =
18168 {
18169 {
18170 .eraseblocks = { {64 * 1024, 8} },
18171 .block_erase = erase_sector_jedec,
18172 }, {
18173 .eraseblocks = { {512 * 1024, 1} },
18174 .block_erase = erase_chip_block_jedec,
18175 }
18176 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018177 .printlock = printlock_w39v040b,
Sean Nelson35727f72010-01-28 23:55:12 +000018178 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018179 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018180 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000018181 },
18182
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018183 {
18184 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018185 .name = "W39V040C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018186 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018187 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018188 .model_id = WINBOND_W39V040C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018189 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000018190 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000018191 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000018192 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +000018193 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018194 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018195 .block_erasers =
18196 {
18197 {
18198 .eraseblocks = { {64 * 1024, 8} },
18199 .block_erase = erase_sector_jedec,
18200 }, {
18201 .eraseblocks = { {512 * 1024, 1} },
18202 .block_erase = erase_chip_block_jedec,
18203 }
18204 },
Sean Nelson6e0b9122010-02-19 00:52:10 +000018205 .printlock = printlock_w39v040c,
Sean Nelson35727f72010-01-28 23:55:12 +000018206 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018207 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018208 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000018209 },
18210
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018211 {
18212 .vendor = "Winbond",
18213 .name = "W39V040FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018214 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018215 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018216 .model_id = WINBOND_W39V040FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018217 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000018218 .page_size = 64 * 1024,
Michael Karcherc9b63412010-05-30 16:55:18 +000018219 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner23e10b82016-01-23 16:16:49 +000018220 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018221 .probe = probe_jedec,
Antony Rheneus0fbba982011-05-26 14:28:51 +000018222 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018223 .block_erasers =
18224 {
18225 {
18226 .eraseblocks = { {4 * 1024, 128} },
18227 .block_erase = erase_block_jedec,
18228 }, {
18229 .eraseblocks = { {64 * 1024, 8} },
18230 .block_erase = erase_sector_jedec,
18231 }, {
18232 .eraseblocks = { {512 * 1024, 1} },
18233 .block_erase = erase_chip_block_jedec,
18234 }
18235 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018236 .printlock = printlock_w39v040fa,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000018237 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000018238 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018239 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018240 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000018241 },
18242
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018243 {
18244 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018245 .name = "W39V040FB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018246 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018247 .manufacture_id = WINBOND_ID,
18248 .model_id = WINBOND_W39V040B,
18249 .total_size = 512,
18250 .page_size = 64 * 1024,
18251 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner0be072c2016-03-13 15:16:30 +000018252 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018253 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000018254 .probe_timing = 10,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018255 .block_erasers =
18256 {
18257 {
18258 .eraseblocks = { {64 * 1024, 8} },
18259 .block_erase = erase_sector_jedec,
18260 }, {
18261 .eraseblocks = { {512 * 1024, 1} },
18262 .block_erase = erase_chip_block_jedec,
18263 }
18264 },
18265 .printlock = printlock_w39v040fb,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000018266 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018267 .write = write_jedec_1,
18268 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000018269 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018270 },
18271
18272 {
18273 .vendor = "Winbond",
18274 .name = "W39V040FC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018275 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018276 .manufacture_id = WINBOND_ID,
18277 .model_id = WINBOND_W39V040C,
18278 .total_size = 512,
18279 .page_size = 64 * 1024,
18280 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +000018281 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018282 .probe = probe_jedec,
18283 .probe_timing = 10,
18284 .block_erasers =
18285 {
18286 {
18287 .eraseblocks = { {64 * 1024, 8} },
18288 .block_erase = erase_sector_jedec,
18289 }, {
18290 .eraseblocks = { {512 * 1024, 1} },
18291 .block_erase = erase_chip_block_jedec,
18292 }
18293 },
18294 .printlock = printlock_w39v040fc,
18295 .write = write_jedec_1,
18296 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000018297 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018298 },
18299
18300 {
18301 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018302 .name = "W39V080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018303 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018304 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018305 .model_id = WINBOND_W39V080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018306 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000018307 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000018308 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +000018309 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018310 .probe = probe_jedec,
Paul Menzelac427b22012-02-16 21:07:07 +000018311 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018312 .block_erasers =
18313 {
18314 {
18315 .eraseblocks = { {64 * 1024, 16} },
18316 .block_erase = erase_sector_jedec,
18317 }, {
18318 .eraseblocks = { {1024 * 1024, 1} },
18319 .block_erase = erase_chip_block_jedec,
18320 }
18321 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018322 .printlock = printlock_w39v080a,
Sean Nelson35727f72010-01-28 23:55:12 +000018323 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018324 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018325 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000018326 },
18327
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018328 {
18329 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018330 .name = "W39V080FA",
18331 .bustype = BUS_FWH,
18332 .manufacture_id = WINBOND_ID,
18333 .model_id = WINBOND_W39V080FA,
18334 .total_size = 1024,
18335 .page_size = 64 * 1024,
18336 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
18337 .tested = TEST_OK_PREW,
18338 .probe = probe_jedec,
18339 .probe_timing = 10,
18340 .block_erasers =
18341 {
18342 {
18343 .eraseblocks = { {64 * 1024, 16} },
18344 .block_erase = erase_sector_jedec,
18345 }, {
18346 .eraseblocks = { {1024 * 1024, 1} },
18347 .block_erase = erase_chip_block_jedec,
18348 }
18349 },
18350 .printlock = printlock_w39v080fa,
18351 .unlock = unlock_regspace2_uniform_64k,
18352 .write = write_jedec_1,
18353 .read = read_memmapped,
18354 .voltage = {3000, 3600}, /* Also has 12V fast program */
18355 },
18356
18357 {
18358 .vendor = "Winbond",
18359 .name = "W39V080FA (dual mode)",
18360 .bustype = BUS_FWH,
18361 .manufacture_id = WINBOND_ID,
18362 .model_id = WINBOND_W39V080FA_DM,
18363 .total_size = 512,
18364 .page_size = 64 * 1024,
18365 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
18366 .tested = TEST_UNTESTED,
18367 .probe = probe_jedec,
18368 .probe_timing = 10,
18369 .block_erasers =
18370 {
18371 {
18372 .eraseblocks = { {64 * 1024, 8} },
18373 .block_erase = erase_sector_jedec,
18374 }, {
18375 .eraseblocks = { {512 * 1024, 1} },
18376 .block_erase = erase_chip_block_jedec,
18377 }
18378 },
18379 .printlock = printlock_w39v080fa_dual,
18380 .write = write_jedec_1,
18381 .read = read_memmapped,
18382 .voltage = {3000, 3600}, /* Also has 12V fast program */
18383 },
18384
18385 {
18386 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000018387 .name = "W49F002U/N",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018388 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018389 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018390 .model_id = WINBOND_W49F002U,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018391 .total_size = 256,
18392 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000018393 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000018394 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018395 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000018396 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018397 .block_erasers =
18398 {
18399 {
18400 .eraseblocks = {
18401 {128 * 1024, 1},
18402 {96 * 1024, 1},
18403 {8 * 1024, 2},
18404 {16 * 1024, 1},
18405 },
18406 .block_erase = erase_sector_jedec,
18407 }, {
18408 .eraseblocks = { {256 * 1024, 1} },
18409 .block_erase = erase_chip_block_jedec,
18410 }
18411 },
Sean Nelson35727f72010-01-28 23:55:12 +000018412 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018413 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018414 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000018415 },
18416
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018417 {
18418 .vendor = "Winbond",
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000018419 .name = "W49F020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018420 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000018421 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018422 .model_id = WINBOND_W49F020,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000018423 .total_size = 256,
18424 .page_size = 128,
18425 .feature_bits = FEATURE_EITHER_RESET,
18426 .tested = TEST_OK_PROBE,
18427 .probe = probe_jedec,
18428 .probe_timing = 10,
18429 .block_erasers =
18430 {
18431 {
18432 .eraseblocks = { {256 * 1024, 1} },
18433 .block_erase = erase_chip_block_jedec,
18434 }
18435 },
18436 .write = write_jedec_1,
18437 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018438 .voltage = {4500, 5500},
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000018439 },
18440
18441 {
18442 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018443 .name = "W49V002A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018444 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018445 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018446 .model_id = WINBOND_W49V002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018447 .total_size = 256,
18448 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000018449 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000018450 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018451 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000018452 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018453 .block_erasers =
18454 {
18455 {
18456 .eraseblocks = {
18457 {64 * 1024, 3},
18458 {32 * 1024, 1},
18459 {8 * 1024, 2},
18460 {16 * 1024, 1},
18461 },
18462 .block_erase = erase_sector_jedec,
18463 }, {
18464 .eraseblocks = { {256 * 1024, 1} },
18465 .block_erase = erase_chip_block_jedec,
18466 }
18467 },
Sean Nelson35727f72010-01-28 23:55:12 +000018468 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018469 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018470 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000018471 },
18472
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018473 {
18474 .vendor = "Winbond",
18475 .name = "W49V002FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018476 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018477 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018478 .model_id = WINBOND_W49V002FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018479 .total_size = 256,
18480 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000018481 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000018482 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018483 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000018484 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018485 .block_erasers =
18486 {
18487 {
18488 .eraseblocks = {
18489 {64 * 1024, 3},
18490 {32 * 1024, 1},
18491 {8 * 1024, 2},
18492 {16 * 1024, 1},
18493 },
18494 .block_erase = erase_sector_jedec,
18495 }, {
18496 .eraseblocks = { {256 * 1024, 1} },
18497 .block_erase = erase_chip_block_jedec,
18498 }
18499 },
Sean Nelson35727f72010-01-28 23:55:12 +000018500 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018501 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018502 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000018503 },
18504
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018505 {
Alan Greenfa3fcd32019-06-27 15:41:50 +100018506 .vendor = "Zetta Device",
18507 .name = "ZD25D20",
18508 .bustype = BUS_SPI,
18509 .manufacture_id = ZETTADEVICE_ID,
18510 .model_id = ZETTADEVICE_ZD25D20,
18511 .total_size = 256,
18512 .page_size = 256,
18513 .feature_bits = FEATURE_WRSR_WREN,
18514 .tested = TEST_UNTESTED,
18515 .probe = probe_spi_rdid,
18516 .probe_timing = TIMING_ZERO,
18517 .block_erasers =
David Hendricksa72d5a92018-02-11 17:58:44 -080018518 {
18519 {
18520 .eraseblocks = { {4 * 1024, 64} },
18521 .block_erase = spi_block_erase_20,
18522 }, {
18523 .eraseblocks = { {32 * 1024, 8} },
18524 .block_erase = spi_block_erase_52,
18525 }, {
18526 .eraseblocks = { {64 * 1024, 4} },
18527 .block_erase = spi_block_erase_d8,
18528 }, {
18529 .eraseblocks = { {256 * 1024, 1} },
18530 .block_erase = spi_block_erase_60,
18531 }, {
18532 .eraseblocks = { {256 * 1024, 1} },
18533 .block_erase = spi_block_erase_c7,
18534 }
18535 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100018536 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18537 .unlock = spi_disable_blockprotect,
18538 .write = spi_chip_write_256,
18539 .read = spi_chip_read,
18540 .voltage = {2700, 3600},
David Hendricksa72d5a92018-02-11 17:58:44 -080018541 },
18542
18543 {
Alan Greenfa3fcd32019-06-27 15:41:50 +100018544 .vendor = "Zetta Device",
18545 .name = "ZD25D40",
18546 .bustype = BUS_SPI,
18547 .manufacture_id = ZETTADEVICE_ID,
18548 .model_id = ZETTADEVICE_ZD25D40,
18549 .total_size = 512,
18550 .page_size = 256,
18551 .feature_bits = FEATURE_WRSR_WREN,
18552 .tested = TEST_UNTESTED,
18553 .probe = probe_spi_rdid,
18554 .probe_timing = TIMING_ZERO,
18555 .block_erasers =
nybashcbb46e22018-02-11 17:53:49 -080018556 {
18557 {
18558 .eraseblocks = { {4 * 1024, 128} },
18559 .block_erase = spi_block_erase_20,
18560 }, {
18561 .eraseblocks = { {32 * 1024, 16} },
18562 .block_erase = spi_block_erase_52,
18563 }, {
18564 .eraseblocks = { {64 * 1024, 8} },
18565 .block_erase = spi_block_erase_d8,
18566 }, {
18567 .eraseblocks = { {512 * 1024, 1} },
18568 .block_erase = spi_block_erase_60,
18569 }, {
18570 .eraseblocks = { {512 * 1024, 1} },
18571 .block_erase = spi_block_erase_c7,
18572 }
18573 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100018574 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18575 .unlock = spi_disable_blockprotect,
18576 .write = spi_chip_write_256,
18577 .read = spi_chip_read,
18578 .voltage = {2700, 3600},
nybashcbb46e22018-02-11 17:53:49 -080018579 },
18580
Stefan Taunerac1b4c82012-02-17 14:51:04 +000018581 {
Alan Greendd592202019-08-23 10:11:37 +100018582 .vendor = "Unknown",
18583 .name = "SFDP-capable chip",
18584 .bustype = BUS_SPI,
18585 .manufacture_id = GENERIC_MANUF_ID,
18586 .model_id = SFDP_DEVICE_ID,
18587 .total_size = 0, /* set by probing function */
18588 .page_size = 0, /* set by probing function */
18589 .feature_bits = 0, /* set by probing function */
18590 /* We present our own "report this" text hence we do not */
18591 /* want the default "This flash part has status UNTESTED..." */
18592 /* text to be printed. */
18593 .tested = TEST_OK_PREW,
18594 .probe = probe_spi_sfdp,
18595 .block_erasers = {}, /* set by probing function */
18596 .unlock = spi_disable_blockprotect, /* is this safe? */
18597 .write = NULL, /* set by probing function */
18598 .read = spi_chip_read,
18599 /* FIXME: some vendor extensions define this */
18600 .voltage = {0},
18601 },
18602
18603 {
Carl-Daniel Hailfinger532c7172011-11-04 21:35:26 +000018604 .vendor = "Programmer",
18605 .name = "Opaque flash chip",
18606 .bustype = BUS_PROG,
18607 .manufacture_id = PROGMANUF_ID,
18608 .model_id = PROGDEV_ID,
18609 .total_size = 0,
18610 .page_size = 256,
18611 /* probe is assumed to work, rest will be filled in by probe */
18612 .tested = TEST_OK_PROBE,
18613 .probe = probe_opaque,
18614 /* eraseblock sizes will be set by the probing function */
18615 .block_erasers =
18616 {
18617 {
18618 .block_erase = erase_opaque,
18619 }
18620 },
18621 .write = write_opaque,
18622 .read = read_opaque,
18623 },
18624
18625 {
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000018626 .vendor = "AMIC",
18627 .name = "unknown AMIC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018628 .bustype = BUS_SPI,
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000018629 .manufacture_id = AMIC_ID,
18630 .model_id = GENERIC_DEVICE_ID,
18631 .total_size = 0,
18632 .page_size = 256,
18633 .tested = TEST_BAD_PREW,
18634 .probe = probe_spi_rdid4,
18635 .probe_timing = TIMING_ZERO,
18636 .write = NULL,
18637 .read = NULL,
18638 },
18639
18640 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018641 .vendor = "Atmel",
18642 .name = "unknown Atmel SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018643 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018644 .manufacture_id = ATMEL_ID,
18645 .model_id = GENERIC_DEVICE_ID,
18646 .total_size = 0,
18647 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000018648 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018649 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000018650 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018651 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018652 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000018653 },
18654
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018655 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +000018656 .vendor = "Eon",
18657 .name = "unknown Eon SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018658 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018659 .manufacture_id = EON_ID_NOPREFIX,
18660 .model_id = GENERIC_DEVICE_ID,
18661 .total_size = 0,
18662 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000018663 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018664 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000018665 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018666 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018667 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000018668 },
18669
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018670 {
18671 .vendor = "Macronix",
18672 .name = "unknown Macronix SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018673 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000018674 .manufacture_id = MACRONIX_ID,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018675 .model_id = GENERIC_DEVICE_ID,
18676 .total_size = 0,
18677 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000018678 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018679 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000018680 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018681 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018682 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000018683 },
18684
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018685 {
18686 .vendor = "PMC",
18687 .name = "unknown PMC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018688 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018689 .manufacture_id = PMC_ID,
18690 .model_id = GENERIC_DEVICE_ID,
18691 .total_size = 0,
18692 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000018693 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018694 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000018695 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018696 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018697 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000018698 },
18699
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018700 {
18701 .vendor = "SST",
18702 .name = "unknown SST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018703 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018704 .manufacture_id = SST_ID,
18705 .model_id = GENERIC_DEVICE_ID,
18706 .total_size = 0,
18707 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000018708 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018709 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000018710 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018711 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018712 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000018713 },
18714
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018715 {
18716 .vendor = "ST",
18717 .name = "unknown ST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018718 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018719 .manufacture_id = ST_ID,
18720 .model_id = GENERIC_DEVICE_ID,
18721 .total_size = 0,
18722 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000018723 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018724 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000018725 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018726 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018727 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000018728 },
Uwe Hermannfc425e82008-03-16 02:06:25 +000018729
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000018730 {
Sean Nelson118e1d62009-11-24 02:08:11 +000018731 .vendor = "Sanyo",
18732 .name = "unknown Sanyo SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018733 .bustype = BUS_SPI,
Sean Nelson118e1d62009-11-24 02:08:11 +000018734 .manufacture_id = SANYO_ID,
18735 .model_id = GENERIC_DEVICE_ID,
18736 .total_size = 0,
18737 .page_size = 256,
18738 .tested = TEST_BAD_PREW,
18739 .probe = probe_spi_rdid,
18740 .probe_timing = TIMING_ZERO,
Sean Nelson118e1d62009-11-24 02:08:11 +000018741 .write = NULL,
18742 .read = NULL,
18743 },
18744
18745 {
Stefan Taunereb582572012-09-21 12:52:50 +000018746 .vendor = "Winbond",
18747 .name = "unknown Winbond (ex Nexcom) SPI chip",
18748 .bustype = BUS_SPI,
18749 .manufacture_id = WINBOND_NEX_ID,
18750 .model_id = GENERIC_DEVICE_ID,
18751 .total_size = 0,
18752 .page_size = 256,
18753 .tested = TEST_BAD_PREW,
18754 .probe = probe_spi_rdid,
18755 .probe_timing = TIMING_ZERO,
18756 .write = NULL,
18757 .read = NULL,
18758 },
18759
18760 {
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000018761 .vendor = "Generic",
18762 .name = "unknown SPI chip (RDID)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018763 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000018764 .manufacture_id = GENERIC_MANUF_ID,
18765 .model_id = GENERIC_DEVICE_ID,
18766 .total_size = 0,
18767 .page_size = 256,
18768 .tested = TEST_BAD_PREW,
18769 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000018770 .write = NULL,
18771 },
Stefan Tauneraf2db612011-12-02 21:48:17 +000018772
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000018773 {
18774 .vendor = "Generic",
18775 .name = "unknown SPI chip (REMS)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018776 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000018777 .manufacture_id = GENERIC_MANUF_ID,
18778 .model_id = GENERIC_DEVICE_ID,
18779 .total_size = 0,
18780 .page_size = 256,
18781 .tested = TEST_BAD_PREW,
18782 .probe = probe_spi_rems,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000018783 .write = NULL,
18784 },
18785
Stefan Tauner96658be2014-05-26 22:05:31 +000018786 {0}
Stephan Guilloux72cf5652009-04-21 01:46:07 +000018787};
Stefan Tauner96658be2014-05-26 22:05:31 +000018788
18789const unsigned int flashchips_size = ARRAY_SIZE(flashchips);