blob: 64fdbb9798d6d367a859b4bb0c2b6195ebfdfa46 [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",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008546 .name = "MX25L6405",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008547 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008548 .manufacture_id = MACRONIX_ID,
8549 .model_id = MACRONIX_MX25L6405,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008550 .total_size = 8192,
8551 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008552 /* Has an additional 512B EEPROM sector */
8553 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzelac427b22012-02-16 21:07:07 +00008554 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008555 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008556 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008557 .block_erasers =
8558 {
8559 {
8560 .eraseblocks = { {64 * 1024, 128} },
8561 .block_erase = spi_block_erase_20,
8562 }, {
8563 .eraseblocks = { {64 * 1024, 128} },
8564 .block_erase = spi_block_erase_d8,
8565 }, {
8566 .eraseblocks = { {8 * 1024 * 1024, 1} },
8567 .block_erase = spi_block_erase_60,
8568 }, {
8569 .eraseblocks = { {8 * 1024 * 1024, 1} },
8570 .block_erase = spi_block_erase_c7,
8571 }
8572 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008573 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: error flag */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008574 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008575 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008576 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008577 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008578 },
8579
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008580 {
8581 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008582 .name = "MX25L6405D",
Stefan Tauner226037d2013-03-16 01:22:12 +00008583 .bustype = BUS_SPI,
8584 .manufacture_id = MACRONIX_ID,
8585 .model_id = MACRONIX_MX25L6405,
8586 .total_size = 8192,
8587 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008588 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
Stefan Tauner226037d2013-03-16 01:22:12 +00008589 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8590 .tested = TEST_OK_PREW,
8591 .probe = probe_spi_rdid,
8592 .probe_timing = TIMING_ZERO,
8593 .block_erasers =
8594 {
8595 {
8596 .eraseblocks = { {4 * 1024, 2048} },
8597 .block_erase = spi_block_erase_20,
8598 }, {
8599 .eraseblocks = { {64 * 1024, 128} },
8600 .block_erase = spi_block_erase_d8,
8601 }, {
8602 .eraseblocks = { {8 * 1024 * 1024, 1} },
8603 .block_erase = spi_block_erase_60,
8604 }, {
8605 .eraseblocks = { {8 * 1024 * 1024, 1} },
8606 .block_erase = spi_block_erase_c7,
8607 }
8608 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008609 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008610 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00008611 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008612 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0xBB) supported */
Stefan Tauner226037d2013-03-16 01:22:12 +00008613 .voltage = {2700, 3600},
8614 },
8615
8616 {
8617 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008618 .name = "MX25L6406E/MX25L6408E",
8619 .bustype = BUS_SPI,
8620 .manufacture_id = MACRONIX_ID,
8621 .model_id = MACRONIX_MX25L6405,
8622 .total_size = 8192,
8623 .page_size = 256,
8624 /* MX25L6406E supports SFDP */
8625 /* OTP: 06E 64B total; enter 0xB1, exit 0xC1 */
8626 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8627 .tested = TEST_OK_PREW,
8628 .probe = probe_spi_rdid,
8629 .probe_timing = TIMING_ZERO,
8630 .block_erasers =
8631 {
8632 {
8633 .eraseblocks = { {4 * 1024, 2048} },
8634 .block_erase = spi_block_erase_20,
8635 }, {
8636 .eraseblocks = { {64 * 1024, 128} },
8637 .block_erase = spi_block_erase_52,
8638 }, {
8639 .eraseblocks = { {64 * 1024, 128} },
8640 .block_erase = spi_block_erase_d8,
8641 }, {
8642 .eraseblocks = { {8 * 1024 * 1024, 1} },
8643 .block_erase = spi_block_erase_60,
8644 }, {
8645 .eraseblocks = { {8 * 1024 * 1024, 1} },
8646 .block_erase = spi_block_erase_c7,
8647 }
8648 },
8649 .printlock = spi_prettyprint_status_register_bp3_srwd,
8650 .unlock = spi_disable_blockprotect_bp3_srwd,
8651 .write = spi_chip_write_256,
8652 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read supported */
8653 .voltage = {2700, 3600},
8654 },
8655
8656 {
8657 .vendor = "Macronix",
Nico Huberb0072782017-12-06 21:02:57 +01008658 .name = "MX25L6436E/MX25L6445E/MX25L6465E/MX25L6473E/MX25L6473F",
Stefan Tauner226037d2013-03-16 01:22:12 +00008659 .bustype = BUS_SPI,
8660 .manufacture_id = MACRONIX_ID,
8661 .model_id = MACRONIX_MX25L6405,
8662 .total_size = 8192,
8663 .page_size = 256,
8664 /* supports SFDP */
8665 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8666 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8667 .tested = TEST_OK_PREW,
8668 .probe = probe_spi_rdid,
8669 .probe_timing = TIMING_ZERO,
8670 .block_erasers =
8671 {
8672 {
8673 .eraseblocks = { {4 * 1024, 2048} },
8674 .block_erase = spi_block_erase_20,
8675 }, {
8676 .eraseblocks = { {32 * 1024, 256} },
8677 .block_erase = spi_block_erase_52,
8678 }, {
8679 .eraseblocks = { {64 * 1024, 128} },
8680 .block_erase = spi_block_erase_d8,
8681 }, {
8682 .eraseblocks = { {8 * 1024 * 1024, 1} },
8683 .block_erase = spi_block_erase_60,
8684 }, {
8685 .eraseblocks = { {8 * 1024 * 1024, 1} },
8686 .block_erase = spi_block_erase_c7,
8687 }
8688 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008689 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008690 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00008691 .write = spi_chip_write_256,
8692 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8693 .voltage = {2700, 3600},
8694 },
8695
8696 {
8697 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008698 .name = "MX25L6495F",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008699 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008700 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008701 .model_id = MACRONIX_MX25L6495F,
8702 .total_size = 8192,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00008703 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008704 /* OTP: 1024B total; enter 0xB1, exit 0xC1 */
Stefan Tauner226037d2013-03-16 01:22:12 +00008705 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +00008706 .tested = TEST_OK_PREW,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00008707 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008708 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008709 .block_erasers =
8710 {
8711 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008712 .eraseblocks = { {4 * 1024, 2048} },
Sean Nelson54596372010-01-09 05:30:14 +00008713 .block_erase = spi_block_erase_20,
8714 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008715 .eraseblocks = { {64 * 1024, 128} },
Sean Nelson54596372010-01-09 05:30:14 +00008716 .block_erase = spi_block_erase_d8,
8717 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008718 .eraseblocks = { {32 * 1024, 256} },
8719 .block_erase = spi_block_erase_52,
8720 }, {
8721 .eraseblocks = { {8 * 1024 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00008722 .block_erase = spi_block_erase_60,
8723 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008724 .eraseblocks = { {8 * 1024 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00008725 .block_erase = spi_block_erase_c7,
8726 }
8727 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10008728 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008729 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008730 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008731 .voltage = {2700, 3600},
8732 },
8733
8734 {
8735 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008736 .name = "MX25L8005/MX25L8006E/MX25L8008E/MX25V8005",
Stefan Tauner5c316f92015-02-08 21:57:52 +00008737 .bustype = BUS_SPI,
8738 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008739 .model_id = MACRONIX_MX25L8005,
8740 .total_size = 1024,
8741 .page_size = 256,
8742 /* MX25L8006E, MX25L8008E support SFDP */
8743 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L8006E, MX25L8008E only) */
8744 .feature_bits = FEATURE_WRSR_WREN,
8745 .tested = TEST_OK_PREW,
8746 .probe = probe_spi_rdid,
8747 .probe_timing = TIMING_ZERO,
8748 .block_erasers =
8749 {
8750 {
8751 .eraseblocks = { {4 * 1024, 256} },
8752 .block_erase = spi_block_erase_20,
8753 }, {
8754 .eraseblocks = { {64 * 1024, 16} },
8755 .block_erase = spi_block_erase_52,
8756 }, {
8757 .eraseblocks = { {64 * 1024, 16} },
8758 .block_erase = spi_block_erase_d8,
8759 }, {
8760 .eraseblocks = { {1024 * 1024, 1} },
8761 .block_erase = spi_block_erase_60,
8762 }, {
8763 .eraseblocks = { {1024 * 1024, 1} },
8764 .block_erase = spi_block_erase_c7,
8765 },
8766 },
8767 .printlock = spi_prettyprint_status_register_bp2_srwd,
8768 .unlock = spi_disable_blockprotect,
8769 .write = spi_chip_write_256,
8770 .read = spi_chip_read, /* Fast read (0x0B) supported */
8771 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V8005 */
8772 },
8773
8774 {
8775 .vendor = "Macronix",
sibradzicf62623c2020-03-14 17:21:34 +09008776 .name = "MX25R3235F",
8777 .bustype = BUS_SPI,
8778 .manufacture_id = MACRONIX_ID,
8779 .model_id = MACRONIX_MX25R3235F,
8780 .total_size = 4096,
8781 .page_size = 256,
8782 /* OTP: 1024B total; enter 0xB1, exit 0xC1 */
8783 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8784 .tested = TEST_OK_PREW,
8785 .probe = probe_spi_rdid,
8786 .probe_timing = TIMING_ZERO,
8787 .block_erasers =
8788 {
8789 {
8790 .eraseblocks = { {4 * 1024, 1024} },
8791 .block_erase = spi_block_erase_20,
8792 }, {
8793 .eraseblocks = { {64 * 1024, 64} },
8794 .block_erase = spi_block_erase_d8,
8795 }, {
8796 .eraseblocks = { {32 * 1024, 128} },
8797 .block_erase = spi_block_erase_52,
8798 }, {
8799 .eraseblocks = { {4 * 1024 * 1024, 1} },
8800 .block_erase = spi_block_erase_60,
8801 }, {
8802 .eraseblocks = { {4 * 1024 * 1024, 1} },
8803 .block_erase = spi_block_erase_c7,
8804 }
8805 },
8806 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit 6 is quad enable */
8807 .unlock = spi_disable_blockprotect_bp3_srwd,
8808 .write = spi_chip_write_256,
8809 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8810 .voltage = {1650, 3600},
8811 },
8812
8813 {
8814 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008815 .name = "MX25R6435F",
8816 .bustype = BUS_SPI,
8817 .manufacture_id = MACRONIX_ID,
8818 .model_id = MACRONIX_MX25R6435F,
8819 .total_size = 8192,
8820 .page_size = 256,
8821 /* OTP: 1024B total; enter 0xB1, exit 0xC1 */
8822 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8823 .tested = TEST_OK_PREW,
8824 .probe = probe_spi_rdid,
8825 .probe_timing = TIMING_ZERO,
8826 .block_erasers =
8827 {
8828 {
8829 .eraseblocks = { {4 * 1024, 2048} },
8830 .block_erase = spi_block_erase_20,
8831 }, {
8832 .eraseblocks = { {64 * 1024, 128} },
8833 .block_erase = spi_block_erase_d8,
8834 }, {
8835 .eraseblocks = { {32 * 1024, 256} },
8836 .block_erase = spi_block_erase_52,
8837 }, {
8838 .eraseblocks = { {8 * 1024 * 1024, 1} },
8839 .block_erase = spi_block_erase_60,
8840 }, {
8841 .eraseblocks = { {8 * 1024 * 1024, 1} },
8842 .block_erase = spi_block_erase_c7,
8843 }
8844 },
8845 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8846 .unlock = spi_disable_blockprotect_bp3_srwd,
8847 .write = spi_chip_write_256,
8848 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8849 .voltage = {1650, 3600},
8850 },
8851
8852 {
8853 .vendor = "Macronix",
8854 .name = "MX25U12835F",
8855 .bustype = BUS_SPI,
8856 .manufacture_id = MACRONIX_ID,
8857 .model_id = MACRONIX_MX25U12835E,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008858 .total_size = 16384,
8859 .page_size = 256,
8860 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
Alan Green1f9cc7d2019-07-01 11:10:45 +10008861 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008862 .tested = TEST_OK_PREW,
8863 .probe = probe_spi_rdid,
8864 .probe_timing = TIMING_ZERO,
8865 .block_erasers =
8866 {
8867 {
8868 .eraseblocks = { {4 * 1024, 4096} },
8869 .block_erase = spi_block_erase_20,
8870 }, {
8871 .eraseblocks = { {32 * 1024, 512} },
8872 .block_erase = spi_block_erase_52,
8873 }, {
8874 .eraseblocks = { {64 * 1024, 256} },
8875 .block_erase = spi_block_erase_d8,
8876 }, {
8877 .eraseblocks = { {16 * 1024 * 1024, 1} },
8878 .block_erase = spi_block_erase_60,
8879 }, {
8880 .eraseblocks = { {16 * 1024 * 1024, 1} },
8881 .block_erase = spi_block_erase_c7,
8882 }
8883 },
Angel Ponsf112e242018-09-30 20:14:17 +02008884 /* TODO: security register */
8885 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8886 .unlock = spi_disable_blockprotect_bp3_srwd,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008887 .write = spi_chip_write_256, /* Multi I/O supported */
Angel Ponsf112e242018-09-30 20:14:17 +02008888 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8889 .voltage = {1650, 2000},
8890 },
8891
8892 {
8893 .vendor = "Macronix",
Vincent Palatinf800f552013-03-15 02:03:16 +00008894 .name = "MX25U1635E",
8895 .bustype = BUS_SPI,
8896 .manufacture_id = MACRONIX_ID,
8897 .model_id = MACRONIX_MX25U1635E,
8898 .total_size = 2048,
8899 .page_size = 256,
8900 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8901 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
8902 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008903 .tested = TEST_OK_PR,
Vincent Palatinf800f552013-03-15 02:03:16 +00008904 .probe = probe_spi_rdid,
8905 .probe_timing = TIMING_ZERO,
8906 .block_erasers =
8907 {
8908 {
8909 .eraseblocks = { {4 * 1024, 512} },
8910 .block_erase = spi_block_erase_20,
8911 }, {
8912 .eraseblocks = { {32 * 1024, 64} },
8913 .block_erase = spi_block_erase_52,
8914 }, {
8915 .eraseblocks = { {64 * 1024, 32} },
8916 .block_erase = spi_block_erase_d8,
8917 }, {
8918 .eraseblocks = { {2 * 1024 * 1024, 1} },
8919 .block_erase = spi_block_erase_60,
8920 }, {
8921 .eraseblocks = { {2 * 1024 * 1024, 1} },
8922 .block_erase = spi_block_erase_c7,
8923 }
8924 },
8925 /* TODO: security register */
Stefan Tauner12f3d512014-05-27 21:27:27 +00008926 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008927 .unlock = spi_disable_blockprotect_bp3_srwd,
Vincent Palatinf800f552013-03-15 02:03:16 +00008928 .write = spi_chip_write_256,
8929 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8930 .voltage = {1650, 2000},
8931 },
8932
8933 {
8934 .vendor = "Macronix",
David Tomaschikf75d8c52019-06-20 09:49:01 -07008935 .name = "MX25U25635F",
8936 .bustype = BUS_SPI,
8937 .manufacture_id = MACRONIX_ID,
8938 .model_id = MACRONIX_MX25U25635F,
8939 .total_size = 32768,
8940 .page_size = 256,
8941 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8942 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_4BA,
8943 .tested = TEST_OK_PR,
8944 .probe = probe_spi_rdid,
8945 .probe_timing = TIMING_ZERO,
8946 .block_erasers =
8947 {
8948 {
8949 .eraseblocks = { {4 * 1024, 8192} },
8950 .block_erase = spi_block_erase_21,
8951 }, {
8952 .eraseblocks = { {4 * 1024, 8192} },
8953 .block_erase = spi_block_erase_20,
8954 }, {
8955 .eraseblocks = { {32 * 1024, 1024} },
8956 .block_erase = spi_block_erase_5c,
8957 }, {
8958 .eraseblocks = { {32 * 1024, 1024} },
8959 .block_erase = spi_block_erase_52,
8960 }, {
8961 .eraseblocks = { {64 * 1024, 512} },
8962 .block_erase = spi_block_erase_dc,
8963 }, {
8964 .eraseblocks = { {64 * 1024, 512} },
8965 .block_erase = spi_block_erase_d8,
8966 }, {
8967 .eraseblocks = { {32 * 1024 * 1024, 1} },
8968 .block_erase = spi_block_erase_60,
8969 }, {
8970 .eraseblocks = { {32 * 1024 * 1024, 1} },
8971 .block_erase = spi_block_erase_c7,
8972 }
8973 },
8974 /* TODO: security register */
8975 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8976 .unlock = spi_disable_blockprotect_bp3_srwd,
8977 .write = spi_chip_write_256, /* Multi I/O supported */
8978 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8979 .voltage = {1650, 2000},
8980 },
8981
8982 {
8983 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008984 .name = "MX25U3235E/F",
8985 .bustype = BUS_SPI,
8986 .manufacture_id = MACRONIX_ID,
8987 .model_id = MACRONIX_MX25U3235E,
8988 .total_size = 4096,
8989 .page_size = 256,
8990 /* F model supports SFDP */
8991 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8992 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
8993 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
8994 .tested = TEST_OK_PREW,
8995 .probe = probe_spi_rdid,
8996 .probe_timing = TIMING_ZERO,
8997 .block_erasers =
8998 {
8999 {
9000 .eraseblocks = { {4 * 1024, 1024} },
9001 .block_erase = spi_block_erase_20,
9002 }, {
9003 .eraseblocks = { {32 * 1024, 128} },
9004 .block_erase = spi_block_erase_52,
9005 }, {
9006 .eraseblocks = { {64 * 1024, 64} },
9007 .block_erase = spi_block_erase_d8,
9008 }, {
9009 .eraseblocks = { {4 * 1024 * 1024, 1} },
9010 .block_erase = spi_block_erase_60,
9011 }, {
9012 .eraseblocks = { {4 * 1024 * 1024, 1} },
9013 .block_erase = spi_block_erase_c7,
9014 }
9015 },
9016 /* TODO: security register */
9017 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9018 .unlock = spi_disable_blockprotect_bp3_srwd,
9019 .write = spi_chip_write_256,
9020 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9021 .voltage = {1650, 2000},
9022 },
9023
9024 {
9025 .vendor = "Macronix",
Daniel Thompsoncadd4202018-06-04 13:52:22 +01009026 .name = "MX25U51245G",
9027 .bustype = BUS_SPI,
9028 .manufacture_id = MACRONIX_ID,
9029 .model_id = MACRONIX_MX25U51245G,
9030 .total_size = 65536,
9031 .page_size = 256,
9032 /* OTP: 512B factory programmed and 512B customer programmed; enter 0xB1, exit 0xC1 */
9033 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_4BA,
9034 .tested = TEST_OK_PREW,
9035 .probe = probe_spi_rdid,
9036 .probe_timing = TIMING_ZERO,
9037 .block_erasers =
9038 {
9039 {
9040 .eraseblocks = { {4 * 1024, 16384} },
9041 .block_erase = spi_block_erase_21,
9042 }, {
9043 .eraseblocks = { {4 * 1024, 16384} },
9044 .block_erase = spi_block_erase_20,
9045 }, {
9046 .eraseblocks = { {32 * 1024, 2048} },
9047 .block_erase = spi_block_erase_5c,
9048 }, {
9049 .eraseblocks = { {32 * 1024, 2048} },
9050 .block_erase = spi_block_erase_52,
9051 }, {
9052 .eraseblocks = { {64 * 1024, 1024} },
9053 .block_erase = spi_block_erase_dc,
9054 }, {
9055 .eraseblocks = { {64 * 1024, 1024} },
9056 .block_erase = spi_block_erase_d8,
9057 }, {
9058 .eraseblocks = { {64 * 1024 * 1024, 1} },
9059 .block_erase = spi_block_erase_60,
9060 }, {
9061 .eraseblocks = { {64 * 1024 * 1024, 1} },
9062 .block_erase = spi_block_erase_c7,
9063 }
9064 },
9065 /* TODO: security register */
9066 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9067 .unlock = spi_disable_blockprotect_bp3_srwd,
9068 .write = spi_chip_write_256, /* Multi I/O supported */
9069 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9070 .voltage = {1650, 2000},
9071 },
9072
9073 {
9074 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009075 .name = "MX25U6435E/F",
Stefan Tauner40bc96f2015-01-10 09:33:14 +00009076 .bustype = BUS_SPI,
9077 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009078 .model_id = MACRONIX_MX25U6435E,
Stefan Tauner40bc96f2015-01-10 09:33:14 +00009079 .total_size = 8192,
9080 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009081 /* F model supports SFDP */
9082 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9083 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
9084 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner40bc96f2015-01-10 09:33:14 +00009085 .tested = TEST_OK_PREW,
9086 .probe = probe_spi_rdid,
9087 .probe_timing = TIMING_ZERO,
9088 .block_erasers =
9089 {
9090 {
9091 .eraseblocks = { {4 * 1024, 2048} },
9092 .block_erase = spi_block_erase_20,
9093 }, {
Stefan Tauner40bc96f2015-01-10 09:33:14 +00009094 .eraseblocks = { {32 * 1024, 256} },
9095 .block_erase = spi_block_erase_52,
9096 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009097 .eraseblocks = { {64 * 1024, 128} },
9098 .block_erase = spi_block_erase_d8,
9099 }, {
Stefan Tauner40bc96f2015-01-10 09:33:14 +00009100 .eraseblocks = { {8 * 1024 * 1024, 1} },
9101 .block_erase = spi_block_erase_60,
9102 }, {
9103 .eraseblocks = { {8 * 1024 * 1024, 1} },
9104 .block_erase = spi_block_erase_c7,
9105 }
9106 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10009107 /* TODO: security register */
Nathan Rennie-Waldock5a7f9422018-08-10 15:35:23 +01009108 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9109 .unlock = spi_disable_blockprotect_bp3_srwd,
9110 .write = spi_chip_write_256,
9111 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Alan Green1f9cc7d2019-07-01 11:10:45 +10009112 .voltage = {1650, 2000},
9113 },
9114
9115 {
9116 .vendor = "Macronix",
9117 .name = "MX25U8032E",
9118 .bustype = BUS_SPI,
9119 .manufacture_id = MACRONIX_ID,
9120 .model_id = MACRONIX_MX25U8032E,
9121 .total_size = 1024,
9122 .page_size = 256,
9123 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9124 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9125 .tested = TEST_OK_PREW,
9126 .probe = probe_spi_rdid,
9127 .probe_timing = TIMING_ZERO,
9128 .block_erasers =
9129 {
9130 {
9131 .eraseblocks = { {4 * 1024, 256} },
9132 .block_erase = spi_block_erase_20,
9133 }, {
9134 .eraseblocks = { {32 * 1024, 32} },
9135 .block_erase = spi_block_erase_52,
9136 }, {
9137 .eraseblocks = { {64 * 1024, 16} },
9138 .block_erase = spi_block_erase_d8,
9139 }, {
9140 .eraseblocks = { {1024 * 1024, 1} },
9141 .block_erase = spi_block_erase_60,
9142 }, {
9143 .eraseblocks = { {1024 * 1024, 1} },
9144 .block_erase = spi_block_erase_c7,
9145 }
9146 },
9147 /* TODO: security register */
9148 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9149 .unlock = spi_disable_blockprotect_bp3_srwd,
9150 .write = spi_chip_write_256,
9151 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9152 .voltage = {1650, 2000},
Nathan Rennie-Waldock5a7f9422018-08-10 15:35:23 +01009153 },
9154
9155 {
9156 .vendor = "Macronix",
Mark Panajotovic502a9132009-08-24 01:42:24 +00009157 .name = "MX29F001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009158 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009159 .manufacture_id = MACRONIX_ID,
9160 .model_id = MACRONIX_MX29F001B,
Mark Panajotovic502a9132009-08-24 01:42:24 +00009161 .total_size = 128,
9162 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009163 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9164 .tested = TEST_UNTESTED,
9165 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009166 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00009167 .block_erasers =
9168 {
9169 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00009170 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00009171 {8 * 1024, 1},
9172 {4 * 1024, 2},
9173 {8 * 1024, 2},
9174 {32 * 1024, 1},
9175 {64 * 1024, 1},
9176 },
Sean Nelson35727f72010-01-28 23:55:12 +00009177 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009178 }, {
9179 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009180 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009181 }
9182 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009183 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00009184 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009185 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00009186 },
9187
9188 {
9189 .vendor = "Macronix",
9190 .name = "MX29F001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009191 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009192 .manufacture_id = MACRONIX_ID,
9193 .model_id = MACRONIX_MX29F001T,
Mark Panajotovic502a9132009-08-24 01:42:24 +00009194 .total_size = 128,
9195 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009196 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stefan Tauner74c6ec62011-05-18 01:31:46 +00009197 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00009198 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009199 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00009200 .block_erasers =
9201 {
9202 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00009203 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00009204 {64 * 1024, 1},
9205 {32 * 1024, 1},
9206 {8 * 1024, 2},
9207 {4 * 1024, 2},
9208 {8 * 1024, 1},
9209 },
Sean Nelson35727f72010-01-28 23:55:12 +00009210 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009211 }, {
9212 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009213 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009214 }
9215 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009216 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00009217 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009218 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00009219 },
9220
9221 {
9222 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00009223 .name = "MX29F002(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009224 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009225 .manufacture_id = MACRONIX_ID,
9226 .model_id = MACRONIX_MX29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009227 .total_size = 256,
9228 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009229 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009230 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00009231 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009232 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009233 .block_erasers =
9234 {
9235 {
9236 .eraseblocks = {
9237 {16 * 1024, 1},
9238 {8 * 1024, 2},
9239 {32 * 1024, 1},
9240 {64 * 1024, 3},
9241 },
Sean Nelson35727f72010-01-28 23:55:12 +00009242 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009243 }, {
9244 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009245 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009246 },
9247 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009248 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009249 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009250 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009251 },
9252
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009253 {
9254 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00009255 .name = "MX29F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009256 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009257 .manufacture_id = MACRONIX_ID,
9258 .model_id = MACRONIX_MX29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009259 .total_size = 256,
9260 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009261 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00009262 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00009263 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009264 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009265 .block_erasers =
9266 {
9267 {
9268 .eraseblocks = {
9269 {64 * 1024, 3},
9270 {32 * 1024, 1},
9271 {8 * 1024, 2},
9272 {16 * 1024, 1},
9273 },
Sean Nelson35727f72010-01-28 23:55:12 +00009274 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009275 }, {
9276 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009277 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009278 },
9279 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009280 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009281 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009282 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009283 },
9284
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009285 {
9286 .vendor = "Macronix",
Daniele Forsi6a18a932014-07-13 14:53:45 +00009287 .name = "MX29F022(N)B",
9288 .bustype = BUS_PARALLEL,
9289 .manufacture_id = MACRONIX_ID,
9290 .model_id = MACRONIX_MX29F022B,
9291 .total_size = 256,
9292 .page_size = 0, /* unused */
9293 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9294 .tested = TEST_UNTESTED,
9295 .probe = probe_jedec,
9296 .probe_timing = TIMING_ZERO,
9297 .block_erasers =
9298 {
9299 {
9300 .eraseblocks = {
9301 {16 * 1024, 1},
9302 {8 * 1024, 2},
9303 {32 * 1024, 1},
9304 {64 * 1024, 3},
9305 },
9306 .block_erase = erase_sector_jedec,
9307 }, {
9308 .eraseblocks = { {256 * 1024, 1} },
9309 .block_erase = erase_chip_block_jedec,
9310 }
9311 },
9312 .write = write_jedec_1,
9313 .read = read_memmapped,
9314 .voltage = {4500, 5500},
9315 },
9316
9317 {
9318 .vendor = "Macronix",
9319 .name = "MX29F022(N)T",
9320 .bustype = BUS_PARALLEL,
9321 .manufacture_id = MACRONIX_ID,
9322 .model_id = MACRONIX_MX29F022T,
9323 .total_size = 256,
9324 .page_size = 0, /* unused */
9325 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9326 .tested = TEST_OK_PREW,
9327 .probe = probe_jedec,
9328 .probe_timing = TIMING_ZERO,
9329 .block_erasers =
9330 {
9331 {
9332 .eraseblocks = {
9333 {64 * 1024, 3},
9334 {32 * 1024, 1},
9335 {8 * 1024, 2},
9336 {16 * 1024, 1},
9337 },
9338 .block_erase = erase_sector_jedec,
9339 }, {
9340 .eraseblocks = { {256 * 1024, 1} },
9341 .block_erase = erase_chip_block_jedec,
9342 }
9343 },
9344 .write = write_jedec_1,
9345 .read = read_memmapped,
9346 .voltage = {4500, 5500},
9347 },
9348
9349 {
9350 .vendor = "Macronix",
Joshua Roysf1324e02010-09-16 00:51:51 +00009351 .name = "MX29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009352 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00009353 .manufacture_id = MACRONIX_ID,
9354 .model_id = MACRONIX_MX29F040,
9355 .total_size = 512,
9356 .page_size = 64 * 1024,
9357 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9358 .tested = TEST_UNTESTED,
9359 .probe = probe_jedec,
9360 .probe_timing = TIMING_ZERO,
9361 .block_erasers =
9362 {
9363 {
9364 .eraseblocks = { {64 * 1024, 8} },
9365 .block_erase = erase_sector_jedec,
9366 }, {
9367 .eraseblocks = { {512 * 1024, 1} },
9368 .block_erase = erase_chip_block_jedec,
9369 },
9370 },
9371 .write = write_jedec_1,
9372 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009373 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00009374 },
9375
9376 {
9377 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009378 .name = "MX29GL128F",
9379 .bustype = BUS_PARALLEL,
9380 .manufacture_id = MACRONIX_ID,
9381 .model_id = MACRONIX_MX29GL128F,
9382 .total_size = 16384,
9383 .page_size = 128 * 1024, /* actual page size is 16 */
9384 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9385 .tested = TEST_UNTESTED,
9386 .probe = probe_jedec_29gl,
9387 .probe_timing = TIMING_ZERO,
9388 .block_erasers =
9389 {
9390 {
9391 .eraseblocks = { {128 * 1024, 128} },
9392 .block_erase = erase_sector_jedec,
9393 }, {
9394 .eraseblocks = { {16 * 1024 * 1024, 1} },
9395 .block_erase = erase_chip_block_jedec,
9396 },
9397 },
9398 .write = write_jedec_1,
9399 .read = read_memmapped,
9400 .voltage = {2700, 3600},
9401 },
9402
9403 {
9404 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00009405 .name = "MX29GL320EB",
9406 .bustype = BUS_PARALLEL,
9407 .manufacture_id = MACRONIX_ID,
9408 .model_id = MACRONIX_MX29GL320EB,
9409 .total_size = 4096,
9410 .page_size = 128 * 1024, /* actual page size is 16 */
9411 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9412 .tested = TEST_UNTESTED,
9413 .probe = probe_jedec_29gl,
9414 .probe_timing = TIMING_ZERO,
9415 .block_erasers =
9416 {
9417 {
9418 .eraseblocks = {
9419 {8 * 1024, 8},
9420 {64 * 1024, 63},
9421 },
9422 .block_erase = erase_sector_jedec,
9423 }, {
9424 .eraseblocks = { {4 * 1024 * 1024, 1} },
9425 .block_erase = erase_chip_block_jedec,
9426 },
9427 },
9428 .write = write_jedec_1,
9429 .read = read_memmapped,
9430 .voltage = {2700, 3600},
9431 },
9432
9433 {
9434 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009435 .name = "MX29GL320EH/L",
9436 .bustype = BUS_PARALLEL,
9437 .manufacture_id = MACRONIX_ID,
9438 .model_id = MACRONIX_MX29GL320EHL,
9439 .total_size = 4096,
9440 .page_size = 128 * 1024, /* actual page size is 16 */
9441 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9442 .tested = TEST_UNTESTED,
9443 .probe = probe_jedec_29gl,
9444 .probe_timing = TIMING_ZERO,
9445 .block_erasers =
9446 {
9447 {
9448 .eraseblocks = { {64 * 1024, 64} },
9449 .block_erase = erase_sector_jedec,
9450 }, {
9451 .eraseblocks = { {4 * 1024 * 1024, 1} },
9452 .block_erase = erase_chip_block_jedec,
9453 },
9454 },
9455 .write = write_jedec_1,
9456 .read = read_memmapped,
9457 .voltage = {2700, 3600},
9458 },
9459
9460 {
9461 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00009462 .name = "MX29GL320ET",
9463 .bustype = BUS_PARALLEL,
9464 .manufacture_id = MACRONIX_ID,
9465 .model_id = MACRONIX_MX29GL320ET,
9466 .total_size = 4096,
9467 .page_size = 128 * 1024, /* actual page size is 16 */
9468 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9469 .tested = TEST_UNTESTED,
9470 .probe = probe_jedec_29gl,
9471 .probe_timing = TIMING_ZERO,
9472 .block_erasers =
9473 {
9474 {
9475 .eraseblocks = {
9476 {64 * 1024, 63},
9477 {8 * 1024, 8},
9478 },
9479 .block_erase = erase_sector_jedec,
9480 }, {
9481 .eraseblocks = { {4 * 1024 * 1024, 1} },
9482 .block_erase = erase_chip_block_jedec,
9483 },
9484 },
9485 .write = write_jedec_1,
9486 .read = read_memmapped,
9487 .voltage = {2700, 3600},
9488 },
9489
9490 {
9491 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00009492 .name = "MX29GL640EB",
9493 .bustype = BUS_PARALLEL,
9494 .manufacture_id = MACRONIX_ID,
9495 .model_id = MACRONIX_MX29GL640EB,
9496 .total_size = 8192,
9497 .page_size = 128 * 1024, /* actual page size is 16 */
9498 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9499 .tested = TEST_UNTESTED,
9500 .probe = probe_jedec_29gl,
9501 .probe_timing = TIMING_ZERO,
9502 .block_erasers =
9503 {
9504 {
9505 .eraseblocks = {
9506 {8 * 1024, 8},
9507 {64 * 1024, 127},
9508 },
9509 .block_erase = erase_sector_jedec,
9510 }, {
9511 .eraseblocks = { {8 * 1024 * 1024, 1} },
9512 .block_erase = erase_chip_block_jedec,
9513 },
9514 },
9515 .write = write_jedec_1,
9516 .read = read_memmapped,
9517 .voltage = {2700, 3600},
9518 },
9519
9520 {
9521 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009522 .name = "MX29GL640EH/L",
9523 .bustype = BUS_PARALLEL,
9524 .manufacture_id = MACRONIX_ID,
9525 .model_id = MACRONIX_MX29GL640EHL,
9526 .total_size = 8192,
9527 .page_size = 128 * 1024, /* actual page size is 16 */
9528 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9529 .tested = TEST_UNTESTED,
9530 .probe = probe_jedec_29gl,
9531 .probe_timing = TIMING_ZERO,
9532 .block_erasers =
9533 {
9534 {
9535 .eraseblocks = { {64 * 1024, 128} },
9536 .block_erase = erase_sector_jedec,
9537 }, {
9538 .eraseblocks = { {8 * 1024 * 1024, 1} },
9539 .block_erase = erase_chip_block_jedec,
9540 },
9541 },
9542 .write = write_jedec_1,
9543 .read = read_memmapped,
9544 .voltage = {2700, 3600},
9545 },
9546
9547 {
9548 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00009549 .name = "MX29GL640ET",
9550 .bustype = BUS_PARALLEL,
9551 .manufacture_id = MACRONIX_ID,
9552 .model_id = MACRONIX_MX29GL640ET,
9553 .total_size = 8192,
9554 .page_size = 128 * 1024, /* actual page size is 16 */
9555 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9556 .tested = TEST_UNTESTED,
9557 .probe = probe_jedec_29gl,
9558 .probe_timing = TIMING_ZERO,
9559 .block_erasers =
9560 {
9561 {
9562 .eraseblocks = {
9563 {64 * 1024, 127},
9564 {8 * 1024, 8},
9565 },
9566 .block_erase = erase_sector_jedec,
9567 }, {
9568 .eraseblocks = { {8 * 1024 * 1024, 1} },
9569 .block_erase = erase_chip_block_jedec,
9570 },
9571 },
9572 .write = write_jedec_1,
9573 .read = read_memmapped,
9574 .voltage = {2700, 3600},
9575 },
9576
9577 {
9578 .vendor = "Macronix",
Carl-Daniel Hailfinger350a0c32009-07-24 13:59:27 +00009579 .name = "MX29LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009580 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009581 .manufacture_id = MACRONIX_ID,
9582 .model_id = MACRONIX_MX29LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009583 .total_size = 512,
9584 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009585 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9586 .tested = TEST_UNTESTED,
9587 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009588 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00009589 .block_erasers =
9590 {
9591 {
Stefan Tauner6697f712014-08-06 15:09:15 +00009592 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +00009593 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009594 }, {
9595 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009596 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009597 },
9598 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009599 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009600 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009601 .voltage = {2700, 3600},
Carl-Daniel Hailfinger7de86392008-12-10 10:32:05 +00009602 },
9603
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009604 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009605 .vendor = "Macronix",
Hemanth Guruva Reddya136d422019-07-11 11:08:27 +02009606 .name = "MX66L51235F/MX25L51245G",
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009607 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009608 .manufacture_id = MACRONIX_ID,
9609 .model_id = MACRONIX_MX66L51235F,
9610 .total_size = 65536,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009611 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009612 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9613 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009614 .tested = TEST_OK_PREW,
9615 .probe = probe_spi_rdid,
9616 .probe_timing = TIMING_ZERO,
9617 .block_erasers =
9618 {
9619 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009620 .eraseblocks = { {4 * 1024, 16384} },
9621 .block_erase = spi_block_erase_21,
9622 }, {
9623 .eraseblocks = { {4 * 1024, 16384} },
9624 .block_erase = spi_block_erase_20,
9625 }, {
9626 .eraseblocks = { {32 * 1024, 2048} },
9627 .block_erase = spi_block_erase_5c,
9628 }, {
9629 .eraseblocks = { {32 * 1024, 2048} },
9630 .block_erase = spi_block_erase_52,
9631 }, {
9632 .eraseblocks = { {64 * 1024, 1024} },
9633 .block_erase = spi_block_erase_dc,
9634 }, {
9635 .eraseblocks = { {64 * 1024, 1024} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009636 .block_erase = spi_block_erase_d8,
9637 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009638 .eraseblocks = { {64 * 1024 * 1024, 1} },
9639 .block_erase = spi_block_erase_60,
9640 }, {
9641 .eraseblocks = { {64 * 1024 * 1024, 1} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009642 .block_erase = spi_block_erase_c7,
9643 }
9644 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10009645 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
9646 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009647 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009648 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009649 .read = spi_chip_read, /* Fast read (0x0B) supported */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009650 .voltage = {2700, 3600},
9651 },
9652
9653 /* The ST M25P05 is a bit of a problem. It has the same ID as the
9654 * ST M25P05-A in RES mode, but supports only 128 byte writes instead
9655 * of 256 byte writes. We rely heavily on the fact that probe_spi_res1
9656 * only is successful if RDID does not work.
9657 */
9658 {
9659 .vendor = "Micron/Numonyx/ST",
9660 .name = "M25P05",
9661 .bustype = BUS_SPI,
9662 .manufacture_id = 0, /* Not used. */
9663 .model_id = ST_M25P05_RES,
9664 .total_size = 64,
9665 .page_size = 256,
9666 .feature_bits = FEATURE_WRSR_WREN,
9667 .tested = TEST_UNTESTED,
9668 .probe = probe_spi_res1,
9669 .probe_timing = TIMING_ZERO,
9670 .block_erasers =
9671 {
9672 {
9673 .eraseblocks = { {32 * 1024, 2} },
9674 .block_erase = spi_block_erase_d8,
9675 }, {
9676 .eraseblocks = { {64 * 1024, 1} },
9677 .block_erase = spi_block_erase_c7,
9678 }
9679 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009680 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009681 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009682 .write = spi_chip_write_1, /* 128 */
9683 .read = spi_chip_read,
9684 .voltage = {2700, 3600},
9685 },
9686
9687 {
9688 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009689 .name = "M25P05-A",
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009690 .bustype = BUS_SPI,
9691 .manufacture_id = ST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009692 .model_id = ST_M25P05A,
9693 .total_size = 64,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009694 .page_size = 256,
9695 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +00009696 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009697 .probe = probe_spi_rdid,
9698 .probe_timing = TIMING_ZERO,
9699 .block_erasers =
9700 {
9701 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009702 .eraseblocks = { {32 * 1024, 2} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009703 .block_erase = spi_block_erase_d8,
9704 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009705 .eraseblocks = { {64 * 1024, 1} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009706 .block_erase = spi_block_erase_c7,
9707 }
9708 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009709 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009710 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009711 .write = spi_chip_write_256,
9712 .read = spi_chip_read,
9713 .voltage = {2700, 3600},
9714 },
9715
9716 /* The ST M25P10 has the same problem as the M25P05. */
9717 {
9718 .vendor = "Micron/Numonyx/ST",
9719 .name = "M25P10",
9720 .bustype = BUS_SPI,
9721 .manufacture_id = 0, /* Not used. */
9722 .model_id = ST_M25P10_RES,
9723 .total_size = 128,
9724 .page_size = 256,
9725 .feature_bits = FEATURE_WRSR_WREN,
9726 .tested = TEST_UNTESTED,
9727 .probe = probe_spi_res1,
9728 .probe_timing = TIMING_ZERO,
9729 .block_erasers =
9730 {
9731 {
9732 .eraseblocks = { {32 * 1024, 4} },
9733 .block_erase = spi_block_erase_d8,
9734 }, {
9735 .eraseblocks = { {128 * 1024, 1} },
9736 .block_erase = spi_block_erase_c7,
9737 }
9738 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009739 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009740 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009741 .write = spi_chip_write_1, /* 128 */
9742 .read = spi_chip_read,
9743 .voltage = {2700, 3600},
9744 },
9745
9746 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009747 .vendor = "Micron/Numonyx/ST",
9748 .name = "M25P10-A",
9749 .bustype = BUS_SPI,
9750 .manufacture_id = ST_ID,
9751 .model_id = ST_M25P10A,
9752 .total_size = 128,
9753 .page_size = 256,
9754 .feature_bits = FEATURE_WRSR_WREN,
9755 .tested = TEST_OK_PREW,
9756 .probe = probe_spi_rdid,
9757 .probe_timing = TIMING_ZERO,
9758 .block_erasers =
9759 {
9760 {
9761 .eraseblocks = { {32 * 1024, 4} },
9762 .block_erase = spi_block_erase_d8,
9763 }, {
9764 .eraseblocks = { {128 * 1024, 1} },
9765 .block_erase = spi_block_erase_c7,
9766 }
9767 },
9768 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
9769 .unlock = spi_disable_blockprotect_bp3_srwd,
9770 .write = spi_chip_write_256,
9771 .read = spi_chip_read,
9772 .voltage = {2700, 3600},
9773 },
9774
9775 {
9776 .vendor = "Micron/Numonyx/ST",
9777 .name = "M25P128",
9778 .bustype = BUS_SPI,
9779 .manufacture_id = ST_ID,
9780 .model_id = ST_M25P128,
9781 .total_size = 16384,
9782 .page_size = 256,
9783 .feature_bits = FEATURE_WRSR_WREN,
9784 .tested = TEST_OK_PREW,
9785 .probe = probe_spi_rdid,
9786 .probe_timing = TIMING_ZERO,
9787 .block_erasers =
9788 {
9789 {
9790 .eraseblocks = { {256 * 1024, 64} },
9791 .block_erase = spi_block_erase_d8,
9792 }, {
9793 .eraseblocks = { {16 * 1024 * 1024, 1} },
9794 .block_erase = spi_block_erase_c7,
9795 }
9796 },
9797 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
9798 .unlock = spi_disable_blockprotect_bp3_srwd,
9799 .write = spi_chip_write_256,
9800 .read = spi_chip_read,
9801 .voltage = {2700, 3600},
9802 },
9803
9804 {
9805 .vendor = "Micron/Numonyx/ST",
9806 .name = "M25P16",
9807 .bustype = BUS_SPI,
9808 .manufacture_id = ST_ID,
9809 .model_id = ST_M25P16,
9810 .total_size = 2048,
9811 .page_size = 256,
9812 .feature_bits = FEATURE_WRSR_WREN,
9813 .tested = TEST_OK_PREW,
9814 .probe = probe_spi_rdid,
9815 .probe_timing = TIMING_ZERO,
9816 .block_erasers =
9817 {
9818 {
9819 .eraseblocks = { {64 * 1024, 32} },
9820 .block_erase = spi_block_erase_d8,
9821 }, {
9822 .eraseblocks = { {2 * 1024 * 1024, 1} },
9823 .block_erase = spi_block_erase_c7,
9824 }
9825 },
9826 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
9827 .unlock = spi_disable_blockprotect_bp3_srwd,
9828 .write = spi_chip_write_256,
9829 .read = spi_chip_read,
9830 .voltage = {2700, 3600},
9831 },
9832
9833 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009834 .vendor = "Micron/Numonyx/ST", /* Numonyx */
9835 .name = "M25P20",
9836 .bustype = BUS_SPI,
9837 .manufacture_id = ST_ID,
9838 .model_id = ST_M25P20,
9839 .total_size = 256,
9840 .page_size = 256,
9841 .feature_bits = FEATURE_WRSR_WREN,
9842 .tested = TEST_UNTESTED,
9843 .probe = probe_spi_rdid,
9844 .probe_timing = TIMING_ZERO,
9845 .block_erasers =
9846 {
9847 {
9848 .eraseblocks = { {64 * 1024, 4} },
9849 .block_erase = spi_block_erase_d8,
9850 }, {
9851 .eraseblocks = { {256 * 1024, 1} },
9852 .block_erase = spi_block_erase_c7,
9853 }
9854 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009855 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009856 .unlock = spi_disable_blockprotect,
9857 .write = spi_chip_write_256,
9858 .read = spi_chip_read, /* Fast read (0x0B) supported */
9859 .voltage = {2700, 3600},
9860 },
9861
9862 {
9863 .vendor = "Micron/Numonyx/ST",
9864 .name = "M25P20-old",
9865 .bustype = BUS_SPI,
9866 .manufacture_id = 0, /* Not used. */
9867 .model_id = ST_M25P20_RES,
9868 .total_size = 256,
9869 .page_size = 256,
9870 .feature_bits = FEATURE_WRSR_WREN,
9871 .tested = TEST_OK_PREW,
9872 .probe = probe_spi_res1,
9873 .probe_timing = TIMING_ZERO,
9874 .block_erasers =
9875 {
9876 {
9877 .eraseblocks = { {64 * 1024, 4} },
9878 .block_erase = spi_block_erase_d8,
9879 }, {
9880 .eraseblocks = { {256 * 1024, 1} },
9881 .block_erase = spi_block_erase_c7,
9882 }
9883 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009884 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009885 .unlock = spi_disable_blockprotect,
9886 .write = spi_chip_write_256,
9887 .read = spi_chip_read, /* Fast read (0x0B) supported */
9888 .voltage = {2700, 3600},
9889 },
9890
9891 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009892 .vendor = "Micron/Numonyx/ST",
9893 .name = "M25P32",
9894 .bustype = BUS_SPI,
9895 .manufacture_id = ST_ID,
9896 .model_id = ST_M25P32,
9897 .total_size = 4096,
9898 .page_size = 256,
9899 .feature_bits = FEATURE_WRSR_WREN,
9900 .tested = TEST_OK_PREW,
9901 .probe = probe_spi_rdid,
9902 .probe_timing = TIMING_ZERO,
9903 .block_erasers =
9904 {
9905 {
9906 .eraseblocks = { {64 * 1024, 64} },
9907 .block_erase = spi_block_erase_d8,
9908 }, {
9909 .eraseblocks = { {4 * 1024 * 1024, 1} },
9910 .block_erase = spi_block_erase_c7,
9911 }
9912 },
9913 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
9914 .unlock = spi_disable_blockprotect_bp3_srwd,
9915 .write = spi_chip_write_256,
9916 .read = spi_chip_read,
9917 .voltage = {2700, 3600},
9918 },
9919
9920 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009921 .vendor = "Micron/Numonyx/ST", /* Numonyx */
9922 .name = "M25P40",
9923 .bustype = BUS_SPI,
9924 .manufacture_id = ST_ID,
9925 .model_id = ST_M25P40,
9926 .total_size = 512,
9927 .page_size = 256,
9928 .feature_bits = FEATURE_WRSR_WREN,
9929 .tested = TEST_OK_PREW,
9930 .probe = probe_spi_rdid,
9931 .probe_timing = TIMING_ZERO,
9932 .block_erasers =
9933 {
9934 {
9935 .eraseblocks = { {64 * 1024, 8} },
9936 .block_erase = spi_block_erase_d8,
9937 }, {
9938 .eraseblocks = { {512 * 1024, 1} },
9939 .block_erase = spi_block_erase_c7,
9940 }
9941 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009942 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009943 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009944 .write = spi_chip_write_256,
9945 .read = spi_chip_read,
9946 .voltage = {2700, 3600},
9947 },
9948
9949 {
9950 .vendor = "Micron/Numonyx/ST",
9951 .name = "M25P40-old",
9952 .bustype = BUS_SPI,
9953 .manufacture_id = 0, /* Not used. */
9954 .model_id = ST_M25P40_RES,
9955 .total_size = 512,
9956 .page_size = 256,
9957 .feature_bits = FEATURE_WRSR_WREN,
9958 .tested = TEST_UNTESTED,
9959 .probe = probe_spi_res1,
9960 .probe_timing = TIMING_ZERO,
9961 .block_erasers =
9962 {
9963 {
9964 .eraseblocks = { {64 * 1024, 8} },
9965 .block_erase = spi_block_erase_d8,
9966 }, {
9967 .eraseblocks = { {512 * 1024, 1} },
9968 .block_erase = spi_block_erase_c7,
9969 }
9970 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009971 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009972 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009973 .write = spi_chip_write_256,
9974 .read = spi_chip_read,
9975 },
9976
9977 {
9978 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009979 .name = "M25P64",
9980 .bustype = BUS_SPI,
9981 .manufacture_id = ST_ID,
9982 .model_id = ST_M25P64,
9983 .total_size = 8192,
9984 .page_size = 256,
9985 .feature_bits = FEATURE_WRSR_WREN,
9986 .tested = TEST_OK_PREW,
9987 .probe = probe_spi_rdid,
9988 .probe_timing = TIMING_ZERO,
9989 .block_erasers =
9990 {
9991 {
9992 .eraseblocks = { {64 * 1024, 128} },
9993 .block_erase = spi_block_erase_d8,
9994 }, {
9995 .eraseblocks = { {8 * 1024 * 1024, 1} },
9996 .block_erase = spi_block_erase_c7,
9997 }
9998 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009999 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010000 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010001 .write = spi_chip_write_256,
10002 .read = spi_chip_read,
10003 .voltage = {2700, 3600},
10004 },
10005
10006 {
10007 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010008 .name = "M25P80",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010009 .bustype = BUS_SPI,
10010 .manufacture_id = ST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010011 .model_id = ST_M25P80,
10012 .total_size = 1024,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010013 .page_size = 256,
10014 .feature_bits = FEATURE_WRSR_WREN,
10015 .tested = TEST_OK_PREW,
10016 .probe = probe_spi_rdid,
10017 .probe_timing = TIMING_ZERO,
10018 .block_erasers =
10019 {
10020 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010021 .eraseblocks = { {64 * 1024, 16} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010022 .block_erase = spi_block_erase_d8,
10023 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010024 .eraseblocks = { {1024 * 1024, 1} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010025 .block_erase = spi_block_erase_c7,
10026 }
10027 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010028 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010029 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010030 .write = spi_chip_write_256,
10031 .read = spi_chip_read,
10032 .voltage = {2700, 3600},
10033 },
10034
10035 {
10036 .vendor = "Micron/Numonyx/ST",
10037 .name = "M25PE10",
10038 .bustype = BUS_SPI,
10039 .manufacture_id = ST_ID,
10040 .model_id = ST_M25PE10,
10041 .total_size = 128,
10042 .page_size = 256,
10043 .feature_bits = FEATURE_WRSR_WREN,
10044 .tested = TEST_UNTESTED,
10045 .probe = probe_spi_rdid,
10046 .probe_timing = TIMING_ZERO,
10047 .block_erasers =
10048 {
10049 {
10050 .eraseblocks = { {4 * 1024, 32} },
10051 .block_erase = spi_block_erase_20,
10052 }, {
10053 .eraseblocks = { {64 * 1024, 2} },
10054 .block_erase = spi_block_erase_d8,
10055 }, {
10056 .eraseblocks = { {128 * 1024, 1} },
10057 .block_erase = spi_block_erase_c7,
10058 }
10059 },
10060 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10061 .unlock = spi_disable_blockprotect,
10062 .write = spi_chip_write_256,
10063 .read = spi_chip_read,
10064 .voltage = {2700, 3600},
10065 },
10066
10067 {
10068 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010069 .name = "M25PE16",
10070 .bustype = BUS_SPI,
10071 .manufacture_id = ST_ID,
10072 .model_id = ST_M25PE16,
10073 .total_size = 2048,
10074 .page_size = 256,
10075 .feature_bits = FEATURE_WRSR_WREN,
10076 .tested = TEST_UNTESTED,
10077 .probe = probe_spi_rdid,
10078 .probe_timing = TIMING_ZERO,
10079 .block_erasers =
10080 {
10081 {
10082 .eraseblocks = { {4 * 1024, 512} },
10083 .block_erase = spi_block_erase_20,
10084 }, {
10085 .eraseblocks = { {64 * 1024, 32} },
10086 .block_erase = spi_block_erase_d8,
10087 }, {
10088 .eraseblocks = { {2 * 1024 * 1024, 1} },
10089 .block_erase = spi_block_erase_c7,
10090 }
10091 },
10092 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10093 .unlock = spi_disable_blockprotect,
10094 .write = spi_chip_write_256,
10095 .read = spi_chip_read,
10096 .voltage = {2700, 3600},
10097 },
10098
10099 {
10100 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010101 .name = "M25PE20",
10102 .bustype = BUS_SPI,
10103 .manufacture_id = ST_ID,
10104 .model_id = ST_M25PE20,
10105 .total_size = 256,
10106 .page_size = 256,
10107 .feature_bits = FEATURE_WRSR_WREN,
10108 .tested = TEST_UNTESTED,
10109 .probe = probe_spi_rdid,
10110 .probe_timing = TIMING_ZERO,
10111 .block_erasers =
10112 {
10113 {
10114 .eraseblocks = { {4 * 1024, 64} },
10115 .block_erase = spi_block_erase_20,
10116 }, {
10117 .eraseblocks = { {64 * 1024, 4} },
10118 .block_erase = spi_block_erase_d8,
10119 }, {
10120 .eraseblocks = { {256 * 1024, 1} },
10121 .block_erase = spi_block_erase_c7,
10122 }
10123 },
10124 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10125 .unlock = spi_disable_blockprotect,
10126 .write = spi_chip_write_256,
10127 .read = spi_chip_read,
10128 .voltage = {2700, 3600},
10129 },
10130
10131 {
10132 .vendor = "Micron/Numonyx/ST",
10133 .name = "M25PE40",
10134 .bustype = BUS_SPI,
10135 .manufacture_id = ST_ID,
10136 .model_id = ST_M25PE40,
10137 .total_size = 512,
10138 .page_size = 256,
10139 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000010140 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010141 .probe = probe_spi_rdid,
10142 .probe_timing = TIMING_ZERO,
10143 .block_erasers =
10144 {
10145 {
10146 .eraseblocks = { {4 * 1024, 128} },
10147 .block_erase = spi_block_erase_20,
10148 }, {
10149 .eraseblocks = { {64 * 1024, 8} },
10150 .block_erase = spi_block_erase_d8,
10151 }, {
10152 .eraseblocks = { {512 * 1024, 1} },
10153 .block_erase = spi_block_erase_c7,
10154 }
10155 },
10156 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10157 .unlock = spi_disable_blockprotect,
10158 .write = spi_chip_write_256,
10159 .read = spi_chip_read,
10160 .voltage = {2700, 3600},
10161 },
10162
10163 {
10164 .vendor = "Micron/Numonyx/ST",
10165 .name = "M25PE80",
10166 .bustype = BUS_SPI,
10167 .manufacture_id = ST_ID,
10168 .model_id = ST_M25PE80,
10169 .total_size = 1024,
10170 .page_size = 256,
10171 .feature_bits = FEATURE_WRSR_WREN,
10172 .tested = TEST_OK_PREW,
10173 .probe = probe_spi_rdid,
10174 .probe_timing = TIMING_ZERO,
10175 .block_erasers =
10176 {
10177 {
10178 .eraseblocks = { {4 * 1024, 256} },
10179 .block_erase = spi_block_erase_20,
10180 }, {
10181 .eraseblocks = { {64 * 1024, 16} },
10182 .block_erase = spi_block_erase_d8,
10183 }, {
10184 .eraseblocks = { {1024 * 1024, 1} },
10185 .block_erase = spi_block_erase_c7,
10186 }
10187 },
10188 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10189 .unlock = spi_disable_blockprotect,
10190 .write = spi_chip_write_256,
10191 .read = spi_chip_read,
10192 .voltage = {2700, 3600},
10193 },
10194
10195 {
10196 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010197 .name = "M25PX16",
10198 .bustype = BUS_SPI,
10199 .manufacture_id = ST_ID,
10200 .model_id = ST_M25PX16,
10201 .total_size = 2048,
10202 .page_size = 256,
10203 /* OTP: 64B total; read 0x4B; write 0x42 */
10204 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10205 .tested = TEST_OK_PREW,
10206 .probe = probe_spi_rdid,
10207 .probe_timing = TIMING_ZERO,
10208 .block_erasers =
10209 {
10210 {
10211 .eraseblocks = { { 4 * 1024, 512 } },
10212 .block_erase = spi_block_erase_20,
10213 }, {
10214 .eraseblocks = { {64 * 1024, 32} },
10215 .block_erase = spi_block_erase_d8,
10216 }, {
10217 .eraseblocks = { {2 * 1024 * 1024, 1} },
10218 .block_erase = spi_block_erase_c7,
10219 }
10220 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010221 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010222 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
10223 .write = spi_chip_write_256,
10224 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000010225 .voltage = {2300, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010226 },
10227
10228 {
10229 .vendor = "Micron/Numonyx/ST",
10230 .name = "M25PX32",
10231 .bustype = BUS_SPI,
10232 .manufacture_id = ST_ID,
10233 .model_id = ST_M25PX32,
10234 .total_size = 4096,
10235 .page_size = 256,
10236 /* OTP: 64B total; read 0x4B; write 0x42 */
10237 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10238 .tested = TEST_OK_PRE,
10239 .probe = probe_spi_rdid,
10240 .probe_timing = TIMING_ZERO,
10241 .block_erasers =
10242 {
10243 {
10244 .eraseblocks = { { 4 * 1024, 1024 } },
10245 .block_erase = spi_block_erase_20,
10246 }, {
10247 .eraseblocks = { {64 * 1024, 64} },
10248 .block_erase = spi_block_erase_d8,
10249 }, {
10250 .eraseblocks = { {4 * 1024 * 1024, 1} },
10251 .block_erase = spi_block_erase_c7,
10252 }
10253 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010254 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010255 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
10256 .write = spi_chip_write_256,
10257 .read = spi_chip_read,
10258 .voltage = {2700, 3600},
10259 },
10260
10261 {
10262 .vendor = "Micron/Numonyx/ST",
10263 .name = "M25PX64",
10264 .bustype = BUS_SPI,
10265 .manufacture_id = ST_ID,
10266 .model_id = ST_M25PX64,
10267 .total_size = 8192,
10268 .page_size = 256,
10269 /* OTP: 64B total; read 0x4B; write 0x42 */
10270 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000010271 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010272 .probe = probe_spi_rdid,
10273 .probe_timing = TIMING_ZERO,
10274 .block_erasers =
10275 {
10276 {
10277 .eraseblocks = { { 4 * 1024, 2048 } },
10278 .block_erase = spi_block_erase_20,
10279 }, {
10280 .eraseblocks = { {64 * 1024, 128} },
10281 .block_erase = spi_block_erase_d8,
10282 }, {
10283 .eraseblocks = { {8 * 1024 * 1024, 1} },
10284 .block_erase = spi_block_erase_c7,
10285 }
10286 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010287 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010288 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
10289 .write = spi_chip_write_256,
10290 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000010291 .voltage = {2700, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010292 },
10293
10294 {
10295 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010296 .name = "M25PX80",
10297 .bustype = BUS_SPI,
10298 .manufacture_id = ST_ID,
10299 .model_id = ST_M25PX80,
10300 .total_size = 1024,
10301 .page_size = 256,
10302 /* OTP: 64B total; read 0x4B, write 0x42 */
10303 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10304 .tested = TEST_OK_PREW,
10305 .probe = probe_spi_rdid,
10306 .probe_timing = TIMING_ZERO,
10307 .block_erasers =
10308 {
10309 {
10310 .eraseblocks = { { 4 * 1024, 256 } },
10311 .block_erase = spi_block_erase_20,
10312 }, {
10313 .eraseblocks = { {64 * 1024, 16} },
10314 .block_erase = spi_block_erase_d8,
10315 }, {
10316 .eraseblocks = { {1024 * 1024, 1} },
10317 .block_erase = spi_block_erase_c7,
10318 }
10319 },
10320 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
10321 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
10322 .write = spi_chip_write_256,
10323 .read = spi_chip_read,
10324 .voltage = {2700, 3600},
10325 },
10326
10327 {
10328 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010329 .name = "M45PE10",
10330 .bustype = BUS_SPI,
10331 .manufacture_id = ST_ID,
10332 .model_id = ST_M45PE10,
10333 .total_size = 128,
10334 .page_size = 256,
10335 .tested = TEST_UNTESTED,
10336 .probe = probe_spi_rdid,
10337 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100010338 .block_erasers =
10339 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010340 {
10341 .eraseblocks = { {256, 512} },
10342 .block_erase = spi_block_erase_db,
10343 }, {
10344 .eraseblocks = { {64 * 1024, 2} },
10345 .block_erase = spi_block_erase_d8,
10346 }
10347 },
10348 .printlock = spi_prettyprint_status_register_default_welwip,
10349 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
10350 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
10351 .read = spi_chip_read, /* Fast read (0x0B) supported */
10352 .voltage = {2700, 3600},
10353 },
10354
10355 {
10356 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010357 .name = "M45PE16",
10358 .bustype = BUS_SPI,
10359 .manufacture_id = ST_ID,
10360 .model_id = ST_M45PE16,
10361 .total_size = 2048,
10362 .page_size = 256,
10363 .tested = TEST_UNTESTED,
10364 .probe = probe_spi_rdid,
10365 .probe_timing = TIMING_ZERO,
10366 .block_erasers =
10367 {
10368 {
10369 .eraseblocks = { {256, 8192} },
10370 .block_erase = spi_block_erase_db,
10371 }, {
10372 .eraseblocks = { {64 * 1024, 32} },
10373 .block_erase = spi_block_erase_d8,
10374 }
10375 },
10376 .printlock = spi_prettyprint_status_register_default_welwip,
10377 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
10378 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
10379 .read = spi_chip_read, /* Fast read (0x0B) supported */
10380 .voltage = {2700, 3600},
10381 },
10382
10383 {
10384 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010385 .name = "M45PE20",
10386 .bustype = BUS_SPI,
10387 .manufacture_id = ST_ID,
10388 .model_id = ST_M45PE20,
10389 .total_size = 256,
10390 .page_size = 256,
10391 .tested = TEST_UNTESTED,
10392 .probe = probe_spi_rdid,
10393 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100010394 .block_erasers =
10395 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010396 {
10397 .eraseblocks = { {256, 1024} },
10398 .block_erase = spi_block_erase_db,
10399 }, {
10400 .eraseblocks = { {64 * 1024, 4} },
10401 .block_erase = spi_block_erase_d8,
10402 }
10403 },
10404 .printlock = spi_prettyprint_status_register_default_welwip,
10405 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
10406 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
10407 .read = spi_chip_read, /* Fast read (0x0B) supported */
10408 .voltage = {2700, 3600},
10409 },
10410
10411 {
10412 .vendor = "Micron/Numonyx/ST",
10413 .name = "M45PE40",
10414 .bustype = BUS_SPI,
10415 .manufacture_id = ST_ID,
10416 .model_id = ST_M45PE40,
10417 .total_size = 512,
10418 .page_size = 256,
10419 .tested = TEST_UNTESTED,
10420 .probe = probe_spi_rdid,
10421 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100010422 .block_erasers =
10423 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010424 {
10425 .eraseblocks = { {256, 2048} },
10426 .block_erase = spi_block_erase_db,
10427 }, {
10428 .eraseblocks = { {64 * 1024, 8} },
10429 .block_erase = spi_block_erase_d8,
10430 }
10431 },
10432 .printlock = spi_prettyprint_status_register_default_welwip,
10433 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
Stefan Tauner23e10b82016-01-23 16:16:49 +000010434 .write = spi_chip_write_256, /* Page write supported (similar to PP but allows 0->1 changes) */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010435 .read = spi_chip_read, /* Fast read (0x0B) supported */
10436 .voltage = {2700, 3600},
10437 },
10438
10439 {
10440 .vendor = "Micron/Numonyx/ST",
10441 .name = "M45PE80",
10442 .bustype = BUS_SPI,
10443 .manufacture_id = ST_ID,
10444 .model_id = ST_M45PE80,
10445 .total_size = 1024,
10446 .page_size = 256,
10447 .tested = TEST_UNTESTED,
10448 .probe = probe_spi_rdid,
10449 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100010450 .block_erasers =
10451 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010452 {
10453 .eraseblocks = { {256, 4096} },
10454 .block_erase = spi_block_erase_db,
10455 }, {
10456 .eraseblocks = { {64 * 1024, 16} },
10457 .block_erase = spi_block_erase_d8,
10458 }
10459 },
10460 .printlock = spi_prettyprint_status_register_default_welwip,
10461 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
10462 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
10463 .read = spi_chip_read, /* Fast read (0x0B) supported */
10464 .voltage = {2700, 3600},
10465 },
10466
10467 {
10468 .vendor = "Micron/Numonyx/ST",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070010469 .name = "N25Q00A..1G", /* ..1G = 1.8V, uniform 64KB/4KB blocks/sectors */
10470 .bustype = BUS_SPI,
10471 .manufacture_id = ST_ID,
10472 .model_id = ST_N25Q00A__1G,
10473 .total_size = 131072,
10474 .page_size = 256,
10475 /* supports SFDP */
10476 /* OTP: 64B total; read 0x4B, write 0x42 */
10477 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
10478 .tested = TEST_UNTESTED,
10479 .probe = probe_spi_rdid,
10480 .probe_timing = TIMING_ZERO,
10481 .block_erasers =
10482 {
10483 {
10484 .eraseblocks = { {4 * 1024, 32768} },
10485 .block_erase = spi_block_erase_21,
10486 }, {
10487 .eraseblocks = { {4 * 1024, 32768} },
10488 .block_erase = spi_block_erase_20,
10489 }, {
10490 .eraseblocks = { {64 * 1024, 2048} },
10491 .block_erase = spi_block_erase_dc,
10492 }, {
10493 .eraseblocks = { {64 * 1024, 2048} },
10494 .block_erase = spi_block_erase_d8,
10495 }, {
10496 .eraseblocks = { {32768 * 1024, 4} },
10497 .block_erase = spi_block_erase_c4,
10498 }
10499 },
10500 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10501 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10502 .write = spi_chip_write_256, /* Multi I/O supported */
10503 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10504 .voltage = {1700, 2000},
10505 },
10506
10507 {
10508 .vendor = "Micron/Numonyx/ST",
10509 .name = "N25Q00A..3G", /* ..3G = 3V, uniform 64KB/4KB blocks/sectors */
10510 .bustype = BUS_SPI,
10511 .manufacture_id = ST_ID,
10512 .model_id = ST_N25Q00A__3G,
10513 .total_size = 131072,
10514 .page_size = 256,
10515 /* supports SFDP */
10516 /* OTP: 64B total; read 0x4B, write 0x42 */
10517 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
10518 .tested = TEST_UNTESTED,
10519 .probe = probe_spi_rdid,
10520 .probe_timing = TIMING_ZERO,
10521 .block_erasers =
10522 {
10523 {
10524 .eraseblocks = { {4 * 1024, 32768} },
10525 .block_erase = spi_block_erase_21,
10526 }, {
10527 .eraseblocks = { {4 * 1024, 32768} },
10528 .block_erase = spi_block_erase_20,
10529 }, {
10530 .eraseblocks = { {64 * 1024, 2048} },
10531 .block_erase = spi_block_erase_dc,
10532 }, {
10533 .eraseblocks = { {64 * 1024, 2048} },
10534 .block_erase = spi_block_erase_d8,
10535 }, {
10536 .eraseblocks = { {32768 * 1024, 4} },
10537 .block_erase = spi_block_erase_c4,
10538 }
10539 },
10540 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10541 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10542 .write = spi_chip_write_256, /* Multi I/O supported */
10543 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10544 .voltage = {2700, 3600},
10545 },
10546
10547 {
10548 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010549 .name = "N25Q016",
10550 .bustype = BUS_SPI,
10551 .manufacture_id = ST_ID,
10552 .model_id = ST_N25Q016__1E,
10553 .total_size = 2048,
10554 .page_size = 256,
10555 /* supports SFDP */
10556 /* OTP: 64B total; read 0x4B, write 0x42 */
10557 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10558 .tested = TEST_UNTESTED,
10559 .probe = probe_spi_rdid,
10560 .probe_timing = TIMING_ZERO,
10561 .block_erasers =
10562 {
10563 {
10564 .eraseblocks = { {4 * 1024, 512} },
10565 .block_erase = spi_block_erase_20,
10566 }, {
10567 .eraseblocks = { {32 * 1024, 64} },
10568 .block_erase = spi_block_erase_52,
10569 }, {
10570 .eraseblocks = { {64 * 1024, 32} },
10571 .block_erase = spi_block_erase_d8,
10572 }, {
10573 .eraseblocks = { {2 * 1024 * 1024, 1} },
10574 .block_erase = spi_block_erase_c7,
10575 }
10576 },
10577 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10578 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10579 .write = spi_chip_write_256, /* Multi I/O supported */
10580 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10581 .voltage = {1700, 2000},
10582 },
10583
10584 {
10585 .vendor = "Micron/Numonyx/ST",
10586 .name = "N25Q032..1E",
10587 .bustype = BUS_SPI,
10588 .manufacture_id = ST_ID,
10589 .model_id = ST_N25Q032__1E,
10590 .total_size = 4096,
10591 .page_size = 256,
10592 /* supports SFDP */
10593 /* OTP: 64B total; read 0x4B, write 0x42 */
10594 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10595 .tested = TEST_UNTESTED,
10596 .probe = probe_spi_rdid,
10597 .probe_timing = TIMING_ZERO,
10598 .block_erasers =
10599 {
10600 {
10601 .eraseblocks = { {4 * 1024, 1024} },
10602 .block_erase = spi_block_erase_20,
10603 }, {
10604 .eraseblocks = { {64 * 1024, 64} },
10605 .block_erase = spi_block_erase_d8,
10606 }, {
10607 .eraseblocks = { {4 * 1024 * 1024, 1} },
10608 .block_erase = spi_block_erase_c7,
10609 }
10610 },
10611 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10612 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10613 .write = spi_chip_write_256, /* Multi I/O supported */
10614 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10615 .voltage = {1700, 2000},
10616 },
10617
10618 {
10619 .vendor = "Micron/Numonyx/ST",
10620 .name = "N25Q032..3E",
10621 .bustype = BUS_SPI,
10622 .manufacture_id = ST_ID,
10623 .model_id = ST_N25Q032__3E,
10624 .total_size = 4096,
10625 .page_size = 256,
10626 /* supports SFDP */
10627 /* OTP: 64B total; read 0x4B, write 0x42 */
10628 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10629 .tested = TEST_OK_PREW,
10630 .probe = probe_spi_rdid,
10631 .probe_timing = TIMING_ZERO,
10632 .block_erasers =
10633 {
10634 {
10635 .eraseblocks = { {4 * 1024, 1024} },
10636 .block_erase = spi_block_erase_20,
10637 }, {
10638 .eraseblocks = { {64 * 1024, 64} },
10639 .block_erase = spi_block_erase_d8,
10640 }, {
10641 .eraseblocks = { {4 * 1024 * 1024, 1} },
10642 .block_erase = spi_block_erase_c7,
10643 }
10644 },
10645 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10646 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10647 .write = spi_chip_write_256, /* Multi I/O supported */
10648 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10649 .voltage = {2700, 3600},
10650 },
10651
10652 {
10653 .vendor = "Micron/Numonyx/ST",
10654 .name = "N25Q064..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
10655 .bustype = BUS_SPI,
10656 .manufacture_id = ST_ID,
10657 .model_id = ST_N25Q064__1E,
10658 .total_size = 8192,
10659 .page_size = 256,
10660 /* supports SFDP */
10661 /* OTP: 64B total; read 0x4B, write 0x42 */
10662 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000010663 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010664 .probe = probe_spi_rdid,
10665 .probe_timing = TIMING_ZERO,
10666 .block_erasers =
10667 {
10668 {
10669 .eraseblocks = { {4 * 1024, 2048 } },
10670 .block_erase = spi_block_erase_20,
10671 }, {
10672 .eraseblocks = { {64 * 1024, 128} },
10673 .block_erase = spi_block_erase_d8,
10674 }, {
10675 .eraseblocks = { {8 * 1024 * 1024, 1} },
10676 .block_erase = spi_block_erase_c7,
10677 }
10678 },
10679 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10680 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10681 .write = spi_chip_write_256, /* Multi I/O supported */
10682 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10683 .voltage = {1700, 2000},
10684 },
10685
10686 {
10687 .vendor = "Micron/Numonyx/ST",
10688 .name = "N25Q064..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
10689 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100010690 .manufacture_id = ST_ID,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010691 .model_id = ST_N25Q064__3E,
10692 .total_size = 8192,
10693 .page_size = 256,
10694 /* supports SFDP */
10695 /* OTP: 64B total; read 0x4B, write 0x42 */
10696 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10697 .tested = TEST_OK_PREW,
10698 .probe = probe_spi_rdid,
10699 .probe_timing = TIMING_ZERO,
10700 .block_erasers =
10701 {
10702 {
10703 .eraseblocks = { {4 * 1024, 2048 } },
10704 .block_erase = spi_block_erase_20,
10705 }, {
10706 .eraseblocks = { {64 * 1024, 128} },
10707 .block_erase = spi_block_erase_d8,
10708 }, {
10709 .eraseblocks = { {8 * 1024 * 1024, 1} },
10710 .block_erase = spi_block_erase_c7,
10711 }
10712 },
10713 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10714 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10715 .write = spi_chip_write_256, /* Multi I/O supported */
10716 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10717 .voltage = {2700, 3600},
10718 },
10719
10720 {
10721 .vendor = "Micron/Numonyx/ST",
10722 .name = "N25Q128..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
10723 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100010724 .manufacture_id = ST_ID,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010725 .model_id = ST_N25Q128__1E,
10726 .total_size = 16384,
10727 .page_size = 256,
10728 /* supports SFDP */
10729 /* OTP: 64B total; read 0x4B, write 0x42 */
10730 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000010731 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010732 .probe = probe_spi_rdid,
10733 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100010734 .block_erasers =
10735 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010736 {
10737 .eraseblocks = { {4 * 1024, 4096 } },
10738 .block_erase = spi_block_erase_20,
10739 }, {
10740 .eraseblocks = { {64 * 1024, 256} },
10741 .block_erase = spi_block_erase_d8,
10742 }, {
10743 .eraseblocks = { {16384 * 1024, 1} },
10744 .block_erase = spi_block_erase_c7,
10745 }
10746 },
10747 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10748 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10749 .write = spi_chip_write_256, /* Multi I/O supported */
10750 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10751 .voltage = {1700, 2000},
10752 },
10753
10754 {
10755 .vendor = "Micron/Numonyx/ST",
10756 .name = "N25Q128..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
10757 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100010758 .manufacture_id = ST_ID,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010759 .model_id = ST_N25Q128__3E,
10760 .total_size = 16384,
10761 .page_size = 256,
10762 /* supports SFDP */
10763 /* OTP: 64B total; read 0x4B, write 0x42 */
10764 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10765 .tested = TEST_OK_PREW,
10766 .probe = probe_spi_rdid,
10767 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100010768 .block_erasers =
10769 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010770 {
10771 .eraseblocks = { {4 * 1024, 4096 } },
10772 .block_erase = spi_block_erase_20,
10773 }, {
10774 .eraseblocks = { {64 * 1024, 256} },
10775 .block_erase = spi_block_erase_d8,
10776 }, {
10777 .eraseblocks = { {16384 * 1024, 1} },
10778 .block_erase = spi_block_erase_c7,
10779 }
10780 },
10781 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10782 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10783 .write = spi_chip_write_256, /* Multi I/O supported */
10784 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10785 .voltage = {2700, 3600},
10786 },
10787
10788 {
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070010789 .vendor = "Micron/Numonyx/ST",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070010790 .name = "N25Q256..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
10791 .bustype = BUS_SPI,
10792 .manufacture_id = ST_ID,
10793 .model_id = ST_N25Q256__1E,
10794 .total_size = 32768,
10795 .page_size = 256,
10796 /* supports SFDP */
10797 /* OTP: 64B total; read 0x4B, write 0x42 */
10798 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
10799 .tested = TEST_UNTESTED,
10800 .probe = probe_spi_rdid,
10801 .probe_timing = TIMING_ZERO,
10802 .block_erasers =
10803 {
10804 {
10805 .eraseblocks = { {4 * 1024, 8192} },
10806 .block_erase = spi_block_erase_21,
10807 }, {
10808 .eraseblocks = { {4 * 1024, 8192} },
10809 .block_erase = spi_block_erase_20,
10810 }, {
10811 .eraseblocks = { {64 * 1024, 512} },
10812 .block_erase = spi_block_erase_dc,
10813 }, {
10814 .eraseblocks = { {64 * 1024, 512} },
10815 .block_erase = spi_block_erase_d8,
10816 }, {
10817 .eraseblocks = { {32768 * 1024, 1} },
10818 .block_erase = spi_block_erase_c7,
10819 }
10820 },
10821 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10822 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10823 .write = spi_chip_write_256, /* Multi I/O supported */
10824 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10825 .voltage = {1700, 2000},
10826 },
10827
10828 {
10829 .vendor = "Micron/Numonyx/ST",
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070010830 .name = "N25Q256..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
10831 .bustype = BUS_SPI,
10832 .manufacture_id = ST_ID,
10833 .model_id = ST_N25Q256__3E,
10834 .total_size = 32768,
10835 .page_size = 256,
10836 /* supports SFDP */
10837 /* OTP: 64B total; read 0x4B, write 0x42 */
10838 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
10839 .tested = TEST_UNTESTED,
10840 .probe = probe_spi_rdid,
10841 .probe_timing = TIMING_ZERO,
10842 .block_erasers =
10843 {
10844 {
10845 .eraseblocks = { {4 * 1024, 8192} },
10846 .block_erase = spi_block_erase_21,
10847 }, {
10848 .eraseblocks = { {4 * 1024, 8192} },
10849 .block_erase = spi_block_erase_20,
10850 }, {
10851 .eraseblocks = { {64 * 1024, 512} },
10852 .block_erase = spi_block_erase_dc,
10853 }, {
10854 .eraseblocks = { {64 * 1024, 512} },
10855 .block_erase = spi_block_erase_d8,
10856 }, {
10857 .eraseblocks = { {32768 * 1024, 1} },
10858 .block_erase = spi_block_erase_c7,
10859 }
10860 },
10861 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10862 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10863 .write = spi_chip_write_256, /* Multi I/O supported */
10864 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10865 .voltage = {2700, 3600},
10866 },
10867
10868 {
10869 .vendor = "Micron/Numonyx/ST",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070010870 .name = "N25Q512..1G", /* ..1G = 1.8V, uniform 64KB/4KB blocks/sectors */
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070010871 .bustype = BUS_SPI,
10872 .manufacture_id = ST_ID,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070010873 .model_id = ST_N25Q512__1G,
10874 .total_size = 65536,
10875 .page_size = 256,
10876 /* supports SFDP */
10877 /* OTP: 64B total; read 0x4B, write 0x42 */
10878 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
10879 .tested = TEST_UNTESTED,
10880 .probe = probe_spi_rdid,
10881 .probe_timing = TIMING_ZERO,
10882 .block_erasers =
10883 {
10884 {
10885 .eraseblocks = { {4 * 1024, 16384} },
10886 .block_erase = spi_block_erase_21,
10887 }, {
10888 .eraseblocks = { {4 * 1024, 16384} },
10889 .block_erase = spi_block_erase_20,
10890 }, {
10891 .eraseblocks = { {64 * 1024, 1024} },
10892 .block_erase = spi_block_erase_dc,
10893 }, {
10894 .eraseblocks = { {64 * 1024, 1024} },
10895 .block_erase = spi_block_erase_d8,
10896 }, {
10897 .eraseblocks = { {32768 * 1024, 2} },
10898 .block_erase = spi_block_erase_c4,
10899 }
10900 },
10901 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10902 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10903 .write = spi_chip_write_256, /* Multi I/O supported */
10904 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10905 .voltage = {1700, 2000},
10906 },
10907
10908 {
10909 .vendor = "Micron/Numonyx/ST",
10910 .name = "N25Q512..3G", /* ..3G = 3V, uniform 64KB/4KB blocks/sectors */
10911 .bustype = BUS_SPI,
10912 .manufacture_id = ST_ID,
10913 .model_id = ST_N25Q512__3G,
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070010914 .total_size = 65536,
10915 .page_size = 256,
10916 /* supports SFDP */
10917 /* OTP: 64B total; read 0x4B, write 0x42 */
10918 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
10919 .tested = TEST_OK_PREW,
10920 .probe = probe_spi_rdid,
10921 .probe_timing = TIMING_ZERO,
10922 .block_erasers =
10923 {
10924 {
10925 .eraseblocks = { {4 * 1024, 16384} },
10926 .block_erase = spi_block_erase_21,
10927 }, {
10928 .eraseblocks = { {4 * 1024, 16384} },
10929 .block_erase = spi_block_erase_20,
10930 }, {
10931 .eraseblocks = { {64 * 1024, 1024} },
10932 .block_erase = spi_block_erase_dc,
10933 }, {
10934 .eraseblocks = { {64 * 1024, 1024} },
10935 .block_erase = spi_block_erase_d8,
10936 }, {
Jacob Creedone8e7b0e2019-07-22 12:21:22 -070010937 .eraseblocks = { {32768 * 1024, 2} },
10938 .block_erase = spi_block_erase_c4,
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070010939 }
10940 },
10941 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10942 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10943 .write = spi_chip_write_256, /* Multi I/O supported */
10944 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10945 .voltage = {2700, 3600},
10946 },
10947
10948 {
Ed Swierk199ab392017-07-03 13:33:44 -070010949 .vendor = "Micron",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070010950 .name = "MT25QL01G", /* L = 3V, uniform 64KB/4KB blocks/sectors */
10951 .bustype = BUS_SPI,
10952 .manufacture_id = ST_ID,
10953 .model_id = ST_N25Q00A__3G,
10954 .total_size = 131072,
10955 .page_size = 256,
10956 /* supports SFDP */
10957 /* OTP: 64B total; read 0x4B, write 0x42 */
10958 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
10959 .tested = TEST_OK_PREW,
10960 .probe = probe_spi_rdid,
10961 .probe_timing = TIMING_ZERO,
10962 .block_erasers =
10963 {
10964 {
10965 .eraseblocks = { {4 * 1024, 32768} },
10966 .block_erase = spi_block_erase_21,
10967 }, {
10968 .eraseblocks = { {4 * 1024, 32768} },
10969 .block_erase = spi_block_erase_20,
10970 }, {
10971 .eraseblocks = { {32 * 1024, 4096} },
10972 .block_erase = spi_block_erase_5c,
10973 }, {
10974 .eraseblocks = { {32 * 1024, 4096} },
10975 .block_erase = spi_block_erase_52,
10976 }, {
10977 .eraseblocks = { {64 * 1024, 2048} },
10978 .block_erase = spi_block_erase_dc,
10979 }, {
10980 .eraseblocks = { {64 * 1024, 2048} },
10981 .block_erase = spi_block_erase_d8,
10982 }, {
10983 .eraseblocks = { {65536 * 1024, 2} },
10984 .block_erase = spi_block_erase_c4,
10985 }
10986 },
10987 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10988 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10989 .write = spi_chip_write_256, /* Multi I/O supported */
10990 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10991 .voltage = {2700, 3600},
10992 },
10993
10994 {
10995 .vendor = "Micron",
10996 .name = "MT25QU01G", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
10997 .bustype = BUS_SPI,
10998 .manufacture_id = ST_ID,
10999 .model_id = ST_N25Q00A__1G,
11000 .total_size = 131072,
11001 .page_size = 256,
11002 /* supports SFDP */
11003 /* OTP: 64B total; read 0x4B, write 0x42 */
11004 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11005 .tested = TEST_UNTESTED,
11006 .probe = probe_spi_rdid,
11007 .probe_timing = TIMING_ZERO,
11008 .block_erasers =
11009 {
11010 {
11011 .eraseblocks = { {4 * 1024, 32768} },
11012 .block_erase = spi_block_erase_21,
11013 }, {
11014 .eraseblocks = { {4 * 1024, 32768} },
11015 .block_erase = spi_block_erase_20,
11016 }, {
11017 .eraseblocks = { {32 * 1024, 4096} },
11018 .block_erase = spi_block_erase_5c,
11019 }, {
11020 .eraseblocks = { {32 * 1024, 4096} },
11021 .block_erase = spi_block_erase_52,
11022 }, {
11023 .eraseblocks = { {64 * 1024, 2048} },
11024 .block_erase = spi_block_erase_dc,
11025 }, {
11026 .eraseblocks = { {64 * 1024, 2048} },
11027 .block_erase = spi_block_erase_d8,
11028 }, {
11029 .eraseblocks = { {65536 * 1024, 2} },
11030 .block_erase = spi_block_erase_c4,
11031 }
11032 },
11033 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11034 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11035 .write = spi_chip_write_256, /* Multi I/O supported */
11036 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11037 .voltage = {1700, 2000},
11038 },
11039
11040 {
11041 .vendor = "Micron",
11042 .name = "MT25QL02G", /* L = 3V, uniform 64KB/4KB blocks/sectors */
11043 .bustype = BUS_SPI,
11044 .manufacture_id = ST_ID,
11045 .model_id = ST_MT25QL02G,
11046 .total_size = 262144,
11047 .page_size = 256,
11048 /* supports SFDP */
11049 /* OTP: 64B total; read 0x4B, write 0x42 */
11050 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11051 .tested = TEST_UNTESTED,
11052 .probe = probe_spi_rdid,
11053 .probe_timing = TIMING_ZERO,
11054 .block_erasers =
11055 {
11056 {
11057 .eraseblocks = { {4 * 1024, 65536} },
11058 .block_erase = spi_block_erase_21,
11059 }, {
11060 .eraseblocks = { {4 * 1024, 65536} },
11061 .block_erase = spi_block_erase_20,
11062 }, {
11063 .eraseblocks = { {32 * 1024, 8192} },
11064 .block_erase = spi_block_erase_5c,
11065 }, {
11066 .eraseblocks = { {32 * 1024, 8192} },
11067 .block_erase = spi_block_erase_52,
11068 }, {
11069 .eraseblocks = { {64 * 1024, 4096} },
11070 .block_erase = spi_block_erase_dc,
11071 }, {
11072 .eraseblocks = { {64 * 1024, 4096} },
11073 .block_erase = spi_block_erase_d8,
11074 }, {
11075 .eraseblocks = { {65536 * 1024, 4} },
11076 .block_erase = spi_block_erase_c4,
11077 }
11078 },
11079 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11080 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11081 .write = spi_chip_write_256, /* Multi I/O supported */
11082 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11083 .voltage = {2700, 3600},
11084 },
11085
11086 {
11087 .vendor = "Micron",
11088 .name = "MT25QU02G", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
11089 .bustype = BUS_SPI,
11090 .manufacture_id = ST_ID,
11091 .model_id = ST_MT25QU02G,
11092 .total_size = 262144,
11093 .page_size = 256,
11094 /* supports SFDP */
11095 /* OTP: 64B total; read 0x4B, write 0x42 */
11096 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11097 .tested = TEST_UNTESTED,
11098 .probe = probe_spi_rdid,
11099 .probe_timing = TIMING_ZERO,
11100 .block_erasers =
11101 {
11102 {
11103 .eraseblocks = { {4 * 1024, 65536} },
11104 .block_erase = spi_block_erase_21,
11105 }, {
11106 .eraseblocks = { {4 * 1024, 65536} },
11107 .block_erase = spi_block_erase_20,
11108 }, {
11109 .eraseblocks = { {32 * 1024, 8192} },
11110 .block_erase = spi_block_erase_5c,
11111 }, {
11112 .eraseblocks = { {32 * 1024, 8192} },
11113 .block_erase = spi_block_erase_52,
11114 }, {
11115 .eraseblocks = { {64 * 1024, 4096} },
11116 .block_erase = spi_block_erase_dc,
11117 }, {
11118 .eraseblocks = { {64 * 1024, 4096} },
11119 .block_erase = spi_block_erase_d8,
11120 }, {
11121 .eraseblocks = { {65536 * 1024, 4} },
11122 .block_erase = spi_block_erase_c4,
11123 }
11124 },
11125 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11126 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11127 .write = spi_chip_write_256, /* Multi I/O supported */
11128 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11129 .voltage = {1700, 2000},
11130 },
11131
11132 {
11133 .vendor = "Micron",
11134 .name = "MT25QU128", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
11135 .bustype = BUS_SPI,
11136 .manufacture_id = ST_ID,
11137 .model_id = ST_N25Q128__1E,
11138 .total_size = 16384,
11139 .page_size = 256,
11140 /* supports SFDP */
11141 /* OTP: 64B total; read 0x4B, write 0x42 */
11142 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11143 .tested = TEST_UNTESTED,
11144 .probe = probe_spi_rdid,
11145 .probe_timing = TIMING_ZERO,
11146 .block_erasers =
11147 {
11148 {
11149 .eraseblocks = { {4 * 1024, 4096} },
11150 .block_erase = spi_block_erase_20,
11151 }, {
11152 .eraseblocks = { {32 * 1024, 512} },
11153 .block_erase = spi_block_erase_52,
11154 }, {
11155 .eraseblocks = { {64 * 1024, 256} },
11156 .block_erase = spi_block_erase_d8,
11157 }, {
11158 .eraseblocks = { {16384 * 1024, 1} },
11159 .block_erase = spi_block_erase_c7,
11160 }, {
11161 .eraseblocks = { {16384 * 1024, 1} },
11162 .block_erase = spi_block_erase_60,
11163 }
11164 },
11165 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11166 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11167 .write = spi_chip_write_256, /* Multi I/O supported */
11168 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11169 .voltage = {1700, 2000},
11170 },
11171
11172 {
11173 .vendor = "Micron",
11174 .name = "MT25QL128", /* L = 3V, uniform 64KB/4KB blocks/sectors */
11175 .bustype = BUS_SPI,
11176 .manufacture_id = ST_ID,
11177 .model_id = ST_N25Q128__3E,
11178 .total_size = 16384,
11179 .page_size = 256,
11180 /* supports SFDP */
11181 /* OTP: 64B total; read 0x4B, write 0x42 */
11182 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11183 .tested = TEST_UNTESTED,
11184 .probe = probe_spi_rdid,
11185 .probe_timing = TIMING_ZERO,
11186 .block_erasers =
11187 {
11188 {
11189 .eraseblocks = { {4 * 1024, 4096} },
11190 .block_erase = spi_block_erase_20,
11191 }, {
11192 .eraseblocks = { {32 * 1024, 512} },
11193 .block_erase = spi_block_erase_52,
11194 }, {
11195 .eraseblocks = { {64 * 1024, 256} },
11196 .block_erase = spi_block_erase_d8,
11197 }, {
11198 .eraseblocks = { {16384 * 1024, 1} },
11199 .block_erase = spi_block_erase_c7,
11200 }, {
11201 .eraseblocks = { {16384 * 1024, 1} },
11202 .block_erase = spi_block_erase_60,
11203 }
11204 },
11205 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11206 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11207 .write = spi_chip_write_256, /* Multi I/O supported */
11208 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11209 .voltage = {2700, 3600},
11210 },
11211
11212 {
11213 .vendor = "Micron",
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011214 .name = "MT25QL256", /* L = 3V, uniform 64KB/4KB blocks/sectors */
Ed Swierk199ab392017-07-03 13:33:44 -070011215 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100011216 .manufacture_id = ST_ID,
Ed Swierk199ab392017-07-03 13:33:44 -070011217 .model_id = ST_N25Q256__3E,
11218 .total_size = 32768,
11219 .page_size = 256,
11220 /* supports SFDP */
11221 /* OTP: 64B total; read 0x4B, write 0x42 */
Nico Huberaac81422017-11-10 22:54:13 +010011222 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11223 .tested = TEST_UNTESTED,
Ed Swierk199ab392017-07-03 13:33:44 -070011224 .probe = probe_spi_rdid,
11225 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011226 .block_erasers =
11227 {
Ed Swierk199ab392017-07-03 13:33:44 -070011228 {
11229 .eraseblocks = { {4 * 1024, 8192} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020011230 .block_erase = spi_block_erase_21,
Ed Swierk199ab392017-07-03 13:33:44 -070011231 }, {
Nico Huberaac81422017-11-10 22:54:13 +010011232 .eraseblocks = { {4 * 1024, 8192} },
11233 .block_erase = spi_block_erase_20,
11234 }, {
Jacob Creedon045b97e2019-07-22 12:26:56 -070011235 .eraseblocks = { {32 * 1024, 1024} },
11236 .block_erase = spi_block_erase_5c,
11237 }, {
11238 .eraseblocks = { {32 * 1024, 1024} },
11239 .block_erase = spi_block_erase_52,
11240 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070011241 .eraseblocks = { {64 * 1024, 512} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020011242 .block_erase = spi_block_erase_dc,
Ed Swierk199ab392017-07-03 13:33:44 -070011243 }, {
Nico Huberaac81422017-11-10 22:54:13 +010011244 .eraseblocks = { {64 * 1024, 512} },
11245 .block_erase = spi_block_erase_d8,
11246 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070011247 .eraseblocks = { {32768 * 1024, 1} },
11248 .block_erase = spi_block_erase_c7,
Jacob Creedon045b97e2019-07-22 12:26:56 -070011249 }, {
11250 .eraseblocks = { {32768 * 1024, 1} },
11251 .block_erase = spi_block_erase_60,
Ed Swierk199ab392017-07-03 13:33:44 -070011252 }
11253 },
11254 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11255 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11256 .write = spi_chip_write_256, /* Multi I/O supported */
11257 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11258 .voltage = {2700, 3600},
11259 },
11260
11261 {
11262 .vendor = "Micron",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011263 .name = "MT25QU256", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
11264 .bustype = BUS_SPI,
11265 .manufacture_id = ST_ID,
11266 .model_id = ST_N25Q256__1E,
11267 .total_size = 32768,
11268 .page_size = 256,
11269 /* supports SFDP */
11270 /* OTP: 64B total; read 0x4B, write 0x42 */
11271 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11272 .tested = TEST_UNTESTED,
11273 .probe = probe_spi_rdid,
11274 .probe_timing = TIMING_ZERO,
11275 .block_erasers =
11276 {
11277 {
11278 .eraseblocks = { {4 * 1024, 8192} },
11279 .block_erase = spi_block_erase_21,
11280 }, {
11281 .eraseblocks = { {4 * 1024, 8192} },
11282 .block_erase = spi_block_erase_20,
11283 }, {
11284 .eraseblocks = { {32 * 1024, 1024} },
11285 .block_erase = spi_block_erase_5c,
11286 }, {
11287 .eraseblocks = { {32 * 1024, 1024} },
11288 .block_erase = spi_block_erase_52,
11289 }, {
11290 .eraseblocks = { {64 * 1024, 512} },
11291 .block_erase = spi_block_erase_dc,
11292 }, {
11293 .eraseblocks = { {64 * 1024, 512} },
11294 .block_erase = spi_block_erase_d8,
11295 }, {
11296 .eraseblocks = { {32768 * 1024, 1} },
11297 .block_erase = spi_block_erase_c7,
11298 }, {
11299 .eraseblocks = { {32768 * 1024, 1} },
11300 .block_erase = spi_block_erase_60,
11301 }
11302 },
11303 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11304 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11305 .write = spi_chip_write_256, /* Multi I/O supported */
11306 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11307 .voltage = {1700, 2000},
11308 },
11309
11310 {
11311 .vendor = "Micron",
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011312 .name = "MT25QL512", /* L = 3V, uniform 64KB/4KB blocks/sectors */
Ed Swierk199ab392017-07-03 13:33:44 -070011313 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100011314 .manufacture_id = ST_ID,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011315 .model_id = ST_N25Q512__3G,
Ed Swierk199ab392017-07-03 13:33:44 -070011316 .total_size = 65536,
11317 .page_size = 256,
11318 /* supports SFDP */
11319 /* OTP: 64B total; read 0x4B, write 0x42 */
Nico Huberaac81422017-11-10 22:54:13 +010011320 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
Angel Pons3ed5a352018-09-30 16:31:09 +020011321 .tested = TEST_OK_PREW,
Ed Swierk199ab392017-07-03 13:33:44 -070011322 .probe = probe_spi_rdid,
11323 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011324 .block_erasers =
11325 {
Ed Swierk199ab392017-07-03 13:33:44 -070011326 {
11327 .eraseblocks = { {4 * 1024, 16384} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020011328 .block_erase = spi_block_erase_21,
Ed Swierk199ab392017-07-03 13:33:44 -070011329 }, {
Nico Huberaac81422017-11-10 22:54:13 +010011330 .eraseblocks = { {4 * 1024, 16384} },
11331 .block_erase = spi_block_erase_20,
11332 }, {
Jacob Creedon045b97e2019-07-22 12:26:56 -070011333 .eraseblocks = { {32 * 1024, 2048} },
11334 .block_erase = spi_block_erase_5c,
11335 }, {
11336 .eraseblocks = { {32 * 1024, 2048} },
11337 .block_erase = spi_block_erase_52,
11338 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070011339 .eraseblocks = { {64 * 1024, 1024} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020011340 .block_erase = spi_block_erase_dc,
Ed Swierk199ab392017-07-03 13:33:44 -070011341 }, {
Nico Huberaac81422017-11-10 22:54:13 +010011342 .eraseblocks = { {64 * 1024, 1024} },
11343 .block_erase = spi_block_erase_d8,
11344 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070011345 .eraseblocks = { {65536 * 1024, 1} },
11346 .block_erase = spi_block_erase_c7,
Jacob Creedon045b97e2019-07-22 12:26:56 -070011347 }, {
11348 .eraseblocks = { {65536 * 1024, 1} },
11349 .block_erase = spi_block_erase_60,
Ed Swierk199ab392017-07-03 13:33:44 -070011350 }
11351 },
11352 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11353 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11354 .write = spi_chip_write_256, /* Multi I/O supported */
11355 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11356 .voltage = {2700, 3600},
11357 },
11358
11359 {
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011360 .vendor = "Micron",
11361 .name = "MT25QU512", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
11362 .bustype = BUS_SPI,
11363 .manufacture_id = ST_ID,
11364 .model_id = ST_N25Q512__1G,
11365 .total_size = 65536,
11366 .page_size = 256,
11367 /* supports SFDP */
11368 /* OTP: 64B total; read 0x4B, write 0x42 */
11369 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11370 .tested = TEST_OK_PREW,
11371 .probe = probe_spi_rdid,
11372 .probe_timing = TIMING_ZERO,
11373 .block_erasers =
11374 {
11375 {
11376 .eraseblocks = { {4 * 1024, 16384} },
11377 .block_erase = spi_block_erase_21,
11378 }, {
11379 .eraseblocks = { {4 * 1024, 16384} },
11380 .block_erase = spi_block_erase_20,
11381 }, {
11382 .eraseblocks = { {32 * 1024, 2048} },
11383 .block_erase = spi_block_erase_5c,
11384 }, {
11385 .eraseblocks = { {32 * 1024, 2048} },
11386 .block_erase = spi_block_erase_52,
11387 }, {
11388 .eraseblocks = { {64 * 1024, 1024} },
11389 .block_erase = spi_block_erase_dc,
11390 }, {
11391 .eraseblocks = { {64 * 1024, 1024} },
11392 .block_erase = spi_block_erase_d8,
11393 }, {
11394 .eraseblocks = { {65536 * 1024, 1} },
11395 .block_erase = spi_block_erase_c7,
11396 }, {
11397 .eraseblocks = { {65536 * 1024, 1} },
11398 .block_erase = spi_block_erase_60,
11399 }
11400 },
11401 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11402 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11403 .write = spi_chip_write_256, /* Multi I/O supported */
11404 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11405 .voltage = {1700, 2000},
11406 },
11407
11408 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000011409 .vendor = "MoselVitelic",
11410 .name = "V29C51000B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011411 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011412 .manufacture_id = SYNCMOS_MVC_ID,
11413 .model_id = MVC_V29C51000B,
11414 .total_size = 64,
11415 .page_size = 512,
11416 .feature_bits = FEATURE_EITHER_RESET,
11417 .tested = TEST_UNTESTED,
11418 .probe = probe_jedec,
11419 .probe_timing = TIMING_ZERO,
11420 .block_erasers =
11421 {
11422 {
11423 .eraseblocks = { {512, 128} },
11424 .block_erase = erase_sector_jedec,
11425 }, {
11426 .eraseblocks = { {64 * 1024, 1} },
11427 .block_erase = erase_chip_block_jedec,
11428 },
11429 },
11430 .write = write_jedec_1,
11431 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011432 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011433 },
11434
11435 {
11436 .vendor = "MoselVitelic",
11437 .name = "V29C51000T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011438 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011439 .manufacture_id = SYNCMOS_MVC_ID,
11440 .model_id = MVC_V29C51000T,
11441 .total_size = 64,
11442 .page_size = 512,
11443 .feature_bits = FEATURE_EITHER_RESET,
11444 .tested = TEST_UNTESTED,
11445 .probe = probe_jedec,
11446 .probe_timing = TIMING_ZERO,
11447 .block_erasers =
11448 {
11449 {
11450 .eraseblocks = { {512, 128} },
11451 .block_erase = erase_sector_jedec,
11452 }, {
11453 .eraseblocks = { {64 * 1024, 1} },
11454 .block_erase = erase_chip_block_jedec,
11455 },
11456 },
11457 .write = write_jedec_1,
11458 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011459 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011460 },
11461
11462 {
11463 .vendor = "MoselVitelic",
11464 .name = "V29C51400B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011465 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011466 .manufacture_id = SYNCMOS_MVC_ID,
11467 .model_id = MVC_V29C51400B,
11468 .total_size = 512,
11469 .page_size = 1024,
11470 .feature_bits = FEATURE_EITHER_RESET,
11471 .tested = TEST_UNTESTED,
11472 .probe = probe_jedec,
11473 .probe_timing = TIMING_ZERO,
11474 .block_erasers =
11475 {
11476 {
11477 .eraseblocks = { {1024, 512} },
11478 .block_erase = erase_sector_jedec,
11479 }, {
11480 .eraseblocks = { {512 * 1024, 1} },
11481 .block_erase = erase_chip_block_jedec,
11482 },
11483 },
11484 .write = write_jedec_1,
11485 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011486 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011487 },
11488
11489 {
11490 .vendor = "MoselVitelic",
11491 .name = "V29C51400T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011492 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011493 .manufacture_id = SYNCMOS_MVC_ID,
11494 .model_id = MVC_V29C51400T,
11495 .total_size = 512,
11496 .page_size = 1024,
11497 .feature_bits = FEATURE_EITHER_RESET,
11498 .tested = TEST_UNTESTED,
11499 .probe = probe_jedec,
11500 .probe_timing = TIMING_ZERO,
11501 .block_erasers =
11502 {
11503 {
11504 .eraseblocks = { {1024, 512} },
11505 .block_erase = erase_sector_jedec,
11506 }, {
11507 .eraseblocks = { {512 * 1024, 1} },
11508 .block_erase = erase_chip_block_jedec,
11509 },
11510 },
11511 .write = write_jedec_1,
11512 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011513 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011514 },
11515
11516 {
11517 .vendor = "MoselVitelic",
11518 .name = "V29LC51000",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011519 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011520 .manufacture_id = SYNCMOS_MVC_ID,
11521 .model_id = MVC_V29LC51000,
11522 .total_size = 64,
11523 .page_size = 512,
11524 .feature_bits = FEATURE_EITHER_RESET,
11525 .tested = TEST_UNTESTED,
11526 .probe = probe_jedec,
11527 .probe_timing = TIMING_ZERO,
11528 .block_erasers =
11529 {
11530 {
11531 .eraseblocks = { {512, 128} },
11532 .block_erase = erase_sector_jedec,
11533 }, {
11534 .eraseblocks = { {64 * 1024, 1} },
11535 .block_erase = erase_chip_block_jedec,
11536 },
11537 },
11538 .write = write_jedec_1,
11539 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011540 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011541 },
11542
11543 {
11544 .vendor = "MoselVitelic",
11545 .name = "V29LC51001",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011546 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011547 .manufacture_id = SYNCMOS_MVC_ID,
11548 .model_id = MVC_V29LC51001,
11549 .total_size = 128,
11550 .page_size = 512,
11551 .feature_bits = FEATURE_EITHER_RESET,
11552 .tested = TEST_UNTESTED,
11553 .probe = probe_jedec,
11554 .probe_timing = TIMING_ZERO,
11555 .block_erasers =
11556 {
11557 {
11558 .eraseblocks = { {512, 256} },
11559 .block_erase = erase_sector_jedec,
11560 }, {
11561 .eraseblocks = { {128 * 1024, 1} },
11562 .block_erase = erase_chip_block_jedec,
11563 },
11564 },
11565 .write = write_jedec_1,
11566 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011567 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011568 },
11569
11570 {
11571 .vendor = "MoselVitelic",
11572 .name = "V29LC51002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011573 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011574 .manufacture_id = SYNCMOS_MVC_ID,
11575 .model_id = MVC_V29LC51002,
11576 .total_size = 256,
11577 .page_size = 512,
11578 .feature_bits = FEATURE_EITHER_RESET,
11579 .tested = TEST_UNTESTED,
11580 .probe = probe_jedec,
11581 .probe_timing = TIMING_ZERO,
11582 .block_erasers =
11583 {
11584 {
11585 .eraseblocks = { {512, 512} },
11586 .block_erase = erase_sector_jedec,
11587 }, {
11588 .eraseblocks = { {256 * 1024, 1} },
11589 .block_erase = erase_chip_block_jedec,
11590 },
11591 },
11592 .write = write_jedec_1,
11593 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011594 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011595 },
11596
11597 {
Stefan Taunerb6b00e92013-06-28 21:28:43 +000011598 .vendor = "Nantronics",
11599 .name = "N25S10",
11600 .bustype = BUS_SPI,
11601 .manufacture_id = NANTRONICS_ID_NOPREFIX,
11602 .model_id = NANTRONICS_N25S10,
11603 .total_size = 128,
11604 .page_size = 256,
11605 .feature_bits = FEATURE_WRSR_WREN,
11606 .tested = TEST_UNTESTED,
11607 .probe = probe_spi_rdid,
11608 .probe_timing = TIMING_ZERO,
11609 .block_erasers =
11610 {
11611 {
11612 .eraseblocks = { {4 * 1024, 32} },
11613 .block_erase = spi_block_erase_20,
11614 }, {
11615 .eraseblocks = { {4 * 1024, 32} },
11616 .block_erase = spi_block_erase_d7,
11617 }, {
11618 .eraseblocks = { {32 * 1024, 4} },
11619 .block_erase = spi_block_erase_52,
11620 }, {
11621 .eraseblocks = { {64 * 1024, 2} },
11622 .block_erase = spi_block_erase_d8,
11623 }, {
11624 .eraseblocks = { {128 * 1024, 1} },
11625 .block_erase = spi_block_erase_60,
11626 }, {
11627 .eraseblocks = { {128 * 1024, 1} },
11628 .block_erase = spi_block_erase_c7,
11629 }
11630 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011631 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000011632 .unlock = spi_disable_blockprotect_bp3_srwd,
11633 .write = spi_chip_write_256,
11634 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
11635 .voltage = {2700, 3600},
11636 },
11637
11638 {
11639 .vendor = "Nantronics",
Alan Green1f9cc7d2019-07-01 11:10:45 +100011640 .name = "N25S16",
11641 .bustype = BUS_SPI,
11642 .manufacture_id = NANTRONICS_ID_NOPREFIX,
11643 .model_id = NANTRONICS_N25S16,
11644 .total_size = 2048,
11645 .page_size = 256,
11646 .feature_bits = FEATURE_WRSR_WREN,
11647 .tested = TEST_UNTESTED,
11648 .probe = probe_spi_rdid,
11649 .probe_timing = TIMING_ZERO,
11650 .block_erasers =
11651 {
11652 {
11653 .eraseblocks = { {4 * 1024, 512} },
11654 .block_erase = spi_block_erase_20,
11655 }, {
11656 .eraseblocks = { {64 * 1024, 32} },
11657 .block_erase = spi_block_erase_d8,
11658 }, {
11659 .eraseblocks = { {2048 * 1024, 1} },
11660 .block_erase = spi_block_erase_60,
11661 }, {
11662 .eraseblocks = { {2048 * 1024, 1} },
11663 .block_erase = spi_block_erase_c7,
11664 }
11665 },
11666 .printlock = spi_prettyprint_status_register_bp3_srwd,
11667 .unlock = spi_disable_blockprotect_bp3_srwd,
11668 .write = spi_chip_write_256,
11669 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
11670 .voltage = {2700, 3600},
11671 },
11672
11673 {
11674 .vendor = "Nantronics",
Stefan Taunerb6b00e92013-06-28 21:28:43 +000011675 .name = "N25S20",
11676 .bustype = BUS_SPI,
11677 .manufacture_id = NANTRONICS_ID_NOPREFIX,
11678 .model_id = NANTRONICS_N25S20,
11679 .total_size = 256,
11680 .page_size = 256,
11681 .feature_bits = FEATURE_WRSR_WREN,
11682 .tested = TEST_UNTESTED,
11683 .probe = probe_spi_rdid,
11684 .probe_timing = TIMING_ZERO,
11685 .block_erasers =
11686 {
11687 {
11688 .eraseblocks = { {4 * 1024, 64} },
11689 .block_erase = spi_block_erase_20,
11690 }, {
11691 .eraseblocks = { {4 * 1024, 64} },
11692 .block_erase = spi_block_erase_d7,
11693 }, {
11694 .eraseblocks = { {32 * 1024, 8} },
11695 .block_erase = spi_block_erase_52,
11696 }, {
11697 .eraseblocks = { {64 * 1024, 4} },
11698 .block_erase = spi_block_erase_d8,
11699 }, {
11700 .eraseblocks = { {256 * 1024, 1} },
11701 .block_erase = spi_block_erase_60,
11702 }, {
11703 .eraseblocks = { {256 * 1024, 1} },
11704 .block_erase = spi_block_erase_c7,
11705 }
11706 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011707 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000011708 .unlock = spi_disable_blockprotect_bp3_srwd,
11709 .write = spi_chip_write_256,
11710 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
11711 .voltage = {2700, 3600},
11712 },
11713
11714 {
11715 .vendor = "Nantronics",
11716 .name = "N25S40",
11717 .bustype = BUS_SPI,
11718 .manufacture_id = NANTRONICS_ID_NOPREFIX,
11719 .model_id = NANTRONICS_N25S40,
11720 .total_size = 512,
11721 .page_size = 256,
11722 .feature_bits = FEATURE_WRSR_WREN,
11723 .tested = TEST_UNTESTED,
11724 .probe = probe_spi_rdid,
11725 .probe_timing = TIMING_ZERO,
11726 .block_erasers =
11727 {
11728 {
11729 .eraseblocks = { {4 * 1024, 128} },
11730 .block_erase = spi_block_erase_20,
11731 }, {
11732 .eraseblocks = { {4 * 1024, 128} },
11733 .block_erase = spi_block_erase_d7,
11734 }, {
11735 .eraseblocks = { {32 * 1024, 16} },
11736 .block_erase = spi_block_erase_52,
11737 }, {
11738 .eraseblocks = { {64 * 1024, 8} },
11739 .block_erase = spi_block_erase_d8,
11740 }, {
11741 .eraseblocks = { {512 * 1024, 1} },
11742 .block_erase = spi_block_erase_60,
11743 }, {
11744 .eraseblocks = { {512 * 1024, 1} },
11745 .block_erase = spi_block_erase_c7,
11746 }
11747 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011748 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000011749 .unlock = spi_disable_blockprotect_bp3_srwd,
11750 .write = spi_chip_write_256,
11751 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
11752 .voltage = {2700, 3600},
11753 },
11754
11755 {
11756 .vendor = "Nantronics",
11757 .name = "N25S80",
11758 .bustype = BUS_SPI,
11759 .manufacture_id = NANTRONICS_ID_NOPREFIX,
11760 .model_id = NANTRONICS_N25S80,
11761 .total_size = 1024,
11762 .page_size = 256,
11763 .feature_bits = FEATURE_WRSR_WREN,
11764 .tested = TEST_UNTESTED,
11765 .probe = probe_spi_rdid,
11766 .probe_timing = TIMING_ZERO,
11767 .block_erasers =
11768 {
11769 {
11770 .eraseblocks = { {4 * 1024, 256} },
11771 .block_erase = spi_block_erase_20,
11772 }, {
11773 .eraseblocks = { {32 * 1024, 32} },
11774 .block_erase = spi_block_erase_52,
11775 }, {
11776 .eraseblocks = { {64 * 1024, 16} },
11777 .block_erase = spi_block_erase_d8,
11778 }, {
11779 .eraseblocks = { {1024 * 1024, 1} },
11780 .block_erase = spi_block_erase_60,
11781 }, {
11782 .eraseblocks = { {1024 * 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 {
Stefan Taunerf4451612013-04-19 01:59:15 +000011794 .vendor = "PMC",
11795 .name = "Pm25LD010(C)",
11796 .bustype = BUS_SPI,
11797 .manufacture_id = PMC_ID,
11798 .model_id = PMC_PM25LD010,
11799 .total_size = 128,
11800 .page_size = 256,
11801 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000011802 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +000011803 .probe = probe_spi_rdid,
11804 .probe_timing = TIMING_ZERO,
11805 .block_erasers =
11806 {
11807 {
11808 .eraseblocks = { {4 * 1024, 32} },
11809 .block_erase = spi_block_erase_20,
11810 }, {
11811 .eraseblocks = { {4 * 1024, 32} },
11812 .block_erase = spi_block_erase_d7,
11813 }, {
11814 .eraseblocks = { {32 * 1024, 4} },
11815 .block_erase = spi_block_erase_d8,
11816 }, {
11817 .eraseblocks = { {128 * 1024, 1} },
11818 .block_erase = spi_block_erase_60,
11819 }, {
11820 .eraseblocks = { {128 * 1024, 1} },
11821 .block_erase = spi_block_erase_c7,
11822 }
11823 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011824 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000011825 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
11826 .write = spi_chip_write_256,
11827 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
11828 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD010 */
11829 },
11830
11831 {
11832 .vendor = "PMC",
11833 .name = "Pm25LD020(C)",
11834 .bustype = BUS_SPI,
11835 .manufacture_id = PMC_ID,
11836 .model_id = PMC_PM25LD020,
11837 .total_size = 256,
11838 .page_size = 256,
11839 .feature_bits = FEATURE_WRSR_WREN,
Angel Ponsf5822a82018-09-30 20:09:58 +020011840 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +000011841 .probe = probe_spi_rdid,
11842 .probe_timing = TIMING_ZERO,
11843 .block_erasers =
11844 {
11845 {
11846 .eraseblocks = { {4 * 1024, 64} },
11847 .block_erase = spi_block_erase_20,
11848 }, {
11849 .eraseblocks = { {4 * 1024, 64} },
11850 .block_erase = spi_block_erase_d7,
11851 }, {
11852 .eraseblocks = { {64 * 1024, 4} },
11853 .block_erase = spi_block_erase_d8,
11854 }, {
11855 .eraseblocks = { {256 * 1024, 1} },
11856 .block_erase = spi_block_erase_60,
11857 }, {
11858 .eraseblocks = { {256 * 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 Pm25LD020 */
11867 },
11868
11869 {
11870 .vendor = "PMC",
11871 .name = "Pm25LD040(C)",
11872 .bustype = BUS_SPI,
11873 .manufacture_id = PMC_ID,
11874 .model_id = PMC_PM25LV040,
11875 .total_size = 512,
11876 .page_size = 256,
11877 .feature_bits = FEATURE_WRSR_WREN,
Angel Pons05127bf2018-09-30 20:23:24 +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, 128} },
11885 .block_erase = spi_block_erase_20,
11886 }, {
11887 .eraseblocks = { {4 * 1024, 128} },
11888 .block_erase = spi_block_erase_d7,
11889 }, {
11890 .eraseblocks = { {64 * 1024, 8} },
11891 .block_erase = spi_block_erase_d8,
11892 }, {
11893 .eraseblocks = { {512 * 1024, 1} },
11894 .block_erase = spi_block_erase_60,
11895 }, {
11896 .eraseblocks = { {512 * 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,
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 Pm25LD040 */
11905 },
11906
Steven Honeyman81a8fb72015-06-02 22:32:24 +000011907 {
11908 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100011909 .name = "Pm25LD256C",
11910 .bustype = BUS_SPI,
11911 .manufacture_id = PMC_ID,
11912 .model_id = PMC_PM25LD256C,
11913 .total_size = 32,
11914 .page_size = 256,
11915 .feature_bits = FEATURE_WRSR_WREN,
11916 .tested = TEST_UNTESTED,
11917 .probe = probe_spi_rdid,
11918 .probe_timing = TIMING_ZERO,
11919 .block_erasers =
11920 {
11921 {
11922 .eraseblocks = { {4 * 1024, 8} },
11923 .block_erase = spi_block_erase_20,
11924 }, {
11925 .eraseblocks = { {4 * 1024, 8} },
11926 .block_erase = spi_block_erase_d7,
11927 }, {
11928 .eraseblocks = { {32 * 1024, 1} },
11929 .block_erase = spi_block_erase_d8,
11930 }, {
11931 .eraseblocks = { {32 * 1024, 1} },
11932 .block_erase = spi_block_erase_60,
11933 }, {
11934 .eraseblocks = { {32 * 1024, 1} },
11935 .block_erase = spi_block_erase_c7,
11936 }
11937 },
11938 .printlock = spi_prettyprint_status_register_bp2_srwd,
11939 .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},
11943 },
11944
11945 {
11946 .vendor = "PMC",
11947 .name = "Pm25LD512(C)",
11948 .bustype = BUS_SPI,
11949 .manufacture_id = PMC_ID,
11950 .model_id = PMC_PM25LD512,
11951 .total_size = 64,
11952 .page_size = 256,
11953 .feature_bits = FEATURE_WRSR_WREN,
11954 .tested = TEST_OK_PREW,
11955 .probe = probe_spi_rdid,
11956 .probe_timing = TIMING_ZERO,
11957 .block_erasers =
11958 {
11959 {
11960 .eraseblocks = { {4 * 1024, 16} },
11961 .block_erase = spi_block_erase_20,
11962 }, {
11963 .eraseblocks = { {4 * 1024, 16} },
11964 .block_erase = spi_block_erase_d7,
11965 }, {
11966 .eraseblocks = { {32 * 1024, 2} },
11967 .block_erase = spi_block_erase_d8,
11968 }, {
11969 .eraseblocks = { {64 * 1024, 1} },
11970 .block_erase = spi_block_erase_60,
11971 }, {
11972 .eraseblocks = { {64 * 1024, 1} },
11973 .block_erase = spi_block_erase_c7,
11974 }
11975 },
11976 .printlock = spi_prettyprint_status_register_bp2_srwd,
11977 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
11978 .write = spi_chip_write_256,
11979 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
11980 .voltage = {2300, 3600},
11981 },
11982
11983 {
11984 .vendor = "PMC",
11985 .name = "Pm25LQ016",
11986 .bustype = BUS_SPI,
11987 .manufacture_id = PMC_ID,
11988 .model_id = PMC_PM25LQ016,
11989 .total_size = 2048,
11990 .page_size = 256,
11991 /* OTP: 256B total; read 0x4B, write 0xB1 */
11992 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11993 .tested = TEST_UNTESTED,
11994 .probe = probe_spi_rdid,
11995 .probe_timing = TIMING_ZERO,
11996 .block_erasers =
11997 {
11998 {
11999 .eraseblocks = { {4 * 1024, 512} },
12000 .block_erase = spi_block_erase_20,
12001 }, {
12002 .eraseblocks = { {4 * 1024, 512} },
12003 .block_erase = spi_block_erase_d7,
12004 }, {
12005 .eraseblocks = { {64 * 1024, 32} },
12006 .block_erase = spi_block_erase_d8,
12007 }, {
12008 .eraseblocks = { {2048 * 1024, 1} },
12009 .block_erase = spi_block_erase_60,
12010 }, {
12011 .eraseblocks = { {2048 * 1024, 1} },
12012 .block_erase = spi_block_erase_c7,
12013 }
12014 },
12015 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
12016 .unlock = spi_disable_blockprotect_bp3_srwd,
12017 .write = spi_chip_write_256,
12018 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12019 .voltage = {2300, 3600},
12020 },
12021
12022 {
12023 .vendor = "PMC",
Steven Honeyman81a8fb72015-06-02 22:32:24 +000012024 .name = "Pm25LQ020",
12025 .bustype = BUS_SPI,
12026 .manufacture_id = PMC_ID,
12027 .model_id = PMC_PM25LQ020,
12028 .total_size = 256,
12029 .page_size = 256,
12030 /* OTP: 256B total; read 0x4B, write 0xB1 */
12031 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12032 .tested = TEST_UNTESTED,
12033 .probe = probe_spi_rdid,
12034 .probe_timing = TIMING_ZERO,
12035 .block_erasers =
12036 {
12037 {
12038 .eraseblocks = { {4 * 1024, 64} },
12039 .block_erase = spi_block_erase_20,
12040 }, {
12041 .eraseblocks = { {4 * 1024, 64} },
12042 .block_erase = spi_block_erase_d7,
12043 }, {
12044 .eraseblocks = { {64 * 1024, 4} },
12045 .block_erase = spi_block_erase_d8,
12046 }, {
12047 .eraseblocks = { {256 * 1024, 1} },
12048 .block_erase = spi_block_erase_60,
12049 }, {
12050 .eraseblocks = { {256 * 1024, 1} },
12051 .block_erase = spi_block_erase_c7,
12052 }
12053 },
12054 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
12055 .unlock = spi_disable_blockprotect_bp3_srwd,
12056 .write = spi_chip_write_256,
12057 .read = spi_chip_read,
12058 .voltage = {2300, 3600},
12059 },
12060
12061 {
12062 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012063 .name = "Pm25LQ032C",
12064 .bustype = BUS_SPI,
12065 .manufacture_id = PMC_ID,
12066 .model_id = PMC_PM25LQ032C,
12067 .total_size = 4096,
12068 .page_size = 256,
12069 /* OTP: 64B total; read 0x4B, write 0xB1 */
12070 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12071 .tested = TEST_OK_PREW,
12072 .probe = probe_spi_rdid,
12073 .probe_timing = TIMING_ZERO,
12074 .block_erasers =
12075 {
12076 {
12077 .eraseblocks = { {4 * 1024, 1024} },
12078 .block_erase = spi_block_erase_20,
12079 }, {
12080 .eraseblocks = { {4 * 1024, 1024} },
12081 .block_erase = spi_block_erase_d7,
12082 }, {
12083 .eraseblocks = { {64 * 1024, 64} },
12084 .block_erase = spi_block_erase_d8,
12085 }, {
12086 .eraseblocks = { {4096 * 1024, 1} },
12087 .block_erase = spi_block_erase_60,
12088 }, {
12089 .eraseblocks = { {4096 * 1024, 1} },
12090 .block_erase = spi_block_erase_c7,
12091 }
12092 },
12093 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
12094 .unlock = spi_disable_blockprotect_bp3_srwd,
12095 .write = spi_chip_write_256,
12096 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12097 .voltage = {2700, 3600},
12098 },
12099
12100 {
12101 .vendor = "PMC",
Steven Honeyman81a8fb72015-06-02 22:32:24 +000012102 .name = "Pm25LQ040",
12103 .bustype = BUS_SPI,
12104 .manufacture_id = PMC_ID,
12105 .model_id = PMC_PM25LQ040,
12106 .total_size = 512,
12107 .page_size = 256,
12108 /* OTP: 256B total; read 0x4B, write 0xB1 */
12109 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12110 .tested = TEST_UNTESTED,
12111 .probe = probe_spi_rdid,
12112 .probe_timing = TIMING_ZERO,
12113 .block_erasers =
12114 {
12115 {
12116 .eraseblocks = { {4 * 1024, 128} },
12117 .block_erase = spi_block_erase_20,
12118 }, {
12119 .eraseblocks = { {4 * 1024, 128} },
12120 .block_erase = spi_block_erase_d7,
12121 }, {
12122 .eraseblocks = { {64 * 1024, 8} },
12123 .block_erase = spi_block_erase_d8,
12124 }, {
12125 .eraseblocks = { {512 * 1024, 1} },
12126 .block_erase = spi_block_erase_60,
12127 }, {
12128 .eraseblocks = { {512 * 1024, 1} },
12129 .block_erase = spi_block_erase_c7,
12130 }
12131 },
12132 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
12133 .unlock = spi_disable_blockprotect_bp3_srwd,
12134 .write = spi_chip_write_256,
12135 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12136 .voltage = {2300, 3600},
12137 },
12138
12139 {
12140 .vendor = "PMC",
12141 .name = "Pm25LQ080",
12142 .bustype = BUS_SPI,
12143 .manufacture_id = PMC_ID,
12144 .model_id = PMC_PM25LQ080,
12145 .total_size = 1024,
12146 .page_size = 256,
12147 /* OTP: 64B total; read 0x4B, write 0xB1 */
12148 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12149 .tested = TEST_UNTESTED,
12150 .probe = probe_spi_rdid,
12151 .probe_timing = TIMING_ZERO,
12152 .block_erasers =
12153 {
12154 {
12155 .eraseblocks = { {4 * 1024, 256} },
12156 .block_erase = spi_block_erase_20,
12157 }, {
12158 .eraseblocks = { {4 * 1024, 256} },
12159 .block_erase = spi_block_erase_d7,
12160 }, {
12161 .eraseblocks = { {64 * 1024, 16} },
12162 .block_erase = spi_block_erase_d8,
12163 }, {
12164 .eraseblocks = { {1024 * 1024, 1} },
12165 .block_erase = spi_block_erase_60,
12166 }, {
12167 .eraseblocks = { {1024 * 1024, 1} },
12168 .block_erase = spi_block_erase_c7,
12169 }
12170 },
12171 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
12172 .unlock = spi_disable_blockprotect_bp3_srwd,
12173 .write = spi_chip_write_256,
12174 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12175 .voltage = {2300, 3600},
12176 },
12177
12178 {
12179 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012180 .name = "Pm25LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012181 .bustype = BUS_SPI,
Stefan Taunerbecda742014-05-30 19:34:00 +000012182 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012183 .model_id = PMC_PM25LV010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012184 .total_size = 128,
12185 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012186 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerbecda742014-05-30 19:34:00 +000012187 .tested = TEST_OK_PREW,
12188 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000012189 .probe_timing = TIMING_ZERO,
12190 .block_erasers =
12191 {
12192 {
12193 .eraseblocks = { {4 * 1024, 32} },
12194 .block_erase = spi_block_erase_d7,
12195 }, {
12196 .eraseblocks = { {32 * 1024, 4} },
12197 .block_erase = spi_block_erase_d8,
12198 }, {
12199 .eraseblocks = { {128 * 1024, 1} },
12200 .block_erase = spi_block_erase_c7,
12201 }
12202 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012203 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000012204 .unlock = spi_disable_blockprotect,
12205 .write = spi_chip_write_256,
12206 .read = spi_chip_read, /* Fast read (0x0B) supported */
12207 .voltage = {2700, 3600},
12208 },
12209
12210 {
12211 .vendor = "PMC",
12212 .name = "Pm25LV010A",
12213 .bustype = BUS_SPI,
12214 .manufacture_id = PMC_ID,
12215 .model_id = PMC_PM25LV010,
12216 .total_size = 128,
12217 .page_size = 256,
12218 .feature_bits = FEATURE_WRSR_WREN,
12219 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012220 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012221 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000012222 .block_erasers =
12223 {
12224 {
12225 .eraseblocks = { {4 * 1024, 32} },
12226 .block_erase = spi_block_erase_d7,
12227 }, {
12228 .eraseblocks = { {32 * 1024, 4} },
12229 .block_erase = spi_block_erase_d8,
12230 }, {
12231 .eraseblocks = { {128 * 1024, 1} },
12232 .block_erase = spi_block_erase_c7,
12233 }
12234 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012235 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012236 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012237 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000012238 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +000012239 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012240 },
12241
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012242 {
12243 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012244 .name = "Pm25LV016B",
12245 .bustype = BUS_SPI,
12246 .manufacture_id = PMC_ID,
12247 .model_id = PMC_PM25LV016B,
12248 .total_size = 2048,
12249 .page_size = 256,
12250 .feature_bits = FEATURE_WRSR_WREN,
12251 .tested = TEST_UNTESTED,
12252 .probe = probe_spi_rdid,
12253 .probe_timing = TIMING_ZERO,
12254 .block_erasers =
12255 {
12256 {
12257 .eraseblocks = { {4 * 1024, 512} },
12258 .block_erase = spi_block_erase_d7,
12259 }, {
12260 .eraseblocks = { {4 * 1024, 512} },
12261 .block_erase = spi_block_erase_20,
12262 }, {
12263 .eraseblocks = { {64 * 1024, 32} },
12264 .block_erase = spi_block_erase_d8,
12265 }, {
12266 .eraseblocks = { {2 * 1024 * 1024, 1} },
12267 .block_erase = spi_block_erase_60,
12268 }, {
12269 .eraseblocks = { {2 * 1024 * 1024, 1} },
12270 .block_erase = spi_block_erase_c7,
12271 }
12272 },
12273 .printlock = spi_prettyprint_status_register_bp2_srwd,
12274 .unlock = spi_disable_blockprotect,
12275 .write = spi_chip_write_256,
12276 .read = spi_chip_read, /* Fast read (0x0B) supported */
12277 .voltage = {2700, 3600},
12278 },
12279
12280 {
12281 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012282 .name = "Pm25LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012283 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012284 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012285 .model_id = PMC_PM25LV020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012286 .total_size = 256,
12287 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012288 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012289 .tested = TEST_UNTESTED,
12290 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012291 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000012292 .block_erasers =
12293 {
12294 {
12295 .eraseblocks = { {4 * 1024, 64} },
12296 .block_erase = spi_block_erase_d7,
12297 }, {
12298 .eraseblocks = { {64 * 1024, 4} },
12299 .block_erase = spi_block_erase_d8,
12300 }, {
12301 .eraseblocks = { {256 * 1024, 1} },
12302 .block_erase = spi_block_erase_c7,
12303 }
12304 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012305 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012306 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012307 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012308 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012309 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012310 },
12311
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012312 {
12313 .vendor = "PMC",
12314 .name = "Pm25LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012315 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012316 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012317 .model_id = PMC_PM25LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012318 .total_size = 512,
12319 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012320 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +000012321 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012322 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012323 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000012324 .block_erasers =
12325 {
12326 {
12327 .eraseblocks = { {4 * 1024, 128} },
12328 .block_erase = spi_block_erase_d7,
12329 }, {
12330 .eraseblocks = { {64 * 1024, 8} },
12331 .block_erase = spi_block_erase_d8,
12332 }, {
12333 .eraseblocks = { {512 * 1024, 1} },
12334 .block_erase = spi_block_erase_c7,
12335 }
12336 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012337 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012338 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012339 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000012340 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012341 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012342 },
12343
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012344 {
12345 .vendor = "PMC",
12346 .name = "Pm25LV080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012347 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012348 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012349 .model_id = PMC_PM25LV080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012350 .total_size = 1024,
12351 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012352 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012353 .tested = TEST_UNTESTED,
12354 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012355 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000012356 .block_erasers =
12357 {
12358 {
12359 .eraseblocks = { {4 * 1024, 256} },
12360 .block_erase = spi_block_erase_d7,
12361 }, {
12362 .eraseblocks = { {4 * 1024, 256} },
12363 .block_erase = spi_block_erase_20,
12364 }, {
12365 .eraseblocks = { {64 * 1024, 16} },
12366 .block_erase = spi_block_erase_d8,
12367 }, {
12368 .eraseblocks = { {1024 * 1024, 1} },
12369 .block_erase = spi_block_erase_60,
12370 }, {
12371 .eraseblocks = { {1024 * 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",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012384 .name = "Pm25LV512(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012385 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +100012386 .manufacture_id = PMC_ID_NOPREFIX,
12387 .model_id = PMC_PM25LV512,
12388 .total_size = 64,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012389 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012390 .feature_bits = FEATURE_WRSR_WREN,
Alan Green1f9cc7d2019-07-01 11:10:45 +100012391 .tested = TEST_OK_PREW,
12392 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
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 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100012397 .eraseblocks = { {4 * 1024, 16} },
Sean Nelson5643c072010-01-19 03:23:07 +000012398 .block_erase = spi_block_erase_d7,
12399 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100012400 .eraseblocks = { {32 * 1024, 2} },
Sean Nelson5643c072010-01-19 03:23:07 +000012401 .block_erase = spi_block_erase_d8,
12402 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100012403 .eraseblocks = { {64 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +000012404 .block_erase = spi_block_erase_c7,
12405 }
12406 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100012407 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012408 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012409 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000012410 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +000012411 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012412 },
12413
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012414 {
12415 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +000012416 .name = "Pm29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012417 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000012418 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012419 .model_id = PMC_PM29F002B,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000012420 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +000012421 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012422 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000012423 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000012424 .probe = probe_jedec,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000012425 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +000012426 .block_erasers =
12427 {
12428 {
12429 .eraseblocks = {
12430 {16 * 1024, 1},
12431 {8 * 1024, 2},
12432 {96 * 1024, 1},
12433 {128 * 1024, 1},
12434 },
Sean Nelson35727f72010-01-28 23:55:12 +000012435 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000012436 }, {
12437 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000012438 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000012439 },
12440 },
Sean Nelson35727f72010-01-28 23:55:12 +000012441 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000012442 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012443 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +000012444 },
12445
12446 {
12447 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012448 .name = "Pm29F002T",
12449 .bustype = BUS_PARALLEL,
12450 .manufacture_id = PMC_ID_NOPREFIX,
12451 .model_id = PMC_PM29F002T,
12452 .total_size = 256,
12453 .page_size = 8 * 1024,
12454 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
12455 .tested = TEST_OK_PREW,
12456 .probe = probe_jedec,
12457 .probe_timing = TIMING_FIXME,
12458 .block_erasers =
12459 {
12460 {
12461 .eraseblocks = {
12462 {128 * 1024, 1},
12463 {96 * 1024, 1},
12464 {8 * 1024, 2},
12465 {16 * 1024, 1},
12466 },
12467 .block_erase = erase_sector_jedec,
12468 }, {
12469 .eraseblocks = { {256 * 1024, 1} },
12470 .block_erase = erase_chip_block_jedec,
12471 },
12472 },
12473 .write = write_jedec_1,
12474 .read = read_memmapped,
12475 .voltage = {4500, 5500},
12476 },
12477
12478 {
12479 .vendor = "PMC",
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000012480 .name = "Pm39LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012481 .bustype = BUS_PARALLEL,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000012482 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012483 .model_id = PMC_PM39F010, /* Pm39LV010 and Pm39F010 have identical IDs but different voltage */
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000012484 .total_size = 128,
12485 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000012486 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000012487 .tested = TEST_OK_PREW,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000012488 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012489 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson5643c072010-01-19 03:23:07 +000012490 .block_erasers =
12491 {
12492 {
12493 .eraseblocks = { {4 * 1024, 32} },
12494 .block_erase = erase_sector_jedec,
12495 }, {
12496 .eraseblocks = { {64 * 1024, 2} },
12497 .block_erase = erase_block_jedec,
12498 }, {
12499 .eraseblocks = { {128 * 1024, 1} },
12500 .block_erase = erase_chip_block_jedec,
12501 }
12502 },
Sean Nelson35727f72010-01-28 23:55:12 +000012503 .write = write_jedec_1,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000012504 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012505 .voltage = {2700, 3600},
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000012506 },
12507
12508 {
12509 .vendor = "PMC",
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012510 .name = "Pm39LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012511 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012512 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012513 .model_id = PMC_PM39LV020,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012514 .total_size = 256,
12515 .page_size = 4096,
12516 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
12517 .tested = TEST_UNTESTED,
12518 .probe = probe_jedec,
12519 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Alan Greenfa3fcd32019-06-27 15:41:50 +100012520 .block_erasers =
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012521 {
12522 {
12523 .eraseblocks = { {4 * 1024, 64} },
12524 .block_erase = erase_sector_jedec,
12525 }, {
12526 .eraseblocks = { {64 * 1024, 4} },
12527 .block_erase = erase_block_jedec,
12528 }, {
12529 .eraseblocks = { {256 * 1024, 1} },
12530 .block_erase = erase_chip_block_jedec,
12531 }
12532 },
12533 .write = write_jedec_1,
12534 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012535 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012536 },
12537
12538 {
12539 .vendor = "PMC",
12540 .name = "Pm39LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012541 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012542 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012543 .model_id = PMC_PM39LV040,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012544 .total_size = 512,
12545 .page_size = 4096,
12546 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000012547 .tested = TEST_OK_PR,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012548 .probe = probe_jedec,
12549 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Alan Greenfa3fcd32019-06-27 15:41:50 +100012550 .block_erasers =
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012551 {
12552 {
12553 .eraseblocks = { {4 * 1024, 128} },
12554 .block_erase = erase_sector_jedec,
12555 }, {
12556 .eraseblocks = { {64 * 1024, 8} },
12557 .block_erase = erase_block_jedec,
12558 }, {
12559 .eraseblocks = { {512 * 1024, 1} },
12560 .block_erase = erase_chip_block_jedec,
12561 }
12562 },
12563 .write = write_jedec_1,
12564 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012565 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012566 },
Kyösti Mälkkiedab1d22012-05-20 23:32:33 +000012567
12568 {
12569 .vendor = "PMC",
12570 .name = "Pm39LV512",
12571 .bustype = BUS_PARALLEL,
12572 .manufacture_id = PMC_ID_NOPREFIX,
12573 .model_id = PMC_PM39LV512,
12574 .total_size = 64,
12575 .page_size = 4096,
12576 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
12577 .tested = TEST_OK_PREW,
12578 .probe = probe_jedec,
12579 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
12580 .block_erasers =
12581 {
12582 {
12583 .eraseblocks = { {4 * 1024, 16} },
12584 .block_erase = erase_sector_jedec,
12585 }, {
12586 .eraseblocks = { {64 * 1024, 1} },
12587 .block_erase = erase_block_jedec,
12588 }, {
12589 .eraseblocks = { {64 * 1024, 1} },
12590 .block_erase = erase_chip_block_jedec,
12591 }
12592 },
12593 .write = write_jedec_1,
12594 .read = read_memmapped,
12595 .voltage = {2700, 3600},
12596 },
12597
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012598 {
12599 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012600 .name = "Pm49FL002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012601 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012602 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012603 .model_id = PMC_PM49FL002,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012604 .total_size = 256,
12605 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012606 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012607 .tested = TEST_OK_PR,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000012608 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012609 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +000012610 .block_erasers =
12611 {
12612 {
12613 .eraseblocks = { {4 * 1024, 64} },
12614 .block_erase = erase_sector_jedec,
12615 }, {
12616 .eraseblocks = { {16 * 1024, 16} },
12617 .block_erase = erase_block_jedec,
12618 }, {
12619 .eraseblocks = { {256 * 1024, 1} },
12620 .block_erase = erase_chip_block_jedec,
12621 }
12622 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012623 .unlock = unlock_regspace2_uniform_32k,
Sean Nelson36172342010-02-27 18:01:15 +000012624 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012625 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012626 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012627 },
12628
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012629 {
12630 .vendor = "PMC",
12631 .name = "Pm49FL004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012632 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012633 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012634 .model_id = PMC_PM49FL004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012635 .total_size = 512,
12636 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012637 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner74dc73f2015-03-01 22:04:38 +000012638 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000012639 .probe = probe_jedec,
Stefan Tauner74dc73f2015-03-01 22:04:38 +000012640 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000012641 .block_erasers =
12642 {
12643 {
12644 .eraseblocks = { {4 * 1024, 128} },
12645 .block_erase = erase_sector_jedec,
12646 }, {
12647 .eraseblocks = { {64 * 1024, 8} },
12648 .block_erase = erase_block_jedec,
12649 }, {
12650 .eraseblocks = { {512 * 1024, 1} },
12651 .block_erase = erase_chip_block_jedec,
12652 }
12653 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012654 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson36172342010-02-27 18:01:15 +000012655 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012656 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012657 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012658 },
12659
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012660 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012661 .vendor = "SST",
Idwer Volleringf3607d12014-05-07 15:25:04 +000012662 .name = "SST25LF020A",
12663 .bustype = BUS_SPI,
12664 .manufacture_id = SST_ID,
12665 .model_id = SST_SST25VF020_REMS,
12666 .total_size = 256,
12667 .page_size = 256,
12668 .feature_bits = FEATURE_WRSR_EWSR,
12669 .tested = TEST_OK_PREW,
12670 .probe = probe_spi_rems,
12671 .probe_timing = TIMING_ZERO,
12672 .block_erasers =
12673 {
12674 {
12675 .eraseblocks = { {4 * 1024, 64} },
12676 .block_erase = spi_block_erase_20,
12677 }, {
12678 .eraseblocks = { {32 * 1024, 8} },
12679 .block_erase = spi_block_erase_52,
12680 }, {
12681 .eraseblocks = { {256 * 1024, 1} },
12682 .block_erase = spi_block_erase_60,
12683 },
12684 },
12685 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
12686 .unlock = spi_disable_blockprotect,
12687 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
12688 .read = spi_chip_read, /* Fast read (0x0B) supported */
12689 .voltage = {2700, 3600},
12690 },
12691
12692 {
12693 .vendor = "SST",
Zeus Castro33670ba2011-08-17 09:50:11 +000012694 .name = "SST25LF040A",
12695 .bustype = BUS_SPI,
12696 .manufacture_id = SST_ID,
12697 .model_id = SST_SST25VF040_REMS,
12698 .total_size = 512,
12699 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012700 .feature_bits = FEATURE_WRSR_EWSR,
Uwe Hermann4335ec82011-09-07 20:20:25 +000012701 .tested = TEST_OK_PREW,
Zeus Castro33670ba2011-08-17 09:50:11 +000012702 .probe = probe_spi_res2,
12703 .probe_timing = TIMING_ZERO,
12704 .block_erasers =
12705 {
12706 {
12707 .eraseblocks = { {4 * 1024, 128} },
12708 .block_erase = spi_block_erase_20,
12709 }, {
12710 .eraseblocks = { {32 * 1024, 16} },
12711 .block_erase = spi_block_erase_52,
12712 }, {
12713 .eraseblocks = { {512 * 1024, 1} },
12714 .block_erase = spi_block_erase_60,
12715 },
12716 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012717 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +000012718 .unlock = spi_disable_blockprotect,
12719 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
12720 .read = spi_chip_read,
12721 .voltage = {3000, 3600},
12722 },
12723
12724 {
12725 .vendor = "SST",
Stefan Taunere34e3e82013-01-01 00:06:51 +000012726 .name = "SST25LF080(A)",
Zeus Castro33670ba2011-08-17 09:50:11 +000012727 .bustype = BUS_SPI,
12728 .manufacture_id = SST_ID,
12729 .model_id = SST_SST25VF080_REMS,
12730 .total_size = 1024,
12731 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000012732 .feature_bits = FEATURE_WRSR_EITHER,
Zeus Castro33670ba2011-08-17 09:50:11 +000012733 .tested = TEST_UNTESTED,
12734 .probe = probe_spi_res2,
12735 .probe_timing = TIMING_ZERO,
12736 .block_erasers =
12737 {
12738 {
12739 .eraseblocks = { {4 * 1024, 256} },
12740 .block_erase = spi_block_erase_20,
12741 }, {
12742 .eraseblocks = { {32 * 1024, 32} },
12743 .block_erase = spi_block_erase_52,
12744 }, {
12745 .eraseblocks = { {1024 * 1024, 1} },
12746 .block_erase = spi_block_erase_60,
12747 },
12748 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012749 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +000012750 .unlock = spi_disable_blockprotect,
12751 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
12752 .read = spi_chip_read,
12753 .voltage = {3000, 3600},
12754 },
12755
12756 {
12757 .vendor = "SST",
Stefan Tauner6697f712014-08-06 15:09:15 +000012758 .name = "SST25VF010(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012759 .bustype = BUS_SPI,
Mark Marshall90021f22010-12-03 14:48:11 +000012760 .manufacture_id = SST_ID,
12761 .model_id = SST_SST25VF010_REMS,
12762 .total_size = 128,
12763 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012764 .feature_bits = FEATURE_WRSR_EWSR,
Mark Marshall90021f22010-12-03 14:48:11 +000012765 .tested = TEST_OK_PREW,
12766 .probe = probe_spi_rems,
12767 .probe_timing = TIMING_ZERO,
12768 .block_erasers =
12769 {
12770 {
12771 .eraseblocks = { {4 * 1024, 32} },
12772 .block_erase = spi_block_erase_20,
12773 }, {
12774 .eraseblocks = { {32 * 1024, 4} },
12775 .block_erase = spi_block_erase_52,
12776 }, {
Cory Henderson370f5822013-10-19 23:09:16 +000012777 .eraseblocks = { {32 * 1024, 4} },
Stefan Tauner6697f712014-08-06 15:09:15 +000012778 .block_erase = spi_block_erase_d8, /* Supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000012779 }, {
Mark Marshall90021f22010-12-03 14:48:11 +000012780 .eraseblocks = { {128 * 1024, 1} },
12781 .block_erase = spi_block_erase_60,
Cory Henderson370f5822013-10-19 23:09:16 +000012782 }, {
12783 .eraseblocks = { {128 * 1024, 1} },
Stefan Tauner6697f712014-08-06 15:09:15 +000012784 .block_erase = spi_block_erase_c7, /* Supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000012785 },
12786 },
12787 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
12788 .unlock = spi_disable_blockprotect,
12789 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
Stefan Tauner6697f712014-08-06 15:09:15 +000012790 .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000012791 .voltage = {2700, 3600},
12792 },
12793
12794 {
12795 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012796 .name = "SST25VF016B",
12797 .bustype = BUS_SPI,
12798 .manufacture_id = SST_ID,
12799 .model_id = SST_SST25VF016B,
12800 .total_size = 2048,
12801 .page_size = 256,
12802 .feature_bits = FEATURE_WRSR_EITHER,
12803 .tested = TEST_OK_PREW,
12804 .probe = probe_spi_rdid,
12805 .probe_timing = TIMING_ZERO,
12806 .block_erasers =
12807 {
12808 {
12809 .eraseblocks = { {4 * 1024, 512} },
12810 .block_erase = spi_block_erase_20,
12811 }, {
12812 .eraseblocks = { {32 * 1024, 64} },
12813 .block_erase = spi_block_erase_52,
12814 }, {
12815 .eraseblocks = { {64 * 1024, 32} },
12816 .block_erase = spi_block_erase_d8,
12817 }, {
12818 .eraseblocks = { {2 * 1024 * 1024, 1} },
12819 .block_erase = spi_block_erase_60,
12820 }, {
12821 .eraseblocks = { {2 * 1024 * 1024, 1} },
12822 .block_erase = spi_block_erase_c7,
12823 },
12824 },
12825 .printlock = spi_prettyprint_status_register_sst25vf016,
12826 .unlock = spi_disable_blockprotect,
12827 .write = spi_aai_write,
12828 .read = spi_chip_read,
12829 .voltage = {2700, 3600},
12830 },
12831
12832 {
12833 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +000012834 .name = "SST25VF020",
12835 .bustype = BUS_SPI,
12836 .manufacture_id = SST_ID,
12837 .model_id = SST_SST25VF020_REMS,
12838 .total_size = 256,
12839 .page_size = 256,
12840 .feature_bits = FEATURE_WRSR_EWSR,
12841 .tested = TEST_UNTESTED,
12842 .probe = probe_spi_rems,
12843 .probe_timing = TIMING_ZERO,
12844 .block_erasers =
12845 {
12846 {
12847 .eraseblocks = { {4 * 1024, 64} },
12848 .block_erase = spi_block_erase_20,
12849 }, {
12850 .eraseblocks = { {32 * 1024, 8} },
12851 .block_erase = spi_block_erase_52,
12852 }, {
12853 .eraseblocks = { {256 * 1024, 1} },
12854 .block_erase = spi_block_erase_60,
12855 },
12856 },
12857 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
12858 .unlock = spi_disable_blockprotect,
12859 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
12860 .read = spi_chip_read, /* only */
12861 .voltage = {2700, 3600},
12862 },
12863
12864 {
12865 .vendor = "SST",
12866 .name = "SST25VF020B",
12867 .bustype = BUS_SPI,
12868 .manufacture_id = SST_ID,
12869 .model_id = SST_SST25VF020B,
12870 .total_size = 256,
12871 .page_size = 256,
12872 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000012873 .tested = TEST_OK_PREW,
Cory Henderson370f5822013-10-19 23:09:16 +000012874 .probe = probe_spi_rdid,
12875 .probe_timing = TIMING_ZERO,
12876 .block_erasers =
12877 {
12878 {
12879 .eraseblocks = { {4 * 1024, 64} },
12880 .block_erase = spi_block_erase_20,
12881 }, {
12882 .eraseblocks = { {32 * 1024, 8} },
12883 .block_erase = spi_block_erase_52,
12884 }, {
12885 .eraseblocks = { {64 * 1024, 4} },
12886 .block_erase = spi_block_erase_d8,
12887 }, {
12888 .eraseblocks = { {256 * 1024, 1} },
12889 .block_erase = spi_block_erase_60,
12890 }, {
12891 .eraseblocks = { {256 * 1024, 1} },
12892 .block_erase = spi_block_erase_c7,
12893 },
12894 },
12895 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 and 2nd SR */
12896 .unlock = spi_disable_blockprotect, /* FIXME: 2nd SR */
12897 .write = spi_aai_write, /* AAI supported (0xAD) */
12898 .read = spi_chip_read, /* Fast read (0x0B) supported */
12899 .voltage = {2700, 3600},
12900 },
12901
12902 {
12903 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012904 .name = "SST25VF032B",
12905 .bustype = BUS_SPI,
12906 .manufacture_id = SST_ID,
12907 .model_id = SST_SST25VF032B,
12908 .total_size = 4096,
12909 .page_size = 256,
12910 .feature_bits = FEATURE_WRSR_EWSR,
12911 .tested = TEST_OK_PREW,
12912 .probe = probe_spi_rdid,
12913 .probe_timing = TIMING_ZERO,
12914 .block_erasers =
12915 {
12916 {
12917 .eraseblocks = { {4 * 1024, 1024} },
12918 .block_erase = spi_block_erase_20,
12919 }, {
12920 .eraseblocks = { {32 * 1024, 128} },
12921 .block_erase = spi_block_erase_52,
12922 }, {
12923 .eraseblocks = { {64 * 1024, 64} },
12924 .block_erase = spi_block_erase_d8,
12925 }, {
12926 .eraseblocks = { {4 * 1024 * 1024, 1} },
12927 .block_erase = spi_block_erase_60,
12928 }, {
12929 .eraseblocks = { {4 * 1024 * 1024, 1} },
12930 .block_erase = spi_block_erase_c7,
12931 },
12932 },
12933 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
12934 .unlock = spi_disable_blockprotect,
12935 .write = spi_aai_write,
12936 .read = spi_chip_read,
12937 .voltage = {2700, 3600},
12938 },
12939
12940 {
12941 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +000012942 .name = "SST25VF040",
12943 .bustype = BUS_SPI,
12944 .manufacture_id = SST_ID,
12945 .model_id = SST_SST25VF040_REMS,
12946 .total_size = 512,
12947 .page_size = 256,
12948 .feature_bits = FEATURE_WRSR_EWSR,
12949 .tested = TEST_OK_PR,
12950 .probe = probe_spi_rems,
12951 .probe_timing = TIMING_ZERO,
12952 .block_erasers =
12953 {
12954 {
12955 .eraseblocks = { {4 * 1024, 128} },
12956 .block_erase = spi_block_erase_20,
12957 }, {
12958 .eraseblocks = { {32 * 1024, 16} },
12959 .block_erase = spi_block_erase_52,
12960 }, {
12961 .eraseblocks = { {512 * 1024, 1} },
12962 .block_erase = spi_block_erase_60,
Mark Marshall90021f22010-12-03 14:48:11 +000012963 },
12964 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012965 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Mark Marshall90021f22010-12-03 14:48:11 +000012966 .unlock = spi_disable_blockprotect,
Cory Henderson370f5822013-10-19 23:09:16 +000012967 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
12968 .read = spi_chip_read,
12969 .voltage = {2700, 3600},
12970 },
12971
12972 {
12973 .vendor = "SST",
12974 .name = "SST25VF040B",
12975 .bustype = BUS_SPI,
12976 .manufacture_id = SST_ID,
12977 .model_id = SST_SST25VF040B,
12978 .total_size = 512,
12979 .page_size = 256,
12980 .feature_bits = FEATURE_WRSR_EWSR,
12981 .tested = TEST_OK_PREW,
12982 .probe = probe_spi_rdid,
12983 .probe_timing = TIMING_ZERO,
12984 .block_erasers =
12985 {
12986 {
12987 .eraseblocks = { {4 * 1024, 128} },
12988 .block_erase = spi_block_erase_20,
12989 }, {
12990 .eraseblocks = { {32 * 1024, 16} },
12991 .block_erase = spi_block_erase_52,
12992 }, {
12993 .eraseblocks = { {64 * 1024, 8} },
12994 .block_erase = spi_block_erase_d8,
12995 }, {
12996 .eraseblocks = { {512 * 1024, 1} },
12997 .block_erase = spi_block_erase_60,
12998 }, {
12999 .eraseblocks = { {512 * 1024, 1} },
13000 .block_erase = spi_block_erase_c7,
13001 },
13002 },
13003 .printlock = spi_prettyprint_status_register_sst25vf040b,
13004 .unlock = spi_disable_blockprotect,
13005 .write = spi_aai_write, /* AAI supported (0xAD) */
13006 .read = spi_chip_read, /* Fast read (0x0B) supported */
13007 .voltage = {2700, 3600},
13008 },
13009
13010 {
13011 .vendor = "SST",
13012 .name = "SST25VF040B.REMS",
13013 .bustype = BUS_SPI,
13014 .manufacture_id = SST_ID,
13015 .model_id = SST_SST25VF040B_REMS,
13016 .total_size = 512,
13017 .page_size = 256,
13018 .feature_bits = FEATURE_WRSR_EWSR,
13019 .tested = TEST_OK_PREW,
13020 .probe = probe_spi_rems,
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,
13044 .read = spi_chip_read,
13045 .voltage = {2700, 3600},
13046 },
13047
13048 {
13049 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013050 .name = "SST25VF064C",
Ben Gardnerbcf61092015-11-22 02:23:31 +000013051 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013052 .manufacture_id = SST_ID,
13053 .model_id = SST_SST25VF064C,
13054 .total_size = 8192,
Ben Gardnerbcf61092015-11-22 02:23:31 +000013055 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013056 .feature_bits = FEATURE_WRSR_EWSR,
Ben Gardnerbcf61092015-11-22 02:23:31 +000013057 .tested = TEST_OK_PREW,
13058 .probe = probe_spi_rdid,
13059 .probe_timing = TIMING_ZERO,
13060 .block_erasers =
13061 {
13062 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013063 .eraseblocks = { {4 * 1024, 2048} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000013064 .block_erase = spi_block_erase_20,
13065 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013066 .eraseblocks = { {32 * 1024, 256} },
13067 .block_erase = spi_block_erase_52,
13068 }, {
13069 .eraseblocks = { {64 * 1024, 128} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000013070 .block_erase = spi_block_erase_d8,
13071 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013072 .eraseblocks = { {8 * 1024 * 1024, 1} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000013073 .block_erase = spi_block_erase_60,
13074 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013075 .eraseblocks = { {8 * 1024 * 1024, 1} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000013076 .block_erase = spi_block_erase_c7,
13077 },
13078 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100013079 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
13080 .unlock = spi_disable_blockprotect,
Ben Gardnerbcf61092015-11-22 02:23:31 +000013081 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013082 .read = spi_chip_read,
13083 .voltage = {2700, 3600},
Ben Gardnerbcf61092015-11-22 02:23:31 +000013084 },
13085
13086 {
13087 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +000013088 .name = "SST25VF080B",
13089 .bustype = BUS_SPI,
13090 .manufacture_id = SST_ID,
13091 .model_id = SST_SST25VF080B,
13092 .total_size = 1024,
13093 .page_size = 256,
13094 .feature_bits = FEATURE_WRSR_EWSR,
13095 .tested = TEST_OK_PREW,
13096 .probe = probe_spi_rdid,
13097 .probe_timing = TIMING_ZERO,
13098 .block_erasers =
13099 {
13100 {
13101 .eraseblocks = { {4 * 1024, 256} },
13102 .block_erase = spi_block_erase_20,
13103 }, {
13104 .eraseblocks = { {32 * 1024, 32} },
13105 .block_erase = spi_block_erase_52,
13106 }, {
13107 .eraseblocks = { {64 * 1024, 16} },
13108 .block_erase = spi_block_erase_d8,
13109 }, {
13110 .eraseblocks = { {1024 * 1024, 1} },
13111 .block_erase = spi_block_erase_60,
13112 }, {
13113 .eraseblocks = { {1024 * 1024, 1} },
13114 .block_erase = spi_block_erase_c7,
13115 },
13116 },
13117 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
13118 .unlock = spi_disable_blockprotect,
13119 .write = spi_aai_write,
Mark Marshall90021f22010-12-03 14:48:11 +000013120 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000013121 .voltage = {2700, 3600},
Mark Marshall90021f22010-12-03 14:48:11 +000013122 },
13123
13124 {
13125 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013126 .name = "SST25VF512(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013127 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013128 .manufacture_id = SST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013129 .model_id = SST_SST25VF512_REMS,
13130 .total_size = 64,
13131 .page_size = 256,
13132 .feature_bits = FEATURE_WRSR_EWSR,
13133 .tested = TEST_OK_PREW,
13134 .probe = probe_spi_rems,
13135 .probe_timing = TIMING_ZERO,
13136 .block_erasers =
13137 {
13138 {
13139 .eraseblocks = { {4 * 1024, 16} },
13140 .block_erase = spi_block_erase_20,
13141 }, {
13142 .eraseblocks = { {32 * 1024, 2} },
13143 .block_erase = spi_block_erase_52,
13144 }, {
13145 .eraseblocks = { {32 * 1024, 2} },
13146 .block_erase = spi_block_erase_d8, /* Supported by SST25VF512A only */
13147 }, {
13148 .eraseblocks = { {64 * 1024, 1} },
13149 .block_erase = spi_block_erase_60,
13150 }, {
13151 .eraseblocks = { {64 * 1024, 1} },
13152 .block_erase = spi_block_erase_c7, /* Supported by SST25VF512A only */
13153 },
13154 },
13155 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
13156 .unlock = spi_disable_blockprotect,
13157 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13158 .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF512A only */
13159 .voltage = {2700, 3600},
13160 },
13161
13162 {
13163 .vendor = "SST",
13164 .name = "SST25WF010",
13165 .bustype = BUS_SPI,
13166 .manufacture_id = SST_ID,
13167 .model_id = SST_SST25WF010,
13168 .total_size = 128,
13169 .page_size = 256,
13170 .feature_bits = FEATURE_WRSR_EITHER,
13171 .tested = TEST_UNTESTED,
13172 .probe = probe_spi_rdid,
13173 .probe_timing = TIMING_ZERO,
13174 .block_erasers =
13175 {
13176 {
13177 .eraseblocks = { {4 * 1024, 32} },
13178 .block_erase = spi_block_erase_20,
13179 }, {
13180 .eraseblocks = { {32 * 1024, 4} },
13181 .block_erase = spi_block_erase_52,
13182 }, {
13183 .eraseblocks = { {1024 * 128, 1} },
13184 .block_erase = spi_block_erase_60,
13185 }, {
13186 .eraseblocks = { {1024 * 128, 1} },
13187 .block_erase = spi_block_erase_c7,
13188 },
13189 },
13190 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
13191 .unlock = spi_disable_blockprotect_bp2_srwd,
13192 .write = spi_aai_write,
13193 .read = spi_chip_read, /* Fast read (0x0B) supported */
13194 .voltage = {1650, 1950},
13195 },
13196
13197 {
13198 .vendor = "SST",
13199 .name = "SST25WF020",
13200 .bustype = BUS_SPI,
13201 .manufacture_id = SST_ID,
13202 .model_id = SST_SST25WF020,
13203 .total_size = 256,
13204 .page_size = 256,
13205 .feature_bits = FEATURE_WRSR_EITHER,
13206 .tested = TEST_UNTESTED,
13207 .probe = probe_spi_rdid,
13208 .probe_timing = TIMING_ZERO,
13209 .block_erasers =
13210 {
13211 {
13212 .eraseblocks = { {4 * 1024, 64} },
13213 .block_erase = spi_block_erase_20,
13214 }, {
13215 .eraseblocks = { {32 * 1024, 8} },
13216 .block_erase = spi_block_erase_52,
13217 }, {
13218 .eraseblocks = { {64 * 1024, 4} },
13219 .block_erase = spi_block_erase_d8,
13220 }, {
13221 .eraseblocks = { {1024 * 256, 1} },
13222 .block_erase = spi_block_erase_60,
13223 }, {
13224 .eraseblocks = { {1024 * 256, 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 = "SST25WF020A",
13238 .bustype = BUS_SPI,
13239 .manufacture_id = SANYO_ID, /* See flashchips.h */
13240 .model_id = SST_SST25WF020A,
13241 .total_size = 256,
13242 .page_size = 256,
13243 .feature_bits = FEATURE_WRSR_WREN,
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 = { {64 * 1024, 4} },
13254 .block_erase = spi_block_erase_d8,
13255 }, {
13256 .eraseblocks = { {256 * 1024, 1} },
13257 .block_erase = spi_block_erase_60,
13258 }, {
13259 .eraseblocks = { {256 * 1024, 1} },
13260 .block_erase = spi_block_erase_c7,
13261 },
13262 },
13263 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
13264 .unlock = spi_disable_blockprotect_bp2_srwd,
13265 .write = spi_chip_write_256,
13266 .read = spi_chip_read, /* Fast read (0x0B) supported */
13267 .voltage = {1650, 1950},
13268 },
13269
13270 {
13271 .vendor = "SST",
13272 .name = "SST25WF040",
13273 .bustype = BUS_SPI,
13274 .manufacture_id = SST_ID,
13275 .model_id = SST_SST25WF040,
13276 .total_size = 512,
13277 .page_size = 256,
13278 .feature_bits = FEATURE_WRSR_EITHER,
13279 .tested = TEST_UNTESTED,
13280 .probe = probe_spi_rdid,
13281 .probe_timing = TIMING_ZERO,
13282 .block_erasers =
13283 {
13284 {
13285 .eraseblocks = { {4 * 1024, 128} },
13286 .block_erase = spi_block_erase_20,
13287 }, {
13288 .eraseblocks = { {32 * 1024, 16} },
13289 .block_erase = spi_block_erase_52,
13290 }, {
13291 .eraseblocks = { {64 * 1024, 8} },
13292 .block_erase = spi_block_erase_d8,
13293 }, {
13294 .eraseblocks = { {1024 * 512, 1} },
13295 .block_erase = spi_block_erase_60,
13296 }, {
13297 .eraseblocks = { {1024 * 512, 1} },
13298 .block_erase = spi_block_erase_c7,
13299 },
13300 },
13301 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
13302 .unlock = spi_disable_blockprotect_bp2_srwd,
13303 .write = spi_aai_write,
13304 .read = spi_chip_read, /* Fast read (0x0B) supported */
13305 .voltage = {1650, 1950},
13306 },
13307
13308 {
13309 .vendor = "SST",
13310 .name = "SST25WF040B",
13311 .bustype = BUS_SPI,
13312 .manufacture_id = SANYO_ID, /* See flashchips.h */
13313 .model_id = SST_SST25WF040B,
13314 .total_size = 512,
13315 .page_size = 256,
13316 .feature_bits = FEATURE_WRSR_WREN,
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 = { {64 * 1024, 8} },
13327 .block_erase = spi_block_erase_d8,
13328 }, {
13329 .eraseblocks = { {512 * 1024, 1} },
13330 .block_erase = spi_block_erase_60,
13331 }, {
13332 .eraseblocks = { {512 * 1024, 1} },
13333 .block_erase = spi_block_erase_c7,
13334 },
13335 },
13336 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
13337 .unlock = spi_disable_blockprotect_bp2_srwd,
13338 .write = spi_chip_write_256,
13339 .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */
13340 .voltage = {1650, 1950},
13341 },
13342
13343 {
13344 .vendor = "SST",
13345 .name = "SST25WF080",
13346 .bustype = BUS_SPI,
13347 .manufacture_id = SST_ID,
13348 .model_id = SST_SST25WF080,
13349 .total_size = 1024,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013350 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000013351 .feature_bits = FEATURE_WRSR_EITHER,
Mark Marshall90021f22010-12-03 14:48:11 +000013352 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013353 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013354 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013355 .block_erasers =
13356 {
13357 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013358 .eraseblocks = { {4 * 1024, 256} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013359 .block_erase = spi_block_erase_20,
13360 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013361 .eraseblocks = { {32 * 1024, 32} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013362 .block_erase = spi_block_erase_52,
13363 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013364 .eraseblocks = { {64 * 1024, 16} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013365 .block_erase = spi_block_erase_d8,
13366 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013367 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013368 .block_erase = spi_block_erase_60,
13369 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013370 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013371 .block_erase = spi_block_erase_c7,
13372 },
13373 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100013374 .printlock = spi_prettyprint_status_register_sst25, /* *does* have a BP3 but it is useless */
13375 .unlock = spi_disable_blockprotect_bp3_srwd,
Joshua Roys87955bf2011-08-01 18:39:28 +000013376 .write = spi_aai_write,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013377 .read = spi_chip_read, /* Fast read (0x0B) supported */
13378 .voltage = {1650, 1950},
FENG yu ningff692fb2008-12-08 18:15:10 +000013379 },
13380
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013381 {
13382 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013383 .name = "SST25WF080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013384 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013385 .manufacture_id = SANYO_ID, /* See flashchips.h */
13386 .model_id = SST_SST25WF080B,
13387 .total_size = 1024,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013388 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013389 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerfcf6a8c2011-05-18 01:32:00 +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 = { {64 * 1024, 16} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013400 .block_erase = spi_block_erase_d8,
13401 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013402 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013403 .block_erase = spi_block_erase_60,
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_c7,
13407 },
13408 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100013409 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
13410 .unlock = spi_disable_blockprotect_bp2_srwd,
Helge Wagner1db7a442010-10-05 22:29:08 +000013411 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013412 .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */
13413 .voltage = {1650, 1950},
13414 },
13415
13416 {
13417 .vendor = "SST",
13418 .name = "SST25WF512",
13419 .bustype = BUS_SPI,
13420 .manufacture_id = SST_ID,
13421 .model_id = SST_SST25WF512,
13422 .total_size = 64,
13423 .page_size = 256,
13424 .feature_bits = FEATURE_WRSR_EITHER,
13425 .tested = TEST_UNTESTED,
13426 .probe = probe_spi_rdid,
13427 .probe_timing = TIMING_ZERO,
13428 .block_erasers =
13429 {
13430 {
13431 .eraseblocks = { {4 * 1024, 16} },
13432 .block_erase = spi_block_erase_20,
13433 }, {
13434 .eraseblocks = { {32 * 1024, 2} },
13435 .block_erase = spi_block_erase_52,
13436 }, {
13437 .eraseblocks = { {1024 * 64, 1} },
13438 .block_erase = spi_block_erase_60,
13439 }, {
13440 .eraseblocks = { {1024 * 64, 1} },
13441 .block_erase = spi_block_erase_c7,
13442 },
13443 },
13444 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
13445 .unlock = spi_disable_blockprotect_bp2_srwd,
13446 .write = spi_aai_write,
13447 .read = spi_chip_read, /* Fast read (0x0B) supported */
13448 .voltage = {1650, 1950},
Ed Swierk86f4e6d2010-07-21 15:02:22 +000013449 },
13450
13451 {
13452 .vendor = "SST",
Wei Hu25584de2018-04-30 14:02:08 -070013453 .name = "SST26VF016B(A)",
13454 .bustype = BUS_SPI,
13455 .manufacture_id = SST_ID,
13456 .model_id = SST_SST26VF016B,
13457 .total_size = 2048,
13458 .page_size = 256,
13459 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
13460 .tested = TEST_OK_PREW,
13461 .probe = probe_spi_rdid,
13462 .probe_timing = TIMING_ZERO,
13463 .block_erasers =
13464 {
13465 {
13466 .eraseblocks = { {4 * 1024, 512} },
13467 .block_erase = spi_block_erase_20,
13468 }, {
13469 .eraseblocks = {
13470 {8 * 1024, 4},
13471 {32 * 1024, 1},
13472 {64 * 1024, 30},
13473 {32 * 1024, 1},
13474 {8 * 1024, 4},
13475 },
13476 .block_erase = spi_block_erase_d8,
13477 }, {
13478 .eraseblocks = { {2 * 1024 * 1024, 1} },
13479 .block_erase = spi_block_erase_c7,
13480 },
13481 },
13482 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
13483 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
13484 .write = spi_chip_write_256, /* Multi I/O supported */
13485 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
13486 .voltage = {2700, 3600},
13487 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100013488
Wei Hu25584de2018-04-30 14:02:08 -070013489 {
13490 .vendor = "SST",
13491 .name = "SST26VF032B(A)",
13492 .bustype = BUS_SPI,
13493 .manufacture_id = SST_ID,
13494 .model_id = SST_SST26VF032B,
13495 .total_size = 4096,
13496 .page_size = 256,
13497 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
13498 .tested = TEST_UNTESTED,
13499 .probe = probe_spi_rdid,
13500 .probe_timing = TIMING_ZERO,
13501 .block_erasers =
13502 {
13503 {
13504 .eraseblocks = { {4 * 1024, 1024} },
13505 .block_erase = spi_block_erase_20,
13506 }, {
13507 .eraseblocks = {
13508 {8 * 1024, 4},
13509 {32 * 1024, 1},
13510 {64 * 1024, 62},
13511 {32 * 1024, 1},
13512 {8 * 1024, 4},
13513 },
13514 .block_erase = spi_block_erase_d8,
13515 }, {
13516 .eraseblocks = { {4 * 1024 * 1024, 1} },
13517 .block_erase = spi_block_erase_c7,
13518 },
13519 },
13520 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
13521 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
13522 .write = spi_chip_write_256, /* Multi I/O supported */
13523 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
13524 .voltage = {2700, 3600},
13525 },
13526
Wei Hu25584de2018-04-30 14:02:08 -070013527 {
13528 .vendor = "SST",
13529 .name = "SST26VF064B(A)",
13530 .bustype = BUS_SPI,
13531 .manufacture_id = SST_ID,
13532 .model_id = SST_SST26VF064B,
13533 .total_size = 8192,
13534 .page_size = 256,
13535 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
13536 .tested = TEST_OK_PREW,
13537 .probe = probe_spi_rdid,
13538 .probe_timing = TIMING_ZERO,
13539 .block_erasers =
13540 {
13541 {
13542 .eraseblocks = { {4 * 1024, 2048} },
13543 .block_erase = spi_block_erase_20,
13544 }, {
13545 .eraseblocks = {
13546 {8 * 1024, 4},
13547 {32 * 1024, 1},
13548 {64 * 1024, 126},
13549 {32 * 1024, 1},
13550 {8 * 1024, 4},
13551 },
13552 .block_erase = spi_block_erase_d8,
13553 }, {
13554 .eraseblocks = { {8 * 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
13565 {
13566 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013567 .name = "SST28SF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013568 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013569 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013570 .model_id = SST_SST28SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013571 .total_size = 512,
13572 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000013573 .feature_bits = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013574 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013575 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000013576 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013577 .block_erasers =
13578 {
13579 {
13580 .eraseblocks = { {128, 4096} },
13581 .block_erase = erase_sector_28sf040,
13582 }, {
13583 .eraseblocks = { {512 * 1024, 1} },
13584 .block_erase = erase_chip_28sf040,
13585 }
13586 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000013587 .unlock = unprotect_28sf040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013588 .write = write_28sf040,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013589 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013590 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013591 },
13592
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013593 {
13594 .vendor = "SST",
13595 .name = "SST29EE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013596 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013597 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013598 .model_id = SST_SST29EE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013599 .total_size = 128,
13600 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000013601 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000013602 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013603 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000013604 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013605 .block_erasers =
13606 {
13607 {
13608 .eraseblocks = { {128 * 1024, 1} },
13609 .block_erase = erase_chip_block_jedec,
13610 }
13611 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013612 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013613 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013614 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013615 },
13616
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013617 {
13618 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013619 .name = "SST29EE020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013620 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013621 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013622 .model_id = SST_SST29EE020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013623 .total_size = 256,
13624 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000013625 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000013626 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013627 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013628 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013629 .block_erasers =
13630 {
13631 {
13632 .eraseblocks = { {256 * 1024, 1} },
13633 .block_erase = erase_chip_block_jedec,
13634 }
13635 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013636 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013637 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013638 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013639 },
13640
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013641 {
13642 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013643 .name = "SST29LE010",
13644 .bustype = BUS_PARALLEL,
13645 .manufacture_id = SST_ID,
13646 .model_id = SST_SST29LE010,
13647 .total_size = 128,
13648 .page_size = 128,
13649 .feature_bits = FEATURE_LONG_RESET,
13650 .tested = TEST_UNTESTED,
13651 .probe = probe_jedec,
13652 .probe_timing = 10,
13653 .block_erasers =
13654 {
13655 {
13656 .eraseblocks = { {128 * 1024, 1} },
13657 .block_erase = erase_chip_block_jedec,
13658 }
13659 },
13660 .write = write_jedec,
13661 .read = read_memmapped,
13662 .voltage = {3000, 3600},
13663 },
13664
13665 {
13666 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013667 .name = "SST29LE020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013668 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013669 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013670 .model_id = SST_SST29LE020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013671 .total_size = 256,
13672 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000013673 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000013674 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013675 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000013676 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013677 .block_erasers =
13678 {
13679 {
13680 .eraseblocks = { {256 * 1024, 1} },
13681 .block_erase = erase_chip_block_jedec,
13682 }
13683 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013684 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013685 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013686 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013687 },
13688
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013689 {
13690 .vendor = "SST",
13691 .name = "SST39SF010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013692 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013693 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013694 .model_id = SST_SST39SF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013695 .total_size = 128,
13696 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013697 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000013698 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013699 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000013700 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013701 .block_erasers =
13702 {
13703 {
13704 .eraseblocks = { {4 * 1024, 32} },
13705 .block_erase = erase_sector_jedec,
13706 }, {
13707 .eraseblocks = { {128 * 1024, 1} },
13708 .block_erase = erase_chip_block_jedec,
13709 }
13710 },
Sean Nelson35727f72010-01-28 23:55:12 +000013711 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013712 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013713 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013714 },
13715
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013716 {
13717 .vendor = "SST",
13718 .name = "SST39SF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013719 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013720 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013721 .model_id = SST_SST39SF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013722 .total_size = 256,
13723 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013724 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann19f46f22011-06-18 22:56:14 +000013725 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013726 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013727 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013728 .block_erasers =
13729 {
13730 {
13731 .eraseblocks = { {4 * 1024, 64} },
13732 .block_erase = erase_sector_jedec,
13733 }, {
13734 .eraseblocks = { {256 * 1024, 1} },
13735 .block_erase = erase_chip_block_jedec,
13736 }
13737 },
Sean Nelson35727f72010-01-28 23:55:12 +000013738 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013739 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013740 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013741 },
13742
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013743 {
13744 .vendor = "SST",
13745 .name = "SST39SF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013746 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013747 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013748 .model_id = SST_SST39SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013749 .total_size = 512,
13750 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013751 .feature_bits = FEATURE_EITHER_RESET,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +000013752 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013753 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013754 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013755 .block_erasers =
13756 {
13757 {
13758 .eraseblocks = { {4 * 1024, 128} },
13759 .block_erase = erase_sector_jedec,
13760 }, {
13761 .eraseblocks = { {512 * 1024, 1} },
13762 .block_erase = erase_chip_block_jedec,
13763 }
13764 },
Sean Nelson35727f72010-01-28 23:55:12 +000013765 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013766 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013767 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013768 },
13769
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013770 {
13771 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013772 .name = "SST39SF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013773 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013774 .manufacture_id = SST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013775 .model_id = SST_SST39SF512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013776 .total_size = 64,
13777 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013778 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd7d423b2012-10-20 09:13:16 +000013779 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013780 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013781 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013782 .block_erasers =
13783 {
13784 {
13785 .eraseblocks = { {4 * 1024, 16} },
13786 .block_erase = erase_sector_jedec,
13787 }, {
13788 .eraseblocks = { {64 * 1024, 1} },
13789 .block_erase = erase_chip_block_jedec,
13790 }
13791 },
Sean Nelson35727f72010-01-28 23:55:12 +000013792 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013793 .read = read_memmapped,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013794 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013795 },
13796
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013797 {
13798 .vendor = "SST",
13799 .name = "SST39VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013800 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013801 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013802 .model_id = SST_SST39VF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013803 .total_size = 128,
13804 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013805 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd94d25d2012-07-28 03:17:15 +000013806 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013807 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013808 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013809 .block_erasers =
13810 {
13811 {
13812 .eraseblocks = { {4 * 1024, 32} },
13813 .block_erase = erase_sector_jedec,
13814 }, {
13815 .eraseblocks = { {128 * 1024, 1} },
13816 .block_erase = erase_chip_block_jedec,
13817 }
13818 },
Sean Nelson35727f72010-01-28 23:55:12 +000013819 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013820 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013821 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013822 },
13823
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013824 {
13825 .vendor = "SST",
13826 .name = "SST39VF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013827 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013828 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013829 .model_id = SST_SST39VF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013830 .total_size = 256,
13831 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013832 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner5c316f92015-02-08 21:57:52 +000013833 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013834 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013835 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013836 .block_erasers =
13837 {
13838 {
13839 .eraseblocks = { {4 * 1024, 64} },
13840 .block_erase = erase_sector_jedec,
13841 }, {
13842 .eraseblocks = { {256 * 1024, 1} },
13843 .block_erase = erase_chip_block_jedec,
13844 }
13845 },
Sean Nelson35727f72010-01-28 23:55:12 +000013846 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013847 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013848 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013849 },
13850
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013851 {
13852 .vendor = "SST",
13853 .name = "SST39VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013854 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013855 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013856 .model_id = SST_SST39VF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013857 .total_size = 512,
13858 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013859 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner23e10b82016-01-23 16:16:49 +000013860 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013861 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013862 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013863 .block_erasers =
13864 {
13865 {
13866 .eraseblocks = { {4 * 1024, 128} },
13867 .block_erase = erase_sector_jedec,
13868 }, {
13869 .eraseblocks = { {512 * 1024, 1} },
13870 .block_erase = erase_chip_block_jedec,
13871 }
13872 },
Sean Nelson35727f72010-01-28 23:55:12 +000013873 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013874 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013875 .voltage = {2700, 3600},
Carl-Daniel Hailfinger90eff152008-12-08 23:51:45 +000013876 },
FENG yu ningff692fb2008-12-08 18:15:10 +000013877
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013878 {
13879 .vendor = "SST",
Peter Stuge8440cc02009-01-25 23:55:12 +000013880 .name = "SST39VF080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013881 .bustype = BUS_PARALLEL,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000013882 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013883 .model_id = SST_SST39VF080,
Peter Stuge8440cc02009-01-25 23:55:12 +000013884 .total_size = 1024,
13885 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013886 .feature_bits = FEATURE_EITHER_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +000013887 .tested = TEST_UNTESTED,
13888 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013889 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013890 .block_erasers =
13891 {
13892 {
13893 .eraseblocks = { {4 * 1024, 256} },
13894 .block_erase = erase_sector_jedec,
13895 }, {
13896 .eraseblocks = { {64 * 1024, 16} },
13897 .block_erase = erase_block_jedec,
13898 }, {
13899 .eraseblocks = { {1024 * 1024, 1} },
13900 .block_erase = erase_chip_block_jedec,
13901 }
13902 },
Sean Nelson35727f72010-01-28 23:55:12 +000013903 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013904 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013905 .voltage = {2700, 3600},
Peter Stuge8440cc02009-01-25 23:55:12 +000013906 },
13907
13908 {
13909 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013910 .name = "SST39VF512",
13911 .bustype = BUS_PARALLEL,
13912 .manufacture_id = SST_ID,
13913 .model_id = SST_SST39VF512,
13914 .total_size = 64,
13915 .page_size = 4096,
13916 .feature_bits = FEATURE_EITHER_RESET,
13917 .tested = TEST_OK_PREW,
13918 .probe = probe_jedec,
13919 .probe_timing = 1, /* 150 ns */
13920 .block_erasers =
13921 {
13922 {
13923 .eraseblocks = { {4 * 1024, 16} },
13924 .block_erase = erase_sector_jedec,
13925 }, {
13926 .eraseblocks = { {64 * 1024, 1} },
13927 .block_erase = erase_chip_block_jedec,
13928 }
13929 },
13930 .write = write_jedec_1,
13931 .read = read_memmapped,
13932 .voltage = {2700, 3600},
13933 },
13934
13935 {
13936 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013937 .name = "SST49LF002A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013938 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013939 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013940 .model_id = SST_SST49LF002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013941 .total_size = 256,
13942 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013943 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000013944 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013945 .probe = probe_jedec,
13946 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013947 .block_erasers =
13948 {
13949 {
13950 .eraseblocks = { {4 * 1024, 64} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013951 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013952 }, {
13953 .eraseblocks = { {16 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013954 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013955 }, {
13956 .eraseblocks = { {256 * 1024, 1} },
13957 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
13958 }
13959 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013960 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013961 .unlock = unlock_sst_fwhub,
13962 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013963 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013964 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013965 },
13966
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013967 {
13968 .vendor = "SST",
13969 .name = "SST49LF003A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013970 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013971 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013972 .model_id = SST_SST49LF003A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013973 .total_size = 384,
13974 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013975 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000013976 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013977 .probe = probe_jedec,
13978 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013979 .block_erasers =
13980 {
13981 {
13982 .eraseblocks = { {4 * 1024, 96} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013983 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013984 }, {
13985 .eraseblocks = { {64 * 1024, 6} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013986 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013987 }, {
13988 .eraseblocks = { {384 * 1024, 1} },
13989 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
13990 }
13991 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013992 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013993 .unlock = unlock_sst_fwhub,
13994 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013995 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013996 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013997 },
13998
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013999 {
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000014000 /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB)
14001 * and is only honored for 64k block erase, but not 4k sector erase.
14002 */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014003 .vendor = "SST",
14004 .name = "SST49LF004A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014005 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014006 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014007 .model_id = SST_SST49LF004A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014008 .total_size = 512,
14009 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014010 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000014011 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014012 .probe = probe_jedec,
14013 .probe_timing = 1, /* 150 ns */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000014014 .block_erasers =
14015 {
14016 {
14017 .eraseblocks = { {4 * 1024, 128} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014018 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000014019 }, {
14020 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014021 .block_erase = erase_block_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000014022 }, {
14023 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson51c83fb2010-01-20 20:55:53 +000014024 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000014025 },
14026 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014027 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014028 .unlock = unlock_sst_fwhub,
14029 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014030 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014031 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014032 },
14033
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014034 {
14035 .vendor = "SST",
14036 .name = "SST49LF004C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014037 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014038 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014039 .model_id = SST_SST49LF004C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014040 .total_size = 512,
14041 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014042 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014043 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014044 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014045 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014046 .block_erasers =
14047 {
14048 {
14049 .eraseblocks = { {4 * 1024, 128} },
14050 .block_erase = erase_sector_49lfxxxc,
14051 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000014052 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000014053 {64 * 1024, 7},
14054 {32 * 1024, 1},
14055 {8 * 1024, 2},
14056 {16 * 1024, 1},
14057 },
Sean Nelson69e58112010-03-23 17:10:28 +000014058 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014059 }
14060 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014061 .printlock = printlock_regspace2_block_eraser_1,
14062 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014063 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014064 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014065 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014066 },
14067
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014068 {
14069 .vendor = "SST",
14070 .name = "SST49LF008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014071 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014072 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014073 .model_id = SST_SST49LF008A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014074 .total_size = 1024,
14075 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014076 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000014077 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014078 .probe = probe_jedec,
14079 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014080 .block_erasers =
14081 {
14082 {
14083 .eraseblocks = { {4 * 1024, 256} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014084 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014085 }, {
14086 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014087 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014088 }, {
14089 .eraseblocks = { {1024 * 1024, 1} },
14090 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
14091 }
14092 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014093 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014094 .unlock = unlock_sst_fwhub,
14095 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014096 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014097 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014098 },
14099
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014100 {
14101 .vendor = "SST",
14102 .name = "SST49LF008C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014103 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014104 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014105 .model_id = SST_SST49LF008C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014106 .total_size = 1024,
14107 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014108 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014109 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014110 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014111 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014112 .block_erasers =
14113 {
14114 {
14115 .eraseblocks = { {4 * 1024, 256} },
14116 .block_erase = erase_sector_49lfxxxc,
14117 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000014118 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000014119 {64 * 1024, 15},
14120 {32 * 1024, 1},
14121 {8 * 1024, 2},
14122 {16 * 1024, 1},
14123 },
Sean Nelson69e58112010-03-23 17:10:28 +000014124 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014125 }
14126 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014127 .printlock = printlock_regspace2_block_eraser_1,
14128 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014129 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014130 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014131 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014132 },
14133
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014134 {
14135 .vendor = "SST",
14136 .name = "SST49LF016C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014137 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014138 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014139 .model_id = SST_SST49LF016C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014140 .total_size = 2048,
14141 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014142 .feature_bits = FEATURE_REGISTERMAP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000014143 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014144 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014145 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014146 .block_erasers =
14147 {
14148 {
14149 .eraseblocks = { {4 * 1024, 512} },
14150 .block_erase = erase_sector_49lfxxxc,
14151 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000014152 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000014153 {64 * 1024, 31},
14154 {32 * 1024, 1},
14155 {8 * 1024, 2},
14156 {16 * 1024, 1},
14157 },
Sean Nelson69e58112010-03-23 17:10:28 +000014158 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014159 }
14160 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014161 .printlock = printlock_regspace2_block_eraser_1,
14162 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014163 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014164 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014165 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014166 },
14167
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014168 {
14169 .vendor = "SST",
14170 .name = "SST49LF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014171 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014172 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014173 .model_id = SST_SST49LF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014174 .total_size = 256,
14175 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014176 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +000014177 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014178 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014179 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014180 .block_erasers =
14181 {
14182 {
14183 .eraseblocks = { {4 * 1024, 64} },
14184 .block_erase = erase_sector_jedec,
14185 }, {
14186 .eraseblocks = { {16 * 1024, 16} },
14187 .block_erase = erase_block_jedec,
14188 }, {
14189 .eraseblocks = { {256 * 1024, 1} },
14190 .block_erase = NULL,
14191 }
14192 },
Sean Nelson35727f72010-01-28 23:55:12 +000014193 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014194 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014195 .voltage = {3000, 3600},
Sven Schnellec208dfb2009-01-07 12:35:09 +000014196 },
14197
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014198 {
14199 .vendor = "SST",
14200 .name = "SST49LF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014201 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014202 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014203 .model_id = SST_SST49LF020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014204 .total_size = 256,
Carl-Daniel Hailfingerda654322009-07-23 01:44:38 +000014205 .page_size = 4 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014206 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000014207 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014208 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014209 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014210 .block_erasers =
14211 {
14212 {
14213 .eraseblocks = { {4 * 1024, 64} },
14214 .block_erase = erase_sector_jedec,
14215 }, {
14216 .eraseblocks = { {16 * 1024, 16} },
14217 .block_erase = erase_block_jedec,
14218 }, {
14219 .eraseblocks = { {256 * 1024, 1} },
14220 .block_erase = NULL,
14221 }
14222 },
Sean Nelson35727f72010-01-28 23:55:12 +000014223 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014224 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014225 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014226 },
14227
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014228 {
14229 .vendor = "SST",
14230 .name = "SST49LF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014231 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014232 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014233 .model_id = SST_SST49LF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014234 .total_size = 512,
14235 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014236 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000014237 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014238 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014239 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014240 .block_erasers =
14241 {
14242 {
14243 .eraseblocks = { {4 * 1024, 128} },
14244 .block_erase = erase_sector_jedec,
14245 }, {
14246 .eraseblocks = { {64 * 1024, 8} },
14247 .block_erase = erase_block_jedec,
14248 }, {
14249 .eraseblocks = { {512 * 1024, 1} },
14250 .block_erase = NULL,
14251 }
14252 },
Sean Nelson35727f72010-01-28 23:55:12 +000014253 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014254 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014255 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014256 },
14257
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014258 {
14259 .vendor = "SST",
14260 .name = "SST49LF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014261 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014262 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014263 .model_id = SST_SST49LF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014264 .total_size = 512,
14265 .page_size = 64 * 1024,
Joshua Roysa84b0bd2010-08-16 22:12:39 +000014266 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000014267 .tested = TEST_OK_PREW,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014268 .probe = probe_jedec,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014269 .probe_timing = 1, /* 150ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014270 .block_erasers =
14271 {
14272 {
14273 .eraseblocks = { {4 * 1024, 128} },
14274 .block_erase = erase_sector_jedec,
14275 }, {
14276 .eraseblocks = { {64 * 1024, 8} },
14277 .block_erase = erase_block_jedec,
14278 }, {
14279 .eraseblocks = { {512 * 1024, 1} },
14280 .block_erase = NULL,
14281 }
14282 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014283 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000014284 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014285 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014286 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014287 },
14288
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014289 {
14290 .vendor = "SST",
14291 .name = "SST49LF080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014292 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014293 .manufacture_id = SST_ID,
Elyes HAOUAS124ef382018-03-27 12:15:09 +020014294 .model_id = SST_SST49LF080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014295 .total_size = 1024,
14296 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014297 .feature_bits = FEATURE_EITHER_RESET,
Brandon Dowdyf07bf322011-03-06 18:31:11 +000014298 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014299 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000014300 .probe_timing = TIMING_FIXME,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014301 .block_erasers =
14302 {
14303 {
14304 .eraseblocks = { {4 * 1024, 256} },
14305 .block_erase = erase_sector_jedec,
14306 }, {
14307 .eraseblocks = { {64 * 1024, 16} },
14308 .block_erase = erase_block_jedec,
14309 }, {
14310 .eraseblocks = { {1024 * 1024, 1} },
14311 .block_erase = NULL,
14312 }
14313 },
Sean Nelson35727f72010-01-28 23:55:12 +000014314 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014315 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014316 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014317 },
14318
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014319 {
14320 .vendor = "SST",
14321 .name = "SST49LF160C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014322 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014323 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014324 .model_id = SST_SST49LF160C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014325 .total_size = 2048,
14326 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014327 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014328 .tested = TEST_OK_PR,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014329 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014330 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014331 .block_erasers =
14332 {
14333 {
14334 .eraseblocks = { {4 * 1024, 512} },
14335 .block_erase = erase_sector_49lfxxxc,
14336 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000014337 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000014338 {64 * 1024, 31},
14339 {32 * 1024, 1},
14340 {8 * 1024, 2},
14341 {16 * 1024, 1},
14342 },
Sean Nelson69e58112010-03-23 17:10:28 +000014343 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014344 }
14345 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014346 .printlock = printlock_regspace2_block_eraser_1,
14347 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014348 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014349 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014350 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014351 },
14352
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014353 {
14354 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014355 .name = "M29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014356 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014357 .manufacture_id = ST_ID,
14358 .model_id = ST_M29F002B,
14359 .total_size = 256,
14360 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014361 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014362 .tested = TEST_UNTESTED,
14363 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014364 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014365 .block_erasers =
14366 {
14367 {
14368 .eraseblocks = {
14369 {16 * 1024, 1},
14370 {8 * 1024, 2},
14371 {32 * 1024, 1},
14372 {64 * 1024, 3},
14373 },
14374 .block_erase = erase_sector_jedec,
14375 }, {
14376 .eraseblocks = { {256 * 1024, 1} },
14377 .block_erase = erase_chip_block_jedec,
14378 }
14379 },
Sean Nelson35727f72010-01-28 23:55:12 +000014380 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014381 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000014382 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000014383 },
14384
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014385 {
14386 .vendor = "ST",
14387 .name = "M29F002T/NT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014388 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014389 .manufacture_id = ST_ID,
14390 .model_id = ST_M29F002T,
14391 .total_size = 256,
14392 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014393 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stefan Taunere34e3e82013-01-01 00:06:51 +000014394 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014395 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014396 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014397 .block_erasers =
14398 {
14399 {
14400 .eraseblocks = {
14401 {64 * 1024, 3},
14402 {32 * 1024, 1},
14403 {8 * 1024, 2},
14404 {16 * 1024, 1},
14405 },
14406 .block_erase = erase_sector_jedec,
14407 }, {
14408 .eraseblocks = { {256 * 1024, 1} },
14409 .block_erase = erase_chip_block_jedec,
14410 }
14411 },
Sean Nelson35727f72010-01-28 23:55:12 +000014412 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014413 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000014414 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000014415 },
14416
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014417 {
14418 .vendor = "ST",
14419 .name = "M29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014420 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014421 .manufacture_id = ST_ID,
14422 .model_id = ST_M29F040B,
14423 .total_size = 512,
14424 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014425 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
14426 .tested = TEST_UNTESTED,
14427 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +000014428 .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */
Sean Nelson56358aa2010-01-19 16:08:51 +000014429 .block_erasers =
14430 {
14431 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014432 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +000014433 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000014434 }, {
14435 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000014436 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000014437 }
14438 },
Sean Nelson35727f72010-01-28 23:55:12 +000014439 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014440 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014441 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014442 },
14443
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014444 {
Sean Nelson35727f72010-01-28 23:55:12 +000014445 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014446 .vendor = "ST",
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014447 .name = "M29F400BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014448 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014449 .manufacture_id = ST_ID,
14450 .model_id = ST_M29F400BB,
14451 .total_size = 512,
14452 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014453 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014454 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014455 .probe = probe_jedec,
14456 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014457 .block_erasers =
14458 {
14459 {
14460 .eraseblocks = {
14461 {16 * 1024, 1},
14462 {8 * 1024, 2},
14463 {32 * 1024, 1},
14464 {64 * 1024, 7},
14465 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014466 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014467 }, {
14468 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014469 .block_erase = erase_chip_block_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014470 }
14471 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014472 .write = write_jedec_1,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014473 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014474 .voltage = {4500, 5500},
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014475 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100014476
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014477 {
14478 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
14479 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014480 .name = "M29F400BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014481 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014482 .manufacture_id = ST_ID,
14483 .model_id = ST_M29F400BT,
14484 .total_size = 512,
14485 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014486 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014487 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014488 .probe = probe_jedec,
14489 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson56358aa2010-01-19 16:08:51 +000014490 .block_erasers =
14491 {
14492 {
14493 .eraseblocks = {
14494 {64 * 1024, 7},
14495 {32 * 1024, 1},
14496 {8 * 1024, 2},
14497 {16 * 1024, 1},
14498 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014499 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000014500 }, {
14501 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014502 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000014503 }
14504 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014505 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014506 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014507 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014508 },
14509
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014510 {
14511 .vendor = "ST",
14512 .name = "M29W010B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014513 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014514 .manufacture_id = ST_ID,
14515 .model_id = ST_M29W010B,
14516 .total_size = 128,
14517 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014518 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014519 .tested = TEST_UNTESTED,
14520 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014521 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014522 .block_erasers =
14523 {
14524 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014525 .eraseblocks = { {16 * 1024, 8} },
Sean Nelson56358aa2010-01-19 16:08:51 +000014526 .block_erase = erase_sector_jedec,
14527 }, {
14528 .eraseblocks = { {128 * 1024, 1} },
14529 .block_erase = erase_chip_block_jedec,
14530 }
14531 },
Sean Nelson35727f72010-01-28 23:55:12 +000014532 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014533 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014534 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014535 },
14536
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014537 {
14538 .vendor = "ST",
14539 .name = "M29W040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014540 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014541 .manufacture_id = ST_ID,
14542 .model_id = ST_M29W040B,
14543 .total_size = 512,
14544 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014545 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014546 .tested = TEST_UNTESTED,
14547 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014548 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014549 .block_erasers =
14550 {
14551 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014552 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson56358aa2010-01-19 16:08:51 +000014553 .block_erase = erase_sector_jedec,
14554 }, {
14555 .eraseblocks = { {512 * 1024, 1} },
14556 .block_erase = erase_chip_block_jedec,
14557 }
14558 },
Sean Nelson35727f72010-01-28 23:55:12 +000014559 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014560 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014561 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014562 },
14563
Stefan Taunereb582572012-09-21 12:52:50 +000014564 {
14565 .vendor = "ST",
14566 .name = "M29W512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014567 .bustype = BUS_PARALLEL,
Alan Greenfa3fcd32019-06-27 15:41:50 +100014568 .manufacture_id = ST_ID,
Stefan Taunereb582572012-09-21 12:52:50 +000014569 .model_id = ST_M29W512B,
14570 .total_size = 64,
14571 .page_size = 64 * 1024,
14572 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauner0554ca52013-07-25 22:54:25 +000014573 .tested = TEST_OK_PREW,
Stefan Taunereb582572012-09-21 12:52:50 +000014574 .probe = probe_jedec,
14575 .probe_timing = TIMING_ZERO,
14576 .block_erasers =
14577 {
14578 {
14579 .eraseblocks = { {64 * 1024, 1} },
14580 .block_erase = erase_chip_block_jedec,
14581 }
14582 },
14583 .write = write_jedec_1,
14584 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014585 .voltage = {2700, 3600},
Stefan Taunereb582572012-09-21 12:52:50 +000014586 },
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +000014587
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014588 {
14589 .vendor = "ST",
14590 .name = "M50FLW040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014591 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014592 .manufacture_id = ST_ID,
14593 .model_id = ST_M50FLW040A,
14594 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000014595 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014596 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014597 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000014598 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000014599 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000014600 .block_erasers =
14601 {
14602 {
Sean Nelson329bde72010-01-19 16:39:19 +000014603 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000014604 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000014605 {64 * 1024, 5}, /* block */
14606 {4 * 1024, 16}, /* sector */
14607 {4 * 1024, 16}, /* sector */
14608 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000014609 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000014610 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000014611 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000014612 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014613 }
14614 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014615 .unlock = unlock_regspace2_uniform_64k,
Alan Greenc1863ca2019-06-27 15:08:03 +100014616 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014617 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014618 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014619 },
14620
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014621 {
14622 .vendor = "ST",
14623 .name = "M50FLW040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014624 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014625 .manufacture_id = ST_ID,
14626 .model_id = ST_M50FLW040B,
14627 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000014628 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014629 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014630 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000014631 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000014632 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000014633 .block_erasers =
14634 {
14635 {
Sean Nelson329bde72010-01-19 16:39:19 +000014636 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000014637 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000014638 {4 * 1024, 16}, /* sector */
14639 {64 * 1024, 5}, /* block */
14640 {4 * 1024, 16}, /* sector */
14641 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000014642 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000014643 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000014644 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000014645 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014646 }
14647 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014648 .unlock = unlock_regspace2_uniform_64k,
Alan Greenc1863ca2019-06-27 15:08:03 +100014649 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014650 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014651 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014652 },
14653
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014654 {
14655 .vendor = "ST",
14656 .name = "M50FLW080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014657 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014658 .manufacture_id = ST_ID,
14659 .model_id = ST_M50FLW080A,
14660 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000014661 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014662 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014663 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +000014664 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000014665 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000014666 .block_erasers =
14667 {
14668 {
Sean Nelson329bde72010-01-19 16:39:19 +000014669 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000014670 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000014671 {64 * 1024, 13}, /* block */
14672 {4 * 1024, 16}, /* sector */
14673 {4 * 1024, 16}, /* sector */
14674 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000014675 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000014676 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000014677 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000014678 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014679 }
14680 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014681 .printlock = printlock_regspace2_block_eraser_0,
14682 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000014683 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014684 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014685 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014686 },
14687
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014688 {
14689 .vendor = "ST",
14690 .name = "M50FLW080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014691 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014692 .manufacture_id = ST_ID,
14693 .model_id = ST_M50FLW080B,
14694 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000014695 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014696 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014697 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000014698 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000014699 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000014700 .block_erasers =
14701 {
14702 {
Sean Nelson329bde72010-01-19 16:39:19 +000014703 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000014704 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000014705 {4 * 1024, 16}, /* sector */
14706 {64 * 1024, 13}, /* block */
14707 {4 * 1024, 16}, /* sector */
14708 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000014709 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000014710 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000014711 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000014712 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014713 }
14714 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014715 .printlock = printlock_regspace2_block_eraser_0,
14716 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000014717 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014718 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014719 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014720 },
14721
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014722 {
14723 .vendor = "ST",
14724 .name = "M50FW002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014725 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014726 .manufacture_id = ST_ID,
14727 .model_id = ST_M50FW002,
14728 .total_size = 256,
Stefan Tauner4404f732013-09-12 08:28:56 +000014729 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014730 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014731 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +000014732 .probe = probe_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014733 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000014734 .block_erasers =
14735 {
14736 {
14737 .eraseblocks = {
14738 {64 * 1024, 3},
14739 {32 * 1024, 1},
14740 {8 * 1024, 2},
14741 {16 * 1024, 1},
14742 },
Sean Nelson28accc22010-03-19 18:47:06 +000014743 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014744 }, {
Stefan Tauner5c316f92015-02-08 21:57:52 +000014745 .eraseblocks = { {256 * 1024, 1} },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014746 .block_erase = NULL, /* Only in A/A mux mode */
Sean Nelson56358aa2010-01-19 16:08:51 +000014747 }
14748 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014749 .printlock = printlock_regspace2_block_eraser_0,
14750 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000014751 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014752 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014753 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014754 },
14755
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014756 {
14757 .vendor = "ST",
14758 .name = "M50FW016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014759 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014760 .manufacture_id = ST_ID,
14761 .model_id = ST_M50FW016,
14762 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000014763 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014764 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014765 .tested = TEST_UNTESTED,
14766 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014767 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000014768 .block_erasers =
14769 {
14770 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014771 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson28accc22010-03-19 18:47:06 +000014772 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014773 }
14774 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014775 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000014776 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014777 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014778 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014779 },
14780
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014781 {
14782 .vendor = "ST",
14783 .name = "M50FW040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014784 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014785 .manufacture_id = ST_ID,
14786 .model_id = ST_M50FW040,
14787 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000014788 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014789 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +000014790 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014791 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014792 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000014793 .block_erasers =
14794 {
14795 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014796 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000014797 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014798 }
14799 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014800 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000014801 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014802 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014803 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014804 },
14805
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014806 {
14807 .vendor = "ST",
14808 .name = "M50FW080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014809 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014810 .manufacture_id = ST_ID,
14811 .model_id = ST_M50FW080,
14812 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000014813 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014814 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014815 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014816 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014817 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000014818 .block_erasers =
14819 {
14820 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014821 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000014822 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014823 }
14824 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014825 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000014826 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014827 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014828 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014829 },
14830
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014831 {
14832 .vendor = "ST",
Stefan Tauner8c4602b2013-09-12 08:29:00 +000014833 .name = "M50LPW080",
14834 .bustype = BUS_LPC, /* A/A Mux */
14835 .manufacture_id = ST_ID,
14836 .model_id = ST_M50LPW080,
14837 .total_size = 1024,
14838 .page_size = 0,
14839 .feature_bits = FEATURE_REGISTERMAP,
14840 .tested = TEST_UNTESTED,
14841 .probe = probe_82802ab,
14842 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
14843 .block_erasers =
14844 {
14845 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014846 .eraseblocks = { {64 * 1024, 16} },
Stefan Tauner8c4602b2013-09-12 08:29:00 +000014847 .block_erase = erase_block_82802ab,
14848 }
14849 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014850 .unlock = unlock_regspace2_uniform_64k,
Stefan Tauner8c4602b2013-09-12 08:29:00 +000014851 .write = write_82802ab,
14852 .read = read_memmapped,
14853 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
14854 },
14855
14856 {
14857 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014858 .name = "M50LPW116",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014859 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014860 .manufacture_id = ST_ID,
14861 .model_id = ST_M50LPW116,
14862 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000014863 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014864 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014865 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000014866 .probe = probe_82802ab,
Udu Ogahc04ee222009-09-05 01:31:32 +000014867 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014868 .block_erasers =
14869 {
14870 {
14871 .eraseblocks = {
14872 {4 * 1024, 16},
14873 {64 * 1024, 30},
14874 {32 * 1024, 1},
14875 {8 * 1024, 2},
14876 {16 * 1024, 1},
14877 },
Sean Nelson28accc22010-03-19 18:47:06 +000014878 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014879 }
14880 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014881 .printlock = printlock_regspace2_block_eraser_0,
14882 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000014883 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014884 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014885 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014886 },
14887
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014888 {
Konstantin Grudnev3d8868c2019-07-23 00:48:54 +030014889 .vendor = "ST",
14890 .name = "M95M02",
14891 .bustype = BUS_SPI,
14892 .manufacture_id = ST_ID,
14893 .model_id = ST_M95M02,
14894 .total_size = 256,
14895 .page_size = 256,
14896 .feature_bits = FEATURE_WRSR_WREN | FEATURE_NO_ERASE | FEATURE_ERASED_ZERO,
14897 .tested = TEST_OK_PREW,
14898 .probe = probe_spi_st95,
14899 .probe_timing = TIMING_ZERO,
14900 .block_erasers =
14901 {
14902 {
14903 .eraseblocks = { {256 * 1024, 1} },
14904 .block_erase = spi_block_erase_emulation,
14905 }
14906 },
14907
14908 .printlock = spi_prettyprint_status_register_bp1_srwd,
14909 .unlock = spi_disable_blockprotect_bp1_srwd,
14910 .write = spi_chip_write_256,
14911 .read = spi_chip_read,
14912 .voltage = {2500, 5500},
14913 },
14914
14915 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014916 .vendor = "Sanyo",
14917 .name = "LE25FU106B",
14918 .bustype = BUS_SPI,
14919 .manufacture_id = SANYO_ID,
14920 .model_id = SANYO_LE25FU106B,
14921 .total_size = 128,
14922 .page_size = 256,
14923 .feature_bits = FEATURE_WRSR_WREN,
14924 .tested = TEST_UNTESTED,
14925 .probe = probe_spi_res2,
14926 .probe_timing = TIMING_ZERO,
14927 .block_erasers =
14928 {
14929 /* FIXME: Is this correct?
14930 {
14931 .eraseblocks = { {2 * 1024, 64} },
14932 .block_erase = spi_block_erase_d7,
14933 },*/
14934 {
14935 .eraseblocks = { {32 * 1024, 4} },
14936 .block_erase = spi_block_erase_d8,
14937 }, {
14938 .eraseblocks = { {128 * 1024, 1} },
14939 .block_erase = spi_block_erase_c7,
14940 }
14941 },
14942 .printlock = spi_prettyprint_status_register_bp1_srwd,
14943 .unlock = spi_disable_blockprotect_bp1_srwd,
14944 .write = spi_chip_write_256,
14945 .read = spi_chip_read,
14946 .voltage = {2300, 3600},
14947 },
14948
14949 {
14950 .vendor = "Sanyo",
14951 .name = "LE25FU206",
14952 .bustype = BUS_SPI,
14953 .manufacture_id = SANYO_ID,
14954 .model_id = SANYO_LE25FU206,
14955 .total_size = 256,
14956 .page_size = 256,
14957 .feature_bits = FEATURE_WRSR_WREN,
14958 .tested = TEST_UNTESTED,
14959 .probe = probe_spi_res2,
14960 .probe_timing = TIMING_ZERO,
14961 .block_erasers =
14962 {
14963 {
14964 .eraseblocks = { {4 * 1024, 64} },
14965 .block_erase = spi_block_erase_d7,
14966 }, {
14967 .eraseblocks = { {64 * 1024, 4} },
14968 .block_erase = spi_block_erase_d8,
14969 }, {
14970 .eraseblocks = { {256 * 1024, 1} },
14971 .block_erase = spi_block_erase_c7,
14972 }
14973 },
14974 .printlock = spi_prettyprint_status_register_bp1_srwd,
14975 .unlock = spi_disable_blockprotect_bp1_srwd,
14976 .write = spi_chip_write_256,
14977 .read = spi_chip_read,
14978 .voltage = {2300, 3600},
14979 },
14980
14981 {
14982 .vendor = "Sanyo",
14983 .name = "LE25FU206A",
14984 .bustype = BUS_SPI,
14985 .manufacture_id = SANYO_ID,
14986 .model_id = SANYO_LE25FU206A,
14987 .total_size = 256,
14988 .page_size = 256,
14989 .tested = TEST_UNTESTED,
14990 .probe = probe_spi_rdid,
14991 .probe_timing = TIMING_ZERO,
14992 .block_erasers =
14993 {
14994 {
14995 .eraseblocks = { {4 * 1024, 64} },
14996 .block_erase = spi_block_erase_20,
14997 }, {
14998 .eraseblocks = { {4 * 1024, 64} },
14999 .block_erase = spi_block_erase_d7,
15000 }, {
15001 .eraseblocks = { {64 * 1024, 4} },
15002 .block_erase = spi_block_erase_d8,
15003 }, {
15004 .eraseblocks = { {256 * 1024, 1} },
15005 .block_erase = spi_block_erase_60,
15006 }, {
15007 .eraseblocks = { {256 * 1024, 1} },
15008 .block_erase = spi_block_erase_c7,
15009 }
15010 },
15011 .printlock = spi_prettyprint_status_register_bp2_srwd,
15012 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
15013 .write = spi_chip_write_256,
15014 .read = spi_chip_read,
15015 .voltage = {2300, 3600},
15016 },
15017
15018 {
15019 .vendor = "Sanyo",
15020 .name = "LE25FU406B",
15021 .bustype = BUS_SPI,
15022 .manufacture_id = SANYO_ID,
15023 .model_id = SANYO_LE25FU406B,
15024 .total_size = 512,
15025 .page_size = 256,
15026 .feature_bits = FEATURE_WRSR_WREN,
15027 .tested = TEST_OK_PREW,
15028 .probe = probe_spi_res2,
15029 .probe_timing = TIMING_ZERO,
15030 .block_erasers =
15031 {
15032 {
15033 .eraseblocks = { {4 * 1024, 128} },
15034 .block_erase = spi_block_erase_d7,
15035 }, {
15036 .eraseblocks = { {64 * 1024, 8} },
15037 .block_erase = spi_block_erase_d8,
15038 }, {
15039 .eraseblocks = { {512 * 1024, 1} },
15040 .block_erase = spi_block_erase_c7,
15041 }
15042 },
15043 .printlock = spi_prettyprint_status_register_bp2_srwd,
15044 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
15045 .write = spi_chip_write_256,
15046 .read = spi_chip_read,
15047 .voltage = {2300, 3600},
15048 },
15049
15050 {
15051 .vendor = "Sanyo",
15052 .name = "LE25FU406C/LE25U40CMC",
15053 .bustype = BUS_SPI,
15054 .manufacture_id = SANYO_ID,
15055 .model_id = SANYO_LE25FU406C,
15056 .total_size = 512,
15057 .page_size = 256,
15058 .feature_bits = FEATURE_WRSR_WREN,
15059 .tested = TEST_OK_PREW,
15060 .probe = probe_spi_rdid,
15061 .probe_timing = TIMING_ZERO,
15062 .block_erasers =
15063 {
15064 {
15065 .eraseblocks = { {4 * 1024, 128} },
15066 .block_erase = spi_block_erase_20,
15067 }, {
15068 .eraseblocks = { {4 * 1024, 128} },
15069 .block_erase = spi_block_erase_d7,
15070 }, {
15071 .eraseblocks = { {64 * 1024, 8} },
15072 .block_erase = spi_block_erase_d8,
15073 }, {
15074 .eraseblocks = { {512 * 1024, 1} },
15075 .block_erase = spi_block_erase_60,
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_bp2_srwd,
15083 .write = spi_chip_write_256,
15084 .read = spi_chip_read, /* Fast read (0x0B), dual read (0x3B) and dual I/O (0xBB) supported */
15085 .voltage = {2300, 3600},
15086 },
15087
15088 {
15089 .vendor = "Sanyo",
15090 .name = "LE25FW106",
15091 .bustype = BUS_SPI,
15092 .manufacture_id = SANYO_ID,
15093 .model_id = SANYO_LE25FW106,
15094 .total_size = 128,
15095 .page_size = 256,
15096 .feature_bits = FEATURE_WRSR_WREN,
15097 .tested = TEST_OK_PREW,
15098 .probe = probe_spi_res2,
15099 .probe_timing = TIMING_ZERO,
15100 .block_erasers =
15101 {
15102 {
15103 .eraseblocks = { {2 * 1024, 64} },
15104 .block_erase = spi_block_erase_d7,
15105 }, {
15106 .eraseblocks = { {32 * 1024, 4} },
15107 .block_erase = spi_block_erase_d8,
15108 }, {
15109 .eraseblocks = { {128 * 1024, 1} },
15110 .block_erase = spi_block_erase_c7,
15111 }
15112 },
15113 .printlock = spi_prettyprint_status_register_bp1_srwd, /* FIXME: Add ERSER error flag. */
15114 .unlock = spi_disable_blockprotect_bp1_srwd,
15115 .write = spi_chip_write_256,
15116 .read = spi_chip_read,
15117 .voltage = {2700, 3600},
15118 },
15119
15120 {
15121 .vendor = "Sanyo",
15122 .name = "LE25FW203A",
15123 .bustype = BUS_SPI,
15124 .manufacture_id = SANYO_ID,
15125 .model_id = SANYO_LE25FW203A,
15126 .total_size = 256,
15127 .page_size = 256,
15128 .tested = TEST_UNTESTED,
15129 .probe = probe_spi_rdid,
15130 .probe_timing = TIMING_ZERO,
15131 .block_erasers =
15132 {
15133 {
15134 .eraseblocks = { {256, 1024} },
15135 .block_erase = spi_block_erase_db,
15136 }, {
15137 .eraseblocks = { {64 * 1024, 4} },
15138 .block_erase = spi_block_erase_d8,
15139 }, {
15140 .eraseblocks = { {256 * 1024, 1} },
15141 .block_erase = spi_block_erase_c7,
15142 }
15143 },
15144 .printlock = spi_prettyprint_status_register_default_welwip,
15145 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
15146 .write = spi_chip_write_256,
15147 .read = spi_chip_read,
15148 .voltage = {2700, 3600},
15149 },
15150
15151 {
15152 .vendor = "Sanyo",
15153 .name = "LE25FW403A",
15154 .bustype = BUS_SPI,
15155 .manufacture_id = SANYO_ID,
15156 .model_id = SANYO_LE25FW403A,
15157 .total_size = 512,
15158 .page_size = 256,
15159 .tested = TEST_UNTESTED,
15160 .probe = probe_spi_rdid,
15161 .probe_timing = TIMING_ZERO,
15162 .block_erasers =
15163 {
15164 {
15165 .eraseblocks = { {256, 2 * 1024} },
15166 .block_erase = spi_block_erase_db,
15167 }, {
15168 .eraseblocks = { {64 * 1024, 8} },
15169 .block_erase = spi_block_erase_d8,
15170 }, {
15171 .eraseblocks = { {512 * 1024, 1} },
15172 .block_erase = spi_block_erase_c7,
15173 }
15174 },
15175 .printlock = spi_prettyprint_status_register_default_welwip,
15176 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
15177 .write = spi_chip_write_256,
15178 .read = spi_chip_read,
15179 .voltage = {2700, 3600},
15180 },
15181
15182 {
15183 .vendor = "Sanyo",
15184 .name = "LE25FW406A",
15185 .bustype = BUS_SPI,
15186 .manufacture_id = SANYO_ID,
15187 .model_id = SANYO_LE25FW406A,
15188 .total_size = 512,
15189 .page_size = 256,
15190 .feature_bits = FEATURE_WRSR_WREN,
15191 .tested = TEST_OK_PREW,
15192 .probe = probe_spi_res2,
15193 .probe_timing = TIMING_ZERO,
15194 .block_erasers =
15195 {
15196 {
15197 .eraseblocks = { {4 * 1024, 128} },
15198 .block_erase = spi_block_erase_d7,
15199 }, {
15200 .eraseblocks = { {64 * 1024, 8} },
15201 .block_erase = spi_block_erase_d8,
15202 }, {
15203 .eraseblocks = { {512 * 1024, 1} },
15204 .block_erase = spi_block_erase_c7,
15205 }
15206 },
15207 .printlock = spi_prettyprint_status_register_plain,
15208 .unlock = spi_disable_blockprotect,
15209 .write = spi_chip_write_256,
15210 .read = spi_chip_read,
15211 .voltage = {2700, 3600},
15212 },
15213
15214 {
15215 .vendor = "Sanyo",
15216 .name = "LE25FW418A",
15217 .bustype = BUS_SPI,
15218 .manufacture_id = SANYO_ID,
15219 .model_id = SANYO_LE25FW418A,
15220 .total_size = 512,
15221 .page_size = 256,
15222 .feature_bits = FEATURE_WRSR_WREN,
15223 .tested = TEST_UNTESTED,
15224 .probe = probe_spi_res2,
15225 .probe_timing = TIMING_ZERO,
15226 .block_erasers =
15227 {
15228 {
15229 .eraseblocks = { {4 * 1024, 128} },
15230 .block_erase = spi_block_erase_d7,
15231 }, {
15232 .eraseblocks = { {64 * 1024, 8} },
15233 .block_erase = spi_block_erase_d8,
15234 }, {
15235 .eraseblocks = { {512 * 1024, 1} },
15236 .block_erase = spi_block_erase_c7,
15237 }
15238 },
15239 .printlock = spi_prettyprint_status_register_bp2_srwd,
15240 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
15241 .write = spi_chip_write_256,
15242 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
15243 .voltage = {2700, 3600},
15244 },
15245
15246 {
15247 .vendor = "Sanyo",
15248 .name = "LE25FW806",
15249 .bustype = BUS_SPI,
15250 .manufacture_id = SANYO_ID,
15251 .model_id = SANYO_LE25FW806,
15252 .total_size = 1024,
15253 .page_size = 256,
15254 .feature_bits = FEATURE_WRSR_WREN,
15255 .tested = TEST_UNTESTED,
15256 .probe = probe_spi_res2,
15257 .probe_timing = TIMING_ZERO,
15258 .block_erasers =
15259 {
15260 {
15261 .eraseblocks = { {4 * 1024, 256} },
15262 .block_erase = spi_block_erase_20,
15263 }, {
15264 .eraseblocks = { {4 * 1024, 256} },
15265 .block_erase = spi_block_erase_d7,
15266 }, {
15267 .eraseblocks = { {64 * 1024, 16} },
15268 .block_erase = spi_block_erase_d8,
15269 }, {
15270 .eraseblocks = { {1024 * 1024, 1} },
15271 .block_erase = spi_block_erase_c7,
15272 }
15273 },
15274 .printlock = spi_prettyprint_status_register_bp2_srwd,
15275 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
15276 .write = spi_chip_write_256,
15277 .read = spi_chip_read,
15278 .voltage = {2700, 3600},
15279 },
15280
15281 {
15282 .vendor = "Sanyo",
15283 .name = "LE25FW808",
15284 .bustype = BUS_SPI,
15285 .manufacture_id = SANYO_ID,
15286 .model_id = SANYO_LE25FW808,
15287 .total_size = 1024,
15288 .page_size = 256,
15289 .feature_bits = FEATURE_WRSR_WREN,
15290 .tested = TEST_UNTESTED,
15291 .probe = probe_spi_res2,
15292 .probe_timing = TIMING_ZERO,
15293 .block_erasers =
15294 {
15295 {
15296 .eraseblocks = { {8 * 1024, 128} },
15297 .block_erase = spi_block_erase_d7,
15298 }, {
15299 .eraseblocks = { {64 * 1024, 16} },
15300 .block_erase = spi_block_erase_d8,
15301 }, {
15302 .eraseblocks = { {1024 * 1024, 1} },
15303 .block_erase = spi_block_erase_c7,
15304 }
15305 },
15306 .printlock = spi_prettyprint_status_register_bp2_srwd,
15307 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
15308 .write = spi_chip_write_256,
15309 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
15310 .voltage = {2700, 3600},
15311 },
15312
15313 {
15314 .vendor = "Sharp",
15315 .name = "LH28F008BJT-BTLZ1",
15316 .bustype = BUS_PARALLEL,
15317 .manufacture_id = SHARP_ID,
15318 .model_id = SHARP_LH28F008BJ__PB,
15319 .total_size = 1024,
15320 .page_size = 64 * 1024,
15321 .tested = TEST_OK_PREW,
15322 .probe = probe_82802ab,
15323 .probe_timing = TIMING_ZERO,
15324 .block_erasers =
15325 {
15326 {
15327 .eraseblocks = {
15328 {8 * 1024, 8},
15329 {64 * 1024, 15}
15330 },
15331 .block_erase = erase_block_82802ab,
15332 }, {
15333 .eraseblocks = { {1024 * 1024, 1} },
15334 .block_erase = erase_sector_49lfxxxc,
15335 }
15336 },
15337 .unlock = unlock_lh28f008bjt,
15338 .write = write_82802ab,
15339 .read = read_memmapped,
15340 .voltage = {2700, 3600},
15341 },
15342
15343 {
15344 .vendor = "Sharp",
15345 .name = "LHF00L04",
15346 .bustype = BUS_FWH, /* A/A Mux */
15347 .manufacture_id = SHARP_ID,
15348 .model_id = SHARP_LHF00L04,
15349 .total_size = 1024,
15350 .page_size = 64 * 1024,
15351 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
15352 .tested = TEST_UNTESTED,
15353 .probe = probe_82802ab,
15354 .probe_timing = TIMING_ZERO,
15355 .block_erasers =
15356 {
15357 {
15358 .eraseblocks = {
15359 {64 * 1024, 15},
15360 {8 * 1024, 8}
15361 },
15362 .block_erase = erase_block_82802ab,
15363 }, {
15364 .eraseblocks = {
15365 {1024 * 1024, 1}
15366 },
15367 .block_erase = NULL, /* 30 D0, only in A/A mux mode */
15368 },
15369 },
15370 .unlock = unlock_regspace2_uniform_64k,
15371 .write = write_82802ab,
15372 .read = read_memmapped,
15373 .voltage = {3000, 3600},
15374 },
15375
15376 {
15377 .vendor = "Spansion",
15378 .name = "S25FL004A",
15379 .bustype = BUS_SPI,
15380 .manufacture_id = SPANSION_ID,
15381 .model_id = SPANSION_S25FL004A,
15382 .total_size = 512,
15383 .page_size = 256,
15384 .feature_bits = FEATURE_WRSR_WREN,
15385 .tested = TEST_UNTESTED,
15386 .probe = probe_spi_rdid,
15387 .probe_timing = TIMING_ZERO,
15388 .block_erasers =
15389 {
15390 {
15391 .eraseblocks = { {64 * 1024, 8} },
15392 .block_erase = spi_block_erase_d8,
15393 }, {
15394 .eraseblocks = { {512 * 1024, 1} },
15395 .block_erase = spi_block_erase_c7,
15396 }
15397 },
15398 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15399 .unlock = spi_disable_blockprotect,
15400 .write = spi_chip_write_256,
15401 .read = spi_chip_read,
15402 .voltage = {2700, 3600},
15403 },
15404
15405 {
15406 .vendor = "Spansion",
15407 .name = "S25FL008A",
15408 .bustype = BUS_SPI,
15409 .manufacture_id = SPANSION_ID,
15410 .model_id = SPANSION_S25FL008A,
15411 .total_size = 1024,
15412 .page_size = 256,
15413 .feature_bits = FEATURE_WRSR_WREN,
15414 .tested = TEST_OK_PRE,
15415 .probe = probe_spi_rdid,
15416 .probe_timing = TIMING_ZERO,
15417 .block_erasers =
15418 {
15419 {
15420 .eraseblocks = { {64 * 1024, 16} },
15421 .block_erase = spi_block_erase_d8,
15422 }, {
15423 .eraseblocks = { {1024 * 1024, 1} },
15424 .block_erase = spi_block_erase_c7,
15425 }
15426 },
15427 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15428 .unlock = spi_disable_blockprotect,
15429 .write = spi_chip_write_256,
15430 .read = spi_chip_read,
15431 .voltage = {2700, 3600},
15432 },
15433
15434 {
15435 .vendor = "Spansion",
15436 .name = "S25FL016A",
15437 .bustype = BUS_SPI,
15438 .manufacture_id = SPANSION_ID,
15439 .model_id = SPANSION_S25FL016A,
15440 .total_size = 2048,
15441 .page_size = 256,
15442 .feature_bits = FEATURE_WRSR_WREN,
15443 .tested = TEST_OK_PREW,
15444 .probe = probe_spi_rdid,
15445 .probe_timing = TIMING_ZERO,
15446 .block_erasers =
15447 {
15448 {
15449 .eraseblocks = { {64 * 1024, 32} },
15450 .block_erase = spi_block_erase_d8,
15451 }, {
15452 .eraseblocks = { {2 * 1024 * 1024, 1} },
15453 .block_erase = spi_block_erase_c7,
15454 }
15455 },
15456 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15457 .unlock = spi_disable_blockprotect,
15458 .write = spi_chip_write_256,
15459 .read = spi_chip_read,
15460 .voltage = {2700, 3600},
15461 },
15462
15463 {
15464 .vendor = "Spansion",
15465 .name = "S25FL032A/P",
15466 .bustype = BUS_SPI,
15467 .manufacture_id = SPANSION_ID,
15468 .model_id = SPANSION_S25FL032A,
15469 .total_size = 4096,
15470 .page_size = 256,
15471 .feature_bits = FEATURE_WRSR_WREN,
15472 .tested = TEST_OK_PREW,
15473 .probe = probe_spi_rdid,
15474 .probe_timing = TIMING_ZERO,
15475 .block_erasers =
15476 {
15477 {
15478 .eraseblocks = { {64 * 1024, 64} },
15479 .block_erase = spi_block_erase_d8,
15480 }, {
15481 .eraseblocks = { {4 * 1024 * 1024, 1} },
15482 .block_erase = spi_block_erase_c7,
15483 }
15484 },
15485 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15486 .unlock = spi_disable_blockprotect,
15487 .write = spi_chip_write_256,
15488 .read = spi_chip_read,
15489 .voltage = {2700, 3600},
15490 },
15491
15492 {
15493 .vendor = "Spansion",
15494 .name = "S25FL064A/P",
15495 .bustype = BUS_SPI,
15496 .manufacture_id = SPANSION_ID,
15497 .model_id = SPANSION_S25FL064A,
15498 .total_size = 8192,
15499 .page_size = 256,
15500 .feature_bits = FEATURE_WRSR_WREN,
15501 .tested = TEST_OK_PREW,
15502 .probe = probe_spi_rdid,
15503 .probe_timing = TIMING_ZERO,
15504 .block_erasers =
15505 {
15506 {
15507 .eraseblocks = { {64 * 1024, 128} },
15508 .block_erase = spi_block_erase_d8,
15509 }, {
15510 .eraseblocks = { {8 * 1024 * 1024, 1} },
15511 .block_erase = spi_block_erase_c7,
15512 }
15513 },
15514 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15515 .unlock = spi_disable_blockprotect,
15516 .write = spi_chip_write_256,
15517 .read = spi_chip_read,
15518 .voltage = {2700, 3600},
15519 },
15520
15521 {
15522 .vendor = "Spansion",
15523 .name = "S25FL116K/S25FL216K", /* FIXME: separate them */
15524 .bustype = BUS_SPI,
15525 .manufacture_id = SPANSION_ID,
15526 .model_id = SPANSION_S25FL216,
15527 .total_size = 2048,
15528 .page_size = 256,
15529 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (S25FL116K only) */
15530 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
15531 .tested = TEST_UNTESTED,
15532 .probe = probe_spi_rdid,
15533 .probe_timing = TIMING_ZERO,
15534 .block_erasers =
15535 {
15536 {
15537 .eraseblocks = { {4 * 1024, 512} },
15538 .block_erase = spi_block_erase_20,
15539 }, {
15540 .eraseblocks = { {64 * 1024, 32} },
15541 .block_erase = spi_block_erase_d8,
15542 }, {
15543 .eraseblocks = { { 2048 * 1024, 1} },
15544 .block_erase = spi_block_erase_60,
15545 }, {
15546 .eraseblocks = { { 2048 * 1024, 1} },
15547 .block_erase = spi_block_erase_c7,
15548 }
15549 },
15550 .printlock = spi_prettyprint_status_register_bp3_srwd,
15551 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
15552 .write = spi_chip_write_256,
15553 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
15554 .voltage = {2700, 3600},
15555 },
15556
15557 {
15558 .vendor = "Spansion",
15559 .name = "S25FL127S-256kB", /* uniform 256kB sectors */
15560 .bustype = BUS_SPI,
15561 .manufacture_id = SPANSION_ID,
15562 .model_id = SPANSION_S25FL128,
15563 .total_size = 16384,
15564 .page_size = 512,
15565 /* supports 4B addressing */
15566 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
15567 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
15568 .tested = TEST_UNTESTED,
15569 .probe = probe_spi_rdid,
15570 .probe_timing = TIMING_ZERO,
15571 .block_erasers =
15572 {
15573 {
15574 .eraseblocks = { {256 * 1024, 64} },
15575 .block_erase = spi_block_erase_d8,
15576 }, {
15577 .eraseblocks = { { 16384 * 1024, 1} },
15578 .block_erase = spi_block_erase_60,
15579 }, {
15580 .eraseblocks = { { 16384 * 1024, 1} },
15581 .block_erase = spi_block_erase_c7,
15582 }
15583 },
15584 .printlock = spi_prettyprint_status_register_bp2_srwd,
15585 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
15586 .write = spi_chip_write_256, /* Multi I/O supported */
15587 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
15588 .voltage = {2700, 3600},
15589 },
15590
15591 {
15592 .vendor = "Spansion",
15593 .name = "S25FL127S-64kB", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
15594 .bustype = BUS_SPI,
15595 .manufacture_id = SPANSION_ID,
15596 .model_id = SPANSION_S25FL128,
15597 .total_size = 16384,
15598 .page_size = 256,
15599 /* supports 4B addressing */
15600 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
15601 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
15602 .tested = TEST_OK_PREW,
15603 /* FIXME: we should distinguish the configuration on probing time like we do for AT45DB chips */
15604 .probe = probe_spi_rdid,
15605 .probe_timing = TIMING_ZERO,
15606 .block_erasers =
15607 {
15608 {
15609 /* This chip supports erasing of 32 so-called "parameter sectors" with
15610 * opcode 0x20 which may be configured to be on top or bottom of the address
15611 * space. Trying to access an address outside these 4kB blocks does have no
15612 * effect on the memory contents, e.g.
15613 .eraseblocks = {
15614 {4 * 1024, 32},
15615 {64 * 1024, 254} // inaccessible
15616 },
15617 .block_erase = spi_block_erase_20,
15618 }, { */
15619 .eraseblocks = { { 64 * 1024, 256} },
15620 .block_erase = spi_block_erase_d8,
15621 }, {
15622 .eraseblocks = { { 16384 * 1024, 1} },
15623 .block_erase = spi_block_erase_60,
15624 }, {
15625 .eraseblocks = { { 16384 * 1024, 1} },
15626 .block_erase = spi_block_erase_c7,
15627 }
15628 },
15629 .printlock = spi_prettyprint_status_register_bp2_srwd,
15630 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
15631 .write = spi_chip_write_256, /* Multi I/O supported */
15632 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
15633 .voltage = {2700, 3600},
15634 },
15635
15636 {
15637 .vendor = "Spansion",
15638 .name = "S25FL128P......0", /* uniform 64 kB sectors */
15639 .bustype = BUS_SPI,
15640 .manufacture_id = SPANSION_ID,
15641 .model_id = SPANSION_S25FL128,
15642 .total_size = 16384,
15643 .page_size = 256,
15644 .feature_bits = FEATURE_WRSR_WREN,
15645 .tested = TEST_OK_PREW,
15646 .probe = probe_spi_rdid,
15647 .probe_timing = TIMING_ZERO,
15648 .block_erasers =
15649 {
15650 {
15651 .eraseblocks = { {64 * 1024, 256} },
15652 .block_erase = spi_block_erase_20,
15653 }, {
15654 .eraseblocks = { {64 * 1024, 256} },
15655 .block_erase = spi_block_erase_d8,
15656 }, {
15657 .eraseblocks = { { 16384 * 1024, 1} },
15658 .block_erase = spi_block_erase_60,
15659 }, {
15660 .eraseblocks = { { 16384 * 1024, 1} },
15661 .block_erase = spi_block_erase_c7,
15662 }
15663 },
15664 .printlock = spi_prettyprint_status_register_bp3_srwd,
15665 .unlock = spi_disable_blockprotect_bp3_srwd,
15666 .write = spi_chip_write_256,
15667 .read = spi_chip_read, /* Fast read (0x0B) supported */
15668 .voltage = {2700, 3600},
15669 },
15670
15671 {
15672 .vendor = "Spansion",
15673 .name = "S25FL128P......1", /* uniform 256kB sectors */
15674 .bustype = BUS_SPI,
15675 .manufacture_id = SPANSION_ID,
15676 .model_id = SPANSION_S25FL128,
15677 .total_size = 16384,
15678 .page_size = 256,
15679 .feature_bits = FEATURE_WRSR_WREN,
15680 .tested = TEST_UNTESTED,
15681 .probe = probe_spi_rdid,
15682 .probe_timing = TIMING_ZERO,
15683 .block_erasers =
15684 {
15685 {
15686 .eraseblocks = { {256 * 1024, 64} },
15687 .block_erase = spi_block_erase_d8,
15688 }, {
15689 .eraseblocks = { { 16384 * 1024, 1} },
15690 .block_erase = spi_block_erase_c7,
15691 }
15692 },
15693 .printlock = spi_prettyprint_status_register_bp2_srwd,
15694 .unlock = spi_disable_blockprotect_bp2_srwd,
15695 .write = spi_chip_write_256,
15696 .read = spi_chip_read, /* Fast read (0x0B) supported */
15697 .voltage = {2700, 3600},
15698 },
15699
15700 {
15701 .vendor = "Spansion",
15702 .name = "S25FL128S......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
15703 .bustype = BUS_SPI,
15704 .manufacture_id = SPANSION_ID,
15705 .model_id = SPANSION_S25FL128,
15706 .total_size = 16384,
15707 .page_size = 256,
15708 /* supports 4B addressing */
15709 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
15710 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
15711 .tested = TEST_OK_PREW,
15712 .probe = probe_spi_rdid,
15713 .probe_timing = TIMING_ZERO,
15714 .block_erasers =
15715 {
15716 {
15717 /* This chip supports erasing of the 32 so-called "parameter sectors" with
15718 * opcode 0x20. Trying to access an address outside these 4kB blocks does
15719 * have no effect on the memory contents, but sets a flag in the SR.
15720 .eraseblocks = {
15721 {4 * 1024, 32},
15722 {64 * 1024, 254} // inaccessible
15723 },
15724 .block_erase = spi_block_erase_20,
15725 }, { */
15726 .eraseblocks = { { 64 * 1024, 256} },
15727 .block_erase = spi_block_erase_d8,
15728 }, {
15729 .eraseblocks = { { 16384 * 1024, 1} },
15730 .block_erase = spi_block_erase_60,
15731 }, {
15732 .eraseblocks = { { 16384 * 1024, 1} },
15733 .block_erase = spi_block_erase_c7,
15734 }
15735 },
15736 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
15737 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
15738 .write = spi_chip_write_256, /* Multi I/O supported */
15739 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
15740 .voltage = {2700, 3600},
15741 },
15742
15743 {
15744 .vendor = "Spansion",
15745 .name = "S25FL128S......1", /* uniform 256 kB sectors */
15746 .bustype = BUS_SPI,
15747 .manufacture_id = SPANSION_ID,
15748 .model_id = SPANSION_S25FL128,
15749 .total_size = 16384,
15750 .page_size = 512,
15751 /* supports 4B addressing */
15752 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
15753 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
15754 .tested = TEST_UNTESTED,
15755 .probe = probe_spi_rdid,
15756 .probe_timing = TIMING_ZERO,
15757 .block_erasers =
15758 {
15759 {
15760 .eraseblocks = { {256 * 1024, 64} },
15761 .block_erase = spi_block_erase_d8,
15762 }, {
15763 .eraseblocks = { { 16384 * 1024, 1} },
15764 .block_erase = spi_block_erase_60,
15765 }, {
15766 .eraseblocks = { { 16384 * 1024, 1} },
15767 .block_erase = spi_block_erase_c7,
15768 }
15769 },
15770 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
15771 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
15772 .write = spi_chip_write_256, /* Multi I/O supported */
15773 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
15774 .voltage = {2700, 3600},
15775 },
15776
15777 {
15778 .vendor = "Spansion",
15779 .name = "S25FL129P......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
15780 .bustype = BUS_SPI,
15781 .manufacture_id = SPANSION_ID,
15782 .model_id = SPANSION_S25FL128,
15783 .total_size = 16384,
15784 .page_size = 256,
15785 /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */
15786 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
15787 .tested = TEST_OK_PREW,
15788 .probe = probe_spi_rdid,
15789 .probe_timing = TIMING_ZERO,
15790 .block_erasers =
15791 {
15792 {
15793 /* FIXME: This chip supports erasing of the 32 so-called "parameter sectors" with
15794 * opcode 0x20. Trying to access an address outside these 4kB blocks does have no
15795 * effect on the memory contents, but sets a flag in the SR.
15796 .eraseblocks = {
15797 {4 * 1024, 32},
15798 {64 * 1024, 254} // inaccessible
15799 },
15800 .block_erase = spi_block_erase_20,
15801 }, { */
15802 /* FIXME: Additionally it also supports erase opcode 40h for the respective 2*4 kB pairs
15803 .eraseblocks = {
15804 {8 * 1024, 16},
15805 {64 * 1024, 254} // inaccessible
15806 },
15807 .block_erase = spi_block_erase_40,
15808 }, { */
15809 .eraseblocks = { { 64 * 1024, 256} },
15810 .block_erase = spi_block_erase_d8,
15811 }, {
15812 .eraseblocks = { { 16384 * 1024, 1} },
15813 .block_erase = spi_block_erase_60,
15814 }, {
15815 .eraseblocks = { { 16384 * 1024, 1} },
15816 .block_erase = spi_block_erase_c7,
15817 }
15818 },
15819 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */
15820 .unlock = spi_disable_blockprotect_bp2_srwd,
15821 .write = spi_chip_write_256, /* Multi I/O supported */
15822 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
15823 .voltage = {2700, 3600},
15824 },
15825
15826 {
15827 .vendor = "Spansion",
15828 .name = "S25FL129P......1", /* uniform 256 kB sectors */
15829 .bustype = BUS_SPI,
15830 .manufacture_id = SPANSION_ID,
15831 .model_id = SPANSION_S25FL128,
15832 .total_size = 16384,
15833 .page_size = 256,
15834 /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */
15835 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
15836 .tested = TEST_UNTESTED,
15837 .probe = probe_spi_rdid,
15838 .probe_timing = TIMING_ZERO,
15839 .block_erasers =
15840 {
15841 {
15842 .eraseblocks = { {256 * 1024, 64} },
15843 .block_erase = spi_block_erase_d8,
15844 }, {
15845 .eraseblocks = { { 16384 * 1024, 1} },
15846 .block_erase = spi_block_erase_60,
15847 }, {
15848 .eraseblocks = { { 16384 * 1024, 1} },
15849 .block_erase = spi_block_erase_c7,
15850 }
15851 },
15852 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */
15853 .unlock = spi_disable_blockprotect_bp2_srwd,
15854 .write = spi_chip_write_256, /* Multi I/O supported */
15855 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
15856 .voltage = {2700, 3600},
15857 },
15858
15859 {
15860 .vendor = "Spansion",
15861 .name = "S25FL132K",
15862 .bustype = BUS_SPI,
15863 .manufacture_id = SPANSION_ID,
15864 .model_id = SPANSION_S25FL132K,
15865 .total_size = 4096,
15866 .page_size = 256,
15867 /* OTP: 768B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
15868 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
15869 .tested = TEST_UNTESTED,
15870 .probe = probe_spi_rdid,
15871 .probe_timing = TIMING_ZERO,
15872 .block_erasers =
15873 {
15874 {
15875 .eraseblocks = { {4 * 1024, 1024} },
15876 .block_erase = spi_block_erase_20,
15877 }, {
15878 .eraseblocks = { {64 * 1024, 64} },
15879 .block_erase = spi_block_erase_d8,
15880 }, {
15881 .eraseblocks = { { 4096 * 1024, 1} },
15882 .block_erase = spi_block_erase_60,
15883 }, {
15884 .eraseblocks = { { 4096 * 1024, 1} },
15885 .block_erase = spi_block_erase_c7,
15886 }
15887 },
15888 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
15889 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
15890 .write = spi_chip_write_256,
15891 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
15892 .voltage = {2700, 3600},
15893 },
15894
15895 {
15896 .vendor = "Spansion",
15897 .name = "S25FL164K",
15898 .bustype = BUS_SPI,
15899 .manufacture_id = SPANSION_ID,
15900 .model_id = SPANSION_S25FL164K,
15901 .total_size = 8192,
15902 .page_size = 256,
15903 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
15904 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
15905 .tested = TEST_OK_PREW,
15906 .probe = probe_spi_rdid,
15907 .probe_timing = TIMING_ZERO,
15908 .block_erasers =
15909 {
15910 {
15911 .eraseblocks = { {4 * 1024, 2048} },
15912 .block_erase = spi_block_erase_20,
15913 }, {
15914 .eraseblocks = { {64 * 1024, 128} },
15915 .block_erase = spi_block_erase_d8,
15916 }, {
15917 .eraseblocks = { { 8192 * 1024, 1} },
15918 .block_erase = spi_block_erase_60,
15919 }, {
15920 .eraseblocks = { { 8192 * 1024, 1} },
15921 .block_erase = spi_block_erase_c7,
15922 }
15923 },
15924 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
15925 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
15926 .write = spi_chip_write_256,
15927 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
15928 .voltage = {2700, 3600},
15929 },
15930
15931 {
15932 .vendor = "Spansion",
15933 .name = "S25FL204K",
15934 .bustype = BUS_SPI,
15935 .manufacture_id = SPANSION_ID,
15936 .model_id = SPANSION_S25FL204,
15937 .total_size = 512,
15938 .page_size = 256,
15939 .feature_bits = FEATURE_WRSR_WREN,
15940 .tested = TEST_OK_PR,
15941 .probe = probe_spi_rdid,
15942 .probe_timing = TIMING_ZERO,
15943 .block_erasers =
15944 {
15945 {
15946 .eraseblocks = { {4 * 1024, 128} },
15947 .block_erase = spi_block_erase_20,
15948 }, {
15949 .eraseblocks = { {64 * 1024, 8} },
15950 .block_erase = spi_block_erase_d8,
15951 }, {
15952 .eraseblocks = { { 512 * 1024, 1} },
15953 .block_erase = spi_block_erase_60,
15954 }, {
15955 .eraseblocks = { { 512 * 1024, 1} },
15956 .block_erase = spi_block_erase_c7,
15957 }
15958 },
15959 .printlock = spi_prettyprint_status_register_bp3_srwd,
15960 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
15961 .write = spi_chip_write_256,
15962 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
15963 .voltage = {2700, 3600},
15964 },
15965
15966 {
15967 .vendor = "Spansion",
15968 .name = "S25FL208K",
15969 .bustype = BUS_SPI,
15970 .manufacture_id = SPANSION_ID,
15971 .model_id = SPANSION_S25FL208,
15972 .total_size = 1024,
15973 .page_size = 256,
15974 .feature_bits = FEATURE_WRSR_WREN,
15975 .tested = TEST_OK_PREW,
15976 .probe = probe_spi_rdid,
15977 .probe_timing = TIMING_ZERO,
15978 .block_erasers =
15979 {
15980 {
15981 .eraseblocks = { {4 * 1024, 256} },
15982 .block_erase = spi_block_erase_20,
15983 }, {
15984 .eraseblocks = { {64 * 1024, 16} },
15985 .block_erase = spi_block_erase_d8,
15986 }, {
15987 .eraseblocks = { { 1024 * 1024, 1} },
15988 .block_erase = spi_block_erase_60,
15989 }, {
15990 .eraseblocks = { { 1024 * 1024, 1} },
15991 .block_erase = spi_block_erase_c7,
15992 }
15993 },
15994 .printlock = spi_prettyprint_status_register_bp3_srwd,
15995 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
15996 .write = spi_chip_write_256,
15997 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
15998 .voltage = {2700, 3600},
15999 },
16000
16001 {
16002 .vendor = "Spansion",
16003 .name = "S25FL256S......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
16004 .bustype = BUS_SPI,
16005 .manufacture_id = SPANSION_ID,
16006 .model_id = SPANSION_S25FL256,
16007 .total_size = 32768,
16008 .page_size = 256,
16009 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
16010 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_EAR7,
16011 .tested = TEST_OK_PREW,
16012 .probe = probe_spi_rdid,
16013 .probe_timing = TIMING_ZERO,
16014 .block_erasers =
16015 {
16016 {
16017 /* This chip supports erasing of the 32 so-called "parameter sectors" with
16018 * opcode 0x20. Trying to access an address outside these 4kB blocks does
16019 * have no effect on the memory contents, but sets a flag in the SR.
16020 .eraseblocks = {
16021 {4 * 1024, 32},
16022 {64 * 1024, 254} // inaccessible
16023 },
16024 .block_erase = spi_block_erase_20,
16025 }, { */
16026 .eraseblocks = { { 64 * 1024, 512} },
16027 .block_erase = spi_block_erase_dc,
16028 }, {
16029 .eraseblocks = { { 64 * 1024, 512} },
16030 .block_erase = spi_block_erase_d8,
16031 }, {
16032 .eraseblocks = { { 32768 * 1024, 1} },
16033 .block_erase = spi_block_erase_60,
16034 }, {
16035 .eraseblocks = { { 32768 * 1024, 1} },
16036 .block_erase = spi_block_erase_c7,
16037 }
16038 },
16039 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
16040 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
16041 .write = spi_chip_write_256, /* Multi I/O supported */
16042 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16043 .voltage = {2700, 3600},
16044 .wrea_override = 0x17,
16045 },
16046
16047 {
Bernhard Urban-Forster05c629b2020-02-02 21:29:48 +010016048 .vendor = "Spansion",
16049 .name = "S25FL512S",
16050 .bustype = BUS_SPI,
16051 .manufacture_id = SPANSION_ID,
16052 .model_id = SPANSION_S25FL512,
16053 .total_size = 65536, /* 512 Mb (=> 64 MB)) */
16054 .page_size = 256,
16055 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
16056 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_NATIVE,
16057 .tested = TEST_OK_PREW,
16058 .probe = probe_spi_rdid,
16059 .probe_timing = TIMING_ZERO,
16060 .block_erasers =
16061 {
16062 {
16063 .eraseblocks = { { 256 * 1024, 256} },
16064 .block_erase = spi_block_erase_dc,
16065 }, {
16066 .eraseblocks = { { 65536 * 1024, 1} },
16067 .block_erase = spi_block_erase_60,
16068 }, {
16069 .eraseblocks = { { 65536 * 1024, 1} },
16070 .block_erase = spi_block_erase_c7,
16071 }
16072 },
16073 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
16074 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
16075 .write = spi_chip_write_256, /* Multi I/O supported, IGNORE for now */
16076 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16077 .voltage = {2700, 3600},
16078 },
16079
16080 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000016081 .vendor = "SyncMOS/MoselVitelic",
16082 .name = "{F,S,V}29C51001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016083 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016084 .manufacture_id = SYNCMOS_MVC_ID,
16085 .model_id = SM_MVC_29C51001B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016086 .total_size = 128,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016087 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000016088 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016089 .tested = TEST_UNTESTED,
16090 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000016091 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000016092 .block_erasers =
16093 {
16094 {
16095 .eraseblocks = { {512, 256} },
16096 .block_erase = erase_sector_jedec,
16097 }, {
16098 .eraseblocks = { {128 * 1024, 1} },
16099 .block_erase = erase_chip_block_jedec,
16100 },
16101 },
Sean Nelson35727f72010-01-28 23:55:12 +000016102 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016103 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016104 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000016105 },
16106
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016107 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000016108 .vendor = "SyncMOS/MoselVitelic",
16109 .name = "{F,S,V}29C51001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016110 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016111 .manufacture_id = SYNCMOS_MVC_ID,
16112 .model_id = SM_MVC_29C51001T,
16113 .total_size = 128,
16114 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000016115 .feature_bits = FEATURE_EITHER_RESET,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016116 .tested = TEST_UNTESTED,
16117 .probe = probe_jedec,
16118 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
16119 .block_erasers =
16120 {
16121 {
16122 .eraseblocks = { {512, 256} },
16123 .block_erase = erase_sector_jedec,
16124 }, {
16125 .eraseblocks = { {128 * 1024, 1} },
16126 .block_erase = erase_chip_block_jedec,
16127 },
16128 },
16129 .write = write_jedec_1,
16130 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016131 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000016132 },
16133
16134 {
16135 .vendor = "SyncMOS/MoselVitelic",
16136 .name = "{F,S,V}29C51002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016137 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016138 .manufacture_id = SYNCMOS_MVC_ID,
16139 .model_id = SM_MVC_29C51002B,
16140 .total_size = 256,
16141 .page_size = 512,
16142 .feature_bits = FEATURE_EITHER_RESET,
16143 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016144 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000016145 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000016146 .block_erasers =
16147 {
16148 {
16149 .eraseblocks = { {512, 512} },
16150 .block_erase = erase_sector_jedec,
16151 }, {
16152 .eraseblocks = { {256 * 1024, 1} },
16153 .block_erase = erase_chip_block_jedec,
16154 },
16155 },
Sean Nelson35727f72010-01-28 23:55:12 +000016156 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016157 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000016158 },
16159
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016160 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000016161 .vendor = "SyncMOS/MoselVitelic",
16162 .name = "{F,S,V}29C51002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016163 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016164 .manufacture_id = SYNCMOS_MVC_ID,
16165 .model_id = SM_MVC_29C51002T,
16166 .total_size = 256,
16167 .page_size = 512,
16168 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000016169 .tested = TEST_OK_PREW,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016170 .probe = probe_jedec,
16171 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
16172 .block_erasers =
16173 {
16174 {
16175 .eraseblocks = { {512, 512} },
16176 .block_erase = erase_sector_jedec,
16177 }, {
16178 .eraseblocks = { {256 * 1024, 1} },
16179 .block_erase = erase_chip_block_jedec,
16180 },
16181 },
16182 .write = write_jedec_1,
16183 .read = read_memmapped,
16184 },
16185
16186 {
16187 .vendor = "SyncMOS/MoselVitelic",
16188 .name = "{F,S,V}29C51004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016189 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016190 .manufacture_id = SYNCMOS_MVC_ID,
16191 .model_id = SM_MVC_29C51004B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016192 .total_size = 512,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016193 .page_size = 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000016194 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016195 .tested = TEST_UNTESTED,
16196 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000016197 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +000016198 .block_erasers =
16199 {
16200 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000016201 .eraseblocks = { {1024, 512} },
16202 .block_erase = erase_sector_jedec,
16203 }, {
16204 .eraseblocks = { {512 * 1024, 1} },
16205 .block_erase = erase_chip_block_jedec,
16206 },
16207 },
16208 .write = write_jedec_1,
16209 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016210 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000016211 },
16212
16213 {
16214 .vendor = "SyncMOS/MoselVitelic",
16215 .name = "{F,S,V}29C51004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016216 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016217 .manufacture_id = SYNCMOS_MVC_ID,
16218 .model_id = SM_MVC_29C51004T,
16219 .total_size = 512,
16220 .page_size = 1024,
16221 .feature_bits = FEATURE_EITHER_RESET,
16222 .tested = TEST_UNTESTED,
16223 .probe = probe_jedec,
16224 .probe_timing = TIMING_ZERO,
16225 .block_erasers =
16226 {
16227 {
16228 .eraseblocks = { {1024, 512} },
16229 .block_erase = erase_sector_jedec,
16230 }, {
16231 .eraseblocks = { {512 * 1024, 1} },
16232 .block_erase = erase_chip_block_jedec,
16233 },
16234 },
16235 .write = write_jedec_1,
16236 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016237 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000016238 },
16239
16240 {
16241 .vendor = "SyncMOS/MoselVitelic",
16242 .name = "{S,V}29C31004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016243 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016244 .manufacture_id = SYNCMOS_MVC_ID,
16245 .model_id = SM_MVC_29C31004B,
16246 .total_size = 512,
16247 .page_size = 1024,
16248 .feature_bits = FEATURE_EITHER_RESET,
16249 .tested = TEST_UNTESTED,
16250 .probe = probe_jedec,
16251 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
16252 .block_erasers =
16253 {
16254 {
16255 .eraseblocks = { {1024, 512} },
16256 .block_erase = erase_sector_jedec,
16257 }, {
16258 .eraseblocks = { {512 * 1024, 1} },
16259 .block_erase = erase_chip_block_jedec,
16260 },
16261 },
16262 .write = write_jedec_1,
16263 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016264 .voltage = {3000, 3600},
Mattias Mattsson4c066502010-07-29 20:01:13 +000016265 },
16266
16267 {
16268 .vendor = "SyncMOS/MoselVitelic",
16269 .name = "{S,V}29C31004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016270 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016271 .manufacture_id = SYNCMOS_MVC_ID,
16272 .model_id = SM_MVC_29C31004T,
16273 .total_size = 512,
16274 .page_size = 1024,
16275 .feature_bits = FEATURE_EITHER_RESET,
16276 .tested = TEST_UNTESTED,
16277 .probe = probe_jedec,
16278 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
16279 .block_erasers =
16280 {
16281 {
16282 .eraseblocks = { {1024, 512} },
Sean Nelson56358aa2010-01-19 16:08:51 +000016283 .block_erase = erase_sector_jedec,
16284 }, {
16285 .eraseblocks = { {512 * 1024, 1} },
16286 .block_erase = erase_chip_block_jedec,
16287 },
16288 },
Sean Nelson35727f72010-01-28 23:55:12 +000016289 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016290 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016291 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000016292 },
16293
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016294 {
Uwe Hermanna106d152009-05-27 23:17:40 +000016295 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016296 .name = "TMS29F002RB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016297 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016298 .manufacture_id = TI_OLD_ID,
16299 .model_id = TI_TMS29F002RB,
16300 .total_size = 256,
16301 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000016302 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016303 .tested = TEST_UNTESTED,
16304 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000016305 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000016306 .block_erasers =
16307 {
16308 {
16309 .eraseblocks = {
16310 {16 * 1024, 1},
16311 {8 * 1024, 2},
16312 {32 * 1024, 1},
16313 {64 * 1024, 3},
16314 },
16315 .block_erase = erase_sector_jedec,
16316 }, {
16317 .eraseblocks = { {256 * 1024, 1} },
16318 .block_erase = erase_chip_block_jedec,
16319 },
16320 },
Sean Nelson35727f72010-01-28 23:55:12 +000016321 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016322 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016323 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016324 },
16325
16326 {
Uwe Hermanna106d152009-05-27 23:17:40 +000016327 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016328 .name = "TMS29F002RT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016329 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016330 .manufacture_id = TI_OLD_ID,
16331 .model_id = TI_TMS29F002RT,
16332 .total_size = 256,
16333 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000016334 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016335 .tested = TEST_UNTESTED,
16336 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000016337 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000016338 .block_erasers =
16339 {
16340 {
16341 .eraseblocks = {
16342 {64 * 1024, 3},
16343 {32 * 1024, 1},
16344 {8 * 1024, 2},
16345 {16 * 1024, 1},
16346 },
16347 .block_erase = erase_sector_jedec,
16348 }, {
16349 .eraseblocks = { {256 * 1024, 1} },
16350 .block_erase = erase_chip_block_jedec,
16351 },
16352 },
Sean Nelson35727f72010-01-28 23:55:12 +000016353 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016354 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016355 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016356 },
16357
16358 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016359 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100016360 .name = "W25P16",
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000016361 .bustype = BUS_SPI,
16362 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016363 .model_id = WINBOND_NEX_W25P16,
16364 .total_size = 2048,
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000016365 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016366 .feature_bits = FEATURE_WRSR_WREN,
16367 .tested = TEST_UNTESTED,
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000016368 .probe = probe_spi_rdid,
16369 .probe_timing = TIMING_ZERO,
16370 .block_erasers =
16371 {
16372 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016373 .eraseblocks = { {64 * 1024, 32} },
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000016374 .block_erase = spi_block_erase_d8,
16375 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016376 .eraseblocks = { {2048 * 1024, 1} },
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000016377 .block_erase = spi_block_erase_c7,
16378 }
16379 },
16380 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16381 .unlock = spi_disable_blockprotect,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016382 .write = spi_chip_write_256,
16383 .read = spi_chip_read, /* Fast read (0x0B) supported */
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000016384 .voltage = {2700, 3600},
16385 },
16386
16387 {
16388 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100016389 .name = "W25P32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016390 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000016391 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016392 .model_id = WINBOND_NEX_W25P32,
16393 .total_size = 4096,
Rudolf Marekce1c7982010-04-20 19:34:31 +000016394 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016395 .feature_bits = FEATURE_WRSR_WREN,
16396 .tested = TEST_UNTESTED,
Rudolf Marekce1c7982010-04-20 19:34:31 +000016397 .probe = probe_spi_rdid,
16398 .probe_timing = TIMING_ZERO,
16399 .block_erasers =
16400 {
16401 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016402 .eraseblocks = { {64 * 1024, 64} },
16403 .block_erase = spi_block_erase_d8,
Rudolf Marekce1c7982010-04-20 19:34:31 +000016404 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016405 .eraseblocks = { {4096 * 1024, 1} },
16406 .block_erase = spi_block_erase_c7,
16407 }
16408 },
16409 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16410 .unlock = spi_disable_blockprotect,
16411 .write = spi_chip_write_256,
16412 .read = spi_chip_read, /* Fast read (0x0B) supported */
16413 .voltage = {2700, 3600},
16414 },
16415
16416 {
16417 .vendor = "Winbond",
16418 .name = "W25P80",
16419 .bustype = BUS_SPI,
16420 .manufacture_id = WINBOND_NEX_ID,
16421 .model_id = WINBOND_NEX_W25P80,
16422 .total_size = 1024,
16423 .page_size = 256,
16424 .feature_bits = FEATURE_WRSR_WREN,
16425 .tested = TEST_UNTESTED,
16426 .probe = probe_spi_rdid,
16427 .probe_timing = TIMING_ZERO,
16428 .block_erasers =
16429 {
16430 {
Rudolf Marekce1c7982010-04-20 19:34:31 +000016431 .eraseblocks = { {64 * 1024, 16} },
16432 .block_erase = spi_block_erase_d8,
16433 }, {
16434 .eraseblocks = { {1024 * 1024, 1} },
Rudolf Marekce1c7982010-04-20 19:34:31 +000016435 .block_erase = spi_block_erase_c7,
16436 }
16437 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000016438 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000016439 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000016440 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016441 .read = spi_chip_read, /* Fast read (0x0B) supported */
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016442 .voltage = {2700, 3600},
David Hendricksc4acec92010-06-24 11:39:57 +000016443 },
16444
16445 {
16446 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016447 .name = "W25Q128.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016448 .bustype = BUS_SPI,
Antony Rheneus0fbba982011-05-26 14:28:51 +000016449 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016450 .model_id = WINBOND_NEX_W25Q128_V,
Antony Rheneus0fbba982011-05-26 14:28:51 +000016451 .total_size = 16384,
16452 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016453 /* supports SFDP */
16454 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000016455 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +000016456 .tested = TEST_OK_PREW,
Antony Rheneus0fbba982011-05-26 14:28:51 +000016457 .probe = probe_spi_rdid,
16458 .probe_timing = TIMING_ZERO,
16459 .block_erasers =
16460 {
16461 {
16462 .eraseblocks = { {4 * 1024, 4096} },
16463 .block_erase = spi_block_erase_20,
16464 }, {
16465 .eraseblocks = { {32 * 1024, 512} },
16466 .block_erase = spi_block_erase_52,
16467 }, {
16468 .eraseblocks = { {64 * 1024, 256} },
16469 .block_erase = spi_block_erase_d8,
16470 }, {
16471 .eraseblocks = { {16 * 1024 * 1024, 1} },
16472 .block_erase = spi_block_erase_60,
16473 }, {
16474 .eraseblocks = { {16 * 1024 * 1024, 1} },
16475 .block_erase = spi_block_erase_c7,
16476 }
16477 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000016478 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Antony Rheneus0fbba982011-05-26 14:28:51 +000016479 .unlock = spi_disable_blockprotect,
16480 .write = spi_chip_write_256,
16481 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016482 .voltage = {2700, 3600},
16483 },
16484
16485 {
16486 .vendor = "Winbond",
Patrick Rudolph34323492018-10-04 14:59:40 +020016487 .name = "W25Q128.V..M",
16488 .bustype = BUS_SPI,
16489 .manufacture_id = WINBOND_NEX_ID,
16490 .model_id = WINBOND_NEX_W25Q128_V_M,
16491 .total_size = 16384,
16492 .page_size = 256,
16493 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
16494 .tested = TEST_OK_PREW,
16495 .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 },
Alan Greena1fc01d2019-09-23 17:12:44 +100016516 .printlock = spi_prettyprint_status_register_plain,
Patrick Rudolph34323492018-10-04 14:59:40 +020016517 .unlock = spi_disable_blockprotect,
16518 .write = spi_chip_write_256,
16519 .read = spi_chip_read,
16520 .voltage = {2700, 3600},
16521 },
16522
16523 {
16524 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100016525 .name = "W25Q128.W",
16526 .bustype = BUS_SPI,
16527 .manufacture_id = WINBOND_NEX_ID,
16528 .model_id = WINBOND_NEX_W25Q128_W,
16529 .total_size = 16384,
16530 .page_size = 256,
16531 /* supports SFDP */
16532 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
16533 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
16534 .tested = TEST_OK_PREW,
16535 .probe = probe_spi_rdid,
16536 .probe_timing = TIMING_ZERO,
16537 .block_erasers =
16538 {
16539 {
16540 .eraseblocks = { {4 * 1024, 4096} },
16541 .block_erase = spi_block_erase_20,
16542 }, {
16543 .eraseblocks = { {32 * 1024, 512} },
16544 .block_erase = spi_block_erase_52,
16545 }, {
16546 .eraseblocks = { {64 * 1024, 256} },
16547 .block_erase = spi_block_erase_d8,
16548 }, {
16549 .eraseblocks = { {16 * 1024 * 1024, 1} },
16550 .block_erase = spi_block_erase_60,
16551 }, {
16552 .eraseblocks = { {16 * 1024 * 1024, 1} },
16553 .block_erase = spi_block_erase_c7,
16554 }
16555 },
16556 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16557 .unlock = spi_disable_blockprotect,
16558 .write = spi_chip_write_256,
16559 .read = spi_chip_read,
16560 .voltage = {1650, 1950},
16561 },
16562
16563 {
16564 .vendor = "Winbond",
Peichao Wang1a119492019-11-11 15:26:41 +080016565 .name = "W25Q128.JW.DTR",
16566 .bustype = BUS_SPI,
16567 .manufacture_id = WINBOND_NEX_ID,
16568 .model_id = WINBOND_NEX_W25Q128_DTR,
16569 .total_size = 16384,
16570 .page_size = 256,
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",
Alan Green1f9cc7d2019-07-01 11:10:45 +100016603 .name = "W25Q16.V",
16604 .bustype = BUS_SPI,
16605 .manufacture_id = WINBOND_NEX_ID,
16606 .model_id = WINBOND_NEX_W25Q16_V,
16607 .total_size = 2048,
16608 .page_size = 256,
16609 /* supports SFDP */
16610 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
16611 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16612 .tested = TEST_OK_PREW,
16613 .probe = probe_spi_rdid,
16614 .probe_timing = TIMING_ZERO,
16615 .block_erasers =
16616 {
16617 {
16618 .eraseblocks = { {4 * 1024, 512} },
16619 .block_erase = spi_block_erase_20,
16620 }, {
16621 .eraseblocks = { {32 * 1024, 64} },
16622 .block_erase = spi_block_erase_52,
16623 }, {
16624 .eraseblocks = { {64 * 1024, 32} },
16625 .block_erase = spi_block_erase_d8,
16626 }, {
16627 .eraseblocks = { {2 * 1024 * 1024, 1} },
16628 .block_erase = spi_block_erase_60,
16629 }, {
16630 .eraseblocks = { {2 * 1024 * 1024, 1} },
16631 .block_erase = spi_block_erase_c7,
16632 }
16633 },
16634 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16635 .unlock = spi_disable_blockprotect,
16636 .write = spi_chip_write_256,
16637 .read = spi_chip_read,
16638 .voltage = {2700, 3600},
16639 },
16640
16641 {
16642 .vendor = "Winbond",
16643 .name = "W25Q16.W",
16644 .bustype = BUS_SPI,
16645 .manufacture_id = WINBOND_NEX_ID,
16646 .model_id = WINBOND_NEX_W25Q16_W,
16647 .total_size = 2048,
16648 .page_size = 256,
16649 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
16650 /* QPI enable 0x38, disable 0xFF */
16651 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
16652 .tested = TEST_UNTESTED,
16653 .probe = probe_spi_rdid,
16654 .probe_timing = TIMING_ZERO,
16655 .block_erasers =
16656 {
16657 {
16658 .eraseblocks = { {4 * 1024, 512} },
16659 .block_erase = spi_block_erase_20,
16660 }, {
16661 .eraseblocks = { {32 * 1024, 64} },
16662 .block_erase = spi_block_erase_52,
16663 }, {
16664 .eraseblocks = { {64 * 1024, 32} },
16665 .block_erase = spi_block_erase_d8,
16666 }, {
16667 .eraseblocks = { {2 * 1024 * 1024, 1} },
16668 .block_erase = spi_block_erase_60,
16669 }, {
16670 .eraseblocks = { {2 * 1024 * 1024, 1} },
16671 .block_erase = spi_block_erase_c7,
16672 }
16673 },
16674 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16675 .unlock = spi_disable_blockprotect,
16676 .write = spi_chip_write_256,
16677 .read = spi_chip_read,
16678 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
16679 },
16680
16681 {
16682 .vendor = "Winbond",
16683 .name = "W25Q20.W",
16684 .bustype = BUS_SPI,
16685 .manufacture_id = WINBOND_NEX_ID,
16686 .model_id = WINBOND_NEX_W25Q20_W,
16687 .total_size = 256,
16688 .page_size = 256,
16689 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
16690 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16691 .tested = TEST_UNTESTED,
16692 .probe = probe_spi_rdid,
16693 .probe_timing = TIMING_ZERO,
16694 .block_erasers =
16695 {
16696 {
16697 .eraseblocks = { {4 * 1024, 64} },
16698 .block_erase = spi_block_erase_20,
16699 }, {
16700 .eraseblocks = { {32 * 1024, 8} },
16701 .block_erase = spi_block_erase_52,
16702 }, {
16703 .eraseblocks = { {64 * 1024, 4} },
16704 .block_erase = spi_block_erase_d8,
16705 }, {
16706 .eraseblocks = { {256 * 1024, 1} },
16707 .block_erase = spi_block_erase_60,
16708 }, {
16709 .eraseblocks = { {256 * 1024, 1} },
16710 .block_erase = spi_block_erase_c7,
16711 }
16712 },
16713 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16714 .unlock = spi_disable_blockprotect,
16715 .write = spi_chip_write_256,
16716 .read = spi_chip_read,
16717 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
16718 },
16719
16720 {
16721 .vendor = "Winbond",
Boris Baykovaa6c3742016-06-11 18:29:01 +020016722 .name = "W25Q256.V",
16723 .bustype = BUS_SPI,
16724 .manufacture_id = WINBOND_NEX_ID,
16725 .model_id = WINBOND_NEX_W25Q256_V,
16726 .total_size = 32768,
16727 .page_size = 256,
16728 /* supports SFDP */
16729 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
16730 /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */
Nico Huberaac81422017-11-10 22:54:13 +010016731 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_ENTER_WREN
16732 | FEATURE_4BA_EXT_ADDR | FEATURE_4BA_READ | FEATURE_4BA_FAST_READ,
Angel Pons3130cbd2018-09-30 19:32:30 +020016733 .tested = TEST_OK_PREW,
Boris Baykovaa6c3742016-06-11 18:29:01 +020016734 .probe = probe_spi_rdid,
16735 .probe_timing = TIMING_ZERO,
16736 .block_erasers =
16737 {
16738 {
16739 .eraseblocks = { {4 * 1024, 8192} },
Nico Huber7a077222017-10-14 18:18:30 +020016740 .block_erase = spi_block_erase_20,
Boris Baykovaa6c3742016-06-11 18:29:01 +020016741 }, {
16742 .eraseblocks = { {32 * 1024, 1024} },
Nico Huber7a077222017-10-14 18:18:30 +020016743 .block_erase = spi_block_erase_52,
Boris Baykovaa6c3742016-06-11 18:29:01 +020016744 }, {
16745 .eraseblocks = { {64 * 1024, 512} },
Nico Huber7a077222017-10-14 18:18:30 +020016746 .block_erase = spi_block_erase_d8,
Boris Baykovaa6c3742016-06-11 18:29:01 +020016747 }, {
16748 .eraseblocks = { {32 * 1024 * 1024, 1} },
16749 .block_erase = spi_block_erase_60,
16750 }, {
16751 .eraseblocks = { {32 * 1024 * 1024, 1} },
16752 .block_erase = spi_block_erase_c7,
16753 }
16754 },
16755 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16756 .unlock = spi_disable_blockprotect,
16757 .write = spi_chip_write_256,
16758 .read = spi_chip_read,
16759 .voltage = {2700, 3600},
16760 },
16761
16762 {
16763 .vendor = "Winbond",
David Hendricks49876792018-10-27 20:19:42 +000016764 .name = "W25Q256JV_M",
16765 .bustype = BUS_SPI,
16766 .manufacture_id = WINBOND_NEX_ID,
16767 .model_id = WINBOND_NEX_W25Q256JV_M,
16768 .total_size = 32768,
16769 .page_size = 256,
16770 /* supports SFDP */
16771 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
16772 /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */
16773 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
16774 .tested = TEST_OK_PREW,
16775 .probe = probe_spi_rdid,
16776 .probe_timing = TIMING_ZERO,
16777 .block_erasers =
16778 {
16779 {
16780 .eraseblocks = { {4 * 1024, 8192} },
16781 .block_erase = spi_block_erase_21,
16782 }, {
16783 .eraseblocks = { {4 * 1024, 8192} },
16784 .block_erase = spi_block_erase_20,
16785 }, {
16786 .eraseblocks = { {32 * 1024, 1024} },
16787 .block_erase = spi_block_erase_52,
16788 }, {
16789 .eraseblocks = { {64 * 1024, 512} },
16790 .block_erase = spi_block_erase_dc,
16791 }, {
16792 .eraseblocks = { {64 * 1024, 512} },
16793 .block_erase = spi_block_erase_d8,
16794 }, {
16795 .eraseblocks = { {32 * 1024 * 1024, 1} },
16796 .block_erase = spi_block_erase_60,
16797 }, {
16798 .eraseblocks = { {32 * 1024 * 1024, 1} },
16799 .block_erase = spi_block_erase_c7,
16800 }
16801 },
16802 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16803 .unlock = spi_disable_blockprotect,
16804 .write = spi_chip_write_256,
16805 .read = spi_chip_read,
16806 .voltage = {2700, 3600},
16807 },
16808
16809 {
16810 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100016811 .name = "W25Q32.V",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016812 .bustype = BUS_SPI,
16813 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016814 .model_id = WINBOND_NEX_W25Q32_V,
16815 .total_size = 4096,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016816 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016817 /* supports SFDP */
16818 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016819 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016820 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016821 .probe = probe_spi_rdid,
16822 .probe_timing = TIMING_ZERO,
16823 .block_erasers =
16824 {
16825 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016826 .eraseblocks = { {4 * 1024, 1024} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016827 .block_erase = spi_block_erase_20,
16828 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016829 .eraseblocks = { {32 * 1024, 128} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016830 .block_erase = spi_block_erase_52,
16831 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016832 .eraseblocks = { {64 * 1024, 64} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016833 .block_erase = spi_block_erase_d8,
16834 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016835 .eraseblocks = { {4 * 1024 * 1024, 1} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016836 .block_erase = spi_block_erase_60,
16837 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016838 .eraseblocks = { {4 * 1024 * 1024, 1} },
16839 .block_erase = spi_block_erase_c7,
16840 }
16841 },
16842 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16843 .unlock = spi_disable_blockprotect,
16844 .write = spi_chip_write_256,
16845 .read = spi_chip_read,
16846 .voltage = {2700, 3600},
16847 },
16848
16849 {
16850 .vendor = "Winbond",
16851 .name = "W25Q32.W",
16852 .bustype = BUS_SPI,
16853 .manufacture_id = WINBOND_NEX_ID,
16854 .model_id = WINBOND_NEX_W25Q32_W,
16855 .total_size = 4096,
16856 .page_size = 256,
16857 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
16858 /* QPI enable 0x38, disable 0xFF */
16859 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
16860 .tested = TEST_OK_PREW,
16861 .probe = probe_spi_rdid,
16862 .probe_timing = TIMING_ZERO,
16863 .block_erasers =
16864 {
16865 {
16866 .eraseblocks = { {4 * 1024, 1024} },
16867 .block_erase = spi_block_erase_20,
16868 }, {
16869 .eraseblocks = { {32 * 1024, 128} },
16870 .block_erase = spi_block_erase_52,
16871 }, {
16872 .eraseblocks = { {64 * 1024, 64} },
16873 .block_erase = spi_block_erase_d8,
16874 }, {
16875 .eraseblocks = { {4 * 1024 * 1024, 1} },
16876 .block_erase = spi_block_erase_60,
16877 }, {
16878 .eraseblocks = { {4 * 1024 * 1024, 1} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016879 .block_erase = spi_block_erase_c7,
16880 }
16881 },
16882 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16883 .unlock = spi_disable_blockprotect,
16884 .write = spi_chip_write_256,
16885 .read = spi_chip_read,
16886 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
16887 },
16888
16889 {
16890 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100016891 .name = "W25Q40.V",
16892 .bustype = BUS_SPI,
16893 .manufacture_id = WINBOND_NEX_ID,
16894 .model_id = WINBOND_NEX_W25Q40_V,
16895 .total_size = 512,
16896 .page_size = 256,
16897 /* supports SFDP */
16898 /* OTP: 756B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
16899 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16900 .tested = TEST_OK_PREW,
16901 .probe = probe_spi_rdid,
16902 .probe_timing = TIMING_ZERO,
16903 .block_erasers =
16904 {
16905 {
16906 .eraseblocks = { {4 * 1024, 128} },
16907 .block_erase = spi_block_erase_20,
16908 }, {
16909 .eraseblocks = { {32 * 1024, 16} },
16910 .block_erase = spi_block_erase_52,
16911 }, {
16912 .eraseblocks = { {64 * 1024, 8} },
16913 .block_erase = spi_block_erase_d8,
16914 }, {
16915 .eraseblocks = { {512 * 1024, 1} },
16916 .block_erase = spi_block_erase_60,
16917 }, {
16918 .eraseblocks = { {512 * 1024, 1} },
16919 .block_erase = spi_block_erase_c7,
16920 }
16921 },
16922 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16923 .unlock = spi_disable_blockprotect,
16924 .write = spi_chip_write_256, /* Multi I/O supported */
16925 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16926 .voltage = {2700, 3600},
16927 },
16928
16929 {
16930 .vendor = "Winbond",
Nico Huber25683572018-03-30 13:50:13 +020016931 .name = "W25Q40BW",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016932 .bustype = BUS_SPI,
16933 .manufacture_id = WINBOND_NEX_ID,
Nico Huber25683572018-03-30 13:50:13 +020016934 .model_id = WINBOND_NEX_W25Q40BW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016935 .total_size = 512,
16936 .page_size = 256,
16937 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
16938 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Angel Pons3164a0c2018-09-30 20:26:06 +020016939 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016940 .probe = probe_spi_rdid,
16941 .probe_timing = TIMING_ZERO,
16942 .block_erasers =
16943 {
16944 {
16945 .eraseblocks = { {4 * 1024, 128} },
16946 .block_erase = spi_block_erase_20,
16947 }, {
16948 .eraseblocks = { {32 * 1024, 16} },
16949 .block_erase = spi_block_erase_52,
16950 }, {
16951 .eraseblocks = { {64 * 1024, 8} },
16952 .block_erase = spi_block_erase_d8,
16953 }, {
16954 .eraseblocks = { {512 * 1024, 1} },
16955 .block_erase = spi_block_erase_60,
16956 }, {
16957 .eraseblocks = { {512 * 1024, 1} },
16958 .block_erase = spi_block_erase_c7,
16959 }
16960 },
16961 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16962 .unlock = spi_disable_blockprotect,
16963 .write = spi_chip_write_256,
16964 .read = spi_chip_read,
16965 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
16966 },
16967
16968 {
16969 .vendor = "Winbond",
Nico Huber25683572018-03-30 13:50:13 +020016970 .name = "W25Q40EW",
16971 .bustype = BUS_SPI,
16972 .manufacture_id = WINBOND_NEX_ID,
16973 .model_id = WINBOND_NEX_W25Q40EW,
16974 .total_size = 512,
16975 .page_size = 256,
16976 /* OTP: 3*256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
16977 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Alan Green07b8a172019-09-23 16:47:05 +100016978 .tested = TEST_OK_PREW,
Nico Huber25683572018-03-30 13:50:13 +020016979 .probe = probe_spi_rdid,
16980 .probe_timing = TIMING_ZERO,
16981 .block_erasers =
16982 {
16983 {
16984 .eraseblocks = { {4 * 1024, 128} },
16985 .block_erase = spi_block_erase_20,
16986 }, {
16987 .eraseblocks = { {32 * 1024, 16} },
16988 .block_erase = spi_block_erase_52,
16989 }, {
16990 .eraseblocks = { {64 * 1024, 8} },
16991 .block_erase = spi_block_erase_d8,
16992 }, {
16993 .eraseblocks = { {512 * 1024, 1} },
16994 .block_erase = spi_block_erase_60,
16995 }, {
16996 .eraseblocks = { {512 * 1024, 1} },
16997 .block_erase = spi_block_erase_c7,
16998 }
16999 },
17000 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17001 .unlock = spi_disable_blockprotect,
17002 .write = spi_chip_write_256,
17003 .read = spi_chip_read,
17004 .voltage = {1650, 1950}, /* Fast read (0x0B) and multi I/O supported */
17005 },
17006
Stanislav Sedovf5775442018-03-07 14:16:51 -080017007 {
17008 .vendor = "Winbond",
Joel Stanley55439612019-07-27 19:25:35 +093017009 .name = "W25Q512JV",
17010 .bustype = BUS_SPI,
17011 .manufacture_id = WINBOND_NEX_ID,
17012 .model_id = WINBOND_NEX_W25Q512JV,
17013 .total_size = 64 * 1024,
17014 .page_size = 256,
17015 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
17016 .tested = TEST_OK_PREW,
17017 .probe = probe_spi_rdid,
17018 .probe_timing = TIMING_ZERO,
17019 .block_erasers =
17020 {
17021 {
17022 .eraseblocks = { {4 * 1024, 16384} },
17023 .block_erase = spi_block_erase_21,
17024 }, {
17025 .eraseblocks = { {4 * 1024, 16384} },
17026 .block_erase = spi_block_erase_20,
17027 }, {
17028 .eraseblocks = { {32 * 1024, 2048} },
17029 .block_erase = spi_block_erase_52,
17030 }, {
17031 .eraseblocks = { {64 * 1024, 1024} },
17032 .block_erase = spi_block_erase_dc,
17033 }, {
17034 .eraseblocks = { {64 * 1024, 1024} },
17035 .block_erase = spi_block_erase_d8,
17036 }, {
17037 .eraseblocks = { {64 * 1024 * 1024, 1} },
17038 .block_erase = spi_block_erase_60,
17039 }, {
17040 .eraseblocks = { {64 * 1024 * 1024, 1} },
17041 .block_erase = spi_block_erase_c7,
17042 }
17043 },
17044 .printlock = spi_prettyprint_status_register_plain,
17045 .unlock = spi_disable_blockprotect,
17046 .write = spi_chip_write_256,
17047 .read = spi_chip_read,
17048 .voltage = {2700, 3600},
17049 },
17050
17051 {
17052 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017053 .name = "W25Q64.V",
Stanislav Sedovf5775442018-03-07 14:16:51 -080017054 .bustype = BUS_SPI,
17055 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017056 .model_id = WINBOND_NEX_W25Q64_V,
17057 .total_size = 8192,
Stanislav Sedovf5775442018-03-07 14:16:51 -080017058 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017059 /* supports SFDP */
17060 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Stanislav Sedovf5775442018-03-07 14:16:51 -080017061 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17062 .tested = TEST_OK_PREW,
17063 .probe = probe_spi_rdid,
17064 .probe_timing = TIMING_ZERO,
17065 .block_erasers =
17066 {
17067 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017068 .eraseblocks = { {4 * 1024, 2048} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080017069 .block_erase = spi_block_erase_20,
17070 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017071 .eraseblocks = { {32 * 1024, 256} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080017072 .block_erase = spi_block_erase_52,
17073 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017074 .eraseblocks = { {64 * 1024, 128} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080017075 .block_erase = spi_block_erase_d8,
17076 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017077 .eraseblocks = { {8 * 1024 * 1024, 1} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080017078 .block_erase = spi_block_erase_60,
17079 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017080 .eraseblocks = { {8 * 1024 * 1024, 1} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080017081 .block_erase = spi_block_erase_c7,
17082 }
17083 },
17084 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17085 .unlock = spi_disable_blockprotect,
17086 .write = spi_chip_write_256,
17087 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017088 .voltage = {2700, 3600},
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017089 },
17090
17091 {
17092 .vendor = "Winbond",
17093 .name = "W25Q64.W",
17094 .bustype = BUS_SPI,
17095 .manufacture_id = WINBOND_NEX_ID,
17096 .model_id = WINBOND_NEX_W25Q64_W,
17097 .total_size = 8192,
17098 .page_size = 256,
17099 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17100 /* QPI enable 0x38, disable 0xFF */
17101 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner0554ca52013-07-25 22:54:25 +000017102 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017103 .probe = probe_spi_rdid,
17104 .probe_timing = TIMING_ZERO,
17105 .block_erasers =
17106 {
17107 {
17108 .eraseblocks = { {4 * 1024, 2048} },
17109 .block_erase = spi_block_erase_20,
17110 }, {
17111 .eraseblocks = { {32 * 1024, 256} },
17112 .block_erase = spi_block_erase_52,
17113 }, {
17114 .eraseblocks = { {64 * 1024, 128} },
17115 .block_erase = spi_block_erase_d8,
17116 }, {
17117 .eraseblocks = { {8 * 1024 * 1024, 1} },
17118 .block_erase = spi_block_erase_60,
17119 }, {
17120 .eraseblocks = { {8 * 1024 * 1024, 1} },
17121 .block_erase = spi_block_erase_c7,
17122 }
17123 },
17124 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17125 .unlock = spi_disable_blockprotect,
17126 .write = spi_chip_write_256,
17127 .read = spi_chip_read,
17128 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
Antony Rheneus0fbba982011-05-26 14:28:51 +000017129 },
17130
17131 {
17132 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017133 .name = "W25Q80.V",
Nico Huber70eed9f2017-04-24 22:19:27 +020017134 .bustype = BUS_SPI,
17135 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017136 .model_id = WINBOND_NEX_W25Q80_V,
17137 .total_size = 1024,
Nico Huber70eed9f2017-04-24 22:19:27 +020017138 .page_size = 256,
17139 /* supports SFDP */
17140 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Alan Green1f9cc7d2019-07-01 11:10:45 +100017141 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks48729d32017-12-08 14:44:07 -080017142 .tested = TEST_OK_PREW,
Nico Huber70eed9f2017-04-24 22:19:27 +020017143 .probe = probe_spi_rdid,
17144 .probe_timing = TIMING_ZERO,
17145 .block_erasers =
17146 {
17147 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017148 .eraseblocks = { {4 * 1024, 256} },
Nico Huber70eed9f2017-04-24 22:19:27 +020017149 .block_erase = spi_block_erase_20,
17150 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017151 .eraseblocks = { {32 * 1024, 32} },
Nico Huber70eed9f2017-04-24 22:19:27 +020017152 .block_erase = spi_block_erase_52,
17153 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017154 .eraseblocks = { {64 * 1024, 16} },
Nico Huber70eed9f2017-04-24 22:19:27 +020017155 .block_erase = spi_block_erase_d8,
17156 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017157 .eraseblocks = { {1024 * 1024, 1} },
Nico Huber70eed9f2017-04-24 22:19:27 +020017158 .block_erase = spi_block_erase_60,
17159 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017160 .eraseblocks = { {1024 * 1024, 1} },
Nico Huber70eed9f2017-04-24 22:19:27 +020017161 .block_erase = spi_block_erase_c7,
17162 }
17163 },
17164 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17165 .unlock = spi_disable_blockprotect,
17166 .write = spi_chip_write_256,
17167 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017168 .voltage = {2700, 3600},
17169 },
17170
17171 {
17172 .vendor = "Winbond",
17173 .name = "W25Q80BW",
17174 .bustype = BUS_SPI,
17175 .manufacture_id = WINBOND_NEX_ID,
17176 .model_id = WINBOND_NEX_W25Q80BW,
17177 .total_size = 1024,
17178 .page_size = 256,
17179 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17180 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17181 .tested = TEST_OK_PREW,
17182 .probe = probe_spi_rdid,
17183 .probe_timing = TIMING_ZERO,
17184 .block_erasers =
17185 {
17186 {
17187 .eraseblocks = { {4 * 1024, 256} },
17188 .block_erase = spi_block_erase_20,
17189 }, {
17190 .eraseblocks = { {32 * 1024, 32} },
17191 .block_erase = spi_block_erase_52,
17192 }, {
17193 .eraseblocks = { {64 * 1024, 16} },
17194 .block_erase = spi_block_erase_d8,
17195 }, {
17196 .eraseblocks = { {1 * 1024 * 1024, 1} },
17197 .block_erase = spi_block_erase_60,
17198 }, {
17199 .eraseblocks = { {1 * 1024 * 1024, 1} },
17200 .block_erase = spi_block_erase_c7,
17201 }
17202 },
17203 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17204 .unlock = spi_disable_blockprotect,
17205 .write = spi_chip_write_256,
17206 .read = spi_chip_read,
17207 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
17208 },
17209
17210 {
17211 .vendor = "Winbond",
17212 .name = "W25Q80EW",
17213 .bustype = BUS_SPI,
17214 .manufacture_id = WINBOND_NEX_ID,
17215 .model_id = WINBOND_NEX_W25Q80EW,
17216 .total_size = 1024,
17217 .page_size = 256,
17218 /* OTP: 3*256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17219 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17220 .tested = TEST_OK_PREW,
17221 .probe = probe_spi_rdid,
17222 .probe_timing = TIMING_ZERO,
17223 .block_erasers =
17224 {
17225 {
17226 .eraseblocks = { {4 * 1024, 256} },
17227 .block_erase = spi_block_erase_20,
17228 }, {
17229 .eraseblocks = { {32 * 1024, 32} },
17230 .block_erase = spi_block_erase_52,
17231 }, {
17232 .eraseblocks = { {64 * 1024, 16} },
17233 .block_erase = spi_block_erase_d8,
17234 }, {
17235 .eraseblocks = { {1 * 1024 * 1024, 1} },
17236 .block_erase = spi_block_erase_60,
17237 }, {
17238 .eraseblocks = { {1 * 1024 * 1024, 1} },
17239 .block_erase = spi_block_erase_c7,
17240 }
17241 },
17242 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17243 .unlock = spi_disable_blockprotect,
17244 .write = spi_chip_write_256,
17245 .read = spi_chip_read,
17246 .voltage = {1650, 1950}, /* Fast read (0x0B) and multi I/O supported */
Nico Huber70eed9f2017-04-24 22:19:27 +020017247 },
17248
17249 {
17250 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000017251 .name = "W25X10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017252 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017253 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017254 .model_id = WINBOND_NEX_W25X10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017255 .total_size = 128,
17256 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000017257 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +000017258 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017259 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000017260 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017261 .block_erasers =
17262 {
17263 {
17264 .eraseblocks = { {4 * 1024, 32} },
17265 .block_erase = spi_block_erase_20,
17266 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017267 .eraseblocks = { {64 * 1024, 2} },
17268 .block_erase = spi_block_erase_d8,
17269 }, {
17270 .eraseblocks = { {128 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017271 .block_erase = spi_block_erase_c7,
17272 }
17273 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000017274 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000017275 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000017276 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017277 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017278 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000017279 },
17280
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017281 {
17282 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000017283 .name = "W25X16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017284 .bustype = BUS_SPI,
Hector Martina721ae22009-07-11 19:39:11 +000017285 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017286 .model_id = WINBOND_NEX_W25X16,
Hector Martina721ae22009-07-11 19:39:11 +000017287 .total_size = 2048,
17288 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000017289 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +000017290 .tested = TEST_OK_PREW,
Hector Martina721ae22009-07-11 19:39:11 +000017291 .probe = probe_spi_rdid,
17292 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017293 .block_erasers =
17294 {
17295 {
17296 .eraseblocks = { {4 * 1024, 512} },
17297 .block_erase = spi_block_erase_20,
17298 }, {
17299 .eraseblocks = { {32 * 1024, 64} },
17300 .block_erase = spi_block_erase_52,
17301 }, {
17302 .eraseblocks = { {64 * 1024, 32} },
17303 .block_erase = spi_block_erase_d8,
17304 }, {
17305 .eraseblocks = { {2 * 1024 * 1024, 1} },
17306 .block_erase = spi_block_erase_60,
17307 }, {
17308 .eraseblocks = { {2 * 1024 * 1024, 1} },
17309 .block_erase = spi_block_erase_c7,
17310 }
17311 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000017312 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000017313 .unlock = spi_disable_blockprotect,
Hector Martina721ae22009-07-11 19:39:11 +000017314 .write = spi_chip_write_256,
17315 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017316 .voltage = {2700, 3600},
Hector Martina721ae22009-07-11 19:39:11 +000017317 },
17318
17319 {
17320 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017321 .name = "W25X20",
17322 .bustype = BUS_SPI,
17323 .manufacture_id = WINBOND_NEX_ID,
17324 .model_id = WINBOND_NEX_W25X20,
17325 .total_size = 256,
17326 .page_size = 256,
17327 .feature_bits = FEATURE_WRSR_WREN,
17328 .tested = TEST_OK_PREW,
17329 .probe = probe_spi_rdid,
17330 .probe_timing = TIMING_ZERO,
17331 .block_erasers =
17332 {
17333 {
17334 .eraseblocks = { {4 * 1024, 64} },
17335 .block_erase = spi_block_erase_20,
17336 }, {
17337 .eraseblocks = { {64 * 1024, 4} },
17338 .block_erase = spi_block_erase_d8,
17339 }, {
17340 .eraseblocks = { {256 * 1024, 1} },
17341 .block_erase = spi_block_erase_c7,
17342 }
17343 },
17344 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17345 .unlock = spi_disable_blockprotect,
17346 .write = spi_chip_write_256,
17347 .read = spi_chip_read,
17348 .voltage = {2700, 3600},
17349 },
17350
17351 {
17352 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000017353 .name = "W25X32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017354 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000017355 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017356 .model_id = WINBOND_NEX_W25X32,
Zheng Bao1db2b752009-11-26 11:05:01 +000017357 .total_size = 4096,
17358 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000017359 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000017360 .tested = TEST_OK_PREW,
Zheng Bao1db2b752009-11-26 11:05:01 +000017361 .probe = probe_spi_rdid,
17362 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017363 .block_erasers =
17364 {
17365 {
17366 .eraseblocks = { {4 * 1024, 1024} },
17367 .block_erase = spi_block_erase_20,
17368 }, {
17369 .eraseblocks = { {32 * 1024, 128} },
17370 .block_erase = spi_block_erase_52,
17371 }, {
17372 .eraseblocks = { {64 * 1024, 64} },
17373 .block_erase = spi_block_erase_d8,
17374 }, {
17375 .eraseblocks = { {4 * 1024 * 1024, 1} },
17376 .block_erase = spi_block_erase_60,
17377 }, {
17378 .eraseblocks = { {4 * 1024 * 1024, 1} },
17379 .block_erase = spi_block_erase_c7,
17380 }
17381 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000017382 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000017383 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000017384 .write = spi_chip_write_256,
17385 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017386 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000017387 },
17388
17389 {
17390 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017391 .name = "W25X40",
17392 .bustype = BUS_SPI,
17393 .manufacture_id = WINBOND_NEX_ID,
17394 .model_id = WINBOND_NEX_W25X40,
17395 .total_size = 512,
17396 .page_size = 256,
17397 .feature_bits = FEATURE_WRSR_WREN,
17398 .tested = TEST_OK_PREW,
17399 .probe = probe_spi_rdid,
17400 .probe_timing = TIMING_ZERO,
17401 .block_erasers =
17402 {
17403 {
17404 .eraseblocks = { {4 * 1024, 128} },
17405 .block_erase = spi_block_erase_20,
17406 }, {
17407 .eraseblocks = { {64 * 1024, 8} },
17408 .block_erase = spi_block_erase_d8,
17409 }, {
17410 .eraseblocks = { {512 * 1024, 1} },
17411 .block_erase = spi_block_erase_c7,
17412 }
17413 },
17414 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17415 .unlock = spi_disable_blockprotect,
17416 .write = spi_chip_write_256,
17417 .read = spi_chip_read,
17418 .voltage = {2700, 3600},
17419 },
17420
17421 {
17422 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000017423 .name = "W25X64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017424 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000017425 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017426 .model_id = WINBOND_NEX_W25X64,
Zheng Bao1db2b752009-11-26 11:05:01 +000017427 .total_size = 8192,
17428 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000017429 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000017430 .tested = TEST_OK_PREW,
Zheng Bao1db2b752009-11-26 11:05:01 +000017431 .probe = probe_spi_rdid,
17432 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017433 .block_erasers =
17434 {
17435 {
17436 .eraseblocks = { {4 * 1024, 2048} },
17437 .block_erase = spi_block_erase_20,
17438 }, {
17439 .eraseblocks = { {32 * 1024, 256} },
17440 .block_erase = spi_block_erase_52,
17441 }, {
17442 .eraseblocks = { {64 * 1024, 128} },
17443 .block_erase = spi_block_erase_d8,
17444 }, {
17445 .eraseblocks = { {8 * 1024 * 1024, 1} },
17446 .block_erase = spi_block_erase_60,
17447 }, {
17448 .eraseblocks = { {8 * 1024 * 1024, 1} },
17449 .block_erase = spi_block_erase_c7,
17450 }
17451 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000017452 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000017453 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000017454 .write = spi_chip_write_256,
17455 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017456 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000017457 },
17458
17459 {
Alan Greenfa3fcd32019-06-27 15:41:50 +100017460 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017461 .name = "W25X80",
Alan Greenfa3fcd32019-06-27 15:41:50 +100017462 .bustype = BUS_SPI,
17463 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017464 .model_id = WINBOND_NEX_W25X80,
Alan Greenfa3fcd32019-06-27 15:41:50 +100017465 .total_size = 1024,
17466 .page_size = 256,
17467 .feature_bits = FEATURE_WRSR_WREN,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017468 .tested = TEST_OK_PREW,
Alan Greenfa3fcd32019-06-27 15:41:50 +100017469 .probe = probe_spi_rdid,
17470 .probe_timing = TIMING_ZERO,
17471 .block_erasers =
David Hendricksc9ee0ed2018-02-11 17:40:53 -080017472 {
17473 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017474 .eraseblocks = { {4 * 1024, 256} },
17475 .block_erase = spi_block_erase_20,
17476 }, {
David Hendricksc9ee0ed2018-02-11 17:40:53 -080017477 .eraseblocks = { {64 * 1024, 16} },
17478 .block_erase = spi_block_erase_d8,
17479 }, {
17480 .eraseblocks = { {1024 * 1024, 1} },
17481 .block_erase = spi_block_erase_c7,
17482 }
17483 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100017484 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17485 .unlock = spi_disable_blockprotect,
17486 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017487 .read = spi_chip_read,
Alan Greenfa3fcd32019-06-27 15:41:50 +100017488 .voltage = {2700, 3600},
David Hendricksc9ee0ed2018-02-11 17:40:53 -080017489 },
17490
Alan Greenf29ea362019-06-27 17:14:02 +100017491 /* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */
17492 {
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000017493 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000017494 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017495 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017496 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017497 .model_id = WINBOND_W29C010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017498 .total_size = 128,
17499 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000017500 .feature_bits = FEATURE_LONG_RESET,
David Hendricks567b7b82011-05-18 01:31:03 +000017501 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017502 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000017503 .probe_timing = 10, /* used datasheet for the W29C011A */
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017504 .block_erasers =
17505 {
17506 {
17507 .eraseblocks = { {128 * 1024, 1} },
17508 .block_erase = erase_chip_block_jedec,
17509 }
17510 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017511 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017512 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000017513 },
17514
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017515 {
17516 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017517 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old",
17518 .bustype = BUS_PARALLEL,
17519 .manufacture_id = WINBOND_ID,
17520 .model_id = WINBOND_W29C010,
17521 .total_size = 128,
17522 .page_size = 128,
17523 .feature_bits = FEATURE_LONG_RESET,
17524 .tested = TEST_OK_PREW,
17525 .probe = probe_w29ee011,
17526 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */
17527 .block_erasers =
17528 {
17529 {
17530 .eraseblocks = { {128 * 1024, 1} },
17531 .block_erase = erase_chip_block_jedec,
17532 }
17533 },
17534 .write = write_jedec,
17535 .read = read_memmapped,
17536 },
17537
17538 {
17539 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000017540 .name = "W29C020(C)/W29C022",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017541 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017542 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017543 .model_id = WINBOND_W29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017544 .total_size = 256,
17545 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000017546 .feature_bits = FEATURE_LONG_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000017547 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017548 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000017549 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017550 .block_erasers =
17551 {
17552 {
17553 .eraseblocks = { {256 * 1024, 1} },
17554 .block_erase = erase_chip_block_jedec,
17555 }
17556 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017557 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017558 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017559 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000017560 },
17561
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017562 {
17563 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000017564 .name = "W29C040/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017565 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017566 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017567 .model_id = WINBOND_W29C040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017568 .total_size = 512,
17569 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000017570 .feature_bits = FEATURE_LONG_RESET,
17571 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017572 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000017573 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017574 .block_erasers =
17575 {
17576 {
17577 .eraseblocks = { {512 * 1024, 1} },
17578 .block_erase = erase_chip_block_jedec,
17579 }
17580 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017581 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017582 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017583 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000017584 },
17585
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017586 {
17587 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017588 .name = "W29C512A/W29EE512",
17589 .bustype = BUS_PARALLEL,
17590 .manufacture_id = WINBOND_ID,
17591 .model_id = WINBOND_W29C512A,
17592 .total_size = 64,
17593 .page_size = 128,
17594 .feature_bits = FEATURE_LONG_RESET,
17595 .tested = TEST_OK_PREW,
17596 .probe = probe_jedec,
17597 .probe_timing = 10,
17598 .block_erasers =
17599 {
17600 {
17601 .eraseblocks = { {64 * 1024, 1} },
17602 .block_erase = erase_chip_block_jedec,
17603 }
17604 },
17605 .write = write_jedec,
17606 .read = read_memmapped,
17607 .voltage = {4500, 5500},
17608 },
17609
17610 {
17611 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000017612 .name = "W29GL032CB",
17613 .bustype = BUS_PARALLEL,
17614 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
17615 .model_id = WINBOND_W29GL032CB,
17616 .total_size = 4096,
17617 .page_size = 128 * 1024, /* actual page size is 16 */
17618 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
17619 .tested = TEST_UNTESTED,
17620 .probe = probe_jedec_29gl,
17621 .probe_timing = TIMING_ZERO,
17622 .block_erasers =
17623 {
17624 {
17625 .eraseblocks = {
17626 {8 * 1024, 8},
17627 {64 * 1024, 63},
17628 },
17629 .block_erase = erase_sector_jedec,
17630 }, {
17631 .eraseblocks = { {4 * 1024 * 1024, 1} },
17632 .block_erase = erase_chip_block_jedec,
17633 },
17634 },
17635 .write = write_jedec_1,
17636 .read = read_memmapped,
17637 .voltage = {2700, 3600},
17638 },
17639
17640 {
17641 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017642 .name = "W29GL032CH/L",
17643 .bustype = BUS_PARALLEL,
17644 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
17645 .model_id = WINBOND_W29GL032CHL,
17646 .total_size = 4096,
17647 .page_size = 128 * 1024, /* actual page size is 16 */
17648 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
17649 .tested = TEST_UNTESTED,
17650 .probe = probe_jedec_29gl,
17651 .probe_timing = TIMING_ZERO,
17652 .block_erasers =
17653 {
17654 {
17655 .eraseblocks = { {64 * 1024, 64} },
17656 .block_erase = erase_sector_jedec,
17657 }, {
17658 .eraseblocks = { {4 * 1024 * 1024, 1} },
17659 .block_erase = erase_chip_block_jedec,
17660 },
17661 },
17662 .write = write_jedec_1,
17663 .read = read_memmapped,
17664 .voltage = {2700, 3600},
17665 },
17666
17667 {
17668 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000017669 .name = "W29GL032CT",
17670 .bustype = BUS_PARALLEL,
17671 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
17672 .model_id = WINBOND_W29GL032CT,
17673 .total_size = 4096,
17674 .page_size = 128 * 1024, /* actual page size is 16 */
17675 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
17676 .tested = TEST_UNTESTED,
17677 .probe = probe_jedec_29gl,
17678 .probe_timing = TIMING_ZERO,
17679 .block_erasers =
17680 {
17681 {
17682 .eraseblocks = {
17683 {64 * 1024, 63},
17684 {8 * 1024, 8},
17685 },
17686 .block_erase = erase_sector_jedec,
17687 }, {
17688 .eraseblocks = { {4 * 1024 * 1024, 1} },
17689 .block_erase = erase_chip_block_jedec,
17690 },
17691 },
17692 .write = write_jedec_1,
17693 .read = read_memmapped,
17694 .voltage = {2700, 3600},
17695 },
17696
17697 {
17698 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000017699 .name = "W29GL064CB",
17700 .bustype = BUS_PARALLEL,
17701 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
17702 .model_id = WINBOND_W29GL064CB,
17703 .total_size = 8192,
17704 .page_size = 128 * 1024, /* actual page size is 16 */
17705 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
17706 .tested = TEST_UNTESTED,
17707 .probe = probe_jedec_29gl,
17708 .probe_timing = TIMING_ZERO,
17709 .block_erasers =
17710 {
17711 {
17712 .eraseblocks = {
17713 {8 * 1024, 8},
17714 {64 * 1024, 127},
17715 },
17716 .block_erase = erase_sector_jedec,
17717 }, {
17718 .eraseblocks = { {8 * 1024 * 1024, 1} },
17719 .block_erase = erase_chip_block_jedec,
17720 },
17721 },
17722 .write = write_jedec_1,
17723 .read = read_memmapped,
17724 .voltage = {2700, 3600},
17725 },
17726
17727 {
17728 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017729 .name = "W29GL064CH/L",
17730 .bustype = BUS_PARALLEL,
17731 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
17732 .model_id = WINBOND_W29GL064CHL,
17733 .total_size = 8192,
17734 .page_size = 128 * 1024, /* actual page size is 16 */
17735 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
17736 .tested = TEST_UNTESTED,
17737 .probe = probe_jedec_29gl,
17738 .probe_timing = TIMING_ZERO,
17739 .block_erasers =
17740 {
17741 {
17742 .eraseblocks = { {64 * 1024, 128} },
17743 .block_erase = erase_sector_jedec,
17744 }, {
17745 .eraseblocks = { {8 * 1024 * 1024, 1} },
17746 .block_erase = erase_chip_block_jedec,
17747 },
17748 },
17749 .write = write_jedec_1,
17750 .read = read_memmapped,
17751 .voltage = {2700, 3600},
17752 },
17753
17754 {
17755 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000017756 .name = "W29GL064CT",
17757 .bustype = BUS_PARALLEL,
17758 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
17759 .model_id = WINBOND_W29GL064CT,
17760 .total_size = 8192,
17761 .page_size = 128 * 1024, /* actual page size is 16 */
17762 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
17763 .tested = TEST_UNTESTED,
17764 .probe = probe_jedec_29gl,
17765 .probe_timing = TIMING_ZERO,
17766 .block_erasers =
17767 {
17768 {
17769 .eraseblocks = {
17770 {64 * 1024, 127},
17771 {8 * 1024, 8},
17772 },
17773 .block_erase = erase_sector_jedec,
17774 }, {
17775 .eraseblocks = { {8 * 1024 * 1024, 1} },
17776 .block_erase = erase_chip_block_jedec,
17777 },
17778 },
17779 .write = write_jedec_1,
17780 .read = read_memmapped,
17781 .voltage = {2700, 3600},
17782 },
17783
17784 {
17785 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000017786 .name = "W29GL128C",
17787 .bustype = BUS_PARALLEL,
17788 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
17789 .model_id = WINBOND_W29GL128CHL,
17790 .total_size = 16384,
17791 .page_size = 128 * 1024, /* actual page size is 16 */
17792 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
17793 .tested = TEST_UNTESTED,
17794 .probe = probe_jedec_29gl,
17795 .probe_timing = TIMING_ZERO,
17796 .block_erasers =
17797 {
17798 {
17799 .eraseblocks = { {128 * 1024, 128} },
17800 .block_erase = erase_sector_jedec,
17801 }, {
17802 .eraseblocks = { {16 * 1024 * 1024, 1} },
17803 .block_erase = erase_chip_block_jedec,
17804 },
17805 },
17806 .write = write_jedec_1,
17807 .read = read_memmapped,
17808 .voltage = {2700, 3600},
17809 },
17810
17811 {
17812 .vendor = "Winbond",
Kyösti Mälkkic31243e2012-10-28 01:50:08 +000017813 .name = "W39F010",
17814 .bustype = BUS_PARALLEL,
17815 .manufacture_id = WINBOND_ID,
17816 .model_id = WINBOND_W39F010,
17817 .total_size = 128,
17818 .page_size = 4 * 1024,
17819 .feature_bits = FEATURE_EITHER_RESET,
17820 .tested = TEST_OK_PREW,
17821 .probe = probe_jedec,
17822 .probe_timing = 10,
17823 .block_erasers =
17824 {
17825 {
17826 .eraseblocks = { {4 * 1024, 32} },
17827 .block_erase = erase_block_jedec,
17828 }, {
17829 .eraseblocks = { {128 * 1024, 1} },
17830 .block_erase = erase_chip_block_jedec,
17831 }
17832 },
17833 .printlock = printlock_w39f010,
17834 .write = write_jedec_1,
17835 .read = read_memmapped,
17836 .voltage = {4500, 5500},
17837 },
17838
17839 {
17840 .vendor = "Winbond",
17841 .name = "W39L010",
17842 .bustype = BUS_PARALLEL,
17843 .manufacture_id = WINBOND_ID,
17844 .model_id = WINBOND_W39L010,
17845 .total_size = 128,
17846 .page_size = 4 * 1024,
17847 .feature_bits = FEATURE_EITHER_RESET,
17848 .tested = TEST_UNTESTED,
17849 .probe = probe_jedec,
17850 .probe_timing = 10,
17851 .block_erasers =
17852 {
17853 {
17854 .eraseblocks = { {4 * 1024, 32} },
17855 .block_erase = erase_block_jedec,
17856 }, {
17857 .eraseblocks = { {128 * 1024, 1} },
17858 .block_erase = erase_chip_block_jedec,
17859 }
17860 },
17861 .printlock = printlock_w39l010,
17862 .write = write_jedec_1,
17863 .read = read_memmapped,
17864 .voltage = {3000, 3600},
17865 },
17866
17867 {
17868 .vendor = "Winbond",
17869 .name = "W39L020",
17870 .bustype = BUS_PARALLEL,
17871 .manufacture_id = WINBOND_ID,
17872 .model_id = WINBOND_W39L020,
17873 .total_size = 256,
17874 .page_size = 4 * 1024,
17875 .feature_bits = FEATURE_EITHER_RESET,
17876 .tested = TEST_UNTESTED,
17877 .probe = probe_jedec,
17878 .probe_timing = 10,
17879 .block_erasers =
17880 {
17881 {
17882 .eraseblocks = { {4 * 1024, 64} },
17883 .block_erase = erase_block_jedec,
17884 }, {
17885 .eraseblocks = { {64 * 1024, 4} },
17886 .block_erase = erase_sector_jedec,
17887 }, {
17888 .eraseblocks = { {256 * 1024, 1} },
17889 .block_erase = erase_chip_block_jedec,
17890 }
17891 },
17892 .printlock = printlock_w39l020,
17893 .write = write_jedec_1,
17894 .read = read_memmapped,
17895 .voltage = {3000, 3600},
17896 },
17897
17898 {
17899 .vendor = "Winbond",
Michael Karcher19e0aac2011-03-06 17:58:05 +000017900 .name = "W39L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017901 .bustype = BUS_PARALLEL,
Michael Karcher19e0aac2011-03-06 17:58:05 +000017902 .manufacture_id = WINBOND_ID,
17903 .model_id = WINBOND_W39L040,
17904 .total_size = 512,
17905 .page_size = 64 * 1024,
17906 .feature_bits = FEATURE_EITHER_RESET,
17907 .tested = TEST_OK_PR,
17908 .probe = probe_jedec,
17909 .probe_timing = 10,
17910 .block_erasers =
17911 {
17912 {
17913 .eraseblocks = { {4 * 1024, 128} },
17914 .block_erase = erase_block_jedec,
17915 }, {
17916 .eraseblocks = { {64 * 1024, 8} },
17917 .block_erase = erase_sector_jedec,
17918 }, {
17919 .eraseblocks = { {512 * 1024, 1} },
17920 .block_erase = erase_chip_block_jedec,
17921 }
17922 },
17923 .printlock = printlock_w39l040,
17924 .write = write_jedec_1,
17925 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000017926 .voltage = {3000, 3600},
Michael Karcher19e0aac2011-03-06 17:58:05 +000017927 },
17928
17929 {
17930 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017931 .name = "W39V040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017932 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017933 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017934 .model_id = WINBOND_W39V040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017935 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000017936 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000017937 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000017938 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017939 .probe = probe_jedec,
Stefan Tauner716e0982011-07-25 20:38:52 +000017940 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017941 .block_erasers =
17942 {
17943 {
17944 .eraseblocks = { {64 * 1024, 8} },
17945 .block_erase = erase_sector_jedec,
17946 }, {
17947 .eraseblocks = { {512 * 1024, 1} },
17948 .block_erase = erase_chip_block_jedec,
17949 }
17950 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017951 .printlock = printlock_w39v040a,
Sean Nelson35727f72010-01-28 23:55:12 +000017952 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017953 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017954 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000017955 },
17956
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017957 {
17958 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017959 .name = "W39V040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017960 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017961 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017962 .model_id = WINBOND_W39V040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017963 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000017964 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000017965 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000017966 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017967 .probe = probe_jedec,
Paul Menzel018d4822011-10-21 12:33:07 +000017968 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017969 .block_erasers =
17970 {
17971 {
17972 .eraseblocks = { {64 * 1024, 8} },
17973 .block_erase = erase_sector_jedec,
17974 }, {
17975 .eraseblocks = { {512 * 1024, 1} },
17976 .block_erase = erase_chip_block_jedec,
17977 }
17978 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017979 .printlock = printlock_w39v040b,
Sean Nelson35727f72010-01-28 23:55:12 +000017980 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017981 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017982 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000017983 },
17984
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017985 {
17986 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017987 .name = "W39V040C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017988 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017989 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017990 .model_id = WINBOND_W39V040C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017991 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000017992 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000017993 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000017994 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +000017995 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017996 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017997 .block_erasers =
17998 {
17999 {
18000 .eraseblocks = { {64 * 1024, 8} },
18001 .block_erase = erase_sector_jedec,
18002 }, {
18003 .eraseblocks = { {512 * 1024, 1} },
18004 .block_erase = erase_chip_block_jedec,
18005 }
18006 },
Sean Nelson6e0b9122010-02-19 00:52:10 +000018007 .printlock = printlock_w39v040c,
Sean Nelson35727f72010-01-28 23:55:12 +000018008 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018009 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018010 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000018011 },
18012
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018013 {
18014 .vendor = "Winbond",
18015 .name = "W39V040FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018016 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018017 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018018 .model_id = WINBOND_W39V040FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018019 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000018020 .page_size = 64 * 1024,
Michael Karcherc9b63412010-05-30 16:55:18 +000018021 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner23e10b82016-01-23 16:16:49 +000018022 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018023 .probe = probe_jedec,
Antony Rheneus0fbba982011-05-26 14:28:51 +000018024 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018025 .block_erasers =
18026 {
18027 {
18028 .eraseblocks = { {4 * 1024, 128} },
18029 .block_erase = erase_block_jedec,
18030 }, {
18031 .eraseblocks = { {64 * 1024, 8} },
18032 .block_erase = erase_sector_jedec,
18033 }, {
18034 .eraseblocks = { {512 * 1024, 1} },
18035 .block_erase = erase_chip_block_jedec,
18036 }
18037 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018038 .printlock = printlock_w39v040fa,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000018039 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000018040 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018041 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018042 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000018043 },
18044
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018045 {
18046 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018047 .name = "W39V040FB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018048 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018049 .manufacture_id = WINBOND_ID,
18050 .model_id = WINBOND_W39V040B,
18051 .total_size = 512,
18052 .page_size = 64 * 1024,
18053 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner0be072c2016-03-13 15:16:30 +000018054 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018055 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000018056 .probe_timing = 10,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018057 .block_erasers =
18058 {
18059 {
18060 .eraseblocks = { {64 * 1024, 8} },
18061 .block_erase = erase_sector_jedec,
18062 }, {
18063 .eraseblocks = { {512 * 1024, 1} },
18064 .block_erase = erase_chip_block_jedec,
18065 }
18066 },
18067 .printlock = printlock_w39v040fb,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000018068 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018069 .write = write_jedec_1,
18070 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000018071 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018072 },
18073
18074 {
18075 .vendor = "Winbond",
18076 .name = "W39V040FC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018077 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018078 .manufacture_id = WINBOND_ID,
18079 .model_id = WINBOND_W39V040C,
18080 .total_size = 512,
18081 .page_size = 64 * 1024,
18082 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +000018083 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018084 .probe = probe_jedec,
18085 .probe_timing = 10,
18086 .block_erasers =
18087 {
18088 {
18089 .eraseblocks = { {64 * 1024, 8} },
18090 .block_erase = erase_sector_jedec,
18091 }, {
18092 .eraseblocks = { {512 * 1024, 1} },
18093 .block_erase = erase_chip_block_jedec,
18094 }
18095 },
18096 .printlock = printlock_w39v040fc,
18097 .write = write_jedec_1,
18098 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000018099 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018100 },
18101
18102 {
18103 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018104 .name = "W39V080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018105 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018106 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018107 .model_id = WINBOND_W39V080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018108 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000018109 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000018110 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +000018111 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018112 .probe = probe_jedec,
Paul Menzelac427b22012-02-16 21:07:07 +000018113 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018114 .block_erasers =
18115 {
18116 {
18117 .eraseblocks = { {64 * 1024, 16} },
18118 .block_erase = erase_sector_jedec,
18119 }, {
18120 .eraseblocks = { {1024 * 1024, 1} },
18121 .block_erase = erase_chip_block_jedec,
18122 }
18123 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018124 .printlock = printlock_w39v080a,
Sean Nelson35727f72010-01-28 23:55:12 +000018125 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018126 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018127 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000018128 },
18129
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018130 {
18131 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018132 .name = "W39V080FA",
18133 .bustype = BUS_FWH,
18134 .manufacture_id = WINBOND_ID,
18135 .model_id = WINBOND_W39V080FA,
18136 .total_size = 1024,
18137 .page_size = 64 * 1024,
18138 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
18139 .tested = TEST_OK_PREW,
18140 .probe = probe_jedec,
18141 .probe_timing = 10,
18142 .block_erasers =
18143 {
18144 {
18145 .eraseblocks = { {64 * 1024, 16} },
18146 .block_erase = erase_sector_jedec,
18147 }, {
18148 .eraseblocks = { {1024 * 1024, 1} },
18149 .block_erase = erase_chip_block_jedec,
18150 }
18151 },
18152 .printlock = printlock_w39v080fa,
18153 .unlock = unlock_regspace2_uniform_64k,
18154 .write = write_jedec_1,
18155 .read = read_memmapped,
18156 .voltage = {3000, 3600}, /* Also has 12V fast program */
18157 },
18158
18159 {
18160 .vendor = "Winbond",
18161 .name = "W39V080FA (dual mode)",
18162 .bustype = BUS_FWH,
18163 .manufacture_id = WINBOND_ID,
18164 .model_id = WINBOND_W39V080FA_DM,
18165 .total_size = 512,
18166 .page_size = 64 * 1024,
18167 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
18168 .tested = TEST_UNTESTED,
18169 .probe = probe_jedec,
18170 .probe_timing = 10,
18171 .block_erasers =
18172 {
18173 {
18174 .eraseblocks = { {64 * 1024, 8} },
18175 .block_erase = erase_sector_jedec,
18176 }, {
18177 .eraseblocks = { {512 * 1024, 1} },
18178 .block_erase = erase_chip_block_jedec,
18179 }
18180 },
18181 .printlock = printlock_w39v080fa_dual,
18182 .write = write_jedec_1,
18183 .read = read_memmapped,
18184 .voltage = {3000, 3600}, /* Also has 12V fast program */
18185 },
18186
18187 {
18188 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000018189 .name = "W49F002U/N",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018190 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018191 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018192 .model_id = WINBOND_W49F002U,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018193 .total_size = 256,
18194 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000018195 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000018196 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018197 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000018198 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018199 .block_erasers =
18200 {
18201 {
18202 .eraseblocks = {
18203 {128 * 1024, 1},
18204 {96 * 1024, 1},
18205 {8 * 1024, 2},
18206 {16 * 1024, 1},
18207 },
18208 .block_erase = erase_sector_jedec,
18209 }, {
18210 .eraseblocks = { {256 * 1024, 1} },
18211 .block_erase = erase_chip_block_jedec,
18212 }
18213 },
Sean Nelson35727f72010-01-28 23:55:12 +000018214 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018215 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018216 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000018217 },
18218
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018219 {
18220 .vendor = "Winbond",
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000018221 .name = "W49F020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018222 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000018223 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018224 .model_id = WINBOND_W49F020,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000018225 .total_size = 256,
18226 .page_size = 128,
18227 .feature_bits = FEATURE_EITHER_RESET,
18228 .tested = TEST_OK_PROBE,
18229 .probe = probe_jedec,
18230 .probe_timing = 10,
18231 .block_erasers =
18232 {
18233 {
18234 .eraseblocks = { {256 * 1024, 1} },
18235 .block_erase = erase_chip_block_jedec,
18236 }
18237 },
18238 .write = write_jedec_1,
18239 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018240 .voltage = {4500, 5500},
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000018241 },
18242
18243 {
18244 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018245 .name = "W49V002A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018246 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018247 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018248 .model_id = WINBOND_W49V002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018249 .total_size = 256,
18250 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000018251 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000018252 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018253 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000018254 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018255 .block_erasers =
18256 {
18257 {
18258 .eraseblocks = {
18259 {64 * 1024, 3},
18260 {32 * 1024, 1},
18261 {8 * 1024, 2},
18262 {16 * 1024, 1},
18263 },
18264 .block_erase = erase_sector_jedec,
18265 }, {
18266 .eraseblocks = { {256 * 1024, 1} },
18267 .block_erase = erase_chip_block_jedec,
18268 }
18269 },
Sean Nelson35727f72010-01-28 23:55:12 +000018270 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018271 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018272 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000018273 },
18274
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018275 {
18276 .vendor = "Winbond",
18277 .name = "W49V002FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018278 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018279 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018280 .model_id = WINBOND_W49V002FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018281 .total_size = 256,
18282 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000018283 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000018284 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018285 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000018286 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018287 .block_erasers =
18288 {
18289 {
18290 .eraseblocks = {
18291 {64 * 1024, 3},
18292 {32 * 1024, 1},
18293 {8 * 1024, 2},
18294 {16 * 1024, 1},
18295 },
18296 .block_erase = erase_sector_jedec,
18297 }, {
18298 .eraseblocks = { {256 * 1024, 1} },
18299 .block_erase = erase_chip_block_jedec,
18300 }
18301 },
Sean Nelson35727f72010-01-28 23:55:12 +000018302 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018303 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018304 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000018305 },
18306
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018307 {
Alan Greenfa3fcd32019-06-27 15:41:50 +100018308 .vendor = "Zetta Device",
18309 .name = "ZD25D20",
18310 .bustype = BUS_SPI,
18311 .manufacture_id = ZETTADEVICE_ID,
18312 .model_id = ZETTADEVICE_ZD25D20,
18313 .total_size = 256,
18314 .page_size = 256,
18315 .feature_bits = FEATURE_WRSR_WREN,
18316 .tested = TEST_UNTESTED,
18317 .probe = probe_spi_rdid,
18318 .probe_timing = TIMING_ZERO,
18319 .block_erasers =
David Hendricksa72d5a92018-02-11 17:58:44 -080018320 {
18321 {
18322 .eraseblocks = { {4 * 1024, 64} },
18323 .block_erase = spi_block_erase_20,
18324 }, {
18325 .eraseblocks = { {32 * 1024, 8} },
18326 .block_erase = spi_block_erase_52,
18327 }, {
18328 .eraseblocks = { {64 * 1024, 4} },
18329 .block_erase = spi_block_erase_d8,
18330 }, {
18331 .eraseblocks = { {256 * 1024, 1} },
18332 .block_erase = spi_block_erase_60,
18333 }, {
18334 .eraseblocks = { {256 * 1024, 1} },
18335 .block_erase = spi_block_erase_c7,
18336 }
18337 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100018338 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18339 .unlock = spi_disable_blockprotect,
18340 .write = spi_chip_write_256,
18341 .read = spi_chip_read,
18342 .voltage = {2700, 3600},
David Hendricksa72d5a92018-02-11 17:58:44 -080018343 },
18344
18345 {
Alan Greenfa3fcd32019-06-27 15:41:50 +100018346 .vendor = "Zetta Device",
18347 .name = "ZD25D40",
18348 .bustype = BUS_SPI,
18349 .manufacture_id = ZETTADEVICE_ID,
18350 .model_id = ZETTADEVICE_ZD25D40,
18351 .total_size = 512,
18352 .page_size = 256,
18353 .feature_bits = FEATURE_WRSR_WREN,
18354 .tested = TEST_UNTESTED,
18355 .probe = probe_spi_rdid,
18356 .probe_timing = TIMING_ZERO,
18357 .block_erasers =
nybashcbb46e22018-02-11 17:53:49 -080018358 {
18359 {
18360 .eraseblocks = { {4 * 1024, 128} },
18361 .block_erase = spi_block_erase_20,
18362 }, {
18363 .eraseblocks = { {32 * 1024, 16} },
18364 .block_erase = spi_block_erase_52,
18365 }, {
18366 .eraseblocks = { {64 * 1024, 8} },
18367 .block_erase = spi_block_erase_d8,
18368 }, {
18369 .eraseblocks = { {512 * 1024, 1} },
18370 .block_erase = spi_block_erase_60,
18371 }, {
18372 .eraseblocks = { {512 * 1024, 1} },
18373 .block_erase = spi_block_erase_c7,
18374 }
18375 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100018376 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18377 .unlock = spi_disable_blockprotect,
18378 .write = spi_chip_write_256,
18379 .read = spi_chip_read,
18380 .voltage = {2700, 3600},
nybashcbb46e22018-02-11 17:53:49 -080018381 },
18382
Stefan Taunerac1b4c82012-02-17 14:51:04 +000018383 {
Alan Greendd592202019-08-23 10:11:37 +100018384 .vendor = "Unknown",
18385 .name = "SFDP-capable chip",
18386 .bustype = BUS_SPI,
18387 .manufacture_id = GENERIC_MANUF_ID,
18388 .model_id = SFDP_DEVICE_ID,
18389 .total_size = 0, /* set by probing function */
18390 .page_size = 0, /* set by probing function */
18391 .feature_bits = 0, /* set by probing function */
18392 /* We present our own "report this" text hence we do not */
18393 /* want the default "This flash part has status UNTESTED..." */
18394 /* text to be printed. */
18395 .tested = TEST_OK_PREW,
18396 .probe = probe_spi_sfdp,
18397 .block_erasers = {}, /* set by probing function */
18398 .unlock = spi_disable_blockprotect, /* is this safe? */
18399 .write = NULL, /* set by probing function */
18400 .read = spi_chip_read,
18401 /* FIXME: some vendor extensions define this */
18402 .voltage = {0},
18403 },
18404
18405 {
Carl-Daniel Hailfinger532c7172011-11-04 21:35:26 +000018406 .vendor = "Programmer",
18407 .name = "Opaque flash chip",
18408 .bustype = BUS_PROG,
18409 .manufacture_id = PROGMANUF_ID,
18410 .model_id = PROGDEV_ID,
18411 .total_size = 0,
18412 .page_size = 256,
18413 /* probe is assumed to work, rest will be filled in by probe */
18414 .tested = TEST_OK_PROBE,
18415 .probe = probe_opaque,
18416 /* eraseblock sizes will be set by the probing function */
18417 .block_erasers =
18418 {
18419 {
18420 .block_erase = erase_opaque,
18421 }
18422 },
18423 .write = write_opaque,
18424 .read = read_opaque,
18425 },
18426
18427 {
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000018428 .vendor = "AMIC",
18429 .name = "unknown AMIC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018430 .bustype = BUS_SPI,
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000018431 .manufacture_id = AMIC_ID,
18432 .model_id = GENERIC_DEVICE_ID,
18433 .total_size = 0,
18434 .page_size = 256,
18435 .tested = TEST_BAD_PREW,
18436 .probe = probe_spi_rdid4,
18437 .probe_timing = TIMING_ZERO,
18438 .write = NULL,
18439 .read = NULL,
18440 },
18441
18442 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018443 .vendor = "Atmel",
18444 .name = "unknown Atmel SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018445 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018446 .manufacture_id = ATMEL_ID,
18447 .model_id = GENERIC_DEVICE_ID,
18448 .total_size = 0,
18449 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000018450 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018451 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000018452 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018453 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018454 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000018455 },
18456
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018457 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +000018458 .vendor = "Eon",
18459 .name = "unknown Eon SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018460 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018461 .manufacture_id = EON_ID_NOPREFIX,
18462 .model_id = GENERIC_DEVICE_ID,
18463 .total_size = 0,
18464 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000018465 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018466 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000018467 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018468 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018469 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000018470 },
18471
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018472 {
18473 .vendor = "Macronix",
18474 .name = "unknown Macronix SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018475 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000018476 .manufacture_id = MACRONIX_ID,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018477 .model_id = GENERIC_DEVICE_ID,
18478 .total_size = 0,
18479 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000018480 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018481 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000018482 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018483 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018484 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000018485 },
18486
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018487 {
18488 .vendor = "PMC",
18489 .name = "unknown PMC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018490 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018491 .manufacture_id = PMC_ID,
18492 .model_id = GENERIC_DEVICE_ID,
18493 .total_size = 0,
18494 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000018495 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018496 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000018497 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018498 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018499 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000018500 },
18501
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018502 {
18503 .vendor = "SST",
18504 .name = "unknown SST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018505 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018506 .manufacture_id = SST_ID,
18507 .model_id = GENERIC_DEVICE_ID,
18508 .total_size = 0,
18509 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000018510 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018511 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000018512 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018513 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018514 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000018515 },
18516
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018517 {
18518 .vendor = "ST",
18519 .name = "unknown ST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018520 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018521 .manufacture_id = ST_ID,
18522 .model_id = GENERIC_DEVICE_ID,
18523 .total_size = 0,
18524 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000018525 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018526 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000018527 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018528 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018529 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000018530 },
Uwe Hermannfc425e82008-03-16 02:06:25 +000018531
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000018532 {
Sean Nelson118e1d62009-11-24 02:08:11 +000018533 .vendor = "Sanyo",
18534 .name = "unknown Sanyo SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018535 .bustype = BUS_SPI,
Sean Nelson118e1d62009-11-24 02:08:11 +000018536 .manufacture_id = SANYO_ID,
18537 .model_id = GENERIC_DEVICE_ID,
18538 .total_size = 0,
18539 .page_size = 256,
18540 .tested = TEST_BAD_PREW,
18541 .probe = probe_spi_rdid,
18542 .probe_timing = TIMING_ZERO,
Sean Nelson118e1d62009-11-24 02:08:11 +000018543 .write = NULL,
18544 .read = NULL,
18545 },
18546
18547 {
Stefan Taunereb582572012-09-21 12:52:50 +000018548 .vendor = "Winbond",
18549 .name = "unknown Winbond (ex Nexcom) SPI chip",
18550 .bustype = BUS_SPI,
18551 .manufacture_id = WINBOND_NEX_ID,
18552 .model_id = GENERIC_DEVICE_ID,
18553 .total_size = 0,
18554 .page_size = 256,
18555 .tested = TEST_BAD_PREW,
18556 .probe = probe_spi_rdid,
18557 .probe_timing = TIMING_ZERO,
18558 .write = NULL,
18559 .read = NULL,
18560 },
18561
18562 {
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000018563 .vendor = "Generic",
18564 .name = "unknown SPI chip (RDID)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018565 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000018566 .manufacture_id = GENERIC_MANUF_ID,
18567 .model_id = GENERIC_DEVICE_ID,
18568 .total_size = 0,
18569 .page_size = 256,
18570 .tested = TEST_BAD_PREW,
18571 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000018572 .write = NULL,
18573 },
Stefan Tauneraf2db612011-12-02 21:48:17 +000018574
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000018575 {
18576 .vendor = "Generic",
18577 .name = "unknown SPI chip (REMS)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018578 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000018579 .manufacture_id = GENERIC_MANUF_ID,
18580 .model_id = GENERIC_DEVICE_ID,
18581 .total_size = 0,
18582 .page_size = 256,
18583 .tested = TEST_BAD_PREW,
18584 .probe = probe_spi_rems,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000018585 .write = NULL,
18586 },
18587
Stefan Tauner96658be2014-05-26 22:05:31 +000018588 {0}
Stephan Guilloux72cf5652009-04-21 01:46:07 +000018589};
Stefan Tauner96658be2014-05-26 22:05:31 +000018590
18591const unsigned int flashchips_size = ARRAY_SIZE(flashchips);