blob: fc646b39a76cbb28ac864a3efa132531a9aacca0 [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
Nico Huberc3b02dc2023-08-12 01:13:45 +020029 * assist with merging the Chromium fork of flashprog.
Alan Green1f9cc7d2019-07-01 11:10:45 +100030 *
31 * The usual intention is that that this list is sorted by vendor, then chip
Nico Huberc3b02dc2023-08-12 01:13:45 +020032 * family and chip density, which is useful for the output of 'flashprog -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
Nico Huberc3b02dc2023-08-12 01:13:45 +02001106 * and discussed on the flashprog mailing list on 2010-07-12.
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001107 */
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 */
Nikolai Artemievd32e18b2022-02-15 18:06:55 +11002379 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_WRSR2,
Hal Martin49e23d22018-05-27 14:18:43 +02002380 .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},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +11002407 .reg_bits =
2408 {
2409 .srp = {STATUS1, 7, RW},
2410 .srl = {STATUS2, 0, RW},
2411 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
2412 .tb = {STATUS1, 5, RW},
2413 .sec = {STATUS1, 6, RW},
2414 .cmp = {STATUS2, 6, RW},
2415 },
2416 .decode_range = decode_range_spi25,
Hal Martin49e23d22018-05-27 14:18:43 +02002417 },
2418
2419 {
Stanislav Sedovf5775442018-03-07 14:16:51 -08002420 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002421 .name = "AT26DF041",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002422 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002423 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002424 .model_id = ATMEL_AT26DF041,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002425 .total_size = 512,
2426 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002427 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner94b39b42012-10-27 00:06:02 +00002428 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002429 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002430 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002431 .block_erasers =
2432 {
2433 {
Stefan Tauner94b39b42012-10-27 00:06:02 +00002434 .eraseblocks = { {256, 2048} },
2435 .block_erase = spi_block_erase_81,
2436 }, {
2437 .eraseblocks = { {2 * 1024, 256} },
2438 .block_erase = spi_block_erase_50,
2439 }, {
Sean Nelson89187292009-12-23 12:02:55 +00002440 .eraseblocks = { {4 * 1024, 128} },
2441 .block_erase = spi_block_erase_20,
2442 }
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002443 },
Stefan Taunercecb2c52013-06-20 22:55:41 +00002444 .printlock = spi_prettyprint_status_register_plain,
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002445 /* Supports also an incompatible page write (of exactly 256 B) and an auto-erasing write. */
Stefan Tauner94b39b42012-10-27 00:06:02 +00002446 .write = spi_chip_write_1,
2447 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002448 .voltage = {2700, 3600}, /* 3.0-3.6V for higher speed, 2.7-3.6V normal */
FENG yu ningff692fb2008-12-08 18:15:10 +00002449 },
2450
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002451 {
2452 .vendor = "Atmel",
2453 .name = "AT26DF081A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002454 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002455 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002456 .model_id = ATMEL_AT26DF081A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002457 .total_size = 1024,
2458 .page_size = 256,
Mathias Krause2c3afa32011-01-17 07:45:54 +00002459 .feature_bits = FEATURE_WRSR_WREN,
2460 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002461 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002462 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002463 .block_erasers =
2464 {
2465 {
2466 .eraseblocks = { {4 * 1024, 256} },
2467 .block_erase = spi_block_erase_20,
2468 }, {
2469 .eraseblocks = { {32 * 1024, 32} },
2470 .block_erase = spi_block_erase_52,
2471 }, {
2472 .eraseblocks = { {64 * 1024, 16} },
2473 .block_erase = spi_block_erase_d8,
2474 }, {
2475 .eraseblocks = { {1024 * 1024, 1} },
2476 .block_erase = spi_block_erase_60,
2477 }, {
2478 .eraseblocks = { {1024 * 1024, 1} },
2479 .block_erase = spi_block_erase_c7,
2480 }
2481 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002482 .printlock = spi_prettyprint_status_register_at26df081a,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002483 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002484 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002485 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002486 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002487 },
2488
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002489 {
2490 .vendor = "Atmel",
2491 .name = "AT26DF161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002492 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002493 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002494 .model_id = ATMEL_AT26DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002495 .total_size = 2048,
2496 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002497 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +00002498 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002499 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002500 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002501 .block_erasers =
2502 {
2503 {
2504 .eraseblocks = { {4 * 1024, 512} },
2505 .block_erase = spi_block_erase_20,
2506 }, {
2507 .eraseblocks = { {32 * 1024, 64} },
2508 .block_erase = spi_block_erase_52,
2509 }, {
2510 .eraseblocks = { {64 * 1024, 32} },
2511 .block_erase = spi_block_erase_d8,
2512 }, {
2513 .eraseblocks = { {2 * 1024 * 1024, 1} },
2514 .block_erase = spi_block_erase_60,
2515 }, {
2516 .eraseblocks = { {2 * 1024 * 1024, 1} },
2517 .block_erase = spi_block_erase_c7,
2518 }
2519 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00002520 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002521 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002522 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002523 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002524 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002525 },
2526
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002527 {
2528 .vendor = "Atmel",
2529 .name = "AT26DF161A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002530 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002531 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002532 .model_id = ATMEL_AT26DF161A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002533 .total_size = 2048,
2534 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002535 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002536 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002537 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002538 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002539 .block_erasers =
2540 {
2541 {
2542 .eraseblocks = { {4 * 1024, 512} },
2543 .block_erase = spi_block_erase_20,
2544 }, {
2545 .eraseblocks = { {32 * 1024, 64} },
2546 .block_erase = spi_block_erase_52,
2547 }, {
2548 .eraseblocks = { {64 * 1024, 32} },
2549 .block_erase = spi_block_erase_d8,
2550 }, {
2551 .eraseblocks = { {2 * 1024 * 1024, 1} },
2552 .block_erase = spi_block_erase_60,
2553 }, {
2554 .eraseblocks = { {2 * 1024 * 1024, 1} },
2555 .block_erase = spi_block_erase_c7,
2556 }
2557 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002558 .printlock = spi_prettyprint_status_register_at26df081a,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002559 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002560 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002561 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002562 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002563 },
2564
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002565 {
2566 .vendor = "Atmel",
2567 .name = "AT26F004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002568 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002569 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002570 .model_id = ATMEL_AT26F004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002571 .total_size = 512,
2572 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002573 .feature_bits = FEATURE_WRSR_WREN,
Alan Green908adf42019-07-03 15:34:06 +10002574 .tested = {.probe = NT, .read = NT, .erase = NT, .write = BAD},
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002575 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002576 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002577 .block_erasers =
2578 {
2579 {
2580 .eraseblocks = { {4 * 1024, 128} },
2581 .block_erase = spi_block_erase_20,
2582 }, {
2583 .eraseblocks = { {32 * 1024, 16} },
2584 .block_erase = spi_block_erase_52,
2585 }, {
2586 .eraseblocks = { {64 * 1024, 8} },
2587 .block_erase = spi_block_erase_d8,
2588 }, {
2589 .eraseblocks = { {512 * 1024, 1} },
2590 .block_erase = spi_block_erase_60,
2591 }, {
2592 .eraseblocks = { {512 * 1024, 1} },
2593 .block_erase = spi_block_erase_c7,
2594 }
2595 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002596 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Alan Greencbb85c02019-06-25 13:42:34 +10002597 .write = NULL, /* Incompatible Page write */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002598 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002599 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002600 },
2601
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002602 {
2603 .vendor = "Atmel",
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002604 .name = "AT29C010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002605 .bustype = BUS_PARALLEL,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002606 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002607 .model_id = ATMEL_AT29C010A,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002608 .total_size = 128,
2609 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00002610 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002611 .tested = TEST_OK_PRE,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002612 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00002613 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00002614 .block_erasers =
2615 {
2616 {
2617 .eraseblocks = { {128 * 1024, 1} },
2618 .block_erase = erase_chip_block_jedec,
2619 }
2620 },
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002621 .write = write_jedec, /* FIXME */
2622 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002623 .voltage = {4500, 5500},
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002624 },
2625
2626 {
2627 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002628 .name = "AT29C020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002629 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002630 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002631 .model_id = ATMEL_AT29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002632 .total_size = 256,
2633 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002634 .feature_bits = FEATURE_LONG_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00002635 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002636 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00002637 .probe_timing = 10000, /* 10ms */
Sean Nelson89187292009-12-23 12:02:55 +00002638 .block_erasers =
2639 {
2640 {
2641 .eraseblocks = { {256 * 1024, 1} },
2642 .block_erase = erase_chip_block_jedec,
2643 }
2644 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002645 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002646 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002647 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002648 },
2649
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002650 {
2651 .vendor = "Atmel",
2652 .name = "AT29C040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002653 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002654 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002655 .model_id = ATMEL_AT29C040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002656 .total_size = 512,
2657 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002658 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002659 .tested = TEST_UNTESTED,
2660 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00002661 .probe_timing = 10000, /* 10 ms */
Sean Nelson89187292009-12-23 12:02:55 +00002662 .block_erasers =
2663 {
2664 {
2665 .eraseblocks = { {512 * 1024, 1} },
2666 .block_erase = erase_chip_block_jedec,
2667 }
2668 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002669 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002670 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002671 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002672 },
2673
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002674 {
2675 .vendor = "Atmel",
Alan Green1f9cc7d2019-07-01 11:10:45 +10002676 .name = "AT29C512",
2677 .bustype = BUS_PARALLEL,
2678 .manufacture_id = ATMEL_ID,
2679 .model_id = ATMEL_AT29C512,
2680 .total_size = 64,
2681 .page_size = 128,
2682 .feature_bits = FEATURE_LONG_RESET,
2683 .tested = TEST_OK_PREW,
2684 .probe = probe_jedec,
2685 .probe_timing = 10000, /* 10mS, Enter=Exec */
2686 .block_erasers =
2687 {
2688 {
2689 .eraseblocks = { {64 * 1024, 1} },
2690 .block_erase = erase_chip_block_jedec,
2691 }
2692 },
2693 .write = write_jedec,
2694 .read = read_memmapped,
2695 .voltage = {4500, 5500},
2696 },
2697
2698 {
2699 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002700 .name = "AT45CS1282",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002701 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002702 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002703 .model_id = ATMEL_AT45CS1282,
Alan Greencbb85c02019-06-25 13:42:34 +10002704 .total_size = 16896, /* No power of two sizes */
2705 .page_size = 1056, /* No power of two sizes */
Steven Zakulec3603a282012-05-02 20:07:57 +00002706 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner1dd5d3a2013-08-27 18:02:19 +00002707 /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */
2708 .feature_bits = FEATURE_OTP,
2709 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002710 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002711 .probe_timing = TIMING_ZERO,
Stefan Tauner1dd5d3a2013-08-27 18:02:19 +00002712 .block_erasers =
2713 {
2714 {
2715 .eraseblocks = {
2716 {8 * 1056, 1}, /* sector 0a: opcode 50h */
2717 {248 * 1056, 1}, /* sector 0b: opcode 7Ch */
2718 {256 * 1056, 63}, /* sectors 1 - 63: opcode 7Ch */
2719 },
2720 .block_erase = spi_erase_at45cs_sector,
2721 }
2722 },
2723 .printlock = spi_prettyprint_status_register_plain,
Stefan Tauner1dd5d3a2013-08-27 18:02:19 +00002724 .write = spi_write_at45db,
2725 .read = spi_read_at45db,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002726 .voltage = {2700, 3600},
Alan Greenc1863ca2019-06-27 15:08:03 +10002727 .gran = write_gran_1056bytes,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002728 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002729
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002730 {
2731 .vendor = "Atmel",
2732 .name = "AT45DB011D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002733 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002734 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002735 .model_id = ATMEL_AT45DB011D,
Alan Greencbb85c02019-06-25 13:42:34 +10002736 .total_size = 128, /* or 132, determined from status register */
2737 .page_size = 256, /* or 264, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00002738 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002739 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2740 .feature_bits = FEATURE_OTP,
Stefan Tauner5c316f92015-02-08 21:57:52 +00002741 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002742 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002743 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002744 .block_erasers =
2745 {
2746 {
2747 .eraseblocks = { {256, 512} },
2748 .block_erase = spi_erase_at45db_page,
2749 }, {
2750 .eraseblocks = { {8 * 256, 512/8} },
2751 .block_erase = spi_erase_at45db_block,
2752 }, {
2753 .eraseblocks = {
2754 {8 * 256, 1},
2755 {120 * 256, 1},
2756 {128 * 256, 3},
2757 },
2758 .block_erase = spi_erase_at45db_sector
2759 }, {
2760 .eraseblocks = { {128 * 1024, 1} },
2761 .block_erase = spi_erase_at45db_chip,
2762 }
2763 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002764 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10002765 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002766 /* granularity will be set by the probing function. */
2767 .write = spi_write_at45db,
2768 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002769 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002770 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002771
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002772 {
2773 .vendor = "Atmel",
2774 .name = "AT45DB021D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002775 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002776 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002777 .model_id = ATMEL_AT45DB021D,
Alan Greencbb85c02019-06-25 13:42:34 +10002778 .total_size = 256, /* or 264, determined from status register */
2779 .page_size = 256, /* or 264, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00002780 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002781 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2782 .feature_bits = FEATURE_OTP,
Stefan Tauner6697f712014-08-06 15:09:15 +00002783 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002784 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002785 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002786 .block_erasers =
2787 {
2788 {
2789 .eraseblocks = { {256, 1024} },
2790 .block_erase = spi_erase_at45db_page,
2791 }, {
2792 .eraseblocks = { {8 * 256, 1024/8} },
2793 .block_erase = spi_erase_at45db_block,
2794 }, {
2795 .eraseblocks = {
2796 {8 * 256, 1},
2797 {120 * 256, 1},
2798 {128 * 256, 7},
2799 },
2800 .block_erase = spi_erase_at45db_sector
2801 }, {
2802 .eraseblocks = { {256 * 1024, 1} },
2803 .block_erase = spi_erase_at45db_chip,
2804 }
2805 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002806 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10002807 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002808 /* granularity will be set by the probing function. */
2809 .write = spi_write_at45db,
2810 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002811 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002812 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002813
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002814 {
2815 .vendor = "Atmel",
2816 .name = "AT45DB041D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002817 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002818 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002819 .model_id = ATMEL_AT45DB041D,
Alan Greencbb85c02019-06-25 13:42:34 +10002820 .total_size = 512, /* or 528, determined from status register */
2821 .page_size = 256, /* or 264, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00002822 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002823 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2824 .feature_bits = FEATURE_OTP,
2825 .tested = TEST_OK_PREW,
2826 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002827 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002828 .block_erasers =
2829 {
2830 {
2831 .eraseblocks = { {256, 2048} },
2832 .block_erase = spi_erase_at45db_page,
2833 }, {
2834 .eraseblocks = { {8 * 256, 2048/8} },
2835 .block_erase = spi_erase_at45db_block,
2836 }, {
2837 .eraseblocks = {
2838 {8 * 256, 1},
2839 {248 * 256, 1},
2840 {256 * 256, 7},
2841 },
2842 .block_erase = spi_erase_at45db_sector
2843 }, {
2844 .eraseblocks = { {512 * 1024, 1} },
2845 .block_erase = spi_erase_at45db_chip,
2846 }
2847 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002848 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10002849 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002850 /* granularity will be set by the probing function. */
2851 .write = spi_write_at45db,
2852 .read = spi_read_at45db, /* Fast read (0x0B) supported */
2853 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002854 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002855
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002856 {
2857 .vendor = "Atmel",
2858 .name = "AT45DB081D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002859 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002860 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002861 .model_id = ATMEL_AT45DB081D,
Alan Greencbb85c02019-06-25 13:42:34 +10002862 .total_size = 1024, /* or 1056, determined from status register */
2863 .page_size = 256, /* or 264, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00002864 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002865 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2866 .feature_bits = FEATURE_OTP,
Angel Pons250aeba2018-09-30 20:28:22 +02002867 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002868 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002869 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002870 .block_erasers =
2871 {
2872 {
2873 .eraseblocks = { {256, 4096} },
2874 .block_erase = spi_erase_at45db_page,
2875 }, {
2876 .eraseblocks = { {8 * 256, 4096/8} },
2877 .block_erase = spi_erase_at45db_block,
2878 }, {
2879 .eraseblocks = {
2880 {8 * 256, 1},
2881 {248 * 256, 1},
2882 {256 * 256, 15},
2883 },
2884 .block_erase = spi_erase_at45db_sector
2885 }, {
2886 .eraseblocks = { {1024 * 1024, 1} },
2887 .block_erase = spi_erase_at45db_chip,
2888 }
2889 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002890 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10002891 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002892 /* granularity will be set by the probing function. */
2893 .write = spi_write_at45db,
2894 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002895 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002896 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002897
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002898 {
2899 .vendor = "Atmel",
2900 .name = "AT45DB161D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002901 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002902 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002903 .model_id = ATMEL_AT45DB161D,
Alan Greencbb85c02019-06-25 13:42:34 +10002904 .total_size = 2048, /* or 2112, determined from status register */
2905 .page_size = 512, /* or 528, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00002906 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002907 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2908 .feature_bits = FEATURE_OTP,
2909 .tested = TEST_OK_PREW,
2910 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002911 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002912 .block_erasers =
2913 {
2914 {
2915 .eraseblocks = { {512, 4096} },
2916 .block_erase = spi_erase_at45db_page,
2917 }, {
2918 .eraseblocks = { {8 * 512, 4096/8} },
2919 .block_erase = spi_erase_at45db_block,
2920 }, {
2921 .eraseblocks = {
2922 {8 * 512, 1},
2923 {248 * 512, 1},
2924 {256 * 512, 15},
2925 },
2926 .block_erase = spi_erase_at45db_sector
2927 }, {
2928 .eraseblocks = { {2048 * 1024, 1} },
2929 .block_erase = spi_erase_at45db_chip,
2930 }
2931 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002932 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10002933 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002934 /* granularity will be set by the probing function. */
2935 .write = spi_write_at45db,
2936 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002937 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002938 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002939
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002940 {
2941 .vendor = "Atmel",
2942 .name = "AT45DB321C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002943 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002944 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002945 .model_id = ATMEL_AT45DB321C,
Alan Greencbb85c02019-06-25 13:42:34 +10002946 .total_size = 4224, /* No power of two sizes */
2947 .page_size = 528, /* No power of two sizes */
Steven Zakulec3603a282012-05-02 20:07:57 +00002948 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002949 /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */
2950 .feature_bits = FEATURE_OTP,
2951 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002952 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002953 .probe_timing = TIMING_ZERO,
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002954 .block_erasers =
2955 {
2956 {
2957 .eraseblocks = { {528, 8192} },
2958 .block_erase = spi_erase_at45db_page,
2959 }, {
2960 .eraseblocks = { {8 * 528, 8192/8} },
2961 .block_erase = spi_erase_at45db_block,
2962 }, /* Although the datasheets describes sectors (which can be write protected)
2963 * there seems to be no erase functions for them.
Stefan Tauner23e10b82016-01-23 16:16:49 +00002964 {
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002965 .eraseblocks = {
2966 {8 * 528, 1},
2967 {120 * 528, 1},
2968 {128 * 528, 63},
2969 },
2970 .block_erase = spi_erase_at45db_sector
2971 }, */ {
2972 .eraseblocks = { {4224 * 1024, 1} },
2973 .block_erase = spi_erase_at45db_chip,
2974 }
2975 },
2976 .printlock = spi_prettyprint_status_register_at45db, /* Bit 0 is undefined, no lockdown */
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002977 .write = spi_write_at45db,
2978 .read = spi_read_at45db_e8, /* 3 address and 4 dummy bytes */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002979 .voltage = {2700, 3600},
Alan Greenc1863ca2019-06-27 15:08:03 +10002980 .gran = write_gran_528bytes,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002981 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002982
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002983 {
2984 .vendor = "Atmel",
2985 .name = "AT45DB321D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002986 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002987 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002988 .model_id = ATMEL_AT45DB321D,
Alan Greencbb85c02019-06-25 13:42:34 +10002989 .total_size = 4096, /* or 4224, determined from status register */
2990 .page_size = 512, /* or 528, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00002991 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002992 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
Daniel Lenski65922a32012-02-15 23:40:23 +00002993 .feature_bits = FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +00002994 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002995 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002996 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002997 .block_erasers =
2998 {
2999 {
3000 .eraseblocks = { {512, 8192} },
3001 .block_erase = spi_erase_at45db_page,
3002 }, {
3003 .eraseblocks = { {8 * 512, 8192/8} },
3004 .block_erase = spi_erase_at45db_block,
3005 }, {
3006 .eraseblocks = {
3007 {8 * 512, 1},
3008 {120 * 512, 1},
3009 {128 * 512, 63},
3010 },
3011 .block_erase = spi_erase_at45db_sector
3012 }, {
3013 .eraseblocks = { {4096 * 1024, 1} },
3014 .block_erase = spi_erase_at45db_chip,
3015 }
3016 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003017 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10003018 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003019 /* granularity will be set by the probing function. */
3020 .write = spi_write_at45db,
3021 .read = spi_read_at45db, /* Fast read (0x0B) supported */
3022 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
3023 },
3024
3025 {
3026 .vendor = "Atmel",
3027 .name = "AT45DB321E",
3028 .bustype = BUS_SPI,
3029 .manufacture_id = ATMEL_ID,
3030 .model_id = ATMEL_AT45DB321C,
Alan Greencbb85c02019-06-25 13:42:34 +10003031 .total_size = 4096, /* or 4224, determined from status register */
3032 .page_size = 512, /* or 528, determined from status register */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003033 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
3034 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
3035 .feature_bits = FEATURE_OTP,
3036 .tested = TEST_UNTESTED,
3037 .probe = probe_spi_at45db,
3038 .probe_timing = TIMING_ZERO,
3039 .block_erasers =
3040 {
3041 {
3042 .eraseblocks = { {512, 8192} },
3043 .block_erase = spi_erase_at45db_page,
3044 }, {
3045 .eraseblocks = { {8 * 512, 8192/8} },
3046 .block_erase = spi_erase_at45db_block,
3047 }, {
3048 .eraseblocks = {
3049 {8 * 512, 1},
3050 {120 * 512, 1},
3051 {128 * 512, 63},
3052 },
3053 .block_erase = spi_erase_at45db_sector
3054 }, {
3055 .eraseblocks = { {4096 * 1024, 1} },
3056 .block_erase = spi_erase_at45db_chip,
3057 }
3058 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003059 .printlock = spi_prettyprint_status_register_at45db, /* has a 2nd status register */
Alan Greenc1863ca2019-06-27 15:08:03 +10003060 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003061 /* granularity will be set by the probing function. */
3062 .write = spi_write_at45db,
3063 .read = spi_read_at45db, /* Fast read (0x0B) supported */
3064 .voltage = {2500, 3600}, /* 2.3-3.6V & 2.5-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00003065 },
FENG yu ningff692fb2008-12-08 18:15:10 +00003066
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003067 {
3068 .vendor = "Atmel",
3069 .name = "AT45DB642D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003070 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003071 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003072 .model_id = ATMEL_AT45DB642D,
Alan Greencbb85c02019-06-25 13:42:34 +10003073 .total_size = 8192, /* or 8448, determined from status register */
3074 .page_size = 1024, /* or 1056, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00003075 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003076 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
3077 .feature_bits = FEATURE_OTP,
Stefan Tauner5c316f92015-02-08 21:57:52 +00003078 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003079 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003080 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003081 .block_erasers =
3082 {
3083 {
3084 .eraseblocks = { {1024, 8192} },
3085 .block_erase = spi_erase_at45db_page,
3086 }, {
3087 .eraseblocks = { {8 * 1024, 8192/8} },
3088 .block_erase = spi_erase_at45db_block,
3089 }, {
3090 .eraseblocks = {
3091 {8 * 1024, 1},
3092 {248 * 1024, 1},
3093 {256 * 1024, 31},
3094 },
3095 .block_erase = spi_erase_at45db_sector
3096 }, {
3097 .eraseblocks = { {8192 * 1024, 1} },
3098 .block_erase = spi_erase_at45db_chip,
3099 }
3100 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003101 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10003102 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003103 /* granularity will be set by the probing function. */
3104 .write = spi_write_at45db,
3105 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003106 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00003107 },
FENG yu ningff692fb2008-12-08 18:15:10 +00003108
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003109 {
3110 .vendor = "Atmel",
Alan Green1f9cc7d2019-07-01 11:10:45 +10003111 .name = "AT49(H)F010",
3112 .bustype = BUS_PARALLEL,
3113 .manufacture_id = ATMEL_ID,
3114 .model_id = ATMEL_AT49F010,
3115 .total_size = 128,
3116 .page_size = 0, /* unused */
3117 .feature_bits = FEATURE_EITHER_RESET,
3118 .tested = TEST_OK_PREW,
3119 .probe = probe_jedec,
3120 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3121 .block_erasers =
3122 {
3123 {
3124 .eraseblocks = { {128 * 1024, 1} },
3125 .block_erase = erase_chip_block_jedec,
3126 }
3127 },
3128 .printlock = printlock_at49f,
3129 .write = write_jedec_1,
3130 .read = read_memmapped,
3131 .voltage = {4500, 5500},
3132 },
3133
3134 {
3135 .vendor = "Atmel",
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003136 .name = "AT49BV512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003137 .bustype = BUS_PARALLEL,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003138 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003139 .model_id = ATMEL_AT49BV512,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003140 .total_size = 64,
3141 .page_size = 64,
Sean Nelson35727f72010-01-28 23:55:12 +00003142 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +00003143 .tested = TEST_OK_PREW,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003144 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003145 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00003146 .block_erasers =
3147 {
3148 {
3149 .eraseblocks = { {64 * 1024, 1} },
3150 .block_erase = erase_chip_block_jedec,
3151 }
3152 },
Sean Nelson35727f72010-01-28 23:55:12 +00003153 .write = write_jedec_1,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003154 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003155 .voltage = {2700, 3600},
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003156 },
3157
3158 {
3159 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003160 .name = "AT49F002(N)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003161 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003162 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003163 .model_id = ATMEL_AT49F002N,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003164 .total_size = 256,
3165 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00003166 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003167 .tested = TEST_UNTESTED,
3168 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003169 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00003170 .block_erasers =
3171 {
3172 {
3173 .eraseblocks = {
3174 {16 * 1024, 1},
3175 {8 * 1024, 2},
3176 {96 * 1024, 1},
3177 {128 * 1024, 1},
3178 },
3179 .block_erase = erase_sector_jedec,
3180 }, {
3181 .eraseblocks = { {256 * 1024, 1} },
3182 .block_erase = erase_chip_block_jedec,
3183 }
3184 },
Sean Nelson35727f72010-01-28 23:55:12 +00003185 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003186 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003187 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003188 },
3189
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003190 {
3191 .vendor = "Atmel",
3192 .name = "AT49F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003193 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003194 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003195 .model_id = ATMEL_AT49F002NT,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003196 .total_size = 256,
3197 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00003198 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003199 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003200 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003201 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00003202 .block_erasers =
3203 {
3204 {
3205 .eraseblocks = {
3206 {128 * 1024, 1},
3207 {96 * 1024, 1},
3208 {8 * 1024, 2},
3209 {16 * 1024, 1},
3210 },
3211 .block_erase = erase_sector_jedec,
3212 }, {
3213 .eraseblocks = { {256 * 1024, 1} },
3214 .block_erase = erase_chip_block_jedec,
3215 }
3216 },
Sean Nelson35727f72010-01-28 23:55:12 +00003217 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003218 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003219 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003220 },
3221
Daniel Lenskidf90d3a2010-07-22 11:44:38 +00003222 {
Uwe Hermannc74e9772011-09-08 19:55:18 +00003223 .vendor = "Atmel",
David Borgf5a30f62012-04-15 13:16:32 +00003224 .name = "AT49F020",
3225 .bustype = BUS_PARALLEL,
3226 .manufacture_id = ATMEL_ID,
3227 .model_id = ATMEL_AT49F020,
3228 .total_size = 256,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00003229 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00003230 .feature_bits = FEATURE_EITHER_RESET,
3231 .tested = TEST_OK_PRE,
3232 .probe = probe_jedec,
3233 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3234 .block_erasers =
3235 {
3236 {
3237 .eraseblocks = { {256 * 1024, 1} },
3238 .block_erase = erase_chip_block_jedec,
3239 }
3240 /* Chip features an optional permanent write protection
3241 * of the first 8 kB. The erase function is the same as
3242 * above, but 00000H to 01FFFH will not be erased.
3243 * FIXME: add another eraser when partial erasers are
3244 * supported.
3245 */
3246 },
3247 .printlock = printlock_at49f,
3248 .write = write_jedec_1,
3249 .read = read_memmapped,
3250 .voltage = {4500, 5500},
3251 },
3252
3253 {
3254 .vendor = "Atmel",
3255 .name = "AT49F040",
3256 .bustype = BUS_PARALLEL,
3257 .manufacture_id = ATMEL_ID,
3258 .model_id = ATMEL_AT49F040,
3259 .total_size = 512,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00003260 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00003261 .feature_bits = FEATURE_EITHER_RESET,
3262 .tested = TEST_UNTESTED,
3263 .probe = probe_jedec,
3264 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3265 .block_erasers =
3266 {
3267 {
3268 .eraseblocks = { {512 * 1024, 1} },
3269 .block_erase = erase_chip_block_jedec,
3270 }
3271 /* Chip features an optional permanent write protection
3272 * of the first 16 kB. The erase function is the same as
3273 * above, but 00000H to 03FFFH will not be erased.
3274 * FIXME: add another eraser when partial erasers are
3275 * supported.
3276 */
3277 },
3278 .printlock = printlock_at49f,
3279 .write = write_jedec_1,
3280 .read = read_memmapped,
3281 .voltage = {4500, 5500},
3282 },
3283
3284 {
3285 .vendor = "Atmel",
Andrew Morgan8dd97f92012-08-13 23:43:46 +00003286 .name = "AT49F080",
3287 .bustype = BUS_PARALLEL,
3288 .manufacture_id = ATMEL_ID,
3289 .model_id = ATMEL_AT49F080,
3290 .total_size = 1024,
3291 .page_size = 0, /* unused */
3292 .feature_bits = FEATURE_EITHER_RESET,
3293 .tested = TEST_UNTESTED,
3294 .probe = probe_jedec,
3295 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3296 .block_erasers =
3297 {
3298 {
3299 .eraseblocks = { {1024 * 1024, 1} },
3300 .block_erase = erase_chip_block_jedec,
3301 }
3302 /* Chip features an optional permanent write protection
3303 * of the first 16 kB. The erase function is the same as
3304 * above, but 00000H to 03FFFH will not be erased.
3305 * FIXME: add another eraser when partial erasers are
3306 * supported.
3307 */
3308 },
3309 .printlock = printlock_at49f,
3310 .write = write_jedec_1,
3311 .read = read_memmapped,
3312 .voltage = {4500, 5500},
3313 },
3314
3315 {
3316 /* 'top' version of AT49F080. equal in all aspects but the boot block address */
3317 .vendor = "Atmel",
3318 .name = "AT49F080T",
3319 .bustype = BUS_PARALLEL,
3320 .manufacture_id = ATMEL_ID,
3321 .model_id = ATMEL_AT49F080T,
3322 .total_size = 1024,
3323 .page_size = 0, /* unused */
3324 .feature_bits = FEATURE_EITHER_RESET,
3325 .tested = TEST_UNTESTED,
3326 .probe = probe_jedec,
3327 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3328 .block_erasers =
3329 {
3330 {
3331 .eraseblocks = { {1024 * 1024, 1} },
3332 .block_erase = erase_chip_block_jedec,
3333 }
3334 /* Chip features an optional permanent write protection
3335 * of the first 16 kB. The erase function is the same as
3336 * above, but FC000H to FFFFFH will not be erased.
3337 * FIXME: add another eraser when partial erasers are
3338 * supported.
3339 */
3340 },
3341 .printlock = printlock_at49f,
3342 .write = write_jedec_1,
3343 .read = read_memmapped,
3344 .voltage = {4500, 5500},
3345 },
3346
3347 {
3348 .vendor = "Atmel",
Uwe Hermannc74e9772011-09-08 19:55:18 +00003349 .name = "AT49LH002",
3350 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
3351 .manufacture_id = ATMEL_ID,
3352 .model_id = ATMEL_AT49LH002,
3353 .total_size = 256,
3354 .page_size = 0, /* unused */
Stefan Tauner7de93932014-08-03 13:05:45 +00003355 .feature_bits = FEATURE_REGISTERMAP,
Uwe Hermannc74e9772011-09-08 19:55:18 +00003356 .tested = TEST_UNTESTED,
Stefan Tauner7de93932014-08-03 13:05:45 +00003357 .probe = probe_82802ab,
3358 .probe_timing = TIMING_ZERO,
Uwe Hermannc74e9772011-09-08 19:55:18 +00003359 .block_erasers =
3360 {
3361 {
3362 .eraseblocks = {
3363 {64 * 1024, 3},
3364 {32 * 1024, 1},
3365 {8 * 1024, 2},
3366 {16 * 1024, 1},
3367 },
Stefan Tauner7de93932014-08-03 13:05:45 +00003368 .block_erase = NULL, /* TODO: Implement. */
Uwe Hermannc74e9772011-09-08 19:55:18 +00003369 }, {
3370 .eraseblocks = {
3371 {64 * 1024, 4},
3372 },
Stefan Tauner7de93932014-08-03 13:05:45 +00003373 .block_erase = erase_block_82802ab,
3374 },
3375 },
3376 .printlock = printlock_regspace2_block_eraser_0,
3377 .unlock = unlock_regspace2_block_eraser_0,
3378 .write = write_82802ab,
3379 .read = read_memmapped,
3380 .voltage = {3000, 3600},
3381 },
3382
3383 {
3384 .vendor = "Atmel",
Stefan Tauner7de93932014-08-03 13:05:45 +00003385 .name = "AT49LH004",
3386 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
3387 .manufacture_id = ATMEL_ID,
3388 .model_id = ATMEL_AT49LH004,
3389 .total_size = 512,
3390 .page_size = 0, /* unused */
3391 .feature_bits = FEATURE_REGISTERMAP,
3392 .tested = TEST_UNTESTED,
3393 .probe = probe_82802ab,
3394 .probe_timing = TIMING_ZERO,
3395 .block_erasers =
3396 {
3397 {
3398 .eraseblocks = {
3399 {64 * 1024, 7},
3400 {32 * 1024, 1},
3401 {8 * 1024, 2},
3402 {16 * 1024, 1},
3403 },
3404 .block_erase = erase_block_82802ab,
3405 }, {
3406 .eraseblocks = {
3407 {64 * 1024, 8},
3408 },
Uwe Hermannc74e9772011-09-08 19:55:18 +00003409 .block_erase = NULL, /* TODO: Implement. */
3410 },
3411 },
Stefan Tauner7de93932014-08-03 13:05:45 +00003412 .printlock = printlock_regspace2_block_eraser_0,
3413 .unlock = unlock_regspace2_block_eraser_0,
Uwe Hermannc74e9772011-09-08 19:55:18 +00003414 .write = write_82802ab,
3415 .read = read_memmapped,
3416 .voltage = {3000, 3600},
3417 },
3418
3419 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003420 .vendor = "Atmel",
3421 .name = "AT49LH00B4",
3422 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
3423 .manufacture_id = ATMEL_ID,
3424 .model_id = ATMEL_AT49LH00B4,
3425 .total_size = 512,
Andrew Morganca081462011-09-13 22:05:44 +00003426 .page_size = 0, /* unused */
Alan Green1f9cc7d2019-07-01 11:10:45 +10003427 .feature_bits = FEATURE_REGISTERMAP,
3428 .tested = TEST_UNTESTED,
3429 .probe = probe_82802ab,
Andrew Morganca081462011-09-13 22:05:44 +00003430 .probe_timing = TIMING_ZERO,
3431 .block_erasers =
3432 {
3433 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003434 .eraseblocks = {
3435 {8 * 1024, 2},
3436 {16 * 1024, 1},
3437 {32 * 1024, 1},
3438 {64 * 1024, 7},
3439 },
3440 .block_erase = NULL, /* TODO: Implement. */
3441 }, {
3442 .eraseblocks = {
3443 {64 * 1024, 8},
3444 },
3445 .block_erase = erase_block_82802ab,
Andrew Morganca081462011-09-13 22:05:44 +00003446 },
3447 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10003448 .printlock = printlock_regspace2_block_eraser_0,
3449 .unlock = unlock_regspace2_block_eraser_0,
3450 .write = write_82802ab,
Andrew Morganca081462011-09-13 22:05:44 +00003451 .read = read_memmapped,
Alan Green1f9cc7d2019-07-01 11:10:45 +10003452 .voltage = {3000, 3600},
Andrew Morganca081462011-09-13 22:05:44 +00003453 },
3454
3455 {
Angel Pons1ebda782021-04-20 21:39:11 +02003456 .vendor = "Boya/BoHong Microelectronics",
Christian Kudera475a7ee2021-04-20 22:50:01 +02003457 .name = "B.25D16A",
3458 .bustype = BUS_SPI,
3459 .manufacture_id = BOYA_BOHONG_ID,
3460 .model_id = BOYA_BOHONG_B_25D16A,
3461 .total_size = 2048,
3462 .page_size = 256,
3463 .feature_bits = FEATURE_WRSR_WREN,
3464 .tested = TEST_OK_PR,
3465 .probe = probe_spi_rdid,
3466 .probe_timing = TIMING_ZERO,
3467 .block_erasers =
3468 {
3469 {
3470 .eraseblocks = { {4 * 1024, 512} },
3471 .block_erase = spi_block_erase_20,
3472 }, {
3473 .eraseblocks = { {32 * 1024, 64} },
3474 .block_erase = spi_block_erase_52,
3475 }, {
3476 .eraseblocks = { {64 * 1024, 32} },
3477 .block_erase = spi_block_erase_d8,
3478 }, {
3479 .eraseblocks = { {2 * 1024 * 1024, 1} },
3480 .block_erase = spi_block_erase_60,
3481 }, {
3482 .eraseblocks = { {2 * 1024 * 1024, 1} },
3483 .block_erase = spi_block_erase_c7,
3484 }
3485 },
3486 .printlock = spi_prettyprint_status_register_bp2_srwd,
3487 .unlock = spi_disable_blockprotect_bp2_srwd,
3488 .write = spi_chip_write_256,
3489 .read = spi_chip_read,
3490 .voltage = {2700, 3600},
3491 },
3492
3493 {
3494 .vendor = "Boya/BoHong Microelectronics",
Angel Pons1ebda782021-04-20 21:39:11 +02003495 .name = "B.25Q128AS",
Jack Olsen73ae5ef2020-08-08 21:12:13 -05003496 .bustype = BUS_SPI,
Angel Pons1ebda782021-04-20 21:39:11 +02003497 .manufacture_id = BOYA_BOHONG_ID,
3498 .model_id = BOYA_BOHONG_B_25Q128AS,
Jack Olsen73ae5ef2020-08-08 21:12:13 -05003499 .total_size = 16384,
3500 .page_size = 256,
3501 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
3502 .tested = TEST_OK_PREW,
3503 .probe = probe_spi_rdid,
3504 .probe_timing = TIMING_ZERO,
3505 .block_erasers =
3506 {
3507 {
3508 .eraseblocks = { {4 * 1024, 4096} },
3509 .block_erase = spi_block_erase_20,
3510 }, {
3511 .eraseblocks = { {32 * 1024, 512} },
3512 .block_erase = spi_block_erase_52,
3513 }, {
3514 .eraseblocks = { {64 * 1024, 256} },
3515 .block_erase = spi_block_erase_d8,
3516 }, {
3517 .eraseblocks = { {16 * 1024 * 1024, 1} },
3518 .block_erase = spi_block_erase_60,
3519 }, {
3520 .eraseblocks = { {16 * 1024 * 1024, 1} },
3521 .block_erase = spi_block_erase_c7,
3522 }
3523 },
3524 .printlock = spi_prettyprint_status_register_plain,
3525 .unlock = spi_disable_blockprotect_at25fs040,
3526 .write = spi_chip_write_256,
3527 .read = spi_chip_read,
3528 .voltage = {2700, 3600},
3529 },
3530
3531 {
Joshua Roysf1324e02010-09-16 00:51:51 +00003532 .vendor = "Bright",
3533 .name = "BM29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003534 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00003535 .manufacture_id = BRIGHT_ID,
3536 .model_id = BRIGHT_BM29F040,
3537 .total_size = 512,
3538 .page_size = 64 * 1024,
3539 .feature_bits = FEATURE_EITHER_RESET,
3540 .tested = TEST_OK_PR,
3541 .probe = probe_jedec,
3542 .probe_timing = TIMING_ZERO,
3543 .block_erasers =
3544 {
3545 {
3546 .eraseblocks = { {64 * 1024, 8} },
3547 .block_erase = erase_sector_jedec,
3548 }, {
3549 .eraseblocks = { {512 * 1024, 1} },
3550 .block_erase = erase_chip_block_jedec,
3551 },
3552 },
3553 .write = write_jedec_1,
3554 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003555 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00003556 },
3557
3558 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003559 .vendor = "Catalyst",
3560 .name = "CAT28F512",
3561 .bustype = BUS_PARALLEL,
3562 .manufacture_id = CATALYST_ID,
3563 .model_id = CATALYST_CAT28F512,
3564 .total_size = 64,
3565 .page_size = 0, /* unused */
3566 .feature_bits = 0,
Alan Green908adf42019-07-03 15:34:06 +10003567 .tested = {.probe = OK, .read = OK, .erase = BAD, .write = BAD},
Alan Green1f9cc7d2019-07-01 11:10:45 +10003568 .probe = probe_jedec, /* FIXME! */
3569 .probe_timing = TIMING_ZERO,
3570 .block_erasers =
3571 {
3572 {
3573 .eraseblocks = { {64 * 1024, 1} },
3574 .block_erase = NULL, /* TODO */
3575 },
3576 },
3577 .write = NULL, /* TODO */
3578 .read = read_memmapped,
3579 .voltage = {4500, 5500},
3580 },
3581
3582 {
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003583 .vendor = "ENE",
3584 .name = "KB9012 (EDI)",
3585 .bustype = BUS_SPI,
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003586 .total_size = 128,
3587 .page_size = 128,
3588 .feature_bits = FEATURE_ERASED_ZERO,
3589 .tested = TEST_OK_PREW,
Alan Greenc1863ca2019-06-27 15:08:03 +10003590 .spi_cmd_set = SPI_EDI,
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003591 .probe = edi_probe_kb9012,
3592 .probe_timing = TIMING_ZERO,
3593 .block_erasers =
3594 {
3595 {
3596 .eraseblocks = { {128, 1024} },
3597 .block_erase = edi_chip_block_erase,
3598 },
3599 },
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003600 .write = edi_chip_write,
3601 .read = edi_chip_read,
3602 .voltage = {2700, 3600},
Alan Greenc1863ca2019-06-27 15:08:03 +10003603 .gran = write_gran_128bytes,
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003604 },
3605
3606 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003607 .vendor = "ESI",
3608 .name = "ES25P16",
3609 .bustype = BUS_SPI,
3610 .manufacture_id = EXCEL_ID_NOPREFIX,
3611 .model_id = EXCEL_ES25P16,
3612 .total_size = 2 * 1024,
3613 .page_size = 256,
3614 /* 256-byte parameter page separate from memory array:
3615 * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
3616 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003617 .tested = TEST_UNTESTED,
Alan Green1f9cc7d2019-07-01 11:10:45 +10003618 .probe = probe_spi_rdid,
3619 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003620 .block_erasers =
3621 {
3622 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003623 .eraseblocks = { {64 * 1024, 32} },
3624 .block_erase = spi_block_erase_d8,
Sean Nelson54596372010-01-09 05:30:14 +00003625 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003626 .eraseblocks = { {2 * 1024 * 1024, 1} },
3627 .block_erase = spi_block_erase_c7,
Sean Nelson54596372010-01-09 05:30:14 +00003628 }
3629 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10003630 .printlock = spi_prettyprint_status_register_bp2_srwd,
3631 .unlock = spi_disable_blockprotect_bp2_srwd,
3632 .write = spi_chip_write_256,
3633 .read = spi_chip_read, /* Fast Read (0x0B) supported */
3634 .voltage = {2700, 3600},
3635 },
3636
3637 {
3638 .vendor = "ESI",
3639 .name = "ES25P40",
3640 .bustype = BUS_SPI,
3641 .manufacture_id = EXCEL_ID_NOPREFIX,
3642 .model_id = EXCEL_ES25P40,
3643 .total_size = 512,
3644 .page_size = 256,
3645 /* 256-byte parameter page separate from memory array:
3646 * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
3647 .feature_bits = FEATURE_WRSR_WREN,
3648 .tested = TEST_UNTESTED,
3649 .probe = probe_spi_rdid,
3650 .probe_timing = TIMING_ZERO,
3651 .block_erasers =
3652 {
3653 {
3654 .eraseblocks = { {64 * 1024, 8} },
3655 .block_erase = spi_block_erase_d8,
3656 }, {
3657 .eraseblocks = { {512 * 1024, 1} },
3658 .block_erase = spi_block_erase_c7,
3659 }
3660 },
3661 .printlock = spi_prettyprint_status_register_bp2_srwd,
3662 .unlock = spi_disable_blockprotect_bp2_srwd,
3663 .write = spi_chip_write_256,
3664 .read = spi_chip_read, /* Fast Read (0x0B) supported */
3665 .voltage = {2700, 3600},
3666 },
3667
3668 {
3669 .vendor = "ESI",
3670 .name = "ES25P80",
3671 .bustype = BUS_SPI,
3672 .manufacture_id = EXCEL_ID_NOPREFIX,
3673 .model_id = EXCEL_ES25P80,
3674 .total_size = 1024,
3675 .page_size = 256,
3676 /* 256-byte parameter page separate from memory array:
3677 * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
3678 .feature_bits = FEATURE_WRSR_WREN,
3679 .tested = TEST_UNTESTED,
3680 .probe = probe_spi_rdid,
3681 .probe_timing = TIMING_ZERO,
3682 .block_erasers =
3683 {
3684 {
3685 .eraseblocks = { {64 * 1024, 16} },
3686 .block_erase = spi_block_erase_d8,
3687 }, {
3688 .eraseblocks = { {1024 * 1024, 1} },
3689 .block_erase = spi_block_erase_c7,
3690 }
3691 },
3692 .printlock = spi_prettyprint_status_register_bp2_srwd,
3693 .unlock = spi_disable_blockprotect_bp2_srwd,
3694 .write = spi_chip_write_256,
3695 .read = spi_chip_read, /* Fast Read (0x0B) supported */
3696 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00003697 },
3698
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003699 {
Stefan Tauner352e50b2013-02-22 15:58:45 +00003700 .vendor = "ESMT",
Michael Karcher80a59ea2010-06-19 22:06:35 +00003701 .name = "F25L008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003702 .bustype = BUS_SPI,
Stefan Tauner352e50b2013-02-22 15:58:45 +00003703 .manufacture_id = ESMT_ID,
3704 .model_id = ESMT_F25L008A,
Michael Karcher80a59ea2010-06-19 22:06:35 +00003705 .total_size = 1024,
3706 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003707 .feature_bits = FEATURE_WRSR_EITHER,
Stefan Taunereb582572012-09-21 12:52:50 +00003708 .tested = TEST_OK_PREW,
Michael Karcher80a59ea2010-06-19 22:06:35 +00003709 .probe = probe_spi_rdid,
3710 .probe_timing = TIMING_ZERO,
3711 .block_erasers =
3712 {
3713 {
3714 .eraseblocks = { {4 * 1024, 256} },
3715 .block_erase = spi_block_erase_20,
3716 }, {
3717 .eraseblocks = { {64 * 1024, 16} },
3718 .block_erase = spi_block_erase_d8,
3719 }, {
3720 .eraseblocks = { {1024 * 1024, 1} },
3721 .block_erase = spi_block_erase_60,
3722 }, {
3723 .eraseblocks = { {1024 * 1024, 1} },
3724 .block_erase = spi_block_erase_c7,
3725 }
3726 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003727 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003728 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger9a795d82010-07-14 16:19:05 +00003729 .write = spi_chip_write_1,
Michael Karcher4497e862010-07-10 19:34:15 +00003730 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003731 .voltage = {2700, 3600},
Michael Karcher80a59ea2010-06-19 22:06:35 +00003732 },
3733
3734 {
Stefan Tauner85f09f72014-05-27 21:27:14 +00003735 .vendor = "ESMT",
3736 .name = "F25L32PA",
3737 .bustype = BUS_SPI,
3738 .manufacture_id = ESMT_ID,
3739 .model_id = ESMT_F25L32PA,
3740 .total_size = 4096,
3741 .page_size = 256,
3742 .feature_bits = FEATURE_WRSR_EITHER | FEATURE_OTP,
3743 .tested = TEST_UNTESTED,
3744 .probe = probe_spi_rdid,
3745 .probe_timing = TIMING_ZERO,
3746 .block_erasers =
3747 {
3748 {
3749 .eraseblocks = { {4 * 1024, 1024} },
3750 .block_erase = spi_block_erase_20,
3751 }, {
3752 .eraseblocks = { {64 * 1024, 64} },
3753 .block_erase = spi_block_erase_d8,
3754 }, {
3755 .eraseblocks = { {4 * 1024 * 1024, 1} },
3756 .block_erase = spi_block_erase_60,
3757 }, {
3758 .eraseblocks = { {4 * 1024 * 1024, 1} },
3759 .block_erase = spi_block_erase_c7,
3760 }
3761 },
3762 .printlock = spi_prettyprint_status_register_bp2_bpl,
3763 .unlock = spi_disable_blockprotect,
3764 .write = spi_chip_write_256,
3765 .read = spi_chip_read,
3766 .voltage = {2700, 3600},
3767 },
3768
3769 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003770 .vendor = "ESMT",
3771 .name = "F49B002UA",
3772 .bustype = BUS_PARALLEL,
3773 .manufacture_id = ESMT_ID,
3774 .model_id = ESMT_F49B002UA,
3775 .total_size = 256,
3776 .page_size = 4096,
3777 .feature_bits = FEATURE_EITHER_RESET,
3778 .tested = TEST_UNTESTED,
3779 .probe = probe_jedec,
3780 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3781 .block_erasers =
3782 {
3783 {
3784 .eraseblocks = {
3785 {128 * 1024, 1},
3786 {96 * 1024, 1},
3787 {8 * 1024, 2},
3788 {16 * 1024, 1},
3789 },
3790 .block_erase = erase_sector_jedec,
3791 }, {
3792 .eraseblocks = { {256 * 1024, 1} },
3793 .block_erase = erase_chip_block_jedec,
3794 }
3795 },
3796 .write = write_jedec_1,
3797 .read = read_memmapped,
3798 .voltage = {4500, 5500},
3799 },
3800
3801 {
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003802 .vendor = "Eon",
3803 .name = "EN25B05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003804 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003805 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003806 .model_id = EON_EN25B05,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003807 .total_size = 64,
3808 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003809 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003810 .tested = TEST_UNTESTED,
3811 .probe = probe_spi_rdid,
3812 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003813 .block_erasers =
3814 {
3815 {
3816 .eraseblocks = {
3817 {4 * 1024, 2},
3818 {8 * 1024, 1},
3819 {16 * 1024, 1},
3820 {32 * 1024, 1},
3821 },
3822 .block_erase = spi_block_erase_d8,
3823 }, {
3824 .eraseblocks = { {64 * 1024, 1} },
3825 .block_erase = spi_block_erase_c7,
3826 }
3827 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003828 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003829 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003830 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003831 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003832 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003833 },
3834
3835 {
3836 .vendor = "Eon",
3837 .name = "EN25B05T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003838 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003839 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003840 .model_id = EON_EN25B05,
Sean Nelson54596372010-01-09 05:30:14 +00003841 .total_size = 64,
3842 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003843 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003844 .tested = TEST_UNTESTED,
3845 .probe = probe_spi_rdid,
3846 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003847 .block_erasers =
3848 {
3849 {
3850 .eraseblocks = {
3851 {32 * 1024, 1},
3852 {16 * 1024, 1},
3853 {8 * 1024, 1},
3854 {4 * 1024, 2},
3855 },
3856 .block_erase = spi_block_erase_d8,
3857 }, {
3858 .eraseblocks = { {64 * 1024, 1} },
3859 .block_erase = spi_block_erase_c7,
3860 }
3861 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003862 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003863 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003864 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003865 .read = spi_chip_read, /* Fast read (0x0B) supported */
3866 .voltage = {2700, 3600},
3867 },
3868
3869 {
3870 .vendor = "Eon",
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003871 .name = "EN25B10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003872 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003873 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003874 .model_id = EON_EN25B10,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003875 .total_size = 128,
3876 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003877 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003878 .tested = TEST_UNTESTED,
3879 .probe = probe_spi_rdid,
3880 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003881 .block_erasers =
3882 {
3883 {
3884 .eraseblocks = {
3885 {4 * 1024, 2},
3886 {8 * 1024, 1},
3887 {16 * 1024, 1},
3888 {32 * 1024, 3},
3889 },
3890 .block_erase = spi_block_erase_d8,
3891 }, {
3892 .eraseblocks = { {128 * 1024, 1} },
3893 .block_erase = spi_block_erase_c7,
3894 }
3895 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003896 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003897 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003898 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003899 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003900 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003901 },
3902
3903 {
3904 .vendor = "Eon",
3905 .name = "EN25B10T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003906 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003907 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003908 .model_id = EON_EN25B10,
Sean Nelson54596372010-01-09 05:30:14 +00003909 .total_size = 128,
3910 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003911 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00003912 .tested = TEST_OK_PREW,
Sean Nelson54596372010-01-09 05:30:14 +00003913 .probe = probe_spi_rdid,
3914 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003915 .block_erasers =
3916 {
3917 {
3918 .eraseblocks = {
3919 {32 * 1024, 3},
3920 {16 * 1024, 1},
3921 {8 * 1024, 1},
3922 {4 * 1024, 2},
3923 },
3924 .block_erase = spi_block_erase_d8,
3925 }, {
3926 .eraseblocks = { {128 * 1024, 1} },
3927 .block_erase = spi_block_erase_c7,
3928 }
3929 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003930 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003931 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003932 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003933 .read = spi_chip_read, /* Fast read (0x0B) supported */
3934 .voltage = {2700, 3600},
3935 },
3936
3937 {
3938 .vendor = "Eon",
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003939 .name = "EN25B16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003940 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003941 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003942 .model_id = EON_EN25B16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003943 .total_size = 2048,
3944 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003945 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003946 .tested = TEST_UNTESTED,
3947 .probe = probe_spi_rdid,
3948 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003949 .block_erasers =
3950 {
3951 {
3952 .eraseblocks = {
3953 {4 * 1024, 2},
3954 {8 * 1024, 1},
3955 {16 * 1024, 1},
3956 {32 * 1024, 1},
3957 {64 * 1024, 31},
3958 },
3959 .block_erase = spi_block_erase_d8,
3960 }, {
3961 .eraseblocks = { {2 * 1024 * 1024, 1} },
3962 .block_erase = spi_block_erase_c7,
3963 }
3964 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003965 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003966 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003967 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003968 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003969 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003970 },
3971
3972 {
3973 .vendor = "Eon",
3974 .name = "EN25B16T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003975 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003976 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003977 .model_id = EON_EN25B16,
Sean Nelson54596372010-01-09 05:30:14 +00003978 .total_size = 2048,
3979 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003980 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003981 .tested = TEST_UNTESTED,
3982 .probe = probe_spi_rdid,
3983 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003984 .block_erasers =
3985 {
3986 {
3987 .eraseblocks = {
3988 {64 * 1024, 31},
3989 {32 * 1024, 1},
3990 {16 * 1024, 1},
3991 {8 * 1024, 1},
3992 {4 * 1024, 2},
3993 },
3994 .block_erase = spi_block_erase_d8,
3995 }, {
3996 .eraseblocks = { {2 * 1024 * 1024, 1} },
3997 .block_erase = spi_block_erase_c7,
3998 }
3999 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004000 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004001 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004002 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004003 .read = spi_chip_read, /* Fast read (0x0B) supported */
4004 .voltage = {2700, 3600},
4005 },
4006
4007 {
4008 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004009 .name = "EN25B20",
Stefan Taunerb175af52015-01-24 15:06:27 +00004010 .bustype = BUS_SPI,
4011 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004012 .model_id = EON_EN25B20,
4013 .total_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004014 .page_size = 256,
4015 .feature_bits = FEATURE_WRSR_WREN,
4016 .tested = TEST_UNTESTED,
4017 .probe = probe_spi_rdid,
4018 .probe_timing = TIMING_ZERO,
4019 .block_erasers =
4020 {
4021 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004022 .eraseblocks = {
4023 {4 * 1024, 2},
4024 {8 * 1024, 1},
4025 {16 * 1024, 1},
4026 {32 * 1024, 1},
4027 {64 * 1024, 3}
4028 },
Stefan Taunerb175af52015-01-24 15:06:27 +00004029 .block_erase = spi_block_erase_d8,
4030 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004031 .eraseblocks = { {256 * 1024, 1} },
4032 .block_erase = spi_block_erase_c7,
4033 }
4034 },
4035 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4036 .unlock = spi_disable_blockprotect,
4037 .write = spi_chip_write_256,
4038 .read = spi_chip_read, /* Fast read (0x0B) supported */
4039 .voltage = {2700, 3600},
4040 },
4041
4042 {
4043 .vendor = "Eon",
4044 .name = "EN25B20T",
4045 .bustype = BUS_SPI,
4046 .manufacture_id = EON_ID_NOPREFIX,
4047 .model_id = EON_EN25B20,
4048 .total_size = 256,
4049 .page_size = 256,
4050 .feature_bits = FEATURE_WRSR_WREN,
4051 .tested = TEST_UNTESTED,
4052 .probe = probe_spi_rdid,
4053 .probe_timing = TIMING_ZERO,
4054 .block_erasers =
4055 {
4056 {
4057 .eraseblocks = {
4058 {64 * 1024, 3},
4059 {32 * 1024, 1},
4060 {16 * 1024, 1},
4061 {8 * 1024, 1},
4062 {4 * 1024, 2},
4063 },
4064 .block_erase = spi_block_erase_d8,
4065 }, {
4066 .eraseblocks = { {256 * 1024, 1} },
Stefan Taunerb175af52015-01-24 15:06:27 +00004067 .block_erase = spi_block_erase_c7,
4068 }
4069 },
4070 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4071 .unlock = spi_disable_blockprotect,
4072 .write = spi_chip_write_256,
4073 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004074 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004075 },
4076
4077 {
4078 .vendor = "Eon",
4079 .name = "EN25B32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004080 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004081 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004082 .model_id = EON_EN25B32,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004083 .total_size = 4096,
4084 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004085 /* OTP: 512B total; enter 0x3A */
4086 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004087 .tested = TEST_UNTESTED,
4088 .probe = probe_spi_rdid,
4089 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004090 .block_erasers =
4091 {
4092 {
4093 .eraseblocks = {
4094 {4 * 1024, 2},
4095 {8 * 1024, 1},
4096 {16 * 1024, 1},
4097 {32 * 1024, 1},
4098 {64 * 1024, 63},
4099 },
4100 .block_erase = spi_block_erase_d8,
4101 }, {
4102 .eraseblocks = { {4 * 1024 * 1024, 1} },
4103 .block_erase = spi_block_erase_c7,
4104 }
4105 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004106 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004107 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00004108 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004109 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004110 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00004111 },
4112
4113 {
4114 .vendor = "Eon",
4115 .name = "EN25B32T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004116 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00004117 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004118 .model_id = EON_EN25B32,
Sean Nelson54596372010-01-09 05:30:14 +00004119 .total_size = 4096,
4120 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004121 /* OTP: 512B total; enter 0x3A */
4122 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Sean Nelson54596372010-01-09 05:30:14 +00004123 .tested = TEST_UNTESTED,
4124 .probe = probe_spi_rdid,
4125 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004126 .block_erasers =
4127 {
4128 {
4129 .eraseblocks = {
4130 {64 * 1024, 63},
4131 {32 * 1024, 1},
4132 {16 * 1024, 1},
4133 {8 * 1024, 1},
4134 {4 * 1024, 2},
4135 },
4136 .block_erase = spi_block_erase_d8,
4137 }, {
4138 .eraseblocks = { {4 * 1024 * 1024, 1} },
4139 .block_erase = spi_block_erase_c7,
4140 }
4141 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004142 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004143 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004144 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004145 .read = spi_chip_read, /* Fast read (0x0B) supported */
4146 .voltage = {2700, 3600},
4147 },
4148
4149 {
4150 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004151 .name = "EN25B40",
Stefan Taunerb175af52015-01-24 15:06:27 +00004152 .bustype = BUS_SPI,
4153 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004154 .model_id = EON_EN25B40,
4155 .total_size = 512,
Stefan Taunerb175af52015-01-24 15:06:27 +00004156 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004157 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerb175af52015-01-24 15:06:27 +00004158 .tested = TEST_UNTESTED,
4159 .probe = probe_spi_rdid,
4160 .probe_timing = TIMING_ZERO,
4161 .block_erasers =
4162 {
4163 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004164 .eraseblocks = {
4165 {4 * 1024, 2},
4166 {8 * 1024, 1},
4167 {16 * 1024, 1},
4168 {32 * 1024, 1},
4169 {64 * 1024, 7}
4170 },
Stefan Taunerb175af52015-01-24 15:06:27 +00004171 .block_erase = spi_block_erase_d8,
4172 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004173 .eraseblocks = { {512 * 1024, 1} },
4174 .block_erase = spi_block_erase_c7,
4175 }
4176 },
4177 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4178 .unlock = spi_disable_blockprotect,
4179 .write = spi_chip_write_256,
4180 .read = spi_chip_read, /* Fast read (0x0B) supported */
4181 .voltage = {2700, 3600},
4182 },
4183
4184 {
4185 .vendor = "Eon",
4186 .name = "EN25B40T",
4187 .bustype = BUS_SPI,
4188 .manufacture_id = EON_ID_NOPREFIX,
4189 .model_id = EON_EN25B40,
4190 .total_size = 512,
4191 .page_size = 256,
4192 .feature_bits = FEATURE_WRSR_WREN,
4193 .tested = TEST_UNTESTED,
4194 .probe = probe_spi_rdid,
4195 .probe_timing = TIMING_ZERO,
4196 .block_erasers =
4197 {
4198 {
4199 .eraseblocks = {
4200 {64 * 1024, 7},
4201 {32 * 1024, 1},
4202 {16 * 1024, 1},
4203 {8 * 1024, 1},
4204 {4 * 1024, 2},
4205 },
4206 .block_erase = spi_block_erase_d8,
4207 }, {
4208 .eraseblocks = { {512 * 1024, 1} },
Stefan Taunerb175af52015-01-24 15:06:27 +00004209 .block_erase = spi_block_erase_c7,
4210 }
4211 },
4212 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4213 .unlock = spi_disable_blockprotect,
4214 .write = spi_chip_write_256,
4215 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004216 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004217 },
4218
4219 {
4220 .vendor = "Eon",
4221 .name = "EN25B64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004222 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004223 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004224 .model_id = EON_EN25B64,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004225 .total_size = 8192,
4226 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004227 /* OTP: 512B total; enter 0x3A */
4228 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004229 .tested = TEST_UNTESTED,
4230 .probe = probe_spi_rdid,
4231 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004232 .block_erasers =
4233 {
4234 {
4235 .eraseblocks = {
4236 {4 * 1024, 2},
4237 {8 * 1024, 1},
4238 {16 * 1024, 1},
4239 {32 * 1024, 1},
4240 {64 * 1024, 127},
4241 },
4242 .block_erase = spi_block_erase_d8,
4243 }, {
4244 .eraseblocks = { {8 * 1024 * 1024, 1} },
4245 .block_erase = spi_block_erase_c7,
4246 }
4247 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004248 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004249 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00004250 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004251 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004252 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00004253 },
4254
4255 {
4256 .vendor = "Eon",
4257 .name = "EN25B64T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004258 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00004259 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004260 .model_id = EON_EN25B64,
Sean Nelson54596372010-01-09 05:30:14 +00004261 .total_size = 8192,
4262 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004263 /* OTP: 512B total; enter 0x3A */
4264 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Sean Nelson54596372010-01-09 05:30:14 +00004265 .tested = TEST_UNTESTED,
4266 .probe = probe_spi_rdid,
4267 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004268 .block_erasers =
4269 {
4270 {
4271 .eraseblocks = {
4272 {64 * 1024, 127},
4273 {32 * 1024, 1},
4274 {16 * 1024, 1},
4275 {8 * 1024, 1},
4276 {4 * 1024, 2},
4277 },
4278 .block_erase = spi_block_erase_d8,
4279 }, {
4280 .eraseblocks = { {8 * 1024 * 1024, 1} },
4281 .block_erase = spi_block_erase_c7,
4282 }
4283 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004284 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004285 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004286 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004287 .read = spi_chip_read, /* Fast read (0x0B) supported */
4288 .voltage = {2700, 3600},
4289 },
4290
4291 {
4292 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004293 .name = "EN25B80",
Stefan Taunerb175af52015-01-24 15:06:27 +00004294 .bustype = BUS_SPI,
4295 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004296 .model_id = EON_EN25B80,
4297 .total_size = 1024,
Stefan Taunerb175af52015-01-24 15:06:27 +00004298 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004299 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerb175af52015-01-24 15:06:27 +00004300 .tested = TEST_UNTESTED,
4301 .probe = probe_spi_rdid,
4302 .probe_timing = TIMING_ZERO,
4303 .block_erasers =
4304 {
4305 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004306 .eraseblocks = {
4307 {4 * 1024, 2},
4308 {8 * 1024, 1},
4309 {16 * 1024, 1},
4310 {32 * 1024, 1},
4311 {64 * 1024, 15}
4312 },
Stefan Taunerb175af52015-01-24 15:06:27 +00004313 .block_erase = spi_block_erase_d8,
4314 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004315 .eraseblocks = { {1024 * 1024, 1} },
4316 .block_erase = spi_block_erase_c7,
4317 }
4318 },
4319 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4320 .unlock = spi_disable_blockprotect,
4321 .write = spi_chip_write_256,
4322 .read = spi_chip_read, /* Fast read (0x0B) supported */
4323 .voltage = {2700, 3600},
4324 },
4325
4326 {
4327 .vendor = "Eon",
4328 .name = "EN25B80T",
4329 .bustype = BUS_SPI,
4330 .manufacture_id = EON_ID_NOPREFIX,
4331 .model_id = EON_EN25B80,
4332 .total_size = 1024,
4333 .page_size = 256,
4334 .feature_bits = FEATURE_WRSR_WREN,
4335 .tested = TEST_UNTESTED,
4336 .probe = probe_spi_rdid,
4337 .probe_timing = TIMING_ZERO,
4338 .block_erasers =
4339 {
4340 {
4341 .eraseblocks = {
4342 {64 * 1024, 15},
4343 {32 * 1024, 1},
4344 {16 * 1024, 1},
4345 {8 * 1024, 1},
4346 {4 * 1024, 2},
4347 },
4348 .block_erase = spi_block_erase_d8,
4349 }, {
4350 .eraseblocks = { {1024 * 1024, 1} },
Stefan Taunerb175af52015-01-24 15:06:27 +00004351 .block_erase = spi_block_erase_c7,
4352 }
4353 },
4354 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4355 .unlock = spi_disable_blockprotect,
4356 .write = spi_chip_write_256,
4357 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004358 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004359 },
4360
4361 {
4362 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004363 .name = "EN25F05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004364 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004365 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004366 .model_id = EON_EN25F05,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004367 .total_size = 64,
4368 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004369 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00004370 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004371 .probe = probe_spi_rdid,
4372 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004373 .block_erasers =
4374 {
4375 {
4376 .eraseblocks = { {4 * 1024, 16} },
4377 .block_erase = spi_block_erase_20,
4378 }, {
4379 .eraseblocks = { {32 * 1024, 2} },
4380 .block_erase = spi_block_erase_d8,
4381 }, {
4382 .eraseblocks = { {32 * 1024, 2} },
4383 .block_erase = spi_block_erase_52,
4384 }, {
4385 .eraseblocks = { {64 * 1024, 1} },
4386 .block_erase = spi_block_erase_60,
4387 }, {
4388 .eraseblocks = { {64 * 1024, 1} },
4389 .block_erase = spi_block_erase_c7,
4390 }
4391 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004392 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004393 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004394 .write = spi_chip_write_256,
4395 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004396 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004397 },
4398
4399 {
4400 .vendor = "Eon",
4401 .name = "EN25F10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004402 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004403 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004404 .model_id = EON_EN25F10,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004405 .total_size = 128,
4406 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004407 .feature_bits = FEATURE_WRSR_WREN,
Simon Buhrowd173ed42021-09-29 09:28:07 +02004408 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004409 .probe = probe_spi_rdid,
4410 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004411 .block_erasers =
4412 {
4413 {
4414 .eraseblocks = { {4 * 1024, 32} },
4415 .block_erase = spi_block_erase_20,
4416 }, {
4417 .eraseblocks = { {32 * 1024, 4} },
4418 .block_erase = spi_block_erase_d8,
4419 }, {
4420 .eraseblocks = { {32 * 1024, 4} },
4421 .block_erase = spi_block_erase_52,
4422 }, {
4423 .eraseblocks = { {128 * 1024, 1} },
4424 .block_erase = spi_block_erase_60,
4425 }, {
4426 .eraseblocks = { {128 * 1024, 1} },
4427 .block_erase = spi_block_erase_c7,
4428 }
4429 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004430 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004431 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004432 .write = spi_chip_write_256,
4433 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004434 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004435 },
4436
4437 {
4438 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004439 .name = "EN25F16",
4440 .bustype = BUS_SPI,
4441 .manufacture_id = EON_ID_NOPREFIX,
4442 .model_id = EON_EN25F16,
4443 .total_size = 2048,
4444 .page_size = 256,
4445 .feature_bits = FEATURE_WRSR_WREN,
4446 .tested = TEST_OK_PREW,
4447 .probe = probe_spi_rdid,
4448 .probe_timing = TIMING_ZERO,
4449 .block_erasers =
4450 {
4451 {
4452 .eraseblocks = { {4 * 1024, 512} },
4453 .block_erase = spi_block_erase_20,
4454 }, {
4455 .eraseblocks = { {64 * 1024, 32} },
4456 .block_erase = spi_block_erase_d8,
4457 }, {
4458 .eraseblocks = { {2 * 1024 * 1024, 1} },
4459 .block_erase = spi_block_erase_60,
4460 }, {
4461 .eraseblocks = { {2 * 1024 * 1024, 1} },
4462 .block_erase = spi_block_erase_c7,
4463 }
4464 },
4465 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4466 .unlock = spi_disable_blockprotect,
4467 .write = spi_chip_write_256,
4468 .read = spi_chip_read,
4469 .voltage = {2700, 3600},
4470 },
4471
4472 {
4473 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004474 .name = "EN25F20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004475 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004476 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004477 .model_id = EON_EN25F20,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004478 .total_size = 256,
4479 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004480 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004481 .tested = TEST_UNTESTED,
4482 .probe = probe_spi_rdid,
4483 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004484 .block_erasers =
4485 {
4486 {
4487 .eraseblocks = { {4 * 1024, 64} },
4488 .block_erase = spi_block_erase_20,
4489 }, {
4490 .eraseblocks = { {64 * 1024, 4} },
4491 .block_erase = spi_block_erase_d8,
4492 }, {
4493 .eraseblocks = { {64 * 1024, 4} },
4494 .block_erase = spi_block_erase_52,
4495 }, {
4496 .eraseblocks = { {256 * 1024, 1} },
4497 .block_erase = spi_block_erase_60,
4498 }, {
4499 .eraseblocks = { {256 * 1024, 1} },
4500 .block_erase = spi_block_erase_c7,
4501 }
4502 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004503 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004504 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004505 .write = spi_chip_write_256,
4506 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004507 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004508 },
4509
4510 {
4511 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004512 .name = "EN25F32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004513 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004514 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004515 .model_id = EON_EN25F32,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004516 .total_size = 4096,
4517 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004518 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +00004519 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004520 .probe = probe_spi_rdid,
4521 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004522 .block_erasers =
4523 {
4524 {
4525 .eraseblocks = { {4 * 1024, 1024} },
4526 .block_erase = spi_block_erase_20,
4527 }, {
4528 .eraseblocks = { {64 * 1024, 64} },
4529 .block_erase = spi_block_erase_d8,
4530 }, {
4531 .eraseblocks = { {4 * 1024 * 1024, 1} },
4532 .block_erase = spi_block_erase_60,
4533 }, {
4534 .eraseblocks = { {4 * 1024 * 1024, 1} },
4535 .block_erase = spi_block_erase_c7,
4536 }
4537 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004538 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004539 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004540 .write = spi_chip_write_256,
4541 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004542 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004543 },
4544
4545 {
Russ Dill3cd5a122010-03-05 08:44:11 +00004546 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004547 .name = "EN25F40",
4548 .bustype = BUS_SPI,
4549 .manufacture_id = EON_ID_NOPREFIX,
4550 .model_id = EON_EN25F40,
4551 .total_size = 512,
4552 .page_size = 256,
4553 .feature_bits = FEATURE_WRSR_WREN,
4554 .tested = TEST_OK_PREW,
4555 .probe = probe_spi_rdid,
4556 .probe_timing = TIMING_ZERO,
4557 .block_erasers =
4558 {
4559 {
4560 .eraseblocks = { {4 * 1024, 128} },
4561 .block_erase = spi_block_erase_20,
4562 }, {
4563 .eraseblocks = { {64 * 1024, 8} },
4564 .block_erase = spi_block_erase_d8,
4565 }, {
4566 .eraseblocks = { {512 * 1024, 1} },
4567 .block_erase = spi_block_erase_60,
4568 }, {
4569 .eraseblocks = { {512 * 1024, 1} },
4570 .block_erase = spi_block_erase_c7,
4571 },
4572 },
4573 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4574 .unlock = spi_disable_blockprotect,
4575 .write = spi_chip_write_256,
4576 .read = spi_chip_read,
4577 .voltage = {2700, 3600},
4578 },
4579
4580 {
4581 .vendor = "Eon",
Stefan Taunerd932fd02012-09-06 17:37:16 +00004582 .name = "EN25F64",
4583 .bustype = BUS_SPI,
4584 .manufacture_id = EON_ID_NOPREFIX,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00004585 .model_id = EON_EN25F64,
Stefan Taunerd932fd02012-09-06 17:37:16 +00004586 .total_size = 8192,
4587 .page_size = 256,
4588 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00004589 .tested = TEST_OK_PREW,
Stefan Taunerd932fd02012-09-06 17:37:16 +00004590 .probe = probe_spi_rdid,
4591 .probe_timing = TIMING_ZERO,
4592 .block_erasers =
4593 {
4594 {
4595 .eraseblocks = { {4 * 1024, 2048} },
4596 .block_erase = spi_block_erase_20,
4597 }, {
4598 .eraseblocks = { {64 * 1024, 128} },
4599 .block_erase = spi_block_erase_d8,
4600 }, {
4601 .eraseblocks = { {8 * 1024 * 1024, 1} },
4602 .block_erase = spi_block_erase_60,
4603 }, {
4604 .eraseblocks = { {8 * 1024 * 1024, 1} },
4605 .block_erase = spi_block_erase_c7,
4606 }
4607 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004608 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Stefan Taunerd932fd02012-09-06 17:37:16 +00004609 .unlock = spi_disable_blockprotect,
4610 .write = spi_chip_write_256,
4611 .read = spi_chip_read,
4612 .voltage = {2700, 3600},
4613 },
4614
4615 {
4616 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004617 .name = "EN25F80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004618 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004619 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004620 .model_id = EON_EN25F80,
David Hendricks6d715302011-07-24 22:21:57 +00004621 .total_size = 1024,
4622 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004623 .feature_bits = FEATURE_WRSR_WREN,
4624 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004625 .probe = probe_spi_rdid,
4626 .probe_timing = TIMING_ZERO,
4627 .block_erasers =
4628 {
4629 {
4630 .eraseblocks = { {4 * 1024, 256} },
4631 .block_erase = spi_block_erase_20,
4632 }, {
4633 .eraseblocks = { {64 * 1024, 16} },
4634 .block_erase = spi_block_erase_d8,
4635 }, {
4636 .eraseblocks = { {1024 * 1024, 1} },
4637 .block_erase = spi_block_erase_60,
4638 }, {
4639 .eraseblocks = { {1024 * 1024, 1} },
4640 .block_erase = spi_block_erase_c7,
4641 }
4642 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004643 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004644 .unlock = spi_disable_blockprotect,
4645 .write = spi_chip_write_256,
4646 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004647 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004648 },
4649
4650 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004651 .vendor = "Eon",
4652 .name = "EN25P05",
4653 .bustype = BUS_SPI,
4654 .manufacture_id = EON_ID_NOPREFIX,
4655 .model_id = EON_EN25B05,
4656 .total_size = 64,
4657 .page_size = 256,
4658 .feature_bits = FEATURE_WRSR_WREN,
4659 .tested = TEST_UNTESTED,
4660 .probe = probe_spi_rdid,
4661 .probe_timing = TIMING_ZERO,
4662 .block_erasers =
4663 {
4664 {
4665 .eraseblocks = {
4666 {32 * 1024, 2} },
4667 .block_erase = spi_block_erase_d8,
4668 }, {
4669 .eraseblocks = { {64 * 1024, 1} },
4670 .block_erase = spi_block_erase_c7,
4671 }
4672 },
4673 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4674 .unlock = spi_disable_blockprotect,
4675 .write = spi_chip_write_256,
4676 .read = spi_chip_read, /* Fast read (0x0B) supported */
4677 .voltage = {2700, 3600},
4678 },
4679
4680 {
4681 .vendor = "Eon",
4682 .name = "EN25P10",
4683 .bustype = BUS_SPI,
4684 .manufacture_id = EON_ID_NOPREFIX,
4685 .model_id = EON_EN25B10,
4686 .total_size = 128,
4687 .page_size = 256,
4688 .feature_bits = FEATURE_WRSR_WREN,
4689 .tested = TEST_UNTESTED,
4690 .probe = probe_spi_rdid,
4691 .probe_timing = TIMING_ZERO,
4692 .block_erasers =
4693 {
4694 {
4695 .eraseblocks = { {32 * 1024, 4} },
4696 .block_erase = spi_block_erase_d8,
4697 }, {
4698 .eraseblocks = { {128 * 1024, 1} },
4699 .block_erase = spi_block_erase_c7,
4700 }
4701 },
4702 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4703 .unlock = spi_disable_blockprotect,
4704 .write = spi_chip_write_256,
4705 .read = spi_chip_read, /* Fast read (0x0B) supported */
4706 .voltage = {2700, 3600},
4707 },
4708
4709 {
4710 .vendor = "Eon",
4711 .name = "EN25P16",
4712 .bustype = BUS_SPI,
4713 .manufacture_id = EON_ID_NOPREFIX,
4714 .model_id = EON_EN25B16,
4715 .total_size = 2048,
4716 .page_size = 256,
4717 .feature_bits = FEATURE_WRSR_WREN,
4718 .tested = TEST_UNTESTED,
4719 .probe = probe_spi_rdid,
4720 .probe_timing = TIMING_ZERO,
4721 .block_erasers =
4722 {
4723 {
4724 .eraseblocks = { {64 * 1024, 32} },
4725 .block_erase = spi_block_erase_d8,
4726 }, {
4727 .eraseblocks = { {2 * 1024 * 1024, 1} },
4728 .block_erase = spi_block_erase_c7,
4729 }
4730 },
4731 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4732 .unlock = spi_disable_blockprotect,
4733 .write = spi_chip_write_256,
4734 .read = spi_chip_read, /* Fast read (0x0B) supported */
4735 .voltage = {2700, 3600},
4736 },
4737
4738 {
4739 .vendor = "Eon",
4740 .name = "EN25P20",
4741 .bustype = BUS_SPI,
4742 .manufacture_id = EON_ID_NOPREFIX,
4743 .model_id = EON_EN25B20,
4744 .total_size = 256,
4745 .page_size = 256,
4746 .feature_bits = FEATURE_WRSR_WREN,
4747 .tested = TEST_UNTESTED,
4748 .probe = probe_spi_rdid,
4749 .probe_timing = TIMING_ZERO,
4750 .block_erasers =
4751 {
4752 {
4753 .eraseblocks = { {64 * 1024, 4} },
4754 .block_erase = spi_block_erase_d8,
4755 }, {
4756 .eraseblocks = { {256 * 1024, 1} },
4757 .block_erase = spi_block_erase_c7,
4758 }
4759 },
4760 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4761 .unlock = spi_disable_blockprotect,
4762 .write = spi_chip_write_256,
4763 .read = spi_chip_read, /* Fast read (0x0B) supported */
4764 .voltage = {2700, 3600},
4765 },
4766
4767 {
4768 .vendor = "Eon",
4769 .name = "EN25P32", /* Uniform version of EN25B32 */
4770 .bustype = BUS_SPI,
4771 .manufacture_id = EON_ID_NOPREFIX,
4772 .model_id = EON_EN25B32,
4773 .total_size = 4096,
4774 .page_size = 256,
4775 /* OTP: 512B total; enter 0x3A */
4776 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4777 .tested = TEST_UNTESTED,
4778 .probe = probe_spi_rdid,
4779 .probe_timing = TIMING_ZERO,
4780 .block_erasers =
4781 {
4782 {
4783 .eraseblocks = { {64 * 1024, 64} },
4784 .block_erase = spi_block_erase_d8,
4785 }, {
4786 .eraseblocks = { {4 * 1024 * 1024, 1} },
4787 .block_erase = spi_block_erase_c7,
4788 }
4789 },
4790 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4791 .unlock = spi_disable_blockprotect,
4792 .write = spi_chip_write_256,
4793 .read = spi_chip_read, /* Fast read (0x0B) supported */
4794 .voltage = {2700, 3600},
4795 },
4796
4797 {
4798 .vendor = "Eon",
4799 .name = "EN25P40",
4800 .bustype = BUS_SPI,
4801 .manufacture_id = EON_ID_NOPREFIX,
4802 .model_id = EON_EN25B40,
4803 .total_size = 512,
4804 .page_size = 256,
4805 .feature_bits = FEATURE_WRSR_WREN,
4806 .tested = TEST_UNTESTED,
4807 .probe = probe_spi_rdid,
4808 .probe_timing = TIMING_ZERO,
4809 .block_erasers =
4810 {
4811 {
4812 .eraseblocks = { {64 * 1024, 8} },
4813 .block_erase = spi_block_erase_d8,
4814 }, {
4815 .eraseblocks = { {512 * 1024, 1} },
4816 .block_erase = spi_block_erase_c7,
4817 }
4818 },
4819 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4820 .unlock = spi_disable_blockprotect,
4821 .write = spi_chip_write_256,
4822 .read = spi_chip_read, /* Fast read (0x0B) supported */
4823 .voltage = {2700, 3600},
4824 },
4825
4826 {
4827 .vendor = "Eon",
4828 .name = "EN25P64",
4829 .bustype = BUS_SPI,
4830 .manufacture_id = EON_ID_NOPREFIX,
4831 .model_id = EON_EN25B64,
4832 .total_size = 8192,
4833 .page_size = 256,
4834 /* OTP: 512B total; enter 0x3A */
4835 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4836 .tested = TEST_UNTESTED,
4837 .probe = probe_spi_rdid,
4838 .probe_timing = TIMING_ZERO,
4839 .block_erasers =
4840 {
4841 {
4842 .eraseblocks = { {64 * 1024, 128} },
4843 .block_erase = spi_block_erase_d8,
4844 }, {
4845 .eraseblocks = { {8 * 1024 * 1024, 1} },
4846 .block_erase = spi_block_erase_c7,
4847 }
4848 },
4849 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4850 .unlock = spi_disable_blockprotect,
4851 .write = spi_chip_write_256,
4852 .read = spi_chip_read, /* Fast read (0x0B) supported */
4853 .voltage = {2700, 3600},
4854 },
4855
4856 {
4857 .vendor = "Eon",
4858 .name = "EN25P80",
4859 .bustype = BUS_SPI,
4860 .manufacture_id = EON_ID_NOPREFIX,
4861 .model_id = EON_EN25B80,
4862 .total_size = 1024,
4863 .page_size = 256,
4864 .feature_bits = FEATURE_WRSR_WREN,
4865 .tested = TEST_UNTESTED,
4866 .probe = probe_spi_rdid,
4867 .probe_timing = TIMING_ZERO,
4868 .block_erasers =
4869 {
4870 {
4871 .eraseblocks = { {64 * 1024, 16} },
4872 .block_erase = spi_block_erase_d8,
4873 }, {
4874 .eraseblocks = { {1024 * 1024, 1} },
4875 .block_erase = spi_block_erase_c7,
4876 }
4877 },
4878 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4879 .unlock = spi_disable_blockprotect,
4880 .write = spi_chip_write_256,
4881 .read = spi_chip_read, /* Fast read (0x0B) supported */
4882 .voltage = {2700, 3600},
4883 },
4884
4885 {
4886 .vendor = "Eon",
4887 .name = "EN25Q128",
4888 .bustype = BUS_SPI,
4889 .manufacture_id = EON_ID_NOPREFIX,
4890 .model_id = EON_EN25Q128,
4891 .total_size = 16384,
4892 .page_size = 256,
4893 /* OTP: 512B total; enter 0x3A */
4894 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4895 .tested = TEST_OK_PREW,
4896 .probe = probe_spi_rdid,
4897 .probe_timing = TIMING_ZERO,
4898 .block_erasers =
4899 {
4900 {
4901 .eraseblocks = { {4 * 1024, 4096} },
4902 .block_erase = spi_block_erase_20,
4903 }, {
4904 .eraseblocks = { {64 * 1024, 256} },
4905 .block_erase = spi_block_erase_d8,
4906 }, {
4907 .eraseblocks = { {16 * 1024 * 1024, 1} },
4908 .block_erase = spi_block_erase_60,
4909 }, {
4910 .eraseblocks = { {16 * 1024 * 1024, 1} },
4911 .block_erase = spi_block_erase_c7,
4912 }
4913 },
4914 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4915 .unlock = spi_disable_blockprotect,
4916 .write = spi_chip_write_256,
4917 .read = spi_chip_read,
4918 },
4919
4920 {
David Hendricks6d715302011-07-24 22:21:57 +00004921 /* Note: EN25D16 is an evil twin which shares the model ID
4922 but has different write protection capabilities */
4923 .vendor = "Eon",
4924 .name = "EN25Q16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004925 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004926 .manufacture_id = EON_ID_NOPREFIX,
4927 .model_id = EON_EN25Q16,
4928 .total_size = 2048,
4929 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004930 /* OTP: D16 512B/Q16 128B total; enter 0x3A */
4931 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004932 .tested = TEST_UNTESTED,
4933 .probe = probe_spi_rdid,
4934 .probe_timing = TIMING_ZERO,
4935 .block_erasers =
4936 {
4937 {
4938 .eraseblocks = { {4 * 1024, 512} },
4939 .block_erase = spi_block_erase_20,
4940 }, {
4941 .eraseblocks = { {64 * 1024, 32} },
4942 .block_erase = spi_block_erase_d8,
4943 }, {
4944 /* not supported by Q16 version */
4945 .eraseblocks = { {64 * 1024, 32} },
4946 .block_erase = spi_block_erase_52,
4947 }, {
4948 .eraseblocks = { {2 * 1024 * 1024, 1} },
4949 .block_erase = spi_block_erase_60,
4950 }, {
4951 .eraseblocks = { {2 * 1024 * 1024, 1} },
4952 .block_erase = spi_block_erase_c7,
4953 }
4954 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004955 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004956 .unlock = spi_disable_blockprotect,
4957 .write = spi_chip_write_256,
4958 .read = spi_chip_read,
4959 .voltage = {2700, 3600},
4960 },
4961
4962 {
4963 .vendor = "Eon",
4964 .name = "EN25Q32(A/B)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004965 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004966 .manufacture_id = EON_ID_NOPREFIX,
4967 .model_id = EON_EN25Q32,
4968 .total_size = 4096,
4969 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004970 /* OTP: 512B total; enter 0x3A */
4971 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004972 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004973 .probe = probe_spi_rdid,
4974 .probe_timing = TIMING_ZERO,
4975 .block_erasers =
4976 {
4977 {
4978 .eraseblocks = { {4 * 1024, 1024} },
4979 .block_erase = spi_block_erase_20,
4980 }, {
4981 .eraseblocks = { {64 * 1024, 64} },
4982 .block_erase = spi_block_erase_d8,
4983 }, {
4984 .eraseblocks = { {4 * 1024 * 1024, 1} },
4985 .block_erase = spi_block_erase_60,
4986 }, {
4987 .eraseblocks = { {4 * 1024 * 1024, 1} },
4988 .block_erase = spi_block_erase_c7,
4989 }
4990 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004991 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004992 .unlock = spi_disable_blockprotect,
4993 .write = spi_chip_write_256,
4994 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004995 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004996 },
4997
4998 {
4999 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005000 .name = "EN25Q40",
5001 .bustype = BUS_SPI,
5002 .manufacture_id = EON_ID_NOPREFIX,
5003 .model_id = EON_EN25Q40,
5004 .total_size = 512,
5005 .page_size = 256,
5006 /* OTP: 256B total; enter 0x3A */
5007 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5008 .tested = TEST_UNTESTED,
5009 .probe = probe_spi_rdid,
5010 .probe_timing = TIMING_ZERO,
5011 .block_erasers =
5012 {
5013 {
5014 .eraseblocks = { {4 * 1024, 128} },
5015 .block_erase = spi_block_erase_20,
5016 }, {
5017 .eraseblocks = { {64 * 1024, 8} },
5018 .block_erase = spi_block_erase_d8,
5019 }, {
5020 .eraseblocks = { {512 * 1024, 1} },
5021 .block_erase = spi_block_erase_60,
5022 }, {
5023 .eraseblocks = { {512 * 1024, 1} },
5024 .block_erase = spi_block_erase_c7,
5025 }
5026 },
5027 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
5028 .unlock = spi_disable_blockprotect,
5029 .write = spi_chip_write_256,
5030 .read = spi_chip_read,
5031 .voltage = {2700, 3600},
5032 },
5033
5034 {
5035 .vendor = "Eon",
David Hendricks6d715302011-07-24 22:21:57 +00005036 .name = "EN25Q64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005037 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00005038 .manufacture_id = EON_ID_NOPREFIX,
5039 .model_id = EON_EN25Q64,
5040 .total_size = 8192,
5041 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00005042 /* OTP: 512B total; enter 0x3A */
5043 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005044 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00005045 .probe = probe_spi_rdid,
5046 .probe_timing = TIMING_ZERO,
5047 .block_erasers =
5048 {
5049 {
5050 .eraseblocks = { {4 * 1024, 2048} },
5051 .block_erase = spi_block_erase_20,
5052 }, {
5053 .eraseblocks = { {64 * 1024, 128} },
5054 .block_erase = spi_block_erase_d8,
5055 }, {
5056 .eraseblocks = { {8 * 1024 * 1024, 1} },
5057 .block_erase = spi_block_erase_60,
5058 }, {
5059 .eraseblocks = { {8 * 1024 * 1024, 1} },
5060 .block_erase = spi_block_erase_c7,
5061 }
5062 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00005063 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00005064 .unlock = spi_disable_blockprotect,
5065 .write = spi_chip_write_256,
5066 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00005067 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00005068 },
5069
5070 {
5071 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005072 .name = "EN25Q80(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005073 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00005074 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005075 .model_id = EON_EN25Q80,
5076 .total_size = 1024,
5077 .page_size = 256,
5078 /* OTP: 256B total; enter 0x3A */
5079 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5080 .tested = TEST_UNTESTED,
5081 .probe = probe_spi_rdid,
5082 .probe_timing = TIMING_ZERO,
5083 .block_erasers =
5084 {
5085 {
5086 .eraseblocks = { {4 * 1024, 256} },
5087 .block_erase = spi_block_erase_20,
5088 }, {
5089 .eraseblocks = { {64 * 1024, 16} },
5090 .block_erase = spi_block_erase_d8,
5091 }, {
5092 .eraseblocks = { {1024 * 1024, 1} },
5093 .block_erase = spi_block_erase_60,
5094 }, {
5095 .eraseblocks = { {1024 * 1024, 1} },
5096 .block_erase = spi_block_erase_c7,
5097 }
5098 },
5099 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
5100 .unlock = spi_disable_blockprotect,
5101 .write = spi_chip_write_256,
5102 .read = spi_chip_read,
5103 .voltage = {2700, 3600},
5104 },
5105
5106 {
5107 .vendor = "Eon",
5108 .name = "EN25QH128",
5109 .bustype = BUS_SPI,
5110 .manufacture_id = EON_ID_NOPREFIX,
5111 .model_id = EON_EN25QH128,
David Hendricks6d715302011-07-24 22:21:57 +00005112 .total_size = 16384,
5113 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005114 /* supports SFDP */
Daniel Lenski65922a32012-02-15 23:40:23 +00005115 /* OTP: 512B total; enter 0x3A */
Alan Green1f9cc7d2019-07-01 11:10:45 +10005116 /* QPI enable 0x38, disable 0xFF */
5117 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Tim Chenbfe149a2020-07-06 14:59:21 +08005118 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00005119 .probe = probe_spi_rdid,
5120 .probe_timing = TIMING_ZERO,
5121 .block_erasers =
5122 {
5123 {
5124 .eraseblocks = { {4 * 1024, 4096} },
5125 .block_erase = spi_block_erase_20,
5126 }, {
5127 .eraseblocks = { {64 * 1024, 256} },
5128 .block_erase = spi_block_erase_d8,
5129 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005130 .eraseblocks = { { 16384 * 1024, 1} },
David Hendricks6d715302011-07-24 22:21:57 +00005131 .block_erase = spi_block_erase_60,
5132 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005133 .eraseblocks = { { 16384 * 1024, 1} },
David Hendricks6d715302011-07-24 22:21:57 +00005134 .block_erase = spi_block_erase_c7,
5135 }
5136 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005137 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
5138 .unlock = spi_disable_blockprotect_bp3_srwd,
David Hendricks6d715302011-07-24 22:21:57 +00005139 .write = spi_chip_write_256,
5140 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005141 .voltage = {2700, 3600},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +11005142 .reg_bits =
5143 {
5144 .srp = {STATUS1, 7, RW},
5145 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
5146 .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */
5147 },
5148 .decode_range = decode_range_spi25,
David Hendricks6d715302011-07-24 22:21:57 +00005149 },
5150
5151 {
5152 .vendor = "Eon",
5153 .name = "EN25QH16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005154 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00005155 .manufacture_id = EON_ID_NOPREFIX,
5156 .model_id = EON_EN25QH16,
5157 .total_size = 2048,
5158 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00005159 /* supports SFDP */
5160 /* OTP: 512B total; enter 0x3A */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005161 /* QPI enable 0x38, disable 0xFF */
5162 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner5c316f92015-02-08 21:57:52 +00005163 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00005164 .probe = probe_spi_rdid,
5165 .probe_timing = TIMING_ZERO,
5166 .block_erasers =
5167 {
5168 {
5169 .eraseblocks = { {4 * 1024, 512} },
5170 .block_erase = spi_block_erase_20,
5171 }, {
5172 .eraseblocks = { {64 * 1024, 32} },
5173 .block_erase = spi_block_erase_d8,
5174 }, {
5175 .eraseblocks = { {1024 * 2048, 1} },
5176 .block_erase = spi_block_erase_60,
5177 }, {
5178 .eraseblocks = { {1024 * 2048, 1} },
5179 .block_erase = spi_block_erase_c7,
5180 }
5181 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005182 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005183 .unlock = spi_disable_blockprotect_bp3_srwd,
David Hendricks6d715302011-07-24 22:21:57 +00005184 .write = spi_chip_write_256,
5185 .read = spi_chip_read,
Stefan Tauner2cef9162012-05-14 01:51:46 +00005186 .voltage = {2700, 3600},
5187 },
5188
5189 {
5190 .vendor = "Eon",
5191 .name = "EN25QH32",
5192 .bustype = BUS_SPI,
5193 .manufacture_id = EON_ID_NOPREFIX,
5194 .model_id = EON_EN25QH32,
5195 .total_size = 4096,
5196 .page_size = 256,
5197 /* supports SFDP */
5198 /* OTP: 512B total; enter 0x3A */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005199 /* QPI enable 0x38, disable 0xFF */
5200 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner23e10b82016-01-23 16:16:49 +00005201 .tested = TEST_OK_PREW,
Stefan Tauner2cef9162012-05-14 01:51:46 +00005202 .probe = probe_spi_rdid,
5203 .probe_timing = TIMING_ZERO,
5204 .block_erasers =
5205 {
5206 {
5207 .eraseblocks = { {4 * 1024, 1024} },
5208 .block_erase = spi_block_erase_20,
5209 }, {
5210 .eraseblocks = { {64 * 1024, 64} },
5211 .block_erase = spi_block_erase_d8,
5212 }, {
5213 .eraseblocks = { {1024 * 4096, 1} },
5214 .block_erase = spi_block_erase_60,
5215 }, {
5216 .eraseblocks = { {1024 * 4096, 1} },
5217 .block_erase = spi_block_erase_c7,
5218 }
5219 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005220 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005221 .unlock = spi_disable_blockprotect_bp3_srwd,
5222 .write = spi_chip_write_256,
5223 .read = spi_chip_read,
5224 .voltage = {2700, 3600},
Sergii Dmytrukc6e8b1a2022-08-14 20:57:48 +03005225 .reg_bits =
5226 {
5227 .srp = {STATUS1, 7, RW},
5228 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
5229 .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */
5230 },
5231 .decode_range = decode_range_spi25,
5232 },
5233
5234 {
5235 .vendor = "Eon",
5236 .name = "EN25QH32B",
5237 .bustype = BUS_SPI,
5238 .manufacture_id = EON_ID_NOPREFIX,
5239 .model_id = EON_EN25QH32,
5240 .total_size = 4096,
5241 .page_size = 256,
5242 /* supports SFDP */
5243 /* OTP: 1536B total; enter 0x3A */
5244 /* QPI enable 0x38, disable 0xFF */
5245 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5246 .tested = TEST_OK_PREW,
5247 .probe = probe_spi_rdid,
5248 .probe_timing = TIMING_ZERO,
5249 .block_erasers =
5250 {
5251 {
5252 .eraseblocks = { {4 * 1024, 1024} },
5253 .block_erase = spi_block_erase_20,
5254 }, {
5255 .eraseblocks = { {32 * 1024, 128} },
5256 .block_erase = spi_block_erase_52,
5257 }, {
5258 .eraseblocks = { {64 * 1024, 64} },
5259 .block_erase = spi_block_erase_d8,
5260 }, {
5261 .eraseblocks = { {1024 * 4096, 1} },
5262 .block_erase = spi_block_erase_60,
5263 }, {
5264 .eraseblocks = { {1024 * 4096, 1} },
5265 .block_erase = spi_block_erase_c7,
5266 }
5267 },
5268 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
5269 .unlock = spi_disable_blockprotect_bp3_srwd,
5270 .write = spi_chip_write_256,
5271 .read = spi_chip_read,
5272 .voltage = {2700, 3600},
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005273 },
5274
5275 {
5276 .vendor = "Eon",
5277 .name = "EN25QH64",
5278 .bustype = BUS_SPI,
5279 .manufacture_id = EON_ID_NOPREFIX,
5280 .model_id = EON_EN25QH64,
5281 .total_size = 8192,
5282 .page_size = 256,
5283 /* supports SFDP */
5284 /* OTP: 512B total; enter 0x3A */
5285 /* QPI enable 0x38, disable 0xFF */
5286 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner23e10b82016-01-23 16:16:49 +00005287 .tested = TEST_OK_PREW,
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005288 .probe = probe_spi_rdid,
5289 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005290 .block_erasers =
5291 {
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005292 {
5293 .eraseblocks = { {4 * 1024, 2048} },
5294 .block_erase = spi_block_erase_20,
5295 }, {
5296 .eraseblocks = { {64 * 1024, 128} },
5297 .block_erase = spi_block_erase_d8,
5298 }, {
5299 .eraseblocks = { { 8192 * 1024, 1} },
5300 .block_erase = spi_block_erase_60,
5301 }, {
5302 .eraseblocks = { { 8192 * 1024, 1} },
5303 .block_erase = spi_block_erase_c7,
5304 }
5305 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005306 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005307 .unlock = spi_disable_blockprotect_bp3_srwd,
5308 .write = spi_chip_write_256,
5309 .read = spi_chip_read,
5310 .voltage = {2700, 3600},
Sergii Dmytrukc6e8b1a2022-08-14 20:57:48 +03005311 .reg_bits =
5312 {
5313 .srp = {STATUS1, 7, RW},
5314 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
5315 .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */
5316 },
5317 .decode_range = decode_range_spi25_64k_block,
5318 },
5319
5320 {
5321 .vendor = "Eon",
5322 .name = "EN25QH64A",
5323 .bustype = BUS_SPI,
5324 .manufacture_id = EON_ID_NOPREFIX,
5325 .model_id = EON_EN25QH64,
5326 .total_size = 8192,
5327 .page_size = 256,
5328 /* supports SFDP */
5329 /* OTP: 512B total; enter 0x3A */
5330 /* QPI enable 0x38, disable 0xFF */
5331 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5332 .tested = TEST_OK_PREW,
5333 .probe = probe_spi_rdid,
5334 .probe_timing = TIMING_ZERO,
5335 .block_erasers =
5336 {
5337 {
5338 .eraseblocks = { {4 * 1024, 2048} },
5339 .block_erase = spi_block_erase_20,
5340 }, {
5341 .eraseblocks = { {32 * 1024, 256} },
5342 .block_erase = spi_block_erase_52,
5343 }, {
5344 .eraseblocks = { {64 * 1024, 128} },
5345 .block_erase = spi_block_erase_d8,
5346 }, {
5347 .eraseblocks = { { 8192 * 1024, 1} },
5348 .block_erase = spi_block_erase_60,
5349 }, {
5350 .eraseblocks = { { 8192 * 1024, 1} },
5351 .block_erase = spi_block_erase_c7,
5352 }
5353 },
5354 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
5355 .unlock = spi_disable_blockprotect_bp3_srwd,
5356 .write = spi_chip_write_256,
5357 .read = spi_chip_read,
5358 .voltage = {2700, 3600},
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005359 },
5360
5361 {
5362 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005363 .name = "EN25S10",
5364 .bustype = BUS_SPI,
5365 .manufacture_id = EON_ID_NOPREFIX,
5366 .model_id = EON_EN25S10,
5367 .total_size = 128,
5368 .page_size = 256,
5369 /* OTP: 256B total; enter 0x3A */
5370 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5371 .tested = TEST_UNTESTED,
5372 .probe = probe_spi_rdid,
5373 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005374 .block_erasers =
5375 {
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005376 {
5377 .eraseblocks = { {4 * 1024, 32} },
5378 .block_erase = spi_block_erase_20,
5379 }, {
5380 .eraseblocks = { {32 * 1024, 4} },
5381 .block_erase = spi_block_erase_52,
5382 }, {
5383 .eraseblocks = { {128 * 1024, 1} },
5384 .block_erase = spi_block_erase_60,
5385 }, {
5386 .eraseblocks = { {128 * 1024, 1} },
5387 .block_erase = spi_block_erase_c7,
5388 }
5389 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005390 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005391 .unlock = spi_disable_blockprotect,
5392 .write = spi_chip_write_256,
5393 .read = spi_chip_read,
5394 .voltage = {1650, 1950},
5395 },
5396
5397 {
5398 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005399 .name = "EN25S16",
5400 .bustype = BUS_SPI,
5401 .manufacture_id = EON_ID_NOPREFIX,
5402 .model_id = EON_EN25S16,
5403 .total_size = 2048,
5404 .page_size = 256,
5405 /* OTP: 512B total; enter 0x3A */
5406 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5407 .tested = TEST_UNTESTED,
5408 .probe = probe_spi_rdid,
5409 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005410 .block_erasers =
5411 {
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005412 {
5413 .eraseblocks = { {4 * 1024, 512} },
5414 .block_erase = spi_block_erase_20,
5415 }, {
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005416 .eraseblocks = { {32 * 1024, 64} },
5417 .block_erase = spi_block_erase_d8,
5418 }, {
Aarya Chaumal478e1792022-06-04 01:34:44 +05305419 .eraseblocks = { {64 * 1024, 32} },
5420 .block_erase = spi_block_erase_52,
5421 }, {
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005422 .eraseblocks = { {2048 * 1024, 1} },
5423 .block_erase = spi_block_erase_60,
5424 }, {
5425 .eraseblocks = { {2048 * 1024, 1} },
5426 .block_erase = spi_block_erase_c7,
5427 }
5428 },
5429 .printlock = spi_prettyprint_status_register_en25s_wp,
5430 .unlock = spi_disable_blockprotect_bp3_srwd,
5431 .write = spi_chip_write_256,
5432 .read = spi_chip_read,
5433 .voltage = {1650, 1950},
5434 },
5435
5436 {
5437 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005438 .name = "EN25S20",
5439 .bustype = BUS_SPI,
5440 .manufacture_id = EON_ID_NOPREFIX,
5441 .model_id = EON_EN25S20,
5442 .total_size = 256,
5443 .page_size = 256,
5444 /* OTP: 256B total; enter 0x3A */
5445 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5446 .tested = TEST_UNTESTED,
5447 .probe = probe_spi_rdid,
5448 .probe_timing = TIMING_ZERO,
5449 .block_erasers =
5450 {
5451 {
5452 .eraseblocks = { {4 * 1024, 64} },
5453 .block_erase = spi_block_erase_20,
5454 }, {
5455 .eraseblocks = { {64 * 1024, 4} },
5456 .block_erase = spi_block_erase_d8,
5457 }, {
5458 .eraseblocks = { {256 * 1024, 1} },
5459 .block_erase = spi_block_erase_60,
5460 }, {
5461 .eraseblocks = { {256 * 1024, 1} },
5462 .block_erase = spi_block_erase_c7,
5463 }
5464 },
5465 .printlock = spi_prettyprint_status_register_bp2_srwd,
5466 .unlock = spi_disable_blockprotect,
5467 .write = spi_chip_write_256,
5468 .read = spi_chip_read,
5469 .voltage = {1650, 1950},
5470 },
5471
5472 {
5473 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005474 .name = "EN25S32",
5475 .bustype = BUS_SPI,
5476 .manufacture_id = EON_ID_NOPREFIX,
5477 .model_id = EON_EN25S32,
5478 .total_size = 4096,
5479 .page_size = 256,
5480 /* OTP: 512B total; enter 0x3A */
5481 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5482 .tested = TEST_UNTESTED,
5483 .probe = probe_spi_rdid,
5484 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005485 .block_erasers =
5486 {
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005487 {
5488 .eraseblocks = { {4 * 1024, 1024} },
5489 .block_erase = spi_block_erase_20,
5490 }, {
5491 .eraseblocks = { {32 * 1024, 128} },
5492 .block_erase = spi_block_erase_52,
5493 }, {
5494 .eraseblocks = { {64 * 1024, 64} },
5495 .block_erase = spi_block_erase_d8,
5496 }, {
5497 .eraseblocks = { {4096 * 1024, 1} },
5498 .block_erase = spi_block_erase_60,
5499 }, {
5500 .eraseblocks = { {4096 * 1024, 1} },
5501 .block_erase = spi_block_erase_c7,
5502 }
5503 },
5504 .printlock = spi_prettyprint_status_register_en25s_wp,
5505 .unlock = spi_disable_blockprotect_bp3_srwd,
5506 .write = spi_chip_write_256,
5507 .read = spi_chip_read,
5508 .voltage = {1650, 1950},
5509 },
5510
5511 {
5512 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005513 .name = "EN25S40",
5514 .bustype = BUS_SPI,
5515 .manufacture_id = EON_ID_NOPREFIX,
5516 .model_id = EON_EN25S40,
5517 .total_size = 512,
5518 .page_size = 256,
5519 /* OTP: 256B total; enter 0x3A */
5520 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5521 .tested = TEST_OK_PREW,
5522 .probe = probe_spi_rdid,
5523 .probe_timing = TIMING_ZERO,
5524 .block_erasers =
5525 {
5526 {
5527 .eraseblocks = { {4 * 1024, 128} },
5528 .block_erase = spi_block_erase_20,
5529 }, {
5530 .eraseblocks = { {64 * 1024, 8} },
5531 .block_erase = spi_block_erase_d8,
5532 }, {
5533 .eraseblocks = { {512 * 1024, 1} },
5534 .block_erase = spi_block_erase_60,
5535 }, {
5536 .eraseblocks = { {512 * 1024, 1} },
5537 .block_erase = spi_block_erase_c7,
5538 }
5539 },
5540 .printlock = spi_prettyprint_status_register_bp2_srwd,
5541 .unlock = spi_disable_blockprotect,
5542 .write = spi_chip_write_256,
5543 .read = spi_chip_read,
5544 .voltage = {1650, 1950},
5545 },
5546
5547 {
5548 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005549 .name = "EN25S64",
5550 .bustype = BUS_SPI,
5551 .manufacture_id = EON_ID_NOPREFIX,
5552 .model_id = EON_EN25S64,
5553 .total_size = 8192,
5554 .page_size = 256,
5555 /* OTP: 512B total; enter 0x3A */
5556 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Nikolai Artemievdf889fa2021-03-23 17:10:45 +11005557 .tested = TEST_OK_PREW,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005558 .probe = probe_spi_rdid,
5559 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005560 .block_erasers =
5561 {
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005562 {
5563 .eraseblocks = { {4 * 1024, 2048} },
5564 .block_erase = spi_block_erase_20,
5565 }, {
5566 .eraseblocks = { {64 * 1024, 128} },
5567 .block_erase = spi_block_erase_d8,
5568 }, {
5569 .eraseblocks = { {8192 * 1024, 1} },
5570 .block_erase = spi_block_erase_60,
5571 }, {
5572 .eraseblocks = { {8192 * 1024, 1} },
5573 .block_erase = spi_block_erase_c7,
5574 }
5575 },
5576 .printlock = spi_prettyprint_status_register_en25s_wp,
5577 .unlock = spi_disable_blockprotect_bp3_srwd,
5578 .write = spi_chip_write_256,
5579 .read = spi_chip_read,
5580 .voltage = {1650, 1950},
5581 },
5582
5583 {
5584 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005585 .name = "EN25S80",
5586 .bustype = BUS_SPI,
5587 .manufacture_id = EON_ID_NOPREFIX,
5588 .model_id = EON_EN25S80,
5589 .total_size = 1024,
5590 .page_size = 256,
5591 /* OTP: 256B total; enter 0x3A */
5592 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5593 .tested = TEST_UNTESTED,
5594 .probe = probe_spi_rdid,
5595 .probe_timing = TIMING_ZERO,
Russ Dill3cd5a122010-03-05 08:44:11 +00005596 .block_erasers =
5597 {
5598 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005599 .eraseblocks = { {4 * 1024, 256} },
5600 .block_erase = spi_block_erase_20,
5601 }, {
5602 .eraseblocks = { {64 * 1024, 16} },
5603 .block_erase = spi_block_erase_d8,
5604 }, {
5605 .eraseblocks = { {1024 * 1024, 1} },
5606 .block_erase = spi_block_erase_60,
5607 }, {
5608 .eraseblocks = { {1024 * 1024, 1} },
5609 .block_erase = spi_block_erase_c7,
5610 }
Russ Dill3cd5a122010-03-05 08:44:11 +00005611 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005612 .printlock = spi_prettyprint_status_register_bp2_srwd,
5613 .unlock = spi_disable_blockprotect,
5614 .write = spi_chip_write_256,
5615 .read = spi_chip_read,
5616 .voltage = {1650, 1950},
Russ Dill3cd5a122010-03-05 08:44:11 +00005617 },
5618
5619 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00005620 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005621 .name = "EN29F002(A)(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005622 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005623 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005624 .model_id = EON_EN29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005625 .total_size = 256,
5626 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00005627 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Alan Green4362e622019-08-26 15:02:12 +10005628 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005629 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005630 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005631 .block_erasers =
5632 {
5633 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005634 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005635 {16 * 1024, 1},
Michael Karchere3cb0a12010-03-13 23:47:09 +00005636 {8 * 1024, 2},
5637 {32 * 1024, 1},
5638 {64 * 1024, 3},
Sean Nelson6b11ad22009-12-23 17:05:59 +00005639 },
5640 .block_erase = erase_sector_jedec,
5641 }, {
5642 .eraseblocks = { {256 * 1024, 1} },
5643 .block_erase = erase_chip_block_jedec,
5644 },
5645 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005646 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005647 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005648 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005649 },
5650
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005651 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00005652 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005653 .name = "EN29F002(A)(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005654 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005655 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005656 .model_id = EON_EN29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005657 .total_size = 256,
5658 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00005659 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00005660 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005661 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005662 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005663 .block_erasers =
5664 {
5665 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005666 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005667 {64 * 1024, 3},
Michael Karchere3cb0a12010-03-13 23:47:09 +00005668 {32 * 1024, 1},
5669 {8 * 1024, 2},
5670 {16 * 1024, 1},
Sean Nelson6b11ad22009-12-23 17:05:59 +00005671 },
5672 .block_erase = erase_sector_jedec,
5673 }, {
5674 .eraseblocks = { {256 * 1024, 1} },
5675 .block_erase = erase_chip_block_jedec,
5676 },
5677 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005678 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005679 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005680 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005681 },
5682
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005683 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005684 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005685 .name = "EN29F010",
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005686 .bustype = BUS_PARALLEL,
5687 .manufacture_id = EON_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005688 .model_id = EON_EN29F010,
5689 .total_size = 128,
5690 .page_size = 128,
5691 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
5692 .tested = TEST_OK_PRE,
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005693 .probe = probe_jedec,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005694 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005695 .block_erasers =
5696 {
5697 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005698 .eraseblocks = { {16 * 1024, 8} },
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005699 .block_erase = erase_sector_jedec,
5700 },
5701 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005702 .eraseblocks = { {128 * 1024, 1} },
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005703 .block_erase = erase_chip_block_jedec,
5704 },
5705 },
5706 .write = write_jedec_1,
5707 .read = read_memmapped,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005708 .voltage = {4500, 5500},
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005709 },
5710
5711 {
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00005712 .vendor = "Eon",
5713 .name = "EN29GL064(A)B",
5714 .bustype = BUS_PARALLEL,
5715 .manufacture_id = EON_ID,
5716 .model_id = EON_EN29GL064B,
5717 .total_size = 8192,
5718 .page_size = 128 * 1024, /* actual page size is 16 */
5719 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5720 .tested = TEST_UNTESTED,
5721 .probe = probe_jedec_29gl,
5722 .probe_timing = TIMING_ZERO,
5723 .block_erasers =
5724 {
5725 {
5726 .eraseblocks = {
5727 {8 * 1024, 8},
5728 {64 * 1024, 127},
5729 },
5730 .block_erase = erase_sector_jedec,
5731 }, {
5732 .eraseblocks = { {8 * 1024 * 1024, 1} },
5733 .block_erase = erase_chip_block_jedec,
5734 },
5735 },
5736 .write = write_jedec_1,
5737 .read = read_memmapped,
5738 .voltage = {2700, 3600},
5739 },
5740
5741 {
5742 .vendor = "Eon",
5743 .name = "EN29GL064(A)T",
5744 .bustype = BUS_PARALLEL,
5745 .manufacture_id = EON_ID,
5746 .model_id = EON_EN29GL064T,
5747 .total_size = 8192,
5748 .page_size = 128 * 1024, /* actual page size is 16 */
5749 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5750 .tested = TEST_UNTESTED,
5751 .probe = probe_jedec_29gl,
5752 .probe_timing = TIMING_ZERO,
5753 .block_erasers =
5754 {
5755 {
5756 .eraseblocks = {
5757 {64 * 1024, 127},
5758 {8 * 1024, 8},
5759 },
5760 .block_erase = erase_sector_jedec,
5761 }, {
5762 .eraseblocks = { {8 * 1024 * 1024, 1} },
5763 .block_erase = erase_chip_block_jedec,
5764 },
5765 },
5766 .write = write_jedec_1,
5767 .read = read_memmapped,
5768 .voltage = {2700, 3600},
5769 },
5770
5771 {
5772 .vendor = "Eon",
5773 .name = "EN29GL064H/L",
5774 .bustype = BUS_PARALLEL,
5775 .manufacture_id = EON_ID,
5776 .model_id = EON_EN29GL064HL,
5777 .total_size = 8192,
5778 .page_size = 128 * 1024, /* actual page size is 16 */
5779 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5780 .tested = TEST_UNTESTED,
5781 .probe = probe_jedec_29gl,
5782 .probe_timing = TIMING_ZERO,
5783 .block_erasers =
5784 {
5785 {
5786 .eraseblocks = { {64 * 1024, 128} },
5787 .block_erase = erase_sector_jedec,
5788 }, {
5789 .eraseblocks = { {8 * 1024 * 1024, 1} },
5790 .block_erase = erase_chip_block_jedec,
5791 },
5792 },
5793 .write = write_jedec_1,
5794 .read = read_memmapped,
5795 .voltage = {2700, 3600},
5796 },
5797
5798 {
5799 .vendor = "Eon",
5800 .name = "EN29GL128",
5801 .bustype = BUS_PARALLEL,
5802 .manufacture_id = EON_ID,
5803 .model_id = EON_EN29GL128HL,
5804 .total_size = 16384,
5805 .page_size = 128 * 1024, /* actual page size is 16 */
5806 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5807 .tested = TEST_UNTESTED,
5808 .probe = probe_jedec_29gl,
5809 .probe_timing = TIMING_ZERO,
5810 .block_erasers =
5811 {
5812 {
5813 .eraseblocks = { {128 * 1024, 128} },
5814 .block_erase = erase_sector_jedec,
5815 }, {
5816 .eraseblocks = { {16 * 1024 * 1024, 1} },
5817 .block_erase = erase_chip_block_jedec,
5818 },
5819 },
5820 .write = write_jedec_1,
5821 .read = read_memmapped,
5822 .voltage = {2700, 3600},
5823 },
5824
5825 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005826 .vendor = "Eon",
5827 .name = "EN29LV040(A)",
5828 .bustype = BUS_PARALLEL,
5829 .manufacture_id = EON_ID,
5830 .model_id = EON_EN29LV040,
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005831 .total_size = 512,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005832 .page_size = 4 * 1024,
5833 .tested = TEST_OK_PREW,
5834 .probe = probe_jedec,
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005835 .probe_timing = TIMING_ZERO,
5836 .block_erasers =
5837 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00005838 {
5839 .eraseblocks = { {64 * 1024, 8} },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005840 .block_erase = erase_sector_jedec,
5841 },
5842 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00005843 .eraseblocks = { {512 * 1024, 1} },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005844 .block_erase = erase_chip_block_jedec,
5845 },
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005846 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005847 .write = write_jedec_1,
5848 .read = read_memmapped,
5849 .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R and 55R, others 2.7-3.6V */
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005850 },
5851
5852 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005853 .vendor = "Eon",
5854 .name = "EN29LV640B",
5855 .bustype = BUS_PARALLEL,
5856 .manufacture_id = EON_ID,
5857 .model_id = EON_EN29LV640B,
5858 .total_size = 8192,
5859 .page_size = 8192,
5860 .feature_bits = FEATURE_ADDR_SHIFTED,
5861 .tested = TEST_OK_PREW,
5862 .probe = probe_en29lv640b,
5863 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005864 .block_erasers =
5865 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00005866 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005867 .eraseblocks = {
5868 {8 * 1024, 8},
5869 {64 * 1024, 127},
5870 },
5871 .block_erase = erase_block_jedec,
Stefan Tauner0be072c2016-03-13 15:16:30 +00005872 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005873 .eraseblocks = { {8 * 1024 * 1024, 1} },
5874 .block_erase = erase_chip_block_jedec,
5875 },
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005876 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005877 .write = write_en29lv640b,
5878 .read = read_memmapped,
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005879 .voltage = {2700, 3600},
5880 },
5881
5882 {
Jakob Petersson0cf3e122019-02-18 01:55:43 +01005883 .vendor = "Fudan",
5884 .name = "FM25F005",
5885 .bustype = BUS_SPI,
5886 .manufacture_id = FUDAN_ID_NOPREFIX,
5887 .model_id = FUDAN_FM25F005,
5888 .total_size = 64,
5889 .page_size = 256,
5890 /* OTP: 256B total; enter 0x3A */
5891 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5892 .tested = TEST_UNTESTED,
5893 .probe = probe_spi_rdid,
5894 .probe_timing = TIMING_ZERO,
5895 .block_erasers = {
5896 {
5897 .eraseblocks = { {4 * 1024, 16} },
5898 .block_erase = spi_block_erase_20,
5899 }, {
5900 .eraseblocks = { {32 * 1024, 2} },
5901 .block_erase = spi_block_erase_52,
5902 }, {
5903 .eraseblocks = { {64 * 1024, 1} },
5904 .block_erase = spi_block_erase_d8,
5905 }, {
5906 .eraseblocks = { {64 * 1024, 1} },
5907 .block_erase = spi_block_erase_60,
5908 }, {
5909 .eraseblocks = { {64 * 1024, 1} },
5910 .block_erase = spi_block_erase_c7,
5911 }
5912 },
5913 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
5914 .unlock = spi_disable_blockprotect_bp2_srwd,
5915 .write = spi_chip_write_256,
5916 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
5917 .voltage = {2700, 3600}, /* 2.3-2.7V acceptable results in lower performance */
5918 },
5919
5920 {
5921 .vendor = "Fudan",
5922 .name = "FM25F01",
5923 .bustype = BUS_SPI,
5924 .manufacture_id = FUDAN_ID_NOPREFIX,
5925 .model_id = FUDAN_FM25F01,
5926 .total_size = 128,
5927 .page_size = 256,
5928 /* OTP: 256B total; enter 0x3A */
5929 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5930 .tested = TEST_UNTESTED,
5931 .probe = probe_spi_rdid,
5932 .probe_timing = TIMING_ZERO,
5933 .block_erasers = {
5934 {
5935 .eraseblocks = { {4 * 1024, 32} },
5936 .block_erase = spi_block_erase_20,
5937 }, {
5938 .eraseblocks = { {32 * 1024, 4} },
5939 .block_erase = spi_block_erase_52,
5940 }, {
5941 .eraseblocks = { {64 * 1024, 2} },
5942 .block_erase = spi_block_erase_d8,
5943 }, {
5944 .eraseblocks = { {128 * 1024, 1} },
5945 .block_erase = spi_block_erase_60,
5946 }, {
5947 .eraseblocks = { {128 * 1024, 1} },
5948 .block_erase = spi_block_erase_c7,
5949 }
5950 },
5951 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
5952 .unlock = spi_disable_blockprotect_bp2_srwd,
5953 .write = spi_chip_write_256,
5954 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
5955 .voltage = {2700, 3600}, /* 2.3-2.7V acceptable results in lower performance */
5956 },
5957
5958 {
5959 .vendor = "Fudan",
5960 .name = "FM25F02(A)",
5961 .bustype = BUS_SPI,
5962 .manufacture_id = FUDAN_ID_NOPREFIX,
5963 .model_id = FUDAN_FM25F02,
5964 .total_size = 256,
5965 .page_size = 256,
5966 /* OTP: 256B total; enter 0x3A, (A version only:) read ID 0x4B */
5967 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5968 .tested = TEST_UNTESTED,
5969 .probe = probe_spi_rdid,
5970 .probe_timing = TIMING_ZERO,
5971 .block_erasers = {
5972 {
5973 .eraseblocks = { {4 * 1024, 64} },
5974 .block_erase = spi_block_erase_20,
5975 }, {
5976 .eraseblocks = { {32 * 1024, 8} },
5977 .block_erase = spi_block_erase_52,
5978 }, {
5979 .eraseblocks = { {64 * 1024, 4} },
5980 .block_erase = spi_block_erase_d8,
5981 }, {
5982 .eraseblocks = { {1024 * 256, 1} },
5983 .block_erase = spi_block_erase_60,
5984 }, {
5985 .eraseblocks = { {1024 * 256, 1} },
5986 .block_erase = spi_block_erase_c7,
5987 },
5988 },
5989 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
5990 .unlock = spi_disable_blockprotect_bp2_srwd,
5991 .write = spi_chip_write_256,
5992 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
5993 .voltage = {2700, 3600}, /* 2.3-2.7V acceptable results in lower performance */
5994 },
5995
5996 {
5997 .vendor = "Fudan",
5998 .name = "FM25F04(A)",
5999 .bustype = BUS_SPI,
6000 .manufacture_id = FUDAN_ID_NOPREFIX,
6001 .model_id = FUDAN_FM25F04,
6002 .total_size = 512,
6003 .page_size = 256,
6004 /* OTP: 256B total; enter 0x3A, (A version only:) read ID 0x4B */
6005 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6006 .tested = TEST_UNTESTED,
6007 .probe = probe_spi_rdid,
6008 .probe_timing = TIMING_ZERO,
6009 .block_erasers = {
6010 {
6011 .eraseblocks = { {4 * 1024, 128} },
6012 .block_erase = spi_block_erase_20,
6013 }, {
6014 .eraseblocks = { {32 * 1024, 16} },
6015 .block_erase = spi_block_erase_52,
6016 }, {
6017 .eraseblocks = { {64 * 1024, 8} },
6018 .block_erase = spi_block_erase_d8,
6019 }, {
6020 .eraseblocks = { {1024 * 512, 1} },
6021 .block_erase = spi_block_erase_60,
6022 }, {
6023 .eraseblocks = { {1024 * 512, 1} },
6024 .block_erase = spi_block_erase_c7,
6025 },
6026 },
6027 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
6028 .unlock = spi_disable_blockprotect_bp2_srwd,
6029 .write = spi_chip_write_256,
6030 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
6031 .voltage = {2700, 3600},
6032 },
6033
6034 {
6035 .vendor = "Fudan",
6036 .name = "FM25Q08",
6037 .bustype = BUS_SPI,
6038 .manufacture_id = FUDAN_ID_NOPREFIX,
6039 .model_id = FUDAN_FM25Q08,
6040 .total_size = 1024,
6041 .page_size = 256,
6042 /* supports SFDP */
6043 /* OTP: 1024B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
6044 /* QPI enable 0x38, disable 0xFF */
6045 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6046 .tested = TEST_UNTESTED,
6047 .probe = probe_spi_rdid,
6048 .probe_timing = TIMING_ZERO,
6049 .block_erasers = {
6050 {
6051 .eraseblocks = { {4 * 1024, 256} },
6052 .block_erase = spi_block_erase_20,
6053 }, {
6054 .eraseblocks = { {32 * 1024, 32} },
6055 .block_erase = spi_block_erase_52,
6056 }, {
6057 .eraseblocks = { {64 * 1024, 16} },
6058 .block_erase = spi_block_erase_d8,
6059 }, {
6060 .eraseblocks = { {1024 * 1024, 1} },
6061 .block_erase = spi_block_erase_60,
6062 }, {
6063 .eraseblocks = { {1024 * 1024, 1} },
6064 .block_erase = spi_block_erase_c7,
6065 },
6066 },
6067 .printlock = spi_prettyprint_status_register_bp2_tb_bpl, /* bit6 selects size of protected blocks; TODO: SR2 */
6068 .unlock = spi_disable_blockprotect_bp2_srwd,
6069 .write = spi_chip_write_256,
6070 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6071 .voltage = {2700, 3600},
6072 },
6073
6074 {
6075 .vendor = "Fudan",
6076 .name = "FM25Q16",
6077 .bustype = BUS_SPI,
6078 .manufacture_id = FUDAN_ID_NOPREFIX,
6079 .model_id = FUDAN_FM25Q16,
6080 .total_size = 2048,
6081 .page_size = 256,
6082 /* supports SFDP */
6083 /* OTP: 1024B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
6084 /* QPI enable 0x38, disable 0xFF */
6085 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6086 .tested = TEST_UNTESTED,
6087 .probe = probe_spi_rdid,
6088 .probe_timing = TIMING_ZERO,
6089 .block_erasers = {
6090 {
6091 .eraseblocks = { {4 * 1024, 512} },
6092 .block_erase = spi_block_erase_20,
6093 }, {
6094 .eraseblocks = { {32 * 1024, 64} },
6095 .block_erase = spi_block_erase_52,
6096 }, {
6097 .eraseblocks = { {64 * 1024, 32} },
6098 .block_erase = spi_block_erase_d8,
6099 }, {
6100 .eraseblocks = { {2 * 1024 * 1024, 1} },
6101 .block_erase = spi_block_erase_60,
6102 }, {
6103 .eraseblocks = { {2 * 1024 * 1024, 1} },
6104 .block_erase = spi_block_erase_c7,
6105 }
6106 },
6107 .printlock = spi_prettyprint_status_register_bp2_tb_bpl, /* bit6 selects size of protected blocks; TODO: SR2 */
6108 .unlock = spi_disable_blockprotect_bp2_srwd,
6109 .write = spi_chip_write_256,
6110 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6111 .voltage = {2700, 3600},
6112 },
6113
6114 {
6115 .vendor = "Fudan",
6116 .name = "FM25Q32",
6117 .bustype = BUS_SPI,
6118 .manufacture_id = FUDAN_ID_NOPREFIX,
6119 .model_id = FUDAN_FM25Q32,
6120 .total_size = 4096,
6121 .page_size = 256,
6122 /* supports SFDP */
6123 /* OTP: 1024B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
6124 /* QPI enable 0x38, disable 0xFF */
6125 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6126 .tested = TEST_UNTESTED,
6127 .probe = probe_spi_rdid,
6128 .probe_timing = TIMING_ZERO,
6129 .block_erasers = {
6130 {
6131 .eraseblocks = { {4 * 1024, 1024} },
6132 .block_erase = spi_block_erase_20,
6133 }, {
6134 .eraseblocks = { {32 * 1024, 128} },
6135 .block_erase = spi_block_erase_52,
6136 }, {
6137 .eraseblocks = { {64 * 1024, 64} },
6138 .block_erase = spi_block_erase_d8,
6139 }, {
6140 .eraseblocks = { {4 * 1024 * 1024, 1} },
6141 .block_erase = spi_block_erase_60,
6142 }, {
6143 .eraseblocks = { {4 * 1024 * 1024, 1} },
6144 .block_erase = spi_block_erase_c7,
6145 },
6146 },
6147 .printlock = spi_prettyprint_status_register_bp2_tb_bpl, /* bit6 selects size of protected blocks; TODO: SR2 */
6148 .unlock = spi_disable_blockprotect_bp2_srwd,
6149 .write = spi_chip_write_256,
6150 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6151 .voltage = {2700, 3600},
6152 },
6153
6154 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006155 .vendor = "Fujitsu",
6156 .name = "MBM29F004BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006157 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006158 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006159 .model_id = FUJITSU_MBM29F004BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006160 .total_size = 512,
6161 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006162 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006163 .tested = TEST_UNTESTED,
6164 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006165 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00006166 .block_erasers =
6167 {
6168 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006169 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00006170 {16 * 1024, 1},
6171 {8 * 1024, 2},
6172 {32 * 1024, 1},
6173 {64 * 1024, 7},
6174 },
Sean Nelson35727f72010-01-28 23:55:12 +00006175 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006176 }, {
6177 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006178 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006179 },
6180 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006181 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006182 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006183 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006184 },
6185
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006186 {
6187 .vendor = "Fujitsu",
6188 .name = "MBM29F004TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006189 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006190 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006191 .model_id = FUJITSU_MBM29F004TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006192 .total_size = 512,
6193 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006194 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006195 .tested = TEST_UNTESTED,
6196 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006197 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00006198 .block_erasers =
6199 {
6200 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006201 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00006202 {64 * 1024, 7},
6203 {32 * 1024, 1},
6204 {8 * 1024, 2},
6205 {16 * 1024, 1},
6206 },
Sean Nelson35727f72010-01-28 23:55:12 +00006207 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006208 }, {
6209 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006210 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006211 },
6212 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006213 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006214 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006215 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006216 },
6217
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006218 {
Sean Nelson35727f72010-01-28 23:55:12 +00006219 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006220 .vendor = "Fujitsu",
6221 .name = "MBM29F400BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006222 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006223 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006224 .model_id = FUJITSU_MBM29F400BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006225 .total_size = 512,
6226 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006227 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00006228 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006229 .probe = probe_jedec,
6230 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson6b11ad22009-12-23 17:05:59 +00006231 .block_erasers =
6232 {
6233 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006234 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00006235 {16 * 1024, 1},
6236 {8 * 1024, 2},
6237 {32 * 1024, 1},
6238 {64 * 1024, 7},
6239 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006240 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006241 }, {
6242 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006243 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006244 },
6245 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006246 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006247 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006248 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00006249 },
6250
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006251 {
6252 .vendor = "Fujitsu",
6253 .name = "MBM29F400TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006254 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006255 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006256 .model_id = FUJITSU_MBM29F400TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006257 .total_size = 512,
6258 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006259 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006260 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006261 .probe = probe_jedec,
6262 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson6b11ad22009-12-23 17:05:59 +00006263 .block_erasers =
6264 {
6265 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006266 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00006267 {64 * 1024, 7},
6268 {32 * 1024, 1},
6269 {8 * 1024, 2},
6270 {16 * 1024, 1},
6271 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006272 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006273 }, {
6274 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006275 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006276 },
6277 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006278 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006279 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006280 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00006281 },
6282
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006283 {
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006284 .vendor = "Fujitsu",
6285 .name = "MBM29LV160BE",
6286 .bustype = BUS_PARALLEL,
6287 .manufacture_id = FUJITSU_ID,
6288 .model_id = FUJITSU_MBM29LV160BE,
6289 .total_size = 2 * 1024,
6290 .page_size = 0,
6291 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET,
6292 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006293 .probe = probe_jedec,
6294 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006295 .block_erasers =
6296 {
6297 {
6298 .eraseblocks = {
6299 {16 * 1024, 1},
6300 {8 * 1024, 2},
6301 {32 * 1024, 1},
6302 {64 * 1024, 31},
6303 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006304 .block_erase = erase_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006305 }, {
6306 .eraseblocks = { {2048 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006307 .block_erase = erase_chip_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006308 },
6309 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006310 .write = write_jedec_1, /* Supports a fast mode too */
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006311 .read = read_memmapped,
6312 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */
6313 },
6314
6315 {
6316 .vendor = "Fujitsu",
6317 .name = "MBM29LV160TE",
6318 .bustype = BUS_PARALLEL,
6319 .manufacture_id = FUJITSU_ID,
6320 .model_id = FUJITSU_MBM29LV160TE,
6321 .total_size = 2 * 1024,
6322 .page_size = 0,
6323 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET,
6324 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006325 .probe = probe_jedec,
6326 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006327 .block_erasers =
6328 {
6329 {
6330 .eraseblocks = {
6331 {64 * 1024, 31},
6332 {32 * 1024, 1},
6333 {8 * 1024, 2},
6334 {16 * 1024, 1},
6335 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006336 .block_erase = erase_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006337 }, {
6338 .eraseblocks = { {2048 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006339 .block_erase = erase_chip_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006340 },
6341 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006342 .write = write_jedec_1, /* Supports a fast mode too */
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006343 .read = read_memmapped,
6344 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */
6345 },
6346
6347 {
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006348 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006349 .name = "GD25B128B/GD25Q128B",
Roman Titov95edc892015-04-03 21:29:04 +00006350 .bustype = BUS_SPI,
6351 .manufacture_id = GIGADEVICE_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006352 .model_id = GIGADEVICE_GD25Q128,
6353 .total_size = 16384,
Roman Titov95edc892015-04-03 21:29:04 +00006354 .page_size = 256,
6355 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6356 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006357 .tested = TEST_OK_PREW,
Roman Titov95edc892015-04-03 21:29:04 +00006358 .probe = probe_spi_rdid,
6359 .probe_timing = TIMING_ZERO,
6360 .block_erasers =
6361 {
6362 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006363 .eraseblocks = { {4 * 1024, 4096} },
Roman Titov95edc892015-04-03 21:29:04 +00006364 .block_erase = spi_block_erase_20,
6365 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006366 .eraseblocks = { {32 * 1024, 512} },
Roman Titov95edc892015-04-03 21:29:04 +00006367 .block_erase = spi_block_erase_52,
6368 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006369 .eraseblocks = { {64 * 1024, 256} },
Roman Titov95edc892015-04-03 21:29:04 +00006370 .block_erase = spi_block_erase_d8,
6371 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006372 .eraseblocks = { {16 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00006373 .block_erase = spi_block_erase_60,
6374 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006375 .eraseblocks = { {16 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00006376 .block_erase = spi_block_erase_c7,
6377 }
6378 },
6379 .printlock = spi_prettyprint_status_register_bp4_srwd,
6380 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6381 .write = spi_chip_write_256,
6382 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Alan Green1f9cc7d2019-07-01 11:10:45 +10006383 .voltage = {2700, 3600},
Roman Titov95edc892015-04-03 21:29:04 +00006384 },
6385
6386 {
6387 .vendor = "GigaDevice",
Edward O'Callaghan981a3442021-06-22 11:16:55 +10006388 .name = "GD25LQ128C/GD25LQ128D/GD25LQ128E",
Roman Titov95edc892015-04-03 21:29:04 +00006389 .bustype = BUS_SPI,
6390 .manufacture_id = GIGADEVICE_ID,
Alan Green188127e2019-08-06 16:10:34 +10006391 .model_id = GIGADEVICE_GD25LQ128CD,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006392 .total_size = 16384,
Roman Titov95edc892015-04-03 21:29:04 +00006393 .page_size = 256,
6394 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Nico Huber3f3c1f32022-05-28 16:48:26 +02006395 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_WRSR_EXT2,
Sergii Dmytrukc74eac22022-10-06 18:17:58 +03006396 .tested = TEST_OK_PREWB,
Roman Titov95edc892015-04-03 21:29:04 +00006397 .probe = probe_spi_rdid,
6398 .probe_timing = TIMING_ZERO,
6399 .block_erasers =
6400 {
6401 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006402 .eraseblocks = { {4 * 1024, 4096} },
Roman Titov95edc892015-04-03 21:29:04 +00006403 .block_erase = spi_block_erase_20,
6404 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006405 .eraseblocks = { {32 * 1024, 512} },
Roman Titov95edc892015-04-03 21:29:04 +00006406 .block_erase = spi_block_erase_52,
6407 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006408 .eraseblocks = { {64 * 1024, 256} },
Roman Titov95edc892015-04-03 21:29:04 +00006409 .block_erase = spi_block_erase_d8,
6410 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006411 .eraseblocks = { {16 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00006412 .block_erase = spi_block_erase_60,
6413 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006414 .eraseblocks = { {16 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00006415 .block_erase = spi_block_erase_c7,
6416 }
6417 },
6418 .printlock = spi_prettyprint_status_register_bp4_srwd,
6419 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6420 .write = spi_chip_write_256,
6421 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6422 .voltage = {1695, 1950},
Nikolai Artemievc6c3f282021-10-20 23:34:15 +11006423 .reg_bits =
6424 {
6425 .srp = {STATUS1, 7, RW},
6426 .srl = {STATUS2, 0, RW},
6427 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
6428 .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */
6429 .sec = {STATUS1, 6, RW}, /* Called BP4 in datasheet, acts like SEC */
6430 .cmp = {STATUS2, 6, RW},
6431 },
Nikolai Artemievc9feb1b2021-10-21 01:35:13 +11006432 .decode_range = decode_range_spi25,
Roman Titov95edc892015-04-03 21:29:04 +00006433 },
6434
6435 {
6436 .vendor = "GigaDevice",
6437 .name = "GD25LQ16",
6438 .bustype = BUS_SPI,
6439 .manufacture_id = GIGADEVICE_ID,
6440 .model_id = GIGADEVICE_GD25LQ16,
6441 .total_size = 2048,
6442 .page_size = 256,
6443 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6444 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6445 .tested = TEST_UNTESTED,
6446 .probe = probe_spi_rdid,
6447 .probe_timing = TIMING_ZERO,
6448 .block_erasers =
6449 {
6450 {
6451 .eraseblocks = { {4 * 1024, 512} },
6452 .block_erase = spi_block_erase_20,
6453 }, {
6454 .eraseblocks = { {32 * 1024, 64} },
6455 .block_erase = spi_block_erase_52,
6456 }, {
6457 .eraseblocks = { {64 * 1024, 32} },
6458 .block_erase = spi_block_erase_d8,
6459 }, {
6460 .eraseblocks = { {2 * 1024 * 1024, 1} },
6461 .block_erase = spi_block_erase_60,
6462 }, {
6463 .eraseblocks = { {2 * 1024 * 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 = {1695, 1950},
6472 },
6473
6474 {
6475 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006476 .name = "GD25LQ32",
6477 .bustype = BUS_SPI,
6478 .manufacture_id = GIGADEVICE_ID,
6479 .model_id = GIGADEVICE_GD25LQ32,
6480 .total_size = 4096,
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, 1024} },
6491 .block_erase = spi_block_erase_20,
6492 }, {
6493 .eraseblocks = { {32 * 1024, 128} },
6494 .block_erase = spi_block_erase_52,
6495 }, {
6496 .eraseblocks = { {64 * 1024, 64} },
6497 .block_erase = spi_block_erase_d8,
6498 }, {
6499 .eraseblocks = { {4 * 1024 * 1024, 1} },
6500 .block_erase = spi_block_erase_60,
6501 }, {
6502 .eraseblocks = { {4 * 1024 * 1024, 1} },
6503 .block_erase = spi_block_erase_c7,
6504 }
6505 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006506 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006507 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6508 .write = spi_chip_write_256,
Roman Titov95edc892015-04-03 21:29:04 +00006509 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6510 .voltage = {1695, 1950},
6511 },
6512
6513 {
6514 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006515 .name = "GD25LQ40",
6516 .bustype = BUS_SPI,
6517 .manufacture_id = GIGADEVICE_ID,
6518 .model_id = GIGADEVICE_GD25LQ40,
6519 .total_size = 512,
6520 .page_size = 256,
6521 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6522 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6523 .tested = TEST_UNTESTED,
6524 .probe = probe_spi_rdid,
6525 .probe_timing = TIMING_ZERO,
6526 .block_erasers =
6527 {
6528 {
6529 .eraseblocks = { {4 * 1024, 128} },
6530 .block_erase = spi_block_erase_20,
6531 }, {
6532 .eraseblocks = { {32 * 1024, 16} },
6533 .block_erase = spi_block_erase_52,
6534 }, {
6535 .eraseblocks = { {64 * 1024, 8} },
6536 .block_erase = spi_block_erase_d8,
6537 }, {
6538 .eraseblocks = { {512 * 1024, 1} },
6539 .block_erase = spi_block_erase_60,
6540 }, {
6541 .eraseblocks = { {512 * 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 = {1695, 1950},
6550 },
6551
6552 {
6553 .vendor = "GigaDevice",
Roman Titov95edc892015-04-03 21:29:04 +00006554 .name = "GD25LQ64(B)",
6555 .bustype = BUS_SPI,
6556 .manufacture_id = GIGADEVICE_ID,
6557 .model_id = GIGADEVICE_GD25LQ64,
6558 .total_size = 8192,
6559 .page_size = 256,
6560 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Nico Huber3f3c1f32022-05-28 16:48:26 +02006561 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_WRSR_EXT2,
Sergii Dmytrukc74eac22022-10-06 18:17:58 +03006562 .tested = TEST_OK_PREWB,
Roman Titov95edc892015-04-03 21:29:04 +00006563 .probe = probe_spi_rdid,
6564 .probe_timing = TIMING_ZERO,
6565 .block_erasers =
6566 {
6567 {
6568 .eraseblocks = { {4 * 1024, 2048} },
6569 .block_erase = spi_block_erase_20,
6570 }, {
6571 .eraseblocks = { {32 * 1024, 256} },
6572 .block_erase = spi_block_erase_52,
6573 }, {
6574 .eraseblocks = { {64 * 1024, 128} },
6575 .block_erase = spi_block_erase_d8,
6576 }, {
6577 .eraseblocks = { {8 * 1024 * 1024, 1} },
6578 .block_erase = spi_block_erase_60,
6579 }, {
6580 .eraseblocks = { {8 * 1024 * 1024, 1} },
6581 .block_erase = spi_block_erase_c7,
6582 }
6583 },
6584 .printlock = spi_prettyprint_status_register_bp4_srwd,
6585 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6586 .write = spi_chip_write_256,
6587 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6588 .voltage = {1695, 1950},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +11006589 .reg_bits =
6590 {
6591 .srp = {STATUS1, 7, RW},
6592 .srl = {STATUS2, 0, RW},
6593 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
6594 .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */
6595 .sec = {STATUS1, 6, RW}, /* Called BP4 in datasheet, acts like SEC */
6596 .cmp = {STATUS2, 6, RW},
6597 },
6598 .decode_range = decode_range_spi25,
Roman Titov95edc892015-04-03 21:29:04 +00006599 },
6600
6601 {
6602 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006603 .name = "GD25LQ80",
Roman Titov95edc892015-04-03 21:29:04 +00006604 .bustype = BUS_SPI,
6605 .manufacture_id = GIGADEVICE_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006606 .model_id = GIGADEVICE_GD25LQ80,
6607 .total_size = 1024,
Roman Titov95edc892015-04-03 21:29:04 +00006608 .page_size = 256,
6609 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6610 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6611 .tested = TEST_UNTESTED,
6612 .probe = probe_spi_rdid,
6613 .probe_timing = TIMING_ZERO,
6614 .block_erasers =
6615 {
6616 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006617 .eraseblocks = { {4 * 1024, 256} },
Roman Titov95edc892015-04-03 21:29:04 +00006618 .block_erase = spi_block_erase_20,
6619 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006620 .eraseblocks = { {32 * 1024, 32} },
Roman Titov95edc892015-04-03 21:29:04 +00006621 .block_erase = spi_block_erase_52,
6622 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006623 .eraseblocks = { {64 * 1024, 16} },
Roman Titov95edc892015-04-03 21:29:04 +00006624 .block_erase = spi_block_erase_d8,
6625 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006626 .eraseblocks = { {1 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00006627 .block_erase = spi_block_erase_60,
6628 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006629 .eraseblocks = { {1 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00006630 .block_erase = spi_block_erase_c7,
6631 }
6632 },
6633 .printlock = spi_prettyprint_status_register_bp4_srwd,
6634 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6635 .write = spi_chip_write_256,
6636 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6637 .voltage = {1695, 1950},
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006638 },
6639
6640 {
6641 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006642 .name = "GD25Q10",
6643 .bustype = BUS_SPI,
6644 .manufacture_id = GIGADEVICE_ID,
6645 .model_id = GIGADEVICE_GD25Q10,
6646 .total_size = 128,
6647 .page_size = 256,
6648 .feature_bits = FEATURE_WRSR_WREN,
6649 .tested = TEST_UNTESTED,
6650 .probe = probe_spi_rdid,
6651 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10006652 .block_erasers =
6653 {
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006654 {
6655 .eraseblocks = { {4 * 1024, 32} },
6656 .block_erase = spi_block_erase_20,
6657 }, {
6658 .eraseblocks = { {32 * 1024, 4} },
6659 .block_erase = spi_block_erase_52,
6660 }, {
6661 .eraseblocks = { {64 * 1024, 2} },
6662 .block_erase = spi_block_erase_d8,
6663 }, {
6664 .eraseblocks = { {128 * 1024, 1} },
6665 .block_erase = spi_block_erase_60,
6666 }, {
6667 .eraseblocks = { {128 * 1024, 1} },
6668 .block_erase = spi_block_erase_c7,
6669 }
6670 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006671 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006672 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6673 .write = spi_chip_write_256,
6674 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6675 .voltage = {2700, 3600},
6676 },
6677
6678 {
6679 .vendor = "GigaDevice",
Alan Green4f009122019-08-26 10:45:18 +10006680 .name = "GD25Q127C/GD25Q128C",
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006681 .bustype = BUS_SPI,
6682 .manufacture_id = GIGADEVICE_ID,
6683 .model_id = GIGADEVICE_GD25Q128,
6684 .total_size = 16384,
6685 .page_size = 256,
6686 /* OTP: 1536B total; read 0x48; write 0x42, erase 0x44 */
6687 /* QPI: enable 0x38, disable 0xFF */
Nikolai Artemievd32e18b2022-02-15 18:06:55 +11006688 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_WRSR2,
Sergii Dmytrukc74eac22022-10-06 18:17:58 +03006689 .tested = TEST_OK_PREWB,
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006690 .probe = probe_spi_rdid,
6691 .probe_timing = TIMING_ZERO,
6692 .block_erasers =
6693 {
6694 {
6695 .eraseblocks = { {4 * 1024, 4096} },
6696 .block_erase = spi_block_erase_20,
6697 }, {
6698 .eraseblocks = { {32 * 1024, 512} },
6699 .block_erase = spi_block_erase_52,
6700 }, {
6701 .eraseblocks = { {64 * 1024, 256} },
6702 .block_erase = spi_block_erase_d8,
6703 }, {
6704 .eraseblocks = { {16 * 1024 * 1024, 1} },
6705 .block_erase = spi_block_erase_60,
6706 }, {
6707 .eraseblocks = { {16 * 1024 * 1024, 1} },
6708 .block_erase = spi_block_erase_c7,
6709 }
6710 },
6711 /* TODO: 2nd status reg (read 0x35, write 0x31) and 3rd status reg (read 0x15, write 0x11) */
6712 .printlock = spi_prettyprint_status_register_bp4_srwd,
6713 .unlock = spi_disable_blockprotect_bp4_srwd,
6714 .write = spi_chip_write_256,
6715 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6716 .voltage = {2700, 3600},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +11006717 .reg_bits =
6718 {
6719 .srp = {STATUS1, 7, RW},
6720 .srl = {STATUS2, 0, RW},
6721 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
6722 .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */
6723 .sec = {STATUS1, 6, RW}, /* Called BP4 in datasheet, acts like SEC */
6724 .cmp = {STATUS2, 6, RW},
6725 },
6726 .decode_range = decode_range_spi25,
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006727 },
6728
6729 {
6730 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006731 .name = "GD25Q16(B)",
6732 .bustype = BUS_SPI,
6733 .manufacture_id = GIGADEVICE_ID,
6734 .model_id = GIGADEVICE_GD25Q16,
6735 .total_size = 2048,
6736 .page_size = 256,
6737 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
6738 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6739 .tested = TEST_OK_PREW,
6740 .probe = probe_spi_rdid,
6741 .probe_timing = TIMING_ZERO,
6742 .block_erasers =
6743 {
6744 {
6745 .eraseblocks = { {4 * 1024, 512} },
6746 .block_erase = spi_block_erase_20,
6747 }, {
6748 .eraseblocks = { {32 * 1024, 64} },
6749 .block_erase = spi_block_erase_52,
6750 }, {
6751 .eraseblocks = { {64 * 1024, 32} },
6752 .block_erase = spi_block_erase_d8,
6753 }, {
6754 .eraseblocks = { {2 * 1024 * 1024, 1} },
6755 .block_erase = spi_block_erase_60,
6756 }, {
6757 .eraseblocks = { {2 * 1024 * 1024, 1} },
6758 .block_erase = spi_block_erase_c7,
6759 }
6760 },
6761 .printlock = spi_prettyprint_status_register_bp4_srwd,
6762 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6763 .write = spi_chip_write_256,
6764 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6765 .voltage = {2700, 3600},
6766 },
6767
6768 {
6769 .vendor = "GigaDevice",
6770 .name = "GD25Q20(B)",
6771 .bustype = BUS_SPI,
6772 .manufacture_id = GIGADEVICE_ID,
6773 .model_id = GIGADEVICE_GD25Q20,
6774 .total_size = 256,
6775 .page_size = 256,
6776 .feature_bits = FEATURE_WRSR_WREN,
6777 .tested = TEST_OK_PREW,
6778 .probe = probe_spi_rdid,
6779 .probe_timing = TIMING_ZERO,
6780 .block_erasers =
6781 {
6782 {
6783 .eraseblocks = { {4 * 1024, 64} },
6784 .block_erase = spi_block_erase_20,
6785 }, {
6786 .eraseblocks = { {32 * 1024, 8} },
6787 .block_erase = spi_block_erase_52,
6788 }, {
6789 .eraseblocks = { {64 * 1024, 4} },
6790 .block_erase = spi_block_erase_d8,
6791 }, {
6792 .eraseblocks = { {256 * 1024, 1} },
6793 .block_erase = spi_block_erase_60,
6794 }, {
6795 .eraseblocks = { {256 * 1024, 1} },
6796 .block_erase = spi_block_erase_c7,
6797 }
6798 },
6799 .printlock = spi_prettyprint_status_register_bp4_srwd,
6800 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6801 .write = spi_chip_write_256,
6802 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6803 .voltage = {2700, 3600},
6804 },
6805
6806 {
6807 .vendor = "GigaDevice",
Nikolai Artemiev3ca0af02022-06-17 15:10:18 +10006808 .name = "GD25Q256D/GD25Q256E",
Alan Green86fc9cf2019-08-26 15:02:12 +10006809 .bustype = BUS_SPI,
6810 .manufacture_id = GIGADEVICE_ID,
6811 .model_id = GIGADEVICE_GD25Q256D,
6812 .total_size = 32768,
6813 .page_size = 256,
Nikolai Artemievb931e7a2022-12-05 13:06:14 +11006814 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA |
Nico Huber3f3c1f32022-05-28 16:48:26 +02006815 FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3,
Sergii Dmytrukc74eac22022-10-06 18:17:58 +03006816 .tested = TEST_OK_PREWB,
Alan Green86fc9cf2019-08-26 15:02:12 +10006817 .probe = probe_spi_rdid,
6818 .probe_timing = TIMING_ZERO,
6819 .block_erasers =
6820 {
6821 {
6822 .eraseblocks = { {4 * 1024, 8192} },
Nico Huber5374dc32019-10-04 16:16:15 +02006823 .block_erase = spi_block_erase_21,
6824 }, {
6825 .eraseblocks = { {4 * 1024, 8192} },
Alan Green86fc9cf2019-08-26 15:02:12 +10006826 .block_erase = spi_block_erase_20,
6827 }, {
6828 .eraseblocks = { {32 * 1024, 1024} },
Nico Huber5374dc32019-10-04 16:16:15 +02006829 .block_erase = spi_block_erase_5c,
6830 }, {
6831 .eraseblocks = { {32 * 1024, 1024} },
Alan Green86fc9cf2019-08-26 15:02:12 +10006832 .block_erase = spi_block_erase_52,
6833 }, {
6834 .eraseblocks = { {64 * 1024, 512} },
Nico Huber5374dc32019-10-04 16:16:15 +02006835 .block_erase = spi_block_erase_dc,
6836 }, {
6837 .eraseblocks = { {64 * 1024, 512} },
Alan Green86fc9cf2019-08-26 15:02:12 +10006838 .block_erase = spi_block_erase_d8,
6839 }, {
6840 .eraseblocks = { {32 * 1024 * 1024, 1} },
6841 .block_erase = spi_block_erase_60,
6842 }, {
6843 .eraseblocks = { {32 * 1024 * 1024, 1} },
6844 .block_erase = spi_block_erase_c7,
6845 }
6846 },
6847 .printlock = spi_prettyprint_status_register_bp3_srwd,
6848 .unlock = spi_disable_blockprotect,
6849 .write = spi_chip_write_256,
6850 .read = spi_chip_read,
6851 .voltage = {2700, 3600},
Nikolai Artemievc6c3f282021-10-20 23:34:15 +11006852 .reg_bits =
6853 {
6854 .srp = {STATUS1, 7, RW},
6855 .srl = {STATUS2, 6, RW},
6856 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}},
6857 .tb = {STATUS1, 6, RW},
6858 },
Nikolai Artemievc9feb1b2021-10-21 01:35:13 +11006859 .decode_range = decode_range_spi25,
Nico Huberab6b18f2023-01-11 23:38:20 +01006860 .prepare_access = spi_prepare_4ba,
Alan Green86fc9cf2019-08-26 15:02:12 +10006861 },
6862
6863 {
6864 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006865 .name = "GD25Q32(B)",
6866 .bustype = BUS_SPI,
6867 .manufacture_id = GIGADEVICE_ID,
6868 .model_id = GIGADEVICE_GD25Q32,
6869 .total_size = 4096,
6870 .page_size = 256,
6871 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Nikolai Artemiev9de3f872021-10-20 22:32:25 +11006872 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_WRSR2,
Sergii Dmytrukc74eac22022-10-06 18:17:58 +03006873 .tested = TEST_OK_PREWB,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006874 .probe = probe_spi_rdid,
6875 .probe_timing = TIMING_ZERO,
6876 .block_erasers =
6877 {
6878 {
6879 .eraseblocks = { {4 * 1024, 1024} },
6880 .block_erase = spi_block_erase_20,
6881 }, {
6882 .eraseblocks = { {32 * 1024, 128} },
6883 .block_erase = spi_block_erase_52,
6884 }, {
6885 .eraseblocks = { {64 * 1024, 64} },
6886 .block_erase = spi_block_erase_d8,
6887 }, {
6888 .eraseblocks = { {4 * 1024 * 1024, 1} },
6889 .block_erase = spi_block_erase_60,
6890 }, {
6891 .eraseblocks = { {4 * 1024 * 1024, 1} },
6892 .block_erase = spi_block_erase_c7,
6893 }
6894 },
6895 .printlock = spi_prettyprint_status_register_bp4_srwd,
6896 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6897 .write = spi_chip_write_256,
6898 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6899 .voltage = {2700, 3600},
Nikolai Artemievc6c3f282021-10-20 23:34:15 +11006900 .reg_bits =
6901 {
6902 .srp = {STATUS1, 7, RW},
6903 .srl = {STATUS2, 0, RW},
6904 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
6905 .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */
6906 .sec = {STATUS1, 6, RW}, /* Called BP4 in datasheet, acts like SEC */
6907 .cmp = {STATUS2, 6, RW},
6908 },
Nikolai Artemievc9feb1b2021-10-21 01:35:13 +11006909 .decode_range = decode_range_spi25,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006910 },
6911
6912 {
6913 .vendor = "GigaDevice",
6914 .name = "GD25Q40(B)",
6915 .bustype = BUS_SPI,
6916 .manufacture_id = GIGADEVICE_ID,
6917 .model_id = GIGADEVICE_GD25Q40,
6918 .total_size = 512,
6919 .page_size = 256,
6920 .feature_bits = FEATURE_WRSR_WREN,
Simon Buhrow551664c2022-03-09 16:09:08 +01006921 .tested = TEST_OK_PREW,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006922 .probe = probe_spi_rdid,
6923 .probe_timing = TIMING_ZERO,
6924 .block_erasers =
6925 {
6926 {
6927 .eraseblocks = { {4 * 1024, 128} },
6928 .block_erase = spi_block_erase_20,
6929 }, {
6930 .eraseblocks = { {32 * 1024, 16} },
6931 .block_erase = spi_block_erase_52,
6932 }, {
6933 .eraseblocks = { {64 * 1024, 8} },
6934 .block_erase = spi_block_erase_d8,
6935 }, {
6936 .eraseblocks = { {512 * 1024, 1} },
6937 .block_erase = spi_block_erase_60,
6938 }, {
6939 .eraseblocks = { {512 * 1024, 1} },
6940 .block_erase = spi_block_erase_c7,
6941 }
6942 },
6943 .printlock = spi_prettyprint_status_register_bp4_srwd,
6944 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6945 .write = spi_chip_write_256,
6946 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6947 .voltage = {2700, 3600},
6948 },
6949
6950 {
6951 .vendor = "GigaDevice",
6952 .name = "GD25Q512",
6953 .bustype = BUS_SPI,
6954 .manufacture_id = GIGADEVICE_ID,
6955 .model_id = GIGADEVICE_GD25Q512,
6956 .total_size = 64,
6957 .page_size = 256,
6958 .feature_bits = FEATURE_WRSR_WREN,
6959 .tested = TEST_OK_PREW,
6960 .probe = probe_spi_rdid,
6961 .probe_timing = TIMING_ZERO,
6962 .block_erasers =
6963 {
6964 {
6965 .eraseblocks = { {4 * 1024, 16} },
6966 .block_erase = spi_block_erase_20,
6967 }, {
6968 .eraseblocks = { {32 * 1024, 2} },
6969 .block_erase = spi_block_erase_52,
6970 }, {
6971 .eraseblocks = { {64 * 1024, 1} },
6972 .block_erase = spi_block_erase_60,
6973 }, {
6974 .eraseblocks = { {64 * 1024, 1} },
6975 .block_erase = spi_block_erase_c7,
6976 }
6977 },
6978 .printlock = spi_prettyprint_status_register_bp4_srwd,
6979 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6980 .write = spi_chip_write_256,
6981 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6982 .voltage = {2700, 3600},
6983 },
6984
6985 {
6986 .vendor = "GigaDevice",
6987 .name = "GD25Q64(B)",
6988 .bustype = BUS_SPI,
6989 .manufacture_id = GIGADEVICE_ID,
6990 .model_id = GIGADEVICE_GD25Q64,
6991 .total_size = 8192,
6992 .page_size = 256,
6993 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Nikolai Artemievd32e18b2022-02-15 18:06:55 +11006994 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_WRSR2,
Sergii Dmytrukc74eac22022-10-06 18:17:58 +03006995 .tested = TEST_OK_PREWB,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006996 .probe = probe_spi_rdid,
6997 .probe_timing = TIMING_ZERO,
6998 .block_erasers =
6999 {
7000 {
7001 .eraseblocks = { {4 * 1024, 2048} },
7002 .block_erase = spi_block_erase_20,
7003 }, {
7004 .eraseblocks = { {32 * 1024, 256} },
7005 .block_erase = spi_block_erase_52,
7006 }, {
7007 .eraseblocks = { {64 * 1024, 128} },
7008 .block_erase = spi_block_erase_d8,
7009 }, {
7010 .eraseblocks = { {8 * 1024 * 1024, 1} },
7011 .block_erase = spi_block_erase_60,
7012 }, {
7013 .eraseblocks = { {8 * 1024 * 1024, 1} },
7014 .block_erase = spi_block_erase_c7,
7015 }
7016 },
7017 .printlock = spi_prettyprint_status_register_bp4_srwd,
7018 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7019 .write = spi_chip_write_256,
7020 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7021 .voltage = {2700, 3600},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +11007022 .reg_bits =
7023 {
7024 .srp = {STATUS1, 7, RW},
7025 .srl = {STATUS2, 0, RW},
7026 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
7027 .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */
7028 .sec = {STATUS1, 6, RW}, /* Called BP4 in datasheet, acts like SEC */
7029 .cmp = {STATUS2, 6, RW},
7030 },
7031 .decode_range = decode_range_spi25,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007032 },
7033
7034 {
7035 .vendor = "GigaDevice",
7036 .name = "GD25Q80(B)",
7037 .bustype = BUS_SPI,
7038 .manufacture_id = GIGADEVICE_ID,
7039 .model_id = GIGADEVICE_GD25Q80,
7040 .total_size = 1024,
7041 .page_size = 256,
7042 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
7043 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7044 .tested = TEST_OK_PREW,
7045 .probe = probe_spi_rdid,
7046 .probe_timing = TIMING_ZERO,
7047 .block_erasers =
7048 {
7049 {
7050 .eraseblocks = { {4 * 1024, 256} },
7051 .block_erase = spi_block_erase_20,
7052 }, {
7053 .eraseblocks = { {32 * 1024, 32} },
7054 .block_erase = spi_block_erase_52,
7055 }, {
7056 .eraseblocks = { {64 * 1024, 16} },
7057 .block_erase = spi_block_erase_d8,
7058 }, {
7059 .eraseblocks = { {1024 * 1024, 1} },
7060 .block_erase = spi_block_erase_60,
7061 }, {
7062 .eraseblocks = { {1024 * 1024, 1} },
7063 .block_erase = spi_block_erase_c7,
7064 }
7065 },
7066 .printlock = spi_prettyprint_status_register_bp4_srwd,
7067 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7068 .write = spi_chip_write_256,
7069 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7070 .voltage = {2700, 3600},
7071 },
7072
7073 {
7074 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00007075 .name = "GD25T80",
7076 .bustype = BUS_SPI,
7077 .manufacture_id = GIGADEVICE_ID,
7078 .model_id = GIGADEVICE_GD25T80,
7079 .total_size = 1024,
7080 .page_size = 256,
7081 /* OTP: 256B total; enter 0x3A */
7082 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7083 .tested = TEST_UNTESTED,
7084 .probe = probe_spi_rdid,
7085 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10007086 .block_erasers =
7087 {
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00007088 {
7089 .eraseblocks = { {4 * 1024, 256} },
7090 .block_erase = spi_block_erase_20,
7091 }, {
7092 .eraseblocks = { {64 * 1024, 16} },
7093 .block_erase = spi_block_erase_52,
7094 }, {
7095 .eraseblocks = { {64 * 1024, 16} },
7096 .block_erase = spi_block_erase_d8,
7097 }, {
7098 .eraseblocks = { {1024 * 1024, 1} },
7099 .block_erase = spi_block_erase_60,
7100 }, {
7101 .eraseblocks = { {1024 * 1024, 1} },
7102 .block_erase = spi_block_erase_c7,
7103 }
7104 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00007105 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00007106 .unlock = spi_disable_blockprotect,
7107 .write = spi_chip_write_256,
7108 .read = spi_chip_read,
Stefan Tauner352e50b2013-02-22 15:58:45 +00007109 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00007110 },
7111
7112 {
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007113 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10007114 .name = "GD25VQ16C",
7115 .bustype = BUS_SPI,
7116 .manufacture_id = GIGADEVICE_ID,
7117 .model_id = GIGADEVICE_GD25VQ16C,
7118 .total_size = 2 * 1024,
7119 .page_size = 256,
7120 /* Supports SFDP */
7121 /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */
7122 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7123 .tested = TEST_UNTESTED,
7124 .probe = probe_spi_rdid,
7125 .probe_timing = TIMING_ZERO,
7126 .block_erasers =
7127 {
7128 {
7129 .eraseblocks = { { 4 * 1024, 512} },
7130 .block_erase = spi_block_erase_20,
7131 }, {
7132 .eraseblocks = { { 32 * 1024, 64} },
7133 .block_erase = spi_block_erase_52,
7134 }, {
7135 .eraseblocks = { { 64 * 1024, 32} },
7136 .block_erase = spi_block_erase_d8,
7137 }, {
7138 .eraseblocks = { {2 * 1024 * 1024, 1} },
7139 .block_erase = spi_block_erase_60,
7140 }, {
7141 .eraseblocks = { {2 * 1024 * 1024, 1} },
7142 .block_erase = spi_block_erase_c7,
7143 }
7144 },
7145 .printlock = spi_prettyprint_status_register_bp4_srwd,
7146 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7147 .write = spi_chip_write_256,
7148 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7149 .voltage = {2300, 3600},
7150 },
7151
7152 {
7153 .vendor = "GigaDevice",
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007154 .name = "GD25VQ21B",
7155 .bustype = BUS_SPI,
7156 .manufacture_id = GIGADEVICE_ID,
7157 .model_id = GIGADEVICE_GD25VQ21B,
7158 .total_size = 256,
7159 .page_size = 256,
7160 /* OTP: 1536B total; read 0x48, write 0x42, erase 0x44 */
7161 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7162 .tested = TEST_UNTESTED,
7163 .probe = probe_spi_rdid,
7164 .probe_timing = TIMING_ZERO,
7165 .block_erasers =
7166 {
7167 {
7168 .eraseblocks = { { 4 * 1024, 64} },
7169 .block_erase = spi_block_erase_20,
7170 }, {
7171 .eraseblocks = { { 32 * 1024, 8} },
7172 .block_erase = spi_block_erase_52,
7173 }, {
7174 .eraseblocks = { { 64 * 1024, 4} },
7175 .block_erase = spi_block_erase_d8,
7176 }, {
7177 .eraseblocks = { {256 * 1024, 1} },
7178 .block_erase = spi_block_erase_60,
7179 }, {
7180 .eraseblocks = { {256 * 1024, 1} },
7181 .block_erase = spi_block_erase_c7,
7182 }
7183 },
7184 .printlock = spi_prettyprint_status_register_bp4_srwd,
7185 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7186 .write = spi_chip_write_256,
7187 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7188 .voltage = {2300, 3600},
7189 },
7190
7191 {
7192 .vendor = "GigaDevice",
7193 .name = "GD25VQ40C",
7194 .bustype = BUS_SPI,
7195 .manufacture_id = GIGADEVICE_ID,
7196 .model_id = GIGADEVICE_GD25VQ41B,
7197 .total_size = 512,
7198 .page_size = 256,
7199 /* Supports SFDP */
7200 /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */
7201 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7202 .tested = TEST_UNTESTED,
7203 .probe = probe_spi_rdid,
7204 .probe_timing = TIMING_ZERO,
7205 .block_erasers =
7206 {
7207 {
7208 .eraseblocks = { { 4 * 1024, 128} },
7209 .block_erase = spi_block_erase_20,
7210 }, {
7211 .eraseblocks = { { 32 * 1024, 16} },
7212 .block_erase = spi_block_erase_52,
7213 }, {
7214 .eraseblocks = { { 64 * 1024, 8} },
7215 .block_erase = spi_block_erase_d8,
7216 }, {
7217 .eraseblocks = { {512 * 1024, 1} },
7218 .block_erase = spi_block_erase_60,
7219 }, {
7220 .eraseblocks = { {512 * 1024, 1} },
7221 .block_erase = spi_block_erase_c7,
7222 }
7223 },
7224 .printlock = spi_prettyprint_status_register_bp4_srwd,
7225 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7226 .write = spi_chip_write_256,
7227 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7228 .voltage = {2300, 3600},
7229 },
7230
7231 {
7232 .vendor = "GigaDevice",
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007233 .name = "GD25VQ41B",
7234 .bustype = BUS_SPI,
7235 .manufacture_id = GIGADEVICE_ID,
7236 .model_id = GIGADEVICE_GD25VQ41B,
7237 .total_size = 512,
7238 .page_size = 256,
7239 /* OTP: 1536B total; read 0x48, write 0x42, erase 0x44 */
7240 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner0be072c2016-03-13 15:16:30 +00007241 .tested = TEST_OK_PREW,
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007242 .probe = probe_spi_rdid,
7243 .probe_timing = TIMING_ZERO,
Stefan Tauner0be072c2016-03-13 15:16:30 +00007244 .block_erasers =
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007245 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00007246 {
7247 .eraseblocks = { { 4 * 1024, 128} },
7248 .block_erase = spi_block_erase_20,
7249 }, {
7250 .eraseblocks = { { 32 * 1024, 16} },
7251 .block_erase = spi_block_erase_52,
7252 }, {
7253 .eraseblocks = { { 64 * 1024, 8} },
7254 .block_erase = spi_block_erase_d8,
7255 }, {
7256 .eraseblocks = { {512 * 1024, 1} },
7257 .block_erase = spi_block_erase_60,
7258 }, {
7259 .eraseblocks = { {512 * 1024, 1} },
7260 .block_erase = spi_block_erase_c7,
7261 }
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007262 },
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007263 .printlock = spi_prettyprint_status_register_bp4_srwd,
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007264 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7265 .write = spi_chip_write_256,
7266 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7267 .voltage = {2300, 3600},
7268 },
7269
7270 {
7271 .vendor = "GigaDevice",
7272 .name = "GD25VQ80C",
7273 .bustype = BUS_SPI,
7274 .manufacture_id = GIGADEVICE_ID,
7275 .model_id = GIGADEVICE_GD25VQ80C,
7276 .total_size = 1024,
7277 .page_size = 256,
7278 /* Supports SFDP */
7279 /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */
7280 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7281 .tested = TEST_UNTESTED,
7282 .probe = probe_spi_rdid,
7283 .probe_timing = TIMING_ZERO,
7284 .block_erasers =
7285 {
7286 {
7287 .eraseblocks = { { 4 * 1024, 256} },
7288 .block_erase = spi_block_erase_20,
7289 }, {
7290 .eraseblocks = { { 32 * 1024, 32} },
7291 .block_erase = spi_block_erase_52,
7292 }, {
7293 .eraseblocks = { { 64 * 1024, 16} },
7294 .block_erase = spi_block_erase_d8,
7295 }, {
7296 .eraseblocks = { {1024 * 1024, 1} },
7297 .block_erase = spi_block_erase_60,
7298 }, {
7299 .eraseblocks = { {1024 * 1024, 1} },
7300 .block_erase = spi_block_erase_c7,
7301 }
7302 },
7303 .printlock = spi_prettyprint_status_register_bp4_srwd,
7304 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7305 .write = spi_chip_write_256,
7306 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7307 .voltage = {2300, 3600},
7308 },
7309
7310 {
Dino Li3214f582020-03-25 17:39:53 +08007311 .vendor = "GigaDevice",
7312 .name = "GD25WQ80E",
7313 .bustype = BUS_SPI,
7314 .manufacture_id = GIGADEVICE_ID,
7315 .model_id = GIGADEVICE_GD25WQ80E,
7316 .total_size = 1024,
7317 .page_size = 256,
7318 .feature_bits = FEATURE_WRSR_WREN,
7319 .tested = TEST_OK_PREW,
7320 .probe = probe_spi_rdid,
7321 .probe_timing = TIMING_ZERO,
7322 .block_erasers =
7323 {
7324 {
7325 .eraseblocks = { {4 * 1024, 256} },
7326 .block_erase = spi_block_erase_20,
7327 }, {
7328 .eraseblocks = { {32 * 1024, 32} },
7329 .block_erase = spi_block_erase_52,
7330 }, {
7331 .eraseblocks = { {64 * 1024, 16} },
7332 .block_erase = spi_block_erase_d8,
7333 }, {
7334 .eraseblocks = { {1 * 1024 * 1024, 1} },
7335 .block_erase = spi_block_erase_60,
7336 }, {
7337 .eraseblocks = { {1 * 1024 * 1024, 1} },
7338 .block_erase = spi_block_erase_c7,
7339 }
7340 },
7341 .printlock = spi_prettyprint_status_register_bp4_srwd,
7342 .unlock = spi_disable_blockprotect_bp4_srwd,
7343 .write = spi_chip_write_256,
7344 .read = spi_chip_read,
7345 .voltage = {1650, 3600},
7346 },
7347
7348 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007349 .vendor = "Hyundai",
7350 .name = "HY29F002B",
7351 .bustype = BUS_PARALLEL,
7352 .manufacture_id = HYUNDAI_ID,
7353 .model_id = HYUNDAI_HY29F002B,
7354 .total_size = 256,
7355 .page_size = 256 * 1024,
7356 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007357 .tested = TEST_UNTESTED,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007358 .probe = probe_jedec,
7359 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007360 .block_erasers =
7361 {
7362 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007363 .eraseblocks = {
7364 {16 * 1024, 1},
7365 {8 * 1024, 2},
7366 {32 * 1024, 1},
7367 {64 * 1024, 3},
7368 },
7369 .block_erase = erase_sector_jedec,
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007370 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007371 .eraseblocks = { {256 * 1024, 1} },
7372 .block_erase = erase_chip_block_jedec,
7373 },
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007374 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10007375 .write = write_jedec_1,
7376 .read = read_memmapped,
7377 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007378 },
7379
7380 {
David Borgc96a8bd2010-06-21 16:12:22 +00007381 .vendor = "Hyundai",
7382 .name = "HY29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007383 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00007384 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007385 .model_id = HYUNDAI_HY29F002T,
David Borgc96a8bd2010-06-21 16:12:22 +00007386 .total_size = 256,
7387 .page_size = 256 * 1024,
7388 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007389 .tested = TEST_OK_PRE,
David Borgc96a8bd2010-06-21 16:12:22 +00007390 .probe = probe_jedec,
7391 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7392 .block_erasers =
7393 {
7394 {
7395 .eraseblocks = {
7396 {64 * 1024, 3},
7397 {32 * 1024, 1},
7398 {8 * 1024, 2},
7399 {16 * 1024, 1},
7400 },
7401 .block_erase = erase_sector_jedec,
7402 }, {
7403 .eraseblocks = { {256 * 1024, 1} },
7404 .block_erase = erase_chip_block_jedec,
7405 },
7406 },
7407 .write = write_jedec_1,
7408 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007409 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00007410 },
7411
7412 {
7413 .vendor = "Hyundai",
Joshua Roysf1324e02010-09-16 00:51:51 +00007414 .name = "HY29F040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007415 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00007416 .manufacture_id = HYUNDAI_ID,
7417 .model_id = HYUNDAI_HY29F040A,
7418 .total_size = 512,
7419 .page_size = 64 * 1024,
7420 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
7421 .tested = TEST_UNTESTED,
7422 .probe = probe_jedec,
7423 .probe_timing = TIMING_ZERO,
7424 .block_erasers =
7425 {
7426 {
7427 .eraseblocks = { {64 * 1024, 8} },
7428 .block_erase = erase_sector_jedec,
7429 }, {
7430 .eraseblocks = { {512 * 1024, 1} },
7431 .block_erase = erase_chip_block_jedec,
7432 },
7433 },
7434 .write = write_jedec_1,
7435 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007436 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00007437 },
7438
7439 {
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007440 .vendor = "ISSI",
Angel Pons2ef47f32018-09-30 16:47:30 +02007441 .name = "IS25LP064",
7442 .bustype = BUS_SPI,
7443 .manufacture_id = ISSI_ID_SPI,
7444 .model_id = ISSI_IS25LP064,
7445 .total_size = 8192,
7446 .page_size = 256,
7447 /* OTP: 1024B total; read 0x48; write 0x42 */
7448 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Simon Buhrow9bf829d2021-10-20 17:09:09 +02007449 .tested = TEST_OK_PREW,
Angel Pons2ef47f32018-09-30 16:47:30 +02007450 .probe = probe_spi_rdid,
7451 .probe_timing = TIMING_ZERO,
7452 .block_erasers =
7453 {
7454 {
7455 .eraseblocks = { {4 * 1024, 2048} },
7456 .block_erase = spi_block_erase_20,
7457 }, {
7458 .eraseblocks = { {4 * 1024, 2048} },
7459 .block_erase = spi_block_erase_d7,
7460 }, {
7461 .eraseblocks = { {32 * 1024, 256} },
7462 .block_erase = spi_block_erase_52,
7463 }, {
7464 .eraseblocks = { {64 * 1024, 128} },
7465 .block_erase = spi_block_erase_d8,
7466 }, {
7467 .eraseblocks = { {8 * 1024 * 1024, 1} },
7468 .block_erase = spi_block_erase_60,
7469 }, {
7470 .eraseblocks = { {8 * 1024 * 1024, 1} },
7471 .block_erase = spi_block_erase_c7,
7472 }
7473 },
7474 .unlock = spi_disable_blockprotect,
7475 .write = spi_chip_write_256,
7476 .read = spi_chip_read,
7477 .voltage = {2300, 3600},
7478 },
7479
7480 {
7481 .vendor = "ISSI",
David Hendricks3083ed92017-05-02 13:25:56 -07007482 .name = "IS25LP128",
7483 .bustype = BUS_SPI,
7484 .manufacture_id = ISSI_ID_SPI,
7485 .model_id = ISSI_IS25LP128,
7486 .total_size = 16384,
7487 .page_size = 256,
7488 /* OTP: 1024B total; read 0x48; write 0x42 */
7489 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7490 .tested = TEST_OK_PREW,
7491 .probe = probe_spi_rdid,
7492 .probe_timing = TIMING_ZERO,
7493 .block_erasers =
7494 {
7495 {
7496 .eraseblocks = { {4 * 1024, 4096} },
7497 .block_erase = spi_block_erase_20,
7498 }, {
7499 .eraseblocks = { {4 * 1024, 4096} },
7500 .block_erase = spi_block_erase_d7,
7501 }, {
7502 .eraseblocks = { {32 * 1024, 512} },
7503 .block_erase = spi_block_erase_52,
7504 }, {
7505 .eraseblocks = { {64 * 1024, 256} },
7506 .block_erase = spi_block_erase_d8,
7507 }, {
7508 .eraseblocks = { {16 * 1024 * 1024, 1} },
7509 .block_erase = spi_block_erase_60,
7510 }, {
7511 .eraseblocks = { {16 * 1024 * 1024, 1} },
7512 .block_erase = spi_block_erase_c7,
7513 }
7514 },
7515 .unlock = spi_disable_blockprotect,
7516 .write = spi_chip_write_256,
7517 .read = spi_chip_read,
7518 .voltage = {2300, 3600},
7519 },
7520
7521 {
7522 .vendor = "ISSI",
David Hendricks61818dc2018-10-28 01:02:21 +00007523 .name = "IS25LP256",
7524 .bustype = BUS_SPI,
7525 .manufacture_id = ISSI_ID_SPI,
7526 .model_id = ISSI_IS25LP256,
7527 .total_size = 32768,
7528 .page_size = 256,
7529 /* supports SFDP */
7530 /* OTP: 1024B total; read 0x68; write 0x62, erase 0x64, read ID 0x4B */
Nico Huberad55d5a2022-06-20 19:32:16 +02007531 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP |
7532 FEATURE_4BA | FEATURE_4BA_ENTER_EAR7 | FEATURE_4BA_EAR_1716,
David Hendricks61818dc2018-10-28 01:02:21 +00007533 .tested = TEST_OK_PREW,
7534 .probe = probe_spi_rdid,
7535 .probe_timing = TIMING_ZERO,
7536 .block_erasers =
7537 {
7538 {
7539 .eraseblocks = { {4 * 1024, 8192} },
7540 .block_erase = spi_block_erase_21,
7541 }, {
7542 .eraseblocks = { {4 * 1024, 8192} },
7543 .block_erase = spi_block_erase_20,
7544 /* could also use spi_block_erase_d7 */
7545 }, {
7546 .eraseblocks = { {32 * 1024, 1024} },
7547 .block_erase = spi_block_erase_5c,
7548 }, {
7549 .eraseblocks = { {32 * 1024, 1024} },
7550 .block_erase = spi_block_erase_52,
7551 }, {
7552 .eraseblocks = { {64 * 1024, 512} },
7553 .block_erase = spi_block_erase_dc,
7554 }, {
7555 .eraseblocks = { {64 * 1024, 512} },
7556 .block_erase = spi_block_erase_d8,
7557 }, {
7558 .eraseblocks = { {32 * 1024 * 1024, 1} },
7559 .block_erase = spi_block_erase_60,
7560 }, {
7561 .eraseblocks = { {32 * 1024 * 1024, 1} },
7562 .block_erase = spi_block_erase_c7,
7563 }
7564 },
7565 .unlock = spi_disable_blockprotect,
7566 .write = spi_chip_write_256,
7567 .read = spi_chip_read,
7568 .voltage = {2300, 3600},
Nico Huberab6b18f2023-01-11 23:38:20 +01007569 .prepare_access = spi_prepare_4ba,
David Hendricks61818dc2018-10-28 01:02:21 +00007570 },
7571
7572 {
7573 .vendor = "ISSI",
Nico Huberb27b8d12018-10-02 20:46:21 +02007574 .name = "IS25WP032",
7575 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +10007576 .manufacture_id = ISSI_ID_SPI,
Nico Huberb27b8d12018-10-02 20:46:21 +02007577 .model_id = ISSI_IS25WP032,
7578 .total_size = 4096,
7579 .page_size = 256,
7580 /* OTP: 1024B total; read 0x48; write 0x42 */
7581 /* QPI enable 0x35, disable 0xF5 */
7582 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7583 .tested = TEST_UNTESTED,
7584 .probe = probe_spi_rdid,
7585 .probe_timing = TIMING_ZERO,
7586 .block_erasers =
7587 {
7588 {
7589 .eraseblocks = { {4 * 1024, 1024} },
7590 .block_erase = spi_block_erase_20,
7591 }, {
7592 .eraseblocks = { {4 * 1024, 1024} },
7593 .block_erase = spi_block_erase_d7,
7594 }, {
7595 .eraseblocks = { {32 * 1024, 128} },
7596 .block_erase = spi_block_erase_52,
7597 }, {
7598 .eraseblocks = { {64 * 1024, 64} },
7599 .block_erase = spi_block_erase_d8,
7600 }, {
7601 .eraseblocks = { {4 * 1024 * 1024, 1} },
7602 .block_erase = spi_block_erase_60,
7603 }, {
7604 .eraseblocks = { {4 * 1024 * 1024, 1} },
7605 .block_erase = spi_block_erase_c7,
7606 }
7607 },
7608 .unlock = spi_disable_blockprotect,
7609 .write = spi_chip_write_256,
7610 .read = spi_chip_read,
7611 .voltage = {1650, 1950},
7612 },
7613
7614 {
7615 .vendor = "ISSI",
7616 .name = "IS25WP064",
7617 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +10007618 .manufacture_id = ISSI_ID_SPI,
Nico Huberb27b8d12018-10-02 20:46:21 +02007619 .model_id = ISSI_IS25WP064,
7620 .total_size = 8192,
7621 .page_size = 256,
7622 /* OTP: 1024B total; read 0x48; write 0x42 */
7623 /* QPI enable 0x35, disable 0xF5 */
7624 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7625 .tested = TEST_OK_PREW,
7626 .probe = probe_spi_rdid,
7627 .probe_timing = TIMING_ZERO,
7628 .block_erasers =
7629 {
7630 {
7631 .eraseblocks = { {4 * 1024, 2048} },
7632 .block_erase = spi_block_erase_20,
7633 }, {
7634 .eraseblocks = { {4 * 1024, 2048} },
7635 .block_erase = spi_block_erase_d7,
7636 }, {
7637 .eraseblocks = { {32 * 1024, 256} },
7638 .block_erase = spi_block_erase_52,
7639 }, {
7640 .eraseblocks = { {64 * 1024, 128} },
7641 .block_erase = spi_block_erase_d8,
7642 }, {
7643 .eraseblocks = { {8 * 1024 * 1024, 1} },
7644 .block_erase = spi_block_erase_60,
7645 }, {
7646 .eraseblocks = { {8 * 1024 * 1024, 1} },
7647 .block_erase = spi_block_erase_c7,
7648 }
7649 },
7650 .unlock = spi_disable_blockprotect,
7651 .write = spi_chip_write_256,
7652 .read = spi_chip_read,
7653 .voltage = {1650, 1950},
7654 },
7655
7656 {
7657 .vendor = "ISSI",
David Hendricks3083ed92017-05-02 13:25:56 -07007658 .name = "IS25WP128",
7659 .bustype = BUS_SPI,
7660 .manufacture_id = ISSI_ID_SPI,
7661 .model_id = ISSI_IS25WP128,
7662 .total_size = 16384,
7663 .page_size = 256,
7664 /* OTP: 1024B total; read 0x48; write 0x42 */
Nico Huberb27b8d12018-10-02 20:46:21 +02007665 /* QPI enable 0x35, disable 0xF5 */
7666 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
David Hendricks3083ed92017-05-02 13:25:56 -07007667 .tested = TEST_OK_PREW,
7668 .probe = probe_spi_rdid,
7669 .probe_timing = TIMING_ZERO,
7670 .block_erasers =
7671 {
7672 {
7673 .eraseblocks = { {4 * 1024, 4096} },
7674 .block_erase = spi_block_erase_20,
7675 }, {
7676 .eraseblocks = { {4 * 1024, 4096} },
7677 .block_erase = spi_block_erase_d7,
7678 }, {
7679 .eraseblocks = { {32 * 1024, 512} },
7680 .block_erase = spi_block_erase_52,
7681 }, {
7682 .eraseblocks = { {64 * 1024, 256} },
7683 .block_erase = spi_block_erase_d8,
7684 }, {
7685 .eraseblocks = { {16 * 1024 * 1024, 1} },
7686 .block_erase = spi_block_erase_60,
7687 }, {
7688 .eraseblocks = { {16 * 1024 * 1024, 1} },
7689 .block_erase = spi_block_erase_c7,
7690 }
7691 },
7692 .unlock = spi_disable_blockprotect,
7693 .write = spi_chip_write_256,
7694 .read = spi_chip_read,
7695 .voltage = {1650, 1950},
7696 },
7697
7698 {
7699 .vendor = "ISSI",
David Hendricks61818dc2018-10-28 01:02:21 +00007700 .name = "IS25WP256",
7701 .bustype = BUS_SPI,
7702 .manufacture_id = ISSI_ID_SPI,
7703 .model_id = ISSI_IS25WP256,
7704 .total_size = 32768,
7705 .page_size = 256,
7706 /* supports SFDP */
7707 /* OTP: 1024B total; read 0x68; write 0x62, erase 0x64, read ID 0x4B */
Nico Huberad55d5a2022-06-20 19:32:16 +02007708 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP |
7709 FEATURE_4BA | FEATURE_4BA_ENTER_EAR7 | FEATURE_4BA_EAR_1716,
David Hendricks61818dc2018-10-28 01:02:21 +00007710 .tested = TEST_OK_PREW,
7711 .probe = probe_spi_rdid,
7712 .probe_timing = TIMING_ZERO,
7713 .block_erasers =
7714 {
7715 {
7716 .eraseblocks = { {4 * 1024, 8192} },
7717 .block_erase = spi_block_erase_21,
7718 }, {
7719 .eraseblocks = { {4 * 1024, 8192} },
7720 .block_erase = spi_block_erase_20,
7721 /* could also use spi_block_erase_d7 */
7722 }, {
7723 .eraseblocks = { {32 * 1024, 1024} },
7724 .block_erase = spi_block_erase_5c,
7725 }, {
7726 .eraseblocks = { {32 * 1024, 1024} },
7727 .block_erase = spi_block_erase_52,
7728 }, {
7729 .eraseblocks = { {64 * 1024, 512} },
7730 .block_erase = spi_block_erase_dc,
7731 }, {
7732 .eraseblocks = { {64 * 1024, 512} },
7733 .block_erase = spi_block_erase_d8,
7734 }, {
7735 .eraseblocks = { {32 * 1024 * 1024, 1} },
7736 .block_erase = spi_block_erase_60,
7737 }, {
7738 .eraseblocks = { {32 * 1024 * 1024, 1} },
7739 .block_erase = spi_block_erase_c7,
7740 }
7741 },
7742 .unlock = spi_disable_blockprotect,
7743 .write = spi_chip_write_256,
7744 .read = spi_chip_read,
7745 .voltage = {1650, 1950},
Nico Huberab6b18f2023-01-11 23:38:20 +01007746 .prepare_access = spi_prepare_4ba,
David Hendricks61818dc2018-10-28 01:02:21 +00007747 },
7748
7749 {
7750 .vendor = "ISSI",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007751 .name = "IS29GL064B",
7752 .bustype = BUS_PARALLEL,
7753 .manufacture_id = ISSI_ID,
7754 .model_id = ISSI_PMC_IS29GL064B,
7755 .total_size = 8192,
7756 .page_size = 128 * 1024, /* actual page size is 16 */
7757 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7758 .tested = TEST_UNTESTED,
7759 .probe = probe_jedec_29gl,
7760 .probe_timing = TIMING_ZERO,
7761 .block_erasers =
7762 {
7763 {
7764 .eraseblocks = {
7765 {8 * 1024, 8},
7766 {64 * 1024, 127},
7767 },
7768 .block_erase = erase_sector_jedec,
7769 }, {
7770 .eraseblocks = { {8 * 1024 * 1024, 1} },
7771 .block_erase = erase_chip_block_jedec,
7772 },
7773 },
7774 .write = write_jedec_1,
7775 .read = read_memmapped,
7776 .voltage = {2700, 3600},
7777 },
7778
7779 {
7780 .vendor = "ISSI",
Alan Green1f9cc7d2019-07-01 11:10:45 +10007781 .name = "IS29GL064H/L",
7782 .bustype = BUS_PARALLEL,
7783 .manufacture_id = ISSI_ID,
7784 .model_id = ISSI_PMC_IS29GL064HL,
7785 .total_size = 8192,
7786 .page_size = 128 * 1024, /* actual page size is 16 */
7787 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7788 .tested = TEST_UNTESTED,
7789 .probe = probe_jedec_29gl,
7790 .probe_timing = TIMING_ZERO,
7791 .block_erasers =
7792 {
7793 {
7794 .eraseblocks = { {64 * 1024, 128} },
7795 .block_erase = erase_sector_jedec,
7796 }, {
7797 .eraseblocks = { {8 * 1024 * 1024, 1} },
7798 .block_erase = erase_chip_block_jedec,
7799 },
7800 },
7801 .write = write_jedec_1,
7802 .read = read_memmapped,
7803 .voltage = {2700, 3600},
7804 },
7805
7806 {
7807 .vendor = "ISSI",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007808 .name = "IS29GL064T",
7809 .bustype = BUS_PARALLEL,
7810 .manufacture_id = ISSI_ID,
7811 .model_id = ISSI_PMC_IS29GL064T,
7812 .total_size = 8192,
7813 .page_size = 128 * 1024, /* actual page size is 16 */
7814 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7815 .tested = TEST_UNTESTED,
7816 .probe = probe_jedec_29gl,
7817 .probe_timing = TIMING_ZERO,
7818 .block_erasers =
7819 {
7820 {
7821 .eraseblocks = {
7822 {64 * 1024, 127},
7823 {8 * 1024, 8},
7824 },
7825 .block_erase = erase_sector_jedec,
7826 }, {
7827 .eraseblocks = { {8 * 1024 * 1024, 1} },
7828 .block_erase = erase_chip_block_jedec,
7829 },
7830 },
7831 .write = write_jedec_1,
7832 .read = read_memmapped,
7833 .voltage = {2700, 3600},
7834 },
7835
7836 {
7837 .vendor = "ISSI",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007838 .name = "IS29GL128H/L",
7839 .bustype = BUS_PARALLEL,
7840 .manufacture_id = ISSI_ID,
7841 .model_id = ISSI_PMC_IS29GL128HL,
7842 .total_size = 16384,
7843 .page_size = 128 * 1024, /* actual page size is 16 */
7844 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7845 .tested = TEST_UNTESTED,
7846 .probe = probe_jedec_29gl,
7847 .probe_timing = TIMING_ZERO,
7848 .block_erasers =
7849 {
7850 {
7851 .eraseblocks = { {128 * 1024, 128} },
7852 .block_erase = erase_sector_jedec,
7853 }, {
7854 .eraseblocks = { {16 * 1024 * 1024, 1} },
7855 .block_erase = erase_chip_block_jedec,
7856 },
7857 },
7858 .write = write_jedec_1,
7859 .read = read_memmapped,
7860 .voltage = {2700, 3600},
7861 },
7862
7863 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007864 .vendor = "Intel",
7865 .name = "25F160S33B8",
7866 .bustype = BUS_SPI,
7867 .manufacture_id = INTEL_ID,
7868 .model_id = INTEL_25F160S33B8,
7869 .total_size = 2048,
7870 .page_size = 256,
7871 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
7872 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7873 .tested = TEST_UNTESTED,
7874 .probe = probe_spi_rdid,
7875 .probe_timing = TIMING_ZERO,
7876 .block_erasers =
7877 {
7878 {
7879 /* This chip supports erasing of the 8 so-called "parameter blocks" with
7880 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
7881 * have no effect on the memory contents, but sets a flag in the SR.
7882 .eraseblocks = {
7883 {8 * 1024, 8},
7884 {64 * 1024, 31} // inaccessible
7885 },
7886 .block_erase = spi_block_erase_40,
7887 }, { */
7888 .eraseblocks = { {64 * 1024, 32} },
7889 .block_erase = spi_block_erase_d8,
7890 }, {
7891 .eraseblocks = { {2 * 1024 * 1024, 1} },
7892 .block_erase = spi_block_erase_c7,
7893 }
7894 },
7895 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
7896 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
7897 .write = spi_chip_write_256,
7898 .read = spi_chip_read, /* also fast read 0x0B */
7899 .voltage = {2700, 3600},
7900 },
7901
7902 {
7903 .vendor = "Intel",
7904 .name = "25F160S33T8",
7905 .bustype = BUS_SPI,
7906 .manufacture_id = INTEL_ID,
7907 .model_id = INTEL_25F160S33T8,
7908 .total_size = 2048,
7909 .page_size = 256,
7910 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
7911 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7912 .tested = TEST_UNTESTED,
7913 .probe = probe_spi_rdid,
7914 .probe_timing = TIMING_ZERO,
7915 .block_erasers =
7916 {
7917 {
7918 /* This chip supports erasing of the 8 so-called "parameter blocks" with
7919 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
7920 * have no effect on the memory contents, but sets a flag in the SR.
7921 .eraseblocks = {
7922 {64 * 1024, 31}, // inaccessible
7923 {8 * 1024, 8}
7924 },
7925 .block_erase = spi_block_erase_40,
7926 }, { */
7927 .eraseblocks = { {64 * 1024, 32} },
7928 .block_erase = spi_block_erase_d8,
7929 }, {
7930 .eraseblocks = { {2 * 1024 * 1024, 1} },
7931 .block_erase = spi_block_erase_c7,
7932 }
7933 },
7934 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
7935 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
7936 .write = spi_chip_write_256,
7937 .read = spi_chip_read, /* also fast read 0x0B */
7938 .voltage = {2700, 3600},
7939 },
7940
7941 {
7942 .vendor = "Intel",
7943 .name = "25F320S33B8",
7944 .bustype = BUS_SPI,
7945 .manufacture_id = INTEL_ID,
7946 .model_id = INTEL_25F320S33B8,
7947 .total_size = 4096,
7948 .page_size = 256,
7949 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
7950 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7951 .tested = TEST_UNTESTED,
7952 .probe = probe_spi_rdid,
7953 .probe_timing = TIMING_ZERO,
7954 .block_erasers =
7955 {
7956 {
7957 /* This chip supports erasing of the 8 so-called "parameter blocks" with
7958 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
7959 * have no effect on the memory contents, but sets a flag in the SR.
7960 .eraseblocks = {
7961 {8 * 1024, 8},
7962 {64 * 1024, 63} // inaccessible
7963 },
7964 .block_erase = spi_block_erase_40,
7965 }, { */
7966 .eraseblocks = { {64 * 1024, 64} },
7967 .block_erase = spi_block_erase_d8,
7968 }, {
7969 .eraseblocks = { {4 * 1024 * 1024, 1} },
7970 .block_erase = spi_block_erase_c7,
7971 }
7972 },
7973 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
7974 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
7975 .write = spi_chip_write_256,
7976 .read = spi_chip_read, /* also fast read 0x0B */
7977 .voltage = {2700, 3600},
7978 },
7979
7980 {
7981 .vendor = "Intel",
7982 .name = "25F320S33T8",
7983 .bustype = BUS_SPI,
7984 .manufacture_id = INTEL_ID,
7985 .model_id = INTEL_25F320S33T8,
7986 .total_size = 4096,
7987 .page_size = 256,
7988 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
7989 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7990 .tested = TEST_UNTESTED,
7991 .probe = probe_spi_rdid,
7992 .probe_timing = TIMING_ZERO,
7993 .block_erasers =
7994 {
7995 {
7996 /* This chip supports erasing of the 8 so-called "parameter blocks" with
7997 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
7998 * have no effect on the memory contents, but sets a flag in the SR.
7999 .eraseblocks = {
8000 {64 * 1024, 63}, // inaccessible
8001 {8 * 1024, 8}
8002 },
8003 .block_erase = spi_block_erase_40,
8004 }, { */
8005 .eraseblocks = { {64 * 1024, 64} },
8006 .block_erase = spi_block_erase_d8,
8007 }, {
8008 .eraseblocks = { {4 * 1024 * 1024, 1} },
8009 .block_erase = spi_block_erase_c7,
8010 }
8011 },
8012 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
8013 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
8014 .write = spi_chip_write_256,
8015 .read = spi_chip_read, /* also fast read 0x0B */
8016 .voltage = {2700, 3600},
8017 },
8018
8019 {
8020 .vendor = "Intel",
8021 .name = "25F640S33B8",
8022 .bustype = BUS_SPI,
8023 .manufacture_id = INTEL_ID,
8024 .model_id = INTEL_25F640S33B8,
8025 .total_size = 8192,
8026 .page_size = 256,
8027 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
8028 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Zoltan HERPAIe0e8b2b2020-08-08 16:04:34 +02008029 .tested = TEST_OK_PREW,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008030 .probe = probe_spi_rdid,
8031 .probe_timing = TIMING_ZERO,
8032 .block_erasers =
8033 {
8034 {
8035 /* This chip supports erasing of the 8 so-called "parameter blocks" with
8036 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
8037 * have no effect on the memory contents, but sets a flag in the SR.
8038 .eraseblocks = {
8039 {8 * 1024, 8},
8040 {64 * 1024, 127} // inaccessible
8041 },
8042 .block_erase = spi_block_erase_40,
8043 }, { */
8044 .eraseblocks = { {64 * 1024, 128} },
8045 .block_erase = spi_block_erase_d8,
8046 }, {
8047 .eraseblocks = { {8 * 1024 * 1024, 1} },
8048 .block_erase = spi_block_erase_c7,
8049 }
8050 },
8051 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
8052 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
8053 .write = spi_chip_write_256,
8054 .read = spi_chip_read, /* also fast read 0x0B */
8055 .voltage = {2700, 3600},
8056 },
8057
8058 {
8059 .vendor = "Intel",
8060 .name = "25F640S33T8",
8061 .bustype = BUS_SPI,
8062 .manufacture_id = INTEL_ID,
8063 .model_id = INTEL_25F640S33T8,
8064 .total_size = 8192,
8065 .page_size = 256,
8066 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
8067 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8068 .tested = TEST_UNTESTED,
8069 .probe = probe_spi_rdid,
8070 .probe_timing = TIMING_ZERO,
8071 .block_erasers =
8072 {
8073 {
8074 /* This chip supports erasing of the 8 so-called "parameter blocks" with
8075 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
8076 * have no effect on the memory contents, but sets a flag in the SR.
8077 .eraseblocks = {
8078 {64 * 1024, 127}, // inaccessible
8079 {8 * 1024, 8}
8080 },
8081 .block_erase = spi_block_erase_40,
8082 }, { */
8083 .eraseblocks = { {64 * 1024, 128} },
8084 .block_erase = spi_block_erase_d8,
8085 }, {
8086 .eraseblocks = { {8 * 1024 * 1024, 1} },
8087 .block_erase = spi_block_erase_c7,
8088 }
8089 },
8090 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
8091 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
8092 .write = spi_chip_write_256,
8093 .read = spi_chip_read, /* also fast read 0x0B */
8094 .voltage = {2700, 3600},
8095 },
8096
8097 {
8098 .vendor = "Intel",
8099 .name = "28F001BN/BX-B",
8100 .bustype = BUS_PARALLEL,
8101 .manufacture_id = INTEL_ID,
8102 .model_id = INTEL_28F001B,
8103 .total_size = 128,
8104 .page_size = 128 * 1024, /* 8k + 2x4k + 112k */
8105 .tested = TEST_UNTESTED,
8106 .probe = probe_jedec,
8107 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8108 .block_erasers =
8109 {
8110 {
8111 .eraseblocks = {
8112 {8 * 1024, 1},
8113 {4 * 1024, 2},
8114 {112 * 1024, 1},
8115 },
8116 .block_erase = erase_block_82802ab,
8117 },
8118 },
8119 .write = write_82802ab,
8120 .read = read_memmapped,
8121 .voltage = {4500, 5500},
8122 },
8123
8124 {
8125 .vendor = "Intel",
8126 .name = "28F001BN/BX-T",
8127 .bustype = BUS_PARALLEL,
8128 .manufacture_id = INTEL_ID,
8129 .model_id = INTEL_28F001T,
8130 .total_size = 128,
8131 .page_size = 128 * 1024, /* 112k + 2x4k + 8k */
8132 .tested = TEST_OK_PREW,
8133 .probe = probe_jedec,
8134 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8135 .block_erasers =
8136 {
8137 {
8138 .eraseblocks = {
8139 {112 * 1024, 1},
8140 {4 * 1024, 2},
8141 {8 * 1024, 1},
8142 },
8143 .block_erase = erase_block_82802ab,
8144 },
8145 },
8146 .write = write_82802ab,
8147 .read = read_memmapped,
8148 .voltage = {4500, 5500},
8149 },
8150
8151 {
8152 .vendor = "Intel",
8153 .name = "28F002BC/BL/BV/BX-T",
8154 .bustype = BUS_PARALLEL,
8155 .manufacture_id = INTEL_ID,
8156 .model_id = INTEL_28F002T,
8157 .total_size = 256,
8158 .page_size = 256 * 1024,
8159 .tested = TEST_OK_PRE,
8160 .probe = probe_82802ab,
8161 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8162 .block_erasers =
8163 {
8164 {
8165 .eraseblocks = {
8166 {128 * 1024, 1},
8167 {96 * 1024, 1},
8168 {8 * 1024, 2},
8169 {16 * 1024, 1},
8170 },
8171 .block_erase = erase_block_82802ab,
8172 },
8173 },
8174 .write = write_82802ab,
8175 .read = read_memmapped,
8176 },
8177
8178 {
8179 .vendor = "Intel",
8180 .name = "28F004B5/BE/BV/BX-B",
8181 .bustype = BUS_PARALLEL,
8182 .manufacture_id = INTEL_ID,
8183 .model_id = INTEL_28F004B,
8184 .total_size = 512,
8185 .page_size = 128 * 1024, /* maximal block size */
8186 .tested = TEST_UNTESTED,
8187 .probe = probe_82802ab,
8188 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8189 .block_erasers =
8190 {
8191 {
8192 .eraseblocks = {
8193 {16 * 1024, 1},
8194 {8 * 1024, 2},
8195 {96 * 1024, 1},
8196 {128 * 1024, 3},
8197 },
8198 .block_erase = erase_block_82802ab,
8199 },
8200 },
8201 .write = write_82802ab,
8202 .read = read_memmapped,
8203 },
8204
8205 {
8206 .vendor = "Intel",
8207 .name = "28F004B5/BE/BV/BX-T",
8208 .bustype = BUS_PARALLEL,
8209 .manufacture_id = INTEL_ID,
8210 .model_id = INTEL_28F004T,
8211 .total_size = 512,
8212 .page_size = 128 * 1024, /* maximal block size */
8213 .tested = TEST_UNTESTED,
8214 .probe = probe_82802ab,
8215 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8216 .block_erasers =
8217 {
8218 {
8219 .eraseblocks = {
8220 {128 * 1024, 3},
8221 {96 * 1024, 1},
8222 {8 * 1024, 2},
8223 {16 * 1024, 1},
8224 },
8225 .block_erase = erase_block_82802ab,
8226 },
8227 },
8228 .write = write_82802ab,
8229 .read = read_memmapped,
8230 },
8231
8232 {
8233 .vendor = "Intel",
8234 .name = "28F008S3/S5/SC",
8235 .bustype = BUS_PARALLEL,
8236 .manufacture_id = INTEL_ID,
8237 .model_id = INTEL_28F004S3,
8238 .total_size = 512,
8239 .page_size = 256,
8240 .tested = TEST_UNTESTED,
8241 .probe = probe_82802ab,
8242 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8243 .block_erasers =
8244 {
8245 {
8246 .eraseblocks = { {64 * 1024, 8} },
8247 .block_erase = erase_block_82802ab,
8248 },
8249 },
8250 .unlock = unlock_28f004s5,
8251 .write = write_82802ab,
8252 .read = read_memmapped,
8253 },
8254
8255 {
8256 .vendor = "Intel",
8257 .name = "28F400BV/BX/CE/CV-B",
8258 .bustype = BUS_PARALLEL,
8259 .manufacture_id = INTEL_ID,
8260 .model_id = INTEL_28F400B,
8261 .total_size = 512,
8262 .page_size = 128 * 1024, /* maximal block size */
8263 .feature_bits = FEATURE_ADDR_SHIFTED,
8264 .tested = TEST_UNTESTED,
8265 .probe = probe_82802ab,
8266 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8267 .block_erasers =
8268 {
8269 {
8270 .eraseblocks = {
8271 {16 * 1024, 1},
8272 {8 * 1024, 2},
8273 {96 * 1024, 1},
8274 {128 * 1024, 3},
8275 },
8276 .block_erase = erase_block_82802ab,
8277 },
8278 },
8279 .write = write_82802ab,
8280 .read = read_memmapped,
8281 },
8282
8283 {
8284 .vendor = "Intel",
8285 .name = "28F400BV/BX/CE/CV-T",
8286 .bustype = BUS_PARALLEL,
8287 .manufacture_id = INTEL_ID,
8288 .model_id = INTEL_28F400T,
8289 .total_size = 512,
8290 .page_size = 128 * 1024, /* maximal block size */
8291 .feature_bits = FEATURE_ADDR_SHIFTED,
8292 .tested = TEST_UNTESTED,
8293 .probe = probe_82802ab,
8294 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8295 .block_erasers =
8296 {
8297 {
8298 .eraseblocks = {
8299 {128 * 1024, 3},
8300 {96 * 1024, 1},
8301 {8 * 1024, 2},
8302 {16 * 1024, 1},
8303 },
8304 .block_erase = erase_block_82802ab,
8305 },
8306 },
8307 .write = write_82802ab,
8308 .read = read_memmapped,
8309 },
8310
8311 {
8312 .vendor = "Intel",
8313 .name = "82802AB",
8314 .bustype = BUS_FWH,
8315 .manufacture_id = INTEL_ID,
8316 .model_id = INTEL_82802AB,
8317 .total_size = 512,
8318 .page_size = 64 * 1024,
8319 .feature_bits = FEATURE_REGISTERMAP,
Alan Green88552572019-07-24 13:56:06 +10008320 .tested = TEST_OK_PREW,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008321 .probe = probe_82802ab,
8322 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
8323 .block_erasers =
8324 {
8325 {
8326 .eraseblocks = { {64 * 1024, 8} },
8327 .block_erase = erase_block_82802ab,
8328 },
8329 },
8330 .unlock = unlock_regspace2_uniform_64k,
8331 .write = write_82802ab,
8332 .read = read_memmapped,
8333 .voltage = {3000, 3600},
8334 },
8335
8336 {
8337 .vendor = "Intel",
8338 .name = "82802AC",
8339 .bustype = BUS_FWH,
8340 .manufacture_id = INTEL_ID,
8341 .model_id = INTEL_82802AC,
8342 .total_size = 1024,
8343 .page_size = 64 * 1024,
8344 .feature_bits = FEATURE_REGISTERMAP,
8345 .tested = TEST_OK_PR,
8346 .probe = probe_82802ab,
8347 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
8348 .block_erasers =
8349 {
8350 {
8351 .eraseblocks = { {64 * 1024, 16} },
8352 .block_erase = erase_block_82802ab,
8353 },
8354 },
8355 .unlock = unlock_regspace2_uniform_64k,
8356 .write = write_82802ab,
8357 .read = read_memmapped,
8358 .voltage = {3000, 3600},
8359 },
8360
8361 {
8362 .vendor = "Macronix",
8363 .name = "MX23L12854",
8364 .bustype = BUS_SPI,
8365 .manufacture_id = MACRONIX_ID,
8366 .model_id = MACRONIX_MX23L12854,
8367 .total_size = 16384,
8368 .page_size = 256,
8369 .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA},
8370 .probe = probe_spi_rdid,
8371 .probe_timing = TIMING_ZERO,
8372 .write = NULL, /* MX23L12854 is a mask ROM, so it is read-only */
8373 .read = spi_chip_read, /* Fast read (0x0B) supported */
8374 .voltage = {3000, 3600},
8375 },
8376
8377 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008378 .vendor = "Macronix",
Michael Coppola583ea322014-08-20 18:56:35 +00008379 .name = "MX23L1654",
8380 .bustype = BUS_SPI,
8381 .manufacture_id = MACRONIX_ID,
8382 .model_id = MACRONIX_MX23L1654,
8383 .total_size = 2048,
8384 .page_size = 256,
8385 .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA},
8386 .probe = probe_spi_rdid,
8387 .probe_timing = TIMING_ZERO,
8388 .write = NULL, /* MX23L1654 is a mask ROM, so it is read-only */
8389 .read = spi_chip_read, /* Fast read (0x0B) supported */
8390 .voltage = {3000, 3600},
8391 },
8392
8393 {
8394 .vendor = "Macronix",
Michael Coppola4e7f36e2014-05-03 23:01:18 +00008395 .name = "MX23L3254",
8396 .bustype = BUS_SPI,
8397 .manufacture_id = MACRONIX_ID,
8398 .model_id = MACRONIX_MX23L3254,
8399 .total_size = 4096,
8400 .page_size = 256,
Stefan Tauner6455dff2014-05-26 00:36:24 +00008401 .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA},
Michael Coppola4e7f36e2014-05-03 23:01:18 +00008402 .probe = probe_spi_rdid,
8403 .probe_timing = TIMING_ZERO,
8404 .write = NULL, /* MX23L3254 is a mask ROM, so it is read-only */
8405 .read = spi_chip_read, /* Fast read (0x0B) supported */
8406 .voltage = {3000, 3600},
8407 },
8408
8409 {
8410 .vendor = "Macronix",
Michael Coppola583ea322014-08-20 18:56:35 +00008411 .name = "MX23L6454",
8412 .bustype = BUS_SPI,
8413 .manufacture_id = MACRONIX_ID,
8414 .model_id = MACRONIX_MX23L6454,
8415 .total_size = 8192,
8416 .page_size = 256,
Stefan Tauner23e10b82016-01-23 16:16:49 +00008417 .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA},
Michael Coppola583ea322014-08-20 18:56:35 +00008418 .probe = probe_spi_rdid,
8419 .probe_timing = TIMING_ZERO,
8420 .write = NULL, /* MX23L6454 is a mask ROM, so it is read-only */
8421 .read = spi_chip_read, /* Fast read (0x0B) supported */
8422 .voltage = {3000, 3600},
8423 },
8424
8425 {
8426 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00008427 .name = "MX25L1005(C)/MX25L1006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008428 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008429 .manufacture_id = MACRONIX_ID,
8430 .model_id = MACRONIX_MX25L1005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008431 .total_size = 128,
8432 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00008433 /* MX25L1006E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00008434 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00008435 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008436 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008437 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00008438 .block_erasers =
8439 {
8440 {
8441 .eraseblocks = { {4 * 1024, 32} },
8442 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008443 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00008444 .eraseblocks = { {64 * 1024, 2} },
8445 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008446 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00008447 .eraseblocks = { {128 * 1024, 1} },
8448 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008449 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00008450 .eraseblocks = { {128 * 1024, 1} },
8451 .block_erase = spi_block_erase_c7,
8452 },
8453 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008454 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008455 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008456 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00008457 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L1006E supports dual I/O */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008458 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008459 },
8460
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008461 {
8462 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008463 .name = "MX25L12805D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008464 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008465 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008466 .model_id = MACRONIX_MX25L12805D,
8467 .total_size = 16384,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008468 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008469 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8470 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008471 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008472 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008473 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008474 .block_erasers =
8475 {
8476 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008477 .eraseblocks = { {4 * 1024, 4096} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008478 .block_erase = spi_block_erase_20,
8479 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008480 .eraseblocks = { {64 * 1024, 256} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008481 .block_erase = spi_block_erase_d8,
8482 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008483 .eraseblocks = { {16 * 1024 * 1024, 1} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008484 .block_erase = spi_block_erase_60,
8485 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008486 .eraseblocks = { {16 * 1024 * 1024, 1} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008487 .block_erase = spi_block_erase_c7,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008488 }
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008489 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10008490 .printlock = spi_prettyprint_status_register_bp3_srwd,
8491 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008492 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00008493 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008494 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008495 },
8496
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008497 {
8498 .vendor = "Macronix",
Tao Xia571f6ad2021-07-21 16:41:53 +08008499 .name = "MX25L12833F/MX25L12835F/MX25L12845E/MX25L12865E/MX25L12873F",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008500 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008501 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008502 .model_id = MACRONIX_MX25L12805D,
8503 .total_size = 16384,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008504 .page_size = 256,
Tao Xia571f6ad2021-07-21 16:41:53 +08008505 /* OTP: MX25L12833F has 1KB total, others have 512B total; enter 0xB1, exit 0xC1 */
Alan Green1f9cc7d2019-07-01 11:10:45 +10008506 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner8179be52011-06-04 13:13:34 +00008507 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008508 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008509 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008510 .block_erasers =
8511 {
8512 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008513 .eraseblocks = { {4 * 1024, 4096} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008514 .block_erase = spi_block_erase_20,
8515 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008516 .eraseblocks = { {32 * 1024, 512} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008517 .block_erase = spi_block_erase_52,
8518 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008519 .eraseblocks = { {64 * 1024, 256} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008520 .block_erase = spi_block_erase_d8,
8521 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008522 .eraseblocks = { {16 * 1024 * 1024, 1} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008523 .block_erase = spi_block_erase_60,
8524 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008525 .eraseblocks = { {16 * 1024 * 1024, 1} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008526 .block_erase = spi_block_erase_c7,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008527 }
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008528 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10008529 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
8530 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8531 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008532 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00008533 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008534 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008535 },
8536
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008537 {
8538 .vendor = "Macronix",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008539 .name = "MX25L1605",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008540 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008541 .manufacture_id = MACRONIX_ID,
8542 .model_id = MACRONIX_MX25L1605,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008543 .total_size = 2048,
8544 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00008545 .feature_bits = FEATURE_WRSR_WREN,
Sven Schnelle4bd8a402011-03-07 10:59:06 +00008546 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008547 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008548 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008549 .block_erasers =
8550 {
8551 {
Stefan Tauner226037d2013-03-16 01:22:12 +00008552 .eraseblocks = { {64 * 1024, 32} },
8553 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008554 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00008555 .eraseblocks = { {64 * 1024, 32} },
8556 .block_erase = spi_block_erase_d8,
8557 }, {
8558 .eraseblocks = { {2 * 1024 * 1024, 1} },
8559 .block_erase = spi_block_erase_60,
8560 }, {
8561 .eraseblocks = { {2 * 1024 * 1024, 1} },
8562 .block_erase = spi_block_erase_c7,
8563 },
8564 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008565 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */
Stefan Tauner226037d2013-03-16 01:22:12 +00008566 .unlock = spi_disable_blockprotect,
8567 .write = spi_chip_write_256,
8568 .read = spi_chip_read, /* Fast read (0x0B) supported */
8569 .voltage = {2700, 3600},
8570 },
8571
8572 {
8573 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008574 .name = "MX25L1605A/MX25L1606E/MX25L1608E",
Stefan Tauner226037d2013-03-16 01:22:12 +00008575 .bustype = BUS_SPI,
8576 .manufacture_id = MACRONIX_ID,
8577 .model_id = MACRONIX_MX25L1605,
8578 .total_size = 2048,
8579 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008580 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L1606E and MX25L1608E only) */
Stefan Tauner226037d2013-03-16 01:22:12 +00008581 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8582 .tested = TEST_OK_PREW,
8583 .probe = probe_spi_rdid,
8584 .probe_timing = TIMING_ZERO,
8585 .block_erasers =
8586 {
8587 {
8588 .eraseblocks = { {4 * 1024, 512} },
8589 .block_erase = spi_block_erase_20,
8590 }, {
8591 .eraseblocks = { {64 * 1024, 32} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008592 .block_erase = spi_block_erase_52,
8593 }, {
8594 .eraseblocks = { {64 * 1024, 32} },
8595 .block_erase = spi_block_erase_d8,
8596 }, {
8597 .eraseblocks = { {2 * 1024 * 1024, 1} },
8598 .block_erase = spi_block_erase_60,
8599 }, {
8600 .eraseblocks = { {2 * 1024 * 1024, 1} },
8601 .block_erase = spi_block_erase_c7,
8602 },
8603 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008604 .printlock = spi_prettyprint_status_register_bp3_srwd, /* MX25L1605A bp2 only */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008605 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008606 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008607 .read = spi_chip_read, /* Fast read (0x0B) supported (MX25L1608E supports dual-I/O read) */
Stefan Tauner226037d2013-03-16 01:22:12 +00008608 .voltage = {2700, 3600},
8609 },
8610
8611 {
8612 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008613 .name = "MX25L1605D/MX25L1608D/MX25L1673E",
Stefan Tauner226037d2013-03-16 01:22:12 +00008614 .bustype = BUS_SPI,
8615 .manufacture_id = MACRONIX_ID,
8616 .model_id = MACRONIX_MX25L1605,
8617 .total_size = 2048,
8618 .page_size = 256,
8619 .feature_bits = FEATURE_WRSR_WREN,
8620 .tested = TEST_OK_PREW,
8621 .probe = probe_spi_rdid,
8622 .probe_timing = TIMING_ZERO,
8623 .block_erasers =
8624 {
8625 {
8626 .eraseblocks = { {4 * 1024, 512} },
8627 .block_erase = spi_block_erase_20,
8628 }, {
8629 .eraseblocks = { {64 * 1024, 32} },
8630 .block_erase = spi_block_erase_d8,
8631 }, {
8632 .eraseblocks = { {2 * 1024 * 1024, 1} },
8633 .block_erase = spi_block_erase_60,
8634 }, {
8635 .eraseblocks = { {2 * 1024 * 1024, 1} },
8636 .block_erase = spi_block_erase_c7,
8637 },
8638 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008639 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: Continuously Program (CP) mode, for 73E is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008640 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00008641 .write = spi_chip_write_256,
8642 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008643 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008644 },
8645
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008646 {
8647 .vendor = "Macronix",
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008648 .name = "MX25L1635D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008649 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008650 .manufacture_id = MACRONIX_ID,
8651 .model_id = MACRONIX_MX25L1635D,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008652 .total_size = 2048,
8653 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008654 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8655 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Angel Ponsc2054872021-01-15 18:57:32 +01008656 .tested = TEST_OK_PREW,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008657 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008658 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008659 .block_erasers =
8660 {
8661 {
8662 .eraseblocks = { {4 * 1024, 512} },
8663 .block_erase = spi_block_erase_20,
8664 }, {
8665 .eraseblocks = { {64 * 1024, 32} },
8666 .block_erase = spi_block_erase_d8,
8667 }, {
8668 .eraseblocks = { {2 * 1024 * 1024, 1} },
8669 .block_erase = spi_block_erase_60,
8670 }, {
8671 .eraseblocks = { {2 * 1024 * 1024, 1} },
8672 .block_erase = spi_block_erase_c7,
8673 }
8674 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008675 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008676 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008677 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008678 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008679 .voltage = {2700, 3600},
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008680 },
Stephan Guillouxfd315502009-04-20 22:54:13 +00008681
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008682 {
8683 .vendor = "Macronix",
Stephan Guilloux3611b802010-09-13 19:59:28 +00008684 .name = "MX25L1635E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008685 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008686 .manufacture_id = MACRONIX_ID,
8687 .model_id = MACRONIX_MX25L1635E,
Stephan Guilloux3611b802010-09-13 19:59:28 +00008688 .total_size = 2048,
8689 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008690 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8691 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux3611b802010-09-13 19:59:28 +00008692 .tested = TEST_UNTESTED,
8693 .probe = probe_spi_rdid,
8694 .probe_timing = TIMING_ZERO,
8695 .block_erasers =
8696 {
8697 {
8698 .eraseblocks = { {4 * 1024, 512} },
8699 .block_erase = spi_block_erase_20,
8700 }, {
8701 .eraseblocks = { {64 * 1024, 32} },
8702 .block_erase = spi_block_erase_d8,
8703 }, {
8704 .eraseblocks = { {2 * 1024 * 1024, 1} },
8705 .block_erase = spi_block_erase_60,
8706 }, {
8707 .eraseblocks = { {2 * 1024 * 1024, 1} },
8708 .block_erase = spi_block_erase_c7,
8709 }
8710 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008711 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008712 .unlock = spi_disable_blockprotect_bp3_srwd,
Stephan Guilloux3611b802010-09-13 19:59:28 +00008713 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008714 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00008715 .voltage = {2700, 3600},
Stephan Guilloux3611b802010-09-13 19:59:28 +00008716 },
8717
8718 {
8719 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008720 .name = "MX25L2005(C)/MX25L2006E",
8721 .bustype = BUS_SPI,
8722 .manufacture_id = MACRONIX_ID,
8723 .model_id = MACRONIX_MX25L2005,
8724 .total_size = 256,
8725 .page_size = 256,
8726 .feature_bits = FEATURE_WRSR_WREN,
8727 .tested = TEST_OK_PREW,
8728 .probe = probe_spi_rdid,
8729 .probe_timing = TIMING_ZERO,
8730 .block_erasers =
8731 {
8732 {
8733 .eraseblocks = { {4 * 1024, 64} },
8734 .block_erase = spi_block_erase_20,
8735 }, {
8736 .eraseblocks = { {64 * 1024, 4} },
8737 .block_erase = spi_block_erase_52,
8738 }, {
8739 .eraseblocks = { {64 * 1024, 4} },
8740 .block_erase = spi_block_erase_d8,
8741 }, {
8742 .eraseblocks = { {256 * 1024, 1} },
8743 .block_erase = spi_block_erase_60,
8744 }, {
8745 .eraseblocks = { {256 * 1024, 1} },
8746 .block_erase = spi_block_erase_c7,
8747 },
8748 },
8749 .printlock = spi_prettyprint_status_register_bp1_srwd,
8750 .unlock = spi_disable_blockprotect,
8751 .write = spi_chip_write_256,
8752 .read = spi_chip_read, /* Fast read (0x0B) supported */
8753 .voltage = {2700, 3600},
8754 },
8755
8756 {
8757 .vendor = "Macronix",
Alan Green03707302019-08-26 12:50:43 +10008758 .name = "MX25L25635F/MX25L25645G",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008759 .bustype = BUS_SPI,
8760 .manufacture_id = MACRONIX_ID,
8761 .model_id = MACRONIX_MX25L25635F,
8762 .total_size = 32768,
8763 .page_size = 256,
8764 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8765 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
8766 .tested = TEST_OK_PREW,
8767 .probe = probe_spi_rdid,
8768 .probe_timing = TIMING_ZERO,
8769 .block_erasers =
8770 {
8771 {
8772 .eraseblocks = { {4 * 1024, 8192} },
8773 .block_erase = spi_block_erase_21,
8774 }, {
8775 .eraseblocks = { {4 * 1024, 8192} },
8776 .block_erase = spi_block_erase_20,
8777 }, {
8778 .eraseblocks = { {32 * 1024, 1024} },
8779 .block_erase = spi_block_erase_5c,
8780 }, {
8781 .eraseblocks = { {32 * 1024, 1024} },
8782 .block_erase = spi_block_erase_52,
8783 }, {
8784 .eraseblocks = { {64 * 1024, 512} },
8785 .block_erase = spi_block_erase_dc,
8786 }, {
8787 .eraseblocks = { {64 * 1024, 512} },
8788 .block_erase = spi_block_erase_d8,
8789 }, {
8790 .eraseblocks = { {32 * 1024 * 1024, 1} },
8791 .block_erase = spi_block_erase_60,
8792 }, {
8793 .eraseblocks = { {32 * 1024 * 1024, 1} },
8794 .block_erase = spi_block_erase_c7,
8795 }
8796 },
8797 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
8798 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8799 .unlock = spi_disable_blockprotect_bp3_srwd,
8800 .write = spi_chip_write_256,
8801 .read = spi_chip_read, /* Fast read (0x0B) supported */
8802 .voltage = {2700, 3600},
Nico Huberab6b18f2023-01-11 23:38:20 +01008803 .prepare_access = spi_prepare_4ba,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008804 },
8805
8806 {
8807 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00008808 .name = "MX25L3205(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008809 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008810 .manufacture_id = MACRONIX_ID,
8811 .model_id = MACRONIX_MX25L3205,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008812 .total_size = 4096,
8813 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00008814 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00008815 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008816 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008817 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00008818 .block_erasers =
8819 {
8820 {
Stefan Tauner226037d2013-03-16 01:22:12 +00008821 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00008822 .block_erase = spi_block_erase_20,
8823 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00008824 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00008825 .block_erase = spi_block_erase_d8,
8826 }, {
8827 .eraseblocks = { {4 * 1024 * 1024, 1} },
8828 .block_erase = spi_block_erase_60,
8829 }, {
8830 .eraseblocks = { {4 * 1024 * 1024, 1} },
8831 .block_erase = spi_block_erase_c7,
8832 },
8833 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008834 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008835 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008836 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008837 .read = spi_chip_read, /* Fast read (0x0B) supported */
8838 .voltage = {2700, 3600},
8839 },
8840
8841 {
8842 .vendor = "Macronix",
8843 .name = "MX25L3205D/MX25L3208D",
8844 .bustype = BUS_SPI,
8845 .manufacture_id = MACRONIX_ID,
8846 .model_id = MACRONIX_MX25L3205,
8847 .total_size = 4096,
8848 .page_size = 256,
8849 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8850 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8851 .tested = TEST_OK_PREW,
8852 .probe = probe_spi_rdid,
8853 .probe_timing = TIMING_ZERO,
8854 .block_erasers =
8855 {
8856 {
8857 .eraseblocks = { {4 * 1024, 1024} },
8858 .block_erase = spi_block_erase_20,
8859 }, {
8860 .eraseblocks = { {64 * 1024, 64} },
8861 .block_erase = spi_block_erase_d8,
8862 }, {
8863 .eraseblocks = { {4 * 1024 * 1024, 1} },
8864 .block_erase = spi_block_erase_60,
8865 }, {
8866 .eraseblocks = { {4 * 1024 * 1024, 1} },
8867 .block_erase = spi_block_erase_c7,
8868 },
8869 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008870 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008871 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00008872 .write = spi_chip_write_256,
8873 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
8874 .voltage = {2700, 3600},
8875 },
8876
8877 {
8878 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008879 .name = "MX25L3206E/MX25L3208E",
Stefan Tauner226037d2013-03-16 01:22:12 +00008880 .bustype = BUS_SPI,
8881 .manufacture_id = MACRONIX_ID,
8882 .model_id = MACRONIX_MX25L3205,
8883 .total_size = 4096,
8884 .page_size = 256,
8885 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8886 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8887 .tested = TEST_OK_PREW,
8888 .probe = probe_spi_rdid,
8889 .probe_timing = TIMING_ZERO,
8890 .block_erasers =
8891 {
8892 {
8893 .eraseblocks = { {4 * 1024, 1024} },
8894 .block_erase = spi_block_erase_20,
8895 }, {
8896 .eraseblocks = { {64 * 1024, 64} },
8897 .block_erase = spi_block_erase_d8,
8898 }, {
8899 .eraseblocks = { {64 * 1024, 64} },
8900 .block_erase = spi_block_erase_52,
8901 }, {
8902 .eraseblocks = { {4 * 1024 * 1024, 1} },
8903 .block_erase = spi_block_erase_60,
8904 }, {
8905 .eraseblocks = { {4 * 1024 * 1024, 1} },
8906 .block_erase = spi_block_erase_c7,
8907 },
8908 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008909 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008910 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00008911 .write = spi_chip_write_256,
8912 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008913 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008914 },
8915
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008916 {
8917 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008918 .name = "MX25L3235D",
8919 .bustype = BUS_SPI,
8920 .manufacture_id = MACRONIX_ID,
8921 .model_id = MACRONIX_MX25L3235D,
8922 .total_size = 4096,
8923 .page_size = 256,
8924 /* OTP: 256B total; enter 0xB1, exit 0xC1 */
8925 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8926 .tested = TEST_UNTESTED,
8927 .probe = probe_spi_rdid,
8928 .probe_timing = TIMING_ZERO,
8929 .block_erasers =
8930 {
8931 {
8932 .eraseblocks = { {4 * 1024, 1024} },
8933 .block_erase = spi_block_erase_20,
8934 }, {
8935 .eraseblocks = { {64 * 1024, 64} },
8936 .block_erase = spi_block_erase_d8,
8937 }, {
8938 .eraseblocks = { {4 * 1024 * 1024, 1} },
8939 .block_erase = spi_block_erase_60,
8940 }, {
8941 .eraseblocks = { {4 * 1024 * 1024, 1} },
8942 .block_erase = spi_block_erase_c7,
8943 }
8944 },
8945 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8946 .unlock = spi_disable_blockprotect_bp3_srwd,
8947 .write = spi_chip_write_256,
8948 .read = spi_chip_read,
8949 .voltage = {2700, 3600},
8950 },
8951
8952 {
8953 .vendor = "Macronix",
Nico Huberb6683e02021-04-21 13:04:29 +02008954 .name = "MX25L3233F/MX25L3273E",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008955 .bustype = BUS_SPI,
8956 .manufacture_id = MACRONIX_ID,
8957 .model_id = MACRONIX_MX25L3205,
8958 .total_size = 4096,
8959 .page_size = 256,
Nico Huber6e69e2b2021-04-21 13:03:13 +02008960 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008961 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +00008962 .tested = TEST_OK_PREW,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008963 .probe = probe_spi_rdid,
8964 .probe_timing = TIMING_ZERO,
8965 .block_erasers =
8966 {
8967 {
8968 .eraseblocks = { {4 * 1024, 1024} },
8969 .block_erase = spi_block_erase_20,
8970 }, {
8971 .eraseblocks = { {32 * 1024, 128} },
8972 .block_erase = spi_block_erase_52,
8973 }, {
8974 .eraseblocks = { {64 * 1024, 64} },
8975 .block_erase = spi_block_erase_d8,
8976 }, {
8977 .eraseblocks = { {4 * 1024 * 1024, 1} },
8978 .block_erase = spi_block_erase_60,
8979 }, {
8980 .eraseblocks = { {4 * 1024 * 1024, 1} },
8981 .block_erase = spi_block_erase_c7,
8982 },
8983 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008984 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008985 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008986 .write = spi_chip_write_256,
8987 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
Nico Huberb6683e02021-04-21 13:04:29 +02008988 .voltage = {2700, 3600}, /* 33F 2.65V..3.6V */
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008989 },
8990
8991 {
8992 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008993 .name = "MX25L4005(A/C)/MX25L4006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008994 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008995 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008996 .model_id = MACRONIX_MX25L4005,
8997 .total_size = 512,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00008998 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008999 .feature_bits = FEATURE_WRSR_WREN,
9000 .tested = TEST_OK_PREW,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00009001 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009002 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00009003 .block_erasers =
9004 {
9005 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009006 .eraseblocks = { {4 * 1024, 128} },
Sean Nelson54596372010-01-09 05:30:14 +00009007 .block_erase = spi_block_erase_20,
9008 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009009 .eraseblocks = { {64 * 1024, 8} },
9010 .block_erase = spi_block_erase_52,
9011 }, {
9012 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson54596372010-01-09 05:30:14 +00009013 .block_erase = spi_block_erase_d8,
9014 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009015 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00009016 .block_erase = spi_block_erase_60,
9017 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009018 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00009019 .block_erase = spi_block_erase_c7,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009020 },
Sean Nelson54596372010-01-09 05:30:14 +00009021 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10009022 .printlock = spi_prettyprint_status_register_bp2_srwd,
9023 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009024 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009025 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009026 .voltage = {2700, 3600},
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00009027 },
9028
9029 {
9030 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009031 .name = "MX25L512(E)/MX25V512(C)",
9032 .bustype = BUS_SPI,
9033 .manufacture_id = MACRONIX_ID,
9034 .model_id = MACRONIX_MX25L512,
9035 .total_size = 64,
9036 .page_size = 256,
9037 /* MX25L512E supports SFDP */
9038 .feature_bits = FEATURE_WRSR_WREN,
9039 .tested = TEST_OK_PREW,
9040 .probe = probe_spi_rdid,
9041 .probe_timing = TIMING_ZERO,
9042 .block_erasers =
9043 {
9044 {
9045 .eraseblocks = { {4 * 1024, 16} },
9046 .block_erase = spi_block_erase_20,
9047 }, {
9048 .eraseblocks = { {64 * 1024, 1} },
9049 .block_erase = spi_block_erase_52,
9050 }, {
9051 .eraseblocks = { {64 * 1024, 1} },
9052 .block_erase = spi_block_erase_d8,
9053 }, {
9054 .eraseblocks = { {64 * 1024, 1} },
9055 .block_erase = spi_block_erase_60,
9056 }, {
9057 .eraseblocks = { {64 * 1024, 1} },
9058 .block_erase = spi_block_erase_c7,
9059 },
9060 },
9061 .printlock = spi_prettyprint_status_register_bp1_srwd,
9062 .unlock = spi_disable_blockprotect,
9063 .write = spi_chip_write_256,
9064 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L512E supports dual I/O */
9065 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V512(C) */
9066 },
9067
9068 {
9069 .vendor = "Macronix",
Steve Markgraf7e6f3a72020-07-13 18:22:56 +02009070 .name = "MX25L5121E",
9071 .bustype = BUS_SPI,
9072 .manufacture_id = MACRONIX_ID,
9073 .model_id = MACRONIX_MX25L5121E,
9074 .total_size = 64,
9075 .page_size = 32,
9076 .feature_bits = FEATURE_WRSR_WREN,
9077 .tested = TEST_OK_PREW,
9078 .probe = probe_spi_rdid,
9079 .probe_timing = TIMING_ZERO,
9080 .block_erasers =
9081 {
9082 {
9083 .eraseblocks = { {4 * 1024, 16} },
9084 .block_erase = spi_block_erase_20,
9085 }, {
9086 .eraseblocks = { {64 * 1024, 1} },
9087 .block_erase = spi_block_erase_52,
9088 }, {
9089 .eraseblocks = { {64 * 1024, 1} },
9090 .block_erase = spi_block_erase_d8,
9091 }, {
9092 .eraseblocks = { {64 * 1024, 1} },
9093 .block_erase = spi_block_erase_60,
9094 }, {
9095 .eraseblocks = { {64 * 1024, 1} },
9096 .block_erase = spi_block_erase_c7,
9097 },
9098 },
9099 .printlock = spi_prettyprint_status_register_bp1_srwd,
9100 .unlock = spi_disable_blockprotect,
9101 .write = spi_chip_write_256,
9102 .read = spi_chip_read, /* Fast read (0x0B) supported */
9103 .voltage = {2700, 3600},
9104 },
9105
9106 {
9107 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009108 .name = "MX25L6405",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009109 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009110 .manufacture_id = MACRONIX_ID,
9111 .model_id = MACRONIX_MX25L6405,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009112 .total_size = 8192,
9113 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009114 /* Has an additional 512B EEPROM sector */
9115 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzelac427b22012-02-16 21:07:07 +00009116 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009117 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009118 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00009119 .block_erasers =
9120 {
9121 {
9122 .eraseblocks = { {64 * 1024, 128} },
9123 .block_erase = spi_block_erase_20,
9124 }, {
9125 .eraseblocks = { {64 * 1024, 128} },
9126 .block_erase = spi_block_erase_d8,
9127 }, {
9128 .eraseblocks = { {8 * 1024 * 1024, 1} },
9129 .block_erase = spi_block_erase_60,
9130 }, {
9131 .eraseblocks = { {8 * 1024 * 1024, 1} },
9132 .block_erase = spi_block_erase_c7,
9133 }
9134 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009135 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: error flag */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009136 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009137 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009138 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009139 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009140 },
9141
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009142 {
9143 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009144 .name = "MX25L6405D",
Stefan Tauner226037d2013-03-16 01:22:12 +00009145 .bustype = BUS_SPI,
9146 .manufacture_id = MACRONIX_ID,
9147 .model_id = MACRONIX_MX25L6405,
9148 .total_size = 8192,
9149 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009150 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
Stefan Tauner226037d2013-03-16 01:22:12 +00009151 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9152 .tested = TEST_OK_PREW,
9153 .probe = probe_spi_rdid,
9154 .probe_timing = TIMING_ZERO,
9155 .block_erasers =
9156 {
9157 {
9158 .eraseblocks = { {4 * 1024, 2048} },
9159 .block_erase = spi_block_erase_20,
9160 }, {
9161 .eraseblocks = { {64 * 1024, 128} },
9162 .block_erase = spi_block_erase_d8,
9163 }, {
9164 .eraseblocks = { {8 * 1024 * 1024, 1} },
9165 .block_erase = spi_block_erase_60,
9166 }, {
9167 .eraseblocks = { {8 * 1024 * 1024, 1} },
9168 .block_erase = spi_block_erase_c7,
9169 }
9170 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009171 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009172 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00009173 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009174 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0xBB) supported */
Stefan Tauner226037d2013-03-16 01:22:12 +00009175 .voltage = {2700, 3600},
9176 },
9177
9178 {
9179 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009180 .name = "MX25L6406E/MX25L6408E",
9181 .bustype = BUS_SPI,
9182 .manufacture_id = MACRONIX_ID,
9183 .model_id = MACRONIX_MX25L6405,
9184 .total_size = 8192,
9185 .page_size = 256,
9186 /* MX25L6406E supports SFDP */
9187 /* OTP: 06E 64B total; enter 0xB1, exit 0xC1 */
9188 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9189 .tested = TEST_OK_PREW,
9190 .probe = probe_spi_rdid,
9191 .probe_timing = TIMING_ZERO,
9192 .block_erasers =
9193 {
9194 {
9195 .eraseblocks = { {4 * 1024, 2048} },
9196 .block_erase = spi_block_erase_20,
9197 }, {
9198 .eraseblocks = { {64 * 1024, 128} },
9199 .block_erase = spi_block_erase_52,
9200 }, {
9201 .eraseblocks = { {64 * 1024, 128} },
9202 .block_erase = spi_block_erase_d8,
9203 }, {
9204 .eraseblocks = { {8 * 1024 * 1024, 1} },
9205 .block_erase = spi_block_erase_60,
9206 }, {
9207 .eraseblocks = { {8 * 1024 * 1024, 1} },
9208 .block_erase = spi_block_erase_c7,
9209 }
9210 },
9211 .printlock = spi_prettyprint_status_register_bp3_srwd,
9212 .unlock = spi_disable_blockprotect_bp3_srwd,
9213 .write = spi_chip_write_256,
9214 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read supported */
9215 .voltage = {2700, 3600},
9216 },
9217
9218 {
9219 .vendor = "Macronix",
Nico Huberb0072782017-12-06 21:02:57 +01009220 .name = "MX25L6436E/MX25L6445E/MX25L6465E/MX25L6473E/MX25L6473F",
Stefan Tauner226037d2013-03-16 01:22:12 +00009221 .bustype = BUS_SPI,
9222 .manufacture_id = MACRONIX_ID,
9223 .model_id = MACRONIX_MX25L6405,
9224 .total_size = 8192,
9225 .page_size = 256,
9226 /* supports SFDP */
9227 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9228 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9229 .tested = TEST_OK_PREW,
9230 .probe = probe_spi_rdid,
9231 .probe_timing = TIMING_ZERO,
9232 .block_erasers =
9233 {
9234 {
9235 .eraseblocks = { {4 * 1024, 2048} },
9236 .block_erase = spi_block_erase_20,
9237 }, {
9238 .eraseblocks = { {32 * 1024, 256} },
9239 .block_erase = spi_block_erase_52,
9240 }, {
9241 .eraseblocks = { {64 * 1024, 128} },
9242 .block_erase = spi_block_erase_d8,
9243 }, {
9244 .eraseblocks = { {8 * 1024 * 1024, 1} },
9245 .block_erase = spi_block_erase_60,
9246 }, {
9247 .eraseblocks = { {8 * 1024 * 1024, 1} },
9248 .block_erase = spi_block_erase_c7,
9249 }
9250 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009251 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009252 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00009253 .write = spi_chip_write_256,
9254 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9255 .voltage = {2700, 3600},
9256 },
9257
9258 {
9259 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009260 .name = "MX25L6495F",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009261 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009262 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009263 .model_id = MACRONIX_MX25L6495F,
9264 .total_size = 8192,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00009265 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009266 /* OTP: 1024B total; enter 0xB1, exit 0xC1 */
Stefan Tauner226037d2013-03-16 01:22:12 +00009267 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +00009268 .tested = TEST_OK_PREW,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00009269 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009270 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00009271 .block_erasers =
9272 {
9273 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009274 .eraseblocks = { {4 * 1024, 2048} },
Sean Nelson54596372010-01-09 05:30:14 +00009275 .block_erase = spi_block_erase_20,
9276 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009277 .eraseblocks = { {32 * 1024, 256} },
9278 .block_erase = spi_block_erase_52,
9279 }, {
Aarya Chaumal478e1792022-06-04 01:34:44 +05309280 .eraseblocks = { {64 * 1024, 128} },
9281 .block_erase = spi_block_erase_d8,
9282 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009283 .eraseblocks = { {8 * 1024 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00009284 .block_erase = spi_block_erase_60,
9285 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009286 .eraseblocks = { {8 * 1024 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00009287 .block_erase = spi_block_erase_c7,
9288 }
9289 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10009290 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009291 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009292 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009293 .voltage = {2700, 3600},
9294 },
9295
9296 {
9297 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009298 .name = "MX25L8005/MX25L8006E/MX25L8008E/MX25V8005",
Stefan Tauner5c316f92015-02-08 21:57:52 +00009299 .bustype = BUS_SPI,
9300 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009301 .model_id = MACRONIX_MX25L8005,
9302 .total_size = 1024,
9303 .page_size = 256,
9304 /* MX25L8006E, MX25L8008E support SFDP */
9305 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L8006E, MX25L8008E only) */
9306 .feature_bits = FEATURE_WRSR_WREN,
9307 .tested = TEST_OK_PREW,
9308 .probe = probe_spi_rdid,
9309 .probe_timing = TIMING_ZERO,
9310 .block_erasers =
9311 {
9312 {
9313 .eraseblocks = { {4 * 1024, 256} },
9314 .block_erase = spi_block_erase_20,
9315 }, {
9316 .eraseblocks = { {64 * 1024, 16} },
9317 .block_erase = spi_block_erase_52,
9318 }, {
9319 .eraseblocks = { {64 * 1024, 16} },
9320 .block_erase = spi_block_erase_d8,
9321 }, {
9322 .eraseblocks = { {1024 * 1024, 1} },
9323 .block_erase = spi_block_erase_60,
9324 }, {
9325 .eraseblocks = { {1024 * 1024, 1} },
9326 .block_erase = spi_block_erase_c7,
9327 },
9328 },
9329 .printlock = spi_prettyprint_status_register_bp2_srwd,
9330 .unlock = spi_disable_blockprotect,
9331 .write = spi_chip_write_256,
9332 .read = spi_chip_read, /* Fast read (0x0B) supported */
9333 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V8005 */
9334 },
9335
9336 {
9337 .vendor = "Macronix",
sibradzicf62623c2020-03-14 17:21:34 +09009338 .name = "MX25R3235F",
9339 .bustype = BUS_SPI,
9340 .manufacture_id = MACRONIX_ID,
9341 .model_id = MACRONIX_MX25R3235F,
9342 .total_size = 4096,
9343 .page_size = 256,
9344 /* OTP: 1024B total; enter 0xB1, exit 0xC1 */
9345 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9346 .tested = TEST_OK_PREW,
9347 .probe = probe_spi_rdid,
9348 .probe_timing = TIMING_ZERO,
9349 .block_erasers =
9350 {
9351 {
9352 .eraseblocks = { {4 * 1024, 1024} },
9353 .block_erase = spi_block_erase_20,
9354 }, {
sibradzicf62623c2020-03-14 17:21:34 +09009355 .eraseblocks = { {32 * 1024, 128} },
9356 .block_erase = spi_block_erase_52,
9357 }, {
Aarya Chaumal478e1792022-06-04 01:34:44 +05309358 .eraseblocks = { {64 * 1024, 64} },
9359 .block_erase = spi_block_erase_d8,
9360 }, {
sibradzicf62623c2020-03-14 17:21:34 +09009361 .eraseblocks = { {4 * 1024 * 1024, 1} },
9362 .block_erase = spi_block_erase_60,
9363 }, {
9364 .eraseblocks = { {4 * 1024 * 1024, 1} },
9365 .block_erase = spi_block_erase_c7,
9366 }
9367 },
9368 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit 6 is quad enable */
9369 .unlock = spi_disable_blockprotect_bp3_srwd,
9370 .write = spi_chip_write_256,
9371 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9372 .voltage = {1650, 3600},
9373 },
9374
9375 {
9376 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009377 .name = "MX25R6435F",
9378 .bustype = BUS_SPI,
9379 .manufacture_id = MACRONIX_ID,
9380 .model_id = MACRONIX_MX25R6435F,
9381 .total_size = 8192,
9382 .page_size = 256,
9383 /* OTP: 1024B total; enter 0xB1, exit 0xC1 */
9384 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9385 .tested = TEST_OK_PREW,
9386 .probe = probe_spi_rdid,
9387 .probe_timing = TIMING_ZERO,
9388 .block_erasers =
9389 {
9390 {
9391 .eraseblocks = { {4 * 1024, 2048} },
9392 .block_erase = spi_block_erase_20,
9393 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009394 .eraseblocks = { {32 * 1024, 256} },
9395 .block_erase = spi_block_erase_52,
9396 }, {
Aarya Chaumal478e1792022-06-04 01:34:44 +05309397 .eraseblocks = { {64 * 1024, 128} },
9398 .block_erase = spi_block_erase_d8,
9399 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009400 .eraseblocks = { {8 * 1024 * 1024, 1} },
9401 .block_erase = spi_block_erase_60,
9402 }, {
9403 .eraseblocks = { {8 * 1024 * 1024, 1} },
9404 .block_erase = spi_block_erase_c7,
9405 }
9406 },
9407 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9408 .unlock = spi_disable_blockprotect_bp3_srwd,
9409 .write = spi_chip_write_256,
9410 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9411 .voltage = {1650, 3600},
9412 },
9413
9414 {
9415 .vendor = "Macronix",
9416 .name = "MX25U12835F",
9417 .bustype = BUS_SPI,
9418 .manufacture_id = MACRONIX_ID,
9419 .model_id = MACRONIX_MX25U12835E,
Stefan Tauner5c316f92015-02-08 21:57:52 +00009420 .total_size = 16384,
9421 .page_size = 256,
9422 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
Alan Green1f9cc7d2019-07-01 11:10:45 +10009423 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner5c316f92015-02-08 21:57:52 +00009424 .tested = TEST_OK_PREW,
9425 .probe = probe_spi_rdid,
9426 .probe_timing = TIMING_ZERO,
9427 .block_erasers =
9428 {
9429 {
9430 .eraseblocks = { {4 * 1024, 4096} },
9431 .block_erase = spi_block_erase_20,
9432 }, {
9433 .eraseblocks = { {32 * 1024, 512} },
9434 .block_erase = spi_block_erase_52,
9435 }, {
9436 .eraseblocks = { {64 * 1024, 256} },
9437 .block_erase = spi_block_erase_d8,
9438 }, {
9439 .eraseblocks = { {16 * 1024 * 1024, 1} },
9440 .block_erase = spi_block_erase_60,
9441 }, {
9442 .eraseblocks = { {16 * 1024 * 1024, 1} },
9443 .block_erase = spi_block_erase_c7,
9444 }
9445 },
Angel Ponsf112e242018-09-30 20:14:17 +02009446 /* TODO: security register */
9447 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9448 .unlock = spi_disable_blockprotect_bp3_srwd,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009449 .write = spi_chip_write_256, /* Multi I/O supported */
Angel Ponsf112e242018-09-30 20:14:17 +02009450 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9451 .voltage = {1650, 2000},
9452 },
9453
9454 {
9455 .vendor = "Macronix",
Vincent Palatinf800f552013-03-15 02:03:16 +00009456 .name = "MX25U1635E",
9457 .bustype = BUS_SPI,
9458 .manufacture_id = MACRONIX_ID,
9459 .model_id = MACRONIX_MX25U1635E,
9460 .total_size = 2048,
9461 .page_size = 256,
9462 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9463 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
9464 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner5c316f92015-02-08 21:57:52 +00009465 .tested = TEST_OK_PR,
Vincent Palatinf800f552013-03-15 02:03:16 +00009466 .probe = probe_spi_rdid,
9467 .probe_timing = TIMING_ZERO,
9468 .block_erasers =
9469 {
9470 {
9471 .eraseblocks = { {4 * 1024, 512} },
9472 .block_erase = spi_block_erase_20,
9473 }, {
9474 .eraseblocks = { {32 * 1024, 64} },
9475 .block_erase = spi_block_erase_52,
9476 }, {
9477 .eraseblocks = { {64 * 1024, 32} },
9478 .block_erase = spi_block_erase_d8,
9479 }, {
9480 .eraseblocks = { {2 * 1024 * 1024, 1} },
9481 .block_erase = spi_block_erase_60,
9482 }, {
9483 .eraseblocks = { {2 * 1024 * 1024, 1} },
9484 .block_erase = spi_block_erase_c7,
9485 }
9486 },
9487 /* TODO: security register */
Stefan Tauner12f3d512014-05-27 21:27:27 +00009488 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009489 .unlock = spi_disable_blockprotect_bp3_srwd,
Vincent Palatinf800f552013-03-15 02:03:16 +00009490 .write = spi_chip_write_256,
9491 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9492 .voltage = {1650, 2000},
9493 },
9494
9495 {
9496 .vendor = "Macronix",
David Tomaschikf75d8c52019-06-20 09:49:01 -07009497 .name = "MX25U25635F",
9498 .bustype = BUS_SPI,
9499 .manufacture_id = MACRONIX_ID,
9500 .model_id = MACRONIX_MX25U25635F,
9501 .total_size = 32768,
9502 .page_size = 256,
9503 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9504 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_4BA,
Nikolai Artemiev148254b2021-03-23 17:21:10 +11009505 .tested = TEST_OK_PREW,
David Tomaschikf75d8c52019-06-20 09:49:01 -07009506 .probe = probe_spi_rdid,
9507 .probe_timing = TIMING_ZERO,
9508 .block_erasers =
9509 {
9510 {
9511 .eraseblocks = { {4 * 1024, 8192} },
9512 .block_erase = spi_block_erase_21,
9513 }, {
9514 .eraseblocks = { {4 * 1024, 8192} },
9515 .block_erase = spi_block_erase_20,
9516 }, {
9517 .eraseblocks = { {32 * 1024, 1024} },
9518 .block_erase = spi_block_erase_5c,
9519 }, {
9520 .eraseblocks = { {32 * 1024, 1024} },
9521 .block_erase = spi_block_erase_52,
9522 }, {
9523 .eraseblocks = { {64 * 1024, 512} },
9524 .block_erase = spi_block_erase_dc,
9525 }, {
9526 .eraseblocks = { {64 * 1024, 512} },
9527 .block_erase = spi_block_erase_d8,
9528 }, {
9529 .eraseblocks = { {32 * 1024 * 1024, 1} },
9530 .block_erase = spi_block_erase_60,
9531 }, {
9532 .eraseblocks = { {32 * 1024 * 1024, 1} },
9533 .block_erase = spi_block_erase_c7,
9534 }
9535 },
9536 /* TODO: security register */
9537 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9538 .unlock = spi_disable_blockprotect_bp3_srwd,
9539 .write = spi_chip_write_256, /* Multi I/O supported */
9540 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9541 .voltage = {1650, 2000},
Nico Huberab6b18f2023-01-11 23:38:20 +01009542 .prepare_access = spi_prepare_4ba,
David Tomaschikf75d8c52019-06-20 09:49:01 -07009543 },
9544
9545 {
9546 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009547 .name = "MX25U3235E/F",
9548 .bustype = BUS_SPI,
9549 .manufacture_id = MACRONIX_ID,
9550 .model_id = MACRONIX_MX25U3235E,
9551 .total_size = 4096,
9552 .page_size = 256,
9553 /* F model supports SFDP */
9554 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9555 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
9556 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
9557 .tested = TEST_OK_PREW,
9558 .probe = probe_spi_rdid,
9559 .probe_timing = TIMING_ZERO,
9560 .block_erasers =
9561 {
9562 {
9563 .eraseblocks = { {4 * 1024, 1024} },
9564 .block_erase = spi_block_erase_20,
9565 }, {
9566 .eraseblocks = { {32 * 1024, 128} },
9567 .block_erase = spi_block_erase_52,
9568 }, {
9569 .eraseblocks = { {64 * 1024, 64} },
9570 .block_erase = spi_block_erase_d8,
9571 }, {
9572 .eraseblocks = { {4 * 1024 * 1024, 1} },
9573 .block_erase = spi_block_erase_60,
9574 }, {
9575 .eraseblocks = { {4 * 1024 * 1024, 1} },
9576 .block_erase = spi_block_erase_c7,
9577 }
9578 },
9579 /* TODO: security register */
9580 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9581 .unlock = spi_disable_blockprotect_bp3_srwd,
9582 .write = spi_chip_write_256,
9583 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9584 .voltage = {1650, 2000},
9585 },
9586
9587 {
9588 .vendor = "Macronix",
Daniel Thompsoncadd4202018-06-04 13:52:22 +01009589 .name = "MX25U51245G",
9590 .bustype = BUS_SPI,
9591 .manufacture_id = MACRONIX_ID,
9592 .model_id = MACRONIX_MX25U51245G,
9593 .total_size = 65536,
9594 .page_size = 256,
9595 /* OTP: 512B factory programmed and 512B customer programmed; enter 0xB1, exit 0xC1 */
9596 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_4BA,
9597 .tested = TEST_OK_PREW,
9598 .probe = probe_spi_rdid,
9599 .probe_timing = TIMING_ZERO,
9600 .block_erasers =
9601 {
9602 {
9603 .eraseblocks = { {4 * 1024, 16384} },
9604 .block_erase = spi_block_erase_21,
9605 }, {
9606 .eraseblocks = { {4 * 1024, 16384} },
9607 .block_erase = spi_block_erase_20,
9608 }, {
9609 .eraseblocks = { {32 * 1024, 2048} },
9610 .block_erase = spi_block_erase_5c,
9611 }, {
9612 .eraseblocks = { {32 * 1024, 2048} },
9613 .block_erase = spi_block_erase_52,
9614 }, {
9615 .eraseblocks = { {64 * 1024, 1024} },
9616 .block_erase = spi_block_erase_dc,
9617 }, {
9618 .eraseblocks = { {64 * 1024, 1024} },
9619 .block_erase = spi_block_erase_d8,
9620 }, {
9621 .eraseblocks = { {64 * 1024 * 1024, 1} },
9622 .block_erase = spi_block_erase_60,
9623 }, {
9624 .eraseblocks = { {64 * 1024 * 1024, 1} },
9625 .block_erase = spi_block_erase_c7,
9626 }
9627 },
9628 /* TODO: security register */
9629 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9630 .unlock = spi_disable_blockprotect_bp3_srwd,
9631 .write = spi_chip_write_256, /* Multi I/O supported */
9632 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9633 .voltage = {1650, 2000},
Nico Huberab6b18f2023-01-11 23:38:20 +01009634 .prepare_access = spi_prepare_4ba,
Daniel Thompsoncadd4202018-06-04 13:52:22 +01009635 },
9636
9637 {
9638 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009639 .name = "MX25U6435E/F",
Stefan Tauner40bc96f2015-01-10 09:33:14 +00009640 .bustype = BUS_SPI,
9641 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009642 .model_id = MACRONIX_MX25U6435E,
Stefan Tauner40bc96f2015-01-10 09:33:14 +00009643 .total_size = 8192,
9644 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009645 /* F model supports SFDP */
9646 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9647 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
9648 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner40bc96f2015-01-10 09:33:14 +00009649 .tested = TEST_OK_PREW,
9650 .probe = probe_spi_rdid,
9651 .probe_timing = TIMING_ZERO,
9652 .block_erasers =
9653 {
9654 {
9655 .eraseblocks = { {4 * 1024, 2048} },
9656 .block_erase = spi_block_erase_20,
9657 }, {
Stefan Tauner40bc96f2015-01-10 09:33:14 +00009658 .eraseblocks = { {32 * 1024, 256} },
9659 .block_erase = spi_block_erase_52,
9660 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009661 .eraseblocks = { {64 * 1024, 128} },
9662 .block_erase = spi_block_erase_d8,
9663 }, {
Stefan Tauner40bc96f2015-01-10 09:33:14 +00009664 .eraseblocks = { {8 * 1024 * 1024, 1} },
9665 .block_erase = spi_block_erase_60,
9666 }, {
9667 .eraseblocks = { {8 * 1024 * 1024, 1} },
9668 .block_erase = spi_block_erase_c7,
9669 }
9670 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10009671 /* TODO: security register */
Nathan Rennie-Waldock5a7f9422018-08-10 15:35:23 +01009672 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9673 .unlock = spi_disable_blockprotect_bp3_srwd,
9674 .write = spi_chip_write_256,
9675 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Alan Green1f9cc7d2019-07-01 11:10:45 +10009676 .voltage = {1650, 2000},
9677 },
9678
9679 {
9680 .vendor = "Macronix",
9681 .name = "MX25U8032E",
9682 .bustype = BUS_SPI,
9683 .manufacture_id = MACRONIX_ID,
9684 .model_id = MACRONIX_MX25U8032E,
9685 .total_size = 1024,
9686 .page_size = 256,
9687 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9688 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9689 .tested = TEST_OK_PREW,
9690 .probe = probe_spi_rdid,
9691 .probe_timing = TIMING_ZERO,
9692 .block_erasers =
9693 {
9694 {
9695 .eraseblocks = { {4 * 1024, 256} },
9696 .block_erase = spi_block_erase_20,
9697 }, {
9698 .eraseblocks = { {32 * 1024, 32} },
9699 .block_erase = spi_block_erase_52,
9700 }, {
9701 .eraseblocks = { {64 * 1024, 16} },
9702 .block_erase = spi_block_erase_d8,
9703 }, {
9704 .eraseblocks = { {1024 * 1024, 1} },
9705 .block_erase = spi_block_erase_60,
9706 }, {
9707 .eraseblocks = { {1024 * 1024, 1} },
9708 .block_erase = spi_block_erase_c7,
9709 }
9710 },
9711 /* TODO: security register */
9712 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9713 .unlock = spi_disable_blockprotect_bp3_srwd,
9714 .write = spi_chip_write_256,
9715 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9716 .voltage = {1650, 2000},
Nathan Rennie-Waldock5a7f9422018-08-10 15:35:23 +01009717 },
9718
9719 {
9720 .vendor = "Macronix",
Mark Panajotovic502a9132009-08-24 01:42:24 +00009721 .name = "MX29F001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009722 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009723 .manufacture_id = MACRONIX_ID,
9724 .model_id = MACRONIX_MX29F001B,
Mark Panajotovic502a9132009-08-24 01:42:24 +00009725 .total_size = 128,
9726 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009727 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9728 .tested = TEST_UNTESTED,
9729 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009730 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00009731 .block_erasers =
9732 {
9733 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00009734 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00009735 {8 * 1024, 1},
9736 {4 * 1024, 2},
9737 {8 * 1024, 2},
9738 {32 * 1024, 1},
9739 {64 * 1024, 1},
9740 },
Sean Nelson35727f72010-01-28 23:55:12 +00009741 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009742 }, {
9743 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009744 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009745 }
9746 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009747 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00009748 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009749 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00009750 },
9751
9752 {
9753 .vendor = "Macronix",
9754 .name = "MX29F001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009755 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009756 .manufacture_id = MACRONIX_ID,
9757 .model_id = MACRONIX_MX29F001T,
Mark Panajotovic502a9132009-08-24 01:42:24 +00009758 .total_size = 128,
9759 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009760 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stefan Tauner74c6ec62011-05-18 01:31:46 +00009761 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00009762 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009763 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00009764 .block_erasers =
9765 {
9766 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00009767 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00009768 {64 * 1024, 1},
9769 {32 * 1024, 1},
9770 {8 * 1024, 2},
9771 {4 * 1024, 2},
9772 {8 * 1024, 1},
9773 },
Sean Nelson35727f72010-01-28 23:55:12 +00009774 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009775 }, {
9776 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009777 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009778 }
9779 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009780 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00009781 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009782 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00009783 },
9784
9785 {
9786 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00009787 .name = "MX29F002(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009788 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009789 .manufacture_id = MACRONIX_ID,
9790 .model_id = MACRONIX_MX29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009791 .total_size = 256,
9792 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009793 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009794 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00009795 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009796 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009797 .block_erasers =
9798 {
9799 {
9800 .eraseblocks = {
9801 {16 * 1024, 1},
9802 {8 * 1024, 2},
9803 {32 * 1024, 1},
9804 {64 * 1024, 3},
9805 },
Sean Nelson35727f72010-01-28 23:55:12 +00009806 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009807 }, {
9808 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009809 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009810 },
9811 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009812 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009813 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009814 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009815 },
9816
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009817 {
9818 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00009819 .name = "MX29F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009820 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009821 .manufacture_id = MACRONIX_ID,
9822 .model_id = MACRONIX_MX29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009823 .total_size = 256,
9824 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009825 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00009826 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00009827 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009828 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009829 .block_erasers =
9830 {
9831 {
9832 .eraseblocks = {
9833 {64 * 1024, 3},
9834 {32 * 1024, 1},
9835 {8 * 1024, 2},
9836 {16 * 1024, 1},
9837 },
Sean Nelson35727f72010-01-28 23:55:12 +00009838 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009839 }, {
9840 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009841 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009842 },
9843 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009844 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009845 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009846 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009847 },
9848
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009849 {
9850 .vendor = "Macronix",
Daniele Forsi6a18a932014-07-13 14:53:45 +00009851 .name = "MX29F022(N)B",
9852 .bustype = BUS_PARALLEL,
9853 .manufacture_id = MACRONIX_ID,
9854 .model_id = MACRONIX_MX29F022B,
9855 .total_size = 256,
9856 .page_size = 0, /* unused */
9857 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9858 .tested = TEST_UNTESTED,
9859 .probe = probe_jedec,
9860 .probe_timing = TIMING_ZERO,
9861 .block_erasers =
9862 {
9863 {
9864 .eraseblocks = {
9865 {16 * 1024, 1},
9866 {8 * 1024, 2},
9867 {32 * 1024, 1},
9868 {64 * 1024, 3},
9869 },
9870 .block_erase = erase_sector_jedec,
9871 }, {
9872 .eraseblocks = { {256 * 1024, 1} },
9873 .block_erase = erase_chip_block_jedec,
9874 }
9875 },
9876 .write = write_jedec_1,
9877 .read = read_memmapped,
9878 .voltage = {4500, 5500},
9879 },
9880
9881 {
9882 .vendor = "Macronix",
9883 .name = "MX29F022(N)T",
9884 .bustype = BUS_PARALLEL,
9885 .manufacture_id = MACRONIX_ID,
9886 .model_id = MACRONIX_MX29F022T,
9887 .total_size = 256,
9888 .page_size = 0, /* unused */
9889 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9890 .tested = TEST_OK_PREW,
9891 .probe = probe_jedec,
9892 .probe_timing = TIMING_ZERO,
9893 .block_erasers =
9894 {
9895 {
9896 .eraseblocks = {
9897 {64 * 1024, 3},
9898 {32 * 1024, 1},
9899 {8 * 1024, 2},
9900 {16 * 1024, 1},
9901 },
9902 .block_erase = erase_sector_jedec,
9903 }, {
9904 .eraseblocks = { {256 * 1024, 1} },
9905 .block_erase = erase_chip_block_jedec,
9906 }
9907 },
9908 .write = write_jedec_1,
9909 .read = read_memmapped,
9910 .voltage = {4500, 5500},
9911 },
9912
9913 {
9914 .vendor = "Macronix",
Joshua Roysf1324e02010-09-16 00:51:51 +00009915 .name = "MX29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009916 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00009917 .manufacture_id = MACRONIX_ID,
9918 .model_id = MACRONIX_MX29F040,
9919 .total_size = 512,
9920 .page_size = 64 * 1024,
9921 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9922 .tested = TEST_UNTESTED,
9923 .probe = probe_jedec,
9924 .probe_timing = TIMING_ZERO,
9925 .block_erasers =
9926 {
9927 {
9928 .eraseblocks = { {64 * 1024, 8} },
9929 .block_erase = erase_sector_jedec,
9930 }, {
9931 .eraseblocks = { {512 * 1024, 1} },
9932 .block_erase = erase_chip_block_jedec,
9933 },
9934 },
9935 .write = write_jedec_1,
9936 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009937 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00009938 },
9939
9940 {
9941 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009942 .name = "MX29GL128F",
9943 .bustype = BUS_PARALLEL,
9944 .manufacture_id = MACRONIX_ID,
9945 .model_id = MACRONIX_MX29GL128F,
9946 .total_size = 16384,
9947 .page_size = 128 * 1024, /* actual page size is 16 */
9948 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9949 .tested = TEST_UNTESTED,
9950 .probe = probe_jedec_29gl,
9951 .probe_timing = TIMING_ZERO,
9952 .block_erasers =
9953 {
9954 {
9955 .eraseblocks = { {128 * 1024, 128} },
9956 .block_erase = erase_sector_jedec,
9957 }, {
9958 .eraseblocks = { {16 * 1024 * 1024, 1} },
9959 .block_erase = erase_chip_block_jedec,
9960 },
9961 },
9962 .write = write_jedec_1,
9963 .read = read_memmapped,
9964 .voltage = {2700, 3600},
9965 },
9966
9967 {
9968 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00009969 .name = "MX29GL320EB",
9970 .bustype = BUS_PARALLEL,
9971 .manufacture_id = MACRONIX_ID,
9972 .model_id = MACRONIX_MX29GL320EB,
9973 .total_size = 4096,
9974 .page_size = 128 * 1024, /* actual page size is 16 */
9975 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9976 .tested = TEST_UNTESTED,
9977 .probe = probe_jedec_29gl,
9978 .probe_timing = TIMING_ZERO,
9979 .block_erasers =
9980 {
9981 {
9982 .eraseblocks = {
9983 {8 * 1024, 8},
9984 {64 * 1024, 63},
9985 },
9986 .block_erase = erase_sector_jedec,
9987 }, {
9988 .eraseblocks = { {4 * 1024 * 1024, 1} },
9989 .block_erase = erase_chip_block_jedec,
9990 },
9991 },
9992 .write = write_jedec_1,
9993 .read = read_memmapped,
9994 .voltage = {2700, 3600},
9995 },
9996
9997 {
9998 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009999 .name = "MX29GL320EH/L",
10000 .bustype = BUS_PARALLEL,
10001 .manufacture_id = MACRONIX_ID,
10002 .model_id = MACRONIX_MX29GL320EHL,
10003 .total_size = 4096,
10004 .page_size = 128 * 1024, /* actual page size is 16 */
10005 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
10006 .tested = TEST_UNTESTED,
10007 .probe = probe_jedec_29gl,
10008 .probe_timing = TIMING_ZERO,
10009 .block_erasers =
10010 {
10011 {
10012 .eraseblocks = { {64 * 1024, 64} },
10013 .block_erase = erase_sector_jedec,
10014 }, {
10015 .eraseblocks = { {4 * 1024 * 1024, 1} },
10016 .block_erase = erase_chip_block_jedec,
10017 },
10018 },
10019 .write = write_jedec_1,
10020 .read = read_memmapped,
10021 .voltage = {2700, 3600},
10022 },
10023
10024 {
10025 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000010026 .name = "MX29GL320ET",
10027 .bustype = BUS_PARALLEL,
10028 .manufacture_id = MACRONIX_ID,
10029 .model_id = MACRONIX_MX29GL320ET,
10030 .total_size = 4096,
10031 .page_size = 128 * 1024, /* actual page size is 16 */
10032 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
10033 .tested = TEST_UNTESTED,
10034 .probe = probe_jedec_29gl,
10035 .probe_timing = TIMING_ZERO,
10036 .block_erasers =
10037 {
10038 {
10039 .eraseblocks = {
10040 {64 * 1024, 63},
10041 {8 * 1024, 8},
10042 },
10043 .block_erase = erase_sector_jedec,
10044 }, {
10045 .eraseblocks = { {4 * 1024 * 1024, 1} },
10046 .block_erase = erase_chip_block_jedec,
10047 },
10048 },
10049 .write = write_jedec_1,
10050 .read = read_memmapped,
10051 .voltage = {2700, 3600},
10052 },
10053
10054 {
10055 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000010056 .name = "MX29GL640EB",
10057 .bustype = BUS_PARALLEL,
10058 .manufacture_id = MACRONIX_ID,
10059 .model_id = MACRONIX_MX29GL640EB,
10060 .total_size = 8192,
10061 .page_size = 128 * 1024, /* actual page size is 16 */
10062 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
10063 .tested = TEST_UNTESTED,
10064 .probe = probe_jedec_29gl,
10065 .probe_timing = TIMING_ZERO,
10066 .block_erasers =
10067 {
10068 {
10069 .eraseblocks = {
10070 {8 * 1024, 8},
10071 {64 * 1024, 127},
10072 },
10073 .block_erase = erase_sector_jedec,
10074 }, {
10075 .eraseblocks = { {8 * 1024 * 1024, 1} },
10076 .block_erase = erase_chip_block_jedec,
10077 },
10078 },
10079 .write = write_jedec_1,
10080 .read = read_memmapped,
10081 .voltage = {2700, 3600},
10082 },
10083
10084 {
10085 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010086 .name = "MX29GL640EH/L",
10087 .bustype = BUS_PARALLEL,
10088 .manufacture_id = MACRONIX_ID,
10089 .model_id = MACRONIX_MX29GL640EHL,
10090 .total_size = 8192,
10091 .page_size = 128 * 1024, /* actual page size is 16 */
10092 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
10093 .tested = TEST_UNTESTED,
10094 .probe = probe_jedec_29gl,
10095 .probe_timing = TIMING_ZERO,
10096 .block_erasers =
10097 {
10098 {
10099 .eraseblocks = { {64 * 1024, 128} },
10100 .block_erase = erase_sector_jedec,
10101 }, {
10102 .eraseblocks = { {8 * 1024 * 1024, 1} },
10103 .block_erase = erase_chip_block_jedec,
10104 },
10105 },
10106 .write = write_jedec_1,
10107 .read = read_memmapped,
10108 .voltage = {2700, 3600},
10109 },
10110
10111 {
10112 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000010113 .name = "MX29GL640ET",
10114 .bustype = BUS_PARALLEL,
10115 .manufacture_id = MACRONIX_ID,
10116 .model_id = MACRONIX_MX29GL640ET,
10117 .total_size = 8192,
10118 .page_size = 128 * 1024, /* actual page size is 16 */
10119 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
10120 .tested = TEST_UNTESTED,
10121 .probe = probe_jedec_29gl,
10122 .probe_timing = TIMING_ZERO,
10123 .block_erasers =
10124 {
10125 {
10126 .eraseblocks = {
10127 {64 * 1024, 127},
10128 {8 * 1024, 8},
10129 },
10130 .block_erase = erase_sector_jedec,
10131 }, {
10132 .eraseblocks = { {8 * 1024 * 1024, 1} },
10133 .block_erase = erase_chip_block_jedec,
10134 },
10135 },
10136 .write = write_jedec_1,
10137 .read = read_memmapped,
10138 .voltage = {2700, 3600},
10139 },
10140
10141 {
10142 .vendor = "Macronix",
Carl-Daniel Hailfinger350a0c32009-07-24 13:59:27 +000010143 .name = "MX29LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010144 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010145 .manufacture_id = MACRONIX_ID,
10146 .model_id = MACRONIX_MX29LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010147 .total_size = 512,
10148 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010149 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
10150 .tested = TEST_UNTESTED,
10151 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +000010152 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +000010153 .block_erasers =
10154 {
10155 {
Stefan Tauner6697f712014-08-06 15:09:15 +000010156 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +000010157 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +000010158 }, {
10159 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000010160 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +000010161 },
10162 },
Michael Karcher1c296ca2009-11-27 17:49:42 +000010163 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010164 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010165 .voltage = {2700, 3600},
Carl-Daniel Hailfinger7de86392008-12-10 10:32:05 +000010166 },
10167
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010168 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010169 .vendor = "Macronix",
Hemanth Guruva Reddya136d422019-07-11 11:08:27 +020010170 .name = "MX66L51235F/MX25L51245G",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010171 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010172 .manufacture_id = MACRONIX_ID,
10173 .model_id = MACRONIX_MX66L51235F,
10174 .total_size = 65536,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010175 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010176 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
10177 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010178 .tested = TEST_OK_PREW,
10179 .probe = probe_spi_rdid,
10180 .probe_timing = TIMING_ZERO,
10181 .block_erasers =
10182 {
10183 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010184 .eraseblocks = { {4 * 1024, 16384} },
10185 .block_erase = spi_block_erase_21,
10186 }, {
10187 .eraseblocks = { {4 * 1024, 16384} },
10188 .block_erase = spi_block_erase_20,
10189 }, {
10190 .eraseblocks = { {32 * 1024, 2048} },
10191 .block_erase = spi_block_erase_5c,
10192 }, {
10193 .eraseblocks = { {32 * 1024, 2048} },
10194 .block_erase = spi_block_erase_52,
10195 }, {
10196 .eraseblocks = { {64 * 1024, 1024} },
10197 .block_erase = spi_block_erase_dc,
10198 }, {
10199 .eraseblocks = { {64 * 1024, 1024} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010200 .block_erase = spi_block_erase_d8,
10201 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010202 .eraseblocks = { {64 * 1024 * 1024, 1} },
10203 .block_erase = spi_block_erase_60,
10204 }, {
10205 .eraseblocks = { {64 * 1024 * 1024, 1} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010206 .block_erase = spi_block_erase_c7,
10207 }
10208 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100010209 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
10210 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010211 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010212 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010213 .read = spi_chip_read, /* Fast read (0x0B) supported */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010214 .voltage = {2700, 3600},
Nico Huberab6b18f2023-01-11 23:38:20 +010010215 .prepare_access = spi_prepare_4ba,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010216 },
10217
Patrick Rudolph3ba83152021-06-08 10:52:19 +020010218 {
10219 .vendor = "Macronix",
10220 .name = "MX66L1G45G",
10221 .bustype = BUS_SPI,
10222 .manufacture_id = MACRONIX_ID,
10223 .model_id = MACRONIX_MX66L1G45G,
10224 .total_size = 131072,
10225 .page_size = 256,
10226 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
10227 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
10228 .tested = TEST_OK_PREW,
10229 .probe = probe_spi_rdid,
10230 .probe_timing = TIMING_ZERO,
10231 .block_erasers =
10232 {
10233 {
10234 .eraseblocks = { {4 * 1024, 32768} },
10235 .block_erase = spi_block_erase_21,
10236 }, {
10237 .eraseblocks = { {4 * 1024, 32768} },
10238 .block_erase = spi_block_erase_20,
10239 }, {
10240 .eraseblocks = { {32 * 1024, 4096} },
10241 .block_erase = spi_block_erase_5c,
10242 }, {
10243 .eraseblocks = { {32 * 1024, 4096} },
10244 .block_erase = spi_block_erase_52,
10245 }, {
10246 .eraseblocks = { {64 * 1024, 2048} },
10247 .block_erase = spi_block_erase_dc,
10248 }, {
10249 .eraseblocks = { {64 * 1024, 2048} },
10250 .block_erase = spi_block_erase_d8,
10251 }, {
10252 .eraseblocks = { {128 * 1024 * 1024, 1} },
10253 .block_erase = spi_block_erase_60,
10254 }, {
10255 .eraseblocks = { {128 * 1024 * 1024, 1} },
10256 .block_erase = spi_block_erase_c7,
10257 }
10258 },
10259 /* TODO: security register and SBLK/SBULK, configuration register */
10260 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
10261 .unlock = spi_disable_blockprotect_bp3_srwd,
10262 .write = spi_chip_write_256,
10263 .read = spi_chip_read, /* Fast read (0x0B) supported */
10264 .voltage = {2700, 3600},
Nico Huberab6b18f2023-01-11 23:38:20 +010010265 .prepare_access = spi_prepare_4ba,
Patrick Rudolph3ba83152021-06-08 10:52:19 +020010266 },
10267
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010268 /* The ST M25P05 is a bit of a problem. It has the same ID as the
10269 * ST M25P05-A in RES mode, but supports only 128 byte writes instead
10270 * of 256 byte writes. We rely heavily on the fact that probe_spi_res1
10271 * only is successful if RDID does not work.
10272 */
10273 {
10274 .vendor = "Micron/Numonyx/ST",
10275 .name = "M25P05",
10276 .bustype = BUS_SPI,
10277 .manufacture_id = 0, /* Not used. */
10278 .model_id = ST_M25P05_RES,
10279 .total_size = 64,
10280 .page_size = 256,
10281 .feature_bits = FEATURE_WRSR_WREN,
10282 .tested = TEST_UNTESTED,
10283 .probe = probe_spi_res1,
10284 .probe_timing = TIMING_ZERO,
10285 .block_erasers =
10286 {
10287 {
10288 .eraseblocks = { {32 * 1024, 2} },
10289 .block_erase = spi_block_erase_d8,
10290 }, {
10291 .eraseblocks = { {64 * 1024, 1} },
10292 .block_erase = spi_block_erase_c7,
10293 }
10294 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010295 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010296 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010297 .write = spi_chip_write_1, /* 128 */
10298 .read = spi_chip_read,
10299 .voltage = {2700, 3600},
10300 },
10301
10302 {
10303 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010304 .name = "M25P05-A",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010305 .bustype = BUS_SPI,
10306 .manufacture_id = ST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010307 .model_id = ST_M25P05A,
10308 .total_size = 64,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010309 .page_size = 256,
10310 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000010311 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010312 .probe = probe_spi_rdid,
10313 .probe_timing = TIMING_ZERO,
10314 .block_erasers =
10315 {
10316 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010317 .eraseblocks = { {32 * 1024, 2} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010318 .block_erase = spi_block_erase_d8,
10319 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010320 .eraseblocks = { {64 * 1024, 1} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010321 .block_erase = spi_block_erase_c7,
10322 }
10323 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010324 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010325 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010326 .write = spi_chip_write_256,
10327 .read = spi_chip_read,
10328 .voltage = {2700, 3600},
10329 },
10330
10331 /* The ST M25P10 has the same problem as the M25P05. */
10332 {
10333 .vendor = "Micron/Numonyx/ST",
10334 .name = "M25P10",
10335 .bustype = BUS_SPI,
10336 .manufacture_id = 0, /* Not used. */
10337 .model_id = ST_M25P10_RES,
10338 .total_size = 128,
10339 .page_size = 256,
10340 .feature_bits = FEATURE_WRSR_WREN,
10341 .tested = TEST_UNTESTED,
10342 .probe = probe_spi_res1,
10343 .probe_timing = TIMING_ZERO,
10344 .block_erasers =
10345 {
10346 {
10347 .eraseblocks = { {32 * 1024, 4} },
10348 .block_erase = spi_block_erase_d8,
10349 }, {
10350 .eraseblocks = { {128 * 1024, 1} },
10351 .block_erase = spi_block_erase_c7,
10352 }
10353 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010354 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010355 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010356 .write = spi_chip_write_1, /* 128 */
10357 .read = spi_chip_read,
10358 .voltage = {2700, 3600},
10359 },
10360
10361 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010362 .vendor = "Micron/Numonyx/ST",
10363 .name = "M25P10-A",
10364 .bustype = BUS_SPI,
10365 .manufacture_id = ST_ID,
10366 .model_id = ST_M25P10A,
10367 .total_size = 128,
10368 .page_size = 256,
10369 .feature_bits = FEATURE_WRSR_WREN,
10370 .tested = TEST_OK_PREW,
10371 .probe = probe_spi_rdid,
10372 .probe_timing = TIMING_ZERO,
10373 .block_erasers =
10374 {
10375 {
10376 .eraseblocks = { {32 * 1024, 4} },
10377 .block_erase = spi_block_erase_d8,
10378 }, {
10379 .eraseblocks = { {128 * 1024, 1} },
10380 .block_erase = spi_block_erase_c7,
10381 }
10382 },
10383 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
10384 .unlock = spi_disable_blockprotect_bp3_srwd,
10385 .write = spi_chip_write_256,
10386 .read = spi_chip_read,
10387 .voltage = {2700, 3600},
10388 },
10389
10390 {
10391 .vendor = "Micron/Numonyx/ST",
10392 .name = "M25P128",
10393 .bustype = BUS_SPI,
10394 .manufacture_id = ST_ID,
10395 .model_id = ST_M25P128,
10396 .total_size = 16384,
10397 .page_size = 256,
10398 .feature_bits = FEATURE_WRSR_WREN,
10399 .tested = TEST_OK_PREW,
10400 .probe = probe_spi_rdid,
10401 .probe_timing = TIMING_ZERO,
10402 .block_erasers =
10403 {
10404 {
10405 .eraseblocks = { {256 * 1024, 64} },
10406 .block_erase = spi_block_erase_d8,
10407 }, {
10408 .eraseblocks = { {16 * 1024 * 1024, 1} },
10409 .block_erase = spi_block_erase_c7,
10410 }
10411 },
10412 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
10413 .unlock = spi_disable_blockprotect_bp3_srwd,
10414 .write = spi_chip_write_256,
10415 .read = spi_chip_read,
10416 .voltage = {2700, 3600},
10417 },
10418
10419 {
10420 .vendor = "Micron/Numonyx/ST",
10421 .name = "M25P16",
10422 .bustype = BUS_SPI,
10423 .manufacture_id = ST_ID,
10424 .model_id = ST_M25P16,
10425 .total_size = 2048,
10426 .page_size = 256,
10427 .feature_bits = FEATURE_WRSR_WREN,
10428 .tested = TEST_OK_PREW,
10429 .probe = probe_spi_rdid,
10430 .probe_timing = TIMING_ZERO,
10431 .block_erasers =
10432 {
10433 {
10434 .eraseblocks = { {64 * 1024, 32} },
10435 .block_erase = spi_block_erase_d8,
10436 }, {
10437 .eraseblocks = { {2 * 1024 * 1024, 1} },
10438 .block_erase = spi_block_erase_c7,
10439 }
10440 },
10441 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
10442 .unlock = spi_disable_blockprotect_bp3_srwd,
10443 .write = spi_chip_write_256,
10444 .read = spi_chip_read,
10445 .voltage = {2700, 3600},
10446 },
10447
10448 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010449 .vendor = "Micron/Numonyx/ST", /* Numonyx */
10450 .name = "M25P20",
10451 .bustype = BUS_SPI,
10452 .manufacture_id = ST_ID,
10453 .model_id = ST_M25P20,
10454 .total_size = 256,
10455 .page_size = 256,
10456 .feature_bits = FEATURE_WRSR_WREN,
10457 .tested = TEST_UNTESTED,
10458 .probe = probe_spi_rdid,
10459 .probe_timing = TIMING_ZERO,
10460 .block_erasers =
10461 {
10462 {
10463 .eraseblocks = { {64 * 1024, 4} },
10464 .block_erase = spi_block_erase_d8,
10465 }, {
10466 .eraseblocks = { {256 * 1024, 1} },
10467 .block_erase = spi_block_erase_c7,
10468 }
10469 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010470 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010471 .unlock = spi_disable_blockprotect,
10472 .write = spi_chip_write_256,
10473 .read = spi_chip_read, /* Fast read (0x0B) supported */
10474 .voltage = {2700, 3600},
10475 },
10476
10477 {
10478 .vendor = "Micron/Numonyx/ST",
10479 .name = "M25P20-old",
10480 .bustype = BUS_SPI,
10481 .manufacture_id = 0, /* Not used. */
10482 .model_id = ST_M25P20_RES,
10483 .total_size = 256,
10484 .page_size = 256,
10485 .feature_bits = FEATURE_WRSR_WREN,
10486 .tested = TEST_OK_PREW,
10487 .probe = probe_spi_res1,
10488 .probe_timing = TIMING_ZERO,
10489 .block_erasers =
10490 {
10491 {
10492 .eraseblocks = { {64 * 1024, 4} },
10493 .block_erase = spi_block_erase_d8,
10494 }, {
10495 .eraseblocks = { {256 * 1024, 1} },
10496 .block_erase = spi_block_erase_c7,
10497 }
10498 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010499 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010500 .unlock = spi_disable_blockprotect,
10501 .write = spi_chip_write_256,
10502 .read = spi_chip_read, /* Fast read (0x0B) supported */
10503 .voltage = {2700, 3600},
10504 },
10505
10506 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010507 .vendor = "Micron/Numonyx/ST",
10508 .name = "M25P32",
10509 .bustype = BUS_SPI,
10510 .manufacture_id = ST_ID,
10511 .model_id = ST_M25P32,
10512 .total_size = 4096,
10513 .page_size = 256,
10514 .feature_bits = FEATURE_WRSR_WREN,
10515 .tested = TEST_OK_PREW,
10516 .probe = probe_spi_rdid,
10517 .probe_timing = TIMING_ZERO,
10518 .block_erasers =
10519 {
10520 {
10521 .eraseblocks = { {64 * 1024, 64} },
10522 .block_erase = spi_block_erase_d8,
10523 }, {
10524 .eraseblocks = { {4 * 1024 * 1024, 1} },
10525 .block_erase = spi_block_erase_c7,
10526 }
10527 },
10528 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
10529 .unlock = spi_disable_blockprotect_bp3_srwd,
10530 .write = spi_chip_write_256,
10531 .read = spi_chip_read,
10532 .voltage = {2700, 3600},
10533 },
10534
10535 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010536 .vendor = "Micron/Numonyx/ST", /* Numonyx */
10537 .name = "M25P40",
10538 .bustype = BUS_SPI,
10539 .manufacture_id = ST_ID,
10540 .model_id = ST_M25P40,
10541 .total_size = 512,
10542 .page_size = 256,
10543 .feature_bits = FEATURE_WRSR_WREN,
10544 .tested = TEST_OK_PREW,
10545 .probe = probe_spi_rdid,
10546 .probe_timing = TIMING_ZERO,
10547 .block_erasers =
10548 {
10549 {
10550 .eraseblocks = { {64 * 1024, 8} },
10551 .block_erase = spi_block_erase_d8,
10552 }, {
10553 .eraseblocks = { {512 * 1024, 1} },
10554 .block_erase = spi_block_erase_c7,
10555 }
10556 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010557 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010558 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010559 .write = spi_chip_write_256,
10560 .read = spi_chip_read,
10561 .voltage = {2700, 3600},
10562 },
10563
10564 {
10565 .vendor = "Micron/Numonyx/ST",
10566 .name = "M25P40-old",
10567 .bustype = BUS_SPI,
10568 .manufacture_id = 0, /* Not used. */
10569 .model_id = ST_M25P40_RES,
10570 .total_size = 512,
10571 .page_size = 256,
10572 .feature_bits = FEATURE_WRSR_WREN,
10573 .tested = TEST_UNTESTED,
10574 .probe = probe_spi_res1,
10575 .probe_timing = TIMING_ZERO,
10576 .block_erasers =
10577 {
10578 {
10579 .eraseblocks = { {64 * 1024, 8} },
10580 .block_erase = spi_block_erase_d8,
10581 }, {
10582 .eraseblocks = { {512 * 1024, 1} },
10583 .block_erase = spi_block_erase_c7,
10584 }
10585 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010586 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010587 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010588 .write = spi_chip_write_256,
10589 .read = spi_chip_read,
10590 },
10591
10592 {
10593 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010594 .name = "M25P64",
10595 .bustype = BUS_SPI,
10596 .manufacture_id = ST_ID,
10597 .model_id = ST_M25P64,
10598 .total_size = 8192,
10599 .page_size = 256,
10600 .feature_bits = FEATURE_WRSR_WREN,
10601 .tested = TEST_OK_PREW,
10602 .probe = probe_spi_rdid,
10603 .probe_timing = TIMING_ZERO,
10604 .block_erasers =
10605 {
10606 {
10607 .eraseblocks = { {64 * 1024, 128} },
10608 .block_erase = spi_block_erase_d8,
10609 }, {
10610 .eraseblocks = { {8 * 1024 * 1024, 1} },
10611 .block_erase = spi_block_erase_c7,
10612 }
10613 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010614 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010615 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010616 .write = spi_chip_write_256,
10617 .read = spi_chip_read,
10618 .voltage = {2700, 3600},
10619 },
10620
10621 {
10622 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010623 .name = "M25P80",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010624 .bustype = BUS_SPI,
10625 .manufacture_id = ST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010626 .model_id = ST_M25P80,
10627 .total_size = 1024,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010628 .page_size = 256,
10629 .feature_bits = FEATURE_WRSR_WREN,
10630 .tested = TEST_OK_PREW,
10631 .probe = probe_spi_rdid,
10632 .probe_timing = TIMING_ZERO,
10633 .block_erasers =
10634 {
10635 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010636 .eraseblocks = { {64 * 1024, 16} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010637 .block_erase = spi_block_erase_d8,
10638 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010639 .eraseblocks = { {1024 * 1024, 1} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010640 .block_erase = spi_block_erase_c7,
10641 }
10642 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010643 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010644 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010645 .write = spi_chip_write_256,
10646 .read = spi_chip_read,
10647 .voltage = {2700, 3600},
10648 },
10649
10650 {
10651 .vendor = "Micron/Numonyx/ST",
10652 .name = "M25PE10",
10653 .bustype = BUS_SPI,
10654 .manufacture_id = ST_ID,
10655 .model_id = ST_M25PE10,
10656 .total_size = 128,
10657 .page_size = 256,
10658 .feature_bits = FEATURE_WRSR_WREN,
10659 .tested = TEST_UNTESTED,
10660 .probe = probe_spi_rdid,
10661 .probe_timing = TIMING_ZERO,
10662 .block_erasers =
10663 {
10664 {
10665 .eraseblocks = { {4 * 1024, 32} },
10666 .block_erase = spi_block_erase_20,
10667 }, {
10668 .eraseblocks = { {64 * 1024, 2} },
10669 .block_erase = spi_block_erase_d8,
10670 }, {
10671 .eraseblocks = { {128 * 1024, 1} },
10672 .block_erase = spi_block_erase_c7,
10673 }
10674 },
10675 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10676 .unlock = spi_disable_blockprotect,
10677 .write = spi_chip_write_256,
10678 .read = spi_chip_read,
10679 .voltage = {2700, 3600},
10680 },
10681
10682 {
10683 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010684 .name = "M25PE16",
10685 .bustype = BUS_SPI,
10686 .manufacture_id = ST_ID,
10687 .model_id = ST_M25PE16,
10688 .total_size = 2048,
10689 .page_size = 256,
10690 .feature_bits = FEATURE_WRSR_WREN,
10691 .tested = TEST_UNTESTED,
10692 .probe = probe_spi_rdid,
10693 .probe_timing = TIMING_ZERO,
10694 .block_erasers =
10695 {
10696 {
10697 .eraseblocks = { {4 * 1024, 512} },
10698 .block_erase = spi_block_erase_20,
10699 }, {
10700 .eraseblocks = { {64 * 1024, 32} },
10701 .block_erase = spi_block_erase_d8,
10702 }, {
10703 .eraseblocks = { {2 * 1024 * 1024, 1} },
10704 .block_erase = spi_block_erase_c7,
10705 }
10706 },
10707 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10708 .unlock = spi_disable_blockprotect,
10709 .write = spi_chip_write_256,
10710 .read = spi_chip_read,
10711 .voltage = {2700, 3600},
10712 },
10713
10714 {
10715 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010716 .name = "M25PE20",
10717 .bustype = BUS_SPI,
10718 .manufacture_id = ST_ID,
10719 .model_id = ST_M25PE20,
10720 .total_size = 256,
10721 .page_size = 256,
10722 .feature_bits = FEATURE_WRSR_WREN,
10723 .tested = TEST_UNTESTED,
10724 .probe = probe_spi_rdid,
10725 .probe_timing = TIMING_ZERO,
10726 .block_erasers =
10727 {
10728 {
10729 .eraseblocks = { {4 * 1024, 64} },
10730 .block_erase = spi_block_erase_20,
10731 }, {
10732 .eraseblocks = { {64 * 1024, 4} },
10733 .block_erase = spi_block_erase_d8,
10734 }, {
10735 .eraseblocks = { {256 * 1024, 1} },
10736 .block_erase = spi_block_erase_c7,
10737 }
10738 },
10739 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10740 .unlock = spi_disable_blockprotect,
10741 .write = spi_chip_write_256,
10742 .read = spi_chip_read,
10743 .voltage = {2700, 3600},
10744 },
10745
10746 {
10747 .vendor = "Micron/Numonyx/ST",
10748 .name = "M25PE40",
10749 .bustype = BUS_SPI,
10750 .manufacture_id = ST_ID,
10751 .model_id = ST_M25PE40,
10752 .total_size = 512,
10753 .page_size = 256,
10754 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000010755 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010756 .probe = probe_spi_rdid,
10757 .probe_timing = TIMING_ZERO,
10758 .block_erasers =
10759 {
10760 {
10761 .eraseblocks = { {4 * 1024, 128} },
10762 .block_erase = spi_block_erase_20,
10763 }, {
10764 .eraseblocks = { {64 * 1024, 8} },
10765 .block_erase = spi_block_erase_d8,
10766 }, {
10767 .eraseblocks = { {512 * 1024, 1} },
10768 .block_erase = spi_block_erase_c7,
10769 }
10770 },
10771 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10772 .unlock = spi_disable_blockprotect,
10773 .write = spi_chip_write_256,
10774 .read = spi_chip_read,
10775 .voltage = {2700, 3600},
10776 },
10777
10778 {
10779 .vendor = "Micron/Numonyx/ST",
10780 .name = "M25PE80",
10781 .bustype = BUS_SPI,
10782 .manufacture_id = ST_ID,
10783 .model_id = ST_M25PE80,
10784 .total_size = 1024,
10785 .page_size = 256,
10786 .feature_bits = FEATURE_WRSR_WREN,
10787 .tested = TEST_OK_PREW,
10788 .probe = probe_spi_rdid,
10789 .probe_timing = TIMING_ZERO,
10790 .block_erasers =
10791 {
10792 {
10793 .eraseblocks = { {4 * 1024, 256} },
10794 .block_erase = spi_block_erase_20,
10795 }, {
10796 .eraseblocks = { {64 * 1024, 16} },
10797 .block_erase = spi_block_erase_d8,
10798 }, {
10799 .eraseblocks = { {1024 * 1024, 1} },
10800 .block_erase = spi_block_erase_c7,
10801 }
10802 },
10803 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10804 .unlock = spi_disable_blockprotect,
10805 .write = spi_chip_write_256,
10806 .read = spi_chip_read,
10807 .voltage = {2700, 3600},
10808 },
10809
10810 {
10811 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010812 .name = "M25PX16",
10813 .bustype = BUS_SPI,
10814 .manufacture_id = ST_ID,
10815 .model_id = ST_M25PX16,
10816 .total_size = 2048,
10817 .page_size = 256,
10818 /* OTP: 64B total; read 0x4B; write 0x42 */
10819 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10820 .tested = TEST_OK_PREW,
10821 .probe = probe_spi_rdid,
10822 .probe_timing = TIMING_ZERO,
10823 .block_erasers =
10824 {
10825 {
10826 .eraseblocks = { { 4 * 1024, 512 } },
10827 .block_erase = spi_block_erase_20,
10828 }, {
10829 .eraseblocks = { {64 * 1024, 32} },
10830 .block_erase = spi_block_erase_d8,
10831 }, {
10832 .eraseblocks = { {2 * 1024 * 1024, 1} },
10833 .block_erase = spi_block_erase_c7,
10834 }
10835 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010836 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010837 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
10838 .write = spi_chip_write_256,
10839 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000010840 .voltage = {2300, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010841 },
10842
10843 {
10844 .vendor = "Micron/Numonyx/ST",
10845 .name = "M25PX32",
10846 .bustype = BUS_SPI,
10847 .manufacture_id = ST_ID,
10848 .model_id = ST_M25PX32,
10849 .total_size = 4096,
10850 .page_size = 256,
10851 /* OTP: 64B total; read 0x4B; write 0x42 */
10852 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10853 .tested = TEST_OK_PRE,
10854 .probe = probe_spi_rdid,
10855 .probe_timing = TIMING_ZERO,
10856 .block_erasers =
10857 {
10858 {
10859 .eraseblocks = { { 4 * 1024, 1024 } },
10860 .block_erase = spi_block_erase_20,
10861 }, {
10862 .eraseblocks = { {64 * 1024, 64} },
10863 .block_erase = spi_block_erase_d8,
10864 }, {
10865 .eraseblocks = { {4 * 1024 * 1024, 1} },
10866 .block_erase = spi_block_erase_c7,
10867 }
10868 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010869 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010870 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
10871 .write = spi_chip_write_256,
10872 .read = spi_chip_read,
10873 .voltage = {2700, 3600},
10874 },
10875
10876 {
10877 .vendor = "Micron/Numonyx/ST",
10878 .name = "M25PX64",
10879 .bustype = BUS_SPI,
10880 .manufacture_id = ST_ID,
10881 .model_id = ST_M25PX64,
10882 .total_size = 8192,
10883 .page_size = 256,
10884 /* OTP: 64B total; read 0x4B; write 0x42 */
10885 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000010886 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010887 .probe = probe_spi_rdid,
10888 .probe_timing = TIMING_ZERO,
10889 .block_erasers =
10890 {
10891 {
10892 .eraseblocks = { { 4 * 1024, 2048 } },
10893 .block_erase = spi_block_erase_20,
10894 }, {
10895 .eraseblocks = { {64 * 1024, 128} },
10896 .block_erase = spi_block_erase_d8,
10897 }, {
10898 .eraseblocks = { {8 * 1024 * 1024, 1} },
10899 .block_erase = spi_block_erase_c7,
10900 }
10901 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010902 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010903 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
10904 .write = spi_chip_write_256,
10905 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000010906 .voltage = {2700, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010907 },
10908
10909 {
10910 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010911 .name = "M25PX80",
10912 .bustype = BUS_SPI,
10913 .manufacture_id = ST_ID,
10914 .model_id = ST_M25PX80,
10915 .total_size = 1024,
10916 .page_size = 256,
10917 /* OTP: 64B total; read 0x4B, write 0x42 */
10918 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10919 .tested = TEST_OK_PREW,
10920 .probe = probe_spi_rdid,
10921 .probe_timing = TIMING_ZERO,
10922 .block_erasers =
10923 {
10924 {
10925 .eraseblocks = { { 4 * 1024, 256 } },
10926 .block_erase = spi_block_erase_20,
10927 }, {
10928 .eraseblocks = { {64 * 1024, 16} },
10929 .block_erase = spi_block_erase_d8,
10930 }, {
10931 .eraseblocks = { {1024 * 1024, 1} },
10932 .block_erase = spi_block_erase_c7,
10933 }
10934 },
10935 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
10936 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
10937 .write = spi_chip_write_256,
10938 .read = spi_chip_read,
10939 .voltage = {2700, 3600},
10940 },
10941
10942 {
10943 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010944 .name = "M45PE10",
10945 .bustype = BUS_SPI,
10946 .manufacture_id = ST_ID,
10947 .model_id = ST_M45PE10,
10948 .total_size = 128,
10949 .page_size = 256,
10950 .tested = TEST_UNTESTED,
10951 .probe = probe_spi_rdid,
10952 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100010953 .block_erasers =
10954 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010955 {
10956 .eraseblocks = { {256, 512} },
10957 .block_erase = spi_block_erase_db,
10958 }, {
10959 .eraseblocks = { {64 * 1024, 2} },
10960 .block_erase = spi_block_erase_d8,
10961 }
10962 },
10963 .printlock = spi_prettyprint_status_register_default_welwip,
10964 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
10965 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
10966 .read = spi_chip_read, /* Fast read (0x0B) supported */
10967 .voltage = {2700, 3600},
10968 },
10969
10970 {
10971 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010972 .name = "M45PE16",
10973 .bustype = BUS_SPI,
10974 .manufacture_id = ST_ID,
10975 .model_id = ST_M45PE16,
10976 .total_size = 2048,
10977 .page_size = 256,
10978 .tested = TEST_UNTESTED,
10979 .probe = probe_spi_rdid,
10980 .probe_timing = TIMING_ZERO,
10981 .block_erasers =
10982 {
10983 {
10984 .eraseblocks = { {256, 8192} },
10985 .block_erase = spi_block_erase_db,
10986 }, {
10987 .eraseblocks = { {64 * 1024, 32} },
10988 .block_erase = spi_block_erase_d8,
10989 }
10990 },
10991 .printlock = spi_prettyprint_status_register_default_welwip,
10992 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
10993 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
10994 .read = spi_chip_read, /* Fast read (0x0B) supported */
10995 .voltage = {2700, 3600},
10996 },
10997
10998 {
10999 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011000 .name = "M45PE20",
11001 .bustype = BUS_SPI,
11002 .manufacture_id = ST_ID,
11003 .model_id = ST_M45PE20,
11004 .total_size = 256,
11005 .page_size = 256,
11006 .tested = TEST_UNTESTED,
11007 .probe = probe_spi_rdid,
11008 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011009 .block_erasers =
11010 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011011 {
11012 .eraseblocks = { {256, 1024} },
11013 .block_erase = spi_block_erase_db,
11014 }, {
11015 .eraseblocks = { {64 * 1024, 4} },
11016 .block_erase = spi_block_erase_d8,
11017 }
11018 },
11019 .printlock = spi_prettyprint_status_register_default_welwip,
11020 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
11021 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
11022 .read = spi_chip_read, /* Fast read (0x0B) supported */
11023 .voltage = {2700, 3600},
11024 },
11025
11026 {
11027 .vendor = "Micron/Numonyx/ST",
11028 .name = "M45PE40",
11029 .bustype = BUS_SPI,
11030 .manufacture_id = ST_ID,
11031 .model_id = ST_M45PE40,
11032 .total_size = 512,
11033 .page_size = 256,
11034 .tested = TEST_UNTESTED,
11035 .probe = probe_spi_rdid,
11036 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011037 .block_erasers =
11038 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011039 {
11040 .eraseblocks = { {256, 2048} },
11041 .block_erase = spi_block_erase_db,
11042 }, {
11043 .eraseblocks = { {64 * 1024, 8} },
11044 .block_erase = spi_block_erase_d8,
11045 }
11046 },
11047 .printlock = spi_prettyprint_status_register_default_welwip,
11048 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
Stefan Tauner23e10b82016-01-23 16:16:49 +000011049 .write = spi_chip_write_256, /* Page write supported (similar to PP but allows 0->1 changes) */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011050 .read = spi_chip_read, /* Fast read (0x0B) supported */
11051 .voltage = {2700, 3600},
11052 },
11053
11054 {
11055 .vendor = "Micron/Numonyx/ST",
11056 .name = "M45PE80",
11057 .bustype = BUS_SPI,
11058 .manufacture_id = ST_ID,
11059 .model_id = ST_M45PE80,
11060 .total_size = 1024,
11061 .page_size = 256,
11062 .tested = TEST_UNTESTED,
11063 .probe = probe_spi_rdid,
11064 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011065 .block_erasers =
11066 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011067 {
11068 .eraseblocks = { {256, 4096} },
11069 .block_erase = spi_block_erase_db,
11070 }, {
11071 .eraseblocks = { {64 * 1024, 16} },
11072 .block_erase = spi_block_erase_d8,
11073 }
11074 },
11075 .printlock = spi_prettyprint_status_register_default_welwip,
11076 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
11077 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
11078 .read = spi_chip_read, /* Fast read (0x0B) supported */
11079 .voltage = {2700, 3600},
11080 },
11081
11082 {
11083 .vendor = "Micron/Numonyx/ST",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011084 .name = "N25Q00A..1G", /* ..1G = 1.8V, uniform 64KB/4KB blocks/sectors */
11085 .bustype = BUS_SPI,
11086 .manufacture_id = ST_ID,
11087 .model_id = ST_N25Q00A__1G,
11088 .total_size = 131072,
11089 .page_size = 256,
11090 /* supports SFDP */
11091 /* OTP: 64B total; read 0x4B, write 0x42 */
11092 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11093 .tested = TEST_UNTESTED,
11094 .probe = probe_spi_rdid,
11095 .probe_timing = TIMING_ZERO,
11096 .block_erasers =
11097 {
11098 {
11099 .eraseblocks = { {4 * 1024, 32768} },
11100 .block_erase = spi_block_erase_21,
11101 }, {
11102 .eraseblocks = { {4 * 1024, 32768} },
11103 .block_erase = spi_block_erase_20,
11104 }, {
11105 .eraseblocks = { {64 * 1024, 2048} },
11106 .block_erase = spi_block_erase_dc,
11107 }, {
11108 .eraseblocks = { {64 * 1024, 2048} },
11109 .block_erase = spi_block_erase_d8,
11110 }, {
11111 .eraseblocks = { {32768 * 1024, 4} },
11112 .block_erase = spi_block_erase_c4,
11113 }
11114 },
11115 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11116 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11117 .write = spi_chip_write_256, /* Multi I/O supported */
11118 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11119 .voltage = {1700, 2000},
Nico Huberab6b18f2023-01-11 23:38:20 +010011120 .prepare_access = spi_prepare_4ba,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011121 },
11122
11123 {
11124 .vendor = "Micron/Numonyx/ST",
11125 .name = "N25Q00A..3G", /* ..3G = 3V, uniform 64KB/4KB blocks/sectors */
11126 .bustype = BUS_SPI,
11127 .manufacture_id = ST_ID,
11128 .model_id = ST_N25Q00A__3G,
11129 .total_size = 131072,
11130 .page_size = 256,
11131 /* supports SFDP */
11132 /* OTP: 64B total; read 0x4B, write 0x42 */
11133 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11134 .tested = TEST_UNTESTED,
11135 .probe = probe_spi_rdid,
11136 .probe_timing = TIMING_ZERO,
11137 .block_erasers =
11138 {
11139 {
11140 .eraseblocks = { {4 * 1024, 32768} },
11141 .block_erase = spi_block_erase_21,
11142 }, {
11143 .eraseblocks = { {4 * 1024, 32768} },
11144 .block_erase = spi_block_erase_20,
11145 }, {
11146 .eraseblocks = { {64 * 1024, 2048} },
11147 .block_erase = spi_block_erase_dc,
11148 }, {
11149 .eraseblocks = { {64 * 1024, 2048} },
11150 .block_erase = spi_block_erase_d8,
11151 }, {
11152 .eraseblocks = { {32768 * 1024, 4} },
11153 .block_erase = spi_block_erase_c4,
11154 }
11155 },
11156 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11157 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11158 .write = spi_chip_write_256, /* Multi I/O supported */
11159 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11160 .voltage = {2700, 3600},
Nico Huberab6b18f2023-01-11 23:38:20 +010011161 .prepare_access = spi_prepare_4ba,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011162 },
11163
11164 {
11165 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011166 .name = "N25Q016",
11167 .bustype = BUS_SPI,
11168 .manufacture_id = ST_ID,
11169 .model_id = ST_N25Q016__1E,
11170 .total_size = 2048,
11171 .page_size = 256,
11172 /* supports SFDP */
11173 /* OTP: 64B total; read 0x4B, write 0x42 */
11174 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11175 .tested = TEST_UNTESTED,
11176 .probe = probe_spi_rdid,
11177 .probe_timing = TIMING_ZERO,
11178 .block_erasers =
11179 {
11180 {
11181 .eraseblocks = { {4 * 1024, 512} },
11182 .block_erase = spi_block_erase_20,
11183 }, {
11184 .eraseblocks = { {32 * 1024, 64} },
11185 .block_erase = spi_block_erase_52,
11186 }, {
11187 .eraseblocks = { {64 * 1024, 32} },
11188 .block_erase = spi_block_erase_d8,
11189 }, {
11190 .eraseblocks = { {2 * 1024 * 1024, 1} },
11191 .block_erase = spi_block_erase_c7,
11192 }
11193 },
11194 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11195 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11196 .write = spi_chip_write_256, /* Multi I/O supported */
11197 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11198 .voltage = {1700, 2000},
11199 },
11200
11201 {
11202 .vendor = "Micron/Numonyx/ST",
11203 .name = "N25Q032..1E",
11204 .bustype = BUS_SPI,
11205 .manufacture_id = ST_ID,
11206 .model_id = ST_N25Q032__1E,
11207 .total_size = 4096,
11208 .page_size = 256,
11209 /* supports SFDP */
11210 /* OTP: 64B total; read 0x4B, write 0x42 */
11211 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11212 .tested = TEST_UNTESTED,
11213 .probe = probe_spi_rdid,
11214 .probe_timing = TIMING_ZERO,
11215 .block_erasers =
11216 {
11217 {
11218 .eraseblocks = { {4 * 1024, 1024} },
11219 .block_erase = spi_block_erase_20,
11220 }, {
11221 .eraseblocks = { {64 * 1024, 64} },
11222 .block_erase = spi_block_erase_d8,
11223 }, {
11224 .eraseblocks = { {4 * 1024 * 1024, 1} },
11225 .block_erase = spi_block_erase_c7,
11226 }
11227 },
11228 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11229 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11230 .write = spi_chip_write_256, /* Multi I/O supported */
11231 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11232 .voltage = {1700, 2000},
Sergii Dmytrukd5ba24c2022-07-25 00:28:35 +030011233 .reg_bits =
11234 {
11235 /*
11236 * There is also a volatile lock register per 64KiB sector, which is not
11237 * mutually exclusive with BP-based protection.
11238 */
11239 .srp = {STATUS1, 7, RW},
11240 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
11241 .tb = {STATUS1, 5, RW},
11242 },
11243 .decode_range = decode_range_spi25,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011244 },
11245
11246 {
11247 .vendor = "Micron/Numonyx/ST",
11248 .name = "N25Q032..3E",
11249 .bustype = BUS_SPI,
11250 .manufacture_id = ST_ID,
11251 .model_id = ST_N25Q032__3E,
11252 .total_size = 4096,
11253 .page_size = 256,
11254 /* supports SFDP */
11255 /* OTP: 64B total; read 0x4B, write 0x42 */
11256 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11257 .tested = TEST_OK_PREW,
11258 .probe = probe_spi_rdid,
11259 .probe_timing = TIMING_ZERO,
11260 .block_erasers =
11261 {
11262 {
11263 .eraseblocks = { {4 * 1024, 1024} },
11264 .block_erase = spi_block_erase_20,
11265 }, {
11266 .eraseblocks = { {64 * 1024, 64} },
11267 .block_erase = spi_block_erase_d8,
11268 }, {
11269 .eraseblocks = { {4 * 1024 * 1024, 1} },
11270 .block_erase = spi_block_erase_c7,
11271 }
11272 },
11273 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11274 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11275 .write = spi_chip_write_256, /* Multi I/O supported */
11276 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11277 .voltage = {2700, 3600},
Sergii Dmytrukd5ba24c2022-07-25 00:28:35 +030011278 .reg_bits =
11279 {
11280 /*
11281 * There is also a volatile lock register per 64KiB sector, which is not
11282 * mutually exclusive with BP-based protection.
11283 */
11284 .srp = {STATUS1, 7, RW},
11285 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
11286 .tb = {STATUS1, 5, RW},
11287 },
11288 .decode_range = decode_range_spi25,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011289 },
11290
11291 {
11292 .vendor = "Micron/Numonyx/ST",
11293 .name = "N25Q064..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
11294 .bustype = BUS_SPI,
11295 .manufacture_id = ST_ID,
11296 .model_id = ST_N25Q064__1E,
11297 .total_size = 8192,
11298 .page_size = 256,
11299 /* supports SFDP */
11300 /* OTP: 64B total; read 0x4B, write 0x42 */
11301 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000011302 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011303 .probe = probe_spi_rdid,
11304 .probe_timing = TIMING_ZERO,
11305 .block_erasers =
11306 {
11307 {
11308 .eraseblocks = { {4 * 1024, 2048 } },
11309 .block_erase = spi_block_erase_20,
11310 }, {
11311 .eraseblocks = { {64 * 1024, 128} },
11312 .block_erase = spi_block_erase_d8,
11313 }, {
11314 .eraseblocks = { {8 * 1024 * 1024, 1} },
11315 .block_erase = spi_block_erase_c7,
11316 }
11317 },
11318 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11319 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11320 .write = spi_chip_write_256, /* Multi I/O supported */
11321 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11322 .voltage = {1700, 2000},
Sergii Dmytrukd5ba24c2022-07-25 00:28:35 +030011323 .reg_bits =
11324 {
11325 /*
11326 * There is also a volatile lock register per 64KiB sector, which is not
11327 * mutually exclusive with BP-based protection.
11328 */
11329 .srp = {STATUS1, 7, RW},
11330 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 6, RW}},
11331 .tb = {STATUS1, 5, RW},
11332 },
11333 .decode_range = decode_range_spi25,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011334 },
11335
11336 {
11337 .vendor = "Micron/Numonyx/ST",
11338 .name = "N25Q064..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
11339 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100011340 .manufacture_id = ST_ID,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011341 .model_id = ST_N25Q064__3E,
11342 .total_size = 8192,
11343 .page_size = 256,
11344 /* supports SFDP */
11345 /* OTP: 64B total; read 0x4B, write 0x42 */
11346 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11347 .tested = TEST_OK_PREW,
11348 .probe = probe_spi_rdid,
11349 .probe_timing = TIMING_ZERO,
11350 .block_erasers =
11351 {
11352 {
11353 .eraseblocks = { {4 * 1024, 2048 } },
11354 .block_erase = spi_block_erase_20,
11355 }, {
11356 .eraseblocks = { {64 * 1024, 128} },
11357 .block_erase = spi_block_erase_d8,
11358 }, {
11359 .eraseblocks = { {8 * 1024 * 1024, 1} },
11360 .block_erase = spi_block_erase_c7,
11361 }
11362 },
11363 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11364 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11365 .write = spi_chip_write_256, /* Multi I/O supported */
11366 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11367 .voltage = {2700, 3600},
Sergii Dmytrukd5ba24c2022-07-25 00:28:35 +030011368 .reg_bits =
11369 {
11370 /*
11371 * There is also a volatile lock register per 64KiB sector, which is not
11372 * mutually exclusive with BP-based protection.
11373 */
11374 .srp = {STATUS1, 7, RW},
11375 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 6, RW}},
11376 .tb = {STATUS1, 5, RW},
11377 },
11378 .decode_range = decode_range_spi25,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011379 },
11380
11381 {
11382 .vendor = "Micron/Numonyx/ST",
11383 .name = "N25Q128..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
11384 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100011385 .manufacture_id = ST_ID,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011386 .model_id = ST_N25Q128__1E,
11387 .total_size = 16384,
11388 .page_size = 256,
11389 /* supports SFDP */
11390 /* OTP: 64B total; read 0x4B, write 0x42 */
11391 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011392 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011393 .probe = probe_spi_rdid,
11394 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011395 .block_erasers =
11396 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011397 {
11398 .eraseblocks = { {4 * 1024, 4096 } },
11399 .block_erase = spi_block_erase_20,
11400 }, {
11401 .eraseblocks = { {64 * 1024, 256} },
11402 .block_erase = spi_block_erase_d8,
11403 }, {
11404 .eraseblocks = { {16384 * 1024, 1} },
11405 .block_erase = spi_block_erase_c7,
11406 }
11407 },
11408 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11409 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11410 .write = spi_chip_write_256, /* Multi I/O supported */
11411 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11412 .voltage = {1700, 2000},
11413 },
11414
11415 {
11416 .vendor = "Micron/Numonyx/ST",
11417 .name = "N25Q128..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
11418 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100011419 .manufacture_id = ST_ID,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011420 .model_id = ST_N25Q128__3E,
11421 .total_size = 16384,
11422 .page_size = 256,
11423 /* supports SFDP */
11424 /* OTP: 64B total; read 0x4B, write 0x42 */
11425 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11426 .tested = TEST_OK_PREW,
11427 .probe = probe_spi_rdid,
11428 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011429 .block_erasers =
11430 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011431 {
11432 .eraseblocks = { {4 * 1024, 4096 } },
11433 .block_erase = spi_block_erase_20,
11434 }, {
11435 .eraseblocks = { {64 * 1024, 256} },
11436 .block_erase = spi_block_erase_d8,
11437 }, {
11438 .eraseblocks = { {16384 * 1024, 1} },
11439 .block_erase = spi_block_erase_c7,
11440 }
11441 },
11442 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11443 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11444 .write = spi_chip_write_256, /* Multi I/O supported */
11445 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11446 .voltage = {2700, 3600},
11447 },
11448
11449 {
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011450 .vendor = "Micron/Numonyx/ST",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011451 .name = "N25Q256..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
11452 .bustype = BUS_SPI,
11453 .manufacture_id = ST_ID,
11454 .model_id = ST_N25Q256__1E,
11455 .total_size = 32768,
11456 .page_size = 256,
11457 /* supports SFDP */
11458 /* OTP: 64B total; read 0x4B, write 0x42 */
11459 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11460 .tested = TEST_UNTESTED,
11461 .probe = probe_spi_rdid,
11462 .probe_timing = TIMING_ZERO,
11463 .block_erasers =
11464 {
11465 {
11466 .eraseblocks = { {4 * 1024, 8192} },
11467 .block_erase = spi_block_erase_21,
11468 }, {
11469 .eraseblocks = { {4 * 1024, 8192} },
11470 .block_erase = spi_block_erase_20,
11471 }, {
11472 .eraseblocks = { {64 * 1024, 512} },
11473 .block_erase = spi_block_erase_dc,
11474 }, {
11475 .eraseblocks = { {64 * 1024, 512} },
11476 .block_erase = spi_block_erase_d8,
11477 }, {
11478 .eraseblocks = { {32768 * 1024, 1} },
11479 .block_erase = spi_block_erase_c7,
11480 }
11481 },
11482 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11483 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11484 .write = spi_chip_write_256, /* Multi I/O supported */
11485 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11486 .voltage = {1700, 2000},
Nico Huberab6b18f2023-01-11 23:38:20 +010011487 .prepare_access = spi_prepare_4ba,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011488 },
11489
11490 {
11491 .vendor = "Micron/Numonyx/ST",
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011492 .name = "N25Q256..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
11493 .bustype = BUS_SPI,
11494 .manufacture_id = ST_ID,
11495 .model_id = ST_N25Q256__3E,
11496 .total_size = 32768,
11497 .page_size = 256,
11498 /* supports SFDP */
11499 /* OTP: 64B total; read 0x4B, write 0x42 */
11500 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11501 .tested = TEST_UNTESTED,
11502 .probe = probe_spi_rdid,
11503 .probe_timing = TIMING_ZERO,
11504 .block_erasers =
11505 {
11506 {
11507 .eraseblocks = { {4 * 1024, 8192} },
11508 .block_erase = spi_block_erase_21,
11509 }, {
11510 .eraseblocks = { {4 * 1024, 8192} },
11511 .block_erase = spi_block_erase_20,
11512 }, {
11513 .eraseblocks = { {64 * 1024, 512} },
11514 .block_erase = spi_block_erase_dc,
11515 }, {
11516 .eraseblocks = { {64 * 1024, 512} },
11517 .block_erase = spi_block_erase_d8,
11518 }, {
11519 .eraseblocks = { {32768 * 1024, 1} },
11520 .block_erase = spi_block_erase_c7,
11521 }
11522 },
11523 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11524 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11525 .write = spi_chip_write_256, /* Multi I/O supported */
11526 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11527 .voltage = {2700, 3600},
Nico Huberab6b18f2023-01-11 23:38:20 +010011528 .prepare_access = spi_prepare_4ba,
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011529 },
11530
11531 {
11532 .vendor = "Micron/Numonyx/ST",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011533 .name = "N25Q512..1G", /* ..1G = 1.8V, uniform 64KB/4KB blocks/sectors */
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011534 .bustype = BUS_SPI,
11535 .manufacture_id = ST_ID,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011536 .model_id = ST_N25Q512__1G,
11537 .total_size = 65536,
11538 .page_size = 256,
11539 /* supports SFDP */
11540 /* OTP: 64B total; read 0x4B, write 0x42 */
11541 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11542 .tested = TEST_UNTESTED,
11543 .probe = probe_spi_rdid,
11544 .probe_timing = TIMING_ZERO,
11545 .block_erasers =
11546 {
11547 {
11548 .eraseblocks = { {4 * 1024, 16384} },
11549 .block_erase = spi_block_erase_21,
11550 }, {
11551 .eraseblocks = { {4 * 1024, 16384} },
11552 .block_erase = spi_block_erase_20,
11553 }, {
11554 .eraseblocks = { {64 * 1024, 1024} },
11555 .block_erase = spi_block_erase_dc,
11556 }, {
11557 .eraseblocks = { {64 * 1024, 1024} },
11558 .block_erase = spi_block_erase_d8,
11559 }, {
11560 .eraseblocks = { {32768 * 1024, 2} },
11561 .block_erase = spi_block_erase_c4,
11562 }
11563 },
11564 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11565 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11566 .write = spi_chip_write_256, /* Multi I/O supported */
11567 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11568 .voltage = {1700, 2000},
Nico Huberab6b18f2023-01-11 23:38:20 +010011569 .prepare_access = spi_prepare_4ba,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011570 },
11571
11572 {
11573 .vendor = "Micron/Numonyx/ST",
11574 .name = "N25Q512..3G", /* ..3G = 3V, uniform 64KB/4KB blocks/sectors */
11575 .bustype = BUS_SPI,
11576 .manufacture_id = ST_ID,
11577 .model_id = ST_N25Q512__3G,
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011578 .total_size = 65536,
11579 .page_size = 256,
11580 /* supports SFDP */
11581 /* OTP: 64B total; read 0x4B, write 0x42 */
11582 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11583 .tested = TEST_OK_PREW,
11584 .probe = probe_spi_rdid,
11585 .probe_timing = TIMING_ZERO,
11586 .block_erasers =
11587 {
11588 {
11589 .eraseblocks = { {4 * 1024, 16384} },
11590 .block_erase = spi_block_erase_21,
11591 }, {
11592 .eraseblocks = { {4 * 1024, 16384} },
11593 .block_erase = spi_block_erase_20,
11594 }, {
11595 .eraseblocks = { {64 * 1024, 1024} },
11596 .block_erase = spi_block_erase_dc,
11597 }, {
11598 .eraseblocks = { {64 * 1024, 1024} },
11599 .block_erase = spi_block_erase_d8,
11600 }, {
Jacob Creedone8e7b0e2019-07-22 12:21:22 -070011601 .eraseblocks = { {32768 * 1024, 2} },
11602 .block_erase = spi_block_erase_c4,
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011603 }
11604 },
11605 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11606 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11607 .write = spi_chip_write_256, /* Multi I/O supported */
11608 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11609 .voltage = {2700, 3600},
Nico Huberab6b18f2023-01-11 23:38:20 +010011610 .prepare_access = spi_prepare_4ba,
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011611 },
11612
11613 {
Ed Swierk199ab392017-07-03 13:33:44 -070011614 .vendor = "Micron",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011615 .name = "MT25QL01G", /* L = 3V, uniform 64KB/4KB blocks/sectors */
11616 .bustype = BUS_SPI,
11617 .manufacture_id = ST_ID,
11618 .model_id = ST_N25Q00A__3G,
11619 .total_size = 131072,
11620 .page_size = 256,
11621 /* supports SFDP */
11622 /* OTP: 64B total; read 0x4B, write 0x42 */
11623 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11624 .tested = TEST_OK_PREW,
11625 .probe = probe_spi_rdid,
11626 .probe_timing = TIMING_ZERO,
11627 .block_erasers =
11628 {
11629 {
11630 .eraseblocks = { {4 * 1024, 32768} },
11631 .block_erase = spi_block_erase_21,
11632 }, {
11633 .eraseblocks = { {4 * 1024, 32768} },
11634 .block_erase = spi_block_erase_20,
11635 }, {
11636 .eraseblocks = { {32 * 1024, 4096} },
11637 .block_erase = spi_block_erase_5c,
11638 }, {
11639 .eraseblocks = { {32 * 1024, 4096} },
11640 .block_erase = spi_block_erase_52,
11641 }, {
11642 .eraseblocks = { {64 * 1024, 2048} },
11643 .block_erase = spi_block_erase_dc,
11644 }, {
11645 .eraseblocks = { {64 * 1024, 2048} },
11646 .block_erase = spi_block_erase_d8,
11647 }, {
11648 .eraseblocks = { {65536 * 1024, 2} },
11649 .block_erase = spi_block_erase_c4,
11650 }
11651 },
11652 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11653 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11654 .write = spi_chip_write_256, /* Multi I/O supported */
11655 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11656 .voltage = {2700, 3600},
Nico Huberab6b18f2023-01-11 23:38:20 +010011657 .prepare_access = spi_prepare_4ba,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011658 },
11659
11660 {
11661 .vendor = "Micron",
11662 .name = "MT25QU01G", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
11663 .bustype = BUS_SPI,
11664 .manufacture_id = ST_ID,
11665 .model_id = ST_N25Q00A__1G,
11666 .total_size = 131072,
11667 .page_size = 256,
11668 /* supports SFDP */
11669 /* OTP: 64B total; read 0x4B, write 0x42 */
11670 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11671 .tested = TEST_UNTESTED,
11672 .probe = probe_spi_rdid,
11673 .probe_timing = TIMING_ZERO,
11674 .block_erasers =
11675 {
11676 {
11677 .eraseblocks = { {4 * 1024, 32768} },
11678 .block_erase = spi_block_erase_21,
11679 }, {
11680 .eraseblocks = { {4 * 1024, 32768} },
11681 .block_erase = spi_block_erase_20,
11682 }, {
11683 .eraseblocks = { {32 * 1024, 4096} },
11684 .block_erase = spi_block_erase_5c,
11685 }, {
11686 .eraseblocks = { {32 * 1024, 4096} },
11687 .block_erase = spi_block_erase_52,
11688 }, {
11689 .eraseblocks = { {64 * 1024, 2048} },
11690 .block_erase = spi_block_erase_dc,
11691 }, {
11692 .eraseblocks = { {64 * 1024, 2048} },
11693 .block_erase = spi_block_erase_d8,
11694 }, {
11695 .eraseblocks = { {65536 * 1024, 2} },
11696 .block_erase = spi_block_erase_c4,
11697 }
11698 },
11699 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11700 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11701 .write = spi_chip_write_256, /* Multi I/O supported */
11702 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11703 .voltage = {1700, 2000},
Nico Huberab6b18f2023-01-11 23:38:20 +010011704 .prepare_access = spi_prepare_4ba,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011705 },
11706
11707 {
11708 .vendor = "Micron",
11709 .name = "MT25QL02G", /* L = 3V, uniform 64KB/4KB blocks/sectors */
11710 .bustype = BUS_SPI,
11711 .manufacture_id = ST_ID,
11712 .model_id = ST_MT25QL02G,
11713 .total_size = 262144,
11714 .page_size = 256,
11715 /* supports SFDP */
11716 /* OTP: 64B total; read 0x4B, write 0x42 */
11717 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11718 .tested = TEST_UNTESTED,
11719 .probe = probe_spi_rdid,
11720 .probe_timing = TIMING_ZERO,
11721 .block_erasers =
11722 {
11723 {
11724 .eraseblocks = { {4 * 1024, 65536} },
11725 .block_erase = spi_block_erase_21,
11726 }, {
11727 .eraseblocks = { {4 * 1024, 65536} },
11728 .block_erase = spi_block_erase_20,
11729 }, {
11730 .eraseblocks = { {32 * 1024, 8192} },
11731 .block_erase = spi_block_erase_5c,
11732 }, {
11733 .eraseblocks = { {32 * 1024, 8192} },
11734 .block_erase = spi_block_erase_52,
11735 }, {
11736 .eraseblocks = { {64 * 1024, 4096} },
11737 .block_erase = spi_block_erase_dc,
11738 }, {
11739 .eraseblocks = { {64 * 1024, 4096} },
11740 .block_erase = spi_block_erase_d8,
11741 }, {
11742 .eraseblocks = { {65536 * 1024, 4} },
11743 .block_erase = spi_block_erase_c4,
11744 }
11745 },
11746 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11747 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11748 .write = spi_chip_write_256, /* Multi I/O supported */
11749 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11750 .voltage = {2700, 3600},
Nico Huberab6b18f2023-01-11 23:38:20 +010011751 .prepare_access = spi_prepare_4ba,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011752 },
11753
11754 {
11755 .vendor = "Micron",
11756 .name = "MT25QU02G", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
11757 .bustype = BUS_SPI,
11758 .manufacture_id = ST_ID,
11759 .model_id = ST_MT25QU02G,
11760 .total_size = 262144,
11761 .page_size = 256,
11762 /* supports SFDP */
11763 /* OTP: 64B total; read 0x4B, write 0x42 */
11764 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11765 .tested = TEST_UNTESTED,
11766 .probe = probe_spi_rdid,
11767 .probe_timing = TIMING_ZERO,
11768 .block_erasers =
11769 {
11770 {
11771 .eraseblocks = { {4 * 1024, 65536} },
11772 .block_erase = spi_block_erase_21,
11773 }, {
11774 .eraseblocks = { {4 * 1024, 65536} },
11775 .block_erase = spi_block_erase_20,
11776 }, {
11777 .eraseblocks = { {32 * 1024, 8192} },
11778 .block_erase = spi_block_erase_5c,
11779 }, {
11780 .eraseblocks = { {32 * 1024, 8192} },
11781 .block_erase = spi_block_erase_52,
11782 }, {
11783 .eraseblocks = { {64 * 1024, 4096} },
11784 .block_erase = spi_block_erase_dc,
11785 }, {
11786 .eraseblocks = { {64 * 1024, 4096} },
11787 .block_erase = spi_block_erase_d8,
11788 }, {
11789 .eraseblocks = { {65536 * 1024, 4} },
11790 .block_erase = spi_block_erase_c4,
11791 }
11792 },
11793 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11794 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11795 .write = spi_chip_write_256, /* Multi I/O supported */
11796 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11797 .voltage = {1700, 2000},
Nico Huberab6b18f2023-01-11 23:38:20 +010011798 .prepare_access = spi_prepare_4ba,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011799 },
11800
11801 {
11802 .vendor = "Micron",
11803 .name = "MT25QU128", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
11804 .bustype = BUS_SPI,
11805 .manufacture_id = ST_ID,
11806 .model_id = ST_N25Q128__1E,
11807 .total_size = 16384,
11808 .page_size = 256,
11809 /* supports SFDP */
11810 /* OTP: 64B total; read 0x4B, write 0x42 */
Nico Huber48dc0902023-03-05 17:20:55 +010011811 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011812 .tested = TEST_UNTESTED,
11813 .probe = probe_spi_rdid,
11814 .probe_timing = TIMING_ZERO,
11815 .block_erasers =
11816 {
11817 {
11818 .eraseblocks = { {4 * 1024, 4096} },
11819 .block_erase = spi_block_erase_20,
11820 }, {
11821 .eraseblocks = { {32 * 1024, 512} },
11822 .block_erase = spi_block_erase_52,
11823 }, {
11824 .eraseblocks = { {64 * 1024, 256} },
11825 .block_erase = spi_block_erase_d8,
11826 }, {
11827 .eraseblocks = { {16384 * 1024, 1} },
11828 .block_erase = spi_block_erase_c7,
11829 }, {
11830 .eraseblocks = { {16384 * 1024, 1} },
11831 .block_erase = spi_block_erase_60,
11832 }
11833 },
11834 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11835 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11836 .write = spi_chip_write_256, /* Multi I/O supported */
11837 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11838 .voltage = {1700, 2000},
11839 },
11840
11841 {
11842 .vendor = "Micron",
11843 .name = "MT25QL128", /* L = 3V, uniform 64KB/4KB blocks/sectors */
11844 .bustype = BUS_SPI,
11845 .manufacture_id = ST_ID,
11846 .model_id = ST_N25Q128__3E,
11847 .total_size = 16384,
11848 .page_size = 256,
11849 /* supports SFDP */
11850 /* OTP: 64B total; read 0x4B, write 0x42 */
Rick Altherr1e563602022-12-22 10:25:34 -080011851 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11852 .tested = TEST_OK_PREW,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011853 .probe = probe_spi_rdid,
11854 .probe_timing = TIMING_ZERO,
11855 .block_erasers =
11856 {
11857 {
11858 .eraseblocks = { {4 * 1024, 4096} },
11859 .block_erase = spi_block_erase_20,
11860 }, {
11861 .eraseblocks = { {32 * 1024, 512} },
11862 .block_erase = spi_block_erase_52,
11863 }, {
11864 .eraseblocks = { {64 * 1024, 256} },
11865 .block_erase = spi_block_erase_d8,
11866 }, {
11867 .eraseblocks = { {16384 * 1024, 1} },
11868 .block_erase = spi_block_erase_c7,
11869 }, {
11870 .eraseblocks = { {16384 * 1024, 1} },
11871 .block_erase = spi_block_erase_60,
11872 }
11873 },
11874 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11875 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11876 .write = spi_chip_write_256, /* Multi I/O supported */
11877 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11878 .voltage = {2700, 3600},
11879 },
11880
11881 {
11882 .vendor = "Micron",
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011883 .name = "MT25QL256", /* L = 3V, uniform 64KB/4KB blocks/sectors */
Ed Swierk199ab392017-07-03 13:33:44 -070011884 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100011885 .manufacture_id = ST_ID,
Ed Swierk199ab392017-07-03 13:33:44 -070011886 .model_id = ST_N25Q256__3E,
11887 .total_size = 32768,
11888 .page_size = 256,
11889 /* supports SFDP */
11890 /* OTP: 64B total; read 0x4B, write 0x42 */
Nico Huberaac81422017-11-10 22:54:13 +010011891 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
Simon Buhrowb7014f92021-02-15 13:16:57 +010011892 .tested = TEST_OK_PREW,
Ed Swierk199ab392017-07-03 13:33:44 -070011893 .probe = probe_spi_rdid,
11894 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011895 .block_erasers =
11896 {
Ed Swierk199ab392017-07-03 13:33:44 -070011897 {
11898 .eraseblocks = { {4 * 1024, 8192} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020011899 .block_erase = spi_block_erase_21,
Ed Swierk199ab392017-07-03 13:33:44 -070011900 }, {
Nico Huberaac81422017-11-10 22:54:13 +010011901 .eraseblocks = { {4 * 1024, 8192} },
11902 .block_erase = spi_block_erase_20,
11903 }, {
Jacob Creedon045b97e2019-07-22 12:26:56 -070011904 .eraseblocks = { {32 * 1024, 1024} },
11905 .block_erase = spi_block_erase_5c,
11906 }, {
11907 .eraseblocks = { {32 * 1024, 1024} },
11908 .block_erase = spi_block_erase_52,
11909 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070011910 .eraseblocks = { {64 * 1024, 512} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020011911 .block_erase = spi_block_erase_dc,
Ed Swierk199ab392017-07-03 13:33:44 -070011912 }, {
Nico Huberaac81422017-11-10 22:54:13 +010011913 .eraseblocks = { {64 * 1024, 512} },
11914 .block_erase = spi_block_erase_d8,
11915 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070011916 .eraseblocks = { {32768 * 1024, 1} },
11917 .block_erase = spi_block_erase_c7,
Jacob Creedon045b97e2019-07-22 12:26:56 -070011918 }, {
11919 .eraseblocks = { {32768 * 1024, 1} },
11920 .block_erase = spi_block_erase_60,
Ed Swierk199ab392017-07-03 13:33:44 -070011921 }
11922 },
11923 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11924 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11925 .write = spi_chip_write_256, /* Multi I/O supported */
11926 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11927 .voltage = {2700, 3600},
Nico Huberab6b18f2023-01-11 23:38:20 +010011928 .prepare_access = spi_prepare_4ba,
Ed Swierk199ab392017-07-03 13:33:44 -070011929 },
11930
11931 {
11932 .vendor = "Micron",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011933 .name = "MT25QU256", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
11934 .bustype = BUS_SPI,
11935 .manufacture_id = ST_ID,
11936 .model_id = ST_N25Q256__1E,
11937 .total_size = 32768,
11938 .page_size = 256,
11939 /* supports SFDP */
11940 /* OTP: 64B total; read 0x4B, write 0x42 */
11941 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
Angel Pons59052582022-03-08 15:23:58 +010011942 .tested = TEST_OK_PREW,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011943 .probe = probe_spi_rdid,
11944 .probe_timing = TIMING_ZERO,
11945 .block_erasers =
11946 {
11947 {
11948 .eraseblocks = { {4 * 1024, 8192} },
11949 .block_erase = spi_block_erase_21,
11950 }, {
11951 .eraseblocks = { {4 * 1024, 8192} },
11952 .block_erase = spi_block_erase_20,
11953 }, {
11954 .eraseblocks = { {32 * 1024, 1024} },
11955 .block_erase = spi_block_erase_5c,
11956 }, {
11957 .eraseblocks = { {32 * 1024, 1024} },
11958 .block_erase = spi_block_erase_52,
11959 }, {
11960 .eraseblocks = { {64 * 1024, 512} },
11961 .block_erase = spi_block_erase_dc,
11962 }, {
11963 .eraseblocks = { {64 * 1024, 512} },
11964 .block_erase = spi_block_erase_d8,
11965 }, {
11966 .eraseblocks = { {32768 * 1024, 1} },
11967 .block_erase = spi_block_erase_c7,
11968 }, {
11969 .eraseblocks = { {32768 * 1024, 1} },
11970 .block_erase = spi_block_erase_60,
11971 }
11972 },
11973 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11974 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11975 .write = spi_chip_write_256, /* Multi I/O supported */
11976 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11977 .voltage = {1700, 2000},
Nico Huberab6b18f2023-01-11 23:38:20 +010011978 .prepare_access = spi_prepare_4ba,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011979 },
11980
11981 {
11982 .vendor = "Micron",
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011983 .name = "MT25QL512", /* L = 3V, uniform 64KB/4KB blocks/sectors */
Ed Swierk199ab392017-07-03 13:33:44 -070011984 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100011985 .manufacture_id = ST_ID,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011986 .model_id = ST_N25Q512__3G,
Ed Swierk199ab392017-07-03 13:33:44 -070011987 .total_size = 65536,
11988 .page_size = 256,
11989 /* supports SFDP */
11990 /* OTP: 64B total; read 0x4B, write 0x42 */
Nico Huberaac81422017-11-10 22:54:13 +010011991 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
Angel Pons3ed5a352018-09-30 16:31:09 +020011992 .tested = TEST_OK_PREW,
Ed Swierk199ab392017-07-03 13:33:44 -070011993 .probe = probe_spi_rdid,
11994 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011995 .block_erasers =
11996 {
Ed Swierk199ab392017-07-03 13:33:44 -070011997 {
11998 .eraseblocks = { {4 * 1024, 16384} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020011999 .block_erase = spi_block_erase_21,
Ed Swierk199ab392017-07-03 13:33:44 -070012000 }, {
Nico Huberaac81422017-11-10 22:54:13 +010012001 .eraseblocks = { {4 * 1024, 16384} },
12002 .block_erase = spi_block_erase_20,
12003 }, {
Jacob Creedon045b97e2019-07-22 12:26:56 -070012004 .eraseblocks = { {32 * 1024, 2048} },
12005 .block_erase = spi_block_erase_5c,
12006 }, {
12007 .eraseblocks = { {32 * 1024, 2048} },
12008 .block_erase = spi_block_erase_52,
12009 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070012010 .eraseblocks = { {64 * 1024, 1024} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020012011 .block_erase = spi_block_erase_dc,
Ed Swierk199ab392017-07-03 13:33:44 -070012012 }, {
Nico Huberaac81422017-11-10 22:54:13 +010012013 .eraseblocks = { {64 * 1024, 1024} },
12014 .block_erase = spi_block_erase_d8,
12015 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070012016 .eraseblocks = { {65536 * 1024, 1} },
12017 .block_erase = spi_block_erase_c7,
Jacob Creedon045b97e2019-07-22 12:26:56 -070012018 }, {
12019 .eraseblocks = { {65536 * 1024, 1} },
12020 .block_erase = spi_block_erase_60,
Ed Swierk199ab392017-07-03 13:33:44 -070012021 }
12022 },
12023 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
12024 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
12025 .write = spi_chip_write_256, /* Multi I/O supported */
12026 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12027 .voltage = {2700, 3600},
Sergii Dmytrukd5ba24c2022-07-25 00:28:35 +030012028 .reg_bits =
12029 {
12030 .srp = {STATUS1, 7, RW},
12031 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 6, RW}},
12032 .tb = {STATUS1, 5, RW},
12033 },
12034 .decode_range = decode_range_spi25,
Nico Huberab6b18f2023-01-11 23:38:20 +010012035 .prepare_access = spi_prepare_4ba,
Ed Swierk199ab392017-07-03 13:33:44 -070012036 },
12037
12038 {
Jacob Creedon80e8dc42019-07-22 12:35:30 -070012039 .vendor = "Micron",
12040 .name = "MT25QU512", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
12041 .bustype = BUS_SPI,
12042 .manufacture_id = ST_ID,
12043 .model_id = ST_N25Q512__1G,
12044 .total_size = 65536,
12045 .page_size = 256,
12046 /* supports SFDP */
12047 /* OTP: 64B total; read 0x4B, write 0x42 */
12048 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
12049 .tested = TEST_OK_PREW,
12050 .probe = probe_spi_rdid,
12051 .probe_timing = TIMING_ZERO,
12052 .block_erasers =
12053 {
12054 {
12055 .eraseblocks = { {4 * 1024, 16384} },
12056 .block_erase = spi_block_erase_21,
12057 }, {
12058 .eraseblocks = { {4 * 1024, 16384} },
12059 .block_erase = spi_block_erase_20,
12060 }, {
12061 .eraseblocks = { {32 * 1024, 2048} },
12062 .block_erase = spi_block_erase_5c,
12063 }, {
12064 .eraseblocks = { {32 * 1024, 2048} },
12065 .block_erase = spi_block_erase_52,
12066 }, {
12067 .eraseblocks = { {64 * 1024, 1024} },
12068 .block_erase = spi_block_erase_dc,
12069 }, {
12070 .eraseblocks = { {64 * 1024, 1024} },
12071 .block_erase = spi_block_erase_d8,
12072 }, {
12073 .eraseblocks = { {65536 * 1024, 1} },
12074 .block_erase = spi_block_erase_c7,
12075 }, {
12076 .eraseblocks = { {65536 * 1024, 1} },
12077 .block_erase = spi_block_erase_60,
12078 }
12079 },
12080 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
12081 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
12082 .write = spi_chip_write_256, /* Multi I/O supported */
12083 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12084 .voltage = {1700, 2000},
Nico Huberab6b18f2023-01-11 23:38:20 +010012085 .prepare_access = spi_prepare_4ba,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070012086 },
12087
12088 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000012089 .vendor = "MoselVitelic",
12090 .name = "V29C51000B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012091 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012092 .manufacture_id = SYNCMOS_MVC_ID,
12093 .model_id = MVC_V29C51000B,
12094 .total_size = 64,
12095 .page_size = 512,
12096 .feature_bits = FEATURE_EITHER_RESET,
12097 .tested = TEST_UNTESTED,
12098 .probe = probe_jedec,
12099 .probe_timing = TIMING_ZERO,
12100 .block_erasers =
12101 {
12102 {
12103 .eraseblocks = { {512, 128} },
12104 .block_erase = erase_sector_jedec,
12105 }, {
12106 .eraseblocks = { {64 * 1024, 1} },
12107 .block_erase = erase_chip_block_jedec,
12108 },
12109 },
12110 .write = write_jedec_1,
12111 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012112 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000012113 },
12114
12115 {
12116 .vendor = "MoselVitelic",
12117 .name = "V29C51000T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012118 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012119 .manufacture_id = SYNCMOS_MVC_ID,
12120 .model_id = MVC_V29C51000T,
12121 .total_size = 64,
12122 .page_size = 512,
12123 .feature_bits = FEATURE_EITHER_RESET,
12124 .tested = TEST_UNTESTED,
12125 .probe = probe_jedec,
12126 .probe_timing = TIMING_ZERO,
12127 .block_erasers =
12128 {
12129 {
12130 .eraseblocks = { {512, 128} },
12131 .block_erase = erase_sector_jedec,
12132 }, {
12133 .eraseblocks = { {64 * 1024, 1} },
12134 .block_erase = erase_chip_block_jedec,
12135 },
12136 },
12137 .write = write_jedec_1,
12138 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012139 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000012140 },
12141
12142 {
12143 .vendor = "MoselVitelic",
12144 .name = "V29C51400B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012145 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012146 .manufacture_id = SYNCMOS_MVC_ID,
12147 .model_id = MVC_V29C51400B,
12148 .total_size = 512,
12149 .page_size = 1024,
12150 .feature_bits = FEATURE_EITHER_RESET,
12151 .tested = TEST_UNTESTED,
12152 .probe = probe_jedec,
12153 .probe_timing = TIMING_ZERO,
12154 .block_erasers =
12155 {
12156 {
12157 .eraseblocks = { {1024, 512} },
12158 .block_erase = erase_sector_jedec,
12159 }, {
12160 .eraseblocks = { {512 * 1024, 1} },
12161 .block_erase = erase_chip_block_jedec,
12162 },
12163 },
12164 .write = write_jedec_1,
12165 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012166 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000012167 },
12168
12169 {
12170 .vendor = "MoselVitelic",
12171 .name = "V29C51400T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012172 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012173 .manufacture_id = SYNCMOS_MVC_ID,
12174 .model_id = MVC_V29C51400T,
12175 .total_size = 512,
12176 .page_size = 1024,
12177 .feature_bits = FEATURE_EITHER_RESET,
12178 .tested = TEST_UNTESTED,
12179 .probe = probe_jedec,
12180 .probe_timing = TIMING_ZERO,
12181 .block_erasers =
12182 {
12183 {
12184 .eraseblocks = { {1024, 512} },
12185 .block_erase = erase_sector_jedec,
12186 }, {
12187 .eraseblocks = { {512 * 1024, 1} },
12188 .block_erase = erase_chip_block_jedec,
12189 },
12190 },
12191 .write = write_jedec_1,
12192 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012193 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000012194 },
12195
12196 {
12197 .vendor = "MoselVitelic",
12198 .name = "V29LC51000",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012199 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012200 .manufacture_id = SYNCMOS_MVC_ID,
12201 .model_id = MVC_V29LC51000,
12202 .total_size = 64,
12203 .page_size = 512,
12204 .feature_bits = FEATURE_EITHER_RESET,
12205 .tested = TEST_UNTESTED,
12206 .probe = probe_jedec,
12207 .probe_timing = TIMING_ZERO,
12208 .block_erasers =
12209 {
12210 {
12211 .eraseblocks = { {512, 128} },
12212 .block_erase = erase_sector_jedec,
12213 }, {
12214 .eraseblocks = { {64 * 1024, 1} },
12215 .block_erase = erase_chip_block_jedec,
12216 },
12217 },
12218 .write = write_jedec_1,
12219 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012220 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000012221 },
12222
12223 {
12224 .vendor = "MoselVitelic",
12225 .name = "V29LC51001",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012226 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012227 .manufacture_id = SYNCMOS_MVC_ID,
12228 .model_id = MVC_V29LC51001,
12229 .total_size = 128,
12230 .page_size = 512,
12231 .feature_bits = FEATURE_EITHER_RESET,
12232 .tested = TEST_UNTESTED,
12233 .probe = probe_jedec,
12234 .probe_timing = TIMING_ZERO,
12235 .block_erasers =
12236 {
12237 {
12238 .eraseblocks = { {512, 256} },
12239 .block_erase = erase_sector_jedec,
12240 }, {
12241 .eraseblocks = { {128 * 1024, 1} },
12242 .block_erase = erase_chip_block_jedec,
12243 },
12244 },
12245 .write = write_jedec_1,
12246 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012247 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000012248 },
12249
12250 {
12251 .vendor = "MoselVitelic",
12252 .name = "V29LC51002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012253 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012254 .manufacture_id = SYNCMOS_MVC_ID,
12255 .model_id = MVC_V29LC51002,
12256 .total_size = 256,
12257 .page_size = 512,
12258 .feature_bits = FEATURE_EITHER_RESET,
12259 .tested = TEST_UNTESTED,
12260 .probe = probe_jedec,
12261 .probe_timing = TIMING_ZERO,
12262 .block_erasers =
12263 {
12264 {
12265 .eraseblocks = { {512, 512} },
12266 .block_erase = erase_sector_jedec,
12267 }, {
12268 .eraseblocks = { {256 * 1024, 1} },
12269 .block_erase = erase_chip_block_jedec,
12270 },
12271 },
12272 .write = write_jedec_1,
12273 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012274 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000012275 },
12276
12277 {
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012278 .vendor = "Nantronics",
12279 .name = "N25S10",
12280 .bustype = BUS_SPI,
12281 .manufacture_id = NANTRONICS_ID_NOPREFIX,
12282 .model_id = NANTRONICS_N25S10,
12283 .total_size = 128,
12284 .page_size = 256,
12285 .feature_bits = FEATURE_WRSR_WREN,
12286 .tested = TEST_UNTESTED,
12287 .probe = probe_spi_rdid,
12288 .probe_timing = TIMING_ZERO,
12289 .block_erasers =
12290 {
12291 {
12292 .eraseblocks = { {4 * 1024, 32} },
12293 .block_erase = spi_block_erase_20,
12294 }, {
12295 .eraseblocks = { {4 * 1024, 32} },
12296 .block_erase = spi_block_erase_d7,
12297 }, {
12298 .eraseblocks = { {32 * 1024, 4} },
12299 .block_erase = spi_block_erase_52,
12300 }, {
12301 .eraseblocks = { {64 * 1024, 2} },
12302 .block_erase = spi_block_erase_d8,
12303 }, {
12304 .eraseblocks = { {128 * 1024, 1} },
12305 .block_erase = spi_block_erase_60,
12306 }, {
12307 .eraseblocks = { {128 * 1024, 1} },
12308 .block_erase = spi_block_erase_c7,
12309 }
12310 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012311 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012312 .unlock = spi_disable_blockprotect_bp3_srwd,
12313 .write = spi_chip_write_256,
12314 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
12315 .voltage = {2700, 3600},
12316 },
12317
12318 {
12319 .vendor = "Nantronics",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012320 .name = "N25S16",
12321 .bustype = BUS_SPI,
12322 .manufacture_id = NANTRONICS_ID_NOPREFIX,
12323 .model_id = NANTRONICS_N25S16,
12324 .total_size = 2048,
12325 .page_size = 256,
12326 .feature_bits = FEATURE_WRSR_WREN,
12327 .tested = TEST_UNTESTED,
12328 .probe = probe_spi_rdid,
12329 .probe_timing = TIMING_ZERO,
12330 .block_erasers =
12331 {
12332 {
12333 .eraseblocks = { {4 * 1024, 512} },
12334 .block_erase = spi_block_erase_20,
12335 }, {
12336 .eraseblocks = { {64 * 1024, 32} },
12337 .block_erase = spi_block_erase_d8,
12338 }, {
12339 .eraseblocks = { {2048 * 1024, 1} },
12340 .block_erase = spi_block_erase_60,
12341 }, {
12342 .eraseblocks = { {2048 * 1024, 1} },
12343 .block_erase = spi_block_erase_c7,
12344 }
12345 },
12346 .printlock = spi_prettyprint_status_register_bp3_srwd,
12347 .unlock = spi_disable_blockprotect_bp3_srwd,
12348 .write = spi_chip_write_256,
12349 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
12350 .voltage = {2700, 3600},
12351 },
12352
12353 {
12354 .vendor = "Nantronics",
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012355 .name = "N25S20",
12356 .bustype = BUS_SPI,
12357 .manufacture_id = NANTRONICS_ID_NOPREFIX,
12358 .model_id = NANTRONICS_N25S20,
12359 .total_size = 256,
12360 .page_size = 256,
12361 .feature_bits = FEATURE_WRSR_WREN,
12362 .tested = TEST_UNTESTED,
12363 .probe = probe_spi_rdid,
12364 .probe_timing = TIMING_ZERO,
12365 .block_erasers =
12366 {
12367 {
12368 .eraseblocks = { {4 * 1024, 64} },
12369 .block_erase = spi_block_erase_20,
12370 }, {
12371 .eraseblocks = { {4 * 1024, 64} },
12372 .block_erase = spi_block_erase_d7,
12373 }, {
12374 .eraseblocks = { {32 * 1024, 8} },
12375 .block_erase = spi_block_erase_52,
12376 }, {
12377 .eraseblocks = { {64 * 1024, 4} },
12378 .block_erase = spi_block_erase_d8,
12379 }, {
12380 .eraseblocks = { {256 * 1024, 1} },
12381 .block_erase = spi_block_erase_60,
12382 }, {
12383 .eraseblocks = { {256 * 1024, 1} },
12384 .block_erase = spi_block_erase_c7,
12385 }
12386 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012387 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012388 .unlock = spi_disable_blockprotect_bp3_srwd,
12389 .write = spi_chip_write_256,
12390 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
12391 .voltage = {2700, 3600},
12392 },
12393
12394 {
12395 .vendor = "Nantronics",
12396 .name = "N25S40",
12397 .bustype = BUS_SPI,
12398 .manufacture_id = NANTRONICS_ID_NOPREFIX,
12399 .model_id = NANTRONICS_N25S40,
12400 .total_size = 512,
12401 .page_size = 256,
12402 .feature_bits = FEATURE_WRSR_WREN,
12403 .tested = TEST_UNTESTED,
12404 .probe = probe_spi_rdid,
12405 .probe_timing = TIMING_ZERO,
12406 .block_erasers =
12407 {
12408 {
12409 .eraseblocks = { {4 * 1024, 128} },
12410 .block_erase = spi_block_erase_20,
12411 }, {
12412 .eraseblocks = { {4 * 1024, 128} },
12413 .block_erase = spi_block_erase_d7,
12414 }, {
12415 .eraseblocks = { {32 * 1024, 16} },
12416 .block_erase = spi_block_erase_52,
12417 }, {
12418 .eraseblocks = { {64 * 1024, 8} },
12419 .block_erase = spi_block_erase_d8,
12420 }, {
12421 .eraseblocks = { {512 * 1024, 1} },
12422 .block_erase = spi_block_erase_60,
12423 }, {
12424 .eraseblocks = { {512 * 1024, 1} },
12425 .block_erase = spi_block_erase_c7,
12426 }
12427 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012428 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012429 .unlock = spi_disable_blockprotect_bp3_srwd,
12430 .write = spi_chip_write_256,
12431 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
12432 .voltage = {2700, 3600},
12433 },
12434
12435 {
12436 .vendor = "Nantronics",
12437 .name = "N25S80",
12438 .bustype = BUS_SPI,
12439 .manufacture_id = NANTRONICS_ID_NOPREFIX,
12440 .model_id = NANTRONICS_N25S80,
12441 .total_size = 1024,
12442 .page_size = 256,
12443 .feature_bits = FEATURE_WRSR_WREN,
12444 .tested = TEST_UNTESTED,
12445 .probe = probe_spi_rdid,
12446 .probe_timing = TIMING_ZERO,
12447 .block_erasers =
12448 {
12449 {
12450 .eraseblocks = { {4 * 1024, 256} },
12451 .block_erase = spi_block_erase_20,
12452 }, {
12453 .eraseblocks = { {32 * 1024, 32} },
12454 .block_erase = spi_block_erase_52,
12455 }, {
12456 .eraseblocks = { {64 * 1024, 16} },
12457 .block_erase = spi_block_erase_d8,
12458 }, {
12459 .eraseblocks = { {1024 * 1024, 1} },
12460 .block_erase = spi_block_erase_60,
12461 }, {
12462 .eraseblocks = { {1024 * 1024, 1} },
12463 .block_erase = spi_block_erase_c7,
12464 }
12465 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012466 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012467 .unlock = spi_disable_blockprotect_bp3_srwd,
12468 .write = spi_chip_write_256,
12469 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
12470 .voltage = {2700, 3600},
12471 },
12472
12473 {
Stefan Taunerf4451612013-04-19 01:59:15 +000012474 .vendor = "PMC",
12475 .name = "Pm25LD010(C)",
12476 .bustype = BUS_SPI,
12477 .manufacture_id = PMC_ID,
12478 .model_id = PMC_PM25LD010,
12479 .total_size = 128,
12480 .page_size = 256,
12481 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000012482 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +000012483 .probe = probe_spi_rdid,
12484 .probe_timing = TIMING_ZERO,
12485 .block_erasers =
12486 {
12487 {
12488 .eraseblocks = { {4 * 1024, 32} },
12489 .block_erase = spi_block_erase_20,
12490 }, {
12491 .eraseblocks = { {4 * 1024, 32} },
12492 .block_erase = spi_block_erase_d7,
12493 }, {
12494 .eraseblocks = { {32 * 1024, 4} },
12495 .block_erase = spi_block_erase_d8,
12496 }, {
12497 .eraseblocks = { {128 * 1024, 1} },
12498 .block_erase = spi_block_erase_60,
12499 }, {
12500 .eraseblocks = { {128 * 1024, 1} },
12501 .block_erase = spi_block_erase_c7,
12502 }
12503 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012504 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000012505 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
12506 .write = spi_chip_write_256,
12507 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
12508 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD010 */
12509 },
12510
12511 {
12512 .vendor = "PMC",
12513 .name = "Pm25LD020(C)",
12514 .bustype = BUS_SPI,
12515 .manufacture_id = PMC_ID,
12516 .model_id = PMC_PM25LD020,
12517 .total_size = 256,
12518 .page_size = 256,
12519 .feature_bits = FEATURE_WRSR_WREN,
Angel Ponsf5822a82018-09-30 20:09:58 +020012520 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +000012521 .probe = probe_spi_rdid,
12522 .probe_timing = TIMING_ZERO,
12523 .block_erasers =
12524 {
12525 {
12526 .eraseblocks = { {4 * 1024, 64} },
12527 .block_erase = spi_block_erase_20,
12528 }, {
12529 .eraseblocks = { {4 * 1024, 64} },
12530 .block_erase = spi_block_erase_d7,
12531 }, {
12532 .eraseblocks = { {64 * 1024, 4} },
12533 .block_erase = spi_block_erase_d8,
12534 }, {
12535 .eraseblocks = { {256 * 1024, 1} },
12536 .block_erase = spi_block_erase_60,
12537 }, {
12538 .eraseblocks = { {256 * 1024, 1} },
12539 .block_erase = spi_block_erase_c7,
12540 }
12541 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012542 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000012543 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
12544 .write = spi_chip_write_256,
12545 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
12546 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD020 */
12547 },
12548
12549 {
12550 .vendor = "PMC",
12551 .name = "Pm25LD040(C)",
12552 .bustype = BUS_SPI,
12553 .manufacture_id = PMC_ID,
12554 .model_id = PMC_PM25LV040,
12555 .total_size = 512,
12556 .page_size = 256,
12557 .feature_bits = FEATURE_WRSR_WREN,
Angel Pons05127bf2018-09-30 20:23:24 +020012558 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +000012559 .probe = probe_spi_rdid,
12560 .probe_timing = TIMING_ZERO,
12561 .block_erasers =
12562 {
12563 {
12564 .eraseblocks = { {4 * 1024, 128} },
12565 .block_erase = spi_block_erase_20,
12566 }, {
12567 .eraseblocks = { {4 * 1024, 128} },
12568 .block_erase = spi_block_erase_d7,
12569 }, {
12570 .eraseblocks = { {64 * 1024, 8} },
12571 .block_erase = spi_block_erase_d8,
12572 }, {
12573 .eraseblocks = { {512 * 1024, 1} },
12574 .block_erase = spi_block_erase_60,
12575 }, {
12576 .eraseblocks = { {512 * 1024, 1} },
12577 .block_erase = spi_block_erase_c7,
12578 }
12579 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012580 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000012581 .unlock = spi_disable_blockprotect,
12582 .write = spi_chip_write_256,
12583 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
12584 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD040 */
12585 },
12586
Steven Honeyman81a8fb72015-06-02 22:32:24 +000012587 {
12588 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012589 .name = "Pm25LD256C",
12590 .bustype = BUS_SPI,
12591 .manufacture_id = PMC_ID,
12592 .model_id = PMC_PM25LD256C,
12593 .total_size = 32,
12594 .page_size = 256,
12595 .feature_bits = FEATURE_WRSR_WREN,
12596 .tested = TEST_UNTESTED,
12597 .probe = probe_spi_rdid,
12598 .probe_timing = TIMING_ZERO,
12599 .block_erasers =
12600 {
12601 {
12602 .eraseblocks = { {4 * 1024, 8} },
12603 .block_erase = spi_block_erase_20,
12604 }, {
12605 .eraseblocks = { {4 * 1024, 8} },
12606 .block_erase = spi_block_erase_d7,
12607 }, {
12608 .eraseblocks = { {32 * 1024, 1} },
12609 .block_erase = spi_block_erase_d8,
12610 }, {
12611 .eraseblocks = { {32 * 1024, 1} },
12612 .block_erase = spi_block_erase_60,
12613 }, {
12614 .eraseblocks = { {32 * 1024, 1} },
12615 .block_erase = spi_block_erase_c7,
12616 }
12617 },
12618 .printlock = spi_prettyprint_status_register_bp2_srwd,
12619 .unlock = spi_disable_blockprotect,
12620 .write = spi_chip_write_256,
12621 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
12622 .voltage = {2700, 3600},
12623 },
12624
12625 {
12626 .vendor = "PMC",
12627 .name = "Pm25LD512(C)",
12628 .bustype = BUS_SPI,
12629 .manufacture_id = PMC_ID,
12630 .model_id = PMC_PM25LD512,
12631 .total_size = 64,
12632 .page_size = 256,
12633 .feature_bits = FEATURE_WRSR_WREN,
12634 .tested = TEST_OK_PREW,
12635 .probe = probe_spi_rdid,
12636 .probe_timing = TIMING_ZERO,
12637 .block_erasers =
12638 {
12639 {
12640 .eraseblocks = { {4 * 1024, 16} },
12641 .block_erase = spi_block_erase_20,
12642 }, {
12643 .eraseblocks = { {4 * 1024, 16} },
12644 .block_erase = spi_block_erase_d7,
12645 }, {
12646 .eraseblocks = { {32 * 1024, 2} },
12647 .block_erase = spi_block_erase_d8,
12648 }, {
12649 .eraseblocks = { {64 * 1024, 1} },
12650 .block_erase = spi_block_erase_60,
12651 }, {
12652 .eraseblocks = { {64 * 1024, 1} },
12653 .block_erase = spi_block_erase_c7,
12654 }
12655 },
12656 .printlock = spi_prettyprint_status_register_bp2_srwd,
12657 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
12658 .write = spi_chip_write_256,
12659 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
12660 .voltage = {2300, 3600},
12661 },
12662
12663 {
12664 .vendor = "PMC",
12665 .name = "Pm25LQ016",
12666 .bustype = BUS_SPI,
12667 .manufacture_id = PMC_ID,
12668 .model_id = PMC_PM25LQ016,
12669 .total_size = 2048,
12670 .page_size = 256,
12671 /* OTP: 256B total; read 0x4B, write 0xB1 */
12672 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12673 .tested = TEST_UNTESTED,
12674 .probe = probe_spi_rdid,
12675 .probe_timing = TIMING_ZERO,
12676 .block_erasers =
12677 {
12678 {
12679 .eraseblocks = { {4 * 1024, 512} },
12680 .block_erase = spi_block_erase_20,
12681 }, {
12682 .eraseblocks = { {4 * 1024, 512} },
12683 .block_erase = spi_block_erase_d7,
12684 }, {
12685 .eraseblocks = { {64 * 1024, 32} },
12686 .block_erase = spi_block_erase_d8,
12687 }, {
12688 .eraseblocks = { {2048 * 1024, 1} },
12689 .block_erase = spi_block_erase_60,
12690 }, {
12691 .eraseblocks = { {2048 * 1024, 1} },
12692 .block_erase = spi_block_erase_c7,
12693 }
12694 },
12695 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
12696 .unlock = spi_disable_blockprotect_bp3_srwd,
12697 .write = spi_chip_write_256,
12698 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12699 .voltage = {2300, 3600},
12700 },
12701
12702 {
12703 .vendor = "PMC",
Steven Honeyman81a8fb72015-06-02 22:32:24 +000012704 .name = "Pm25LQ020",
12705 .bustype = BUS_SPI,
12706 .manufacture_id = PMC_ID,
12707 .model_id = PMC_PM25LQ020,
12708 .total_size = 256,
12709 .page_size = 256,
12710 /* OTP: 256B total; read 0x4B, write 0xB1 */
12711 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12712 .tested = TEST_UNTESTED,
12713 .probe = probe_spi_rdid,
12714 .probe_timing = TIMING_ZERO,
12715 .block_erasers =
12716 {
12717 {
12718 .eraseblocks = { {4 * 1024, 64} },
12719 .block_erase = spi_block_erase_20,
12720 }, {
12721 .eraseblocks = { {4 * 1024, 64} },
12722 .block_erase = spi_block_erase_d7,
12723 }, {
12724 .eraseblocks = { {64 * 1024, 4} },
12725 .block_erase = spi_block_erase_d8,
12726 }, {
12727 .eraseblocks = { {256 * 1024, 1} },
12728 .block_erase = spi_block_erase_60,
12729 }, {
12730 .eraseblocks = { {256 * 1024, 1} },
12731 .block_erase = spi_block_erase_c7,
12732 }
12733 },
12734 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
12735 .unlock = spi_disable_blockprotect_bp3_srwd,
12736 .write = spi_chip_write_256,
12737 .read = spi_chip_read,
12738 .voltage = {2300, 3600},
12739 },
12740
12741 {
12742 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012743 .name = "Pm25LQ032C",
12744 .bustype = BUS_SPI,
12745 .manufacture_id = PMC_ID,
12746 .model_id = PMC_PM25LQ032C,
12747 .total_size = 4096,
12748 .page_size = 256,
12749 /* OTP: 64B total; read 0x4B, write 0xB1 */
12750 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12751 .tested = TEST_OK_PREW,
12752 .probe = probe_spi_rdid,
12753 .probe_timing = TIMING_ZERO,
12754 .block_erasers =
12755 {
12756 {
12757 .eraseblocks = { {4 * 1024, 1024} },
12758 .block_erase = spi_block_erase_20,
12759 }, {
12760 .eraseblocks = { {4 * 1024, 1024} },
12761 .block_erase = spi_block_erase_d7,
12762 }, {
12763 .eraseblocks = { {64 * 1024, 64} },
12764 .block_erase = spi_block_erase_d8,
12765 }, {
12766 .eraseblocks = { {4096 * 1024, 1} },
12767 .block_erase = spi_block_erase_60,
12768 }, {
12769 .eraseblocks = { {4096 * 1024, 1} },
12770 .block_erase = spi_block_erase_c7,
12771 }
12772 },
12773 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
12774 .unlock = spi_disable_blockprotect_bp3_srwd,
12775 .write = spi_chip_write_256,
12776 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12777 .voltage = {2700, 3600},
12778 },
12779
12780 {
12781 .vendor = "PMC",
Steven Honeyman81a8fb72015-06-02 22:32:24 +000012782 .name = "Pm25LQ040",
12783 .bustype = BUS_SPI,
12784 .manufacture_id = PMC_ID,
12785 .model_id = PMC_PM25LQ040,
12786 .total_size = 512,
12787 .page_size = 256,
12788 /* OTP: 256B total; read 0x4B, write 0xB1 */
12789 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12790 .tested = TEST_UNTESTED,
12791 .probe = probe_spi_rdid,
12792 .probe_timing = TIMING_ZERO,
12793 .block_erasers =
12794 {
12795 {
12796 .eraseblocks = { {4 * 1024, 128} },
12797 .block_erase = spi_block_erase_20,
12798 }, {
12799 .eraseblocks = { {4 * 1024, 128} },
12800 .block_erase = spi_block_erase_d7,
12801 }, {
12802 .eraseblocks = { {64 * 1024, 8} },
12803 .block_erase = spi_block_erase_d8,
12804 }, {
12805 .eraseblocks = { {512 * 1024, 1} },
12806 .block_erase = spi_block_erase_60,
12807 }, {
12808 .eraseblocks = { {512 * 1024, 1} },
12809 .block_erase = spi_block_erase_c7,
12810 }
12811 },
12812 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
12813 .unlock = spi_disable_blockprotect_bp3_srwd,
12814 .write = spi_chip_write_256,
12815 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12816 .voltage = {2300, 3600},
12817 },
12818
12819 {
12820 .vendor = "PMC",
12821 .name = "Pm25LQ080",
12822 .bustype = BUS_SPI,
12823 .manufacture_id = PMC_ID,
12824 .model_id = PMC_PM25LQ080,
12825 .total_size = 1024,
12826 .page_size = 256,
12827 /* OTP: 64B total; read 0x4B, write 0xB1 */
12828 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12829 .tested = TEST_UNTESTED,
12830 .probe = probe_spi_rdid,
12831 .probe_timing = TIMING_ZERO,
12832 .block_erasers =
12833 {
12834 {
12835 .eraseblocks = { {4 * 1024, 256} },
12836 .block_erase = spi_block_erase_20,
12837 }, {
12838 .eraseblocks = { {4 * 1024, 256} },
12839 .block_erase = spi_block_erase_d7,
12840 }, {
12841 .eraseblocks = { {64 * 1024, 16} },
12842 .block_erase = spi_block_erase_d8,
12843 }, {
12844 .eraseblocks = { {1024 * 1024, 1} },
12845 .block_erase = spi_block_erase_60,
12846 }, {
12847 .eraseblocks = { {1024 * 1024, 1} },
12848 .block_erase = spi_block_erase_c7,
12849 }
12850 },
12851 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
12852 .unlock = spi_disable_blockprotect_bp3_srwd,
12853 .write = spi_chip_write_256,
12854 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12855 .voltage = {2300, 3600},
12856 },
12857
12858 {
12859 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012860 .name = "Pm25LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012861 .bustype = BUS_SPI,
Stefan Taunerbecda742014-05-30 19:34:00 +000012862 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012863 .model_id = PMC_PM25LV010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012864 .total_size = 128,
12865 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012866 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerbecda742014-05-30 19:34:00 +000012867 .tested = TEST_OK_PREW,
12868 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000012869 .probe_timing = TIMING_ZERO,
12870 .block_erasers =
12871 {
12872 {
12873 .eraseblocks = { {4 * 1024, 32} },
12874 .block_erase = spi_block_erase_d7,
12875 }, {
12876 .eraseblocks = { {32 * 1024, 4} },
12877 .block_erase = spi_block_erase_d8,
12878 }, {
12879 .eraseblocks = { {128 * 1024, 1} },
12880 .block_erase = spi_block_erase_c7,
12881 }
12882 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012883 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000012884 .unlock = spi_disable_blockprotect,
12885 .write = spi_chip_write_256,
12886 .read = spi_chip_read, /* Fast read (0x0B) supported */
12887 .voltage = {2700, 3600},
12888 },
12889
12890 {
12891 .vendor = "PMC",
12892 .name = "Pm25LV010A",
12893 .bustype = BUS_SPI,
12894 .manufacture_id = PMC_ID,
12895 .model_id = PMC_PM25LV010,
12896 .total_size = 128,
12897 .page_size = 256,
12898 .feature_bits = FEATURE_WRSR_WREN,
12899 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012900 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012901 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000012902 .block_erasers =
12903 {
12904 {
12905 .eraseblocks = { {4 * 1024, 32} },
12906 .block_erase = spi_block_erase_d7,
12907 }, {
12908 .eraseblocks = { {32 * 1024, 4} },
12909 .block_erase = spi_block_erase_d8,
12910 }, {
12911 .eraseblocks = { {128 * 1024, 1} },
12912 .block_erase = spi_block_erase_c7,
12913 }
12914 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012915 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012916 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012917 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000012918 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +000012919 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012920 },
12921
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012922 {
12923 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012924 .name = "Pm25LV016B",
12925 .bustype = BUS_SPI,
12926 .manufacture_id = PMC_ID,
12927 .model_id = PMC_PM25LV016B,
12928 .total_size = 2048,
12929 .page_size = 256,
12930 .feature_bits = FEATURE_WRSR_WREN,
12931 .tested = TEST_UNTESTED,
12932 .probe = probe_spi_rdid,
12933 .probe_timing = TIMING_ZERO,
12934 .block_erasers =
12935 {
12936 {
12937 .eraseblocks = { {4 * 1024, 512} },
12938 .block_erase = spi_block_erase_d7,
12939 }, {
12940 .eraseblocks = { {4 * 1024, 512} },
12941 .block_erase = spi_block_erase_20,
12942 }, {
12943 .eraseblocks = { {64 * 1024, 32} },
12944 .block_erase = spi_block_erase_d8,
12945 }, {
12946 .eraseblocks = { {2 * 1024 * 1024, 1} },
12947 .block_erase = spi_block_erase_60,
12948 }, {
12949 .eraseblocks = { {2 * 1024 * 1024, 1} },
12950 .block_erase = spi_block_erase_c7,
12951 }
12952 },
12953 .printlock = spi_prettyprint_status_register_bp2_srwd,
12954 .unlock = spi_disable_blockprotect,
12955 .write = spi_chip_write_256,
12956 .read = spi_chip_read, /* Fast read (0x0B) supported */
12957 .voltage = {2700, 3600},
12958 },
12959
12960 {
12961 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012962 .name = "Pm25LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012963 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012964 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012965 .model_id = PMC_PM25LV020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012966 .total_size = 256,
12967 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012968 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012969 .tested = TEST_UNTESTED,
12970 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012971 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000012972 .block_erasers =
12973 {
12974 {
12975 .eraseblocks = { {4 * 1024, 64} },
12976 .block_erase = spi_block_erase_d7,
12977 }, {
12978 .eraseblocks = { {64 * 1024, 4} },
12979 .block_erase = spi_block_erase_d8,
12980 }, {
12981 .eraseblocks = { {256 * 1024, 1} },
12982 .block_erase = spi_block_erase_c7,
12983 }
12984 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012985 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012986 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012987 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012988 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012989 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012990 },
12991
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012992 {
12993 .vendor = "PMC",
12994 .name = "Pm25LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012995 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012996 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012997 .model_id = PMC_PM25LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012998 .total_size = 512,
12999 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000013000 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +000013001 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013002 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013003 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000013004 .block_erasers =
13005 {
13006 {
13007 .eraseblocks = { {4 * 1024, 128} },
13008 .block_erase = spi_block_erase_d7,
13009 }, {
13010 .eraseblocks = { {64 * 1024, 8} },
13011 .block_erase = spi_block_erase_d8,
13012 }, {
13013 .eraseblocks = { {512 * 1024, 1} },
13014 .block_erase = spi_block_erase_c7,
13015 }
13016 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000013017 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013018 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000013019 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000013020 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013021 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013022 },
13023
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013024 {
13025 .vendor = "PMC",
13026 .name = "Pm25LV080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013027 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013028 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013029 .model_id = PMC_PM25LV080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013030 .total_size = 1024,
13031 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000013032 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013033 .tested = TEST_UNTESTED,
13034 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013035 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000013036 .block_erasers =
13037 {
13038 {
13039 .eraseblocks = { {4 * 1024, 256} },
13040 .block_erase = spi_block_erase_d7,
13041 }, {
13042 .eraseblocks = { {4 * 1024, 256} },
13043 .block_erase = spi_block_erase_20,
13044 }, {
13045 .eraseblocks = { {64 * 1024, 16} },
13046 .block_erase = spi_block_erase_d8,
13047 }, {
13048 .eraseblocks = { {1024 * 1024, 1} },
13049 .block_erase = spi_block_erase_60,
13050 }, {
13051 .eraseblocks = { {1024 * 1024, 1} },
13052 .block_erase = spi_block_erase_c7,
13053 }
13054 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000013055 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013056 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000013057 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000013058 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013059 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013060 },
13061
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013062 {
13063 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013064 .name = "Pm25LV512(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013065 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013066 .manufacture_id = PMC_ID_NOPREFIX,
13067 .model_id = PMC_PM25LV512,
13068 .total_size = 64,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013069 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000013070 .feature_bits = FEATURE_WRSR_WREN,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013071 .tested = TEST_OK_PREW,
13072 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013073 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000013074 .block_erasers =
13075 {
13076 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013077 .eraseblocks = { {4 * 1024, 16} },
Sean Nelson5643c072010-01-19 03:23:07 +000013078 .block_erase = spi_block_erase_d7,
13079 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013080 .eraseblocks = { {32 * 1024, 2} },
Sean Nelson5643c072010-01-19 03:23:07 +000013081 .block_erase = spi_block_erase_d8,
13082 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013083 .eraseblocks = { {64 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +000013084 .block_erase = spi_block_erase_c7,
13085 }
13086 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100013087 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013088 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000013089 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000013090 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +000013091 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013092 },
13093
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013094 {
13095 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +000013096 .name = "Pm29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013097 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000013098 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013099 .model_id = PMC_PM29F002B,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000013100 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +000013101 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013102 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000013103 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000013104 .probe = probe_jedec,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000013105 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +000013106 .block_erasers =
13107 {
13108 {
13109 .eraseblocks = {
13110 {16 * 1024, 1},
13111 {8 * 1024, 2},
13112 {96 * 1024, 1},
13113 {128 * 1024, 1},
13114 },
Sean Nelson35727f72010-01-28 23:55:12 +000013115 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000013116 }, {
13117 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000013118 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000013119 },
13120 },
Sean Nelson35727f72010-01-28 23:55:12 +000013121 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000013122 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013123 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +000013124 },
13125
13126 {
13127 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013128 .name = "Pm29F002T",
13129 .bustype = BUS_PARALLEL,
13130 .manufacture_id = PMC_ID_NOPREFIX,
13131 .model_id = PMC_PM29F002T,
13132 .total_size = 256,
13133 .page_size = 8 * 1024,
13134 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
13135 .tested = TEST_OK_PREW,
13136 .probe = probe_jedec,
13137 .probe_timing = TIMING_FIXME,
13138 .block_erasers =
13139 {
13140 {
13141 .eraseblocks = {
13142 {128 * 1024, 1},
13143 {96 * 1024, 1},
13144 {8 * 1024, 2},
13145 {16 * 1024, 1},
13146 },
13147 .block_erase = erase_sector_jedec,
13148 }, {
13149 .eraseblocks = { {256 * 1024, 1} },
13150 .block_erase = erase_chip_block_jedec,
13151 },
13152 },
13153 .write = write_jedec_1,
13154 .read = read_memmapped,
13155 .voltage = {4500, 5500},
13156 },
13157
13158 {
13159 .vendor = "PMC",
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000013160 .name = "Pm39LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013161 .bustype = BUS_PARALLEL,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000013162 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013163 .model_id = PMC_PM39F010, /* Pm39LV010 and Pm39F010 have identical IDs but different voltage */
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000013164 .total_size = 128,
13165 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013166 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000013167 .tested = TEST_OK_PREW,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000013168 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013169 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson5643c072010-01-19 03:23:07 +000013170 .block_erasers =
13171 {
13172 {
13173 .eraseblocks = { {4 * 1024, 32} },
13174 .block_erase = erase_sector_jedec,
13175 }, {
13176 .eraseblocks = { {64 * 1024, 2} },
13177 .block_erase = erase_block_jedec,
13178 }, {
13179 .eraseblocks = { {128 * 1024, 1} },
13180 .block_erase = erase_chip_block_jedec,
13181 }
13182 },
Sean Nelson35727f72010-01-28 23:55:12 +000013183 .write = write_jedec_1,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000013184 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013185 .voltage = {2700, 3600},
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000013186 },
13187
13188 {
13189 .vendor = "PMC",
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013190 .name = "Pm39LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013191 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013192 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013193 .model_id = PMC_PM39LV020,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013194 .total_size = 256,
13195 .page_size = 4096,
13196 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
13197 .tested = TEST_UNTESTED,
13198 .probe = probe_jedec,
13199 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Alan Greenfa3fcd32019-06-27 15:41:50 +100013200 .block_erasers =
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013201 {
13202 {
13203 .eraseblocks = { {4 * 1024, 64} },
13204 .block_erase = erase_sector_jedec,
13205 }, {
13206 .eraseblocks = { {64 * 1024, 4} },
13207 .block_erase = erase_block_jedec,
13208 }, {
13209 .eraseblocks = { {256 * 1024, 1} },
13210 .block_erase = erase_chip_block_jedec,
13211 }
13212 },
13213 .write = write_jedec_1,
13214 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013215 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013216 },
13217
13218 {
13219 .vendor = "PMC",
13220 .name = "Pm39LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013221 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013222 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013223 .model_id = PMC_PM39LV040,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013224 .total_size = 512,
13225 .page_size = 4096,
13226 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000013227 .tested = TEST_OK_PR,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013228 .probe = probe_jedec,
13229 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Alan Greenfa3fcd32019-06-27 15:41:50 +100013230 .block_erasers =
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013231 {
13232 {
13233 .eraseblocks = { {4 * 1024, 128} },
13234 .block_erase = erase_sector_jedec,
13235 }, {
13236 .eraseblocks = { {64 * 1024, 8} },
13237 .block_erase = erase_block_jedec,
13238 }, {
13239 .eraseblocks = { {512 * 1024, 1} },
13240 .block_erase = erase_chip_block_jedec,
13241 }
13242 },
13243 .write = write_jedec_1,
13244 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013245 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013246 },
Kyösti Mälkkiedab1d22012-05-20 23:32:33 +000013247
13248 {
13249 .vendor = "PMC",
13250 .name = "Pm39LV512",
13251 .bustype = BUS_PARALLEL,
13252 .manufacture_id = PMC_ID_NOPREFIX,
13253 .model_id = PMC_PM39LV512,
13254 .total_size = 64,
13255 .page_size = 4096,
13256 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
13257 .tested = TEST_OK_PREW,
13258 .probe = probe_jedec,
13259 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
13260 .block_erasers =
13261 {
13262 {
13263 .eraseblocks = { {4 * 1024, 16} },
13264 .block_erase = erase_sector_jedec,
13265 }, {
13266 .eraseblocks = { {64 * 1024, 1} },
13267 .block_erase = erase_block_jedec,
13268 }, {
13269 .eraseblocks = { {64 * 1024, 1} },
13270 .block_erase = erase_chip_block_jedec,
13271 }
13272 },
13273 .write = write_jedec_1,
13274 .read = read_memmapped,
13275 .voltage = {2700, 3600},
13276 },
13277
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013278 {
13279 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013280 .name = "Pm49FL002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013281 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013282 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013283 .model_id = PMC_PM49FL002,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013284 .total_size = 256,
13285 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013286 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013287 .tested = TEST_OK_PR,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000013288 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013289 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +000013290 .block_erasers =
13291 {
13292 {
13293 .eraseblocks = { {4 * 1024, 64} },
13294 .block_erase = erase_sector_jedec,
13295 }, {
13296 .eraseblocks = { {16 * 1024, 16} },
13297 .block_erase = erase_block_jedec,
13298 }, {
13299 .eraseblocks = { {256 * 1024, 1} },
13300 .block_erase = erase_chip_block_jedec,
13301 }
13302 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013303 .unlock = unlock_regspace2_uniform_32k,
Sean Nelson36172342010-02-27 18:01:15 +000013304 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013305 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013306 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013307 },
13308
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013309 {
13310 .vendor = "PMC",
13311 .name = "Pm49FL004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013312 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013313 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013314 .model_id = PMC_PM49FL004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013315 .total_size = 512,
13316 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013317 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner74dc73f2015-03-01 22:04:38 +000013318 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000013319 .probe = probe_jedec,
Stefan Tauner74dc73f2015-03-01 22:04:38 +000013320 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000013321 .block_erasers =
13322 {
13323 {
13324 .eraseblocks = { {4 * 1024, 128} },
13325 .block_erase = erase_sector_jedec,
13326 }, {
13327 .eraseblocks = { {64 * 1024, 8} },
13328 .block_erase = erase_block_jedec,
13329 }, {
13330 .eraseblocks = { {512 * 1024, 1} },
13331 .block_erase = erase_chip_block_jedec,
13332 }
13333 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013334 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson36172342010-02-27 18:01:15 +000013335 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013336 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013337 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013338 },
13339
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013340 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013341 .vendor = "SST",
Idwer Volleringf3607d12014-05-07 15:25:04 +000013342 .name = "SST25LF020A",
13343 .bustype = BUS_SPI,
13344 .manufacture_id = SST_ID,
13345 .model_id = SST_SST25VF020_REMS,
13346 .total_size = 256,
13347 .page_size = 256,
13348 .feature_bits = FEATURE_WRSR_EWSR,
13349 .tested = TEST_OK_PREW,
13350 .probe = probe_spi_rems,
13351 .probe_timing = TIMING_ZERO,
13352 .block_erasers =
13353 {
13354 {
13355 .eraseblocks = { {4 * 1024, 64} },
13356 .block_erase = spi_block_erase_20,
13357 }, {
13358 .eraseblocks = { {32 * 1024, 8} },
13359 .block_erase = spi_block_erase_52,
13360 }, {
13361 .eraseblocks = { {256 * 1024, 1} },
13362 .block_erase = spi_block_erase_60,
13363 },
13364 },
13365 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
13366 .unlock = spi_disable_blockprotect,
13367 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13368 .read = spi_chip_read, /* Fast read (0x0B) supported */
13369 .voltage = {2700, 3600},
13370 },
13371
13372 {
13373 .vendor = "SST",
Zeus Castro33670ba2011-08-17 09:50:11 +000013374 .name = "SST25LF040A",
13375 .bustype = BUS_SPI,
13376 .manufacture_id = SST_ID,
13377 .model_id = SST_SST25VF040_REMS,
13378 .total_size = 512,
13379 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000013380 .feature_bits = FEATURE_WRSR_EWSR,
Uwe Hermann4335ec82011-09-07 20:20:25 +000013381 .tested = TEST_OK_PREW,
Zeus Castro33670ba2011-08-17 09:50:11 +000013382 .probe = probe_spi_res2,
13383 .probe_timing = TIMING_ZERO,
13384 .block_erasers =
13385 {
13386 {
13387 .eraseblocks = { {4 * 1024, 128} },
13388 .block_erase = spi_block_erase_20,
13389 }, {
13390 .eraseblocks = { {32 * 1024, 16} },
13391 .block_erase = spi_block_erase_52,
13392 }, {
13393 .eraseblocks = { {512 * 1024, 1} },
13394 .block_erase = spi_block_erase_60,
13395 },
13396 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013397 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +000013398 .unlock = spi_disable_blockprotect,
13399 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13400 .read = spi_chip_read,
13401 .voltage = {3000, 3600},
13402 },
13403
13404 {
13405 .vendor = "SST",
Stefan Taunere34e3e82013-01-01 00:06:51 +000013406 .name = "SST25LF080(A)",
Zeus Castro33670ba2011-08-17 09:50:11 +000013407 .bustype = BUS_SPI,
13408 .manufacture_id = SST_ID,
13409 .model_id = SST_SST25VF080_REMS,
13410 .total_size = 1024,
13411 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000013412 .feature_bits = FEATURE_WRSR_EITHER,
Zeus Castro33670ba2011-08-17 09:50:11 +000013413 .tested = TEST_UNTESTED,
13414 .probe = probe_spi_res2,
13415 .probe_timing = TIMING_ZERO,
13416 .block_erasers =
13417 {
13418 {
13419 .eraseblocks = { {4 * 1024, 256} },
13420 .block_erase = spi_block_erase_20,
13421 }, {
13422 .eraseblocks = { {32 * 1024, 32} },
13423 .block_erase = spi_block_erase_52,
13424 }, {
13425 .eraseblocks = { {1024 * 1024, 1} },
13426 .block_erase = spi_block_erase_60,
13427 },
13428 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013429 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +000013430 .unlock = spi_disable_blockprotect,
13431 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13432 .read = spi_chip_read,
13433 .voltage = {3000, 3600},
13434 },
13435
13436 {
13437 .vendor = "SST",
Stefan Tauner6697f712014-08-06 15:09:15 +000013438 .name = "SST25VF010(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013439 .bustype = BUS_SPI,
Mark Marshall90021f22010-12-03 14:48:11 +000013440 .manufacture_id = SST_ID,
13441 .model_id = SST_SST25VF010_REMS,
13442 .total_size = 128,
13443 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000013444 .feature_bits = FEATURE_WRSR_EWSR,
Mark Marshall90021f22010-12-03 14:48:11 +000013445 .tested = TEST_OK_PREW,
13446 .probe = probe_spi_rems,
13447 .probe_timing = TIMING_ZERO,
13448 .block_erasers =
13449 {
13450 {
13451 .eraseblocks = { {4 * 1024, 32} },
13452 .block_erase = spi_block_erase_20,
13453 }, {
13454 .eraseblocks = { {32 * 1024, 4} },
13455 .block_erase = spi_block_erase_52,
13456 }, {
Cory Henderson370f5822013-10-19 23:09:16 +000013457 .eraseblocks = { {32 * 1024, 4} },
Stefan Tauner6697f712014-08-06 15:09:15 +000013458 .block_erase = spi_block_erase_d8, /* Supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000013459 }, {
Mark Marshall90021f22010-12-03 14:48:11 +000013460 .eraseblocks = { {128 * 1024, 1} },
13461 .block_erase = spi_block_erase_60,
Cory Henderson370f5822013-10-19 23:09:16 +000013462 }, {
13463 .eraseblocks = { {128 * 1024, 1} },
Stefan Tauner6697f712014-08-06 15:09:15 +000013464 .block_erase = spi_block_erase_c7, /* Supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000013465 },
13466 },
13467 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
13468 .unlock = spi_disable_blockprotect,
13469 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
Stefan Tauner6697f712014-08-06 15:09:15 +000013470 .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000013471 .voltage = {2700, 3600},
13472 },
13473
13474 {
13475 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013476 .name = "SST25VF016B",
13477 .bustype = BUS_SPI,
13478 .manufacture_id = SST_ID,
13479 .model_id = SST_SST25VF016B,
13480 .total_size = 2048,
13481 .page_size = 256,
13482 .feature_bits = FEATURE_WRSR_EITHER,
13483 .tested = TEST_OK_PREW,
13484 .probe = probe_spi_rdid,
13485 .probe_timing = TIMING_ZERO,
13486 .block_erasers =
13487 {
13488 {
13489 .eraseblocks = { {4 * 1024, 512} },
13490 .block_erase = spi_block_erase_20,
13491 }, {
13492 .eraseblocks = { {32 * 1024, 64} },
13493 .block_erase = spi_block_erase_52,
13494 }, {
13495 .eraseblocks = { {64 * 1024, 32} },
13496 .block_erase = spi_block_erase_d8,
13497 }, {
13498 .eraseblocks = { {2 * 1024 * 1024, 1} },
13499 .block_erase = spi_block_erase_60,
13500 }, {
13501 .eraseblocks = { {2 * 1024 * 1024, 1} },
13502 .block_erase = spi_block_erase_c7,
13503 },
13504 },
13505 .printlock = spi_prettyprint_status_register_sst25vf016,
13506 .unlock = spi_disable_blockprotect,
13507 .write = spi_aai_write,
13508 .read = spi_chip_read,
13509 .voltage = {2700, 3600},
13510 },
13511
13512 {
13513 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +000013514 .name = "SST25VF020",
13515 .bustype = BUS_SPI,
13516 .manufacture_id = SST_ID,
13517 .model_id = SST_SST25VF020_REMS,
13518 .total_size = 256,
13519 .page_size = 256,
13520 .feature_bits = FEATURE_WRSR_EWSR,
13521 .tested = TEST_UNTESTED,
13522 .probe = probe_spi_rems,
13523 .probe_timing = TIMING_ZERO,
13524 .block_erasers =
13525 {
13526 {
13527 .eraseblocks = { {4 * 1024, 64} },
13528 .block_erase = spi_block_erase_20,
13529 }, {
13530 .eraseblocks = { {32 * 1024, 8} },
13531 .block_erase = spi_block_erase_52,
13532 }, {
13533 .eraseblocks = { {256 * 1024, 1} },
13534 .block_erase = spi_block_erase_60,
13535 },
13536 },
13537 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
13538 .unlock = spi_disable_blockprotect,
13539 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13540 .read = spi_chip_read, /* only */
13541 .voltage = {2700, 3600},
13542 },
13543
13544 {
13545 .vendor = "SST",
13546 .name = "SST25VF020B",
13547 .bustype = BUS_SPI,
13548 .manufacture_id = SST_ID,
13549 .model_id = SST_SST25VF020B,
13550 .total_size = 256,
13551 .page_size = 256,
13552 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000013553 .tested = TEST_OK_PREW,
Cory Henderson370f5822013-10-19 23:09:16 +000013554 .probe = probe_spi_rdid,
13555 .probe_timing = TIMING_ZERO,
13556 .block_erasers =
13557 {
13558 {
13559 .eraseblocks = { {4 * 1024, 64} },
13560 .block_erase = spi_block_erase_20,
13561 }, {
13562 .eraseblocks = { {32 * 1024, 8} },
13563 .block_erase = spi_block_erase_52,
13564 }, {
13565 .eraseblocks = { {64 * 1024, 4} },
13566 .block_erase = spi_block_erase_d8,
13567 }, {
13568 .eraseblocks = { {256 * 1024, 1} },
13569 .block_erase = spi_block_erase_60,
13570 }, {
13571 .eraseblocks = { {256 * 1024, 1} },
13572 .block_erase = spi_block_erase_c7,
13573 },
13574 },
13575 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 and 2nd SR */
13576 .unlock = spi_disable_blockprotect, /* FIXME: 2nd SR */
13577 .write = spi_aai_write, /* AAI supported (0xAD) */
13578 .read = spi_chip_read, /* Fast read (0x0B) supported */
13579 .voltage = {2700, 3600},
13580 },
13581
13582 {
13583 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013584 .name = "SST25VF032B",
13585 .bustype = BUS_SPI,
13586 .manufacture_id = SST_ID,
13587 .model_id = SST_SST25VF032B,
13588 .total_size = 4096,
13589 .page_size = 256,
13590 .feature_bits = FEATURE_WRSR_EWSR,
13591 .tested = TEST_OK_PREW,
13592 .probe = probe_spi_rdid,
13593 .probe_timing = TIMING_ZERO,
13594 .block_erasers =
13595 {
13596 {
13597 .eraseblocks = { {4 * 1024, 1024} },
13598 .block_erase = spi_block_erase_20,
13599 }, {
13600 .eraseblocks = { {32 * 1024, 128} },
13601 .block_erase = spi_block_erase_52,
13602 }, {
13603 .eraseblocks = { {64 * 1024, 64} },
13604 .block_erase = spi_block_erase_d8,
13605 }, {
13606 .eraseblocks = { {4 * 1024 * 1024, 1} },
13607 .block_erase = spi_block_erase_60,
13608 }, {
13609 .eraseblocks = { {4 * 1024 * 1024, 1} },
13610 .block_erase = spi_block_erase_c7,
13611 },
13612 },
13613 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
13614 .unlock = spi_disable_blockprotect,
13615 .write = spi_aai_write,
13616 .read = spi_chip_read,
13617 .voltage = {2700, 3600},
13618 },
13619
13620 {
13621 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +000013622 .name = "SST25VF040",
13623 .bustype = BUS_SPI,
13624 .manufacture_id = SST_ID,
13625 .model_id = SST_SST25VF040_REMS,
13626 .total_size = 512,
13627 .page_size = 256,
13628 .feature_bits = FEATURE_WRSR_EWSR,
13629 .tested = TEST_OK_PR,
13630 .probe = probe_spi_rems,
13631 .probe_timing = TIMING_ZERO,
13632 .block_erasers =
13633 {
13634 {
13635 .eraseblocks = { {4 * 1024, 128} },
13636 .block_erase = spi_block_erase_20,
13637 }, {
13638 .eraseblocks = { {32 * 1024, 16} },
13639 .block_erase = spi_block_erase_52,
13640 }, {
13641 .eraseblocks = { {512 * 1024, 1} },
13642 .block_erase = spi_block_erase_60,
Mark Marshall90021f22010-12-03 14:48:11 +000013643 },
13644 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013645 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Mark Marshall90021f22010-12-03 14:48:11 +000013646 .unlock = spi_disable_blockprotect,
Cory Henderson370f5822013-10-19 23:09:16 +000013647 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13648 .read = spi_chip_read,
13649 .voltage = {2700, 3600},
13650 },
13651
13652 {
13653 .vendor = "SST",
13654 .name = "SST25VF040B",
13655 .bustype = BUS_SPI,
13656 .manufacture_id = SST_ID,
13657 .model_id = SST_SST25VF040B,
13658 .total_size = 512,
13659 .page_size = 256,
13660 .feature_bits = FEATURE_WRSR_EWSR,
13661 .tested = TEST_OK_PREW,
13662 .probe = probe_spi_rdid,
13663 .probe_timing = TIMING_ZERO,
13664 .block_erasers =
13665 {
13666 {
13667 .eraseblocks = { {4 * 1024, 128} },
13668 .block_erase = spi_block_erase_20,
13669 }, {
13670 .eraseblocks = { {32 * 1024, 16} },
13671 .block_erase = spi_block_erase_52,
13672 }, {
13673 .eraseblocks = { {64 * 1024, 8} },
13674 .block_erase = spi_block_erase_d8,
13675 }, {
13676 .eraseblocks = { {512 * 1024, 1} },
13677 .block_erase = spi_block_erase_60,
13678 }, {
13679 .eraseblocks = { {512 * 1024, 1} },
13680 .block_erase = spi_block_erase_c7,
13681 },
13682 },
13683 .printlock = spi_prettyprint_status_register_sst25vf040b,
13684 .unlock = spi_disable_blockprotect,
13685 .write = spi_aai_write, /* AAI supported (0xAD) */
13686 .read = spi_chip_read, /* Fast read (0x0B) supported */
13687 .voltage = {2700, 3600},
13688 },
13689
13690 {
13691 .vendor = "SST",
13692 .name = "SST25VF040B.REMS",
13693 .bustype = BUS_SPI,
13694 .manufacture_id = SST_ID,
13695 .model_id = SST_SST25VF040B_REMS,
13696 .total_size = 512,
13697 .page_size = 256,
13698 .feature_bits = FEATURE_WRSR_EWSR,
13699 .tested = TEST_OK_PREW,
13700 .probe = probe_spi_rems,
13701 .probe_timing = TIMING_ZERO,
13702 .block_erasers =
13703 {
13704 {
13705 .eraseblocks = { {4 * 1024, 128} },
13706 .block_erase = spi_block_erase_20,
13707 }, {
13708 .eraseblocks = { {32 * 1024, 16} },
13709 .block_erase = spi_block_erase_52,
13710 }, {
13711 .eraseblocks = { {64 * 1024, 8} },
13712 .block_erase = spi_block_erase_d8,
13713 }, {
13714 .eraseblocks = { {512 * 1024, 1} },
13715 .block_erase = spi_block_erase_60,
13716 }, {
13717 .eraseblocks = { {512 * 1024, 1} },
13718 .block_erase = spi_block_erase_c7,
13719 },
13720 },
13721 .printlock = spi_prettyprint_status_register_sst25vf040b,
13722 .unlock = spi_disable_blockprotect,
13723 .write = spi_aai_write,
13724 .read = spi_chip_read,
13725 .voltage = {2700, 3600},
13726 },
13727
13728 {
13729 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013730 .name = "SST25VF064C",
Ben Gardnerbcf61092015-11-22 02:23:31 +000013731 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013732 .manufacture_id = SST_ID,
13733 .model_id = SST_SST25VF064C,
13734 .total_size = 8192,
Ben Gardnerbcf61092015-11-22 02:23:31 +000013735 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013736 .feature_bits = FEATURE_WRSR_EWSR,
Ben Gardnerbcf61092015-11-22 02:23:31 +000013737 .tested = TEST_OK_PREW,
13738 .probe = probe_spi_rdid,
13739 .probe_timing = TIMING_ZERO,
13740 .block_erasers =
13741 {
13742 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013743 .eraseblocks = { {4 * 1024, 2048} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000013744 .block_erase = spi_block_erase_20,
13745 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013746 .eraseblocks = { {32 * 1024, 256} },
13747 .block_erase = spi_block_erase_52,
13748 }, {
13749 .eraseblocks = { {64 * 1024, 128} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000013750 .block_erase = spi_block_erase_d8,
13751 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013752 .eraseblocks = { {8 * 1024 * 1024, 1} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000013753 .block_erase = spi_block_erase_60,
13754 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013755 .eraseblocks = { {8 * 1024 * 1024, 1} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000013756 .block_erase = spi_block_erase_c7,
13757 },
13758 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100013759 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
13760 .unlock = spi_disable_blockprotect,
Ben Gardnerbcf61092015-11-22 02:23:31 +000013761 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013762 .read = spi_chip_read,
13763 .voltage = {2700, 3600},
Ben Gardnerbcf61092015-11-22 02:23:31 +000013764 },
13765
13766 {
13767 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +000013768 .name = "SST25VF080B",
13769 .bustype = BUS_SPI,
13770 .manufacture_id = SST_ID,
13771 .model_id = SST_SST25VF080B,
13772 .total_size = 1024,
13773 .page_size = 256,
13774 .feature_bits = FEATURE_WRSR_EWSR,
13775 .tested = TEST_OK_PREW,
13776 .probe = probe_spi_rdid,
13777 .probe_timing = TIMING_ZERO,
13778 .block_erasers =
13779 {
13780 {
13781 .eraseblocks = { {4 * 1024, 256} },
13782 .block_erase = spi_block_erase_20,
13783 }, {
13784 .eraseblocks = { {32 * 1024, 32} },
13785 .block_erase = spi_block_erase_52,
13786 }, {
13787 .eraseblocks = { {64 * 1024, 16} },
13788 .block_erase = spi_block_erase_d8,
13789 }, {
13790 .eraseblocks = { {1024 * 1024, 1} },
13791 .block_erase = spi_block_erase_60,
13792 }, {
13793 .eraseblocks = { {1024 * 1024, 1} },
13794 .block_erase = spi_block_erase_c7,
13795 },
13796 },
13797 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
13798 .unlock = spi_disable_blockprotect,
13799 .write = spi_aai_write,
Mark Marshall90021f22010-12-03 14:48:11 +000013800 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000013801 .voltage = {2700, 3600},
Mark Marshall90021f22010-12-03 14:48:11 +000013802 },
13803
13804 {
13805 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013806 .name = "SST25VF512(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013807 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013808 .manufacture_id = SST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013809 .model_id = SST_SST25VF512_REMS,
13810 .total_size = 64,
13811 .page_size = 256,
13812 .feature_bits = FEATURE_WRSR_EWSR,
13813 .tested = TEST_OK_PREW,
13814 .probe = probe_spi_rems,
13815 .probe_timing = TIMING_ZERO,
13816 .block_erasers =
13817 {
13818 {
13819 .eraseblocks = { {4 * 1024, 16} },
13820 .block_erase = spi_block_erase_20,
13821 }, {
13822 .eraseblocks = { {32 * 1024, 2} },
13823 .block_erase = spi_block_erase_52,
13824 }, {
13825 .eraseblocks = { {32 * 1024, 2} },
13826 .block_erase = spi_block_erase_d8, /* Supported by SST25VF512A only */
13827 }, {
13828 .eraseblocks = { {64 * 1024, 1} },
13829 .block_erase = spi_block_erase_60,
13830 }, {
13831 .eraseblocks = { {64 * 1024, 1} },
13832 .block_erase = spi_block_erase_c7, /* Supported by SST25VF512A only */
13833 },
13834 },
13835 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
13836 .unlock = spi_disable_blockprotect,
13837 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13838 .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF512A only */
13839 .voltage = {2700, 3600},
13840 },
13841
13842 {
13843 .vendor = "SST",
13844 .name = "SST25WF010",
13845 .bustype = BUS_SPI,
13846 .manufacture_id = SST_ID,
13847 .model_id = SST_SST25WF010,
13848 .total_size = 128,
13849 .page_size = 256,
13850 .feature_bits = FEATURE_WRSR_EITHER,
13851 .tested = TEST_UNTESTED,
13852 .probe = probe_spi_rdid,
13853 .probe_timing = TIMING_ZERO,
13854 .block_erasers =
13855 {
13856 {
13857 .eraseblocks = { {4 * 1024, 32} },
13858 .block_erase = spi_block_erase_20,
13859 }, {
13860 .eraseblocks = { {32 * 1024, 4} },
13861 .block_erase = spi_block_erase_52,
13862 }, {
13863 .eraseblocks = { {1024 * 128, 1} },
13864 .block_erase = spi_block_erase_60,
13865 }, {
13866 .eraseblocks = { {1024 * 128, 1} },
13867 .block_erase = spi_block_erase_c7,
13868 },
13869 },
13870 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
13871 .unlock = spi_disable_blockprotect_bp2_srwd,
13872 .write = spi_aai_write,
13873 .read = spi_chip_read, /* Fast read (0x0B) supported */
13874 .voltage = {1650, 1950},
13875 },
13876
13877 {
13878 .vendor = "SST",
13879 .name = "SST25WF020",
13880 .bustype = BUS_SPI,
13881 .manufacture_id = SST_ID,
13882 .model_id = SST_SST25WF020,
13883 .total_size = 256,
13884 .page_size = 256,
13885 .feature_bits = FEATURE_WRSR_EITHER,
13886 .tested = TEST_UNTESTED,
13887 .probe = probe_spi_rdid,
13888 .probe_timing = TIMING_ZERO,
13889 .block_erasers =
13890 {
13891 {
13892 .eraseblocks = { {4 * 1024, 64} },
13893 .block_erase = spi_block_erase_20,
13894 }, {
13895 .eraseblocks = { {32 * 1024, 8} },
13896 .block_erase = spi_block_erase_52,
13897 }, {
13898 .eraseblocks = { {64 * 1024, 4} },
13899 .block_erase = spi_block_erase_d8,
13900 }, {
13901 .eraseblocks = { {1024 * 256, 1} },
13902 .block_erase = spi_block_erase_60,
13903 }, {
13904 .eraseblocks = { {1024 * 256, 1} },
13905 .block_erase = spi_block_erase_c7,
13906 },
13907 },
13908 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
13909 .unlock = spi_disable_blockprotect_bp2_srwd,
13910 .write = spi_aai_write,
13911 .read = spi_chip_read, /* Fast read (0x0B) supported */
13912 .voltage = {1650, 1950},
13913 },
13914
13915 {
13916 .vendor = "SST",
13917 .name = "SST25WF020A",
13918 .bustype = BUS_SPI,
13919 .manufacture_id = SANYO_ID, /* See flashchips.h */
13920 .model_id = SST_SST25WF020A,
13921 .total_size = 256,
13922 .page_size = 256,
13923 .feature_bits = FEATURE_WRSR_WREN,
13924 .tested = TEST_UNTESTED,
13925 .probe = probe_spi_rdid,
13926 .probe_timing = TIMING_ZERO,
13927 .block_erasers =
13928 {
13929 {
13930 .eraseblocks = { {4 * 1024, 64} },
13931 .block_erase = spi_block_erase_20,
13932 }, {
13933 .eraseblocks = { {64 * 1024, 4} },
13934 .block_erase = spi_block_erase_d8,
13935 }, {
13936 .eraseblocks = { {256 * 1024, 1} },
13937 .block_erase = spi_block_erase_60,
13938 }, {
13939 .eraseblocks = { {256 * 1024, 1} },
13940 .block_erase = spi_block_erase_c7,
13941 },
13942 },
13943 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
13944 .unlock = spi_disable_blockprotect_bp2_srwd,
13945 .write = spi_chip_write_256,
13946 .read = spi_chip_read, /* Fast read (0x0B) supported */
13947 .voltage = {1650, 1950},
13948 },
13949
13950 {
13951 .vendor = "SST",
13952 .name = "SST25WF040",
13953 .bustype = BUS_SPI,
13954 .manufacture_id = SST_ID,
13955 .model_id = SST_SST25WF040,
13956 .total_size = 512,
13957 .page_size = 256,
13958 .feature_bits = FEATURE_WRSR_EITHER,
13959 .tested = TEST_UNTESTED,
13960 .probe = probe_spi_rdid,
13961 .probe_timing = TIMING_ZERO,
13962 .block_erasers =
13963 {
13964 {
13965 .eraseblocks = { {4 * 1024, 128} },
13966 .block_erase = spi_block_erase_20,
13967 }, {
13968 .eraseblocks = { {32 * 1024, 16} },
13969 .block_erase = spi_block_erase_52,
13970 }, {
13971 .eraseblocks = { {64 * 1024, 8} },
13972 .block_erase = spi_block_erase_d8,
13973 }, {
13974 .eraseblocks = { {1024 * 512, 1} },
13975 .block_erase = spi_block_erase_60,
13976 }, {
13977 .eraseblocks = { {1024 * 512, 1} },
13978 .block_erase = spi_block_erase_c7,
13979 },
13980 },
13981 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
13982 .unlock = spi_disable_blockprotect_bp2_srwd,
13983 .write = spi_aai_write,
13984 .read = spi_chip_read, /* Fast read (0x0B) supported */
13985 .voltage = {1650, 1950},
13986 },
13987
13988 {
13989 .vendor = "SST",
13990 .name = "SST25WF040B",
13991 .bustype = BUS_SPI,
13992 .manufacture_id = SANYO_ID, /* See flashchips.h */
13993 .model_id = SST_SST25WF040B,
13994 .total_size = 512,
13995 .page_size = 256,
13996 .feature_bits = FEATURE_WRSR_WREN,
13997 .tested = TEST_UNTESTED,
13998 .probe = probe_spi_rdid,
13999 .probe_timing = TIMING_ZERO,
14000 .block_erasers =
14001 {
14002 {
14003 .eraseblocks = { {4 * 1024, 128} },
14004 .block_erase = spi_block_erase_20,
14005 }, {
14006 .eraseblocks = { {64 * 1024, 8} },
14007 .block_erase = spi_block_erase_d8,
14008 }, {
14009 .eraseblocks = { {512 * 1024, 1} },
14010 .block_erase = spi_block_erase_60,
14011 }, {
14012 .eraseblocks = { {512 * 1024, 1} },
14013 .block_erase = spi_block_erase_c7,
14014 },
14015 },
14016 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
14017 .unlock = spi_disable_blockprotect_bp2_srwd,
14018 .write = spi_chip_write_256,
14019 .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */
14020 .voltage = {1650, 1950},
14021 },
14022
14023 {
14024 .vendor = "SST",
14025 .name = "SST25WF080",
14026 .bustype = BUS_SPI,
14027 .manufacture_id = SST_ID,
14028 .model_id = SST_SST25WF080,
14029 .total_size = 1024,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014030 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000014031 .feature_bits = FEATURE_WRSR_EITHER,
Mark Marshall90021f22010-12-03 14:48:11 +000014032 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014033 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000014034 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014035 .block_erasers =
14036 {
14037 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014038 .eraseblocks = { {4 * 1024, 256} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014039 .block_erase = spi_block_erase_20,
14040 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014041 .eraseblocks = { {32 * 1024, 32} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014042 .block_erase = spi_block_erase_52,
14043 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014044 .eraseblocks = { {64 * 1024, 16} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014045 .block_erase = spi_block_erase_d8,
14046 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014047 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014048 .block_erase = spi_block_erase_60,
14049 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014050 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014051 .block_erase = spi_block_erase_c7,
14052 },
14053 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100014054 .printlock = spi_prettyprint_status_register_sst25, /* *does* have a BP3 but it is useless */
14055 .unlock = spi_disable_blockprotect_bp3_srwd,
Joshua Roys87955bf2011-08-01 18:39:28 +000014056 .write = spi_aai_write,
Alan Green1f9cc7d2019-07-01 11:10:45 +100014057 .read = spi_chip_read, /* Fast read (0x0B) supported */
14058 .voltage = {1650, 1950},
FENG yu ningff692fb2008-12-08 18:15:10 +000014059 },
14060
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014061 {
14062 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100014063 .name = "SST25WF080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014064 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +100014065 .manufacture_id = SANYO_ID, /* See flashchips.h */
14066 .model_id = SST_SST25WF080B,
14067 .total_size = 1024,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014068 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100014069 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerfcf6a8c2011-05-18 01:32:00 +000014070 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014071 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000014072 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014073 .block_erasers =
14074 {
14075 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014076 .eraseblocks = { {4 * 1024, 256} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014077 .block_erase = spi_block_erase_20,
14078 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014079 .eraseblocks = { {64 * 1024, 16} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014080 .block_erase = spi_block_erase_d8,
14081 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014082 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014083 .block_erase = spi_block_erase_60,
14084 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014085 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014086 .block_erase = spi_block_erase_c7,
14087 },
14088 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100014089 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
14090 .unlock = spi_disable_blockprotect_bp2_srwd,
Helge Wagner1db7a442010-10-05 22:29:08 +000014091 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100014092 .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */
14093 .voltage = {1650, 1950},
14094 },
14095
14096 {
14097 .vendor = "SST",
14098 .name = "SST25WF512",
14099 .bustype = BUS_SPI,
14100 .manufacture_id = SST_ID,
14101 .model_id = SST_SST25WF512,
14102 .total_size = 64,
14103 .page_size = 256,
14104 .feature_bits = FEATURE_WRSR_EITHER,
14105 .tested = TEST_UNTESTED,
14106 .probe = probe_spi_rdid,
14107 .probe_timing = TIMING_ZERO,
14108 .block_erasers =
14109 {
14110 {
14111 .eraseblocks = { {4 * 1024, 16} },
14112 .block_erase = spi_block_erase_20,
14113 }, {
14114 .eraseblocks = { {32 * 1024, 2} },
14115 .block_erase = spi_block_erase_52,
14116 }, {
14117 .eraseblocks = { {1024 * 64, 1} },
14118 .block_erase = spi_block_erase_60,
14119 }, {
14120 .eraseblocks = { {1024 * 64, 1} },
14121 .block_erase = spi_block_erase_c7,
14122 },
14123 },
14124 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
14125 .unlock = spi_disable_blockprotect_bp2_srwd,
14126 .write = spi_aai_write,
14127 .read = spi_chip_read, /* Fast read (0x0B) supported */
14128 .voltage = {1650, 1950},
Ed Swierk86f4e6d2010-07-21 15:02:22 +000014129 },
14130
14131 {
14132 .vendor = "SST",
Nico Hubera2eaf4a2023-02-15 22:56:53 +010014133 .name = "SST26VF016",
14134 .bustype = BUS_SPI,
14135 .manufacture_id = SST_ID,
14136 .model_id = SST_SST26VF016,
14137 .total_size = 2048,
14138 .page_size = 256,
14139 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
14140 .tested = TEST_UNTESTED,
14141 .probe = probe_spi_rdid,
14142 .probe_timing = TIMING_ZERO,
14143 .block_erasers =
14144 {
14145 {
14146 .eraseblocks = { {4 * 1024, 512} },
14147 .block_erase = spi_block_erase_20,
14148 }, {
14149 .eraseblocks = {
14150 {8 * 1024, 4},
14151 {32 * 1024, 1},
14152 {64 * 1024, 30},
14153 {32 * 1024, 1},
14154 {8 * 1024, 4},
14155 },
14156 .block_erase = spi_block_erase_d8,
14157 }, {
14158 .eraseblocks = { {2 * 1024 * 1024, 1} },
14159 .block_erase = spi_block_erase_c7,
14160 },
14161 },
14162 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14163 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
14164 .write = spi_chip_write_256, /* Multi I/O supported */
14165 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
14166 .voltage = {2700, 3600},
14167 },
14168
14169 {
14170 .vendor = "SST",
Wei Hu25584de2018-04-30 14:02:08 -070014171 .name = "SST26VF016B(A)",
14172 .bustype = BUS_SPI,
14173 .manufacture_id = SST_ID,
14174 .model_id = SST_SST26VF016B,
14175 .total_size = 2048,
14176 .page_size = 256,
14177 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
14178 .tested = TEST_OK_PREW,
14179 .probe = probe_spi_rdid,
14180 .probe_timing = TIMING_ZERO,
14181 .block_erasers =
14182 {
14183 {
14184 .eraseblocks = { {4 * 1024, 512} },
14185 .block_erase = spi_block_erase_20,
14186 }, {
14187 .eraseblocks = {
14188 {8 * 1024, 4},
14189 {32 * 1024, 1},
14190 {64 * 1024, 30},
14191 {32 * 1024, 1},
14192 {8 * 1024, 4},
14193 },
14194 .block_erase = spi_block_erase_d8,
14195 }, {
14196 .eraseblocks = { {2 * 1024 * 1024, 1} },
14197 .block_erase = spi_block_erase_c7,
14198 },
14199 },
14200 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14201 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
14202 .write = spi_chip_write_256, /* Multi I/O supported */
14203 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
14204 .voltage = {2700, 3600},
14205 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100014206
Wei Hu25584de2018-04-30 14:02:08 -070014207 {
14208 .vendor = "SST",
Nico Hubera2eaf4a2023-02-15 22:56:53 +010014209 .name = "SST26VF032",
14210 .bustype = BUS_SPI,
14211 .manufacture_id = SST_ID,
14212 .model_id = SST_SST26VF032,
14213 .total_size = 4096,
14214 .page_size = 256,
14215 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
14216 .tested = TEST_UNTESTED,
14217 .probe = probe_spi_rdid,
14218 .probe_timing = TIMING_ZERO,
14219 .block_erasers =
14220 {
14221 {
14222 .eraseblocks = { {4 * 1024, 1024} },
14223 .block_erase = spi_block_erase_20,
14224 }, {
14225 .eraseblocks = {
14226 {8 * 1024, 4},
14227 {32 * 1024, 1},
14228 {64 * 1024, 62},
14229 {32 * 1024, 1},
14230 {8 * 1024, 4},
14231 },
14232 .block_erase = spi_block_erase_d8,
14233 }, {
14234 .eraseblocks = { {4 * 1024 * 1024, 1} },
14235 .block_erase = spi_block_erase_c7,
14236 },
14237 },
14238 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14239 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
14240 .write = spi_chip_write_256, /* Multi I/O supported */
14241 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
14242 .voltage = {2700, 3600},
14243 },
14244
14245 {
14246 .vendor = "SST",
Wei Hu25584de2018-04-30 14:02:08 -070014247 .name = "SST26VF032B(A)",
14248 .bustype = BUS_SPI,
14249 .manufacture_id = SST_ID,
14250 .model_id = SST_SST26VF032B,
14251 .total_size = 4096,
14252 .page_size = 256,
14253 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
14254 .tested = TEST_UNTESTED,
14255 .probe = probe_spi_rdid,
14256 .probe_timing = TIMING_ZERO,
14257 .block_erasers =
14258 {
14259 {
14260 .eraseblocks = { {4 * 1024, 1024} },
14261 .block_erase = spi_block_erase_20,
14262 }, {
14263 .eraseblocks = {
14264 {8 * 1024, 4},
14265 {32 * 1024, 1},
14266 {64 * 1024, 62},
14267 {32 * 1024, 1},
14268 {8 * 1024, 4},
14269 },
14270 .block_erase = spi_block_erase_d8,
14271 }, {
14272 .eraseblocks = { {4 * 1024 * 1024, 1} },
14273 .block_erase = spi_block_erase_c7,
14274 },
14275 },
14276 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14277 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
14278 .write = spi_chip_write_256, /* Multi I/O supported */
14279 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
14280 .voltage = {2700, 3600},
14281 },
14282
Wei Hu25584de2018-04-30 14:02:08 -070014283 {
14284 .vendor = "SST",
14285 .name = "SST26VF064B(A)",
14286 .bustype = BUS_SPI,
14287 .manufacture_id = SST_ID,
14288 .model_id = SST_SST26VF064B,
14289 .total_size = 8192,
14290 .page_size = 256,
14291 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
14292 .tested = TEST_OK_PREW,
14293 .probe = probe_spi_rdid,
14294 .probe_timing = TIMING_ZERO,
14295 .block_erasers =
14296 {
14297 {
14298 .eraseblocks = { {4 * 1024, 2048} },
14299 .block_erase = spi_block_erase_20,
14300 }, {
14301 .eraseblocks = {
14302 {8 * 1024, 4},
14303 {32 * 1024, 1},
14304 {64 * 1024, 126},
14305 {32 * 1024, 1},
14306 {8 * 1024, 4},
14307 },
14308 .block_erase = spi_block_erase_d8,
14309 }, {
14310 .eraseblocks = { {8 * 1024 * 1024, 1} },
14311 .block_erase = spi_block_erase_c7,
14312 },
14313 },
14314 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14315 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
14316 .write = spi_chip_write_256, /* Multi I/O supported */
14317 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
14318 .voltage = {2700, 3600},
14319 },
14320
14321 {
14322 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014323 .name = "SST28SF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014324 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014325 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014326 .model_id = SST_SST28SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014327 .total_size = 512,
14328 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000014329 .feature_bits = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014330 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014331 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014332 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014333 .block_erasers =
14334 {
14335 {
14336 .eraseblocks = { {128, 4096} },
14337 .block_erase = erase_sector_28sf040,
14338 }, {
14339 .eraseblocks = { {512 * 1024, 1} },
14340 .block_erase = erase_chip_28sf040,
14341 }
14342 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014343 .unlock = unprotect_28sf040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014344 .write = write_28sf040,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014345 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014346 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014347 },
14348
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014349 {
14350 .vendor = "SST",
14351 .name = "SST29EE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014352 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014353 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014354 .model_id = SST_SST29EE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014355 .total_size = 128,
14356 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000014357 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000014358 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014359 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000014360 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014361 .block_erasers =
14362 {
14363 {
14364 .eraseblocks = { {128 * 1024, 1} },
14365 .block_erase = erase_chip_block_jedec,
14366 }
14367 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014368 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014369 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014370 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014371 },
14372
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014373 {
14374 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014375 .name = "SST29EE020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014376 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014377 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014378 .model_id = SST_SST29EE020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014379 .total_size = 256,
14380 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000014381 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000014382 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014383 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014384 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014385 .block_erasers =
14386 {
14387 {
14388 .eraseblocks = { {256 * 1024, 1} },
14389 .block_erase = erase_chip_block_jedec,
14390 }
14391 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014392 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014393 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014394 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014395 },
14396
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014397 {
14398 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100014399 .name = "SST29LE010",
14400 .bustype = BUS_PARALLEL,
14401 .manufacture_id = SST_ID,
14402 .model_id = SST_SST29LE010,
14403 .total_size = 128,
14404 .page_size = 128,
14405 .feature_bits = FEATURE_LONG_RESET,
14406 .tested = TEST_UNTESTED,
14407 .probe = probe_jedec,
14408 .probe_timing = 10,
14409 .block_erasers =
14410 {
14411 {
14412 .eraseblocks = { {128 * 1024, 1} },
14413 .block_erase = erase_chip_block_jedec,
14414 }
14415 },
14416 .write = write_jedec,
14417 .read = read_memmapped,
14418 .voltage = {3000, 3600},
14419 },
14420
14421 {
14422 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014423 .name = "SST29LE020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014424 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014425 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014426 .model_id = SST_SST29LE020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014427 .total_size = 256,
14428 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000014429 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000014430 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014431 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000014432 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014433 .block_erasers =
14434 {
14435 {
14436 .eraseblocks = { {256 * 1024, 1} },
14437 .block_erase = erase_chip_block_jedec,
14438 }
14439 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014440 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014441 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014442 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014443 },
14444
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014445 {
14446 .vendor = "SST",
14447 .name = "SST39SF010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014448 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014449 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014450 .model_id = SST_SST39SF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014451 .total_size = 128,
14452 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014453 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000014454 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014455 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000014456 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014457 .block_erasers =
14458 {
14459 {
14460 .eraseblocks = { {4 * 1024, 32} },
14461 .block_erase = erase_sector_jedec,
14462 }, {
14463 .eraseblocks = { {128 * 1024, 1} },
14464 .block_erase = erase_chip_block_jedec,
14465 }
14466 },
Sean Nelson35727f72010-01-28 23:55:12 +000014467 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014468 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014469 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014470 },
14471
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014472 {
14473 .vendor = "SST",
14474 .name = "SST39SF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014475 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014476 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014477 .model_id = SST_SST39SF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014478 .total_size = 256,
14479 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014480 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann19f46f22011-06-18 22:56:14 +000014481 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014482 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014483 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014484 .block_erasers =
14485 {
14486 {
14487 .eraseblocks = { {4 * 1024, 64} },
14488 .block_erase = erase_sector_jedec,
14489 }, {
14490 .eraseblocks = { {256 * 1024, 1} },
14491 .block_erase = erase_chip_block_jedec,
14492 }
14493 },
Sean Nelson35727f72010-01-28 23:55:12 +000014494 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014495 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014496 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014497 },
14498
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014499 {
14500 .vendor = "SST",
14501 .name = "SST39SF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014502 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014503 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014504 .model_id = SST_SST39SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014505 .total_size = 512,
14506 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014507 .feature_bits = FEATURE_EITHER_RESET,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +000014508 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014509 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014510 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014511 .block_erasers =
14512 {
14513 {
14514 .eraseblocks = { {4 * 1024, 128} },
14515 .block_erase = erase_sector_jedec,
14516 }, {
14517 .eraseblocks = { {512 * 1024, 1} },
14518 .block_erase = erase_chip_block_jedec,
14519 }
14520 },
Sean Nelson35727f72010-01-28 23:55:12 +000014521 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014522 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014523 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014524 },
14525
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014526 {
14527 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100014528 .name = "SST39SF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014529 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014530 .manufacture_id = SST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100014531 .model_id = SST_SST39SF512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014532 .total_size = 64,
14533 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014534 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd7d423b2012-10-20 09:13:16 +000014535 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014536 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014537 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014538 .block_erasers =
14539 {
14540 {
14541 .eraseblocks = { {4 * 1024, 16} },
14542 .block_erase = erase_sector_jedec,
14543 }, {
14544 .eraseblocks = { {64 * 1024, 1} },
14545 .block_erase = erase_chip_block_jedec,
14546 }
14547 },
Sean Nelson35727f72010-01-28 23:55:12 +000014548 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014549 .read = read_memmapped,
Alan Green1f9cc7d2019-07-01 11:10:45 +100014550 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014551 },
14552
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014553 {
14554 .vendor = "SST",
14555 .name = "SST39VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014556 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014557 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014558 .model_id = SST_SST39VF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014559 .total_size = 128,
14560 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014561 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd94d25d2012-07-28 03:17:15 +000014562 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014563 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014564 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014565 .block_erasers =
14566 {
14567 {
14568 .eraseblocks = { {4 * 1024, 32} },
14569 .block_erase = erase_sector_jedec,
14570 }, {
14571 .eraseblocks = { {128 * 1024, 1} },
14572 .block_erase = erase_chip_block_jedec,
14573 }
14574 },
Sean Nelson35727f72010-01-28 23:55:12 +000014575 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014576 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014577 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014578 },
14579
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014580 {
14581 .vendor = "SST",
14582 .name = "SST39VF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014583 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014584 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014585 .model_id = SST_SST39VF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014586 .total_size = 256,
14587 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014588 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner5c316f92015-02-08 21:57:52 +000014589 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014590 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014591 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014592 .block_erasers =
14593 {
14594 {
14595 .eraseblocks = { {4 * 1024, 64} },
14596 .block_erase = erase_sector_jedec,
14597 }, {
14598 .eraseblocks = { {256 * 1024, 1} },
14599 .block_erase = erase_chip_block_jedec,
14600 }
14601 },
Sean Nelson35727f72010-01-28 23:55:12 +000014602 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014603 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014604 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014605 },
14606
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014607 {
14608 .vendor = "SST",
14609 .name = "SST39VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014610 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014611 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014612 .model_id = SST_SST39VF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014613 .total_size = 512,
14614 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014615 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner23e10b82016-01-23 16:16:49 +000014616 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014617 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014618 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014619 .block_erasers =
14620 {
14621 {
14622 .eraseblocks = { {4 * 1024, 128} },
14623 .block_erase = erase_sector_jedec,
14624 }, {
14625 .eraseblocks = { {512 * 1024, 1} },
14626 .block_erase = erase_chip_block_jedec,
14627 }
14628 },
Sean Nelson35727f72010-01-28 23:55:12 +000014629 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014630 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014631 .voltage = {2700, 3600},
Carl-Daniel Hailfinger90eff152008-12-08 23:51:45 +000014632 },
FENG yu ningff692fb2008-12-08 18:15:10 +000014633
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014634 {
14635 .vendor = "SST",
Peter Stuge8440cc02009-01-25 23:55:12 +000014636 .name = "SST39VF080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014637 .bustype = BUS_PARALLEL,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000014638 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014639 .model_id = SST_SST39VF080,
Peter Stuge8440cc02009-01-25 23:55:12 +000014640 .total_size = 1024,
14641 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014642 .feature_bits = FEATURE_EITHER_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +000014643 .tested = TEST_UNTESTED,
14644 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014645 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014646 .block_erasers =
14647 {
14648 {
14649 .eraseblocks = { {4 * 1024, 256} },
14650 .block_erase = erase_sector_jedec,
14651 }, {
14652 .eraseblocks = { {64 * 1024, 16} },
14653 .block_erase = erase_block_jedec,
14654 }, {
14655 .eraseblocks = { {1024 * 1024, 1} },
14656 .block_erase = erase_chip_block_jedec,
14657 }
14658 },
Sean Nelson35727f72010-01-28 23:55:12 +000014659 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014660 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014661 .voltage = {2700, 3600},
Peter Stuge8440cc02009-01-25 23:55:12 +000014662 },
14663
14664 {
14665 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100014666 .name = "SST39VF512",
14667 .bustype = BUS_PARALLEL,
14668 .manufacture_id = SST_ID,
14669 .model_id = SST_SST39VF512,
14670 .total_size = 64,
14671 .page_size = 4096,
14672 .feature_bits = FEATURE_EITHER_RESET,
14673 .tested = TEST_OK_PREW,
14674 .probe = probe_jedec,
14675 .probe_timing = 1, /* 150 ns */
14676 .block_erasers =
14677 {
14678 {
14679 .eraseblocks = { {4 * 1024, 16} },
14680 .block_erase = erase_sector_jedec,
14681 }, {
14682 .eraseblocks = { {64 * 1024, 1} },
14683 .block_erase = erase_chip_block_jedec,
14684 }
14685 },
14686 .write = write_jedec_1,
14687 .read = read_memmapped,
14688 .voltage = {2700, 3600},
14689 },
14690
14691 {
14692 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014693 .name = "SST49LF002A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014694 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014695 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014696 .model_id = SST_SST49LF002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014697 .total_size = 256,
14698 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014699 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000014700 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014701 .probe = probe_jedec,
14702 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014703 .block_erasers =
14704 {
14705 {
14706 .eraseblocks = { {4 * 1024, 64} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014707 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014708 }, {
14709 .eraseblocks = { {16 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014710 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014711 }, {
14712 .eraseblocks = { {256 * 1024, 1} },
14713 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
14714 }
14715 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014716 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014717 .unlock = unlock_sst_fwhub,
14718 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014719 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014720 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014721 },
14722
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014723 {
14724 .vendor = "SST",
14725 .name = "SST49LF003A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014726 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014727 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014728 .model_id = SST_SST49LF003A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014729 .total_size = 384,
14730 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014731 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000014732 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014733 .probe = probe_jedec,
14734 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014735 .block_erasers =
14736 {
14737 {
14738 .eraseblocks = { {4 * 1024, 96} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014739 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014740 }, {
14741 .eraseblocks = { {64 * 1024, 6} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014742 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014743 }, {
14744 .eraseblocks = { {384 * 1024, 1} },
14745 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
14746 }
14747 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014748 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014749 .unlock = unlock_sst_fwhub,
14750 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014751 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014752 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014753 },
14754
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014755 {
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000014756 /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB)
14757 * and is only honored for 64k block erase, but not 4k sector erase.
14758 */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014759 .vendor = "SST",
14760 .name = "SST49LF004A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014761 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014762 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014763 .model_id = SST_SST49LF004A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014764 .total_size = 512,
14765 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014766 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000014767 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014768 .probe = probe_jedec,
14769 .probe_timing = 1, /* 150 ns */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000014770 .block_erasers =
14771 {
14772 {
14773 .eraseblocks = { {4 * 1024, 128} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014774 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000014775 }, {
14776 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014777 .block_erase = erase_block_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000014778 }, {
14779 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson51c83fb2010-01-20 20:55:53 +000014780 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000014781 },
14782 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014783 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014784 .unlock = unlock_sst_fwhub,
14785 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014786 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014787 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014788 },
14789
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014790 {
14791 .vendor = "SST",
14792 .name = "SST49LF004C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014793 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014794 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014795 .model_id = SST_SST49LF004C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014796 .total_size = 512,
14797 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014798 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014799 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014800 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014801 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014802 .block_erasers =
14803 {
14804 {
14805 .eraseblocks = { {4 * 1024, 128} },
14806 .block_erase = erase_sector_49lfxxxc,
14807 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000014808 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000014809 {64 * 1024, 7},
14810 {32 * 1024, 1},
14811 {8 * 1024, 2},
14812 {16 * 1024, 1},
14813 },
Sean Nelson69e58112010-03-23 17:10:28 +000014814 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014815 }
14816 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014817 .printlock = printlock_regspace2_block_eraser_1,
14818 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014819 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014820 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014821 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014822 },
14823
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014824 {
14825 .vendor = "SST",
14826 .name = "SST49LF008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014827 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014828 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014829 .model_id = SST_SST49LF008A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014830 .total_size = 1024,
14831 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014832 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000014833 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014834 .probe = probe_jedec,
14835 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014836 .block_erasers =
14837 {
14838 {
14839 .eraseblocks = { {4 * 1024, 256} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014840 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014841 }, {
14842 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014843 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014844 }, {
14845 .eraseblocks = { {1024 * 1024, 1} },
14846 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
14847 }
14848 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014849 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014850 .unlock = unlock_sst_fwhub,
14851 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014852 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014853 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014854 },
14855
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014856 {
14857 .vendor = "SST",
14858 .name = "SST49LF008C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014859 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014860 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014861 .model_id = SST_SST49LF008C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014862 .total_size = 1024,
14863 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014864 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014865 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014866 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014867 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014868 .block_erasers =
14869 {
14870 {
14871 .eraseblocks = { {4 * 1024, 256} },
14872 .block_erase = erase_sector_49lfxxxc,
14873 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000014874 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000014875 {64 * 1024, 15},
14876 {32 * 1024, 1},
14877 {8 * 1024, 2},
14878 {16 * 1024, 1},
14879 },
Sean Nelson69e58112010-03-23 17:10:28 +000014880 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014881 }
14882 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014883 .printlock = printlock_regspace2_block_eraser_1,
14884 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014885 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014886 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014887 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014888 },
14889
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014890 {
14891 .vendor = "SST",
14892 .name = "SST49LF016C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014893 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014894 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014895 .model_id = SST_SST49LF016C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014896 .total_size = 2048,
14897 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014898 .feature_bits = FEATURE_REGISTERMAP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000014899 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014900 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014901 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014902 .block_erasers =
14903 {
14904 {
14905 .eraseblocks = { {4 * 1024, 512} },
14906 .block_erase = erase_sector_49lfxxxc,
14907 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000014908 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000014909 {64 * 1024, 31},
14910 {32 * 1024, 1},
14911 {8 * 1024, 2},
14912 {16 * 1024, 1},
14913 },
Sean Nelson69e58112010-03-23 17:10:28 +000014914 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014915 }
14916 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014917 .printlock = printlock_regspace2_block_eraser_1,
14918 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014919 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014920 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014921 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014922 },
14923
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014924 {
14925 .vendor = "SST",
14926 .name = "SST49LF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014927 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014928 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014929 .model_id = SST_SST49LF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014930 .total_size = 256,
14931 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014932 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +000014933 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014934 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014935 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014936 .block_erasers =
14937 {
14938 {
14939 .eraseblocks = { {4 * 1024, 64} },
14940 .block_erase = erase_sector_jedec,
14941 }, {
14942 .eraseblocks = { {16 * 1024, 16} },
14943 .block_erase = erase_block_jedec,
14944 }, {
14945 .eraseblocks = { {256 * 1024, 1} },
14946 .block_erase = NULL,
14947 }
14948 },
Sean Nelson35727f72010-01-28 23:55:12 +000014949 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014950 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014951 .voltage = {3000, 3600},
Sven Schnellec208dfb2009-01-07 12:35:09 +000014952 },
14953
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014954 {
14955 .vendor = "SST",
14956 .name = "SST49LF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014957 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014958 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014959 .model_id = SST_SST49LF020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014960 .total_size = 256,
Carl-Daniel Hailfingerda654322009-07-23 01:44:38 +000014961 .page_size = 4 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014962 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000014963 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014964 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014965 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014966 .block_erasers =
14967 {
14968 {
14969 .eraseblocks = { {4 * 1024, 64} },
14970 .block_erase = erase_sector_jedec,
14971 }, {
14972 .eraseblocks = { {16 * 1024, 16} },
14973 .block_erase = erase_block_jedec,
14974 }, {
14975 .eraseblocks = { {256 * 1024, 1} },
14976 .block_erase = NULL,
14977 }
14978 },
Sean Nelson35727f72010-01-28 23:55:12 +000014979 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014980 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014981 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014982 },
14983
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014984 {
14985 .vendor = "SST",
14986 .name = "SST49LF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014987 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014988 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014989 .model_id = SST_SST49LF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014990 .total_size = 512,
14991 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014992 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000014993 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014994 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014995 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014996 .block_erasers =
14997 {
14998 {
14999 .eraseblocks = { {4 * 1024, 128} },
15000 .block_erase = erase_sector_jedec,
15001 }, {
15002 .eraseblocks = { {64 * 1024, 8} },
15003 .block_erase = erase_block_jedec,
15004 }, {
15005 .eraseblocks = { {512 * 1024, 1} },
15006 .block_erase = NULL,
15007 }
15008 },
Sean Nelson35727f72010-01-28 23:55:12 +000015009 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015010 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015011 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000015012 },
15013
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015014 {
15015 .vendor = "SST",
15016 .name = "SST49LF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015017 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015018 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000015019 .model_id = SST_SST49LF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015020 .total_size = 512,
15021 .page_size = 64 * 1024,
Joshua Roysa84b0bd2010-08-16 22:12:39 +000015022 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000015023 .tested = TEST_OK_PREW,
Sean Nelson51c83fb2010-01-20 20:55:53 +000015024 .probe = probe_jedec,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015025 .probe_timing = 1, /* 150ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000015026 .block_erasers =
15027 {
15028 {
15029 .eraseblocks = { {4 * 1024, 128} },
15030 .block_erase = erase_sector_jedec,
15031 }, {
15032 .eraseblocks = { {64 * 1024, 8} },
15033 .block_erase = erase_block_jedec,
15034 }, {
15035 .eraseblocks = { {512 * 1024, 1} },
15036 .block_erase = NULL,
15037 }
15038 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015039 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000015040 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015041 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015042 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000015043 },
15044
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015045 {
15046 .vendor = "SST",
15047 .name = "SST49LF080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015048 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015049 .manufacture_id = SST_ID,
Elyes HAOUAS124ef382018-03-27 12:15:09 +020015050 .model_id = SST_SST49LF080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015051 .total_size = 1024,
15052 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000015053 .feature_bits = FEATURE_EITHER_RESET,
Brandon Dowdyf07bf322011-03-06 18:31:11 +000015054 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015055 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000015056 .probe_timing = TIMING_FIXME,
Sean Nelson51c83fb2010-01-20 20:55:53 +000015057 .block_erasers =
15058 {
15059 {
15060 .eraseblocks = { {4 * 1024, 256} },
15061 .block_erase = erase_sector_jedec,
15062 }, {
15063 .eraseblocks = { {64 * 1024, 16} },
15064 .block_erase = erase_block_jedec,
15065 }, {
15066 .eraseblocks = { {1024 * 1024, 1} },
15067 .block_erase = NULL,
15068 }
15069 },
Sean Nelson35727f72010-01-28 23:55:12 +000015070 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015071 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015072 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000015073 },
15074
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015075 {
15076 .vendor = "SST",
15077 .name = "SST49LF160C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015078 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015079 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000015080 .model_id = SST_SST49LF160C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015081 .total_size = 2048,
15082 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015083 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015084 .tested = TEST_OK_PR,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015085 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000015086 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000015087 .block_erasers =
15088 {
15089 {
15090 .eraseblocks = { {4 * 1024, 512} },
15091 .block_erase = erase_sector_49lfxxxc,
15092 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000015093 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000015094 {64 * 1024, 31},
15095 {32 * 1024, 1},
15096 {8 * 1024, 2},
15097 {16 * 1024, 1},
15098 },
Sean Nelson69e58112010-03-23 17:10:28 +000015099 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000015100 }
15101 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015102 .printlock = printlock_regspace2_block_eraser_1,
15103 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000015104 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015105 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015106 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000015107 },
15108
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015109 {
15110 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015111 .name = "M29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015112 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015113 .manufacture_id = ST_ID,
15114 .model_id = ST_M29F002B,
15115 .total_size = 256,
15116 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015117 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015118 .tested = TEST_UNTESTED,
15119 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000015120 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000015121 .block_erasers =
15122 {
15123 {
15124 .eraseblocks = {
15125 {16 * 1024, 1},
15126 {8 * 1024, 2},
15127 {32 * 1024, 1},
15128 {64 * 1024, 3},
15129 },
15130 .block_erase = erase_sector_jedec,
15131 }, {
15132 .eraseblocks = { {256 * 1024, 1} },
15133 .block_erase = erase_chip_block_jedec,
15134 }
15135 },
Sean Nelson35727f72010-01-28 23:55:12 +000015136 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015137 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000015138 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000015139 },
15140
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015141 {
15142 .vendor = "ST",
15143 .name = "M29F002T/NT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015144 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015145 .manufacture_id = ST_ID,
15146 .model_id = ST_M29F002T,
15147 .total_size = 256,
15148 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015149 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stefan Taunere34e3e82013-01-01 00:06:51 +000015150 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015151 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000015152 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000015153 .block_erasers =
15154 {
15155 {
15156 .eraseblocks = {
15157 {64 * 1024, 3},
15158 {32 * 1024, 1},
15159 {8 * 1024, 2},
15160 {16 * 1024, 1},
15161 },
15162 .block_erase = erase_sector_jedec,
15163 }, {
15164 .eraseblocks = { {256 * 1024, 1} },
15165 .block_erase = erase_chip_block_jedec,
15166 }
15167 },
Sean Nelson35727f72010-01-28 23:55:12 +000015168 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015169 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000015170 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000015171 },
15172
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015173 {
15174 .vendor = "ST",
15175 .name = "M29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015176 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015177 .manufacture_id = ST_ID,
15178 .model_id = ST_M29F040B,
15179 .total_size = 512,
15180 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015181 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
15182 .tested = TEST_UNTESTED,
15183 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +000015184 .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */
Sean Nelson56358aa2010-01-19 16:08:51 +000015185 .block_erasers =
15186 {
15187 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015188 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +000015189 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000015190 }, {
15191 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000015192 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000015193 }
15194 },
Sean Nelson35727f72010-01-28 23:55:12 +000015195 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015196 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015197 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000015198 },
15199
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015200 {
Sean Nelson35727f72010-01-28 23:55:12 +000015201 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015202 .vendor = "ST",
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000015203 .name = "M29F400BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015204 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000015205 .manufacture_id = ST_ID,
15206 .model_id = ST_M29F400BB,
15207 .total_size = 512,
15208 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015209 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000015210 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015211 .probe = probe_jedec,
15212 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000015213 .block_erasers =
15214 {
15215 {
15216 .eraseblocks = {
15217 {16 * 1024, 1},
15218 {8 * 1024, 2},
15219 {32 * 1024, 1},
15220 {64 * 1024, 7},
15221 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015222 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000015223 }, {
15224 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015225 .block_erase = erase_chip_block_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000015226 }
15227 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015228 .write = write_jedec_1,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000015229 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015230 .voltage = {4500, 5500},
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000015231 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100015232
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000015233 {
15234 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
15235 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015236 .name = "M29F400BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015237 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015238 .manufacture_id = ST_ID,
15239 .model_id = ST_M29F400BT,
15240 .total_size = 512,
15241 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015242 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015243 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015244 .probe = probe_jedec,
15245 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson56358aa2010-01-19 16:08:51 +000015246 .block_erasers =
15247 {
15248 {
15249 .eraseblocks = {
15250 {64 * 1024, 7},
15251 {32 * 1024, 1},
15252 {8 * 1024, 2},
15253 {16 * 1024, 1},
15254 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015255 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000015256 }, {
15257 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015258 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000015259 }
15260 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015261 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015262 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015263 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000015264 },
15265
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015266 {
15267 .vendor = "ST",
15268 .name = "M29W010B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015269 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015270 .manufacture_id = ST_ID,
15271 .model_id = ST_M29W010B,
15272 .total_size = 128,
15273 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015274 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015275 .tested = TEST_UNTESTED,
15276 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000015277 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000015278 .block_erasers =
15279 {
15280 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015281 .eraseblocks = { {16 * 1024, 8} },
Sean Nelson56358aa2010-01-19 16:08:51 +000015282 .block_erase = erase_sector_jedec,
15283 }, {
15284 .eraseblocks = { {128 * 1024, 1} },
15285 .block_erase = erase_chip_block_jedec,
15286 }
15287 },
Sean Nelson35727f72010-01-28 23:55:12 +000015288 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015289 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015290 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000015291 },
15292
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015293 {
15294 .vendor = "ST",
15295 .name = "M29W040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015296 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015297 .manufacture_id = ST_ID,
15298 .model_id = ST_M29W040B,
15299 .total_size = 512,
15300 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015301 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015302 .tested = TEST_UNTESTED,
15303 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000015304 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000015305 .block_erasers =
15306 {
15307 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015308 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson56358aa2010-01-19 16:08:51 +000015309 .block_erase = erase_sector_jedec,
15310 }, {
15311 .eraseblocks = { {512 * 1024, 1} },
15312 .block_erase = erase_chip_block_jedec,
15313 }
15314 },
Sean Nelson35727f72010-01-28 23:55:12 +000015315 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015316 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015317 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000015318 },
15319
Stefan Taunereb582572012-09-21 12:52:50 +000015320 {
15321 .vendor = "ST",
15322 .name = "M29W512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015323 .bustype = BUS_PARALLEL,
Alan Greenfa3fcd32019-06-27 15:41:50 +100015324 .manufacture_id = ST_ID,
Stefan Taunereb582572012-09-21 12:52:50 +000015325 .model_id = ST_M29W512B,
15326 .total_size = 64,
15327 .page_size = 64 * 1024,
15328 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauner0554ca52013-07-25 22:54:25 +000015329 .tested = TEST_OK_PREW,
Stefan Taunereb582572012-09-21 12:52:50 +000015330 .probe = probe_jedec,
15331 .probe_timing = TIMING_ZERO,
15332 .block_erasers =
15333 {
15334 {
15335 .eraseblocks = { {64 * 1024, 1} },
15336 .block_erase = erase_chip_block_jedec,
15337 }
15338 },
15339 .write = write_jedec_1,
15340 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015341 .voltage = {2700, 3600},
Stefan Taunereb582572012-09-21 12:52:50 +000015342 },
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +000015343
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015344 {
15345 .vendor = "ST",
15346 .name = "M50FLW040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015347 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015348 .manufacture_id = ST_ID,
15349 .model_id = ST_M50FLW040A,
15350 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000015351 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015352 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015353 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000015354 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000015355 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000015356 .block_erasers =
15357 {
15358 {
Sean Nelson329bde72010-01-19 16:39:19 +000015359 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000015360 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000015361 {64 * 1024, 5}, /* block */
15362 {4 * 1024, 16}, /* sector */
15363 {4 * 1024, 16}, /* sector */
15364 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000015365 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000015366 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000015367 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000015368 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015369 }
15370 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015371 .unlock = unlock_regspace2_uniform_64k,
Alan Greenc1863ca2019-06-27 15:08:03 +100015372 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015373 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015374 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015375 },
15376
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015377 {
15378 .vendor = "ST",
15379 .name = "M50FLW040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015380 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015381 .manufacture_id = ST_ID,
15382 .model_id = ST_M50FLW040B,
15383 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000015384 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015385 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015386 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000015387 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000015388 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000015389 .block_erasers =
15390 {
15391 {
Sean Nelson329bde72010-01-19 16:39:19 +000015392 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000015393 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000015394 {4 * 1024, 16}, /* sector */
15395 {64 * 1024, 5}, /* block */
15396 {4 * 1024, 16}, /* sector */
15397 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000015398 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000015399 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000015400 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000015401 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015402 }
15403 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015404 .unlock = unlock_regspace2_uniform_64k,
Alan Greenc1863ca2019-06-27 15:08:03 +100015405 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015406 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015407 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015408 },
15409
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015410 {
15411 .vendor = "ST",
15412 .name = "M50FLW080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015413 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015414 .manufacture_id = ST_ID,
15415 .model_id = ST_M50FLW080A,
15416 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000015417 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015418 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015419 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +000015420 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000015421 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000015422 .block_erasers =
15423 {
15424 {
Sean Nelson329bde72010-01-19 16:39:19 +000015425 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000015426 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000015427 {64 * 1024, 13}, /* block */
15428 {4 * 1024, 16}, /* sector */
15429 {4 * 1024, 16}, /* sector */
15430 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000015431 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000015432 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000015433 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000015434 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015435 }
15436 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015437 .printlock = printlock_regspace2_block_eraser_0,
15438 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000015439 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015440 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015441 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015442 },
15443
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015444 {
15445 .vendor = "ST",
15446 .name = "M50FLW080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015447 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015448 .manufacture_id = ST_ID,
15449 .model_id = ST_M50FLW080B,
15450 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000015451 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015452 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015453 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000015454 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000015455 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000015456 .block_erasers =
15457 {
15458 {
Sean Nelson329bde72010-01-19 16:39:19 +000015459 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000015460 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000015461 {4 * 1024, 16}, /* sector */
15462 {64 * 1024, 13}, /* block */
15463 {4 * 1024, 16}, /* sector */
15464 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000015465 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000015466 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000015467 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000015468 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015469 }
15470 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015471 .printlock = printlock_regspace2_block_eraser_0,
15472 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000015473 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015474 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015475 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015476 },
15477
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015478 {
15479 .vendor = "ST",
15480 .name = "M50FW002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015481 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015482 .manufacture_id = ST_ID,
15483 .model_id = ST_M50FW002,
15484 .total_size = 256,
Stefan Tauner4404f732013-09-12 08:28:56 +000015485 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015486 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015487 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +000015488 .probe = probe_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015489 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000015490 .block_erasers =
15491 {
15492 {
15493 .eraseblocks = {
15494 {64 * 1024, 3},
15495 {32 * 1024, 1},
15496 {8 * 1024, 2},
15497 {16 * 1024, 1},
15498 },
Sean Nelson28accc22010-03-19 18:47:06 +000015499 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015500 }, {
Stefan Tauner5c316f92015-02-08 21:57:52 +000015501 .eraseblocks = { {256 * 1024, 1} },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015502 .block_erase = NULL, /* Only in A/A mux mode */
Sean Nelson56358aa2010-01-19 16:08:51 +000015503 }
15504 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015505 .printlock = printlock_regspace2_block_eraser_0,
15506 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000015507 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015508 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015509 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015510 },
15511
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015512 {
15513 .vendor = "ST",
15514 .name = "M50FW016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015515 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015516 .manufacture_id = ST_ID,
15517 .model_id = ST_M50FW016,
15518 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000015519 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015520 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015521 .tested = TEST_UNTESTED,
15522 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000015523 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000015524 .block_erasers =
15525 {
15526 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015527 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson28accc22010-03-19 18:47:06 +000015528 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015529 }
15530 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015531 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000015532 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015533 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015534 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015535 },
15536
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015537 {
15538 .vendor = "ST",
15539 .name = "M50FW040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015540 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015541 .manufacture_id = ST_ID,
15542 .model_id = ST_M50FW040,
15543 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000015544 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015545 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +000015546 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015547 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000015548 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000015549 .block_erasers =
15550 {
15551 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015552 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000015553 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015554 }
15555 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015556 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000015557 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015558 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015559 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015560 },
15561
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015562 {
15563 .vendor = "ST",
15564 .name = "M50FW080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015565 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015566 .manufacture_id = ST_ID,
15567 .model_id = ST_M50FW080,
15568 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000015569 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015570 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015571 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015572 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000015573 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000015574 .block_erasers =
15575 {
15576 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015577 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000015578 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015579 }
15580 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015581 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000015582 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015583 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015584 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015585 },
15586
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015587 {
15588 .vendor = "ST",
Stefan Tauner8c4602b2013-09-12 08:29:00 +000015589 .name = "M50LPW080",
15590 .bustype = BUS_LPC, /* A/A Mux */
15591 .manufacture_id = ST_ID,
15592 .model_id = ST_M50LPW080,
15593 .total_size = 1024,
15594 .page_size = 0,
15595 .feature_bits = FEATURE_REGISTERMAP,
15596 .tested = TEST_UNTESTED,
15597 .probe = probe_82802ab,
15598 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
15599 .block_erasers =
15600 {
15601 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015602 .eraseblocks = { {64 * 1024, 16} },
Stefan Tauner8c4602b2013-09-12 08:29:00 +000015603 .block_erase = erase_block_82802ab,
15604 }
15605 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015606 .unlock = unlock_regspace2_uniform_64k,
Stefan Tauner8c4602b2013-09-12 08:29:00 +000015607 .write = write_82802ab,
15608 .read = read_memmapped,
15609 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
15610 },
15611
15612 {
15613 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015614 .name = "M50LPW116",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015615 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015616 .manufacture_id = ST_ID,
15617 .model_id = ST_M50LPW116,
15618 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000015619 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015620 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015621 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000015622 .probe = probe_82802ab,
Udu Ogahc04ee222009-09-05 01:31:32 +000015623 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000015624 .block_erasers =
15625 {
15626 {
15627 .eraseblocks = {
15628 {4 * 1024, 16},
15629 {64 * 1024, 30},
15630 {32 * 1024, 1},
15631 {8 * 1024, 2},
15632 {16 * 1024, 1},
15633 },
Sean Nelson28accc22010-03-19 18:47:06 +000015634 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015635 }
15636 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015637 .printlock = printlock_regspace2_block_eraser_0,
15638 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000015639 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015640 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015641 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015642 },
15643
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015644 {
Konstantin Grudnev3d8868c2019-07-23 00:48:54 +030015645 .vendor = "ST",
15646 .name = "M95M02",
15647 .bustype = BUS_SPI,
15648 .manufacture_id = ST_ID,
15649 .model_id = ST_M95M02,
15650 .total_size = 256,
15651 .page_size = 256,
15652 .feature_bits = FEATURE_WRSR_WREN | FEATURE_NO_ERASE | FEATURE_ERASED_ZERO,
15653 .tested = TEST_OK_PREW,
Nico Huber54557862023-05-15 12:01:04 +020015654 .spi_cmd_set = SPI95,
Konstantin Grudnev3d8868c2019-07-23 00:48:54 +030015655 .probe = probe_spi_st95,
15656 .probe_timing = TIMING_ZERO,
15657 .block_erasers =
15658 {
15659 {
15660 .eraseblocks = { {256 * 1024, 1} },
15661 .block_erase = spi_block_erase_emulation,
15662 }
15663 },
15664
15665 .printlock = spi_prettyprint_status_register_bp1_srwd,
15666 .unlock = spi_disable_blockprotect_bp1_srwd,
15667 .write = spi_chip_write_256,
15668 .read = spi_chip_read,
15669 .voltage = {2500, 5500},
15670 },
15671
15672 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100015673 .vendor = "Sanyo",
15674 .name = "LE25FU106B",
15675 .bustype = BUS_SPI,
15676 .manufacture_id = SANYO_ID,
15677 .model_id = SANYO_LE25FU106B,
15678 .total_size = 128,
15679 .page_size = 256,
15680 .feature_bits = FEATURE_WRSR_WREN,
15681 .tested = TEST_UNTESTED,
15682 .probe = probe_spi_res2,
15683 .probe_timing = TIMING_ZERO,
15684 .block_erasers =
15685 {
15686 /* FIXME: Is this correct?
15687 {
15688 .eraseblocks = { {2 * 1024, 64} },
15689 .block_erase = spi_block_erase_d7,
15690 },*/
15691 {
15692 .eraseblocks = { {32 * 1024, 4} },
15693 .block_erase = spi_block_erase_d8,
15694 }, {
15695 .eraseblocks = { {128 * 1024, 1} },
15696 .block_erase = spi_block_erase_c7,
15697 }
15698 },
15699 .printlock = spi_prettyprint_status_register_bp1_srwd,
15700 .unlock = spi_disable_blockprotect_bp1_srwd,
15701 .write = spi_chip_write_256,
15702 .read = spi_chip_read,
15703 .voltage = {2300, 3600},
15704 },
15705
15706 {
15707 .vendor = "Sanyo",
15708 .name = "LE25FU206",
15709 .bustype = BUS_SPI,
15710 .manufacture_id = SANYO_ID,
15711 .model_id = SANYO_LE25FU206,
15712 .total_size = 256,
15713 .page_size = 256,
15714 .feature_bits = FEATURE_WRSR_WREN,
15715 .tested = TEST_UNTESTED,
15716 .probe = probe_spi_res2,
15717 .probe_timing = TIMING_ZERO,
15718 .block_erasers =
15719 {
15720 {
15721 .eraseblocks = { {4 * 1024, 64} },
15722 .block_erase = spi_block_erase_d7,
15723 }, {
15724 .eraseblocks = { {64 * 1024, 4} },
15725 .block_erase = spi_block_erase_d8,
15726 }, {
15727 .eraseblocks = { {256 * 1024, 1} },
15728 .block_erase = spi_block_erase_c7,
15729 }
15730 },
15731 .printlock = spi_prettyprint_status_register_bp1_srwd,
15732 .unlock = spi_disable_blockprotect_bp1_srwd,
15733 .write = spi_chip_write_256,
15734 .read = spi_chip_read,
15735 .voltage = {2300, 3600},
15736 },
15737
15738 {
15739 .vendor = "Sanyo",
15740 .name = "LE25FU206A",
15741 .bustype = BUS_SPI,
15742 .manufacture_id = SANYO_ID,
15743 .model_id = SANYO_LE25FU206A,
15744 .total_size = 256,
15745 .page_size = 256,
15746 .tested = TEST_UNTESTED,
15747 .probe = probe_spi_rdid,
15748 .probe_timing = TIMING_ZERO,
15749 .block_erasers =
15750 {
15751 {
15752 .eraseblocks = { {4 * 1024, 64} },
15753 .block_erase = spi_block_erase_20,
15754 }, {
15755 .eraseblocks = { {4 * 1024, 64} },
15756 .block_erase = spi_block_erase_d7,
15757 }, {
15758 .eraseblocks = { {64 * 1024, 4} },
15759 .block_erase = spi_block_erase_d8,
15760 }, {
15761 .eraseblocks = { {256 * 1024, 1} },
15762 .block_erase = spi_block_erase_60,
15763 }, {
15764 .eraseblocks = { {256 * 1024, 1} },
15765 .block_erase = spi_block_erase_c7,
15766 }
15767 },
15768 .printlock = spi_prettyprint_status_register_bp2_srwd,
15769 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
15770 .write = spi_chip_write_256,
15771 .read = spi_chip_read,
15772 .voltage = {2300, 3600},
15773 },
15774
15775 {
15776 .vendor = "Sanyo",
15777 .name = "LE25FU406B",
15778 .bustype = BUS_SPI,
15779 .manufacture_id = SANYO_ID,
15780 .model_id = SANYO_LE25FU406B,
15781 .total_size = 512,
15782 .page_size = 256,
15783 .feature_bits = FEATURE_WRSR_WREN,
15784 .tested = TEST_OK_PREW,
15785 .probe = probe_spi_res2,
15786 .probe_timing = TIMING_ZERO,
15787 .block_erasers =
15788 {
15789 {
15790 .eraseblocks = { {4 * 1024, 128} },
15791 .block_erase = spi_block_erase_d7,
15792 }, {
15793 .eraseblocks = { {64 * 1024, 8} },
15794 .block_erase = spi_block_erase_d8,
15795 }, {
15796 .eraseblocks = { {512 * 1024, 1} },
15797 .block_erase = spi_block_erase_c7,
15798 }
15799 },
15800 .printlock = spi_prettyprint_status_register_bp2_srwd,
15801 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
15802 .write = spi_chip_write_256,
15803 .read = spi_chip_read,
15804 .voltage = {2300, 3600},
15805 },
15806
15807 {
15808 .vendor = "Sanyo",
15809 .name = "LE25FU406C/LE25U40CMC",
15810 .bustype = BUS_SPI,
15811 .manufacture_id = SANYO_ID,
15812 .model_id = SANYO_LE25FU406C,
15813 .total_size = 512,
15814 .page_size = 256,
15815 .feature_bits = FEATURE_WRSR_WREN,
15816 .tested = TEST_OK_PREW,
15817 .probe = probe_spi_rdid,
15818 .probe_timing = TIMING_ZERO,
15819 .block_erasers =
15820 {
15821 {
15822 .eraseblocks = { {4 * 1024, 128} },
15823 .block_erase = spi_block_erase_20,
15824 }, {
15825 .eraseblocks = { {4 * 1024, 128} },
15826 .block_erase = spi_block_erase_d7,
15827 }, {
15828 .eraseblocks = { {64 * 1024, 8} },
15829 .block_erase = spi_block_erase_d8,
15830 }, {
15831 .eraseblocks = { {512 * 1024, 1} },
15832 .block_erase = spi_block_erase_60,
15833 }, {
15834 .eraseblocks = { {512 * 1024, 1} },
15835 .block_erase = spi_block_erase_c7,
15836 }
15837 },
15838 .printlock = spi_prettyprint_status_register_bp2_srwd,
15839 .unlock = spi_disable_blockprotect_bp2_srwd,
15840 .write = spi_chip_write_256,
15841 .read = spi_chip_read, /* Fast read (0x0B), dual read (0x3B) and dual I/O (0xBB) supported */
15842 .voltage = {2300, 3600},
15843 },
15844
15845 {
15846 .vendor = "Sanyo",
15847 .name = "LE25FW106",
15848 .bustype = BUS_SPI,
15849 .manufacture_id = SANYO_ID,
15850 .model_id = SANYO_LE25FW106,
15851 .total_size = 128,
15852 .page_size = 256,
15853 .feature_bits = FEATURE_WRSR_WREN,
15854 .tested = TEST_OK_PREW,
15855 .probe = probe_spi_res2,
15856 .probe_timing = TIMING_ZERO,
15857 .block_erasers =
15858 {
15859 {
15860 .eraseblocks = { {2 * 1024, 64} },
15861 .block_erase = spi_block_erase_d7,
15862 }, {
15863 .eraseblocks = { {32 * 1024, 4} },
15864 .block_erase = spi_block_erase_d8,
15865 }, {
15866 .eraseblocks = { {128 * 1024, 1} },
15867 .block_erase = spi_block_erase_c7,
15868 }
15869 },
15870 .printlock = spi_prettyprint_status_register_bp1_srwd, /* FIXME: Add ERSER error flag. */
15871 .unlock = spi_disable_blockprotect_bp1_srwd,
15872 .write = spi_chip_write_256,
15873 .read = spi_chip_read,
15874 .voltage = {2700, 3600},
15875 },
15876
15877 {
15878 .vendor = "Sanyo",
15879 .name = "LE25FW203A",
15880 .bustype = BUS_SPI,
15881 .manufacture_id = SANYO_ID,
15882 .model_id = SANYO_LE25FW203A,
15883 .total_size = 256,
15884 .page_size = 256,
15885 .tested = TEST_UNTESTED,
15886 .probe = probe_spi_rdid,
15887 .probe_timing = TIMING_ZERO,
15888 .block_erasers =
15889 {
15890 {
15891 .eraseblocks = { {256, 1024} },
15892 .block_erase = spi_block_erase_db,
15893 }, {
15894 .eraseblocks = { {64 * 1024, 4} },
15895 .block_erase = spi_block_erase_d8,
15896 }, {
15897 .eraseblocks = { {256 * 1024, 1} },
15898 .block_erase = spi_block_erase_c7,
15899 }
15900 },
15901 .printlock = spi_prettyprint_status_register_default_welwip,
15902 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
15903 .write = spi_chip_write_256,
15904 .read = spi_chip_read,
15905 .voltage = {2700, 3600},
15906 },
15907
15908 {
15909 .vendor = "Sanyo",
15910 .name = "LE25FW403A",
15911 .bustype = BUS_SPI,
15912 .manufacture_id = SANYO_ID,
15913 .model_id = SANYO_LE25FW403A,
15914 .total_size = 512,
15915 .page_size = 256,
15916 .tested = TEST_UNTESTED,
15917 .probe = probe_spi_rdid,
15918 .probe_timing = TIMING_ZERO,
15919 .block_erasers =
15920 {
15921 {
15922 .eraseblocks = { {256, 2 * 1024} },
15923 .block_erase = spi_block_erase_db,
15924 }, {
15925 .eraseblocks = { {64 * 1024, 8} },
15926 .block_erase = spi_block_erase_d8,
15927 }, {
15928 .eraseblocks = { {512 * 1024, 1} },
15929 .block_erase = spi_block_erase_c7,
15930 }
15931 },
15932 .printlock = spi_prettyprint_status_register_default_welwip,
15933 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
15934 .write = spi_chip_write_256,
15935 .read = spi_chip_read,
15936 .voltage = {2700, 3600},
15937 },
15938
15939 {
15940 .vendor = "Sanyo",
15941 .name = "LE25FW406A",
15942 .bustype = BUS_SPI,
15943 .manufacture_id = SANYO_ID,
15944 .model_id = SANYO_LE25FW406A,
15945 .total_size = 512,
15946 .page_size = 256,
15947 .feature_bits = FEATURE_WRSR_WREN,
15948 .tested = TEST_OK_PREW,
15949 .probe = probe_spi_res2,
15950 .probe_timing = TIMING_ZERO,
15951 .block_erasers =
15952 {
15953 {
15954 .eraseblocks = { {4 * 1024, 128} },
15955 .block_erase = spi_block_erase_d7,
15956 }, {
15957 .eraseblocks = { {64 * 1024, 8} },
15958 .block_erase = spi_block_erase_d8,
15959 }, {
15960 .eraseblocks = { {512 * 1024, 1} },
15961 .block_erase = spi_block_erase_c7,
15962 }
15963 },
15964 .printlock = spi_prettyprint_status_register_plain,
15965 .unlock = spi_disable_blockprotect,
15966 .write = spi_chip_write_256,
15967 .read = spi_chip_read,
15968 .voltage = {2700, 3600},
15969 },
15970
15971 {
15972 .vendor = "Sanyo",
15973 .name = "LE25FW418A",
15974 .bustype = BUS_SPI,
15975 .manufacture_id = SANYO_ID,
15976 .model_id = SANYO_LE25FW418A,
15977 .total_size = 512,
15978 .page_size = 256,
15979 .feature_bits = FEATURE_WRSR_WREN,
15980 .tested = TEST_UNTESTED,
15981 .probe = probe_spi_res2,
15982 .probe_timing = TIMING_ZERO,
15983 .block_erasers =
15984 {
15985 {
15986 .eraseblocks = { {4 * 1024, 128} },
15987 .block_erase = spi_block_erase_d7,
15988 }, {
15989 .eraseblocks = { {64 * 1024, 8} },
15990 .block_erase = spi_block_erase_d8,
15991 }, {
15992 .eraseblocks = { {512 * 1024, 1} },
15993 .block_erase = spi_block_erase_c7,
15994 }
15995 },
15996 .printlock = spi_prettyprint_status_register_bp2_srwd,
15997 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
15998 .write = spi_chip_write_256,
15999 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
16000 .voltage = {2700, 3600},
16001 },
16002
16003 {
16004 .vendor = "Sanyo",
16005 .name = "LE25FW806",
16006 .bustype = BUS_SPI,
16007 .manufacture_id = SANYO_ID,
16008 .model_id = SANYO_LE25FW806,
16009 .total_size = 1024,
16010 .page_size = 256,
16011 .feature_bits = FEATURE_WRSR_WREN,
16012 .tested = TEST_UNTESTED,
16013 .probe = probe_spi_res2,
16014 .probe_timing = TIMING_ZERO,
16015 .block_erasers =
16016 {
16017 {
16018 .eraseblocks = { {4 * 1024, 256} },
16019 .block_erase = spi_block_erase_20,
16020 }, {
16021 .eraseblocks = { {4 * 1024, 256} },
16022 .block_erase = spi_block_erase_d7,
16023 }, {
16024 .eraseblocks = { {64 * 1024, 16} },
16025 .block_erase = spi_block_erase_d8,
16026 }, {
16027 .eraseblocks = { {1024 * 1024, 1} },
16028 .block_erase = spi_block_erase_c7,
16029 }
16030 },
16031 .printlock = spi_prettyprint_status_register_bp2_srwd,
16032 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
16033 .write = spi_chip_write_256,
16034 .read = spi_chip_read,
16035 .voltage = {2700, 3600},
16036 },
16037
16038 {
16039 .vendor = "Sanyo",
16040 .name = "LE25FW808",
16041 .bustype = BUS_SPI,
16042 .manufacture_id = SANYO_ID,
16043 .model_id = SANYO_LE25FW808,
16044 .total_size = 1024,
16045 .page_size = 256,
16046 .feature_bits = FEATURE_WRSR_WREN,
16047 .tested = TEST_UNTESTED,
16048 .probe = probe_spi_res2,
16049 .probe_timing = TIMING_ZERO,
16050 .block_erasers =
16051 {
16052 {
16053 .eraseblocks = { {8 * 1024, 128} },
16054 .block_erase = spi_block_erase_d7,
16055 }, {
16056 .eraseblocks = { {64 * 1024, 16} },
16057 .block_erase = spi_block_erase_d8,
16058 }, {
16059 .eraseblocks = { {1024 * 1024, 1} },
16060 .block_erase = spi_block_erase_c7,
16061 }
16062 },
16063 .printlock = spi_prettyprint_status_register_bp2_srwd,
16064 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
16065 .write = spi_chip_write_256,
16066 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
16067 .voltage = {2700, 3600},
16068 },
16069
16070 {
16071 .vendor = "Sharp",
16072 .name = "LH28F008BJT-BTLZ1",
16073 .bustype = BUS_PARALLEL,
16074 .manufacture_id = SHARP_ID,
16075 .model_id = SHARP_LH28F008BJ__PB,
16076 .total_size = 1024,
16077 .page_size = 64 * 1024,
16078 .tested = TEST_OK_PREW,
16079 .probe = probe_82802ab,
16080 .probe_timing = TIMING_ZERO,
16081 .block_erasers =
16082 {
16083 {
16084 .eraseblocks = {
16085 {8 * 1024, 8},
16086 {64 * 1024, 15}
16087 },
16088 .block_erase = erase_block_82802ab,
16089 }, {
16090 .eraseblocks = { {1024 * 1024, 1} },
16091 .block_erase = erase_sector_49lfxxxc,
16092 }
16093 },
16094 .unlock = unlock_lh28f008bjt,
16095 .write = write_82802ab,
16096 .read = read_memmapped,
16097 .voltage = {2700, 3600},
16098 },
16099
16100 {
16101 .vendor = "Sharp",
16102 .name = "LHF00L04",
16103 .bustype = BUS_FWH, /* A/A Mux */
16104 .manufacture_id = SHARP_ID,
16105 .model_id = SHARP_LHF00L04,
16106 .total_size = 1024,
16107 .page_size = 64 * 1024,
16108 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
16109 .tested = TEST_UNTESTED,
16110 .probe = probe_82802ab,
16111 .probe_timing = TIMING_ZERO,
16112 .block_erasers =
16113 {
16114 {
16115 .eraseblocks = {
16116 {64 * 1024, 15},
16117 {8 * 1024, 8}
16118 },
16119 .block_erase = erase_block_82802ab,
16120 }, {
16121 .eraseblocks = {
16122 {1024 * 1024, 1}
16123 },
16124 .block_erase = NULL, /* 30 D0, only in A/A mux mode */
16125 },
16126 },
16127 .unlock = unlock_regspace2_uniform_64k,
16128 .write = write_82802ab,
16129 .read = read_memmapped,
16130 .voltage = {3000, 3600},
16131 },
16132
16133 {
16134 .vendor = "Spansion",
16135 .name = "S25FL004A",
16136 .bustype = BUS_SPI,
16137 .manufacture_id = SPANSION_ID,
16138 .model_id = SPANSION_S25FL004A,
16139 .total_size = 512,
16140 .page_size = 256,
16141 .feature_bits = FEATURE_WRSR_WREN,
16142 .tested = TEST_UNTESTED,
16143 .probe = probe_spi_rdid,
16144 .probe_timing = TIMING_ZERO,
16145 .block_erasers =
16146 {
16147 {
16148 .eraseblocks = { {64 * 1024, 8} },
16149 .block_erase = spi_block_erase_d8,
16150 }, {
16151 .eraseblocks = { {512 * 1024, 1} },
16152 .block_erase = spi_block_erase_c7,
16153 }
16154 },
16155 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16156 .unlock = spi_disable_blockprotect,
16157 .write = spi_chip_write_256,
16158 .read = spi_chip_read,
16159 .voltage = {2700, 3600},
16160 },
16161
16162 {
16163 .vendor = "Spansion",
16164 .name = "S25FL008A",
16165 .bustype = BUS_SPI,
16166 .manufacture_id = SPANSION_ID,
16167 .model_id = SPANSION_S25FL008A,
16168 .total_size = 1024,
16169 .page_size = 256,
16170 .feature_bits = FEATURE_WRSR_WREN,
16171 .tested = TEST_OK_PRE,
16172 .probe = probe_spi_rdid,
16173 .probe_timing = TIMING_ZERO,
16174 .block_erasers =
16175 {
16176 {
16177 .eraseblocks = { {64 * 1024, 16} },
16178 .block_erase = spi_block_erase_d8,
16179 }, {
16180 .eraseblocks = { {1024 * 1024, 1} },
16181 .block_erase = spi_block_erase_c7,
16182 }
16183 },
16184 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16185 .unlock = spi_disable_blockprotect,
16186 .write = spi_chip_write_256,
16187 .read = spi_chip_read,
16188 .voltage = {2700, 3600},
16189 },
16190
16191 {
16192 .vendor = "Spansion",
16193 .name = "S25FL016A",
16194 .bustype = BUS_SPI,
16195 .manufacture_id = SPANSION_ID,
16196 .model_id = SPANSION_S25FL016A,
16197 .total_size = 2048,
16198 .page_size = 256,
16199 .feature_bits = FEATURE_WRSR_WREN,
16200 .tested = TEST_OK_PREW,
16201 .probe = probe_spi_rdid,
16202 .probe_timing = TIMING_ZERO,
16203 .block_erasers =
16204 {
16205 {
16206 .eraseblocks = { {64 * 1024, 32} },
16207 .block_erase = spi_block_erase_d8,
16208 }, {
16209 .eraseblocks = { {2 * 1024 * 1024, 1} },
16210 .block_erase = spi_block_erase_c7,
16211 }
16212 },
16213 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16214 .unlock = spi_disable_blockprotect,
16215 .write = spi_chip_write_256,
16216 .read = spi_chip_read,
16217 .voltage = {2700, 3600},
16218 },
16219
16220 {
16221 .vendor = "Spansion",
16222 .name = "S25FL032A/P",
16223 .bustype = BUS_SPI,
16224 .manufacture_id = SPANSION_ID,
16225 .model_id = SPANSION_S25FL032A,
16226 .total_size = 4096,
16227 .page_size = 256,
16228 .feature_bits = FEATURE_WRSR_WREN,
16229 .tested = TEST_OK_PREW,
16230 .probe = probe_spi_rdid,
16231 .probe_timing = TIMING_ZERO,
16232 .block_erasers =
16233 {
16234 {
16235 .eraseblocks = { {64 * 1024, 64} },
16236 .block_erase = spi_block_erase_d8,
16237 }, {
16238 .eraseblocks = { {4 * 1024 * 1024, 1} },
16239 .block_erase = spi_block_erase_c7,
16240 }
16241 },
16242 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16243 .unlock = spi_disable_blockprotect,
16244 .write = spi_chip_write_256,
16245 .read = spi_chip_read,
16246 .voltage = {2700, 3600},
16247 },
16248
16249 {
16250 .vendor = "Spansion",
16251 .name = "S25FL064A/P",
16252 .bustype = BUS_SPI,
16253 .manufacture_id = SPANSION_ID,
16254 .model_id = SPANSION_S25FL064A,
16255 .total_size = 8192,
16256 .page_size = 256,
16257 .feature_bits = FEATURE_WRSR_WREN,
16258 .tested = TEST_OK_PREW,
16259 .probe = probe_spi_rdid,
16260 .probe_timing = TIMING_ZERO,
16261 .block_erasers =
16262 {
16263 {
16264 .eraseblocks = { {64 * 1024, 128} },
16265 .block_erase = spi_block_erase_d8,
16266 }, {
16267 .eraseblocks = { {8 * 1024 * 1024, 1} },
16268 .block_erase = spi_block_erase_c7,
16269 }
16270 },
16271 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16272 .unlock = spi_disable_blockprotect,
16273 .write = spi_chip_write_256,
16274 .read = spi_chip_read,
16275 .voltage = {2700, 3600},
16276 },
16277
16278 {
16279 .vendor = "Spansion",
16280 .name = "S25FL116K/S25FL216K", /* FIXME: separate them */
16281 .bustype = BUS_SPI,
16282 .manufacture_id = SPANSION_ID,
16283 .model_id = SPANSION_S25FL216,
16284 .total_size = 2048,
16285 .page_size = 256,
16286 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (S25FL116K only) */
16287 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16288 .tested = TEST_UNTESTED,
16289 .probe = probe_spi_rdid,
16290 .probe_timing = TIMING_ZERO,
16291 .block_erasers =
16292 {
16293 {
16294 .eraseblocks = { {4 * 1024, 512} },
16295 .block_erase = spi_block_erase_20,
16296 }, {
16297 .eraseblocks = { {64 * 1024, 32} },
16298 .block_erase = spi_block_erase_d8,
16299 }, {
16300 .eraseblocks = { { 2048 * 1024, 1} },
16301 .block_erase = spi_block_erase_60,
16302 }, {
16303 .eraseblocks = { { 2048 * 1024, 1} },
16304 .block_erase = spi_block_erase_c7,
16305 }
16306 },
16307 .printlock = spi_prettyprint_status_register_bp3_srwd,
16308 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
16309 .write = spi_chip_write_256,
16310 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
16311 .voltage = {2700, 3600},
16312 },
16313
16314 {
16315 .vendor = "Spansion",
16316 .name = "S25FL127S-256kB", /* uniform 256kB sectors */
16317 .bustype = BUS_SPI,
16318 .manufacture_id = SPANSION_ID,
16319 .model_id = SPANSION_S25FL128,
16320 .total_size = 16384,
16321 .page_size = 512,
16322 /* supports 4B addressing */
16323 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
16324 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16325 .tested = TEST_UNTESTED,
16326 .probe = probe_spi_rdid,
16327 .probe_timing = TIMING_ZERO,
16328 .block_erasers =
16329 {
16330 {
16331 .eraseblocks = { {256 * 1024, 64} },
16332 .block_erase = spi_block_erase_d8,
16333 }, {
16334 .eraseblocks = { { 16384 * 1024, 1} },
16335 .block_erase = spi_block_erase_60,
16336 }, {
16337 .eraseblocks = { { 16384 * 1024, 1} },
16338 .block_erase = spi_block_erase_c7,
16339 }
16340 },
16341 .printlock = spi_prettyprint_status_register_bp2_srwd,
16342 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
16343 .write = spi_chip_write_256, /* Multi I/O supported */
16344 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16345 .voltage = {2700, 3600},
16346 },
16347
16348 {
16349 .vendor = "Spansion",
16350 .name = "S25FL127S-64kB", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
16351 .bustype = BUS_SPI,
16352 .manufacture_id = SPANSION_ID,
16353 .model_id = SPANSION_S25FL128,
16354 .total_size = 16384,
16355 .page_size = 256,
16356 /* supports 4B addressing */
16357 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
16358 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16359 .tested = TEST_OK_PREW,
16360 /* FIXME: we should distinguish the configuration on probing time like we do for AT45DB chips */
16361 .probe = probe_spi_rdid,
16362 .probe_timing = TIMING_ZERO,
16363 .block_erasers =
16364 {
16365 {
16366 /* This chip supports erasing of 32 so-called "parameter sectors" with
16367 * opcode 0x20 which may be configured to be on top or bottom of the address
16368 * space. Trying to access an address outside these 4kB blocks does have no
16369 * effect on the memory contents, e.g.
16370 .eraseblocks = {
16371 {4 * 1024, 32},
16372 {64 * 1024, 254} // inaccessible
16373 },
16374 .block_erase = spi_block_erase_20,
16375 }, { */
16376 .eraseblocks = { { 64 * 1024, 256} },
16377 .block_erase = spi_block_erase_d8,
16378 }, {
16379 .eraseblocks = { { 16384 * 1024, 1} },
16380 .block_erase = spi_block_erase_60,
16381 }, {
16382 .eraseblocks = { { 16384 * 1024, 1} },
16383 .block_erase = spi_block_erase_c7,
16384 }
16385 },
16386 .printlock = spi_prettyprint_status_register_bp2_srwd,
16387 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
16388 .write = spi_chip_write_256, /* Multi I/O supported */
16389 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16390 .voltage = {2700, 3600},
16391 },
16392
16393 {
16394 .vendor = "Spansion",
Nico Huberfffc48d2022-05-28 14:26:06 +020016395 .name = "S25FL128L",
16396 .bustype = BUS_SPI,
16397 .manufacture_id = SPANSION_ID,
16398 .model_id = SPANSION_S25FL128L,
16399 .total_size = 16384,
16400 .page_size = 256,
16401 /* 4 x 256B Security Region (OTP) */
16402 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT3 | FEATURE_OTP,
16403 .tested = TEST_UNTESTED,
16404 .probe = probe_spi_rdid,
16405 .probe_timing = TIMING_ZERO,
16406 .block_erasers =
16407 {
16408 {
16409 .eraseblocks = { {4 * 1024, 4096} },
16410 .block_erase = spi_block_erase_20,
16411 }, {
16412 .eraseblocks = { {32 * 1024, 512} },
16413 .block_erase = spi_block_erase_52,
16414 }, {
16415 .eraseblocks = { {64 * 1024, 256} },
16416 .block_erase = spi_block_erase_d8,
16417 }, {
16418 .eraseblocks = { {16384 * 1024, 1} },
16419 .block_erase = spi_block_erase_60,
16420 }, {
16421 .eraseblocks = { {16384 * 1024, 1} },
16422 .block_erase = spi_block_erase_c7,
16423 }
16424 },
16425 .printlock = spi_prettyprint_status_register_bp2_srwd,
16426 .unlock = spi_disable_blockprotect_bp2_srwd,
16427 .write = spi_chip_write_256,
16428 .read = spi_chip_read, /* Fast read (0x0B) supported */
16429 .voltage = {2700, 3600},
16430 .reg_bits =
16431 {
16432 /*
16433 * Note: This chip has a read-only Status Register 2 that is not
16434 * counted here. Registers are mapped as follows:
16435 * STATUS1 ... Status Register 1
16436 * STATUS2 ... Configuration Register 1
16437 * STATUS3 ... Configuration Register 2
16438 */
16439 .srp = {STATUS1, 7, RW},
16440 .srl = {STATUS2, 0, RW},
16441 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
16442 .tb = {STATUS1, 5, RW},
16443 .sec = {STATUS1, 6, RW},
16444 .cmp = {STATUS2, 6, RW},
16445 .wps = {STATUS3, 2, RW},
16446 },
16447 .decode_range = decode_range_spi25,
16448 },
16449
16450 {
16451 .vendor = "Spansion",
Alan Green1f9cc7d2019-07-01 11:10:45 +100016452 .name = "S25FL128P......0", /* uniform 64 kB sectors */
16453 .bustype = BUS_SPI,
16454 .manufacture_id = SPANSION_ID,
16455 .model_id = SPANSION_S25FL128,
16456 .total_size = 16384,
16457 .page_size = 256,
16458 .feature_bits = FEATURE_WRSR_WREN,
16459 .tested = TEST_OK_PREW,
16460 .probe = probe_spi_rdid,
16461 .probe_timing = TIMING_ZERO,
16462 .block_erasers =
16463 {
16464 {
16465 .eraseblocks = { {64 * 1024, 256} },
16466 .block_erase = spi_block_erase_20,
16467 }, {
16468 .eraseblocks = { {64 * 1024, 256} },
16469 .block_erase = spi_block_erase_d8,
16470 }, {
16471 .eraseblocks = { { 16384 * 1024, 1} },
16472 .block_erase = spi_block_erase_60,
16473 }, {
16474 .eraseblocks = { { 16384 * 1024, 1} },
16475 .block_erase = spi_block_erase_c7,
16476 }
16477 },
16478 .printlock = spi_prettyprint_status_register_bp3_srwd,
16479 .unlock = spi_disable_blockprotect_bp3_srwd,
16480 .write = spi_chip_write_256,
16481 .read = spi_chip_read, /* Fast read (0x0B) supported */
16482 .voltage = {2700, 3600},
16483 },
16484
16485 {
16486 .vendor = "Spansion",
16487 .name = "S25FL128P......1", /* uniform 256kB sectors */
16488 .bustype = BUS_SPI,
16489 .manufacture_id = SPANSION_ID,
16490 .model_id = SPANSION_S25FL128,
16491 .total_size = 16384,
16492 .page_size = 256,
16493 .feature_bits = FEATURE_WRSR_WREN,
16494 .tested = TEST_UNTESTED,
16495 .probe = probe_spi_rdid,
16496 .probe_timing = TIMING_ZERO,
16497 .block_erasers =
16498 {
16499 {
16500 .eraseblocks = { {256 * 1024, 64} },
16501 .block_erase = spi_block_erase_d8,
16502 }, {
16503 .eraseblocks = { { 16384 * 1024, 1} },
16504 .block_erase = spi_block_erase_c7,
16505 }
16506 },
16507 .printlock = spi_prettyprint_status_register_bp2_srwd,
16508 .unlock = spi_disable_blockprotect_bp2_srwd,
16509 .write = spi_chip_write_256,
16510 .read = spi_chip_read, /* Fast read (0x0B) supported */
16511 .voltage = {2700, 3600},
16512 },
16513
16514 {
16515 .vendor = "Spansion",
16516 .name = "S25FL128S......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
16517 .bustype = BUS_SPI,
16518 .manufacture_id = SPANSION_ID,
16519 .model_id = SPANSION_S25FL128,
16520 .total_size = 16384,
16521 .page_size = 256,
16522 /* supports 4B addressing */
16523 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
16524 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16525 .tested = TEST_OK_PREW,
16526 .probe = probe_spi_rdid,
16527 .probe_timing = TIMING_ZERO,
16528 .block_erasers =
16529 {
16530 {
16531 /* This chip supports erasing of the 32 so-called "parameter sectors" with
16532 * opcode 0x20. Trying to access an address outside these 4kB blocks does
16533 * have no effect on the memory contents, but sets a flag in the SR.
16534 .eraseblocks = {
16535 {4 * 1024, 32},
16536 {64 * 1024, 254} // inaccessible
16537 },
16538 .block_erase = spi_block_erase_20,
16539 }, { */
16540 .eraseblocks = { { 64 * 1024, 256} },
16541 .block_erase = spi_block_erase_d8,
16542 }, {
16543 .eraseblocks = { { 16384 * 1024, 1} },
16544 .block_erase = spi_block_erase_60,
16545 }, {
16546 .eraseblocks = { { 16384 * 1024, 1} },
16547 .block_erase = spi_block_erase_c7,
16548 }
16549 },
16550 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
16551 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
16552 .write = spi_chip_write_256, /* Multi I/O supported */
16553 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16554 .voltage = {2700, 3600},
16555 },
16556
16557 {
16558 .vendor = "Spansion",
16559 .name = "S25FL128S......1", /* uniform 256 kB sectors */
16560 .bustype = BUS_SPI,
16561 .manufacture_id = SPANSION_ID,
16562 .model_id = SPANSION_S25FL128,
16563 .total_size = 16384,
16564 .page_size = 512,
16565 /* supports 4B addressing */
16566 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
16567 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16568 .tested = TEST_UNTESTED,
16569 .probe = probe_spi_rdid,
16570 .probe_timing = TIMING_ZERO,
16571 .block_erasers =
16572 {
16573 {
16574 .eraseblocks = { {256 * 1024, 64} },
16575 .block_erase = spi_block_erase_d8,
16576 }, {
16577 .eraseblocks = { { 16384 * 1024, 1} },
16578 .block_erase = spi_block_erase_60,
16579 }, {
16580 .eraseblocks = { { 16384 * 1024, 1} },
16581 .block_erase = spi_block_erase_c7,
16582 }
16583 },
16584 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
16585 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
16586 .write = spi_chip_write_256, /* Multi I/O supported */
16587 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16588 .voltage = {2700, 3600},
16589 },
16590
16591 {
16592 .vendor = "Spansion",
16593 .name = "S25FL129P......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
16594 .bustype = BUS_SPI,
16595 .manufacture_id = SPANSION_ID,
16596 .model_id = SPANSION_S25FL128,
16597 .total_size = 16384,
16598 .page_size = 256,
16599 /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */
16600 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16601 .tested = TEST_OK_PREW,
16602 .probe = probe_spi_rdid,
16603 .probe_timing = TIMING_ZERO,
16604 .block_erasers =
16605 {
16606 {
16607 /* FIXME: This chip supports erasing of the 32 so-called "parameter sectors" with
16608 * opcode 0x20. Trying to access an address outside these 4kB blocks does have no
16609 * effect on the memory contents, but sets a flag in the SR.
16610 .eraseblocks = {
16611 {4 * 1024, 32},
16612 {64 * 1024, 254} // inaccessible
16613 },
16614 .block_erase = spi_block_erase_20,
16615 }, { */
16616 /* FIXME: Additionally it also supports erase opcode 40h for the respective 2*4 kB pairs
16617 .eraseblocks = {
16618 {8 * 1024, 16},
16619 {64 * 1024, 254} // inaccessible
16620 },
16621 .block_erase = spi_block_erase_40,
16622 }, { */
16623 .eraseblocks = { { 64 * 1024, 256} },
16624 .block_erase = spi_block_erase_d8,
16625 }, {
16626 .eraseblocks = { { 16384 * 1024, 1} },
16627 .block_erase = spi_block_erase_60,
16628 }, {
16629 .eraseblocks = { { 16384 * 1024, 1} },
16630 .block_erase = spi_block_erase_c7,
16631 }
16632 },
16633 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */
16634 .unlock = spi_disable_blockprotect_bp2_srwd,
16635 .write = spi_chip_write_256, /* Multi I/O supported */
16636 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16637 .voltage = {2700, 3600},
16638 },
16639
16640 {
16641 .vendor = "Spansion",
16642 .name = "S25FL129P......1", /* uniform 256 kB sectors */
16643 .bustype = BUS_SPI,
16644 .manufacture_id = SPANSION_ID,
16645 .model_id = SPANSION_S25FL128,
16646 .total_size = 16384,
16647 .page_size = 256,
16648 /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */
16649 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16650 .tested = TEST_UNTESTED,
16651 .probe = probe_spi_rdid,
16652 .probe_timing = TIMING_ZERO,
16653 .block_erasers =
16654 {
16655 {
16656 .eraseblocks = { {256 * 1024, 64} },
16657 .block_erase = spi_block_erase_d8,
16658 }, {
16659 .eraseblocks = { { 16384 * 1024, 1} },
16660 .block_erase = spi_block_erase_60,
16661 }, {
16662 .eraseblocks = { { 16384 * 1024, 1} },
16663 .block_erase = spi_block_erase_c7,
16664 }
16665 },
16666 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */
16667 .unlock = spi_disable_blockprotect_bp2_srwd,
16668 .write = spi_chip_write_256, /* Multi I/O supported */
16669 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16670 .voltage = {2700, 3600},
16671 },
16672
16673 {
16674 .vendor = "Spansion",
16675 .name = "S25FL132K",
16676 .bustype = BUS_SPI,
16677 .manufacture_id = SPANSION_ID,
16678 .model_id = SPANSION_S25FL132K,
16679 .total_size = 4096,
16680 .page_size = 256,
16681 /* OTP: 768B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
16682 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16683 .tested = TEST_UNTESTED,
16684 .probe = probe_spi_rdid,
16685 .probe_timing = TIMING_ZERO,
16686 .block_erasers =
16687 {
16688 {
16689 .eraseblocks = { {4 * 1024, 1024} },
16690 .block_erase = spi_block_erase_20,
16691 }, {
16692 .eraseblocks = { {64 * 1024, 64} },
16693 .block_erase = spi_block_erase_d8,
16694 }, {
16695 .eraseblocks = { { 4096 * 1024, 1} },
16696 .block_erase = spi_block_erase_60,
16697 }, {
16698 .eraseblocks = { { 4096 * 1024, 1} },
16699 .block_erase = spi_block_erase_c7,
16700 }
16701 },
16702 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
16703 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
16704 .write = spi_chip_write_256,
16705 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16706 .voltage = {2700, 3600},
16707 },
16708
16709 {
16710 .vendor = "Spansion",
16711 .name = "S25FL164K",
16712 .bustype = BUS_SPI,
16713 .manufacture_id = SPANSION_ID,
16714 .model_id = SPANSION_S25FL164K,
16715 .total_size = 8192,
16716 .page_size = 256,
16717 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
16718 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16719 .tested = TEST_OK_PREW,
16720 .probe = probe_spi_rdid,
16721 .probe_timing = TIMING_ZERO,
16722 .block_erasers =
16723 {
16724 {
16725 .eraseblocks = { {4 * 1024, 2048} },
16726 .block_erase = spi_block_erase_20,
16727 }, {
16728 .eraseblocks = { {64 * 1024, 128} },
16729 .block_erase = spi_block_erase_d8,
16730 }, {
16731 .eraseblocks = { { 8192 * 1024, 1} },
16732 .block_erase = spi_block_erase_60,
16733 }, {
16734 .eraseblocks = { { 8192 * 1024, 1} },
16735 .block_erase = spi_block_erase_c7,
16736 }
16737 },
16738 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
16739 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
16740 .write = spi_chip_write_256,
16741 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16742 .voltage = {2700, 3600},
16743 },
16744
16745 {
16746 .vendor = "Spansion",
16747 .name = "S25FL204K",
16748 .bustype = BUS_SPI,
16749 .manufacture_id = SPANSION_ID,
16750 .model_id = SPANSION_S25FL204,
16751 .total_size = 512,
16752 .page_size = 256,
16753 .feature_bits = FEATURE_WRSR_WREN,
16754 .tested = TEST_OK_PR,
16755 .probe = probe_spi_rdid,
16756 .probe_timing = TIMING_ZERO,
16757 .block_erasers =
16758 {
16759 {
16760 .eraseblocks = { {4 * 1024, 128} },
16761 .block_erase = spi_block_erase_20,
16762 }, {
16763 .eraseblocks = { {64 * 1024, 8} },
16764 .block_erase = spi_block_erase_d8,
16765 }, {
16766 .eraseblocks = { { 512 * 1024, 1} },
16767 .block_erase = spi_block_erase_60,
16768 }, {
16769 .eraseblocks = { { 512 * 1024, 1} },
16770 .block_erase = spi_block_erase_c7,
16771 }
16772 },
16773 .printlock = spi_prettyprint_status_register_bp3_srwd,
16774 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
16775 .write = spi_chip_write_256,
16776 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
16777 .voltage = {2700, 3600},
16778 },
16779
16780 {
16781 .vendor = "Spansion",
16782 .name = "S25FL208K",
16783 .bustype = BUS_SPI,
16784 .manufacture_id = SPANSION_ID,
16785 .model_id = SPANSION_S25FL208,
16786 .total_size = 1024,
16787 .page_size = 256,
16788 .feature_bits = FEATURE_WRSR_WREN,
16789 .tested = TEST_OK_PREW,
16790 .probe = probe_spi_rdid,
16791 .probe_timing = TIMING_ZERO,
16792 .block_erasers =
16793 {
16794 {
16795 .eraseblocks = { {4 * 1024, 256} },
16796 .block_erase = spi_block_erase_20,
16797 }, {
16798 .eraseblocks = { {64 * 1024, 16} },
16799 .block_erase = spi_block_erase_d8,
16800 }, {
16801 .eraseblocks = { { 1024 * 1024, 1} },
16802 .block_erase = spi_block_erase_60,
16803 }, {
16804 .eraseblocks = { { 1024 * 1024, 1} },
16805 .block_erase = spi_block_erase_c7,
16806 }
16807 },
16808 .printlock = spi_prettyprint_status_register_bp3_srwd,
16809 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
16810 .write = spi_chip_write_256,
16811 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
16812 .voltage = {2700, 3600},
16813 },
16814
16815 {
16816 .vendor = "Spansion",
Nico Huberfffc48d2022-05-28 14:26:06 +020016817 .name = "S25FL256L",
16818 .bustype = BUS_SPI,
16819 .manufacture_id = SPANSION_ID,
16820 .model_id = SPANSION_S25FL256L,
16821 .total_size = 32768,
16822 .page_size = 256,
16823 /* 4 x 256B Security Region (OTP) */
16824 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT3 | FEATURE_OTP |
16825 FEATURE_4BA_ENTER | FEATURE_4BA_NATIVE,
16826 .tested = TEST_UNTESTED,
16827 .probe = probe_spi_rdid,
16828 .probe_timing = TIMING_ZERO,
16829 .block_erasers =
16830 {
16831 {
16832 .eraseblocks = { {4 * 1024, 8192} },
16833 .block_erase = spi_block_erase_21,
16834 }, {
16835 .eraseblocks = { {4 * 1024, 8192} },
16836 .block_erase = spi_block_erase_20,
16837 }, {
16838 .eraseblocks = { {32 * 1024, 1024} },
16839 .block_erase = spi_block_erase_53,
16840 }, {
16841 .eraseblocks = { {32 * 1024, 1024} },
16842 .block_erase = spi_block_erase_52,
16843 }, {
16844 .eraseblocks = { {64 * 1024, 512} },
16845 .block_erase = spi_block_erase_dc,
16846 }, {
16847 .eraseblocks = { {64 * 1024, 512} },
16848 .block_erase = spi_block_erase_d8,
16849 }, {
16850 .eraseblocks = { {32768 * 1024, 1} },
16851 .block_erase = spi_block_erase_60,
16852 }, {
16853 .eraseblocks = { {32768 * 1024, 1} },
16854 .block_erase = spi_block_erase_c7,
16855 }
16856 },
16857 .printlock = spi_prettyprint_status_register_bp3_srwd,
16858 .unlock = spi_disable_blockprotect_bp3_srwd,
16859 .write = spi_chip_write_256,
16860 .read = spi_chip_read, /* Fast read (0x0B) supported */
16861 .voltage = {2700, 3600},
16862 .reg_bits =
16863 {
16864 /*
16865 * Note: This chip has a read-only Status Register 2 that is not
16866 * counted here. Registers are mapped as follows:
16867 * STATUS1 ... Status Register 1
16868 * STATUS2 ... Configuration Register 1
16869 * STATUS3 ... Configuration Register 2
16870 */
16871 .srp = {STATUS1, 7, RW},
16872 .srl = {STATUS2, 0, RW},
16873 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}},
16874 .tb = {STATUS1, 6, RW},
16875 .cmp = {STATUS2, 6, RW},
16876 .wps = {STATUS3, 2, RW},
16877 },
16878 .decode_range = decode_range_spi25,
Nico Huberab6b18f2023-01-11 23:38:20 +010016879 .prepare_access = spi_prepare_4ba,
Nico Huberfffc48d2022-05-28 14:26:06 +020016880 },
16881
16882 {
16883 .vendor = "Spansion",
Alan Green1f9cc7d2019-07-01 11:10:45 +100016884 .name = "S25FL256S......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
16885 .bustype = BUS_SPI,
16886 .manufacture_id = SPANSION_ID,
16887 .model_id = SPANSION_S25FL256,
16888 .total_size = 32768,
16889 .page_size = 256,
16890 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
Nico Huber9bb8a322022-05-24 15:07:34 +020016891 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP |
16892 FEATURE_4BA_NATIVE | FEATURE_4BA_ENTER_EAR7 | FEATURE_4BA_EAR_1716,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016893 .tested = TEST_OK_PREW,
16894 .probe = probe_spi_rdid,
16895 .probe_timing = TIMING_ZERO,
16896 .block_erasers =
16897 {
16898 {
16899 /* This chip supports erasing of the 32 so-called "parameter sectors" with
16900 * opcode 0x20. Trying to access an address outside these 4kB blocks does
16901 * have no effect on the memory contents, but sets a flag in the SR.
16902 .eraseblocks = {
16903 {4 * 1024, 32},
16904 {64 * 1024, 254} // inaccessible
16905 },
16906 .block_erase = spi_block_erase_20,
16907 }, { */
16908 .eraseblocks = { { 64 * 1024, 512} },
16909 .block_erase = spi_block_erase_dc,
16910 }, {
16911 .eraseblocks = { { 64 * 1024, 512} },
16912 .block_erase = spi_block_erase_d8,
16913 }, {
16914 .eraseblocks = { { 32768 * 1024, 1} },
16915 .block_erase = spi_block_erase_60,
16916 }, {
16917 .eraseblocks = { { 32768 * 1024, 1} },
16918 .block_erase = spi_block_erase_c7,
16919 }
16920 },
16921 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
16922 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
16923 .write = spi_chip_write_256, /* Multi I/O supported */
16924 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16925 .voltage = {2700, 3600},
Nico Huberab6b18f2023-01-11 23:38:20 +010016926 .prepare_access = spi_prepare_4ba,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016927 },
16928
16929 {
Bernhard Urban-Forster05c629b2020-02-02 21:29:48 +010016930 .vendor = "Spansion",
16931 .name = "S25FL512S",
16932 .bustype = BUS_SPI,
16933 .manufacture_id = SPANSION_ID,
16934 .model_id = SPANSION_S25FL512,
16935 .total_size = 65536, /* 512 Mb (=> 64 MB)) */
16936 .page_size = 256,
16937 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
Nico Huber26237922022-06-20 19:37:37 +020016938 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP |
16939 FEATURE_4BA_NATIVE | FEATURE_4BA_ENTER_EAR7 | FEATURE_4BA_EAR_1716,
16940 .tested = TEST_UNTESTED,
Bernhard Urban-Forster05c629b2020-02-02 21:29:48 +010016941 .probe = probe_spi_rdid,
16942 .probe_timing = TIMING_ZERO,
16943 .block_erasers =
16944 {
16945 {
16946 .eraseblocks = { { 256 * 1024, 256} },
16947 .block_erase = spi_block_erase_dc,
16948 }, {
Nico Huberbb608ff2022-05-24 15:33:26 +020016949 .eraseblocks = { { 256 * 1024, 256} },
16950 .block_erase = spi_block_erase_d8,
16951 }, {
Bernhard Urban-Forster05c629b2020-02-02 21:29:48 +010016952 .eraseblocks = { { 65536 * 1024, 1} },
16953 .block_erase = spi_block_erase_60,
16954 }, {
16955 .eraseblocks = { { 65536 * 1024, 1} },
16956 .block_erase = spi_block_erase_c7,
16957 }
16958 },
16959 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
16960 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
16961 .write = spi_chip_write_256, /* Multi I/O supported, IGNORE for now */
16962 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16963 .voltage = {2700, 3600},
Nico Huberab6b18f2023-01-11 23:38:20 +010016964 .prepare_access = spi_prepare_4ba,
Bernhard Urban-Forster05c629b2020-02-02 21:29:48 +010016965 },
16966
16967 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000016968 .vendor = "SyncMOS/MoselVitelic",
16969 .name = "{F,S,V}29C51001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016970 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016971 .manufacture_id = SYNCMOS_MVC_ID,
16972 .model_id = SM_MVC_29C51001B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016973 .total_size = 128,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016974 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000016975 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016976 .tested = TEST_UNTESTED,
16977 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000016978 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000016979 .block_erasers =
16980 {
16981 {
16982 .eraseblocks = { {512, 256} },
16983 .block_erase = erase_sector_jedec,
16984 }, {
16985 .eraseblocks = { {128 * 1024, 1} },
16986 .block_erase = erase_chip_block_jedec,
16987 },
16988 },
Sean Nelson35727f72010-01-28 23:55:12 +000016989 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016990 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016991 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000016992 },
16993
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016994 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000016995 .vendor = "SyncMOS/MoselVitelic",
16996 .name = "{F,S,V}29C51001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016997 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016998 .manufacture_id = SYNCMOS_MVC_ID,
16999 .model_id = SM_MVC_29C51001T,
17000 .total_size = 128,
17001 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000017002 .feature_bits = FEATURE_EITHER_RESET,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017003 .tested = TEST_UNTESTED,
17004 .probe = probe_jedec,
17005 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
17006 .block_erasers =
17007 {
17008 {
17009 .eraseblocks = { {512, 256} },
17010 .block_erase = erase_sector_jedec,
17011 }, {
17012 .eraseblocks = { {128 * 1024, 1} },
17013 .block_erase = erase_chip_block_jedec,
17014 },
17015 },
17016 .write = write_jedec_1,
17017 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017018 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000017019 },
17020
17021 {
17022 .vendor = "SyncMOS/MoselVitelic",
17023 .name = "{F,S,V}29C51002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017024 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017025 .manufacture_id = SYNCMOS_MVC_ID,
17026 .model_id = SM_MVC_29C51002B,
17027 .total_size = 256,
17028 .page_size = 512,
17029 .feature_bits = FEATURE_EITHER_RESET,
17030 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017031 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000017032 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000017033 .block_erasers =
17034 {
17035 {
17036 .eraseblocks = { {512, 512} },
17037 .block_erase = erase_sector_jedec,
17038 }, {
17039 .eraseblocks = { {256 * 1024, 1} },
17040 .block_erase = erase_chip_block_jedec,
17041 },
17042 },
Sean Nelson35727f72010-01-28 23:55:12 +000017043 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017044 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000017045 },
17046
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017047 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000017048 .vendor = "SyncMOS/MoselVitelic",
17049 .name = "{F,S,V}29C51002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017050 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017051 .manufacture_id = SYNCMOS_MVC_ID,
17052 .model_id = SM_MVC_29C51002T,
17053 .total_size = 256,
17054 .page_size = 512,
17055 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000017056 .tested = TEST_OK_PREW,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017057 .probe = probe_jedec,
17058 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
17059 .block_erasers =
17060 {
17061 {
17062 .eraseblocks = { {512, 512} },
17063 .block_erase = erase_sector_jedec,
17064 }, {
17065 .eraseblocks = { {256 * 1024, 1} },
17066 .block_erase = erase_chip_block_jedec,
17067 },
17068 },
17069 .write = write_jedec_1,
17070 .read = read_memmapped,
17071 },
17072
17073 {
17074 .vendor = "SyncMOS/MoselVitelic",
17075 .name = "{F,S,V}29C51004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017076 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017077 .manufacture_id = SYNCMOS_MVC_ID,
17078 .model_id = SM_MVC_29C51004B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017079 .total_size = 512,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017080 .page_size = 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000017081 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017082 .tested = TEST_UNTESTED,
17083 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000017084 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +000017085 .block_erasers =
17086 {
17087 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000017088 .eraseblocks = { {1024, 512} },
17089 .block_erase = erase_sector_jedec,
17090 }, {
17091 .eraseblocks = { {512 * 1024, 1} },
17092 .block_erase = erase_chip_block_jedec,
17093 },
17094 },
17095 .write = write_jedec_1,
17096 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017097 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000017098 },
17099
17100 {
17101 .vendor = "SyncMOS/MoselVitelic",
17102 .name = "{F,S,V}29C51004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017103 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017104 .manufacture_id = SYNCMOS_MVC_ID,
17105 .model_id = SM_MVC_29C51004T,
17106 .total_size = 512,
17107 .page_size = 1024,
17108 .feature_bits = FEATURE_EITHER_RESET,
17109 .tested = TEST_UNTESTED,
17110 .probe = probe_jedec,
17111 .probe_timing = TIMING_ZERO,
17112 .block_erasers =
17113 {
17114 {
17115 .eraseblocks = { {1024, 512} },
17116 .block_erase = erase_sector_jedec,
17117 }, {
17118 .eraseblocks = { {512 * 1024, 1} },
17119 .block_erase = erase_chip_block_jedec,
17120 },
17121 },
17122 .write = write_jedec_1,
17123 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017124 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000017125 },
17126
17127 {
17128 .vendor = "SyncMOS/MoselVitelic",
17129 .name = "{S,V}29C31004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017130 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017131 .manufacture_id = SYNCMOS_MVC_ID,
17132 .model_id = SM_MVC_29C31004B,
17133 .total_size = 512,
17134 .page_size = 1024,
17135 .feature_bits = FEATURE_EITHER_RESET,
17136 .tested = TEST_UNTESTED,
17137 .probe = probe_jedec,
17138 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
17139 .block_erasers =
17140 {
17141 {
17142 .eraseblocks = { {1024, 512} },
17143 .block_erase = erase_sector_jedec,
17144 }, {
17145 .eraseblocks = { {512 * 1024, 1} },
17146 .block_erase = erase_chip_block_jedec,
17147 },
17148 },
17149 .write = write_jedec_1,
17150 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017151 .voltage = {3000, 3600},
Mattias Mattsson4c066502010-07-29 20:01:13 +000017152 },
17153
17154 {
17155 .vendor = "SyncMOS/MoselVitelic",
17156 .name = "{S,V}29C31004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017157 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017158 .manufacture_id = SYNCMOS_MVC_ID,
17159 .model_id = SM_MVC_29C31004T,
17160 .total_size = 512,
17161 .page_size = 1024,
17162 .feature_bits = FEATURE_EITHER_RESET,
17163 .tested = TEST_UNTESTED,
17164 .probe = probe_jedec,
17165 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
17166 .block_erasers =
17167 {
17168 {
17169 .eraseblocks = { {1024, 512} },
Sean Nelson56358aa2010-01-19 16:08:51 +000017170 .block_erase = erase_sector_jedec,
17171 }, {
17172 .eraseblocks = { {512 * 1024, 1} },
17173 .block_erase = erase_chip_block_jedec,
17174 },
17175 },
Sean Nelson35727f72010-01-28 23:55:12 +000017176 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017177 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017178 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000017179 },
17180
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017181 {
Uwe Hermanna106d152009-05-27 23:17:40 +000017182 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017183 .name = "TMS29F002RB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017184 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017185 .manufacture_id = TI_OLD_ID,
17186 .model_id = TI_TMS29F002RB,
17187 .total_size = 256,
17188 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000017189 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017190 .tested = TEST_UNTESTED,
17191 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000017192 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000017193 .block_erasers =
17194 {
17195 {
17196 .eraseblocks = {
17197 {16 * 1024, 1},
17198 {8 * 1024, 2},
17199 {32 * 1024, 1},
17200 {64 * 1024, 3},
17201 },
17202 .block_erase = erase_sector_jedec,
17203 }, {
17204 .eraseblocks = { {256 * 1024, 1} },
17205 .block_erase = erase_chip_block_jedec,
17206 },
17207 },
Sean Nelson35727f72010-01-28 23:55:12 +000017208 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017209 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017210 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017211 },
17212
17213 {
Uwe Hermanna106d152009-05-27 23:17:40 +000017214 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017215 .name = "TMS29F002RT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017216 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017217 .manufacture_id = TI_OLD_ID,
17218 .model_id = TI_TMS29F002RT,
17219 .total_size = 256,
17220 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000017221 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017222 .tested = TEST_UNTESTED,
17223 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000017224 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000017225 .block_erasers =
17226 {
17227 {
17228 .eraseblocks = {
17229 {64 * 1024, 3},
17230 {32 * 1024, 1},
17231 {8 * 1024, 2},
17232 {16 * 1024, 1},
17233 },
17234 .block_erase = erase_sector_jedec,
17235 }, {
17236 .eraseblocks = { {256 * 1024, 1} },
17237 .block_erase = erase_chip_block_jedec,
17238 },
17239 },
Sean Nelson35727f72010-01-28 23:55:12 +000017240 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017241 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017242 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017243 },
17244
17245 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017246 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017247 .name = "W25P16",
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000017248 .bustype = BUS_SPI,
17249 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017250 .model_id = WINBOND_NEX_W25P16,
17251 .total_size = 2048,
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000017252 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017253 .feature_bits = FEATURE_WRSR_WREN,
17254 .tested = TEST_UNTESTED,
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000017255 .probe = probe_spi_rdid,
17256 .probe_timing = TIMING_ZERO,
17257 .block_erasers =
17258 {
17259 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017260 .eraseblocks = { {64 * 1024, 32} },
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000017261 .block_erase = spi_block_erase_d8,
17262 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017263 .eraseblocks = { {2048 * 1024, 1} },
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000017264 .block_erase = spi_block_erase_c7,
17265 }
17266 },
17267 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17268 .unlock = spi_disable_blockprotect,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017269 .write = spi_chip_write_256,
17270 .read = spi_chip_read, /* Fast read (0x0B) supported */
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000017271 .voltage = {2700, 3600},
17272 },
17273
17274 {
17275 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017276 .name = "W25P32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017277 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000017278 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017279 .model_id = WINBOND_NEX_W25P32,
17280 .total_size = 4096,
Rudolf Marekce1c7982010-04-20 19:34:31 +000017281 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017282 .feature_bits = FEATURE_WRSR_WREN,
17283 .tested = TEST_UNTESTED,
Rudolf Marekce1c7982010-04-20 19:34:31 +000017284 .probe = probe_spi_rdid,
17285 .probe_timing = TIMING_ZERO,
17286 .block_erasers =
17287 {
17288 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017289 .eraseblocks = { {64 * 1024, 64} },
17290 .block_erase = spi_block_erase_d8,
Rudolf Marekce1c7982010-04-20 19:34:31 +000017291 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017292 .eraseblocks = { {4096 * 1024, 1} },
17293 .block_erase = spi_block_erase_c7,
17294 }
17295 },
17296 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17297 .unlock = spi_disable_blockprotect,
17298 .write = spi_chip_write_256,
17299 .read = spi_chip_read, /* Fast read (0x0B) supported */
17300 .voltage = {2700, 3600},
17301 },
17302
17303 {
17304 .vendor = "Winbond",
17305 .name = "W25P80",
17306 .bustype = BUS_SPI,
17307 .manufacture_id = WINBOND_NEX_ID,
17308 .model_id = WINBOND_NEX_W25P80,
17309 .total_size = 1024,
17310 .page_size = 256,
17311 .feature_bits = FEATURE_WRSR_WREN,
17312 .tested = TEST_UNTESTED,
17313 .probe = probe_spi_rdid,
17314 .probe_timing = TIMING_ZERO,
17315 .block_erasers =
17316 {
17317 {
Rudolf Marekce1c7982010-04-20 19:34:31 +000017318 .eraseblocks = { {64 * 1024, 16} },
17319 .block_erase = spi_block_erase_d8,
17320 }, {
17321 .eraseblocks = { {1024 * 1024, 1} },
Rudolf Marekce1c7982010-04-20 19:34:31 +000017322 .block_erase = spi_block_erase_c7,
17323 }
17324 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000017325 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000017326 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000017327 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017328 .read = spi_chip_read, /* Fast read (0x0B) supported */
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017329 .voltage = {2700, 3600},
David Hendricksc4acec92010-06-24 11:39:57 +000017330 },
17331
17332 {
17333 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017334 .name = "W25Q128.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017335 .bustype = BUS_SPI,
Antony Rheneus0fbba982011-05-26 14:28:51 +000017336 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017337 .model_id = WINBOND_NEX_W25Q128_V,
Antony Rheneus0fbba982011-05-26 14:28:51 +000017338 .total_size = 16384,
17339 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017340 /* supports SFDP */
17341 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber3f3c1f32022-05-28 16:48:26 +020017342 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP |
17343 FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3,
Edward O'Callaghana97e3532022-12-16 15:41:05 +110017344 .tested = TEST_OK_PREWB,
Antony Rheneus0fbba982011-05-26 14:28:51 +000017345 .probe = probe_spi_rdid,
17346 .probe_timing = TIMING_ZERO,
17347 .block_erasers =
17348 {
17349 {
17350 .eraseblocks = { {4 * 1024, 4096} },
17351 .block_erase = spi_block_erase_20,
17352 }, {
17353 .eraseblocks = { {32 * 1024, 512} },
17354 .block_erase = spi_block_erase_52,
17355 }, {
17356 .eraseblocks = { {64 * 1024, 256} },
17357 .block_erase = spi_block_erase_d8,
17358 }, {
17359 .eraseblocks = { {16 * 1024 * 1024, 1} },
17360 .block_erase = spi_block_erase_60,
17361 }, {
17362 .eraseblocks = { {16 * 1024 * 1024, 1} },
17363 .block_erase = spi_block_erase_c7,
17364 }
17365 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000017366 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Antony Rheneus0fbba982011-05-26 14:28:51 +000017367 .unlock = spi_disable_blockprotect,
17368 .write = spi_chip_write_256,
17369 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017370 .voltage = {2700, 3600},
Sergii Dmytrukd1af3072021-11-08 00:00:43 +020017371 /* FIXME: Older versions (e.g. 25Q128BV) use WRSR_EXT and have no WPS. */
17372 .reg_bits =
17373 {
17374 .srp = {STATUS1, 7, RW},
17375 .srl = {STATUS2, 0, RW},
17376 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
17377 .tb = {STATUS1, 5, RW},
17378 .sec = {STATUS1, 6, RW},
17379 .cmp = {STATUS2, 6, RW},
17380 .wps = {STATUS3, 2, RW},
17381 },
17382 .decode_range = decode_range_spi25,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017383 },
17384
17385 {
17386 .vendor = "Winbond",
Patrick Rudolph34323492018-10-04 14:59:40 +020017387 .name = "W25Q128.V..M",
17388 .bustype = BUS_SPI,
17389 .manufacture_id = WINBOND_NEX_ID,
17390 .model_id = WINBOND_NEX_W25Q128_V_M,
17391 .total_size = 16384,
17392 .page_size = 256,
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110017393 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_WRSR2,
Sergii Dmytrukc74eac22022-10-06 18:17:58 +030017394 .tested = TEST_OK_PREWB,
Patrick Rudolph34323492018-10-04 14:59:40 +020017395 .probe = probe_spi_rdid,
17396 .probe_timing = TIMING_ZERO,
17397 .block_erasers =
17398 {
17399 {
17400 .eraseblocks = { {4 * 1024, 4096} },
17401 .block_erase = spi_block_erase_20,
17402 }, {
17403 .eraseblocks = { {32 * 1024, 512} },
17404 .block_erase = spi_block_erase_52,
17405 }, {
17406 .eraseblocks = { {64 * 1024, 256} },
17407 .block_erase = spi_block_erase_d8,
17408 }, {
17409 .eraseblocks = { {16 * 1024 * 1024, 1} },
17410 .block_erase = spi_block_erase_60,
17411 }, {
17412 .eraseblocks = { {16 * 1024 * 1024, 1} },
17413 .block_erase = spi_block_erase_c7,
17414 }
17415 },
Alan Greena1fc01d2019-09-23 17:12:44 +100017416 .printlock = spi_prettyprint_status_register_plain,
Patrick Rudolph34323492018-10-04 14:59:40 +020017417 .unlock = spi_disable_blockprotect,
17418 .write = spi_chip_write_256,
17419 .read = spi_chip_read,
17420 .voltage = {2700, 3600},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110017421 .reg_bits =
17422 {
17423 .srp = {STATUS1, 7, RW},
17424 .srl = {STATUS2, 0, RW},
17425 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
17426 .tb = {STATUS1, 5, RW},
17427 .sec = {STATUS1, 6, RW},
17428 .cmp = {STATUS2, 6, RW},
17429 },
17430 .decode_range = decode_range_spi25,
Patrick Rudolph34323492018-10-04 14:59:40 +020017431 },
17432
17433 {
17434 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017435 .name = "W25Q128.W",
17436 .bustype = BUS_SPI,
17437 .manufacture_id = WINBOND_NEX_ID,
17438 .model_id = WINBOND_NEX_W25Q128_W,
17439 .total_size = 16384,
17440 .page_size = 256,
17441 /* supports SFDP */
17442 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110017443 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_WRSR2,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017444 .tested = TEST_OK_PREW,
17445 .probe = probe_spi_rdid,
17446 .probe_timing = TIMING_ZERO,
17447 .block_erasers =
17448 {
17449 {
17450 .eraseblocks = { {4 * 1024, 4096} },
17451 .block_erase = spi_block_erase_20,
17452 }, {
17453 .eraseblocks = { {32 * 1024, 512} },
17454 .block_erase = spi_block_erase_52,
17455 }, {
17456 .eraseblocks = { {64 * 1024, 256} },
17457 .block_erase = spi_block_erase_d8,
17458 }, {
17459 .eraseblocks = { {16 * 1024 * 1024, 1} },
17460 .block_erase = spi_block_erase_60,
17461 }, {
17462 .eraseblocks = { {16 * 1024 * 1024, 1} },
17463 .block_erase = spi_block_erase_c7,
17464 }
17465 },
17466 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17467 .unlock = spi_disable_blockprotect,
17468 .write = spi_chip_write_256,
17469 .read = spi_chip_read,
17470 .voltage = {1650, 1950},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110017471 .reg_bits =
17472 {
17473 .srp = {STATUS1, 7, RW},
17474 .srl = {STATUS2, 0, RW},
17475 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
17476 .tb = {STATUS1, 5, RW},
17477 .sec = {STATUS1, 6, RW},
17478 .cmp = {STATUS2, 6, RW},
17479 },
17480 .decode_range = decode_range_spi25,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017481 },
17482
17483 {
17484 .vendor = "Winbond",
Peichao Wang1a119492019-11-11 15:26:41 +080017485 .name = "W25Q128.JW.DTR",
17486 .bustype = BUS_SPI,
17487 .manufacture_id = WINBOND_NEX_ID,
17488 .model_id = WINBOND_NEX_W25Q128_DTR,
17489 .total_size = 16384,
17490 .page_size = 256,
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110017491 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_WRSR2,
Peichao Wang1a119492019-11-11 15:26:41 +080017492 .tested = TEST_OK_PREW,
17493 .probe = probe_spi_rdid,
17494 .probe_timing = TIMING_ZERO,
17495 .block_erasers =
17496 {
17497 {
17498 .eraseblocks = { {4 * 1024, 4096} },
17499 .block_erase = spi_block_erase_20,
17500 }, {
17501 .eraseblocks = { {32 * 1024, 512} },
17502 .block_erase = spi_block_erase_52,
17503 }, {
17504 .eraseblocks = { {64 * 1024, 256} },
17505 .block_erase = spi_block_erase_d8,
17506 }, {
17507 .eraseblocks = { {16 * 1024 * 1024, 1} },
17508 .block_erase = spi_block_erase_60,
17509 }, {
17510 .eraseblocks = { {16 * 1024 * 1024, 1} },
17511 .block_erase = spi_block_erase_c7,
17512 }
17513 },
17514 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17515 .unlock = spi_disable_blockprotect,
17516 .write = spi_chip_write_256,
17517 .read = spi_chip_read,
17518 .voltage = {1650, 1950},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110017519 .reg_bits =
17520 {
17521 .srp = {STATUS1, 7, RW},
17522 .srl = {STATUS2, 0, RW},
17523 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
17524 .tb = {STATUS1, 5, RW},
17525 .sec = {STATUS1, 6, RW},
17526 .cmp = {STATUS2, 6, RW},
17527 },
17528 .decode_range = decode_range_spi25,
Peichao Wang1a119492019-11-11 15:26:41 +080017529 },
17530
17531 {
17532 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017533 .name = "W25Q16.V",
17534 .bustype = BUS_SPI,
17535 .manufacture_id = WINBOND_NEX_ID,
17536 .model_id = WINBOND_NEX_W25Q16_V,
17537 .total_size = 2048,
17538 .page_size = 256,
17539 /* supports SFDP */
17540 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17541 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17542 .tested = TEST_OK_PREW,
17543 .probe = probe_spi_rdid,
17544 .probe_timing = TIMING_ZERO,
17545 .block_erasers =
17546 {
17547 {
17548 .eraseblocks = { {4 * 1024, 512} },
17549 .block_erase = spi_block_erase_20,
17550 }, {
17551 .eraseblocks = { {32 * 1024, 64} },
17552 .block_erase = spi_block_erase_52,
17553 }, {
17554 .eraseblocks = { {64 * 1024, 32} },
17555 .block_erase = spi_block_erase_d8,
17556 }, {
17557 .eraseblocks = { {2 * 1024 * 1024, 1} },
17558 .block_erase = spi_block_erase_60,
17559 }, {
17560 .eraseblocks = { {2 * 1024 * 1024, 1} },
17561 .block_erase = spi_block_erase_c7,
17562 }
17563 },
17564 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17565 .unlock = spi_disable_blockprotect,
17566 .write = spi_chip_write_256,
17567 .read = spi_chip_read,
17568 .voltage = {2700, 3600},
17569 },
17570
17571 {
17572 .vendor = "Winbond",
17573 .name = "W25Q16.W",
17574 .bustype = BUS_SPI,
17575 .manufacture_id = WINBOND_NEX_ID,
17576 .model_id = WINBOND_NEX_W25Q16_W,
17577 .total_size = 2048,
17578 .page_size = 256,
17579 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17580 /* QPI enable 0x38, disable 0xFF */
17581 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
17582 .tested = TEST_UNTESTED,
17583 .probe = probe_spi_rdid,
17584 .probe_timing = TIMING_ZERO,
17585 .block_erasers =
17586 {
17587 {
17588 .eraseblocks = { {4 * 1024, 512} },
17589 .block_erase = spi_block_erase_20,
17590 }, {
17591 .eraseblocks = { {32 * 1024, 64} },
17592 .block_erase = spi_block_erase_52,
17593 }, {
17594 .eraseblocks = { {64 * 1024, 32} },
17595 .block_erase = spi_block_erase_d8,
17596 }, {
17597 .eraseblocks = { {2 * 1024 * 1024, 1} },
17598 .block_erase = spi_block_erase_60,
17599 }, {
17600 .eraseblocks = { {2 * 1024 * 1024, 1} },
17601 .block_erase = spi_block_erase_c7,
17602 }
17603 },
17604 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17605 .unlock = spi_disable_blockprotect,
17606 .write = spi_chip_write_256,
17607 .read = spi_chip_read,
17608 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
17609 },
17610
17611 {
17612 .vendor = "Winbond",
17613 .name = "W25Q20.W",
17614 .bustype = BUS_SPI,
17615 .manufacture_id = WINBOND_NEX_ID,
17616 .model_id = WINBOND_NEX_W25Q20_W,
17617 .total_size = 256,
17618 .page_size = 256,
17619 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17620 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17621 .tested = TEST_UNTESTED,
17622 .probe = probe_spi_rdid,
17623 .probe_timing = TIMING_ZERO,
17624 .block_erasers =
17625 {
17626 {
17627 .eraseblocks = { {4 * 1024, 64} },
17628 .block_erase = spi_block_erase_20,
17629 }, {
17630 .eraseblocks = { {32 * 1024, 8} },
17631 .block_erase = spi_block_erase_52,
17632 }, {
17633 .eraseblocks = { {64 * 1024, 4} },
17634 .block_erase = spi_block_erase_d8,
17635 }, {
17636 .eraseblocks = { {256 * 1024, 1} },
17637 .block_erase = spi_block_erase_60,
17638 }, {
17639 .eraseblocks = { {256 * 1024, 1} },
17640 .block_erase = spi_block_erase_c7,
17641 }
17642 },
17643 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17644 .unlock = spi_disable_blockprotect,
17645 .write = spi_chip_write_256,
17646 .read = spi_chip_read,
17647 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
17648 },
17649
17650 {
17651 .vendor = "Winbond",
Nico Huber5215eab2022-05-23 15:13:07 +020017652 .name = "W25Q256FV",
Boris Baykovaa6c3742016-06-11 18:29:01 +020017653 .bustype = BUS_SPI,
17654 .manufacture_id = WINBOND_NEX_ID,
17655 .model_id = WINBOND_NEX_W25Q256_V,
17656 .total_size = 32768,
17657 .page_size = 256,
17658 /* supports SFDP */
17659 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110017660 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_ENTER_WREN |
Nico Huber542b1f02022-05-24 14:30:12 +020017661 FEATURE_4BA_EAR_C5C8 | FEATURE_4BA_READ | FEATURE_4BA_FAST_READ |
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110017662 FEATURE_WRSR2,
Angel Pons3130cbd2018-09-30 19:32:30 +020017663 .tested = TEST_OK_PREW,
Boris Baykovaa6c3742016-06-11 18:29:01 +020017664 .probe = probe_spi_rdid,
17665 .probe_timing = TIMING_ZERO,
17666 .block_erasers =
17667 {
17668 {
17669 .eraseblocks = { {4 * 1024, 8192} },
Nico Huber7a077222017-10-14 18:18:30 +020017670 .block_erase = spi_block_erase_20,
Boris Baykovaa6c3742016-06-11 18:29:01 +020017671 }, {
17672 .eraseblocks = { {32 * 1024, 1024} },
Nico Huber7a077222017-10-14 18:18:30 +020017673 .block_erase = spi_block_erase_52,
Boris Baykovaa6c3742016-06-11 18:29:01 +020017674 }, {
17675 .eraseblocks = { {64 * 1024, 512} },
Nico Huber7a077222017-10-14 18:18:30 +020017676 .block_erase = spi_block_erase_d8,
Boris Baykovaa6c3742016-06-11 18:29:01 +020017677 }, {
17678 .eraseblocks = { {32 * 1024 * 1024, 1} },
17679 .block_erase = spi_block_erase_60,
17680 }, {
17681 .eraseblocks = { {32 * 1024 * 1024, 1} },
17682 .block_erase = spi_block_erase_c7,
17683 }
17684 },
17685 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17686 .unlock = spi_disable_blockprotect,
17687 .write = spi_chip_write_256,
17688 .read = spi_chip_read,
17689 .voltage = {2700, 3600},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110017690 .reg_bits =
17691 {
17692 .srp = {STATUS1, 7, RW},
17693 .srl = {STATUS2, 0, RW},
17694 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}},
17695 .tb = {STATUS1, 6, RW},
17696 .cmp = {STATUS2, 6, RW},
17697 },
17698 .decode_range = decode_range_spi25,
Nico Huberab6b18f2023-01-11 23:38:20 +010017699 .prepare_access = spi_prepare_4ba,
Boris Baykovaa6c3742016-06-11 18:29:01 +020017700 },
17701
17702 {
17703 .vendor = "Winbond",
Nico Huber5215eab2022-05-23 15:13:07 +020017704 .name = "W25Q256JV_Q",
17705 .bustype = BUS_SPI,
17706 .manufacture_id = WINBOND_NEX_ID,
17707 .model_id = WINBOND_NEX_W25Q256_V,
17708 .total_size = 32768,
17709 .page_size = 256,
17710 /* supports SFDP */
17711 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17712 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA | FEATURE_WRSR2,
Nico Huberddfbbe82023-12-21 16:31:27 +010017713 .tested = TEST_OK_PREW,
Nico Huber5215eab2022-05-23 15:13:07 +020017714 .probe = probe_spi_rdid,
17715 .probe_timing = TIMING_ZERO,
17716 .block_erasers =
17717 {
17718 {
17719 .eraseblocks = { {4 * 1024, 8192} },
17720 .block_erase = spi_block_erase_21,
17721 }, {
17722 .eraseblocks = { {4 * 1024, 8192} },
17723 .block_erase = spi_block_erase_20,
17724 }, {
17725 .eraseblocks = { {32 * 1024, 1024} },
17726 .block_erase = spi_block_erase_52,
17727 }, {
17728 .eraseblocks = { {64 * 1024, 512} },
17729 .block_erase = spi_block_erase_dc,
17730 }, {
17731 .eraseblocks = { {64 * 1024, 512} },
17732 .block_erase = spi_block_erase_d8,
17733 }, {
17734 .eraseblocks = { {32 * 1024 * 1024, 1} },
17735 .block_erase = spi_block_erase_60,
17736 }, {
17737 .eraseblocks = { {32 * 1024 * 1024, 1} },
17738 .block_erase = spi_block_erase_c7,
17739 }
17740 },
17741 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17742 .unlock = spi_disable_blockprotect,
17743 .write = spi_chip_write_256,
17744 .read = spi_chip_read,
17745 .voltage = {2700, 3600},
17746 .reg_bits =
17747 {
17748 .srp = {STATUS1, 7, RW},
17749 .srl = {STATUS2, 0, RW},
17750 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}},
17751 .tb = {STATUS1, 6, RW},
17752 .cmp = {STATUS2, 6, RW},
17753 },
17754 .decode_range = decode_range_spi25,
Nico Huberab6b18f2023-01-11 23:38:20 +010017755 .prepare_access = spi_prepare_4ba,
Nico Huber5215eab2022-05-23 15:13:07 +020017756 },
17757
17758 {
17759 .vendor = "Winbond",
David Hendricks49876792018-10-27 20:19:42 +000017760 .name = "W25Q256JV_M",
17761 .bustype = BUS_SPI,
17762 .manufacture_id = WINBOND_NEX_ID,
17763 .model_id = WINBOND_NEX_W25Q256JV_M,
17764 .total_size = 32768,
17765 .page_size = 256,
17766 /* supports SFDP */
17767 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110017768 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA | FEATURE_WRSR2,
David Hendricks49876792018-10-27 20:19:42 +000017769 .tested = TEST_OK_PREW,
17770 .probe = probe_spi_rdid,
17771 .probe_timing = TIMING_ZERO,
17772 .block_erasers =
17773 {
17774 {
17775 .eraseblocks = { {4 * 1024, 8192} },
17776 .block_erase = spi_block_erase_21,
17777 }, {
17778 .eraseblocks = { {4 * 1024, 8192} },
17779 .block_erase = spi_block_erase_20,
17780 }, {
17781 .eraseblocks = { {32 * 1024, 1024} },
17782 .block_erase = spi_block_erase_52,
17783 }, {
17784 .eraseblocks = { {64 * 1024, 512} },
17785 .block_erase = spi_block_erase_dc,
17786 }, {
17787 .eraseblocks = { {64 * 1024, 512} },
17788 .block_erase = spi_block_erase_d8,
17789 }, {
17790 .eraseblocks = { {32 * 1024 * 1024, 1} },
17791 .block_erase = spi_block_erase_60,
17792 }, {
17793 .eraseblocks = { {32 * 1024 * 1024, 1} },
17794 .block_erase = spi_block_erase_c7,
17795 }
17796 },
17797 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17798 .unlock = spi_disable_blockprotect,
17799 .write = spi_chip_write_256,
17800 .read = spi_chip_read,
17801 .voltage = {2700, 3600},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110017802 .reg_bits =
17803 {
17804 .srp = {STATUS1, 7, RW},
17805 .srl = {STATUS2, 0, RW},
17806 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}},
17807 .tb = {STATUS1, 6, RW},
17808 .cmp = {STATUS2, 6, RW},
17809 },
17810 .decode_range = decode_range_spi25,
Nico Huberab6b18f2023-01-11 23:38:20 +010017811 .prepare_access = spi_prepare_4ba,
David Hendricks49876792018-10-27 20:19:42 +000017812 },
17813
17814 {
17815 .vendor = "Winbond",
Patrick Rudolph8f5bd982020-08-26 09:15:53 +020017816 .name = "W25Q256JW",
el-coderon01209852020-04-29 12:12:53 +020017817 .bustype = BUS_SPI,
17818 .manufacture_id = WINBOND_NEX_ID,
17819 .model_id = WINBOND_NEX_W25Q256_W,
17820 .total_size = 32768,
17821 .page_size = 256,
17822 /* supports SFDP */
17823 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Patrick Rudolph8f5bd982020-08-26 09:15:53 +020017824 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
el-coderon01209852020-04-29 12:12:53 +020017825 .tested = TEST_OK_PREW,
17826 .probe = probe_spi_rdid,
17827 .probe_timing = TIMING_ZERO,
17828 .block_erasers =
17829 {
17830 {
17831 .eraseblocks = { {4 * 1024, 8192} },
Patrick Rudolph8f5bd982020-08-26 09:15:53 +020017832 .block_erase = spi_block_erase_21,
17833 }, {
17834 .eraseblocks = { {4 * 1024, 8192} },
el-coderon01209852020-04-29 12:12:53 +020017835 .block_erase = spi_block_erase_20,
17836 }, {
17837 .eraseblocks = { {32 * 1024, 1024} },
17838 .block_erase = spi_block_erase_52,
17839 }, {
17840 .eraseblocks = { {64 * 1024, 512} },
Patrick Rudolph8f5bd982020-08-26 09:15:53 +020017841 .block_erase = spi_block_erase_dc,
17842 }, {
17843 .eraseblocks = { {64 * 1024, 512} },
el-coderon01209852020-04-29 12:12:53 +020017844 .block_erase = spi_block_erase_d8,
17845 }, {
17846 .eraseblocks = { {32 * 1024 * 1024, 1} },
17847 .block_erase = spi_block_erase_60,
17848 }, {
17849 .eraseblocks = { {32 * 1024 * 1024, 1} },
17850 .block_erase = spi_block_erase_c7,
17851 }
17852 },
17853 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17854 .unlock = spi_disable_blockprotect,
17855 .write = spi_chip_write_256,
17856 .read = spi_chip_read,
17857 .voltage = {1650, 1950},
Nico Huberab6b18f2023-01-11 23:38:20 +010017858 .prepare_access = spi_prepare_4ba,
el-coderon01209852020-04-29 12:12:53 +020017859 },
17860
17861 {
17862 .vendor = "Winbond",
David Hendricks31532602020-08-16 17:14:56 -070017863 .name = "W25Q256JW_DTR",
17864 .bustype = BUS_SPI,
17865 .manufacture_id = WINBOND_NEX_ID,
17866 .model_id = WINBOND_NEX_W25Q256_DTR,
17867 .total_size = 32768,
17868 .page_size = 256,
17869 /* supports SFDP */
17870 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Kapil Porwal111c3802022-12-09 19:41:27 +053017871 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA | FEATURE_WRSR2
17872 | FEATURE_WRSR3,
17873 .tested = TEST_OK_PREWB,
David Hendricks31532602020-08-16 17:14:56 -070017874 .probe = probe_spi_rdid,
17875 .probe_timing = TIMING_ZERO,
17876 .block_erasers =
17877 {
17878 {
17879 .eraseblocks = { {4 * 1024, 8192} },
17880 .block_erase = spi_block_erase_21,
17881 }, {
17882 .eraseblocks = { {4 * 1024, 8192} },
17883 .block_erase = spi_block_erase_20,
17884 }, {
17885 .eraseblocks = { {32 * 1024, 1024} },
17886 .block_erase = spi_block_erase_52,
17887 }, {
17888 .eraseblocks = { {64 * 1024, 512} },
17889 .block_erase = spi_block_erase_dc,
17890 }, {
17891 .eraseblocks = { {64 * 1024, 512} },
17892 .block_erase = spi_block_erase_d8,
17893 }, {
17894 .eraseblocks = { {32 * 1024 * 1024, 1} },
17895 .block_erase = spi_block_erase_60,
17896 }, {
17897 .eraseblocks = { {32 * 1024 * 1024, 1} },
17898 .block_erase = spi_block_erase_c7,
17899 }
17900 },
17901 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17902 .unlock = spi_disable_blockprotect,
17903 .write = spi_chip_write_256,
17904 .read = spi_chip_read,
17905 .voltage = {1700, 1950},
Kapil Porwal111c3802022-12-09 19:41:27 +053017906 .reg_bits =
17907 {
17908 .srp = {STATUS1, 7, RW},
17909 .srl = {STATUS2, 0, RW},
17910 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}},
17911 .tb = {STATUS1, 6, RW},
17912 .cmp = {STATUS2, 6, RW},
17913 .wps = {STATUS3, 2, RW},
17914 },
17915 .decode_range = decode_range_spi25,
Nico Huberab6b18f2023-01-11 23:38:20 +010017916 .prepare_access = spi_prepare_4ba,
David Hendricks31532602020-08-16 17:14:56 -070017917 },
17918
17919 {
17920 .vendor = "Winbond",
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030017921 .name = "W25Q32BV/W25Q32CV/W25Q32DV",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017922 .bustype = BUS_SPI,
17923 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017924 .model_id = WINBOND_NEX_W25Q32_V,
17925 .total_size = 4096,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017926 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017927 /* supports SFDP */
17928 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030017929 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_WRSR_EXT2,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017930 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017931 .probe = probe_spi_rdid,
17932 .probe_timing = TIMING_ZERO,
17933 .block_erasers =
17934 {
17935 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017936 .eraseblocks = { {4 * 1024, 1024} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017937 .block_erase = spi_block_erase_20,
17938 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017939 .eraseblocks = { {32 * 1024, 128} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017940 .block_erase = spi_block_erase_52,
17941 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017942 .eraseblocks = { {64 * 1024, 64} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017943 .block_erase = spi_block_erase_d8,
17944 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017945 .eraseblocks = { {4 * 1024 * 1024, 1} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017946 .block_erase = spi_block_erase_60,
17947 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017948 .eraseblocks = { {4 * 1024 * 1024, 1} },
17949 .block_erase = spi_block_erase_c7,
17950 }
17951 },
17952 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17953 .unlock = spi_disable_blockprotect,
17954 .write = spi_chip_write_256,
17955 .read = spi_chip_read,
17956 .voltage = {2700, 3600},
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030017957 .reg_bits =
17958 {
17959 .srp = {STATUS1, 7, RW},
17960 .srl = {STATUS2, 0, RW},
17961 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
17962 .tb = {STATUS1, 5, RW},
17963 .sec = {STATUS1, 6, RW},
17964 .cmp = {STATUS2, 6, RW},
17965 },
17966 .decode_range = decode_range_spi25,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017967 },
17968
17969 {
17970 .vendor = "Winbond",
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030017971 .name = "W25Q32FV",
17972 .bustype = BUS_SPI,
17973 .manufacture_id = WINBOND_NEX_ID,
17974 .model_id = WINBOND_NEX_W25Q32_V,
17975 .total_size = 4096,
17976 .page_size = 256,
17977 /* supports SFDP */
17978 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17979 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI |
17980 FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3,
17981 .tested = TEST_OK_PREW,
17982 .probe = probe_spi_rdid,
17983 .probe_timing = TIMING_ZERO,
17984 .block_erasers =
17985 {
17986 {
17987 .eraseblocks = { {4 * 1024, 1024} },
17988 .block_erase = spi_block_erase_20,
17989 }, {
17990 .eraseblocks = { {32 * 1024, 128} },
17991 .block_erase = spi_block_erase_52,
17992 }, {
17993 .eraseblocks = { {64 * 1024, 64} },
17994 .block_erase = spi_block_erase_d8,
17995 }, {
17996 .eraseblocks = { {4 * 1024 * 1024, 1} },
17997 .block_erase = spi_block_erase_60,
17998 }, {
17999 .eraseblocks = { {4 * 1024 * 1024, 1} },
18000 .block_erase = spi_block_erase_c7,
18001 }
18002 },
18003 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18004 .unlock = spi_disable_blockprotect,
18005 .write = spi_chip_write_256,
18006 .read = spi_chip_read,
18007 .voltage = {2700, 3600},
18008 .reg_bits =
18009 {
18010 .srp = {STATUS1, 7, RW},
18011 .srl = {STATUS2, 0, RW},
18012 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
18013 .tb = {STATUS1, 5, RW},
18014 .sec = {STATUS1, 6, RW},
18015 .cmp = {STATUS2, 6, RW},
18016 .wps = {STATUS3, 2, RW},
18017 },
18018 .decode_range = decode_range_spi25,
18019 },
18020
18021 {
18022 .vendor = "Winbond",
18023 .name = "W25Q32JV",
18024 .bustype = BUS_SPI,
18025 .manufacture_id = WINBOND_NEX_ID,
18026 .model_id = WINBOND_NEX_W25Q32_V,
18027 .total_size = 4096,
18028 .page_size = 256,
18029 /* supports SFDP */
18030 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
18031 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP |
18032 FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3,
18033 .tested = TEST_OK_PREW,
18034 .probe = probe_spi_rdid,
18035 .probe_timing = TIMING_ZERO,
18036 .block_erasers =
18037 {
18038 {
18039 .eraseblocks = { {4 * 1024, 1024} },
18040 .block_erase = spi_block_erase_20,
18041 }, {
18042 .eraseblocks = { {32 * 1024, 128} },
18043 .block_erase = spi_block_erase_52,
18044 }, {
18045 .eraseblocks = { {64 * 1024, 64} },
18046 .block_erase = spi_block_erase_d8,
18047 }, {
18048 .eraseblocks = { {4 * 1024 * 1024, 1} },
18049 .block_erase = spi_block_erase_60,
18050 }, {
18051 .eraseblocks = { {4 * 1024 * 1024, 1} },
18052 .block_erase = spi_block_erase_c7,
18053 }
18054 },
18055 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18056 .unlock = spi_disable_blockprotect,
18057 .write = spi_chip_write_256,
18058 .read = spi_chip_read,
18059 .voltage = {2700, 3600},
18060 .reg_bits =
18061 {
18062 .srp = {STATUS1, 7, RW},
18063 .srl = {STATUS2, 0, RW},
18064 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
18065 .tb = {STATUS1, 5, RW},
18066 .sec = {STATUS1, 6, RW},
18067 .cmp = {STATUS2, 6, RW},
18068 .wps = {STATUS3, 2, RW},
18069 },
18070 .decode_range = decode_range_spi25,
18071 },
18072
18073 {
18074 .vendor = "Winbond",
18075 .name = "W25Q32BW/W25Q32CW/W25Q32DW",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018076 .bustype = BUS_SPI,
18077 .manufacture_id = WINBOND_NEX_ID,
18078 .model_id = WINBOND_NEX_W25Q32_W,
18079 .total_size = 4096,
18080 .page_size = 256,
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018081 /* OTP: 1024B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Alan Green1f9cc7d2019-07-01 11:10:45 +100018082 /* QPI enable 0x38, disable 0xFF */
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018083 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_WRSR_EXT2,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018084 .tested = TEST_OK_PREW,
18085 .probe = probe_spi_rdid,
18086 .probe_timing = TIMING_ZERO,
18087 .block_erasers =
18088 {
18089 {
18090 .eraseblocks = { {4 * 1024, 1024} },
18091 .block_erase = spi_block_erase_20,
18092 }, {
18093 .eraseblocks = { {32 * 1024, 128} },
18094 .block_erase = spi_block_erase_52,
18095 }, {
18096 .eraseblocks = { {64 * 1024, 64} },
18097 .block_erase = spi_block_erase_d8,
18098 }, {
18099 .eraseblocks = { {4 * 1024 * 1024, 1} },
18100 .block_erase = spi_block_erase_60,
18101 }, {
18102 .eraseblocks = { {4 * 1024 * 1024, 1} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018103 .block_erase = spi_block_erase_c7,
18104 }
18105 },
18106 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18107 .unlock = spi_disable_blockprotect,
18108 .write = spi_chip_write_256,
18109 .read = spi_chip_read,
18110 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018111 .reg_bits =
18112 {
18113 .srp = {STATUS1, 7, RW},
18114 .srl = {STATUS2, 0, RW},
18115 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
18116 .tb = {STATUS1, 5, RW},
18117 .sec = {STATUS1, 6, RW},
18118 .cmp = {STATUS2, 6, RW},
18119 },
18120 .decode_range = decode_range_spi25,
18121 },
18122
18123 {
18124 .vendor = "Winbond",
18125 .name = "W25Q32FW",
18126 .bustype = BUS_SPI,
18127 .manufacture_id = WINBOND_NEX_ID,
18128 .model_id = WINBOND_NEX_W25Q32_W,
18129 .total_size = 4096,
18130 .page_size = 256,
18131 /* OTP: 768B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
18132 /* QPI enable 0x38, disable 0xFF */
18133 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI |
18134 FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3,
18135 .tested = TEST_OK_PREW,
18136 .probe = probe_spi_rdid,
18137 .probe_timing = TIMING_ZERO,
18138 .block_erasers =
18139 {
18140 {
18141 .eraseblocks = { {4 * 1024, 1024} },
18142 .block_erase = spi_block_erase_20,
18143 }, {
18144 .eraseblocks = { {32 * 1024, 128} },
18145 .block_erase = spi_block_erase_52,
18146 }, {
18147 .eraseblocks = { {64 * 1024, 64} },
18148 .block_erase = spi_block_erase_d8,
18149 }, {
18150 .eraseblocks = { {4 * 1024 * 1024, 1} },
18151 .block_erase = spi_block_erase_60,
18152 }, {
18153 .eraseblocks = { {4 * 1024 * 1024, 1} },
18154 .block_erase = spi_block_erase_c7,
18155 }
18156 },
18157 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18158 .unlock = spi_disable_blockprotect,
18159 .write = spi_chip_write_256,
18160 .read = spi_chip_read,
18161 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
18162 .reg_bits =
18163 {
18164 .srp = {STATUS1, 7, RW},
18165 .srl = {STATUS2, 0, RW},
18166 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
18167 .tb = {STATUS1, 5, RW},
18168 .sec = {STATUS1, 6, RW},
18169 .cmp = {STATUS2, 6, RW},
18170 .wps = {STATUS3, 2, RW},
18171 },
18172 .decode_range = decode_range_spi25,
18173 },
18174
18175 {
18176 .vendor = "Winbond",
18177 .name = "W25Q32JW...Q",
18178 .bustype = BUS_SPI,
18179 .manufacture_id = WINBOND_NEX_ID,
18180 .model_id = WINBOND_NEX_W25Q32_W,
18181 .total_size = 4096,
18182 .page_size = 256,
18183 /* OTP: 768B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
18184 /* QPI enable 0x38, disable 0xFF */
18185 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP |
18186 FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3,
18187 .tested = TEST_OK_PREW,
18188 .probe = probe_spi_rdid,
18189 .probe_timing = TIMING_ZERO,
18190 .block_erasers =
18191 {
18192 {
18193 .eraseblocks = { {4 * 1024, 1024} },
18194 .block_erase = spi_block_erase_20,
18195 }, {
18196 .eraseblocks = { {32 * 1024, 128} },
18197 .block_erase = spi_block_erase_52,
18198 }, {
18199 .eraseblocks = { {64 * 1024, 64} },
18200 .block_erase = spi_block_erase_d8,
18201 }, {
18202 .eraseblocks = { {4 * 1024 * 1024, 1} },
18203 .block_erase = spi_block_erase_60,
18204 }, {
18205 .eraseblocks = { {4 * 1024 * 1024, 1} },
18206 .block_erase = spi_block_erase_c7,
18207 }
18208 },
18209 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18210 .unlock = spi_disable_blockprotect,
18211 .write = spi_chip_write_256,
18212 .read = spi_chip_read,
18213 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
18214 .reg_bits =
18215 {
18216 .srp = {STATUS1, 7, RW},
18217 .srl = {STATUS2, 0, RW},
18218 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
18219 .tb = {STATUS1, 5, RW},
18220 .sec = {STATUS1, 6, RW},
18221 .cmp = {STATUS2, 6, RW},
18222 .wps = {STATUS3, 2, RW},
18223 },
18224 .decode_range = decode_range_spi25,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018225 },
18226
18227 {
18228 .vendor = "Winbond",
Nikolai Artemiev6ae79b12021-05-08 17:31:23 +100018229 .name = "W25Q32JW...M",
18230 .bustype = BUS_SPI,
18231 .manufacture_id = WINBOND_NEX_ID,
18232 .model_id = WINBOND_NEX_W25Q32JW_M,
18233 .total_size = 4096,
18234 .page_size = 256,
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018235 /* OTP: 768B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
18236 /* QPI enable 0x38, disable 0xFF */
18237 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP |
18238 FEATURE_WRSR2 | FEATURE_WRSR3 | FEATURE_WRSR_EXT2,
Nikolai Artemiev6ae79b12021-05-08 17:31:23 +100018239 .tested = TEST_OK_PREW,
18240 .probe = probe_spi_rdid,
18241 .probe_timing = TIMING_ZERO,
18242 .block_erasers =
18243 {
18244 {
18245 .eraseblocks = { {4 * 1024, 1024} },
18246 .block_erase = spi_block_erase_20,
18247 }, {
18248 .eraseblocks = { {32 * 1024, 128} },
18249 .block_erase = spi_block_erase_52,
18250 }, {
18251 .eraseblocks = { {64 * 1024, 64} },
18252 .block_erase = spi_block_erase_d8,
18253 }, {
18254 .eraseblocks = { {4 * 1024 * 1024, 1} },
18255 .block_erase = spi_block_erase_60,
18256 }, {
18257 .eraseblocks = { {4 * 1024 * 1024, 1} },
18258 .block_erase = spi_block_erase_c7,
18259 }
18260 },
18261 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
18262 .unlock = spi_disable_blockprotect_bp2_srwd,
18263 .write = spi_chip_write_256,
18264 .read = spi_chip_read,
18265 .voltage = {1700, 1950},
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018266 .reg_bits =
18267 {
18268 .srp = {STATUS1, 7, RW},
18269 .srl = {STATUS2, 0, RW},
18270 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
18271 .tb = {STATUS1, 5, RW},
18272 .sec = {STATUS1, 6, RW},
18273 .cmp = {STATUS2, 6, RW},
18274 .wps = {STATUS3, 2, RW},
18275 },
18276 .decode_range = decode_range_spi25,
Nikolai Artemiev6ae79b12021-05-08 17:31:23 +100018277 },
18278
18279 {
18280 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018281 .name = "W25Q40.V",
18282 .bustype = BUS_SPI,
18283 .manufacture_id = WINBOND_NEX_ID,
18284 .model_id = WINBOND_NEX_W25Q40_V,
18285 .total_size = 512,
18286 .page_size = 256,
18287 /* supports SFDP */
18288 /* OTP: 756B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
18289 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
18290 .tested = TEST_OK_PREW,
18291 .probe = probe_spi_rdid,
18292 .probe_timing = TIMING_ZERO,
18293 .block_erasers =
18294 {
18295 {
18296 .eraseblocks = { {4 * 1024, 128} },
18297 .block_erase = spi_block_erase_20,
18298 }, {
18299 .eraseblocks = { {32 * 1024, 16} },
18300 .block_erase = spi_block_erase_52,
18301 }, {
18302 .eraseblocks = { {64 * 1024, 8} },
18303 .block_erase = spi_block_erase_d8,
18304 }, {
18305 .eraseblocks = { {512 * 1024, 1} },
18306 .block_erase = spi_block_erase_60,
18307 }, {
18308 .eraseblocks = { {512 * 1024, 1} },
18309 .block_erase = spi_block_erase_c7,
18310 }
18311 },
18312 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18313 .unlock = spi_disable_blockprotect,
18314 .write = spi_chip_write_256, /* Multi I/O supported */
18315 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
18316 .voltage = {2700, 3600},
18317 },
18318
18319 {
18320 .vendor = "Winbond",
Nico Huber25683572018-03-30 13:50:13 +020018321 .name = "W25Q40BW",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018322 .bustype = BUS_SPI,
18323 .manufacture_id = WINBOND_NEX_ID,
Nico Huber25683572018-03-30 13:50:13 +020018324 .model_id = WINBOND_NEX_W25Q40BW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018325 .total_size = 512,
18326 .page_size = 256,
18327 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
18328 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Angel Pons3164a0c2018-09-30 20:26:06 +020018329 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018330 .probe = probe_spi_rdid,
18331 .probe_timing = TIMING_ZERO,
18332 .block_erasers =
18333 {
18334 {
18335 .eraseblocks = { {4 * 1024, 128} },
18336 .block_erase = spi_block_erase_20,
18337 }, {
18338 .eraseblocks = { {32 * 1024, 16} },
18339 .block_erase = spi_block_erase_52,
18340 }, {
18341 .eraseblocks = { {64 * 1024, 8} },
18342 .block_erase = spi_block_erase_d8,
18343 }, {
18344 .eraseblocks = { {512 * 1024, 1} },
18345 .block_erase = spi_block_erase_60,
18346 }, {
18347 .eraseblocks = { {512 * 1024, 1} },
18348 .block_erase = spi_block_erase_c7,
18349 }
18350 },
18351 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18352 .unlock = spi_disable_blockprotect,
18353 .write = spi_chip_write_256,
18354 .read = spi_chip_read,
18355 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
18356 },
18357
18358 {
18359 .vendor = "Winbond",
Nico Huber25683572018-03-30 13:50:13 +020018360 .name = "W25Q40EW",
18361 .bustype = BUS_SPI,
18362 .manufacture_id = WINBOND_NEX_ID,
18363 .model_id = WINBOND_NEX_W25Q40EW,
18364 .total_size = 512,
18365 .page_size = 256,
18366 /* OTP: 3*256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
18367 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Alan Green07b8a172019-09-23 16:47:05 +100018368 .tested = TEST_OK_PREW,
Nico Huber25683572018-03-30 13:50:13 +020018369 .probe = probe_spi_rdid,
18370 .probe_timing = TIMING_ZERO,
18371 .block_erasers =
18372 {
18373 {
18374 .eraseblocks = { {4 * 1024, 128} },
18375 .block_erase = spi_block_erase_20,
18376 }, {
18377 .eraseblocks = { {32 * 1024, 16} },
18378 .block_erase = spi_block_erase_52,
18379 }, {
18380 .eraseblocks = { {64 * 1024, 8} },
18381 .block_erase = spi_block_erase_d8,
18382 }, {
18383 .eraseblocks = { {512 * 1024, 1} },
18384 .block_erase = spi_block_erase_60,
18385 }, {
18386 .eraseblocks = { {512 * 1024, 1} },
18387 .block_erase = spi_block_erase_c7,
18388 }
18389 },
18390 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18391 .unlock = spi_disable_blockprotect,
18392 .write = spi_chip_write_256,
18393 .read = spi_chip_read,
18394 .voltage = {1650, 1950}, /* Fast read (0x0B) and multi I/O supported */
18395 },
18396
Stanislav Sedovf5775442018-03-07 14:16:51 -080018397 {
18398 .vendor = "Winbond",
Joel Stanley55439612019-07-27 19:25:35 +093018399 .name = "W25Q512JV",
18400 .bustype = BUS_SPI,
18401 .manufacture_id = WINBOND_NEX_ID,
18402 .model_id = WINBOND_NEX_W25Q512JV,
18403 .total_size = 64 * 1024,
18404 .page_size = 256,
18405 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
18406 .tested = TEST_OK_PREW,
18407 .probe = probe_spi_rdid,
18408 .probe_timing = TIMING_ZERO,
18409 .block_erasers =
18410 {
18411 {
18412 .eraseblocks = { {4 * 1024, 16384} },
18413 .block_erase = spi_block_erase_21,
18414 }, {
18415 .eraseblocks = { {4 * 1024, 16384} },
18416 .block_erase = spi_block_erase_20,
18417 }, {
18418 .eraseblocks = { {32 * 1024, 2048} },
18419 .block_erase = spi_block_erase_52,
18420 }, {
18421 .eraseblocks = { {64 * 1024, 1024} },
18422 .block_erase = spi_block_erase_dc,
18423 }, {
18424 .eraseblocks = { {64 * 1024, 1024} },
18425 .block_erase = spi_block_erase_d8,
18426 }, {
18427 .eraseblocks = { {64 * 1024 * 1024, 1} },
18428 .block_erase = spi_block_erase_60,
18429 }, {
18430 .eraseblocks = { {64 * 1024 * 1024, 1} },
18431 .block_erase = spi_block_erase_c7,
18432 }
18433 },
18434 .printlock = spi_prettyprint_status_register_plain,
18435 .unlock = spi_disable_blockprotect,
18436 .write = spi_chip_write_256,
18437 .read = spi_chip_read,
18438 .voltage = {2700, 3600},
Nico Huberab6b18f2023-01-11 23:38:20 +010018439 .prepare_access = spi_prepare_4ba,
Joel Stanley55439612019-07-27 19:25:35 +093018440 },
18441
18442 {
Felix Singer3c9bdb92022-12-15 23:30:16 +010018443 .vendor = "Winbond",
18444 .name = "W25Q512NW-IM",
18445 .bustype = BUS_SPI,
18446 .manufacture_id = WINBOND_NEX_ID,
18447 .model_id = WINBOND_NEX_W25Q512NW_IM,
18448 .total_size = 64 * 1024,
18449 .page_size = 256,
Subrata Banikf5bffd92022-12-14 12:30:43 +053018450 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA | FEATURE_WRSR2
18451 | FEATURE_WRSR3,
18452 .tested = TEST_OK_PREWB,
Felix Singer3c9bdb92022-12-15 23:30:16 +010018453 .probe = probe_spi_rdid,
18454 .probe_timing = TIMING_ZERO,
18455 .block_erasers =
Atul Dhudase2502dbd2021-09-21 10:02:20 +053018456 {
Felix Singer3c9bdb92022-12-15 23:30:16 +010018457 {
18458 .eraseblocks = { {4 * 1024, 16384} },
18459 .block_erase = spi_block_erase_21,
18460 }, {
18461 .eraseblocks = { {4 * 1024, 16384} },
18462 .block_erase = spi_block_erase_20,
18463 }, {
18464 .eraseblocks = { {32 * 1024, 2048} },
18465 .block_erase = spi_block_erase_52,
18466 }, {
18467 .eraseblocks = { {64 * 1024, 1024} },
18468 .block_erase = spi_block_erase_dc,
18469 }, {
18470 .eraseblocks = { {64 * 1024, 1024} },
18471 .block_erase = spi_block_erase_d8,
18472 }, {
18473 .eraseblocks = { {64 * 1024 * 1024, 1} },
18474 .block_erase = spi_block_erase_60,
18475 }, {
18476 .eraseblocks = { {64 * 1024 * 1024, 1} },
18477 .block_erase = spi_block_erase_c7,
18478 }
18479 },
18480 .unlock = spi_disable_blockprotect,
18481 .write = spi_chip_write_256,
18482 .read = spi_chip_read,
18483 .voltage = {1650, 1950},
Subrata Banikf5bffd92022-12-14 12:30:43 +053018484 .reg_bits =
18485 {
18486 .srp = {STATUS1, 7, RW},
18487 .srl = {STATUS2, 0, RW},
18488 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}},
18489 .tb = {STATUS1, 6, RW},
18490 .cmp = {STATUS2, 6, RW},
18491 .wps = {STATUS3, 2, RW},
18492 },
18493 .decode_range = decode_range_spi25,
Nico Huberab6b18f2023-01-11 23:38:20 +010018494 .prepare_access = spi_prepare_4ba,
Atul Dhudase2502dbd2021-09-21 10:02:20 +053018495 },
18496
18497 {
Joel Stanley55439612019-07-27 19:25:35 +093018498 .vendor = "Winbond",
Sergii Dmytrukd1af3072021-11-08 00:00:43 +020018499 .name = "W25Q64BV/W25Q64CV/W25Q64FV",
Stanislav Sedovf5775442018-03-07 14:16:51 -080018500 .bustype = BUS_SPI,
18501 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018502 .model_id = WINBOND_NEX_W25Q64_V,
18503 .total_size = 8192,
Stanislav Sedovf5775442018-03-07 14:16:51 -080018504 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018505 /* supports SFDP */
18506 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Sergii Dmytrukd1af3072021-11-08 00:00:43 +020018507 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_WRSR2,
Sergii Dmytrukc74eac22022-10-06 18:17:58 +030018508 .tested = TEST_OK_PREWB,
Stanislav Sedovf5775442018-03-07 14:16:51 -080018509 .probe = probe_spi_rdid,
18510 .probe_timing = TIMING_ZERO,
18511 .block_erasers =
18512 {
18513 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100018514 .eraseblocks = { {4 * 1024, 2048} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080018515 .block_erase = spi_block_erase_20,
18516 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100018517 .eraseblocks = { {32 * 1024, 256} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080018518 .block_erase = spi_block_erase_52,
18519 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100018520 .eraseblocks = { {64 * 1024, 128} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080018521 .block_erase = spi_block_erase_d8,
18522 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100018523 .eraseblocks = { {8 * 1024 * 1024, 1} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080018524 .block_erase = spi_block_erase_60,
18525 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100018526 .eraseblocks = { {8 * 1024 * 1024, 1} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080018527 .block_erase = spi_block_erase_c7,
18528 }
18529 },
18530 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18531 .unlock = spi_disable_blockprotect,
18532 .write = spi_chip_write_256,
18533 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018534 .voltage = {2700, 3600},
Sergii Dmytrukd1af3072021-11-08 00:00:43 +020018535 .reg_bits =
18536 {
18537 .srp = {STATUS1, 7, RW},
18538 .srl = {STATUS2, 0, RW},
18539 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
18540 .tb = {STATUS1, 5, RW},
18541 .sec = {STATUS1, 6, RW},
18542 .cmp = {STATUS2, 6, RW},
18543 },
18544 .decode_range = decode_range_spi25,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018545 },
18546
18547 {
18548 .vendor = "Winbond",
Sergii Dmytrukd1af3072021-11-08 00:00:43 +020018549 .name = "W25Q64JV-.Q",
18550 .bustype = BUS_SPI,
18551 .manufacture_id = WINBOND_NEX_ID,
18552 .model_id = WINBOND_NEX_W25Q64_V,
18553 .total_size = 8192,
18554 .page_size = 256,
18555 /* supports SFDP */
18556 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber3f3c1f32022-05-28 16:48:26 +020018557 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP |
18558 FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3,
Sergii Dmytrukd1af3072021-11-08 00:00:43 +020018559 .tested = TEST_OK_PREW,
18560 .probe = probe_spi_rdid,
18561 .probe_timing = TIMING_ZERO,
18562 .block_erasers =
18563 {
18564 {
18565 .eraseblocks = { {4 * 1024, 2048} },
18566 .block_erase = spi_block_erase_20,
18567 }, {
18568 .eraseblocks = { {32 * 1024, 256} },
18569 .block_erase = spi_block_erase_52,
18570 }, {
18571 .eraseblocks = { {64 * 1024, 128} },
18572 .block_erase = spi_block_erase_d8,
18573 }, {
18574 .eraseblocks = { {8 * 1024 * 1024, 1} },
18575 .block_erase = spi_block_erase_60,
18576 }, {
18577 .eraseblocks = { {8 * 1024 * 1024, 1} },
18578 .block_erase = spi_block_erase_c7,
18579 }
18580 },
18581 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18582 .unlock = spi_disable_blockprotect,
18583 .write = spi_chip_write_256,
18584 .read = spi_chip_read,
18585 .voltage = {2700, 3600},
18586 .reg_bits =
18587 {
18588 .srp = {STATUS1, 7, RW},
18589 .srl = {STATUS2, 0, RW},
18590 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
18591 .tb = {STATUS1, 5, RW},
18592 .sec = {STATUS1, 6, RW},
18593 .cmp = {STATUS2, 6, RW},
18594 .wps = {STATUS3, 2, RW},
18595 },
18596 .decode_range = decode_range_spi25,
18597 },
18598
18599 {
18600 .vendor = "Winbond",
18601 .name = "W25Q64JV-.M",
Simon Buhrow236a38c2021-11-05 11:48:30 +010018602 .bustype = BUS_SPI,
18603 .manufacture_id = WINBOND_NEX_ID,
18604 .model_id = WINBOND_NEX_W25Q64JV,
18605 .total_size = 8192,
18606 .page_size = 256,
18607 /* supports SFDP */
18608 /* QPI enable 0x38 */
18609 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
18610 .tested = TEST_OK_PREW,
18611 .probe = probe_spi_rdid,
18612 .probe_timing = TIMING_ZERO,
18613 .block_erasers =
18614 {
18615 {
18616 .eraseblocks = { {4 * 1024, 2048} },
18617 .block_erase = spi_block_erase_20,
18618 }, {
18619 .eraseblocks = { {32 * 1024, 256} },
18620 .block_erase = spi_block_erase_52,
18621 }, {
18622 .eraseblocks = { {64 * 1024, 128} },
18623 .block_erase = spi_block_erase_d8,
18624 }, {
18625 .eraseblocks = { {8 * 1024 * 1024, 1} },
18626 .block_erase = spi_block_erase_60,
18627 }, {
18628 .eraseblocks = { {8 * 1024 * 1024, 1} },
18629 .block_erase = spi_block_erase_c7,
18630 }
18631 },
18632 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
18633 .unlock = spi_disable_blockprotect_bp2_srwd,
18634 .write = spi_chip_write_256,
18635 .read = spi_chip_read,
18636 .voltage = {2700, 3600},
18637 },
18638
18639 {
18640 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018641 .name = "W25Q64.W",
18642 .bustype = BUS_SPI,
18643 .manufacture_id = WINBOND_NEX_ID,
18644 .model_id = WINBOND_NEX_W25Q64_W,
18645 .total_size = 8192,
18646 .page_size = 256,
18647 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
18648 /* QPI enable 0x38, disable 0xFF */
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110018649 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_WRSR2,
Sergii Dmytrukc74eac22022-10-06 18:17:58 +030018650 .tested = TEST_OK_PREWB,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018651 .probe = probe_spi_rdid,
18652 .probe_timing = TIMING_ZERO,
18653 .block_erasers =
18654 {
18655 {
18656 .eraseblocks = { {4 * 1024, 2048} },
18657 .block_erase = spi_block_erase_20,
18658 }, {
18659 .eraseblocks = { {32 * 1024, 256} },
18660 .block_erase = spi_block_erase_52,
18661 }, {
18662 .eraseblocks = { {64 * 1024, 128} },
18663 .block_erase = spi_block_erase_d8,
18664 }, {
18665 .eraseblocks = { {8 * 1024 * 1024, 1} },
18666 .block_erase = spi_block_erase_60,
18667 }, {
18668 .eraseblocks = { {8 * 1024 * 1024, 1} },
18669 .block_erase = spi_block_erase_c7,
18670 }
18671 },
18672 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18673 .unlock = spi_disable_blockprotect,
18674 .write = spi_chip_write_256,
18675 .read = spi_chip_read,
18676 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110018677 .reg_bits =
18678 {
18679 .srp = {STATUS1, 7, RW},
18680 .srl = {STATUS2, 0, RW},
18681 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
18682 .tb = {STATUS1, 5, RW},
18683 .sec = {STATUS1, 6, RW},
18684 .cmp = {STATUS2, 6, RW},
18685 },
18686 .decode_range = decode_range_spi25,
Antony Rheneus0fbba982011-05-26 14:28:51 +000018687 },
18688
18689 {
18690 .vendor = "Winbond",
Nikolai Artemiev5fa05052021-05-14 15:26:47 +100018691 .name = "W25Q64JW...M",
Scott Chao1bbc5012020-04-08 22:10:50 +080018692 .bustype = BUS_SPI,
18693 .manufacture_id = WINBOND_NEX_ID,
Nikolai Artemiev5fa05052021-05-14 15:26:47 +100018694 .model_id = WINBOND_NEX_W25Q64JW_M,
Scott Chao1bbc5012020-04-08 22:10:50 +080018695 .total_size = 8192,
18696 .page_size = 256,
18697 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
18698 /* QPI enable 0x38, disable 0xFF */
Evan Benn29c8b5d2022-09-13 16:01:10 +100018699 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_WRSR2 | FEATURE_WRSR3,
Scott Chao1bbc5012020-04-08 22:10:50 +080018700 .tested = TEST_OK_PREW,
18701 .probe = probe_spi_rdid,
18702 .probe_timing = TIMING_ZERO,
18703 .block_erasers =
18704 {
18705 {
18706 .eraseblocks = { {4 * 1024, 2048} },
18707 .block_erase = spi_block_erase_20,
18708 }, {
18709 .eraseblocks = { {32 * 1024, 256} },
18710 .block_erase = spi_block_erase_52,
18711 }, {
18712 .eraseblocks = { {64 * 1024, 128} },
18713 .block_erase = spi_block_erase_d8,
18714 }, {
18715 .eraseblocks = { {8 * 1024 * 1024, 1} },
18716 .block_erase = spi_block_erase_60,
18717 }, {
18718 .eraseblocks = { {8 * 1024 * 1024, 1} },
18719 .block_erase = spi_block_erase_c7,
18720 }
18721 },
18722 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18723 .unlock = spi_disable_blockprotect,
18724 .write = spi_chip_write_256,
18725 .read = spi_chip_read,
18726 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
Evan Benn29c8b5d2022-09-13 16:01:10 +100018727 .reg_bits =
18728 {
18729 .srp = {STATUS1, 7, RW},
18730 .srl = {STATUS2, 0, RW},
18731 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
18732 .tb = {STATUS1, 5, RW},
18733 .sec = {STATUS1, 6, RW},
18734 .cmp = {STATUS2, 6, RW},
18735 .wps = {STATUS3, 2, RW},
18736 },
18737 .decode_range = decode_range_spi25,
Scott Chao1bbc5012020-04-08 22:10:50 +080018738 },
18739
18740 {
18741 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018742 .name = "W25Q80.V",
Nico Huber70eed9f2017-04-24 22:19:27 +020018743 .bustype = BUS_SPI,
18744 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018745 .model_id = WINBOND_NEX_W25Q80_V,
18746 .total_size = 1024,
Nico Huber70eed9f2017-04-24 22:19:27 +020018747 .page_size = 256,
18748 /* supports SFDP */
18749 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Alan Green1f9cc7d2019-07-01 11:10:45 +100018750 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks48729d32017-12-08 14:44:07 -080018751 .tested = TEST_OK_PREW,
Nico Huber70eed9f2017-04-24 22:19:27 +020018752 .probe = probe_spi_rdid,
18753 .probe_timing = TIMING_ZERO,
18754 .block_erasers =
18755 {
18756 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100018757 .eraseblocks = { {4 * 1024, 256} },
Nico Huber70eed9f2017-04-24 22:19:27 +020018758 .block_erase = spi_block_erase_20,
18759 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100018760 .eraseblocks = { {32 * 1024, 32} },
Nico Huber70eed9f2017-04-24 22:19:27 +020018761 .block_erase = spi_block_erase_52,
18762 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100018763 .eraseblocks = { {64 * 1024, 16} },
Nico Huber70eed9f2017-04-24 22:19:27 +020018764 .block_erase = spi_block_erase_d8,
18765 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100018766 .eraseblocks = { {1024 * 1024, 1} },
Nico Huber70eed9f2017-04-24 22:19:27 +020018767 .block_erase = spi_block_erase_60,
18768 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100018769 .eraseblocks = { {1024 * 1024, 1} },
Nico Huber70eed9f2017-04-24 22:19:27 +020018770 .block_erase = spi_block_erase_c7,
18771 }
18772 },
18773 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18774 .unlock = spi_disable_blockprotect,
18775 .write = spi_chip_write_256,
18776 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018777 .voltage = {2700, 3600},
18778 },
18779
18780 {
18781 .vendor = "Winbond",
18782 .name = "W25Q80BW",
18783 .bustype = BUS_SPI,
18784 .manufacture_id = WINBOND_NEX_ID,
18785 .model_id = WINBOND_NEX_W25Q80BW,
18786 .total_size = 1024,
18787 .page_size = 256,
18788 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
18789 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
18790 .tested = TEST_OK_PREW,
18791 .probe = probe_spi_rdid,
18792 .probe_timing = TIMING_ZERO,
18793 .block_erasers =
18794 {
18795 {
18796 .eraseblocks = { {4 * 1024, 256} },
18797 .block_erase = spi_block_erase_20,
18798 }, {
18799 .eraseblocks = { {32 * 1024, 32} },
18800 .block_erase = spi_block_erase_52,
18801 }, {
18802 .eraseblocks = { {64 * 1024, 16} },
18803 .block_erase = spi_block_erase_d8,
18804 }, {
18805 .eraseblocks = { {1 * 1024 * 1024, 1} },
18806 .block_erase = spi_block_erase_60,
18807 }, {
18808 .eraseblocks = { {1 * 1024 * 1024, 1} },
18809 .block_erase = spi_block_erase_c7,
18810 }
18811 },
18812 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18813 .unlock = spi_disable_blockprotect,
18814 .write = spi_chip_write_256,
18815 .read = spi_chip_read,
18816 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
18817 },
18818
18819 {
18820 .vendor = "Winbond",
18821 .name = "W25Q80EW",
18822 .bustype = BUS_SPI,
18823 .manufacture_id = WINBOND_NEX_ID,
18824 .model_id = WINBOND_NEX_W25Q80EW,
18825 .total_size = 1024,
18826 .page_size = 256,
18827 /* OTP: 3*256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
18828 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
18829 .tested = TEST_OK_PREW,
18830 .probe = probe_spi_rdid,
18831 .probe_timing = TIMING_ZERO,
18832 .block_erasers =
18833 {
18834 {
18835 .eraseblocks = { {4 * 1024, 256} },
18836 .block_erase = spi_block_erase_20,
18837 }, {
18838 .eraseblocks = { {32 * 1024, 32} },
18839 .block_erase = spi_block_erase_52,
18840 }, {
18841 .eraseblocks = { {64 * 1024, 16} },
18842 .block_erase = spi_block_erase_d8,
18843 }, {
18844 .eraseblocks = { {1 * 1024 * 1024, 1} },
18845 .block_erase = spi_block_erase_60,
18846 }, {
18847 .eraseblocks = { {1 * 1024 * 1024, 1} },
18848 .block_erase = spi_block_erase_c7,
18849 }
18850 },
18851 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18852 .unlock = spi_disable_blockprotect,
18853 .write = spi_chip_write_256,
18854 .read = spi_chip_read,
18855 .voltage = {1650, 1950}, /* Fast read (0x0B) and multi I/O supported */
Nico Huber70eed9f2017-04-24 22:19:27 +020018856 },
18857
18858 {
18859 .vendor = "Winbond",
Jacob Appelbaumebbdc022019-09-02 09:10:43 -040018860 .name = "W25X05",
18861 .bustype = BUS_SPI,
18862 .manufacture_id = WINBOND_NEX_ID,
18863 .model_id = WINBOND_NEX_W25X05,
18864 .total_size = 64,
18865 .page_size = 256,
18866 .feature_bits = FEATURE_WRSR_WREN,
18867 .tested = TEST_OK_PREW,
18868 .probe = probe_spi_rdid,
18869 .probe_timing = TIMING_ZERO,
18870 .block_erasers =
18871 {
18872 {
18873 .eraseblocks = { {4 * 1024, 16} },
18874 .block_erase = spi_block_erase_20,
18875 }, {
18876 .eraseblocks = { {32 * 1024, 2} },
18877 .block_erase = spi_block_erase_52,
18878 }, {
18879 .eraseblocks = { {64 * 1024, 1} },
18880 .block_erase = spi_block_erase_d8,
18881 }
18882 },
18883 .printlock = spi_prettyprint_status_register_plain,
18884 .unlock = spi_disable_blockprotect,
18885 .write = spi_chip_write_256,
18886 .read = spi_chip_read,
18887 .voltage = {2300, 3600},
18888 },
18889
18890 {
18891 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000018892 .name = "W25X10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018893 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018894 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018895 .model_id = WINBOND_NEX_W25X10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018896 .total_size = 128,
18897 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000018898 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +000018899 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018900 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000018901 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018902 .block_erasers =
18903 {
18904 {
18905 .eraseblocks = { {4 * 1024, 32} },
18906 .block_erase = spi_block_erase_20,
18907 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018908 .eraseblocks = { {64 * 1024, 2} },
18909 .block_erase = spi_block_erase_d8,
18910 }, {
18911 .eraseblocks = { {128 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018912 .block_erase = spi_block_erase_c7,
18913 }
18914 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000018915 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000018916 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000018917 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018918 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018919 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000018920 },
18921
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018922 {
18923 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000018924 .name = "W25X16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018925 .bustype = BUS_SPI,
Hector Martina721ae22009-07-11 19:39:11 +000018926 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018927 .model_id = WINBOND_NEX_W25X16,
Hector Martina721ae22009-07-11 19:39:11 +000018928 .total_size = 2048,
18929 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000018930 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +000018931 .tested = TEST_OK_PREW,
Hector Martina721ae22009-07-11 19:39:11 +000018932 .probe = probe_spi_rdid,
18933 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018934 .block_erasers =
18935 {
18936 {
18937 .eraseblocks = { {4 * 1024, 512} },
18938 .block_erase = spi_block_erase_20,
18939 }, {
18940 .eraseblocks = { {32 * 1024, 64} },
18941 .block_erase = spi_block_erase_52,
18942 }, {
18943 .eraseblocks = { {64 * 1024, 32} },
18944 .block_erase = spi_block_erase_d8,
18945 }, {
18946 .eraseblocks = { {2 * 1024 * 1024, 1} },
18947 .block_erase = spi_block_erase_60,
18948 }, {
18949 .eraseblocks = { {2 * 1024 * 1024, 1} },
18950 .block_erase = spi_block_erase_c7,
18951 }
18952 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000018953 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000018954 .unlock = spi_disable_blockprotect,
Hector Martina721ae22009-07-11 19:39:11 +000018955 .write = spi_chip_write_256,
18956 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018957 .voltage = {2700, 3600},
Hector Martina721ae22009-07-11 19:39:11 +000018958 },
18959
18960 {
18961 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018962 .name = "W25X20",
18963 .bustype = BUS_SPI,
18964 .manufacture_id = WINBOND_NEX_ID,
18965 .model_id = WINBOND_NEX_W25X20,
18966 .total_size = 256,
18967 .page_size = 256,
18968 .feature_bits = FEATURE_WRSR_WREN,
18969 .tested = TEST_OK_PREW,
18970 .probe = probe_spi_rdid,
18971 .probe_timing = TIMING_ZERO,
18972 .block_erasers =
18973 {
18974 {
18975 .eraseblocks = { {4 * 1024, 64} },
18976 .block_erase = spi_block_erase_20,
18977 }, {
18978 .eraseblocks = { {64 * 1024, 4} },
18979 .block_erase = spi_block_erase_d8,
18980 }, {
18981 .eraseblocks = { {256 * 1024, 1} },
18982 .block_erase = spi_block_erase_c7,
18983 }
18984 },
18985 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18986 .unlock = spi_disable_blockprotect,
18987 .write = spi_chip_write_256,
18988 .read = spi_chip_read,
18989 .voltage = {2700, 3600},
18990 },
18991
18992 {
18993 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000018994 .name = "W25X32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018995 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000018996 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018997 .model_id = WINBOND_NEX_W25X32,
Zheng Bao1db2b752009-11-26 11:05:01 +000018998 .total_size = 4096,
18999 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000019000 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000019001 .tested = TEST_OK_PREW,
Zheng Bao1db2b752009-11-26 11:05:01 +000019002 .probe = probe_spi_rdid,
19003 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019004 .block_erasers =
19005 {
19006 {
19007 .eraseblocks = { {4 * 1024, 1024} },
19008 .block_erase = spi_block_erase_20,
19009 }, {
19010 .eraseblocks = { {32 * 1024, 128} },
19011 .block_erase = spi_block_erase_52,
19012 }, {
19013 .eraseblocks = { {64 * 1024, 64} },
19014 .block_erase = spi_block_erase_d8,
19015 }, {
19016 .eraseblocks = { {4 * 1024 * 1024, 1} },
19017 .block_erase = spi_block_erase_60,
19018 }, {
19019 .eraseblocks = { {4 * 1024 * 1024, 1} },
19020 .block_erase = spi_block_erase_c7,
19021 }
19022 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000019023 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000019024 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000019025 .write = spi_chip_write_256,
19026 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000019027 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000019028 },
19029
19030 {
19031 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100019032 .name = "W25X40",
19033 .bustype = BUS_SPI,
19034 .manufacture_id = WINBOND_NEX_ID,
19035 .model_id = WINBOND_NEX_W25X40,
19036 .total_size = 512,
19037 .page_size = 256,
19038 .feature_bits = FEATURE_WRSR_WREN,
19039 .tested = TEST_OK_PREW,
19040 .probe = probe_spi_rdid,
19041 .probe_timing = TIMING_ZERO,
19042 .block_erasers =
19043 {
19044 {
19045 .eraseblocks = { {4 * 1024, 128} },
19046 .block_erase = spi_block_erase_20,
19047 }, {
19048 .eraseblocks = { {64 * 1024, 8} },
19049 .block_erase = spi_block_erase_d8,
19050 }, {
19051 .eraseblocks = { {512 * 1024, 1} },
19052 .block_erase = spi_block_erase_c7,
19053 }
19054 },
19055 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19056 .unlock = spi_disable_blockprotect,
19057 .write = spi_chip_write_256,
19058 .read = spi_chip_read,
19059 .voltage = {2700, 3600},
19060 },
19061
19062 {
19063 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000019064 .name = "W25X64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019065 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000019066 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000019067 .model_id = WINBOND_NEX_W25X64,
Zheng Bao1db2b752009-11-26 11:05:01 +000019068 .total_size = 8192,
19069 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000019070 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000019071 .tested = TEST_OK_PREW,
Zheng Bao1db2b752009-11-26 11:05:01 +000019072 .probe = probe_spi_rdid,
19073 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019074 .block_erasers =
19075 {
19076 {
19077 .eraseblocks = { {4 * 1024, 2048} },
19078 .block_erase = spi_block_erase_20,
19079 }, {
19080 .eraseblocks = { {32 * 1024, 256} },
19081 .block_erase = spi_block_erase_52,
19082 }, {
19083 .eraseblocks = { {64 * 1024, 128} },
19084 .block_erase = spi_block_erase_d8,
19085 }, {
19086 .eraseblocks = { {8 * 1024 * 1024, 1} },
19087 .block_erase = spi_block_erase_60,
19088 }, {
19089 .eraseblocks = { {8 * 1024 * 1024, 1} },
19090 .block_erase = spi_block_erase_c7,
19091 }
19092 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000019093 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000019094 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000019095 .write = spi_chip_write_256,
19096 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000019097 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000019098 },
19099
19100 {
Alan Greenfa3fcd32019-06-27 15:41:50 +100019101 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100019102 .name = "W25X80",
Alan Greenfa3fcd32019-06-27 15:41:50 +100019103 .bustype = BUS_SPI,
19104 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100019105 .model_id = WINBOND_NEX_W25X80,
Alan Greenfa3fcd32019-06-27 15:41:50 +100019106 .total_size = 1024,
19107 .page_size = 256,
19108 .feature_bits = FEATURE_WRSR_WREN,
Alan Green1f9cc7d2019-07-01 11:10:45 +100019109 .tested = TEST_OK_PREW,
Alan Greenfa3fcd32019-06-27 15:41:50 +100019110 .probe = probe_spi_rdid,
19111 .probe_timing = TIMING_ZERO,
19112 .block_erasers =
David Hendricksc9ee0ed2018-02-11 17:40:53 -080019113 {
19114 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100019115 .eraseblocks = { {4 * 1024, 256} },
19116 .block_erase = spi_block_erase_20,
19117 }, {
David Hendricksc9ee0ed2018-02-11 17:40:53 -080019118 .eraseblocks = { {64 * 1024, 16} },
19119 .block_erase = spi_block_erase_d8,
19120 }, {
19121 .eraseblocks = { {1024 * 1024, 1} },
19122 .block_erase = spi_block_erase_c7,
19123 }
19124 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100019125 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19126 .unlock = spi_disable_blockprotect,
19127 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100019128 .read = spi_chip_read,
Alan Greenfa3fcd32019-06-27 15:41:50 +100019129 .voltage = {2700, 3600},
David Hendricksc9ee0ed2018-02-11 17:40:53 -080019130 },
19131
Alan Greenf29ea362019-06-27 17:14:02 +100019132 /* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */
19133 {
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000019134 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000019135 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019136 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019137 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000019138 .model_id = WINBOND_W29C010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019139 .total_size = 128,
19140 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000019141 .feature_bits = FEATURE_LONG_RESET,
David Hendricks567b7b82011-05-18 01:31:03 +000019142 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019143 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000019144 .probe_timing = 10, /* used datasheet for the W29C011A */
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019145 .block_erasers =
19146 {
19147 {
19148 .eraseblocks = { {128 * 1024, 1} },
19149 .block_erase = erase_chip_block_jedec,
19150 }
19151 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019152 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019153 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000019154 },
19155
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019156 {
19157 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100019158 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old",
19159 .bustype = BUS_PARALLEL,
19160 .manufacture_id = WINBOND_ID,
19161 .model_id = WINBOND_W29C010,
19162 .total_size = 128,
19163 .page_size = 128,
19164 .feature_bits = FEATURE_LONG_RESET,
19165 .tested = TEST_OK_PREW,
19166 .probe = probe_w29ee011,
19167 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */
19168 .block_erasers =
19169 {
19170 {
19171 .eraseblocks = { {128 * 1024, 1} },
19172 .block_erase = erase_chip_block_jedec,
19173 }
19174 },
19175 .write = write_jedec,
19176 .read = read_memmapped,
19177 },
19178
19179 {
19180 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000019181 .name = "W29C020(C)/W29C022",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019182 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019183 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000019184 .model_id = WINBOND_W29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019185 .total_size = 256,
19186 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000019187 .feature_bits = FEATURE_LONG_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000019188 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019189 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000019190 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019191 .block_erasers =
19192 {
19193 {
19194 .eraseblocks = { {256 * 1024, 1} },
19195 .block_erase = erase_chip_block_jedec,
19196 }
19197 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019198 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019199 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000019200 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000019201 },
19202
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019203 {
19204 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000019205 .name = "W29C040/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019206 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019207 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000019208 .model_id = WINBOND_W29C040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019209 .total_size = 512,
19210 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000019211 .feature_bits = FEATURE_LONG_RESET,
19212 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019213 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000019214 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019215 .block_erasers =
19216 {
19217 {
19218 .eraseblocks = { {512 * 1024, 1} },
19219 .block_erase = erase_chip_block_jedec,
19220 }
19221 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019222 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019223 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000019224 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000019225 },
19226
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019227 {
19228 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100019229 .name = "W29C512A/W29EE512",
19230 .bustype = BUS_PARALLEL,
19231 .manufacture_id = WINBOND_ID,
19232 .model_id = WINBOND_W29C512A,
19233 .total_size = 64,
19234 .page_size = 128,
19235 .feature_bits = FEATURE_LONG_RESET,
19236 .tested = TEST_OK_PREW,
19237 .probe = probe_jedec,
19238 .probe_timing = 10,
19239 .block_erasers =
19240 {
19241 {
19242 .eraseblocks = { {64 * 1024, 1} },
19243 .block_erase = erase_chip_block_jedec,
19244 }
19245 },
19246 .write = write_jedec,
19247 .read = read_memmapped,
19248 .voltage = {4500, 5500},
19249 },
19250
19251 {
19252 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000019253 .name = "W29GL032CB",
19254 .bustype = BUS_PARALLEL,
19255 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
19256 .model_id = WINBOND_W29GL032CB,
19257 .total_size = 4096,
19258 .page_size = 128 * 1024, /* actual page size is 16 */
19259 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
19260 .tested = TEST_UNTESTED,
19261 .probe = probe_jedec_29gl,
19262 .probe_timing = TIMING_ZERO,
19263 .block_erasers =
19264 {
19265 {
19266 .eraseblocks = {
19267 {8 * 1024, 8},
19268 {64 * 1024, 63},
19269 },
19270 .block_erase = erase_sector_jedec,
19271 }, {
19272 .eraseblocks = { {4 * 1024 * 1024, 1} },
19273 .block_erase = erase_chip_block_jedec,
19274 },
19275 },
19276 .write = write_jedec_1,
19277 .read = read_memmapped,
19278 .voltage = {2700, 3600},
19279 },
19280
19281 {
19282 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100019283 .name = "W29GL032CH/L",
19284 .bustype = BUS_PARALLEL,
19285 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
19286 .model_id = WINBOND_W29GL032CHL,
19287 .total_size = 4096,
19288 .page_size = 128 * 1024, /* actual page size is 16 */
19289 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
19290 .tested = TEST_UNTESTED,
19291 .probe = probe_jedec_29gl,
19292 .probe_timing = TIMING_ZERO,
19293 .block_erasers =
19294 {
19295 {
19296 .eraseblocks = { {64 * 1024, 64} },
19297 .block_erase = erase_sector_jedec,
19298 }, {
19299 .eraseblocks = { {4 * 1024 * 1024, 1} },
19300 .block_erase = erase_chip_block_jedec,
19301 },
19302 },
19303 .write = write_jedec_1,
19304 .read = read_memmapped,
19305 .voltage = {2700, 3600},
19306 },
19307
19308 {
19309 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000019310 .name = "W29GL032CT",
19311 .bustype = BUS_PARALLEL,
19312 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
19313 .model_id = WINBOND_W29GL032CT,
19314 .total_size = 4096,
19315 .page_size = 128 * 1024, /* actual page size is 16 */
19316 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
19317 .tested = TEST_UNTESTED,
19318 .probe = probe_jedec_29gl,
19319 .probe_timing = TIMING_ZERO,
19320 .block_erasers =
19321 {
19322 {
19323 .eraseblocks = {
19324 {64 * 1024, 63},
19325 {8 * 1024, 8},
19326 },
19327 .block_erase = erase_sector_jedec,
19328 }, {
19329 .eraseblocks = { {4 * 1024 * 1024, 1} },
19330 .block_erase = erase_chip_block_jedec,
19331 },
19332 },
19333 .write = write_jedec_1,
19334 .read = read_memmapped,
19335 .voltage = {2700, 3600},
19336 },
19337
19338 {
19339 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000019340 .name = "W29GL064CB",
19341 .bustype = BUS_PARALLEL,
19342 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
19343 .model_id = WINBOND_W29GL064CB,
19344 .total_size = 8192,
19345 .page_size = 128 * 1024, /* actual page size is 16 */
19346 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
19347 .tested = TEST_UNTESTED,
19348 .probe = probe_jedec_29gl,
19349 .probe_timing = TIMING_ZERO,
19350 .block_erasers =
19351 {
19352 {
19353 .eraseblocks = {
19354 {8 * 1024, 8},
19355 {64 * 1024, 127},
19356 },
19357 .block_erase = erase_sector_jedec,
19358 }, {
19359 .eraseblocks = { {8 * 1024 * 1024, 1} },
19360 .block_erase = erase_chip_block_jedec,
19361 },
19362 },
19363 .write = write_jedec_1,
19364 .read = read_memmapped,
19365 .voltage = {2700, 3600},
19366 },
19367
19368 {
19369 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100019370 .name = "W29GL064CH/L",
19371 .bustype = BUS_PARALLEL,
19372 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
19373 .model_id = WINBOND_W29GL064CHL,
19374 .total_size = 8192,
19375 .page_size = 128 * 1024, /* actual page size is 16 */
19376 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
19377 .tested = TEST_UNTESTED,
19378 .probe = probe_jedec_29gl,
19379 .probe_timing = TIMING_ZERO,
19380 .block_erasers =
19381 {
19382 {
19383 .eraseblocks = { {64 * 1024, 128} },
19384 .block_erase = erase_sector_jedec,
19385 }, {
19386 .eraseblocks = { {8 * 1024 * 1024, 1} },
19387 .block_erase = erase_chip_block_jedec,
19388 },
19389 },
19390 .write = write_jedec_1,
19391 .read = read_memmapped,
19392 .voltage = {2700, 3600},
19393 },
19394
19395 {
19396 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000019397 .name = "W29GL064CT",
19398 .bustype = BUS_PARALLEL,
19399 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
19400 .model_id = WINBOND_W29GL064CT,
19401 .total_size = 8192,
19402 .page_size = 128 * 1024, /* actual page size is 16 */
19403 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
19404 .tested = TEST_UNTESTED,
19405 .probe = probe_jedec_29gl,
19406 .probe_timing = TIMING_ZERO,
19407 .block_erasers =
19408 {
19409 {
19410 .eraseblocks = {
19411 {64 * 1024, 127},
19412 {8 * 1024, 8},
19413 },
19414 .block_erase = erase_sector_jedec,
19415 }, {
19416 .eraseblocks = { {8 * 1024 * 1024, 1} },
19417 .block_erase = erase_chip_block_jedec,
19418 },
19419 },
19420 .write = write_jedec_1,
19421 .read = read_memmapped,
19422 .voltage = {2700, 3600},
19423 },
19424
19425 {
19426 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000019427 .name = "W29GL128C",
19428 .bustype = BUS_PARALLEL,
19429 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
19430 .model_id = WINBOND_W29GL128CHL,
19431 .total_size = 16384,
19432 .page_size = 128 * 1024, /* actual page size is 16 */
19433 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
19434 .tested = TEST_UNTESTED,
19435 .probe = probe_jedec_29gl,
19436 .probe_timing = TIMING_ZERO,
19437 .block_erasers =
19438 {
19439 {
19440 .eraseblocks = { {128 * 1024, 128} },
19441 .block_erase = erase_sector_jedec,
19442 }, {
19443 .eraseblocks = { {16 * 1024 * 1024, 1} },
19444 .block_erase = erase_chip_block_jedec,
19445 },
19446 },
19447 .write = write_jedec_1,
19448 .read = read_memmapped,
19449 .voltage = {2700, 3600},
19450 },
19451
19452 {
19453 .vendor = "Winbond",
Kyösti Mälkkic31243e2012-10-28 01:50:08 +000019454 .name = "W39F010",
19455 .bustype = BUS_PARALLEL,
19456 .manufacture_id = WINBOND_ID,
19457 .model_id = WINBOND_W39F010,
19458 .total_size = 128,
19459 .page_size = 4 * 1024,
19460 .feature_bits = FEATURE_EITHER_RESET,
19461 .tested = TEST_OK_PREW,
19462 .probe = probe_jedec,
19463 .probe_timing = 10,
19464 .block_erasers =
19465 {
19466 {
19467 .eraseblocks = { {4 * 1024, 32} },
19468 .block_erase = erase_block_jedec,
19469 }, {
19470 .eraseblocks = { {128 * 1024, 1} },
19471 .block_erase = erase_chip_block_jedec,
19472 }
19473 },
19474 .printlock = printlock_w39f010,
19475 .write = write_jedec_1,
19476 .read = read_memmapped,
19477 .voltage = {4500, 5500},
19478 },
19479
19480 {
19481 .vendor = "Winbond",
19482 .name = "W39L010",
19483 .bustype = BUS_PARALLEL,
19484 .manufacture_id = WINBOND_ID,
19485 .model_id = WINBOND_W39L010,
19486 .total_size = 128,
19487 .page_size = 4 * 1024,
19488 .feature_bits = FEATURE_EITHER_RESET,
19489 .tested = TEST_UNTESTED,
19490 .probe = probe_jedec,
19491 .probe_timing = 10,
19492 .block_erasers =
19493 {
19494 {
19495 .eraseblocks = { {4 * 1024, 32} },
19496 .block_erase = erase_block_jedec,
19497 }, {
19498 .eraseblocks = { {128 * 1024, 1} },
19499 .block_erase = erase_chip_block_jedec,
19500 }
19501 },
19502 .printlock = printlock_w39l010,
19503 .write = write_jedec_1,
19504 .read = read_memmapped,
19505 .voltage = {3000, 3600},
19506 },
19507
19508 {
19509 .vendor = "Winbond",
19510 .name = "W39L020",
19511 .bustype = BUS_PARALLEL,
19512 .manufacture_id = WINBOND_ID,
19513 .model_id = WINBOND_W39L020,
19514 .total_size = 256,
19515 .page_size = 4 * 1024,
19516 .feature_bits = FEATURE_EITHER_RESET,
19517 .tested = TEST_UNTESTED,
19518 .probe = probe_jedec,
19519 .probe_timing = 10,
19520 .block_erasers =
19521 {
19522 {
19523 .eraseblocks = { {4 * 1024, 64} },
19524 .block_erase = erase_block_jedec,
19525 }, {
19526 .eraseblocks = { {64 * 1024, 4} },
19527 .block_erase = erase_sector_jedec,
19528 }, {
19529 .eraseblocks = { {256 * 1024, 1} },
19530 .block_erase = erase_chip_block_jedec,
19531 }
19532 },
19533 .printlock = printlock_w39l020,
19534 .write = write_jedec_1,
19535 .read = read_memmapped,
19536 .voltage = {3000, 3600},
19537 },
19538
19539 {
19540 .vendor = "Winbond",
Michael Karcher19e0aac2011-03-06 17:58:05 +000019541 .name = "W39L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019542 .bustype = BUS_PARALLEL,
Michael Karcher19e0aac2011-03-06 17:58:05 +000019543 .manufacture_id = WINBOND_ID,
19544 .model_id = WINBOND_W39L040,
19545 .total_size = 512,
19546 .page_size = 64 * 1024,
19547 .feature_bits = FEATURE_EITHER_RESET,
19548 .tested = TEST_OK_PR,
19549 .probe = probe_jedec,
19550 .probe_timing = 10,
19551 .block_erasers =
19552 {
19553 {
19554 .eraseblocks = { {4 * 1024, 128} },
19555 .block_erase = erase_block_jedec,
19556 }, {
19557 .eraseblocks = { {64 * 1024, 8} },
19558 .block_erase = erase_sector_jedec,
19559 }, {
19560 .eraseblocks = { {512 * 1024, 1} },
19561 .block_erase = erase_chip_block_jedec,
19562 }
19563 },
19564 .printlock = printlock_w39l040,
19565 .write = write_jedec_1,
19566 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000019567 .voltage = {3000, 3600},
Michael Karcher19e0aac2011-03-06 17:58:05 +000019568 },
19569
19570 {
19571 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019572 .name = "W39V040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019573 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019574 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000019575 .model_id = WINBOND_W39V040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019576 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000019577 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000019578 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000019579 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019580 .probe = probe_jedec,
Stefan Tauner716e0982011-07-25 20:38:52 +000019581 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019582 .block_erasers =
19583 {
19584 {
19585 .eraseblocks = { {64 * 1024, 8} },
19586 .block_erase = erase_sector_jedec,
19587 }, {
19588 .eraseblocks = { {512 * 1024, 1} },
19589 .block_erase = erase_chip_block_jedec,
19590 }
19591 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000019592 .printlock = printlock_w39v040a,
Sean Nelson35727f72010-01-28 23:55:12 +000019593 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019594 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000019595 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000019596 },
19597
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019598 {
19599 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000019600 .name = "W39V040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019601 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019602 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000019603 .model_id = WINBOND_W39V040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019604 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000019605 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000019606 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000019607 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019608 .probe = probe_jedec,
Paul Menzel018d4822011-10-21 12:33:07 +000019609 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019610 .block_erasers =
19611 {
19612 {
19613 .eraseblocks = { {64 * 1024, 8} },
19614 .block_erase = erase_sector_jedec,
19615 }, {
19616 .eraseblocks = { {512 * 1024, 1} },
19617 .block_erase = erase_chip_block_jedec,
19618 }
19619 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000019620 .printlock = printlock_w39v040b,
Sean Nelson35727f72010-01-28 23:55:12 +000019621 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019622 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000019623 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000019624 },
19625
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019626 {
19627 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000019628 .name = "W39V040C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019629 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019630 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000019631 .model_id = WINBOND_W39V040C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019632 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000019633 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000019634 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000019635 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +000019636 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000019637 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019638 .block_erasers =
19639 {
19640 {
19641 .eraseblocks = { {64 * 1024, 8} },
19642 .block_erase = erase_sector_jedec,
19643 }, {
19644 .eraseblocks = { {512 * 1024, 1} },
19645 .block_erase = erase_chip_block_jedec,
19646 }
19647 },
Sean Nelson6e0b9122010-02-19 00:52:10 +000019648 .printlock = printlock_w39v040c,
Sean Nelson35727f72010-01-28 23:55:12 +000019649 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019650 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000019651 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000019652 },
19653
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019654 {
19655 .vendor = "Winbond",
19656 .name = "W39V040FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019657 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019658 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000019659 .model_id = WINBOND_W39V040FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019660 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000019661 .page_size = 64 * 1024,
Michael Karcherc9b63412010-05-30 16:55:18 +000019662 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner23e10b82016-01-23 16:16:49 +000019663 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019664 .probe = probe_jedec,
Antony Rheneus0fbba982011-05-26 14:28:51 +000019665 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019666 .block_erasers =
19667 {
19668 {
19669 .eraseblocks = { {4 * 1024, 128} },
19670 .block_erase = erase_block_jedec,
19671 }, {
19672 .eraseblocks = { {64 * 1024, 8} },
19673 .block_erase = erase_sector_jedec,
19674 }, {
19675 .eraseblocks = { {512 * 1024, 1} },
19676 .block_erase = erase_chip_block_jedec,
19677 }
19678 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000019679 .printlock = printlock_w39v040fa,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000019680 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000019681 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019682 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000019683 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000019684 },
19685
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019686 {
19687 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000019688 .name = "W39V040FB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019689 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000019690 .manufacture_id = WINBOND_ID,
19691 .model_id = WINBOND_W39V040B,
19692 .total_size = 512,
19693 .page_size = 64 * 1024,
19694 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner0be072c2016-03-13 15:16:30 +000019695 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000019696 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000019697 .probe_timing = 10,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000019698 .block_erasers =
19699 {
19700 {
19701 .eraseblocks = { {64 * 1024, 8} },
19702 .block_erase = erase_sector_jedec,
19703 }, {
19704 .eraseblocks = { {512 * 1024, 1} },
19705 .block_erase = erase_chip_block_jedec,
19706 }
19707 },
19708 .printlock = printlock_w39v040fb,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000019709 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000019710 .write = write_jedec_1,
19711 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000019712 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000019713 },
19714
19715 {
19716 .vendor = "Winbond",
19717 .name = "W39V040FC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019718 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000019719 .manufacture_id = WINBOND_ID,
19720 .model_id = WINBOND_W39V040C,
19721 .total_size = 512,
19722 .page_size = 64 * 1024,
19723 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +000019724 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000019725 .probe = probe_jedec,
19726 .probe_timing = 10,
19727 .block_erasers =
19728 {
19729 {
19730 .eraseblocks = { {64 * 1024, 8} },
19731 .block_erase = erase_sector_jedec,
19732 }, {
19733 .eraseblocks = { {512 * 1024, 1} },
19734 .block_erase = erase_chip_block_jedec,
19735 }
19736 },
19737 .printlock = printlock_w39v040fc,
19738 .write = write_jedec_1,
19739 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000019740 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000019741 },
19742
19743 {
19744 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019745 .name = "W39V080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019746 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019747 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000019748 .model_id = WINBOND_W39V080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019749 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000019750 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000019751 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +000019752 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019753 .probe = probe_jedec,
Paul Menzelac427b22012-02-16 21:07:07 +000019754 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019755 .block_erasers =
19756 {
19757 {
19758 .eraseblocks = { {64 * 1024, 16} },
19759 .block_erase = erase_sector_jedec,
19760 }, {
19761 .eraseblocks = { {1024 * 1024, 1} },
19762 .block_erase = erase_chip_block_jedec,
19763 }
19764 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000019765 .printlock = printlock_w39v080a,
Sean Nelson35727f72010-01-28 23:55:12 +000019766 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019767 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000019768 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000019769 },
19770
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019771 {
19772 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100019773 .name = "W39V080FA",
19774 .bustype = BUS_FWH,
19775 .manufacture_id = WINBOND_ID,
19776 .model_id = WINBOND_W39V080FA,
19777 .total_size = 1024,
19778 .page_size = 64 * 1024,
19779 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
19780 .tested = TEST_OK_PREW,
19781 .probe = probe_jedec,
19782 .probe_timing = 10,
19783 .block_erasers =
19784 {
19785 {
19786 .eraseblocks = { {64 * 1024, 16} },
19787 .block_erase = erase_sector_jedec,
19788 }, {
19789 .eraseblocks = { {1024 * 1024, 1} },
19790 .block_erase = erase_chip_block_jedec,
19791 }
19792 },
19793 .printlock = printlock_w39v080fa,
19794 .unlock = unlock_regspace2_uniform_64k,
19795 .write = write_jedec_1,
19796 .read = read_memmapped,
19797 .voltage = {3000, 3600}, /* Also has 12V fast program */
19798 },
19799
19800 {
19801 .vendor = "Winbond",
19802 .name = "W39V080FA (dual mode)",
19803 .bustype = BUS_FWH,
19804 .manufacture_id = WINBOND_ID,
19805 .model_id = WINBOND_W39V080FA_DM,
19806 .total_size = 512,
19807 .page_size = 64 * 1024,
19808 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
19809 .tested = TEST_UNTESTED,
19810 .probe = probe_jedec,
19811 .probe_timing = 10,
19812 .block_erasers =
19813 {
19814 {
19815 .eraseblocks = { {64 * 1024, 8} },
19816 .block_erase = erase_sector_jedec,
19817 }, {
19818 .eraseblocks = { {512 * 1024, 1} },
19819 .block_erase = erase_chip_block_jedec,
19820 }
19821 },
19822 .printlock = printlock_w39v080fa_dual,
19823 .write = write_jedec_1,
19824 .read = read_memmapped,
19825 .voltage = {3000, 3600}, /* Also has 12V fast program */
19826 },
19827
19828 {
19829 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000019830 .name = "W49F002U/N",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019831 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019832 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000019833 .model_id = WINBOND_W49F002U,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019834 .total_size = 256,
19835 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000019836 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000019837 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019838 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000019839 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019840 .block_erasers =
19841 {
19842 {
19843 .eraseblocks = {
19844 {128 * 1024, 1},
19845 {96 * 1024, 1},
19846 {8 * 1024, 2},
19847 {16 * 1024, 1},
19848 },
19849 .block_erase = erase_sector_jedec,
19850 }, {
19851 .eraseblocks = { {256 * 1024, 1} },
19852 .block_erase = erase_chip_block_jedec,
19853 }
19854 },
Sean Nelson35727f72010-01-28 23:55:12 +000019855 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019856 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000019857 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000019858 },
19859
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019860 {
19861 .vendor = "Winbond",
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000019862 .name = "W49F020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019863 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000019864 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000019865 .model_id = WINBOND_W49F020,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000019866 .total_size = 256,
19867 .page_size = 128,
19868 .feature_bits = FEATURE_EITHER_RESET,
19869 .tested = TEST_OK_PROBE,
19870 .probe = probe_jedec,
19871 .probe_timing = 10,
19872 .block_erasers =
19873 {
19874 {
19875 .eraseblocks = { {256 * 1024, 1} },
19876 .block_erase = erase_chip_block_jedec,
19877 }
19878 },
19879 .write = write_jedec_1,
19880 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000019881 .voltage = {4500, 5500},
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000019882 },
19883
19884 {
19885 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019886 .name = "W49V002A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019887 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019888 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000019889 .model_id = WINBOND_W49V002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019890 .total_size = 256,
19891 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000019892 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000019893 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019894 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000019895 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019896 .block_erasers =
19897 {
19898 {
19899 .eraseblocks = {
19900 {64 * 1024, 3},
19901 {32 * 1024, 1},
19902 {8 * 1024, 2},
19903 {16 * 1024, 1},
19904 },
19905 .block_erase = erase_sector_jedec,
19906 }, {
19907 .eraseblocks = { {256 * 1024, 1} },
19908 .block_erase = erase_chip_block_jedec,
19909 }
19910 },
Sean Nelson35727f72010-01-28 23:55:12 +000019911 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019912 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000019913 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000019914 },
19915
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019916 {
19917 .vendor = "Winbond",
19918 .name = "W49V002FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019919 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019920 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000019921 .model_id = WINBOND_W49V002FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019922 .total_size = 256,
19923 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000019924 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000019925 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019926 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000019927 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019928 .block_erasers =
19929 {
19930 {
19931 .eraseblocks = {
19932 {64 * 1024, 3},
19933 {32 * 1024, 1},
19934 {8 * 1024, 2},
19935 {16 * 1024, 1},
19936 },
19937 .block_erase = erase_sector_jedec,
19938 }, {
19939 .eraseblocks = { {256 * 1024, 1} },
19940 .block_erase = erase_chip_block_jedec,
19941 }
19942 },
Sean Nelson35727f72010-01-28 23:55:12 +000019943 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019944 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000019945 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000019946 },
19947
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019948 {
luke heef884232020-12-28 18:22:21 +080019949 .vendor = "XMC",
19950 .name = "XM25QH128C",
19951 .bustype = BUS_SPI,
19952 .manufacture_id = ST_ID,
19953 .model_id = XMC_XM25QH128C,
19954 .total_size = 16384,
19955 .page_size = 256,
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110019956 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_WRSR2,
luke heef884232020-12-28 18:22:21 +080019957 .tested = TEST_UNTESTED,
19958 .probe = probe_spi_rdid,
19959 .probe_timing = TIMING_ZERO,
19960 .block_erasers =
19961 {
19962 {
19963 .eraseblocks = { {4 * 1024, 4096} },
19964 .block_erase = spi_block_erase_20,
19965 }, {
19966 .eraseblocks = { {32 * 1024, 512} },
19967 .block_erase = spi_block_erase_52,
19968 }, {
19969 .eraseblocks = { {64 * 1024, 256} },
19970 .block_erase = spi_block_erase_d8,
19971 }, {
19972 .eraseblocks = { {16 * 1024 * 1024, 1} },
19973 .block_erase = spi_block_erase_60,
19974 }, {
19975 .eraseblocks = { {16 * 1024 * 1024, 1} },
19976 .block_erase = spi_block_erase_c7,
19977 }
19978 },
19979 .printlock = spi_prettyprint_status_register_plain,
19980 .unlock = spi_disable_blockprotect,
19981 .write = spi_chip_write_256,
19982 .read = spi_chip_read,
19983 .voltage = {2700, 3600},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110019984 .reg_bits =
19985 {
19986 .srp = {STATUS1, 7, RW},
19987 .srl = {STATUS2, 0, RW},
19988 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
19989 .tb = {STATUS1, 5, RW},
19990 .sec = {STATUS1, 6, RW},
19991 .cmp = {STATUS2, 6, RW},
19992 },
19993 .decode_range = decode_range_spi25,
luke heef884232020-12-28 18:22:21 +080019994 },
19995
19996 {
19997 .vendor = "XMC",
19998 .name = "XM25QH256C",
19999 .bustype = BUS_SPI,
20000 .manufacture_id = ST_ID,
20001 .model_id = XMC_XM25QH256C,
20002 .total_size = 32768,
20003 .page_size = 256,
20004 /* supports SFDP */
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110020005 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN | FEATURE_WRSR2,
luke heef884232020-12-28 18:22:21 +080020006 .tested = TEST_UNTESTED,
20007 .probe = probe_spi_rdid,
20008 .probe_timing = TIMING_ZERO,
20009 .block_erasers =
20010 {
20011 {
20012 .eraseblocks = { {4 * 1024, 8192} },
20013 .block_erase = spi_block_erase_21,
20014 }, {
20015 .eraseblocks = { {4 * 1024, 8192} },
20016 .block_erase = spi_block_erase_20,
20017 }, {
20018 .eraseblocks = { {32 * 1024, 1024} },
20019 .block_erase = spi_block_erase_52,
20020 }, {
20021 .eraseblocks = { {64 * 1024, 512} },
20022 .block_erase = spi_block_erase_dc,
20023 }, {
20024 .eraseblocks = { {64 * 1024, 512} },
20025 .block_erase = spi_block_erase_d8,
20026 }, {
20027 .eraseblocks = { {32 * 1024 * 1024, 1} },
20028 .block_erase = spi_block_erase_60,
20029 }, {
20030 .eraseblocks = { {32 * 1024 * 1024, 1} },
20031 .block_erase = spi_block_erase_c7,
20032 }
20033 },
20034 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
20035 .unlock = spi_disable_blockprotect,
20036 .write = spi_chip_write_256,
20037 .read = spi_chip_read,
20038 .voltage = {2700, 3600},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110020039 .reg_bits =
20040 {
20041 .srp = {STATUS1, 7, RW},
20042 .srl = {STATUS2, 0, RW},
20043 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}},
20044 .tb = {STATUS1, 6, RW},
20045 },
20046 .decode_range = decode_range_spi25,
Nico Huberab6b18f2023-01-11 23:38:20 +010020047 .prepare_access = spi_prepare_4ba,
luke heef884232020-12-28 18:22:21 +080020048 },
20049
20050 {
20051 .vendor = "XMC",
20052 .name = "XM25QH64C",
20053 .bustype = BUS_SPI,
20054 .manufacture_id = ST_ID,
20055 .model_id = XMC_XM25QH64C,
20056 .total_size = 8192,
20057 .page_size = 256,
20058 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
20059 .tested = TEST_UNTESTED,
20060 .probe = probe_spi_rdid,
20061 .probe_timing = TIMING_ZERO,
20062 .block_erasers =
20063 {
20064 {
20065 .eraseblocks = { {4 * 1024, 2048} },
20066 .block_erase = spi_block_erase_20,
20067 }, {
20068 .eraseblocks = { {32 * 1024, 256} },
20069 .block_erase = spi_block_erase_52,
20070 }, {
20071 .eraseblocks = { {64 * 1024, 128} },
20072 .block_erase = spi_block_erase_d8,
20073 }, {
20074 .eraseblocks = { {8 * 1024 * 1024, 1} },
20075 .block_erase = spi_block_erase_60,
20076 }, {
20077 .eraseblocks = { {8 * 1024 * 1024, 1} },
20078 .block_erase = spi_block_erase_c7,
20079 }
20080 },
20081 .printlock = spi_prettyprint_status_register_plain,
20082 .unlock = spi_disable_blockprotect,
20083 .write = spi_chip_write_256,
20084 .read = spi_chip_read,
20085 .voltage = {2700, 3600},
20086 },
20087
20088 {
20089 .vendor = "XMC",
20090 .name = "XM25QU128C",
20091 .bustype = BUS_SPI,
20092 .manufacture_id = ST_ID,
20093 .model_id = XMC_XM25QU128C,
20094 .total_size = 16384,
20095 .page_size = 256,
20096 /* supports SFDP */
20097 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
20098 .tested = TEST_UNTESTED,
20099 .probe = probe_spi_rdid,
20100 .probe_timing = TIMING_ZERO,
20101 .block_erasers =
20102 {
20103 {
20104 .eraseblocks = { {4 * 1024, 4096} },
20105 .block_erase = spi_block_erase_20,
20106 }, {
20107 .eraseblocks = { {32 * 1024, 512} },
20108 .block_erase = spi_block_erase_52,
20109 }, {
20110 .eraseblocks = { {64 * 1024, 256} },
20111 .block_erase = spi_block_erase_d8,
20112 }, {
20113 .eraseblocks = { {16 * 1024 * 1024, 1} },
20114 .block_erase = spi_block_erase_60,
20115 }, {
20116 .eraseblocks = { {16 * 1024 * 1024, 1} },
20117 .block_erase = spi_block_erase_c7,
20118 }
20119 },
20120 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
20121 .unlock = spi_disable_blockprotect,
20122 .write = spi_chip_write_256,
20123 .read = spi_chip_read,
20124 .voltage = {1650, 1950},
20125 },
20126
20127 {
20128 .vendor = "XMC",
20129 .name = "XM25QU256C",
20130 .bustype = BUS_SPI,
20131 .manufacture_id = ST_ID,
20132 .model_id = XMC_XM25QU256C,
20133 .total_size = 32768,
20134 .page_size = 256,
20135 /* supports SFDP */
20136 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
20137 .tested = TEST_UNTESTED,
20138 .probe = probe_spi_rdid,
20139 .probe_timing = TIMING_ZERO,
20140 .block_erasers =
20141 {
20142 {
20143 .eraseblocks = { {4 * 1024, 8192} },
20144 .block_erase = spi_block_erase_21,
20145 }, {
20146 .eraseblocks = { {4 * 1024, 8192} },
20147 .block_erase = spi_block_erase_20,
20148 }, {
20149 .eraseblocks = { {32 * 1024, 1024} },
20150 .block_erase = spi_block_erase_52,
20151 }, {
20152 .eraseblocks = { {64 * 1024, 512} },
20153 .block_erase = spi_block_erase_dc,
20154 }, {
20155 .eraseblocks = { {64 * 1024, 512} },
20156 .block_erase = spi_block_erase_d8,
20157 }, {
20158 .eraseblocks = { {32 * 1024 * 1024, 1} },
20159 .block_erase = spi_block_erase_60,
20160 }, {
20161 .eraseblocks = { {32 * 1024 * 1024, 1} },
20162 .block_erase = spi_block_erase_c7,
20163 }
20164 },
20165 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
20166 .unlock = spi_disable_blockprotect,
20167 .write = spi_chip_write_256,
20168 .read = spi_chip_read,
20169 .voltage = {1650, 1950},
Nico Huberab6b18f2023-01-11 23:38:20 +010020170 .prepare_access = spi_prepare_4ba,
luke heef884232020-12-28 18:22:21 +080020171 },
20172
20173 {
20174 .vendor = "XMC",
20175 .name = "XM25QU64C",
20176 .bustype = BUS_SPI,
20177 .manufacture_id = ST_ID,
20178 .model_id = XMC_XM25QU64C,
20179 .total_size = 8192,
20180 .page_size = 256,
20181 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
20182 .tested = TEST_UNTESTED,
20183 .probe = probe_spi_rdid,
20184 .probe_timing = TIMING_ZERO,
20185 .block_erasers =
20186 {
20187 {
20188 .eraseblocks = { {4 * 1024, 2048} },
20189 .block_erase = spi_block_erase_20,
20190 }, {
20191 .eraseblocks = { {32 * 1024, 256} },
20192 .block_erase = spi_block_erase_52,
20193 }, {
20194 .eraseblocks = { {64 * 1024, 128} },
20195 .block_erase = spi_block_erase_d8,
20196 }, {
20197 .eraseblocks = { {8 * 1024 * 1024, 1} },
20198 .block_erase = spi_block_erase_60,
20199 }, {
20200 .eraseblocks = { {8 * 1024 * 1024, 1} },
20201 .block_erase = spi_block_erase_c7,
20202 }
20203 },
20204 .printlock = spi_prettyprint_status_register_plain,
20205 .unlock = spi_disable_blockprotect,
20206 .write = spi_chip_write_256,
20207 .read = spi_chip_read,
20208 .voltage = {1650, 1950},
20209 },
20210
20211 {
Alan Greenfa3fcd32019-06-27 15:41:50 +100020212 .vendor = "Zetta Device",
20213 .name = "ZD25D20",
20214 .bustype = BUS_SPI,
20215 .manufacture_id = ZETTADEVICE_ID,
20216 .model_id = ZETTADEVICE_ZD25D20,
20217 .total_size = 256,
20218 .page_size = 256,
20219 .feature_bits = FEATURE_WRSR_WREN,
20220 .tested = TEST_UNTESTED,
20221 .probe = probe_spi_rdid,
20222 .probe_timing = TIMING_ZERO,
20223 .block_erasers =
David Hendricksa72d5a92018-02-11 17:58:44 -080020224 {
20225 {
20226 .eraseblocks = { {4 * 1024, 64} },
20227 .block_erase = spi_block_erase_20,
20228 }, {
20229 .eraseblocks = { {32 * 1024, 8} },
20230 .block_erase = spi_block_erase_52,
20231 }, {
20232 .eraseblocks = { {64 * 1024, 4} },
20233 .block_erase = spi_block_erase_d8,
20234 }, {
20235 .eraseblocks = { {256 * 1024, 1} },
20236 .block_erase = spi_block_erase_60,
20237 }, {
20238 .eraseblocks = { {256 * 1024, 1} },
20239 .block_erase = spi_block_erase_c7,
20240 }
20241 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100020242 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
20243 .unlock = spi_disable_blockprotect,
20244 .write = spi_chip_write_256,
20245 .read = spi_chip_read,
20246 .voltage = {2700, 3600},
David Hendricksa72d5a92018-02-11 17:58:44 -080020247 },
20248
20249 {
Alan Greenfa3fcd32019-06-27 15:41:50 +100020250 .vendor = "Zetta Device",
20251 .name = "ZD25D40",
20252 .bustype = BUS_SPI,
20253 .manufacture_id = ZETTADEVICE_ID,
20254 .model_id = ZETTADEVICE_ZD25D40,
20255 .total_size = 512,
20256 .page_size = 256,
20257 .feature_bits = FEATURE_WRSR_WREN,
20258 .tested = TEST_UNTESTED,
20259 .probe = probe_spi_rdid,
20260 .probe_timing = TIMING_ZERO,
20261 .block_erasers =
nybashcbb46e22018-02-11 17:53:49 -080020262 {
20263 {
20264 .eraseblocks = { {4 * 1024, 128} },
20265 .block_erase = spi_block_erase_20,
20266 }, {
20267 .eraseblocks = { {32 * 1024, 16} },
20268 .block_erase = spi_block_erase_52,
20269 }, {
20270 .eraseblocks = { {64 * 1024, 8} },
20271 .block_erase = spi_block_erase_d8,
20272 }, {
20273 .eraseblocks = { {512 * 1024, 1} },
20274 .block_erase = spi_block_erase_60,
20275 }, {
20276 .eraseblocks = { {512 * 1024, 1} },
20277 .block_erase = spi_block_erase_c7,
20278 }
20279 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100020280 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
20281 .unlock = spi_disable_blockprotect,
20282 .write = spi_chip_write_256,
20283 .read = spi_chip_read,
20284 .voltage = {2700, 3600},
nybashcbb46e22018-02-11 17:53:49 -080020285 },
20286
Stefan Taunerac1b4c82012-02-17 14:51:04 +000020287 {
Alan Greendd592202019-08-23 10:11:37 +100020288 .vendor = "Unknown",
20289 .name = "SFDP-capable chip",
20290 .bustype = BUS_SPI,
20291 .manufacture_id = GENERIC_MANUF_ID,
20292 .model_id = SFDP_DEVICE_ID,
20293 .total_size = 0, /* set by probing function */
20294 .page_size = 0, /* set by probing function */
20295 .feature_bits = 0, /* set by probing function */
20296 /* We present our own "report this" text hence we do not */
20297 /* want the default "This flash part has status UNTESTED..." */
20298 /* text to be printed. */
20299 .tested = TEST_OK_PREW,
20300 .probe = probe_spi_sfdp,
20301 .block_erasers = {}, /* set by probing function */
20302 .unlock = spi_disable_blockprotect, /* is this safe? */
20303 .write = NULL, /* set by probing function */
20304 .read = spi_chip_read,
20305 /* FIXME: some vendor extensions define this */
20306 .voltage = {0},
20307 },
20308
20309 {
Carl-Daniel Hailfinger532c7172011-11-04 21:35:26 +000020310 .vendor = "Programmer",
20311 .name = "Opaque flash chip",
20312 .bustype = BUS_PROG,
20313 .manufacture_id = PROGMANUF_ID,
20314 .model_id = PROGDEV_ID,
20315 .total_size = 0,
20316 .page_size = 256,
20317 /* probe is assumed to work, rest will be filled in by probe */
20318 .tested = TEST_OK_PROBE,
20319 .probe = probe_opaque,
20320 /* eraseblock sizes will be set by the probing function */
20321 .block_erasers =
20322 {
20323 {
20324 .block_erase = erase_opaque,
20325 }
20326 },
20327 .write = write_opaque,
20328 .read = read_opaque,
20329 },
20330
20331 {
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000020332 .vendor = "AMIC",
20333 .name = "unknown AMIC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020334 .bustype = BUS_SPI,
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000020335 .manufacture_id = AMIC_ID,
20336 .model_id = GENERIC_DEVICE_ID,
20337 .total_size = 0,
20338 .page_size = 256,
20339 .tested = TEST_BAD_PREW,
20340 .probe = probe_spi_rdid4,
20341 .probe_timing = TIMING_ZERO,
20342 .write = NULL,
20343 .read = NULL,
20344 },
20345
20346 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020347 .vendor = "Atmel",
20348 .name = "unknown Atmel SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020349 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020350 .manufacture_id = ATMEL_ID,
20351 .model_id = GENERIC_DEVICE_ID,
20352 .total_size = 0,
20353 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000020354 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020355 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000020356 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020357 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000020358 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000020359 },
20360
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020361 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +000020362 .vendor = "Eon",
20363 .name = "unknown Eon SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020364 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020365 .manufacture_id = EON_ID_NOPREFIX,
20366 .model_id = GENERIC_DEVICE_ID,
20367 .total_size = 0,
20368 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000020369 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020370 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000020371 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020372 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000020373 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000020374 },
20375
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020376 {
20377 .vendor = "Macronix",
20378 .name = "unknown Macronix SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020379 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000020380 .manufacture_id = MACRONIX_ID,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020381 .model_id = GENERIC_DEVICE_ID,
20382 .total_size = 0,
20383 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000020384 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020385 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000020386 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020387 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000020388 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000020389 },
20390
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020391 {
20392 .vendor = "PMC",
20393 .name = "unknown PMC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020394 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020395 .manufacture_id = PMC_ID,
20396 .model_id = GENERIC_DEVICE_ID,
20397 .total_size = 0,
20398 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000020399 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020400 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000020401 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020402 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000020403 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000020404 },
20405
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020406 {
20407 .vendor = "SST",
20408 .name = "unknown SST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020409 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020410 .manufacture_id = SST_ID,
20411 .model_id = GENERIC_DEVICE_ID,
20412 .total_size = 0,
20413 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000020414 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020415 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000020416 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020417 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000020418 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000020419 },
20420
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020421 {
20422 .vendor = "ST",
20423 .name = "unknown ST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020424 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020425 .manufacture_id = ST_ID,
20426 .model_id = GENERIC_DEVICE_ID,
20427 .total_size = 0,
20428 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000020429 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020430 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000020431 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020432 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000020433 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000020434 },
Uwe Hermannfc425e82008-03-16 02:06:25 +000020435
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000020436 {
Sean Nelson118e1d62009-11-24 02:08:11 +000020437 .vendor = "Sanyo",
20438 .name = "unknown Sanyo SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020439 .bustype = BUS_SPI,
Sean Nelson118e1d62009-11-24 02:08:11 +000020440 .manufacture_id = SANYO_ID,
20441 .model_id = GENERIC_DEVICE_ID,
20442 .total_size = 0,
20443 .page_size = 256,
20444 .tested = TEST_BAD_PREW,
20445 .probe = probe_spi_rdid,
20446 .probe_timing = TIMING_ZERO,
Sean Nelson118e1d62009-11-24 02:08:11 +000020447 .write = NULL,
20448 .read = NULL,
20449 },
20450
20451 {
Stefan Taunereb582572012-09-21 12:52:50 +000020452 .vendor = "Winbond",
20453 .name = "unknown Winbond (ex Nexcom) SPI chip",
20454 .bustype = BUS_SPI,
20455 .manufacture_id = WINBOND_NEX_ID,
20456 .model_id = GENERIC_DEVICE_ID,
20457 .total_size = 0,
20458 .page_size = 256,
20459 .tested = TEST_BAD_PREW,
20460 .probe = probe_spi_rdid,
20461 .probe_timing = TIMING_ZERO,
20462 .write = NULL,
20463 .read = NULL,
20464 },
20465
20466 {
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000020467 .vendor = "Generic",
20468 .name = "unknown SPI chip (RDID)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020469 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000020470 .manufacture_id = GENERIC_MANUF_ID,
20471 .model_id = GENERIC_DEVICE_ID,
20472 .total_size = 0,
20473 .page_size = 256,
20474 .tested = TEST_BAD_PREW,
20475 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000020476 .write = NULL,
20477 },
Stefan Tauneraf2db612011-12-02 21:48:17 +000020478
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000020479 {
20480 .vendor = "Generic",
20481 .name = "unknown SPI chip (REMS)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020482 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000020483 .manufacture_id = GENERIC_MANUF_ID,
20484 .model_id = GENERIC_DEVICE_ID,
20485 .total_size = 0,
20486 .page_size = 256,
20487 .tested = TEST_BAD_PREW,
20488 .probe = probe_spi_rems,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000020489 .write = NULL,
20490 },
20491
Stefan Tauner96658be2014-05-26 22:05:31 +000020492 {0}
Stephan Guilloux72cf5652009-04-21 01:46:07 +000020493};
Stefan Tauner96658be2014-05-26 22:05:31 +000020494
20495const unsigned int flashchips_size = ARRAY_SIZE(flashchips);