blob: c8ea5eb909548c3f22a6b3d8be2d70e2633ae9ed [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 *
Stefan Reinauerce532972007-05-23 17:20:56 +000020 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
Uwe Hermannd1107642007-08-29 17:52:32 +000022 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Ollie Lho184a4042005-11-26 21:55:36 +000023 */
24
25#include "flash.h"
Carl-Daniel Hailfinger08454642009-06-15 14:14:48 +000026#include "flashchips.h"
Sean Nelson14ba6682010-02-26 05:48:29 +000027#include "chipdrivers.h"
Ollie Lho184a4042005-11-26 21:55:36 +000028
Uwe Hermannfc425e82008-03-16 02:06:25 +000029/**
Uwe Hermanna9720402009-05-21 15:55:46 +000030 * List of supported flash chips.
Uwe Hermannfc425e82008-03-16 02:06:25 +000031 *
Stefan Tauner0554ca52013-07-25 22:54:25 +000032 * Please keep the list sorted by vendor name and chip family, so that the output of 'flashrom -L' is roughly
33 * alphabetically sorted. Within families keep them in order of density.
Uwe Hermannfc425e82008-03-16 02:06:25 +000034 */
Carl-Daniel Hailfinger4c823182011-05-04 00:39:50 +000035const struct flashchip flashchips[] = {
Uwe Hermannfc425e82008-03-16 02:06:25 +000036
Carl-Daniel Hailfinger21eedec2009-07-23 12:42:01 +000037 /*
38 * .vendor = Vendor name
39 * .name = Chip name
40 * .bustype = Supported flash bus types (Parallel, LPC...)
41 * .manufacture_id = Manufacturer chip ID
42 * .model_id = Model chip ID
43 * .total_size = Total size in (binary) kbytes
44 * .page_size = Page or eraseblock(?) size in bytes
45 * .tested = Test status
46 * .probe = Probe function
47 * .probe_timing = Probe function delay
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +000048 * .block_erasers[] = Array of erase layouts and erase functions
49 * {
50 * .eraseblocks[] = Array of { blocksize, blockcount }
51 * .block_erase = Block erase function
52 * }
Sean Nelson6e0b9122010-02-19 00:52:10 +000053 * .printlock = Chip lock status function
54 * .unlock = Chip unlock function
Carl-Daniel Hailfinger21eedec2009-07-23 12:42:01 +000055 * .write = Chip write function
56 * .read = Chip read function
Steven Zakuleccbe370e2011-06-03 07:26:31 +000057 * .voltage = Voltage range in millivolt
FENG yu ningff692fb2008-12-08 18:15:10 +000058 */
59
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000060 {
61 .vendor = "AMD",
Stefan Taunerd1ca1e82016-01-31 23:17:35 +000062 .name = "Am29F010",
63 .bustype = BUS_PARALLEL,
64 .manufacture_id = AMD_ID,
65 .model_id = AMD_AM29F010,
66 .total_size = 128,
67 .page_size = 16 * 1024,
68 .feature_bits = FEATURE_SHORT_RESET,
69 .tested = TEST_UNTESTED,
70 .probe = probe_jedec,
71 .probe_timing = TIMING_ZERO,
72 .block_erasers =
73 {
74 {
75 .eraseblocks = { {16 * 1024, 8} },
76 .block_erase = erase_sector_jedec,
77 }, {
78 .eraseblocks = { {128 * 1024, 1} },
79 .block_erase = erase_chip_block_jedec,
80 },
81 },
82 .write = write_jedec_1,
83 .read = read_memmapped,
84 .voltage = {4500, 5500},
85 },
86
87 {
88 .vendor = "AMD",
Uwe Hermanna8b37272009-06-19 15:54:39 +000089 .name = "Am29F010A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000090 .bustype = BUS_PARALLEL,
Uwe Hermanna8b37272009-06-19 15:54:39 +000091 .manufacture_id = AMD_ID,
Stefan Taunerd1ca1e82016-01-31 23:17:35 +000092 .model_id = AMD_AM29F010,
Uwe Hermanna8b37272009-06-19 15:54:39 +000093 .total_size = 128,
94 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000095 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Taunerd1ca1e82016-01-31 23:17:35 +000096 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000097 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000098 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +000099 .block_erasers =
100 {
101 {
102 .eraseblocks = { {16 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +0000103 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000104 }, {
105 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000106 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000107 },
108 },
Sean Nelson35727f72010-01-28 23:55:12 +0000109 .write = write_jedec_1,
Uwe Hermanna8b37272009-06-19 15:54:39 +0000110 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000111 .voltage = {4500, 5500},
Uwe Hermanna8b37272009-06-19 15:54:39 +0000112 },
113
114 {
115 .vendor = "AMD",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000116 .name = "Am29F002(N)BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000117 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000118 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000119 .model_id = AMD_AM29F002BB,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000120 .total_size = 256,
121 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +0000122 .feature_bits = FEATURE_SHORT_RESET | FEATURE_ADDR_2AA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000123 .tested = TEST_UNTESTED,
124 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +0000125 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000126 .block_erasers =
127 {
128 {
129 .eraseblocks = {
130 {16 * 1024, 1},
131 {8 * 1024, 2},
132 {32 * 1024, 1},
133 {64 * 1024, 3},
134 },
135 .block_erase = erase_sector_jedec,
136 }, {
137 .eraseblocks = { {256 * 1024, 1} },
138 .block_erase = erase_chip_block_jedec,
139 },
140 },
Michael Karcher1c296ca2009-11-27 17:49:42 +0000141 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000142 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000143 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +0000144 },
145
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000146 {
147 .vendor = "AMD",
148 .name = "Am29F002(N)BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000149 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000150 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000151 .model_id = AMD_AM29F002BT,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000152 .total_size = 256,
153 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +0000154 .feature_bits = FEATURE_EITHER_RESET | FEATURE_ADDR_2AA,
155 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000156 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +0000157 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000158 .block_erasers =
159 {
160 {
161 .eraseblocks = {
162 {64 * 1024, 3},
163 {32 * 1024, 1},
164 {8 * 1024, 2},
165 {16 * 1024, 1},
166 },
167 .block_erase = erase_sector_jedec,
168 }, {
169 .eraseblocks = { {256 * 1024, 1} },
170 .block_erase = erase_chip_block_jedec,
171 },
172 },
Michael Karcher1c296ca2009-11-27 17:49:42 +0000173 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000174 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000175 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +0000176 },
177
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000178 {
179 .vendor = "AMD",
180 .name = "Am29F016D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000181 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000182 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000183 .model_id = AMD_AM29F016D,
Sean Nelson72a9a022009-12-22 22:15:33 +0000184 .total_size = 2 * 1024,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000185 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000186 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000187 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +0000188 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000189 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000190 .block_erasers =
191 {
192 {
193 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson35727f72010-01-28 23:55:12 +0000194 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000195 }, {
196 .eraseblocks = { {2048 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000197 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000198 },
199 },
Sean Nelson35727f72010-01-28 23:55:12 +0000200 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000201 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000202 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +0000203 },
204
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000205 {
206 .vendor = "AMD",
Stefan Taunerd1ca1e82016-01-31 23:17:35 +0000207 .name = "Am29F040",
208 .bustype = BUS_PARALLEL,
209 .manufacture_id = AMD_ID,
210 .model_id = AMD_AM29F040,
211 .total_size = 512,
212 .page_size = 64 * 1024,
213 .feature_bits = FEATURE_EITHER_RESET,
214 .tested = TEST_UNTESTED,
215 .probe = probe_jedec,
216 .probe_timing = TIMING_ZERO,
217 .block_erasers =
218 {
219 {
220 .eraseblocks = { {64 * 1024, 8} },
221 .block_erase = erase_sector_jedec,
222 }, {
223 .eraseblocks = { {512 * 1024, 1} },
224 .block_erase = erase_chip_block_jedec,
225 },
226 },
227 .write = write_jedec_1,
228 .read = read_memmapped,
229 .voltage = {4500, 5500},
230 },
231
232 {
233 .vendor = "AMD",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000234 .name = "Am29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000235 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000236 .manufacture_id = AMD_ID,
Stefan Taunerd1ca1e82016-01-31 23:17:35 +0000237 .model_id = AMD_AM29F040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000238 .total_size = 512,
239 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000240 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
241 .tested = TEST_UNTESTED,
242 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000243 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000244 .block_erasers =
245 {
246 {
247 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +0000248 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000249 }, {
250 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000251 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000252 },
253 },
Sean Nelson35727f72010-01-28 23:55:12 +0000254 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000255 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000256 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +0000257 },
258
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000259 {
260 .vendor = "AMD",
Stefan Taunerd1ca1e82016-01-31 23:17:35 +0000261 .name = "Am29F080",
262 .bustype = BUS_PARALLEL,
263 .manufacture_id = AMD_ID,
264 .model_id = AMD_AM29F080,
265 .total_size = 1024,
266 .page_size = 64 * 1024,
267 .feature_bits = FEATURE_EITHER_RESET,
268 .tested = TEST_UNTESTED,
269 .probe = probe_jedec,
270 .probe_timing = TIMING_ZERO,
271 .block_erasers =
272 {
273 {
274 .eraseblocks = { {64 * 1024, 16} },
275 .block_erase = erase_sector_jedec,
276 }, {
277 .eraseblocks = { {1024 * 1024, 1} },
278 .block_erase = erase_chip_block_jedec,
279 },
280 },
281 .write = write_jedec_1,
282 .read = read_memmapped,
283 .voltage = {4500, 5500},
284 },
285
286 {
287 .vendor = "AMD",
Peter Stuge8440cc02009-01-25 23:55:12 +0000288 .name = "Am29F080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000289 .bustype = BUS_PARALLEL,
Mateusz Murawski5bae4382009-06-02 00:38:14 +0000290 .manufacture_id = AMD_ID,
Stefan Taunerd1ca1e82016-01-31 23:17:35 +0000291 .model_id = AMD_AM29F080,
Peter Stuge8440cc02009-01-25 23:55:12 +0000292 .total_size = 1024,
293 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000294 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +0000295 .tested = TEST_UNTESTED,
296 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +0000297 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000298 .block_erasers =
299 {
300 {
301 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson35727f72010-01-28 23:55:12 +0000302 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000303 }, {
304 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000305 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000306 },
307 },
Sean Nelson35727f72010-01-28 23:55:12 +0000308 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000309 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000310 .voltage = {4500, 5500},
Peter Stuge8440cc02009-01-25 23:55:12 +0000311 },
312
313 {
314 .vendor = "AMD",
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000315 .name = "Am29LV001BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000316 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000317 .manufacture_id = AMD_ID,
318 .model_id = AMD_AM29LV001BB,
319 .total_size = 128,
320 .page_size = 64 * 1024, /* unused */
321 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
322 .tested = TEST_OK_PREW,
323 .probe = probe_jedec,
324 .probe_timing = TIMING_ZERO,
325 .block_erasers =
326 {
327 {
328 .eraseblocks = {
329 {8 * 1024, 1},
330 {4 * 1024, 2},
331 {16 * 1024, 7},
332 },
333 .block_erase = erase_sector_jedec,
334 }, {
335 .eraseblocks = { {128 * 1024, 1} },
336 .block_erase = erase_chip_block_jedec,
337 },
338 },
339 .write = write_jedec_1,
340 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000341 .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000342 },
343
344 {
345 .vendor = "AMD",
346 .name = "Am29LV001BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000347 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000348 .manufacture_id = AMD_ID,
349 .model_id = AMD_AM29LV001BT,
350 .total_size = 128,
351 .page_size = 64 * 1024, /* unused */
352 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
353 .tested = TEST_UNTESTED,
354 .probe = probe_jedec,
355 .probe_timing = TIMING_ZERO,
356 .block_erasers =
357 {
358 {
359 .eraseblocks = {
360 {16 * 1024, 7},
361 {4 * 1024, 2},
362 {8 * 1024, 1},
363 },
364 .block_erase = erase_sector_jedec,
365 }, {
366 .eraseblocks = { {128 * 1024, 1} },
367 .block_erase = erase_chip_block_jedec,
368 },
369 },
370 .write = write_jedec_1,
371 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000372 .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000373 },
374
375 {
376 .vendor = "AMD",
377 .name = "Am29LV002BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000378 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000379 .manufacture_id = AMD_ID,
380 .model_id = AMD_AM29LV002BB,
381 .total_size = 256,
382 .page_size = 64 * 1024, /* unused */
383 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
384 .tested = TEST_UNTESTED,
385 .probe = probe_jedec,
386 .probe_timing = TIMING_ZERO,
387 .block_erasers =
388 {
389 {
390 .eraseblocks = {
391 {16 * 1024, 1},
392 {8 * 1024, 2},
393 {32 * 1024, 1},
394 {64 * 1024, 3},
395 },
396 .block_erase = erase_sector_jedec,
397 }, {
398 .eraseblocks = { {256 * 1024, 1} },
399 .block_erase = erase_chip_block_jedec,
400 },
401 },
402 .write = write_jedec_1,
403 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000404 .voltage = {3000, 3600}, /* 3.0-3.6V for type -55, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000405 },
406
407 {
408 .vendor = "AMD",
409 .name = "Am29LV002BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000410 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000411 .manufacture_id = AMD_ID,
412 .model_id = AMD_AM29LV002BT,
413 .total_size = 256,
414 .page_size = 64 * 1024, /* unused */
415 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
416 .tested = TEST_UNTESTED,
417 .probe = probe_jedec,
418 .probe_timing = TIMING_ZERO,
419 .block_erasers =
420 {
421 {
422 .eraseblocks = {
423 {64 * 1024, 3},
424 {32 * 1024, 1},
425 {8 * 1024, 2},
426 {16 * 1024, 1},
427 },
428 .block_erase = erase_sector_jedec,
429 }, {
430 .eraseblocks = { {256 * 1024, 1} },
431 .block_erase = erase_chip_block_jedec,
432 },
433 },
434 .write = write_jedec_1,
435 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000436 .voltage = {3000, 3600}, /* 3.0-3.6V for type -55, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000437 },
438
439 {
440 .vendor = "AMD",
441 .name = "Am29LV004BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000442 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000443 .manufacture_id = AMD_ID,
444 .model_id = AMD_AM29LV004BB,
445 .total_size = 512,
446 .page_size = 64 * 1024, /* unused */
447 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
448 .tested = TEST_UNTESTED,
449 .probe = probe_jedec,
450 .probe_timing = TIMING_ZERO,
451 .block_erasers =
452 {
453 {
454 .eraseblocks = {
455 {16 * 1024, 1},
456 {8 * 1024, 2},
457 {32 * 1024, 1},
458 {64 * 1024, 7},
459 },
460 .block_erase = erase_sector_jedec,
461 }, {
462 .eraseblocks = { {512 * 1024, 1} },
463 .block_erase = erase_chip_block_jedec,
464 },
465 },
466 .write = write_jedec_1,
467 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000468 .voltage = {2700, 3600},
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000469 },
470
471 {
472 .vendor = "AMD",
473 .name = "Am29LV004BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000474 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000475 .manufacture_id = AMD_ID,
476 .model_id = AMD_AM29LV004BT,
477 .total_size = 512,
478 .page_size = 64 * 1024, /* unused */
479 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
480 .tested = TEST_UNTESTED,
481 .probe = probe_jedec,
482 .probe_timing = TIMING_ZERO,
483 .block_erasers =
484 {
485 {
486 .eraseblocks = {
487 {64 * 1024, 7},
488 {32 * 1024, 1},
489 {8 * 1024, 2},
490 {16 * 1024, 1},
491 },
492 .block_erase = erase_sector_jedec,
493 }, {
494 .eraseblocks = { {512 * 1024, 1} },
495 .block_erase = erase_chip_block_jedec,
496 },
497 },
498 .write = write_jedec_1,
499 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000500 .voltage = {2700, 3600},
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000501 },
502
503 {
504 .vendor = "AMD",
505 .name = "Am29LV008BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000506 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000507 .manufacture_id = AMD_ID,
508 .model_id = AMD_AM29LV008BB,
509 .total_size = 1024,
510 .page_size = 64 * 1024, /* unused */
511 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Uwe Hermann09ebd522011-08-25 22:54:23 +0000512 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000513 .probe = probe_jedec,
514 .probe_timing = TIMING_ZERO,
515 .block_erasers =
516 {
517 {
518 .eraseblocks = {
519 {16 * 1024, 1},
520 {8 * 1024, 2},
521 {32 * 1024, 1},
522 {64 * 1024, 15},
523 },
524 .block_erase = erase_sector_jedec,
525 }, {
526 .eraseblocks = { {1024 * 1024, 1} },
527 .block_erase = erase_chip_block_jedec,
528 },
529 },
530 .write = write_jedec_1,
531 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000532 .voltage = {3000, 3600} /* 3.0-3.6V for type -70R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000533 },
534
535 {
536 .vendor = "AMD",
537 .name = "Am29LV008BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000538 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000539 .manufacture_id = AMD_ID,
540 .model_id = AMD_AM29LV008BT,
541 .total_size = 1024,
542 .page_size = 64 * 1024, /* unused */
543 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
544 .tested = TEST_UNTESTED,
545 .probe = probe_jedec,
546 .probe_timing = TIMING_ZERO,
547 .block_erasers =
548 {
549 {
550 .eraseblocks = {
551 {64 * 1024, 15},
552 {32 * 1024, 1},
553 {8 * 1024, 2},
554 {16 * 1024, 1},
555 },
556 .block_erase = erase_sector_jedec,
557 }, {
558 .eraseblocks = { {1024 * 1024, 1} },
559 .block_erase = erase_chip_block_jedec,
560 },
561 },
562 .write = write_jedec_1,
563 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000564 .voltage = {3000, 3600} /* 3.0-3.6V for type -70R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000565 },
566
567 {
568 .vendor = "AMD",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000569 .name = "Am29LV040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000570 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000571 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000572 .model_id = AMD_AM29LV040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000573 .total_size = 512,
574 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000575 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000576 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +0000577 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000578 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000579 .block_erasers =
580 {
581 {
582 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +0000583 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000584 }, {
585 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000586 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000587 },
588 },
Sean Nelson35727f72010-01-28 23:55:12 +0000589 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000590 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000591 .voltage = {3000, 3600}, /* 3.0-3.6V for type -60R, others 2.7-3.6V*/
FENG yu ningff692fb2008-12-08 18:15:10 +0000592 },
593
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000594 {
Peter Stuge8440cc02009-01-25 23:55:12 +0000595 .vendor = "AMD",
596 .name = "Am29LV081B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000597 .bustype = BUS_PARALLEL,
Mateusz Murawski5bae4382009-06-02 00:38:14 +0000598 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000599 .model_id = AMD_AM29LV080B,
Peter Stuge8440cc02009-01-25 23:55:12 +0000600 .total_size = 1024,
601 .page_size = 64 * 1024,
David Borg204f4652010-12-04 03:26:40 +0000602 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, /* datasheet specifies address as don't care */
Peter Stuge8440cc02009-01-25 23:55:12 +0000603 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +0000604 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000605 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000606 .block_erasers =
607 {
608 {
609 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson35727f72010-01-28 23:55:12 +0000610 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000611 }, {
612 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000613 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000614 },
615 },
Sean Nelson35727f72010-01-28 23:55:12 +0000616 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000617 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000618 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70R, others 2.7-3.6V */
Peter Stuge8440cc02009-01-25 23:55:12 +0000619 },
620
621 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000622 .vendor = "AMIC",
623 .name = "A25L05PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000624 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000625 .manufacture_id = AMIC_ID,
626 .model_id = AMIC_A25L05PT,
627 .total_size = 64,
628 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000629 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000630 .tested = TEST_UNTESTED,
631 .probe = probe_spi_rdid4,
632 .probe_timing = TIMING_ZERO,
633 .block_erasers =
634 {
635 {
636 .eraseblocks = {
637 {32 * 1024, 1},
638 {16 * 1024, 1},
639 {8 * 1024, 1},
640 {4 * 1024, 2},
641 },
642 .block_erase = spi_block_erase_d8,
643 }, {
644 .eraseblocks = { {64 * 1024, 1} },
645 .block_erase = spi_block_erase_c7,
646 }
647 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000648 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000649 .unlock = spi_disable_blockprotect,
650 .write = spi_chip_write_256,
651 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000652 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000653 },
654
655 {
656 .vendor = "AMIC",
657 .name = "A25L05PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000658 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000659 .manufacture_id = AMIC_ID,
660 .model_id = AMIC_A25L05PU,
661 .total_size = 64,
662 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000663 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000664 .tested = TEST_UNTESTED,
665 .probe = probe_spi_rdid4,
666 .probe_timing = TIMING_ZERO,
667 .block_erasers =
668 {
669 {
670 .eraseblocks = {
671 {4 * 1024, 2},
672 {8 * 1024, 1},
673 {16 * 1024, 1},
674 {32 * 1024, 1},
675 },
676 .block_erase = spi_block_erase_d8,
677 }, {
678 .eraseblocks = { {64 * 1024, 1} },
679 .block_erase = spi_block_erase_c7,
680 }
681 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000682 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000683 .unlock = spi_disable_blockprotect,
684 .write = spi_chip_write_256,
685 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000686 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000687 },
688
689 {
690 .vendor = "AMIC",
691 .name = "A25L10PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000692 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000693 .manufacture_id = AMIC_ID,
694 .model_id = AMIC_A25L10PT,
695 .total_size = 128,
696 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000697 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000698 .tested = TEST_UNTESTED,
699 .probe = probe_spi_rdid4,
700 .probe_timing = TIMING_ZERO,
701 .block_erasers =
702 {
703 {
704 .eraseblocks = {
705 {64 * 1024, 1},
706 {32 * 1024, 1},
707 {16 * 1024, 1},
708 {8 * 1024, 1},
709 {4 * 1024, 2},
710 },
711 .block_erase = spi_block_erase_d8,
712 }, {
713 .eraseblocks = { {128 * 1024, 1} },
714 .block_erase = spi_block_erase_c7,
715 }
716 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000717 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000718 .unlock = spi_disable_blockprotect,
719 .write = spi_chip_write_256,
720 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000721 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000722 },
723
724 {
725 .vendor = "AMIC",
726 .name = "A25L10PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000727 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000728 .manufacture_id = AMIC_ID,
729 .model_id = AMIC_A25L10PU,
730 .total_size = 128,
731 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000732 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000733 .tested = TEST_UNTESTED,
734 .probe = probe_spi_rdid4,
735 .probe_timing = TIMING_ZERO,
736 .block_erasers =
737 {
738 {
739 .eraseblocks = {
740 {4 * 1024, 2},
741 {8 * 1024, 1},
742 {16 * 1024, 1},
743 {32 * 1024, 1},
744 {64 * 1024, 1},
745 },
746 .block_erase = spi_block_erase_d8,
747 }, {
748 .eraseblocks = { {128 * 1024, 1} },
749 .block_erase = spi_block_erase_c7,
750 }
751 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000752 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000753 .unlock = spi_disable_blockprotect,
754 .write = spi_chip_write_256,
755 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000756 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000757 },
758
759 {
760 .vendor = "AMIC",
761 .name = "A25L20PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000762 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000763 .manufacture_id = AMIC_ID,
764 .model_id = AMIC_A25L20PT,
765 .total_size = 256,
766 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000767 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000768 .tested = TEST_UNTESTED,
769 .probe = probe_spi_rdid4,
770 .probe_timing = TIMING_ZERO,
771 .block_erasers =
772 {
773 {
774 .eraseblocks = {
775 {64 * 1024, 3},
776 {32 * 1024, 1},
777 {16 * 1024, 1},
778 {8 * 1024, 1},
779 {4 * 1024, 2},
780 },
781 .block_erase = spi_block_erase_d8,
782 }, {
783 .eraseblocks = { {256 * 1024, 1} },
784 .block_erase = spi_block_erase_c7,
785 }
786 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000787 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000788 .unlock = spi_disable_blockprotect,
789 .write = spi_chip_write_256,
790 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000791 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000792 },
793
794 {
795 .vendor = "AMIC",
796 .name = "A25L20PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000797 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000798 .manufacture_id = AMIC_ID,
799 .model_id = AMIC_A25L20PU,
800 .total_size = 256,
801 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000802 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000803 .tested = TEST_UNTESTED,
804 .probe = probe_spi_rdid4,
805 .probe_timing = TIMING_ZERO,
806 .block_erasers =
807 {
808 {
809 .eraseblocks = {
810 {4 * 1024, 2},
811 {8 * 1024, 1},
812 {16 * 1024, 1},
813 {32 * 1024, 1},
814 {64 * 1024, 3},
815 },
816 .block_erase = spi_block_erase_d8,
817 }, {
818 .eraseblocks = { {256 * 1024, 1} },
819 .block_erase = spi_block_erase_c7,
820 }
821 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000822 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000823 .unlock = spi_disable_blockprotect,
824 .write = spi_chip_write_256,
825 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000826 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000827 },
828
829 /* The A25L40P{T,U} chips are distinguished by their
830 * erase block layouts, but without any distinction in RDID.
831 * This inexplicable quirk was verified by Rudolf Marek
832 * and discussed on the flashrom mailing list on 2010-07-12.
833 */
834 {
835 .vendor = "AMIC",
836 .name = "A25L40PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000837 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000838 .manufacture_id = AMIC_ID,
839 .model_id = AMIC_A25L40PT,
840 .total_size = 512,
841 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000842 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000843 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000844 .probe = probe_spi_rdid4,
845 .probe_timing = TIMING_ZERO,
846 .block_erasers =
847 {
848 {
849 .eraseblocks = {
850 {64 * 1024, 7},
851 {32 * 1024, 1},
852 {16 * 1024, 1},
853 {8 * 1024, 1},
854 {4 * 1024, 2},
855 },
856 .block_erase = spi_block_erase_d8,
857 }, {
858 .eraseblocks = { {512 * 1024, 1} },
859 .block_erase = spi_block_erase_c7,
860 }
861 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000862 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000863 .unlock = spi_disable_blockprotect,
864 .write = spi_chip_write_256,
865 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000866 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000867 },
868
869 {
870 .vendor = "AMIC",
871 .name = "A25L40PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000872 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000873 .manufacture_id = AMIC_ID,
874 .model_id = AMIC_A25L40PU,
875 .total_size = 512,
876 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000877 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000878 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000879 .probe = probe_spi_rdid4,
880 .probe_timing = TIMING_ZERO,
881 .block_erasers =
882 {
883 {
884 .eraseblocks = {
885 {4 * 1024, 2},
886 {8 * 1024, 1},
887 {16 * 1024, 1},
888 {32 * 1024, 1},
889 {64 * 1024, 7},
890 },
891 .block_erase = spi_block_erase_d8,
892 }, {
893 .eraseblocks = { {512 * 1024, 1} },
894 .block_erase = spi_block_erase_c7,
895 }
896 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000897 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000898 .unlock = spi_disable_blockprotect,
899 .write = spi_chip_write_256,
900 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000901 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000902 },
903
904 {
905 .vendor = "AMIC",
906 .name = "A25L80P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000907 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000908 .manufacture_id = AMIC_ID,
909 .model_id = AMIC_A25L80P,
910 .total_size = 1024,
911 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000912 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000913 .tested = TEST_OK_PRE,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000914 .probe = probe_spi_rdid4,
915 .probe_timing = TIMING_ZERO,
916 .block_erasers =
917 {
918 {
919 .eraseblocks = {
920 {4 * 1024, 2},
921 {8 * 1024, 1},
922 {16 * 1024, 1},
923 {32 * 1024, 1},
924 {64 * 1024, 15},
925 },
926 .block_erase = spi_block_erase_d8,
927 }, {
928 .eraseblocks = { {1024 * 1024, 1} },
929 .block_erase = spi_block_erase_c7,
930 }
931 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000932 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000933 .unlock = spi_disable_blockprotect,
934 .write = spi_chip_write_256,
935 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000936 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000937 },
938
939 {
940 .vendor = "AMIC",
941 .name = "A25L16PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000942 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000943 .manufacture_id = AMIC_ID,
944 .model_id = AMIC_A25L16PT,
945 .total_size = 2048,
946 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000947 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000948 .tested = TEST_UNTESTED,
949 .probe = probe_spi_rdid4,
950 .probe_timing = TIMING_ZERO,
951 .block_erasers =
952 {
953 {
954 .eraseblocks = {
955 {64 * 1024, 31},
956 {32 * 1024, 1},
957 {16 * 1024, 1},
958 {8 * 1024, 1},
959 {4 * 1024, 2},
960 },
961 .block_erase = spi_block_erase_d8,
962 }, {
963 .eraseblocks = { {2048 * 1024, 1} },
964 .block_erase = spi_block_erase_60,
965 }, {
966 .eraseblocks = { {2048 * 1024, 1} },
967 .block_erase = spi_block_erase_c7,
968 }
969 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000970 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000971 .unlock = spi_disable_blockprotect,
972 .write = spi_chip_write_256,
973 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000974 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000975 },
976
977 {
978 .vendor = "AMIC",
979 .name = "A25L16PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000980 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000981 .manufacture_id = AMIC_ID,
982 .model_id = AMIC_A25L16PU,
983 .total_size = 2048,
984 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000985 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000986 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000987 .probe = probe_spi_rdid4,
988 .probe_timing = TIMING_ZERO,
989 .block_erasers =
990 {
991 {
992 .eraseblocks = {
993 {4 * 1024, 2},
994 {8 * 1024, 1},
995 {16 * 1024, 1},
996 {32 * 1024, 1},
997 {64 * 1024, 31},
998 },
999 .block_erase = spi_block_erase_d8,
1000 }, {
1001 .eraseblocks = { {2048 * 1024, 1} },
1002 .block_erase = spi_block_erase_60,
1003 }, {
1004 .eraseblocks = { {2048 * 1024, 1} },
1005 .block_erase = spi_block_erase_c7,
1006 }
1007 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001008 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001009 .unlock = spi_disable_blockprotect,
1010 .write = spi_chip_write_256,
1011 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001012 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001013 },
1014
1015 {
1016 .vendor = "AMIC",
Dan Lenski11617122010-07-29 15:00:40 +00001017 .name = "A25L512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001018 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001019 .manufacture_id = AMIC_ID_NOPREFIX,
1020 .model_id = AMIC_A25L512,
1021 .total_size = 64,
1022 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001023 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001024 .tested = TEST_UNTESTED,
1025 .probe = probe_spi_rdid,
1026 .probe_timing = TIMING_ZERO,
1027 .block_erasers =
1028 {
1029 {
1030 .eraseblocks = { { 4 * 1024, 16 } },
1031 .block_erase = spi_block_erase_20,
1032 }, {
1033 .eraseblocks = { { 64 * 1024, 1 } },
1034 .block_erase = spi_block_erase_d8,
1035 }, {
1036 .eraseblocks = { { 64 * 1024, 1 } },
1037 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001038 }
Dan Lenski11617122010-07-29 15:00:40 +00001039 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001040 .printlock = spi_prettyprint_status_register_bp2_srwd,
Dan Lenski11617122010-07-29 15:00:40 +00001041 .unlock = spi_disable_blockprotect,
1042 .write = spi_chip_write_256,
1043 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001044 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001045 },
1046
1047 {
1048 .vendor = "AMIC",
1049 .name = "A25L010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001050 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001051 .manufacture_id = AMIC_ID_NOPREFIX,
1052 .model_id = AMIC_A25L010,
1053 .total_size = 128,
1054 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001055 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001056 .tested = TEST_UNTESTED,
1057 .probe = probe_spi_rdid,
1058 .probe_timing = TIMING_ZERO,
1059 .block_erasers =
1060 {
1061 {
1062 .eraseblocks = { { 4 * 1024, 32 } },
1063 .block_erase = spi_block_erase_20,
1064 }, {
1065 .eraseblocks = { { 64 * 1024, 2 } },
1066 .block_erase = spi_block_erase_d8,
1067 }, {
1068 .eraseblocks = { { 128 * 1024, 1 } },
1069 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001070 }
Dan Lenski11617122010-07-29 15:00:40 +00001071 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001072 .printlock = spi_prettyprint_status_register_bp2_srwd,
Dan Lenski11617122010-07-29 15:00:40 +00001073 .unlock = spi_disable_blockprotect,
1074 .write = spi_chip_write_256,
1075 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001076 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001077 },
1078
1079 {
1080 .vendor = "AMIC",
1081 .name = "A25L020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001082 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001083 .manufacture_id = AMIC_ID_NOPREFIX,
1084 .model_id = AMIC_A25L020,
1085 .total_size = 256,
1086 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001087 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001088 .tested = TEST_UNTESTED,
1089 .probe = probe_spi_rdid,
1090 .probe_timing = TIMING_ZERO,
1091 .block_erasers =
1092 {
1093 {
1094 .eraseblocks = { { 4 * 1024, 64 } },
1095 .block_erase = spi_block_erase_20,
1096 }, {
1097 .eraseblocks = { { 64 * 1024, 4 } },
1098 .block_erase = spi_block_erase_d8,
1099 }, {
1100 .eraseblocks = { { 256 * 1024, 1 } },
1101 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001102 }
Dan Lenski11617122010-07-29 15:00:40 +00001103 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001104 .printlock = spi_prettyprint_status_register_bp2_srwd,
Dan Lenski11617122010-07-29 15:00:40 +00001105 .unlock = spi_disable_blockprotect,
1106 .write = spi_chip_write_256,
1107 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001108 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001109 },
1110
1111 {
1112 .vendor = "AMIC",
1113 .name = "A25L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001114 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001115 .manufacture_id = AMIC_ID_NOPREFIX,
1116 .model_id = AMIC_A25L040,
1117 .total_size = 512,
1118 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001119 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001120 .tested = TEST_UNTESTED,
1121 .probe = probe_spi_rdid,
1122 .probe_timing = TIMING_ZERO,
1123 .block_erasers =
1124 {
1125 {
1126 .eraseblocks = { { 4 * 1024, 128 } },
1127 .block_erase = spi_block_erase_20,
1128 }, {
1129 .eraseblocks = { { 64 * 1024, 8 } },
1130 .block_erase = spi_block_erase_d8,
1131 }, {
1132 .eraseblocks = { { 512 * 1024, 1 } },
1133 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001134 }
Dan Lenski11617122010-07-29 15:00:40 +00001135 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001136 .printlock = spi_prettyprint_status_register_bp2_srwd,
Dan Lenski11617122010-07-29 15:00:40 +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},
Dan Lenski11617122010-07-29 15:00:40 +00001141 },
1142
1143 {
1144 .vendor = "AMIC",
1145 .name = "A25L080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001146 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001147 .manufacture_id = AMIC_ID_NOPREFIX,
1148 .model_id = AMIC_A25L080,
1149 .total_size = 1024,
1150 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001151 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001152 .tested = TEST_UNTESTED,
1153 .probe = probe_spi_rdid,
1154 .probe_timing = TIMING_ZERO,
1155 .block_erasers =
1156 {
1157 {
1158 .eraseblocks = { { 4 * 1024, 256 } },
1159 .block_erase = spi_block_erase_20,
1160 }, {
1161 .eraseblocks = { { 64 * 1024, 16 } },
1162 .block_erase = spi_block_erase_d8,
1163 }, {
1164 .eraseblocks = { { 1024 * 1024, 1 } },
1165 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001166 }
Dan Lenski11617122010-07-29 15:00:40 +00001167 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001168 .printlock = spi_prettyprint_status_register_bp2_srwd,
Dan Lenski11617122010-07-29 15:00:40 +00001169 .unlock = spi_disable_blockprotect,
1170 .write = spi_chip_write_256,
1171 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001172 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001173 },
1174
1175 {
1176 .vendor = "AMIC",
1177 .name = "A25L016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001178 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001179 .manufacture_id = AMIC_ID_NOPREFIX,
1180 .model_id = AMIC_A25L016,
1181 .total_size = 2048,
1182 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001183 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001184 .tested = TEST_UNTESTED,
1185 .probe = probe_spi_rdid,
1186 .probe_timing = TIMING_ZERO,
1187 .block_erasers =
1188 {
1189 {
1190 .eraseblocks = { { 4 * 1024, 512 } },
1191 .block_erase = spi_block_erase_20,
1192 }, {
1193 .eraseblocks = { { 64 * 1024, 32 } },
1194 .block_erase = spi_block_erase_d8,
1195 }, {
1196 .eraseblocks = { { 2048 * 1024, 1 } },
1197 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001198 }
Dan Lenski11617122010-07-29 15:00:40 +00001199 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001200 .printlock = spi_prettyprint_status_register_bp2_srwd,
Dan Lenski11617122010-07-29 15:00:40 +00001201 .unlock = spi_disable_blockprotect,
1202 .write = spi_chip_write_256,
1203 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001204 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001205 },
1206
1207 {
1208 .vendor = "AMIC",
1209 .name = "A25L032",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001210 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001211 .manufacture_id = AMIC_ID_NOPREFIX,
1212 .model_id = AMIC_A25L032,
1213 .total_size = 4096,
1214 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001215 /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */
1216 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00001217 .tested = TEST_OK_PREW,
Dan Lenski11617122010-07-29 15:00:40 +00001218 .probe = probe_spi_rdid,
1219 .probe_timing = TIMING_ZERO,
1220 .block_erasers =
1221 {
1222 {
1223 .eraseblocks = { { 4 * 1024, 1024 } },
1224 .block_erase = spi_block_erase_20,
1225 }, {
1226 .eraseblocks = { { 64 * 1024, 64 } },
1227 .block_erase = spi_block_erase_52,
1228 }, {
1229 .eraseblocks = { { 64 * 1024, 64 } },
1230 .block_erase = spi_block_erase_d8,
1231 }, {
1232 .eraseblocks = { { 4096 * 1024, 1 } },
1233 .block_erase = spi_block_erase_60,
1234 }, {
1235 .eraseblocks = { { 4096 * 1024, 1 } },
1236 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001237 }
Dan Lenski11617122010-07-29 15:00:40 +00001238 },
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001239 .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */
1240 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */
Dan Lenski11617122010-07-29 15:00:40 +00001241 .write = spi_chip_write_256,
1242 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001243 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001244 },
1245
1246 {
1247 .vendor = "AMIC",
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001248 .name = "A25LQ16",
1249 .bustype = BUS_SPI,
1250 .manufacture_id = AMIC_ID_NOPREFIX,
1251 .model_id = AMIC_A25LQ16,
1252 .total_size = 2048,
1253 .page_size = 256,
1254 /* supports SFDP */
1255 /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */
1256 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
1257 .tested = TEST_UNTESTED,
1258 .probe = probe_spi_rdid,
1259 .probe_timing = TIMING_ZERO,
1260 .block_erasers = {
1261 {
1262 .eraseblocks = { { 4 * 1024, 512 } },
1263 .block_erase = spi_block_erase_20,
1264 }, {
1265 .eraseblocks = { { 64 * 1024, 32 } },
1266 .block_erase = spi_block_erase_52,
1267 }, {
1268 .eraseblocks = { { 64 * 1024, 32 } },
1269 .block_erase = spi_block_erase_d8,
1270 }, {
1271 .eraseblocks = { { 2048 * 1024, 1 } },
1272 .block_erase = spi_block_erase_60,
1273 }, {
1274 .eraseblocks = { { 2048 * 1024, 1 } },
1275 .block_erase = spi_block_erase_c7,
1276 }
1277 },
1278 .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) */
1280 .write = spi_chip_write_256,
1281 .read = spi_chip_read,
1282 .voltage = {2700, 3600},
1283 },
1284
1285 {
1286 .vendor = "AMIC",
1287 .name = "A25LQ032/A25LQ32A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001288 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001289 .manufacture_id = AMIC_ID_NOPREFIX,
1290 .model_id = AMIC_A25LQ032,
1291 .total_size = 4096,
1292 .page_size = 256,
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001293 /* A25LQ32A supports SFDP */
Daniel Lenski65922a32012-02-15 23:40:23 +00001294 /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */
1295 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Dan Lenski11617122010-07-29 15:00:40 +00001296 .tested = TEST_UNTESTED,
1297 .probe = probe_spi_rdid,
1298 .probe_timing = TIMING_ZERO,
1299 .block_erasers =
1300 {
1301 {
1302 .eraseblocks = { { 4 * 1024, 1024 } },
1303 .block_erase = spi_block_erase_20,
1304 }, {
1305 .eraseblocks = { { 64 * 1024, 64 } },
1306 .block_erase = spi_block_erase_52,
1307 }, {
1308 .eraseblocks = { { 64 * 1024, 64 } },
1309 .block_erase = spi_block_erase_d8,
1310 }, {
1311 .eraseblocks = { { 4096 * 1024, 1 } },
1312 .block_erase = spi_block_erase_60,
1313 }, {
1314 .eraseblocks = { { 4096 * 1024, 1 } },
1315 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001316 }
Dan Lenski11617122010-07-29 15:00:40 +00001317 },
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001318 .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",
1327 .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",
1526 .name = "AT25DF041A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001527 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001528 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001529 .model_id = ATMEL_AT25DF041A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001530 .total_size = 512,
1531 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001532 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +00001533 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001534 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001535 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001536 .block_erasers =
1537 {
1538 {
1539 .eraseblocks = { {4 * 1024, 128} },
1540 .block_erase = spi_block_erase_20,
1541 }, {
1542 .eraseblocks = { {32 * 1024, 16} },
1543 .block_erase = spi_block_erase_52,
1544 }, {
1545 .eraseblocks = { {64 * 1024, 8} },
1546 .block_erase = spi_block_erase_d8,
1547 }, {
1548 .eraseblocks = { {512 * 1024, 1} },
1549 .block_erase = spi_block_erase_60,
1550 }, {
1551 .eraseblocks = { {512 * 1024, 1} },
1552 .block_erase = spi_block_erase_c7,
1553 }
1554 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001555 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001556 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001557 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001558 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001559 .voltage = {2700, 3600}, /* 2.3-3.6V & 2.7-3.6V models available */
FENG yu ningff692fb2008-12-08 18:15:10 +00001560 },
1561
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001562 {
1563 .vendor = "Atmel",
1564 .name = "AT25DF081",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001565 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001566 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001567 .model_id = ATMEL_AT25DF081,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001568 .total_size = 1024,
1569 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001570 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001571 .tested = TEST_UNTESTED,
1572 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001573 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001574 .block_erasers =
1575 {
1576 {
1577 .eraseblocks = { {4 * 1024, 256} },
1578 .block_erase = spi_block_erase_20,
1579 }, {
1580 .eraseblocks = { {32 * 1024, 32} },
1581 .block_erase = spi_block_erase_52,
1582 }, {
1583 .eraseblocks = { {64 * 1024, 16} },
1584 .block_erase = spi_block_erase_d8,
1585 }, {
1586 .eraseblocks = { {1024 * 1024, 1} },
1587 .block_erase = spi_block_erase_60,
1588 }, {
1589 .eraseblocks = { {1024 * 1024, 1} },
1590 .block_erase = spi_block_erase_c7,
1591 }
1592 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001593 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001594 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001595 .write = spi_chip_write_256,
1596 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001597 .voltage = {1600, 2000}, /* Datasheet says range is 1.65-1.95 V */
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001598 },
1599
1600 {
1601 .vendor = "Atmel",
1602 .name = "AT25DF081A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001603 .bustype = BUS_SPI,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001604 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001605 .model_id = ATMEL_AT25DF081A,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001606 .total_size = 1024,
1607 .page_size = 256,
1608 .feature_bits = FEATURE_WRSR_WREN,
1609 .tested = TEST_UNTESTED,
1610 .probe = probe_spi_rdid,
1611 .probe_timing = TIMING_ZERO,
1612 .block_erasers =
1613 {
1614 {
1615 .eraseblocks = { {4 * 1024, 256} },
1616 .block_erase = spi_block_erase_20,
1617 }, {
1618 .eraseblocks = { {32 * 1024, 32} },
1619 .block_erase = spi_block_erase_52,
1620 }, {
1621 .eraseblocks = { {64 * 1024, 16} },
1622 .block_erase = spi_block_erase_d8,
1623 }, {
1624 .eraseblocks = { {1024 * 1024, 1} },
1625 .block_erase = spi_block_erase_60,
1626 }, {
1627 .eraseblocks = { {1024 * 1024, 1} },
1628 .block_erase = spi_block_erase_c7,
1629 }
1630 },
1631 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001632 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001633 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001634 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001635 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001636 },
1637
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001638 {
1639 .vendor = "Atmel",
1640 .name = "AT25DF161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001641 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001642 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001643 .model_id = ATMEL_AT25DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001644 .total_size = 2048,
1645 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001646 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner2abab942012-04-27 20:41:23 +00001647 .tested = TEST_OK_PROBE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001648 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001649 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001650 .block_erasers =
1651 {
1652 {
1653 .eraseblocks = { {4 * 1024, 512} },
1654 .block_erase = spi_block_erase_20,
1655 }, {
1656 .eraseblocks = { {32 * 1024, 64} },
1657 .block_erase = spi_block_erase_52,
1658 }, {
1659 .eraseblocks = { {64 * 1024, 32} },
1660 .block_erase = spi_block_erase_d8,
1661 }, {
1662 .eraseblocks = { {2 * 1024 * 1024, 1} },
1663 .block_erase = spi_block_erase_60,
1664 }, {
1665 .eraseblocks = { {2 * 1024 * 1024, 1} },
1666 .block_erase = spi_block_erase_c7,
1667 }
1668 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001669 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001670 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001671 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001672 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001673 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001674 },
1675
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001676 {
1677 .vendor = "Atmel",
1678 .name = "AT25DF321",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001679 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001680 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001681 .model_id = ATMEL_AT25DF321,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001682 .total_size = 4096,
1683 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001684 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd06d9412011-06-12 19:47:55 +00001685 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001686 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001687 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001688 .block_erasers =
1689 {
1690 {
1691 .eraseblocks = { {4 * 1024, 1024} },
1692 .block_erase = spi_block_erase_20,
1693 }, {
1694 .eraseblocks = { {32 * 1024, 128} },
1695 .block_erase = spi_block_erase_52,
1696 }, {
1697 .eraseblocks = { {64 * 1024, 64} },
1698 .block_erase = spi_block_erase_d8,
1699 }, {
1700 .eraseblocks = { {4 * 1024 * 1024, 1} },
1701 .block_erase = spi_block_erase_60,
1702 }, {
1703 .eraseblocks = { {4 * 1024 * 1024, 1} },
1704 .block_erase = spi_block_erase_c7,
1705 }
1706 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001707 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001708 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001709 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001710 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001711 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001712 },
1713
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001714 {
1715 .vendor = "Atmel",
1716 .name = "AT25DF321A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001717 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001718 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001719 .model_id = ATMEL_AT25DF321A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001720 .total_size = 4096,
1721 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001722 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1723 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00001724 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001725 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001726 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001727 .block_erasers =
1728 {
1729 {
1730 .eraseblocks = { {4 * 1024, 1024} },
1731 .block_erase = spi_block_erase_20,
1732 }, {
1733 .eraseblocks = { {32 * 1024, 128} },
1734 .block_erase = spi_block_erase_52,
1735 }, {
1736 .eraseblocks = { {64 * 1024, 64} },
1737 .block_erase = spi_block_erase_d8,
1738 }, {
1739 .eraseblocks = { {4 * 1024 * 1024, 1} },
1740 .block_erase = spi_block_erase_60,
1741 }, {
1742 .eraseblocks = { {4 * 1024 * 1024, 1} },
1743 .block_erase = spi_block_erase_c7,
1744 }
1745 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001746 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001747 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001748 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001749 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001750 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001751 },
1752
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001753 {
1754 .vendor = "Atmel",
Paul Menzelac427b22012-02-16 21:07:07 +00001755 .name = "AT25DF641(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001756 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001757 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001758 .model_id = ATMEL_AT25DF641,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001759 .total_size = 8192,
1760 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001761 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00001762 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001763 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001764 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001765 .block_erasers =
1766 {
1767 {
1768 .eraseblocks = { {4 * 1024, 2048} },
1769 .block_erase = spi_block_erase_20,
1770 }, {
1771 .eraseblocks = { {32 * 1024, 256} },
1772 .block_erase = spi_block_erase_52,
1773 }, {
1774 .eraseblocks = { {64 * 1024, 128} },
1775 .block_erase = spi_block_erase_d8,
1776 }, {
1777 .eraseblocks = { {8 * 1024 * 1024, 1} },
1778 .block_erase = spi_block_erase_60,
1779 }, {
1780 .eraseblocks = { {8 * 1024 * 1024, 1} },
1781 .block_erase = spi_block_erase_c7,
1782 }
1783 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001784 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001785 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001786 .write = spi_chip_write_256,
1787 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001788 .voltage = {2700, 3600},
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001789 },
1790
1791 {
1792 .vendor = "Atmel",
Stefan Taunerc9d8b272014-06-01 13:22:35 +00001793 .name = "AT25DL081",
1794 .bustype = BUS_SPI,
1795 .manufacture_id = ATMEL_ID,
1796 .model_id = ATMEL_AT25DF081,
1797 .total_size = 1024,
1798 .page_size = 256,
1799 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1800 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
1801 .tested = TEST_UNTESTED,
1802 .probe = probe_spi_rdid,
1803 .probe_timing = TIMING_ZERO,
1804 .block_erasers =
1805 {
1806 {
1807 .eraseblocks = { {4 * 1024, 256} },
1808 .block_erase = spi_block_erase_20,
1809 }, {
1810 .eraseblocks = { {32 * 1024, 32} },
1811 .block_erase = spi_block_erase_52,
1812 }, {
1813 .eraseblocks = { {64 * 1024, 16} },
1814 .block_erase = spi_block_erase_d8,
1815 }, {
1816 .eraseblocks = { {1 * 1024 * 1024, 1} },
1817 .block_erase = spi_block_erase_60,
1818 }, {
1819 .eraseblocks = { {1 * 1024 * 1024, 1} },
1820 .block_erase = spi_block_erase_c7,
1821 }
1822 },
1823 .printlock = spi_prettyprint_status_register_at25df_sec,
1824 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
1825 .write = spi_chip_write_256, /* Dual I/O (0xA2) supported */
1826 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
1827 .voltage = {1650, 1950},
1828 },
1829
1830 {
1831 .vendor = "Atmel",
1832 .name = "AT25DL161",
1833 .bustype = BUS_SPI,
1834 .manufacture_id = ATMEL_ID,
1835 .model_id = ATMEL_AT25DL161,
1836 .total_size = 2048,
1837 .page_size = 256,
1838 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1839 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
1840 .tested = TEST_UNTESTED,
1841 .probe = probe_spi_rdid,
1842 .probe_timing = TIMING_ZERO,
1843 .block_erasers =
1844 {
1845 {
1846 .eraseblocks = { {4 * 1024, 512} },
1847 .block_erase = spi_block_erase_20,
1848 }, {
1849 .eraseblocks = { {32 * 1024, 64} },
1850 .block_erase = spi_block_erase_52,
1851 }, {
1852 .eraseblocks = { {64 * 1024, 32} },
1853 .block_erase = spi_block_erase_d8,
1854 }, {
1855 .eraseblocks = { {2 * 1024 * 1024, 1} },
1856 .block_erase = spi_block_erase_60,
1857 }, {
1858 .eraseblocks = { {2 * 1024 * 1024, 1} },
1859 .block_erase = spi_block_erase_c7,
1860 }
1861 },
1862 .printlock = spi_prettyprint_status_register_at25df_sec,
1863 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
1864 .write = spi_chip_write_256, /* Dual I/O (0xA2) supported */
1865 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
1866 .voltage = {1650, 1950},
1867 },
1868
1869 {
1870 .vendor = "Atmel",
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001871 .name = "AT25DQ161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001872 .bustype = BUS_SPI,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001873 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001874 .model_id = ATMEL_AT25DQ161,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001875 .total_size = 2048,
1876 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001877 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1878 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001879 .tested = TEST_UNTESTED,
1880 .probe = probe_spi_rdid,
1881 .probe_timing = TIMING_ZERO,
1882 .block_erasers =
1883 {
1884 {
1885 .eraseblocks = { {4 * 1024, 512} },
1886 .block_erase = spi_block_erase_20,
1887 }, {
1888 .eraseblocks = { {32 * 1024, 64} },
1889 .block_erase = spi_block_erase_52,
1890 }, {
1891 .eraseblocks = { {64 * 1024, 32} },
1892 .block_erase = spi_block_erase_d8,
1893 }, {
1894 .eraseblocks = { {2 * 1024 * 1024, 1} },
1895 .block_erase = spi_block_erase_60,
1896 }, {
1897 .eraseblocks = { {2 * 1024 * 1024, 1} },
1898 .block_erase = spi_block_erase_c7,
1899 }
1900 },
1901 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001902 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001903 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001904 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001905 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001906 },
1907
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001908 {
1909 .vendor = "Atmel",
Stefan Tauner57794ac2012-12-29 15:04:20 +00001910 .name = "AT25F512",
1911 .bustype = BUS_SPI,
1912 .manufacture_id = ATMEL_ID,
1913 .model_id = ATMEL_AT25F512,
1914 .total_size = 64,
1915 .page_size = 256,
1916 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00001917 .tested = TEST_OK_PREW,
Stefan Tauner57794ac2012-12-29 15:04:20 +00001918 .probe = probe_spi_at25f,
1919 .probe_timing = TIMING_ZERO,
1920 .block_erasers =
1921 {
1922 {
1923 .eraseblocks = { {32 * 1024, 2} },
1924 .block_erase = spi_block_erase_52,
1925 }, {
1926 .eraseblocks = { {64 * 1024, 1} },
1927 .block_erase = spi_block_erase_62,
1928 }
1929 },
1930 .printlock = spi_prettyprint_status_register_at25f,
1931 .unlock = spi_disable_blockprotect_at25f,
1932 .write = spi_chip_write_256,
1933 .read = spi_chip_read,
1934 .voltage = {2700, 3600},
1935 },
1936
1937 {
1938 .vendor = "Atmel",
1939 .name = "AT25F512A",
1940 .bustype = BUS_SPI,
1941 .manufacture_id = ATMEL_ID,
1942 .model_id = ATMEL_AT25F512A,
1943 .total_size = 64,
1944 .page_size = 128,
1945 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00001946 .tested = TEST_OK_PREW,
Stefan Tauner57794ac2012-12-29 15:04:20 +00001947 .probe = probe_spi_at25f,
1948 .probe_timing = TIMING_ZERO,
1949 .block_erasers =
1950 {
1951 {
1952 .eraseblocks = { {32 * 1024, 2} },
1953 .block_erase = spi_block_erase_52,
1954 }, {
1955 .eraseblocks = { {64 * 1024, 1} },
1956 .block_erase = spi_block_erase_62,
1957 }
1958 },
1959 .printlock = spi_prettyprint_status_register_at25f512a,
1960 /* FIXME: It is not correct to use this one, because the BP1 bit is N/A. */
1961 .unlock = spi_disable_blockprotect_at25f512a,
1962 .write = spi_chip_write_256,
1963 .read = spi_chip_read,
1964 .voltage = {2700, 3600},
1965 },
1966
1967 {
1968 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001969 .name = "AT25F512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001970 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001971 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001972 .model_id = ATMEL_AT25F512B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001973 .total_size = 64,
1974 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001975 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1976 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001977 .tested = TEST_UNTESTED,
1978 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001979 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001980 .block_erasers =
1981 {
1982 {
1983 .eraseblocks = { {4 * 1024, 16} },
1984 .block_erase = spi_block_erase_20,
1985 }, {
1986 .eraseblocks = { {32 * 1024, 2} },
1987 .block_erase = spi_block_erase_52,
1988 }, {
1989 .eraseblocks = { {32 * 1024, 2} },
1990 .block_erase = spi_block_erase_d8,
1991 }, {
1992 .eraseblocks = { {64 * 1024, 1} },
1993 .block_erase = spi_block_erase_60,
1994 }, {
1995 .eraseblocks = { {64 * 1024, 1} },
1996 .block_erase = spi_block_erase_c7,
Stefan Tauner3c0fcd02012-09-21 12:46:56 +00001997 }, {
1998 .eraseblocks = { {64 * 1024, 1} },
1999 .block_erase = spi_block_erase_62,
Sean Nelson89187292009-12-23 12:02:55 +00002000 }
2001 },
Stefan Tauner7bf4ed92012-08-26 21:04:27 +00002002 .printlock = spi_prettyprint_status_register_at25f512b,
2003 .unlock = spi_disable_blockprotect_at25f512b,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002004 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002005 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002006 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002007 },
2008
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002009 {
2010 .vendor = "Atmel",
Stefan Tauner57794ac2012-12-29 15:04:20 +00002011 /* The A suffix indicates 33MHz instead of 20MHz clock rate.
2012 * All other properties seem to be the same.*/
2013 .name = "AT25F1024(A)",
2014 .bustype = BUS_SPI,
2015 .manufacture_id = ATMEL_ID,
2016 .model_id = ATMEL_AT25F1024,
2017 .total_size = 128,
2018 .page_size = 256,
2019 .feature_bits = FEATURE_WRSR_WREN,
2020 .tested = TEST_OK_PREW,
2021 .probe = probe_spi_at25f,
2022 .probe_timing = TIMING_ZERO,
2023 .block_erasers =
2024 {
2025 {
2026 .eraseblocks = { {32 * 1024, 4} },
2027 .block_erase = spi_block_erase_52,
2028 }, {
2029 .eraseblocks = { {128 * 1024, 1} },
2030 .block_erase = spi_block_erase_62,
2031 }
2032 },
2033 .printlock = spi_prettyprint_status_register_at25f,
2034 .unlock = spi_disable_blockprotect_at25f,
2035 .write = spi_chip_write_256,
2036 .read = spi_chip_read,
2037 .voltage = {2700, 3600},
2038 },
2039
2040 {
2041 .vendor = "Atmel",
2042 .name = "AT25F2048",
2043 .bustype = BUS_SPI,
2044 .manufacture_id = ATMEL_ID,
2045 .model_id = ATMEL_AT25F2048,
2046 .total_size = 256,
2047 .page_size = 256,
2048 .feature_bits = FEATURE_WRSR_WREN,
2049 .tested = TEST_UNTESTED,
2050 .probe = probe_spi_at25f,
2051 .probe_timing = TIMING_ZERO,
2052 .block_erasers =
2053 {
2054 {
2055 .eraseblocks = { {64 * 1024, 4} },
2056 .block_erase = spi_block_erase_52,
2057 }, {
2058 .eraseblocks = { {256 * 1024, 1} },
2059 .block_erase = spi_block_erase_62,
2060 }
2061 },
2062 .printlock = spi_prettyprint_status_register_at25f,
2063 .unlock = spi_disable_blockprotect_at25f,
2064 .write = spi_chip_write_256,
2065 .read = spi_chip_read,
2066 .voltage = {2700, 3600},
2067 },
2068
2069 {
2070 .vendor = "Atmel",
2071 .name = "AT25F4096",
2072 .bustype = BUS_SPI,
2073 .manufacture_id = ATMEL_ID,
2074 .model_id = ATMEL_AT25F4096,
2075 .total_size = 512,
2076 .page_size = 256,
2077 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner6697f712014-08-06 15:09:15 +00002078 .tested = TEST_OK_PREW,
Stefan Tauner57794ac2012-12-29 15:04:20 +00002079 .probe = probe_spi_at25f,
2080 .probe_timing = TIMING_ZERO,
2081 .block_erasers =
2082 {
2083 {
2084 .eraseblocks = { {64 * 1024, 8} },
2085 .block_erase = spi_block_erase_52,
2086 }, {
2087 .eraseblocks = { {512 * 1024, 1} },
2088 .block_erase = spi_block_erase_62,
2089 }
2090 },
2091 .printlock = spi_prettyprint_status_register_at25f4096,
Stefan Tauner278ba6e2013-06-28 21:28:27 +00002092 /* "Bits 5-6 are 0s when device is not in an internal write cycle." Better leave them alone: */
2093 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner57794ac2012-12-29 15:04:20 +00002094 .write = spi_chip_write_256,
2095 .read = spi_chip_read,
2096 .voltage = {2700, 3600},
2097 },
2098
2099 {
2100 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002101 .name = "AT25FS010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002102 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002103 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002104 .model_id = ATMEL_AT25FS010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002105 .total_size = 128,
2106 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002107 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00002108 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002109 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002110 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002111 .block_erasers =
2112 {
2113 {
2114 .eraseblocks = { {4 * 1024, 32} },
2115 .block_erase = spi_block_erase_20,
2116 }, {
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00002117 .eraseblocks = { {4 * 1024, 32} },
2118 .block_erase = spi_block_erase_d7,
2119 }, {
Sean Nelson89187292009-12-23 12:02:55 +00002120 .eraseblocks = { {32 * 1024, 4} },
2121 .block_erase = spi_block_erase_52,
2122 }, {
2123 .eraseblocks = { {32 * 1024, 4} },
2124 .block_erase = spi_block_erase_d8,
2125 }, {
2126 .eraseblocks = { {128 * 1024, 1} },
2127 .block_erase = spi_block_erase_60,
2128 }, {
2129 .eraseblocks = { {128 * 1024, 1} },
2130 .block_erase = spi_block_erase_c7,
2131 }
2132 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00002133 .printlock = spi_prettyprint_status_register_at25fs010,
2134 .unlock = spi_disable_blockprotect_at25fs010,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002135 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002136 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002137 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002138 },
2139
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002140 {
2141 .vendor = "Atmel",
2142 .name = "AT25FS040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002143 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002144 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002145 .model_id = ATMEL_AT25FS040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002146 .total_size = 512,
2147 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002148 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002149 .tested = TEST_UNTESTED,
2150 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002151 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002152 .block_erasers =
2153 {
2154 {
2155 .eraseblocks = { {4 * 1024, 128} },
2156 .block_erase = spi_block_erase_20,
2157 }, {
2158 .eraseblocks = { {64 * 1024, 8} },
2159 .block_erase = spi_block_erase_52,
2160 }, {
2161 .eraseblocks = { {64 * 1024, 8} },
2162 .block_erase = spi_block_erase_d8,
2163 }, {
2164 .eraseblocks = { {512 * 1024, 1} },
2165 .block_erase = spi_block_erase_60,
2166 }, {
2167 .eraseblocks = { {512 * 1024, 1} },
2168 .block_erase = spi_block_erase_c7,
2169 }
2170 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00002171 .printlock = spi_prettyprint_status_register_at25fs040,
2172 .unlock = spi_disable_blockprotect_at25fs040,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002173 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002174 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002175 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002176 },
2177
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002178 {
2179 .vendor = "Atmel",
2180 .name = "AT26DF041",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002181 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002182 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002183 .model_id = ATMEL_AT26DF041,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002184 .total_size = 512,
2185 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002186 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner94b39b42012-10-27 00:06:02 +00002187 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002188 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002189 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002190 .block_erasers =
2191 {
2192 {
Stefan Tauner94b39b42012-10-27 00:06:02 +00002193 .eraseblocks = { {256, 2048} },
2194 .block_erase = spi_block_erase_81,
2195 }, {
2196 .eraseblocks = { {2 * 1024, 256} },
2197 .block_erase = spi_block_erase_50,
2198 }, {
Sean Nelson89187292009-12-23 12:02:55 +00002199 .eraseblocks = { {4 * 1024, 128} },
2200 .block_erase = spi_block_erase_20,
2201 }
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002202 },
Stefan Taunercecb2c52013-06-20 22:55:41 +00002203 .printlock = spi_prettyprint_status_register_plain,
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002204 /* Supports also an incompatible page write (of exactly 256 B) and an auto-erasing write. */
Stefan Tauner94b39b42012-10-27 00:06:02 +00002205 .write = spi_chip_write_1,
2206 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002207 .voltage = {2700, 3600}, /* 3.0-3.6V for higher speed, 2.7-3.6V normal */
FENG yu ningff692fb2008-12-08 18:15:10 +00002208 },
2209
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002210 {
2211 .vendor = "Atmel",
2212 .name = "AT26DF081A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002213 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002214 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002215 .model_id = ATMEL_AT26DF081A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002216 .total_size = 1024,
2217 .page_size = 256,
Mathias Krause2c3afa32011-01-17 07:45:54 +00002218 .feature_bits = FEATURE_WRSR_WREN,
2219 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002220 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002221 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002222 .block_erasers =
2223 {
2224 {
2225 .eraseblocks = { {4 * 1024, 256} },
2226 .block_erase = spi_block_erase_20,
2227 }, {
2228 .eraseblocks = { {32 * 1024, 32} },
2229 .block_erase = spi_block_erase_52,
2230 }, {
2231 .eraseblocks = { {64 * 1024, 16} },
2232 .block_erase = spi_block_erase_d8,
2233 }, {
2234 .eraseblocks = { {1024 * 1024, 1} },
2235 .block_erase = spi_block_erase_60,
2236 }, {
2237 .eraseblocks = { {1024 * 1024, 1} },
2238 .block_erase = spi_block_erase_c7,
2239 }
2240 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002241 .printlock = spi_prettyprint_status_register_at26df081a,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002242 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002243 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002244 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002245 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002246 },
2247
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002248 {
2249 .vendor = "Atmel",
2250 .name = "AT26DF161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002251 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002252 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002253 .model_id = ATMEL_AT26DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002254 .total_size = 2048,
2255 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002256 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +00002257 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002258 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002259 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002260 .block_erasers =
2261 {
2262 {
2263 .eraseblocks = { {4 * 1024, 512} },
2264 .block_erase = spi_block_erase_20,
2265 }, {
2266 .eraseblocks = { {32 * 1024, 64} },
2267 .block_erase = spi_block_erase_52,
2268 }, {
2269 .eraseblocks = { {64 * 1024, 32} },
2270 .block_erase = spi_block_erase_d8,
2271 }, {
2272 .eraseblocks = { {2 * 1024 * 1024, 1} },
2273 .block_erase = spi_block_erase_60,
2274 }, {
2275 .eraseblocks = { {2 * 1024 * 1024, 1} },
2276 .block_erase = spi_block_erase_c7,
2277 }
2278 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00002279 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002280 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002281 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002282 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002283 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002284 },
2285
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002286 {
2287 .vendor = "Atmel",
2288 .name = "AT26DF161A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002289 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002290 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002291 .model_id = ATMEL_AT26DF161A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002292 .total_size = 2048,
2293 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002294 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002295 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002296 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002297 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002298 .block_erasers =
2299 {
2300 {
2301 .eraseblocks = { {4 * 1024, 512} },
2302 .block_erase = spi_block_erase_20,
2303 }, {
2304 .eraseblocks = { {32 * 1024, 64} },
2305 .block_erase = spi_block_erase_52,
2306 }, {
2307 .eraseblocks = { {64 * 1024, 32} },
2308 .block_erase = spi_block_erase_d8,
2309 }, {
2310 .eraseblocks = { {2 * 1024 * 1024, 1} },
2311 .block_erase = spi_block_erase_60,
2312 }, {
2313 .eraseblocks = { {2 * 1024 * 1024, 1} },
2314 .block_erase = spi_block_erase_c7,
2315 }
2316 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002317 .printlock = spi_prettyprint_status_register_at26df081a,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002318 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002319 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002320 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002321 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002322 },
2323
2324 /*The AT26DF321 has the same ID as the AT25DF321. */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002325 /*{
2326 .vendor = "Atmel",
2327 .name = "AT26DF321",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002328 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002329 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002330 .model_id = ATMEL_AT26DF321,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002331 .total_size = 4096,
2332 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002333 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002334 .tested = TEST_UNTESTED,
2335 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002336 .probe_timing = TIMING_ZERO,
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002337 .printlock = spi_prettyprint_status_register_at26df081a,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002338 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002339 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002340 .read = spi_chip_read,
2341 },*/
FENG yu ningff692fb2008-12-08 18:15:10 +00002342
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002343 {
2344 .vendor = "Atmel",
2345 .name = "AT26F004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002346 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002347 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002348 .model_id = ATMEL_AT26F004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002349 .total_size = 512,
2350 .page_size = 256,
Stefan Tauner6455dff2014-05-26 00:36:24 +00002351 .tested = {.probe = NT, .read = NT, .erase = NT, .write = BAD },
Steven Zakulec3603a282012-05-02 20:07:57 +00002352 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002353 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002354 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002355 .block_erasers =
2356 {
2357 {
2358 .eraseblocks = { {4 * 1024, 128} },
2359 .block_erase = spi_block_erase_20,
2360 }, {
2361 .eraseblocks = { {32 * 1024, 16} },
2362 .block_erase = spi_block_erase_52,
2363 }, {
2364 .eraseblocks = { {64 * 1024, 8} },
2365 .block_erase = spi_block_erase_d8,
2366 }, {
2367 .eraseblocks = { {512 * 1024, 1} },
2368 .block_erase = spi_block_erase_60,
2369 }, {
2370 .eraseblocks = { {512 * 1024, 1} },
2371 .block_erase = spi_block_erase_c7,
2372 }
2373 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002374 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002375 .write = NULL /* Incompatible Page write */,
2376 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002377 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002378 },
2379
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002380 {
2381 .vendor = "Atmel",
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002382 .name = "AT29C512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002383 .bustype = BUS_PARALLEL,
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002384 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002385 .model_id = ATMEL_AT29C512,
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002386 .total_size = 64,
2387 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00002388 .feature_bits = FEATURE_LONG_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +00002389 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00002390 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00002391 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00002392 .block_erasers =
2393 {
2394 {
2395 .eraseblocks = { {64 * 1024, 1} },
2396 .block_erase = erase_chip_block_jedec,
2397 }
2398 },
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002399 .write = write_jedec,
2400 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002401 .voltage = {4500, 5500},
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002402 },
2403
2404 {
2405 .vendor = "Atmel",
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002406 .name = "AT29C010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002407 .bustype = BUS_PARALLEL,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002408 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002409 .model_id = ATMEL_AT29C010A,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002410 .total_size = 128,
2411 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00002412 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002413 .tested = TEST_OK_PRE,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002414 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00002415 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00002416 .block_erasers =
2417 {
2418 {
2419 .eraseblocks = { {128 * 1024, 1} },
2420 .block_erase = erase_chip_block_jedec,
2421 }
2422 },
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002423 .write = write_jedec, /* FIXME */
2424 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002425 .voltage = {4500, 5500},
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002426 },
2427
2428 {
2429 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002430 .name = "AT29C020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002431 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002432 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002433 .model_id = ATMEL_AT29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002434 .total_size = 256,
2435 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002436 .feature_bits = FEATURE_LONG_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00002437 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002438 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00002439 .probe_timing = 10000, /* 10ms */
Sean Nelson89187292009-12-23 12:02:55 +00002440 .block_erasers =
2441 {
2442 {
2443 .eraseblocks = { {256 * 1024, 1} },
2444 .block_erase = erase_chip_block_jedec,
2445 }
2446 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002447 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002448 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002449 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002450 },
2451
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002452 {
2453 .vendor = "Atmel",
2454 .name = "AT29C040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002455 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002456 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002457 .model_id = ATMEL_AT29C040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002458 .total_size = 512,
2459 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002460 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002461 .tested = TEST_UNTESTED,
2462 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00002463 .probe_timing = 10000, /* 10 ms */
Sean Nelson89187292009-12-23 12:02:55 +00002464 .block_erasers =
2465 {
2466 {
2467 .eraseblocks = { {512 * 1024, 1} },
2468 .block_erase = erase_chip_block_jedec,
2469 }
2470 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002471 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002472 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002473 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002474 },
2475
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002476 {
2477 .vendor = "Atmel",
2478 .name = "AT45CS1282",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002479 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002480 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002481 .model_id = ATMEL_AT45CS1282,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002482 .total_size = 16896 /* No power of two sizes */,
2483 .page_size = 1056 /* No power of two sizes */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002484 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner1dd5d3a2013-08-27 18:02:19 +00002485 /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */
2486 .feature_bits = FEATURE_OTP,
2487 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002488 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002489 .probe_timing = TIMING_ZERO,
Stefan Tauner1dd5d3a2013-08-27 18:02:19 +00002490 .block_erasers =
2491 {
2492 {
2493 .eraseblocks = {
2494 {8 * 1056, 1}, /* sector 0a: opcode 50h */
2495 {248 * 1056, 1}, /* sector 0b: opcode 7Ch */
2496 {256 * 1056, 63}, /* sectors 1 - 63: opcode 7Ch */
2497 },
2498 .block_erase = spi_erase_at45cs_sector,
2499 }
2500 },
2501 .printlock = spi_prettyprint_status_register_plain,
2502 .gran = write_gran_1056bytes,
2503 .write = spi_write_at45db,
2504 .read = spi_read_at45db,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002505 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002506 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002507
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002508 {
2509 .vendor = "Atmel",
2510 .name = "AT45DB011D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002511 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002512 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002513 .model_id = ATMEL_AT45DB011D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002514 .total_size = 128 /* or 132, determined from status register */,
2515 .page_size = 256 /* or 264, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002516 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002517 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2518 .feature_bits = FEATURE_OTP,
Stefan Tauner5c316f92015-02-08 21:57:52 +00002519 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002520 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002521 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002522 .block_erasers =
2523 {
2524 {
2525 .eraseblocks = { {256, 512} },
2526 .block_erase = spi_erase_at45db_page,
2527 }, {
2528 .eraseblocks = { {8 * 256, 512/8} },
2529 .block_erase = spi_erase_at45db_block,
2530 }, {
2531 .eraseblocks = {
2532 {8 * 256, 1},
2533 {120 * 256, 1},
2534 {128 * 256, 3},
2535 },
2536 .block_erase = spi_erase_at45db_sector
2537 }, {
2538 .eraseblocks = { {128 * 1024, 1} },
2539 .block_erase = spi_erase_at45db_chip,
2540 }
2541 },
2542 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2543 .printlock = spi_prettyprint_status_register_at45db,
2544 /* granularity will be set by the probing function. */
2545 .write = spi_write_at45db,
2546 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002547 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002548 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002549
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002550 {
2551 .vendor = "Atmel",
2552 .name = "AT45DB021D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002553 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002554 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002555 .model_id = ATMEL_AT45DB021D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002556 .total_size = 256 /* or 264, determined from status register */,
2557 .page_size = 256 /* or 264, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002558 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002559 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2560 .feature_bits = FEATURE_OTP,
Stefan Tauner6697f712014-08-06 15:09:15 +00002561 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002562 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002563 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002564 .block_erasers =
2565 {
2566 {
2567 .eraseblocks = { {256, 1024} },
2568 .block_erase = spi_erase_at45db_page,
2569 }, {
2570 .eraseblocks = { {8 * 256, 1024/8} },
2571 .block_erase = spi_erase_at45db_block,
2572 }, {
2573 .eraseblocks = {
2574 {8 * 256, 1},
2575 {120 * 256, 1},
2576 {128 * 256, 7},
2577 },
2578 .block_erase = spi_erase_at45db_sector
2579 }, {
2580 .eraseblocks = { {256 * 1024, 1} },
2581 .block_erase = spi_erase_at45db_chip,
2582 }
2583 },
2584 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2585 .printlock = spi_prettyprint_status_register_at45db,
2586 /* granularity will be set by the probing function. */
2587 .write = spi_write_at45db,
2588 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002589 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002590 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002591
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002592 {
2593 .vendor = "Atmel",
2594 .name = "AT45DB041D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002595 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002596 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002597 .model_id = ATMEL_AT45DB041D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002598 .total_size = 512 /* or 528, determined from status register */,
2599 .page_size = 256 /* or 264, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002600 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002601 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2602 .feature_bits = FEATURE_OTP,
2603 .tested = TEST_OK_PREW,
2604 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002605 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002606 .block_erasers =
2607 {
2608 {
2609 .eraseblocks = { {256, 2048} },
2610 .block_erase = spi_erase_at45db_page,
2611 }, {
2612 .eraseblocks = { {8 * 256, 2048/8} },
2613 .block_erase = spi_erase_at45db_block,
2614 }, {
2615 .eraseblocks = {
2616 {8 * 256, 1},
2617 {248 * 256, 1},
2618 {256 * 256, 7},
2619 },
2620 .block_erase = spi_erase_at45db_sector
2621 }, {
2622 .eraseblocks = { {512 * 1024, 1} },
2623 .block_erase = spi_erase_at45db_chip,
2624 }
2625 },
2626 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2627 .printlock = spi_prettyprint_status_register_at45db,
2628 /* granularity will be set by the probing function. */
2629 .write = spi_write_at45db,
2630 .read = spi_read_at45db, /* Fast read (0x0B) supported */
2631 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002632 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002633
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002634 {
2635 .vendor = "Atmel",
2636 .name = "AT45DB081D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002637 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002638 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002639 .model_id = ATMEL_AT45DB081D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002640 .total_size = 1024 /* or 1056, determined from status register */,
2641 .page_size = 256 /* or 264, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002642 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002643 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2644 .feature_bits = FEATURE_OTP,
2645 .tested = TEST_UNTESTED,
2646 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002647 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002648 .block_erasers =
2649 {
2650 {
2651 .eraseblocks = { {256, 4096} },
2652 .block_erase = spi_erase_at45db_page,
2653 }, {
2654 .eraseblocks = { {8 * 256, 4096/8} },
2655 .block_erase = spi_erase_at45db_block,
2656 }, {
2657 .eraseblocks = {
2658 {8 * 256, 1},
2659 {248 * 256, 1},
2660 {256 * 256, 15},
2661 },
2662 .block_erase = spi_erase_at45db_sector
2663 }, {
2664 .eraseblocks = { {1024 * 1024, 1} },
2665 .block_erase = spi_erase_at45db_chip,
2666 }
2667 },
2668 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2669 .printlock = spi_prettyprint_status_register_at45db,
2670 /* granularity will be set by the probing function. */
2671 .write = spi_write_at45db,
2672 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002673 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002674 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002675
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002676 {
2677 .vendor = "Atmel",
2678 .name = "AT45DB161D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002679 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002680 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002681 .model_id = ATMEL_AT45DB161D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002682 .total_size = 2048 /* or 2112, determined from status register */,
2683 .page_size = 512 /* or 528, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002684 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002685 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2686 .feature_bits = FEATURE_OTP,
2687 .tested = TEST_OK_PREW,
2688 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002689 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002690 .block_erasers =
2691 {
2692 {
2693 .eraseblocks = { {512, 4096} },
2694 .block_erase = spi_erase_at45db_page,
2695 }, {
2696 .eraseblocks = { {8 * 512, 4096/8} },
2697 .block_erase = spi_erase_at45db_block,
2698 }, {
2699 .eraseblocks = {
2700 {8 * 512, 1},
2701 {248 * 512, 1},
2702 {256 * 512, 15},
2703 },
2704 .block_erase = spi_erase_at45db_sector
2705 }, {
2706 .eraseblocks = { {2048 * 1024, 1} },
2707 .block_erase = spi_erase_at45db_chip,
2708 }
2709 },
2710 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2711 .printlock = spi_prettyprint_status_register_at45db,
2712 /* granularity will be set by the probing function. */
2713 .write = spi_write_at45db,
2714 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002715 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002716 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002717
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002718 {
2719 .vendor = "Atmel",
2720 .name = "AT45DB321C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002721 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002722 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002723 .model_id = ATMEL_AT45DB321C,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002724 .total_size = 4224 /* No power of two sizes */,
2725 .page_size = 528 /* No power of two sizes */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002726 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002727 /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */
2728 .feature_bits = FEATURE_OTP,
2729 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002730 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002731 .probe_timing = TIMING_ZERO,
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002732 .block_erasers =
2733 {
2734 {
2735 .eraseblocks = { {528, 8192} },
2736 .block_erase = spi_erase_at45db_page,
2737 }, {
2738 .eraseblocks = { {8 * 528, 8192/8} },
2739 .block_erase = spi_erase_at45db_block,
2740 }, /* Although the datasheets describes sectors (which can be write protected)
2741 * there seems to be no erase functions for them.
Stefan Tauner23e10b82016-01-23 16:16:49 +00002742 {
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002743 .eraseblocks = {
2744 {8 * 528, 1},
2745 {120 * 528, 1},
2746 {128 * 528, 63},
2747 },
2748 .block_erase = spi_erase_at45db_sector
2749 }, */ {
2750 .eraseblocks = { {4224 * 1024, 1} },
2751 .block_erase = spi_erase_at45db_chip,
2752 }
2753 },
2754 .printlock = spi_prettyprint_status_register_at45db, /* Bit 0 is undefined, no lockdown */
2755 .gran = write_gran_528bytes,
2756 .write = spi_write_at45db,
2757 .read = spi_read_at45db_e8, /* 3 address and 4 dummy bytes */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002758 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002759 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002760
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002761 {
2762 .vendor = "Atmel",
2763 .name = "AT45DB321D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002764 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002765 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002766 .model_id = ATMEL_AT45DB321D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002767 .total_size = 4096 /* or 4224, determined from status register */,
2768 .page_size = 512 /* or 528, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002769 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002770 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
Daniel Lenski65922a32012-02-15 23:40:23 +00002771 .feature_bits = FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +00002772 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002773 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002774 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002775 .block_erasers =
2776 {
2777 {
2778 .eraseblocks = { {512, 8192} },
2779 .block_erase = spi_erase_at45db_page,
2780 }, {
2781 .eraseblocks = { {8 * 512, 8192/8} },
2782 .block_erase = spi_erase_at45db_block,
2783 }, {
2784 .eraseblocks = {
2785 {8 * 512, 1},
2786 {120 * 512, 1},
2787 {128 * 512, 63},
2788 },
2789 .block_erase = spi_erase_at45db_sector
2790 }, {
2791 .eraseblocks = { {4096 * 1024, 1} },
2792 .block_erase = spi_erase_at45db_chip,
2793 }
2794 },
2795 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2796 .printlock = spi_prettyprint_status_register_at45db,
2797 /* granularity will be set by the probing function. */
2798 .write = spi_write_at45db,
2799 .read = spi_read_at45db, /* Fast read (0x0B) supported */
2800 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
2801 },
2802
2803 {
2804 .vendor = "Atmel",
2805 .name = "AT45DB321E",
2806 .bustype = BUS_SPI,
2807 .manufacture_id = ATMEL_ID,
2808 .model_id = ATMEL_AT45DB321C,
2809 .total_size = 4096 /* or 4224, determined from status register */,
2810 .page_size = 512 /* or 528, determined from status register */,
2811 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
2812 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2813 .feature_bits = FEATURE_OTP,
2814 .tested = TEST_UNTESTED,
2815 .probe = probe_spi_at45db,
2816 .probe_timing = TIMING_ZERO,
2817 .block_erasers =
2818 {
2819 {
2820 .eraseblocks = { {512, 8192} },
2821 .block_erase = spi_erase_at45db_page,
2822 }, {
2823 .eraseblocks = { {8 * 512, 8192/8} },
2824 .block_erase = spi_erase_at45db_block,
2825 }, {
2826 .eraseblocks = {
2827 {8 * 512, 1},
2828 {120 * 512, 1},
2829 {128 * 512, 63},
2830 },
2831 .block_erase = spi_erase_at45db_sector
2832 }, {
2833 .eraseblocks = { {4096 * 1024, 1} },
2834 .block_erase = spi_erase_at45db_chip,
2835 }
2836 },
2837 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2838 .printlock = spi_prettyprint_status_register_at45db, /* has a 2nd status register */
2839 /* granularity will be set by the probing function. */
2840 .write = spi_write_at45db,
2841 .read = spi_read_at45db, /* Fast read (0x0B) supported */
2842 .voltage = {2500, 3600}, /* 2.3-3.6V & 2.5-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002843 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002844
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002845 {
2846 .vendor = "Atmel",
2847 .name = "AT45DB642D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002848 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002849 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002850 .model_id = ATMEL_AT45DB642D,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002851 .total_size = 8192 /* or 8448, determined from status register */,
2852 .page_size = 1024 /* or 1056, determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002853 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002854 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2855 .feature_bits = FEATURE_OTP,
Stefan Tauner5c316f92015-02-08 21:57:52 +00002856 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002857 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002858 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002859 .block_erasers =
2860 {
2861 {
2862 .eraseblocks = { {1024, 8192} },
2863 .block_erase = spi_erase_at45db_page,
2864 }, {
2865 .eraseblocks = { {8 * 1024, 8192/8} },
2866 .block_erase = spi_erase_at45db_block,
2867 }, {
2868 .eraseblocks = {
2869 {8 * 1024, 1},
2870 {248 * 1024, 1},
2871 {256 * 1024, 31},
2872 },
2873 .block_erase = spi_erase_at45db_sector
2874 }, {
2875 .eraseblocks = { {8192 * 1024, 1} },
2876 .block_erase = spi_erase_at45db_chip,
2877 }
2878 },
2879 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
2880 .printlock = spi_prettyprint_status_register_at45db,
2881 /* granularity will be set by the probing function. */
2882 .write = spi_write_at45db,
2883 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002884 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002885 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002886
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002887 {
2888 .vendor = "Atmel",
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002889 .name = "AT49BV512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002890 .bustype = BUS_PARALLEL,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002891 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002892 .model_id = ATMEL_AT49BV512,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002893 .total_size = 64,
2894 .page_size = 64,
Sean Nelson35727f72010-01-28 23:55:12 +00002895 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +00002896 .tested = TEST_OK_PREW,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002897 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002898 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002899 .block_erasers =
2900 {
2901 {
2902 .eraseblocks = { {64 * 1024, 1} },
2903 .block_erase = erase_chip_block_jedec,
2904 }
2905 },
Sean Nelson35727f72010-01-28 23:55:12 +00002906 .write = write_jedec_1,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002907 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002908 .voltage = {2700, 3600},
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002909 },
2910
2911 {
2912 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002913 .name = "AT49F002(N)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002914 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002915 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002916 .model_id = ATMEL_AT49F002N,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002917 .total_size = 256,
2918 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002919 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002920 .tested = TEST_UNTESTED,
2921 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002922 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002923 .block_erasers =
2924 {
2925 {
2926 .eraseblocks = {
2927 {16 * 1024, 1},
2928 {8 * 1024, 2},
2929 {96 * 1024, 1},
2930 {128 * 1024, 1},
2931 },
2932 .block_erase = erase_sector_jedec,
2933 }, {
2934 .eraseblocks = { {256 * 1024, 1} },
2935 .block_erase = erase_chip_block_jedec,
2936 }
2937 },
Sean Nelson35727f72010-01-28 23:55:12 +00002938 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002939 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002940 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002941 },
2942
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002943 {
2944 .vendor = "Atmel",
2945 .name = "AT49F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002946 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002947 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002948 .model_id = ATMEL_AT49F002NT,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002949 .total_size = 256,
2950 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002951 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002952 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002953 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002954 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002955 .block_erasers =
2956 {
2957 {
2958 .eraseblocks = {
2959 {128 * 1024, 1},
2960 {96 * 1024, 1},
2961 {8 * 1024, 2},
2962 {16 * 1024, 1},
2963 },
2964 .block_erase = erase_sector_jedec,
2965 }, {
2966 .eraseblocks = { {256 * 1024, 1} },
2967 .block_erase = erase_chip_block_jedec,
2968 }
2969 },
Sean Nelson35727f72010-01-28 23:55:12 +00002970 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002971 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002972 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002973 },
2974
Daniel Lenskidf90d3a2010-07-22 11:44:38 +00002975 {
Uwe Hermannc74e9772011-09-08 19:55:18 +00002976 .vendor = "Atmel",
Andrew Morgan8dd97f92012-08-13 23:43:46 +00002977 .name = "AT49(H)F010",
2978 .bustype = BUS_PARALLEL,
2979 .manufacture_id = ATMEL_ID,
2980 .model_id = ATMEL_AT49F010,
2981 .total_size = 128,
2982 .page_size = 0, /* unused */
2983 .feature_bits = FEATURE_EITHER_RESET,
2984 .tested = TEST_OK_PREW,
2985 .probe = probe_jedec,
2986 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2987 .block_erasers =
2988 {
2989 {
2990 .eraseblocks = { {128 * 1024, 1} },
2991 .block_erase = erase_chip_block_jedec,
2992 }
2993 },
2994 .printlock = printlock_at49f,
2995 .write = write_jedec_1,
2996 .read = read_memmapped,
2997 .voltage = {4500, 5500},
2998 },
2999
3000 {
3001 .vendor = "Atmel",
David Borgf5a30f62012-04-15 13:16:32 +00003002 .name = "AT49F020",
3003 .bustype = BUS_PARALLEL,
3004 .manufacture_id = ATMEL_ID,
3005 .model_id = ATMEL_AT49F020,
3006 .total_size = 256,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00003007 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00003008 .feature_bits = FEATURE_EITHER_RESET,
3009 .tested = TEST_OK_PRE,
3010 .probe = probe_jedec,
3011 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3012 .block_erasers =
3013 {
3014 {
3015 .eraseblocks = { {256 * 1024, 1} },
3016 .block_erase = erase_chip_block_jedec,
3017 }
3018 /* Chip features an optional permanent write protection
3019 * of the first 8 kB. The erase function is the same as
3020 * above, but 00000H to 01FFFH will not be erased.
3021 * FIXME: add another eraser when partial erasers are
3022 * supported.
3023 */
3024 },
3025 .printlock = printlock_at49f,
3026 .write = write_jedec_1,
3027 .read = read_memmapped,
3028 .voltage = {4500, 5500},
3029 },
3030
3031 {
3032 .vendor = "Atmel",
3033 .name = "AT49F040",
3034 .bustype = BUS_PARALLEL,
3035 .manufacture_id = ATMEL_ID,
3036 .model_id = ATMEL_AT49F040,
3037 .total_size = 512,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00003038 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00003039 .feature_bits = FEATURE_EITHER_RESET,
3040 .tested = TEST_UNTESTED,
3041 .probe = probe_jedec,
3042 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3043 .block_erasers =
3044 {
3045 {
3046 .eraseblocks = { {512 * 1024, 1} },
3047 .block_erase = erase_chip_block_jedec,
3048 }
3049 /* Chip features an optional permanent write protection
3050 * of the first 16 kB. The erase function is the same as
3051 * above, but 00000H to 03FFFH will not be erased.
3052 * FIXME: add another eraser when partial erasers are
3053 * supported.
3054 */
3055 },
3056 .printlock = printlock_at49f,
3057 .write = write_jedec_1,
3058 .read = read_memmapped,
3059 .voltage = {4500, 5500},
3060 },
3061
3062 {
3063 .vendor = "Atmel",
Andrew Morgan8dd97f92012-08-13 23:43:46 +00003064 .name = "AT49F080",
3065 .bustype = BUS_PARALLEL,
3066 .manufacture_id = ATMEL_ID,
3067 .model_id = ATMEL_AT49F080,
3068 .total_size = 1024,
3069 .page_size = 0, /* unused */
3070 .feature_bits = FEATURE_EITHER_RESET,
3071 .tested = TEST_UNTESTED,
3072 .probe = probe_jedec,
3073 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3074 .block_erasers =
3075 {
3076 {
3077 .eraseblocks = { {1024 * 1024, 1} },
3078 .block_erase = erase_chip_block_jedec,
3079 }
3080 /* Chip features an optional permanent write protection
3081 * of the first 16 kB. The erase function is the same as
3082 * above, but 00000H to 03FFFH will not be erased.
3083 * FIXME: add another eraser when partial erasers are
3084 * supported.
3085 */
3086 },
3087 .printlock = printlock_at49f,
3088 .write = write_jedec_1,
3089 .read = read_memmapped,
3090 .voltage = {4500, 5500},
3091 },
3092
3093 {
3094 /* 'top' version of AT49F080. equal in all aspects but the boot block address */
3095 .vendor = "Atmel",
3096 .name = "AT49F080T",
3097 .bustype = BUS_PARALLEL,
3098 .manufacture_id = ATMEL_ID,
3099 .model_id = ATMEL_AT49F080T,
3100 .total_size = 1024,
3101 .page_size = 0, /* unused */
3102 .feature_bits = FEATURE_EITHER_RESET,
3103 .tested = TEST_UNTESTED,
3104 .probe = probe_jedec,
3105 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3106 .block_erasers =
3107 {
3108 {
3109 .eraseblocks = { {1024 * 1024, 1} },
3110 .block_erase = erase_chip_block_jedec,
3111 }
3112 /* Chip features an optional permanent write protection
3113 * of the first 16 kB. The erase function is the same as
3114 * above, but FC000H to FFFFFH will not be erased.
3115 * FIXME: add another eraser when partial erasers are
3116 * supported.
3117 */
3118 },
3119 .printlock = printlock_at49f,
3120 .write = write_jedec_1,
3121 .read = read_memmapped,
3122 .voltage = {4500, 5500},
3123 },
3124
3125 {
3126 .vendor = "Atmel",
Uwe Hermannc74e9772011-09-08 19:55:18 +00003127 .name = "AT49LH002",
3128 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
3129 .manufacture_id = ATMEL_ID,
3130 .model_id = ATMEL_AT49LH002,
3131 .total_size = 256,
3132 .page_size = 0, /* unused */
Stefan Tauner7de93932014-08-03 13:05:45 +00003133 .feature_bits = FEATURE_REGISTERMAP,
Uwe Hermannc74e9772011-09-08 19:55:18 +00003134 .tested = TEST_UNTESTED,
Stefan Tauner7de93932014-08-03 13:05:45 +00003135 .probe = probe_82802ab,
3136 .probe_timing = TIMING_ZERO,
Uwe Hermannc74e9772011-09-08 19:55:18 +00003137 .block_erasers =
3138 {
3139 {
3140 .eraseblocks = {
3141 {64 * 1024, 3},
3142 {32 * 1024, 1},
3143 {8 * 1024, 2},
3144 {16 * 1024, 1},
3145 },
Stefan Tauner7de93932014-08-03 13:05:45 +00003146 .block_erase = NULL, /* TODO: Implement. */
Uwe Hermannc74e9772011-09-08 19:55:18 +00003147 }, {
3148 .eraseblocks = {
3149 {64 * 1024, 4},
3150 },
Stefan Tauner7de93932014-08-03 13:05:45 +00003151 .block_erase = erase_block_82802ab,
3152 },
3153 },
3154 .printlock = printlock_regspace2_block_eraser_0,
3155 .unlock = unlock_regspace2_block_eraser_0,
3156 .write = write_82802ab,
3157 .read = read_memmapped,
3158 .voltage = {3000, 3600},
3159 },
3160
3161 {
3162 .vendor = "Atmel",
3163 .name = "AT49LH00B4",
3164 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
3165 .manufacture_id = ATMEL_ID,
3166 .model_id = ATMEL_AT49LH00B4,
3167 .total_size = 512,
3168 .page_size = 0, /* unused */
3169 .feature_bits = FEATURE_REGISTERMAP,
3170 .tested = TEST_UNTESTED,
3171 .probe = probe_82802ab,
3172 .probe_timing = TIMING_ZERO,
3173 .block_erasers =
3174 {
3175 {
3176 .eraseblocks = {
3177 {8 * 1024, 2},
3178 {16 * 1024, 1},
3179 {32 * 1024, 1},
3180 {64 * 1024, 7},
3181 },
3182 .block_erase = NULL, /* TODO: Implement. */
3183 }, {
3184 .eraseblocks = {
3185 {64 * 1024, 8},
3186 },
3187 .block_erase = erase_block_82802ab,
3188 },
3189 },
3190 .printlock = printlock_regspace2_block_eraser_0,
3191 .unlock = unlock_regspace2_block_eraser_0,
3192 .write = write_82802ab,
3193 .read = read_memmapped,
3194 .voltage = {3000, 3600},
3195 },
3196
3197 {
3198 .vendor = "Atmel",
3199 .name = "AT49LH004",
3200 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
3201 .manufacture_id = ATMEL_ID,
3202 .model_id = ATMEL_AT49LH004,
3203 .total_size = 512,
3204 .page_size = 0, /* unused */
3205 .feature_bits = FEATURE_REGISTERMAP,
3206 .tested = TEST_UNTESTED,
3207 .probe = probe_82802ab,
3208 .probe_timing = TIMING_ZERO,
3209 .block_erasers =
3210 {
3211 {
3212 .eraseblocks = {
3213 {64 * 1024, 7},
3214 {32 * 1024, 1},
3215 {8 * 1024, 2},
3216 {16 * 1024, 1},
3217 },
3218 .block_erase = erase_block_82802ab,
3219 }, {
3220 .eraseblocks = {
3221 {64 * 1024, 8},
3222 },
Uwe Hermannc74e9772011-09-08 19:55:18 +00003223 .block_erase = NULL, /* TODO: Implement. */
3224 },
3225 },
Stefan Tauner7de93932014-08-03 13:05:45 +00003226 .printlock = printlock_regspace2_block_eraser_0,
3227 .unlock = unlock_regspace2_block_eraser_0,
Uwe Hermannc74e9772011-09-08 19:55:18 +00003228 .write = write_82802ab,
3229 .read = read_memmapped,
3230 .voltage = {3000, 3600},
3231 },
3232
3233 {
Andrew Morganca081462011-09-13 22:05:44 +00003234 .vendor = "Catalyst",
3235 .name = "CAT28F512",
3236 .bustype = BUS_PARALLEL,
3237 .manufacture_id = CATALYST_ID,
3238 .model_id = CATALYST_CAT28F512,
3239 .total_size = 64,
3240 .page_size = 0, /* unused */
3241 .feature_bits = 0,
Stefan Tauner6697f712014-08-06 15:09:15 +00003242 .tested = {.probe = OK, .read = OK, .erase = BAD, .write = BAD },
Andrew Morganca081462011-09-13 22:05:44 +00003243 .probe = probe_jedec, /* FIXME! */
3244 .probe_timing = TIMING_ZERO,
3245 .block_erasers =
3246 {
3247 {
3248 .eraseblocks = { {64 * 1024, 1} },
3249 .block_erase = NULL, /* TODO */
3250 },
3251 },
3252 .write = NULL, /* TODO */
3253 .read = read_memmapped,
3254 .voltage = {4500, 5500},
3255 },
3256
3257 {
Joshua Roysf1324e02010-09-16 00:51:51 +00003258 .vendor = "Bright",
3259 .name = "BM29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003260 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00003261 .manufacture_id = BRIGHT_ID,
3262 .model_id = BRIGHT_BM29F040,
3263 .total_size = 512,
3264 .page_size = 64 * 1024,
3265 .feature_bits = FEATURE_EITHER_RESET,
3266 .tested = TEST_OK_PR,
3267 .probe = probe_jedec,
3268 .probe_timing = TIMING_ZERO,
3269 .block_erasers =
3270 {
3271 {
3272 .eraseblocks = { {64 * 1024, 8} },
3273 .block_erase = erase_sector_jedec,
3274 }, {
3275 .eraseblocks = { {512 * 1024, 1} },
3276 .block_erase = erase_chip_block_jedec,
3277 },
3278 },
3279 .write = write_jedec_1,
3280 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003281 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00003282 },
3283
3284 {
Stefan Tauner352e50b2013-02-22 15:58:45 +00003285 .vendor = "ESMT",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003286 .name = "F49B002UA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003287 .bustype = BUS_PARALLEL,
Stefan Tauner352e50b2013-02-22 15:58:45 +00003288 .manufacture_id = ESMT_ID,
3289 .model_id = ESMT_F49B002UA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003290 .total_size = 256,
3291 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00003292 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003293 .tested = TEST_UNTESTED,
3294 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003295 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00003296 .block_erasers =
3297 {
3298 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00003299 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00003300 {128 * 1024, 1},
3301 {96 * 1024, 1},
3302 {8 * 1024, 2},
3303 {16 * 1024, 1},
3304 },
3305 .block_erase = erase_sector_jedec,
3306 }, {
3307 .eraseblocks = { {256 * 1024, 1} },
3308 .block_erase = erase_chip_block_jedec,
3309 }
3310 },
Sean Nelson35727f72010-01-28 23:55:12 +00003311 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003312 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003313 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003314 },
3315
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003316 {
Stefan Tauner352e50b2013-02-22 15:58:45 +00003317 .vendor = "ESMT",
Michael Karcher80a59ea2010-06-19 22:06:35 +00003318 .name = "F25L008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003319 .bustype = BUS_SPI,
Stefan Tauner352e50b2013-02-22 15:58:45 +00003320 .manufacture_id = ESMT_ID,
3321 .model_id = ESMT_F25L008A,
Michael Karcher80a59ea2010-06-19 22:06:35 +00003322 .total_size = 1024,
3323 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003324 .feature_bits = FEATURE_WRSR_EITHER,
Stefan Taunereb582572012-09-21 12:52:50 +00003325 .tested = TEST_OK_PREW,
Michael Karcher80a59ea2010-06-19 22:06:35 +00003326 .probe = probe_spi_rdid,
3327 .probe_timing = TIMING_ZERO,
3328 .block_erasers =
3329 {
3330 {
3331 .eraseblocks = { {4 * 1024, 256} },
3332 .block_erase = spi_block_erase_20,
3333 }, {
3334 .eraseblocks = { {64 * 1024, 16} },
3335 .block_erase = spi_block_erase_d8,
3336 }, {
3337 .eraseblocks = { {1024 * 1024, 1} },
3338 .block_erase = spi_block_erase_60,
3339 }, {
3340 .eraseblocks = { {1024 * 1024, 1} },
3341 .block_erase = spi_block_erase_c7,
3342 }
3343 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003344 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003345 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger9a795d82010-07-14 16:19:05 +00003346 .write = spi_chip_write_1,
Michael Karcher4497e862010-07-10 19:34:15 +00003347 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003348 .voltage = {2700, 3600},
Michael Karcher80a59ea2010-06-19 22:06:35 +00003349 },
3350
3351 {
Stefan Tauner85f09f72014-05-27 21:27:14 +00003352 .vendor = "ESMT",
3353 .name = "F25L32PA",
3354 .bustype = BUS_SPI,
3355 .manufacture_id = ESMT_ID,
3356 .model_id = ESMT_F25L32PA,
3357 .total_size = 4096,
3358 .page_size = 256,
3359 .feature_bits = FEATURE_WRSR_EITHER | FEATURE_OTP,
3360 .tested = TEST_UNTESTED,
3361 .probe = probe_spi_rdid,
3362 .probe_timing = TIMING_ZERO,
3363 .block_erasers =
3364 {
3365 {
3366 .eraseblocks = { {4 * 1024, 1024} },
3367 .block_erase = spi_block_erase_20,
3368 }, {
3369 .eraseblocks = { {64 * 1024, 64} },
3370 .block_erase = spi_block_erase_d8,
3371 }, {
3372 .eraseblocks = { {4 * 1024 * 1024, 1} },
3373 .block_erase = spi_block_erase_60,
3374 }, {
3375 .eraseblocks = { {4 * 1024 * 1024, 1} },
3376 .block_erase = spi_block_erase_c7,
3377 }
3378 },
3379 .printlock = spi_prettyprint_status_register_bp2_bpl,
3380 .unlock = spi_disable_blockprotect,
3381 .write = spi_chip_write_256,
3382 .read = spi_chip_read,
3383 .voltage = {2700, 3600},
3384 },
3385
3386 {
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003387 .vendor = "Eon",
3388 .name = "EN25B05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003389 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003390 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003391 .model_id = EON_EN25B05,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003392 .total_size = 64,
3393 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003394 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003395 .tested = TEST_UNTESTED,
3396 .probe = probe_spi_rdid,
3397 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003398 .block_erasers =
3399 {
3400 {
3401 .eraseblocks = {
3402 {4 * 1024, 2},
3403 {8 * 1024, 1},
3404 {16 * 1024, 1},
3405 {32 * 1024, 1},
3406 },
3407 .block_erase = spi_block_erase_d8,
3408 }, {
3409 .eraseblocks = { {64 * 1024, 1} },
3410 .block_erase = spi_block_erase_c7,
3411 }
3412 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003413 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003414 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003415 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003416 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003417 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003418 },
3419
3420 {
3421 .vendor = "Eon",
3422 .name = "EN25B05T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003423 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003424 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003425 .model_id = EON_EN25B05,
Sean Nelson54596372010-01-09 05:30:14 +00003426 .total_size = 64,
3427 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003428 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003429 .tested = TEST_UNTESTED,
3430 .probe = probe_spi_rdid,
3431 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003432 .block_erasers =
3433 {
3434 {
3435 .eraseblocks = {
3436 {32 * 1024, 1},
3437 {16 * 1024, 1},
3438 {8 * 1024, 1},
3439 {4 * 1024, 2},
3440 },
3441 .block_erase = spi_block_erase_d8,
3442 }, {
3443 .eraseblocks = { {64 * 1024, 1} },
3444 .block_erase = spi_block_erase_c7,
3445 }
3446 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003447 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003448 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003449 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003450 .read = spi_chip_read, /* Fast read (0x0B) supported */
3451 .voltage = {2700, 3600},
3452 },
3453
3454 {
3455 .vendor = "Eon",
3456 .name = "EN25P05",
3457 .bustype = BUS_SPI,
3458 .manufacture_id = EON_ID_NOPREFIX,
3459 .model_id = EON_EN25B05,
3460 .total_size = 64,
3461 .page_size = 256,
3462 .feature_bits = FEATURE_WRSR_WREN,
3463 .tested = TEST_UNTESTED,
3464 .probe = probe_spi_rdid,
3465 .probe_timing = TIMING_ZERO,
3466 .block_erasers =
3467 {
3468 {
3469 .eraseblocks = {
3470 {32 * 1024, 2} },
3471 .block_erase = spi_block_erase_d8,
3472 }, {
3473 .eraseblocks = { {64 * 1024, 1} },
3474 .block_erase = spi_block_erase_c7,
3475 }
3476 },
3477 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
3478 .unlock = spi_disable_blockprotect,
3479 .write = spi_chip_write_256,
3480 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003481 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003482 },
3483
3484 {
3485 .vendor = "Eon",
3486 .name = "EN25B10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003487 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003488 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003489 .model_id = EON_EN25B10,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003490 .total_size = 128,
3491 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003492 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003493 .tested = TEST_UNTESTED,
3494 .probe = probe_spi_rdid,
3495 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003496 .block_erasers =
3497 {
3498 {
3499 .eraseblocks = {
3500 {4 * 1024, 2},
3501 {8 * 1024, 1},
3502 {16 * 1024, 1},
3503 {32 * 1024, 3},
3504 },
3505 .block_erase = spi_block_erase_d8,
3506 }, {
3507 .eraseblocks = { {128 * 1024, 1} },
3508 .block_erase = spi_block_erase_c7,
3509 }
3510 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003511 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003512 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003513 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003514 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003515 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003516 },
3517
3518 {
3519 .vendor = "Eon",
3520 .name = "EN25B10T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003521 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003522 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003523 .model_id = EON_EN25B10,
Sean Nelson54596372010-01-09 05:30:14 +00003524 .total_size = 128,
3525 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003526 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00003527 .tested = TEST_OK_PREW,
Sean Nelson54596372010-01-09 05:30:14 +00003528 .probe = probe_spi_rdid,
3529 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003530 .block_erasers =
3531 {
3532 {
3533 .eraseblocks = {
3534 {32 * 1024, 3},
3535 {16 * 1024, 1},
3536 {8 * 1024, 1},
3537 {4 * 1024, 2},
3538 },
3539 .block_erase = spi_block_erase_d8,
3540 }, {
3541 .eraseblocks = { {128 * 1024, 1} },
3542 .block_erase = spi_block_erase_c7,
3543 }
3544 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003545 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003546 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003547 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003548 .read = spi_chip_read, /* Fast read (0x0B) supported */
3549 .voltage = {2700, 3600},
3550 },
3551
3552 {
3553 .vendor = "Eon",
3554 .name = "EN25P10",
3555 .bustype = BUS_SPI,
3556 .manufacture_id = EON_ID_NOPREFIX,
3557 .model_id = EON_EN25B10,
3558 .total_size = 128,
3559 .page_size = 256,
3560 .feature_bits = FEATURE_WRSR_WREN,
3561 .tested = TEST_UNTESTED,
3562 .probe = probe_spi_rdid,
3563 .probe_timing = TIMING_ZERO,
3564 .block_erasers =
3565 {
3566 {
3567 .eraseblocks = { {32 * 1024, 4} },
3568 .block_erase = spi_block_erase_d8,
3569 }, {
3570 .eraseblocks = { {128 * 1024, 1} },
3571 .block_erase = spi_block_erase_c7,
3572 }
3573 },
3574 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
3575 .unlock = spi_disable_blockprotect,
3576 .write = spi_chip_write_256,
3577 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003578 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003579 },
3580
3581 {
3582 .vendor = "Eon",
3583 .name = "EN25B20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003584 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003585 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003586 .model_id = EON_EN25B20,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003587 .total_size = 256,
3588 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003589 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003590 .tested = TEST_UNTESTED,
3591 .probe = probe_spi_rdid,
3592 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003593 .block_erasers =
3594 {
3595 {
3596 .eraseblocks = {
3597 {4 * 1024, 2},
3598 {8 * 1024, 1},
3599 {16 * 1024, 1},
3600 {32 * 1024, 1},
3601 {64 * 1024, 3}
3602 },
3603 .block_erase = spi_block_erase_d8,
3604 }, {
3605 .eraseblocks = { {256 * 1024, 1} },
3606 .block_erase = spi_block_erase_c7,
3607 }
3608 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003609 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003610 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003611 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003612 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003613 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003614 },
3615
3616 {
3617 .vendor = "Eon",
3618 .name = "EN25B20T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003619 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003620 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003621 .model_id = EON_EN25B20,
Sean Nelson54596372010-01-09 05:30:14 +00003622 .total_size = 256,
3623 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003624 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003625 .tested = TEST_UNTESTED,
3626 .probe = probe_spi_rdid,
3627 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003628 .block_erasers =
3629 {
3630 {
3631 .eraseblocks = {
3632 {64 * 1024, 3},
3633 {32 * 1024, 1},
3634 {16 * 1024, 1},
3635 {8 * 1024, 1},
3636 {4 * 1024, 2},
3637 },
3638 .block_erase = spi_block_erase_d8,
3639 }, {
3640 .eraseblocks = { {256 * 1024, 1} },
3641 .block_erase = spi_block_erase_c7,
3642 }
3643 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003644 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003645 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003646 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003647 .read = spi_chip_read, /* Fast read (0x0B) supported */
3648 .voltage = {2700, 3600},
3649 },
3650
3651 {
3652 .vendor = "Eon",
3653 .name = "EN25P20",
3654 .bustype = BUS_SPI,
3655 .manufacture_id = EON_ID_NOPREFIX,
3656 .model_id = EON_EN25B20,
3657 .total_size = 256,
3658 .page_size = 256,
3659 .feature_bits = FEATURE_WRSR_WREN,
3660 .tested = TEST_UNTESTED,
3661 .probe = probe_spi_rdid,
3662 .probe_timing = TIMING_ZERO,
3663 .block_erasers =
3664 {
3665 {
3666 .eraseblocks = { {64 * 1024, 4} },
3667 .block_erase = spi_block_erase_d8,
3668 }, {
3669 .eraseblocks = { {256 * 1024, 1} },
3670 .block_erase = spi_block_erase_c7,
3671 }
3672 },
3673 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
3674 .unlock = spi_disable_blockprotect,
3675 .write = spi_chip_write_256,
3676 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003677 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003678 },
3679
3680 {
3681 .vendor = "Eon",
3682 .name = "EN25B40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003683 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003684 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003685 .model_id = EON_EN25B40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003686 .total_size = 512,
3687 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003688 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003689 .tested = TEST_UNTESTED,
3690 .probe = probe_spi_rdid,
3691 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003692 .block_erasers =
3693 {
3694 {
3695 .eraseblocks = {
3696 {4 * 1024, 2},
3697 {8 * 1024, 1},
3698 {16 * 1024, 1},
3699 {32 * 1024, 1},
3700 {64 * 1024, 7}
3701 },
3702 .block_erase = spi_block_erase_d8,
3703 }, {
3704 .eraseblocks = { {512 * 1024, 1} },
3705 .block_erase = spi_block_erase_c7,
3706 }
3707 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003708 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003709 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003710 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003711 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003712 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003713 },
3714
3715 {
3716 .vendor = "Eon",
3717 .name = "EN25B40T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003718 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003719 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003720 .model_id = EON_EN25B40,
Sean Nelson54596372010-01-09 05:30:14 +00003721 .total_size = 512,
3722 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003723 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003724 .tested = TEST_UNTESTED,
3725 .probe = probe_spi_rdid,
3726 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003727 .block_erasers =
3728 {
3729 {
3730 .eraseblocks = {
3731 {64 * 1024, 7},
3732 {32 * 1024, 1},
3733 {16 * 1024, 1},
3734 {8 * 1024, 1},
3735 {4 * 1024, 2},
3736 },
3737 .block_erase = spi_block_erase_d8,
3738 }, {
3739 .eraseblocks = { {512 * 1024, 1} },
3740 .block_erase = spi_block_erase_c7,
3741 }
3742 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003743 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003744 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003745 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003746 .read = spi_chip_read, /* Fast read (0x0B) supported */
3747 .voltage = {2700, 3600},
3748 },
3749
3750 {
3751 .vendor = "Eon",
3752 .name = "EN25P40",
3753 .bustype = BUS_SPI,
3754 .manufacture_id = EON_ID_NOPREFIX,
3755 .model_id = EON_EN25B40,
3756 .total_size = 512,
3757 .page_size = 256,
3758 .feature_bits = FEATURE_WRSR_WREN,
3759 .tested = TEST_UNTESTED,
3760 .probe = probe_spi_rdid,
3761 .probe_timing = TIMING_ZERO,
3762 .block_erasers =
3763 {
3764 {
3765 .eraseblocks = { {64 * 1024, 8} },
3766 .block_erase = spi_block_erase_d8,
3767 }, {
3768 .eraseblocks = { {512 * 1024, 1} },
3769 .block_erase = spi_block_erase_c7,
3770 }
3771 },
3772 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
3773 .unlock = spi_disable_blockprotect,
3774 .write = spi_chip_write_256,
3775 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003776 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003777 },
3778
3779 {
3780 .vendor = "Eon",
3781 .name = "EN25B80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003782 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003783 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003784 .model_id = EON_EN25B80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003785 .total_size = 1024,
3786 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003787 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003788 .tested = TEST_UNTESTED,
3789 .probe = probe_spi_rdid,
3790 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003791 .block_erasers =
3792 {
3793 {
3794 .eraseblocks = {
3795 {4 * 1024, 2},
3796 {8 * 1024, 1},
3797 {16 * 1024, 1},
3798 {32 * 1024, 1},
3799 {64 * 1024, 15}
3800 },
3801 .block_erase = spi_block_erase_d8,
3802 }, {
3803 .eraseblocks = { {1024 * 1024, 1} },
3804 .block_erase = spi_block_erase_c7,
3805 }
3806 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003807 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003808 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003809 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003810 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003811 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003812 },
3813
3814 {
3815 .vendor = "Eon",
3816 .name = "EN25B80T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003817 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003818 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003819 .model_id = EON_EN25B80,
Sean Nelson54596372010-01-09 05:30:14 +00003820 .total_size = 1024,
3821 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003822 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003823 .tested = TEST_UNTESTED,
3824 .probe = probe_spi_rdid,
3825 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003826 .block_erasers =
3827 {
3828 {
3829 .eraseblocks = {
3830 {64 * 1024, 15},
3831 {32 * 1024, 1},
3832 {16 * 1024, 1},
3833 {8 * 1024, 1},
3834 {4 * 1024, 2},
3835 },
3836 .block_erase = spi_block_erase_d8,
3837 }, {
3838 .eraseblocks = { {1024 * 1024, 1} },
3839 .block_erase = spi_block_erase_c7,
3840 }
3841 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003842 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003843 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003844 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003845 .read = spi_chip_read, /* Fast read (0x0B) supported */
3846 .voltage = {2700, 3600},
3847 },
3848
3849 {
3850 .vendor = "Eon",
3851 .name = "EN25P80",
3852 .bustype = BUS_SPI,
3853 .manufacture_id = EON_ID_NOPREFIX,
3854 .model_id = EON_EN25B80,
3855 .total_size = 1024,
3856 .page_size = 256,
3857 .feature_bits = FEATURE_WRSR_WREN,
3858 .tested = TEST_UNTESTED,
3859 .probe = probe_spi_rdid,
3860 .probe_timing = TIMING_ZERO,
3861 .block_erasers =
3862 {
3863 {
3864 .eraseblocks = { {64 * 1024, 16} },
3865 .block_erase = spi_block_erase_d8,
3866 }, {
3867 .eraseblocks = { {1024 * 1024, 1} },
3868 .block_erase = spi_block_erase_c7,
3869 }
3870 },
3871 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
3872 .unlock = spi_disable_blockprotect,
3873 .write = spi_chip_write_256,
3874 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003875 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003876 },
3877
3878 {
3879 .vendor = "Eon",
3880 .name = "EN25B16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003881 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003882 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003883 .model_id = EON_EN25B16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003884 .total_size = 2048,
3885 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003886 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003887 .tested = TEST_UNTESTED,
3888 .probe = probe_spi_rdid,
3889 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003890 .block_erasers =
3891 {
3892 {
3893 .eraseblocks = {
3894 {4 * 1024, 2},
3895 {8 * 1024, 1},
3896 {16 * 1024, 1},
3897 {32 * 1024, 1},
3898 {64 * 1024, 31},
3899 },
3900 .block_erase = spi_block_erase_d8,
3901 }, {
3902 .eraseblocks = { {2 * 1024 * 1024, 1} },
3903 .block_erase = spi_block_erase_c7,
3904 }
3905 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003906 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003907 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003908 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003909 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003910 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003911 },
3912
3913 {
3914 .vendor = "Eon",
3915 .name = "EN25B16T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003916 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003917 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003918 .model_id = EON_EN25B16,
Sean Nelson54596372010-01-09 05:30:14 +00003919 .total_size = 2048,
3920 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003921 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003922 .tested = TEST_UNTESTED,
3923 .probe = probe_spi_rdid,
3924 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003925 .block_erasers =
3926 {
3927 {
3928 .eraseblocks = {
3929 {64 * 1024, 31},
3930 {32 * 1024, 1},
3931 {16 * 1024, 1},
3932 {8 * 1024, 1},
3933 {4 * 1024, 2},
3934 },
3935 .block_erase = spi_block_erase_d8,
3936 }, {
3937 .eraseblocks = { {2 * 1024 * 1024, 1} },
3938 .block_erase = spi_block_erase_c7,
3939 }
3940 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003941 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003942 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003943 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003944 .read = spi_chip_read, /* Fast read (0x0B) supported */
3945 .voltage = {2700, 3600},
3946 },
3947
3948 {
3949 .vendor = "Eon",
3950 .name = "EN25P16",
3951 .bustype = BUS_SPI,
3952 .manufacture_id = EON_ID_NOPREFIX,
3953 .model_id = EON_EN25B16,
3954 .total_size = 2048,
3955 .page_size = 256,
3956 .feature_bits = FEATURE_WRSR_WREN,
3957 .tested = TEST_UNTESTED,
3958 .probe = probe_spi_rdid,
3959 .probe_timing = TIMING_ZERO,
3960 .block_erasers =
3961 {
3962 {
3963 .eraseblocks = { {64 * 1024, 32} },
3964 .block_erase = spi_block_erase_d8,
3965 }, {
3966 .eraseblocks = { {2 * 1024 * 1024, 1} },
3967 .block_erase = spi_block_erase_c7,
3968 }
3969 },
3970 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
3971 .unlock = spi_disable_blockprotect,
3972 .write = spi_chip_write_256,
3973 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003974 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003975 },
3976
3977 {
3978 .vendor = "Eon",
3979 .name = "EN25B32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003980 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003981 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003982 .model_id = EON_EN25B32,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003983 .total_size = 4096,
3984 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003985 /* OTP: 512B total; enter 0x3A */
3986 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003987 .tested = TEST_UNTESTED,
3988 .probe = probe_spi_rdid,
3989 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003990 .block_erasers =
3991 {
3992 {
3993 .eraseblocks = {
3994 {4 * 1024, 2},
3995 {8 * 1024, 1},
3996 {16 * 1024, 1},
3997 {32 * 1024, 1},
3998 {64 * 1024, 63},
3999 },
4000 .block_erase = spi_block_erase_d8,
4001 }, {
4002 .eraseblocks = { {4 * 1024 * 1024, 1} },
4003 .block_erase = spi_block_erase_c7,
4004 }
4005 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004006 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004007 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00004008 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004009 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004010 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00004011 },
4012
4013 {
4014 .vendor = "Eon",
4015 .name = "EN25B32T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004016 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00004017 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004018 .model_id = EON_EN25B32,
Sean Nelson54596372010-01-09 05:30:14 +00004019 .total_size = 4096,
4020 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004021 /* OTP: 512B total; enter 0x3A */
4022 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Sean Nelson54596372010-01-09 05:30:14 +00004023 .tested = TEST_UNTESTED,
4024 .probe = probe_spi_rdid,
4025 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004026 .block_erasers =
4027 {
4028 {
4029 .eraseblocks = {
4030 {64 * 1024, 63},
4031 {32 * 1024, 1},
4032 {16 * 1024, 1},
4033 {8 * 1024, 1},
4034 {4 * 1024, 2},
4035 },
4036 .block_erase = spi_block_erase_d8,
4037 }, {
4038 .eraseblocks = { {4 * 1024 * 1024, 1} },
4039 .block_erase = spi_block_erase_c7,
4040 }
4041 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004042 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004043 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004044 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004045 .read = spi_chip_read, /* Fast read (0x0B) supported */
4046 .voltage = {2700, 3600},
4047 },
4048
4049 {
4050 .vendor = "Eon",
4051 .name = "EN25P32", /* Uniform version of EN25B32 */
4052 .bustype = BUS_SPI,
4053 .manufacture_id = EON_ID_NOPREFIX,
4054 .model_id = EON_EN25B32,
4055 .total_size = 4096,
4056 .page_size = 256,
4057 /* OTP: 512B total; enter 0x3A */
4058 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4059 .tested = TEST_UNTESTED,
4060 .probe = probe_spi_rdid,
4061 .probe_timing = TIMING_ZERO,
4062 .block_erasers =
4063 {
4064 {
4065 .eraseblocks = { {64 * 1024, 64} },
4066 .block_erase = spi_block_erase_d8,
4067 }, {
4068 .eraseblocks = { {4 * 1024 * 1024, 1} },
4069 .block_erase = spi_block_erase_c7,
4070 }
4071 },
4072 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4073 .unlock = spi_disable_blockprotect,
4074 .write = spi_chip_write_256,
4075 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004076 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004077 },
4078
4079 {
4080 .vendor = "Eon",
4081 .name = "EN25B64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004082 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004083 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004084 .model_id = EON_EN25B64,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004085 .total_size = 8192,
4086 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004087 /* OTP: 512B total; enter 0x3A */
4088 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004089 .tested = TEST_UNTESTED,
4090 .probe = probe_spi_rdid,
4091 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004092 .block_erasers =
4093 {
4094 {
4095 .eraseblocks = {
4096 {4 * 1024, 2},
4097 {8 * 1024, 1},
4098 {16 * 1024, 1},
4099 {32 * 1024, 1},
4100 {64 * 1024, 127},
4101 },
4102 .block_erase = spi_block_erase_d8,
4103 }, {
4104 .eraseblocks = { {8 * 1024 * 1024, 1} },
4105 .block_erase = spi_block_erase_c7,
4106 }
4107 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004108 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004109 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00004110 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004111 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004112 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00004113 },
4114
4115 {
4116 .vendor = "Eon",
4117 .name = "EN25B64T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004118 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00004119 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004120 .model_id = EON_EN25B64,
Sean Nelson54596372010-01-09 05:30:14 +00004121 .total_size = 8192,
4122 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004123 /* OTP: 512B total; enter 0x3A */
4124 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Sean Nelson54596372010-01-09 05:30:14 +00004125 .tested = TEST_UNTESTED,
4126 .probe = probe_spi_rdid,
4127 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004128 .block_erasers =
4129 {
4130 {
4131 .eraseblocks = {
4132 {64 * 1024, 127},
4133 {32 * 1024, 1},
4134 {16 * 1024, 1},
4135 {8 * 1024, 1},
4136 {4 * 1024, 2},
4137 },
4138 .block_erase = spi_block_erase_d8,
4139 }, {
4140 .eraseblocks = { {8 * 1024 * 1024, 1} },
4141 .block_erase = spi_block_erase_c7,
4142 }
4143 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004144 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004145 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004146 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004147 .read = spi_chip_read, /* Fast read (0x0B) supported */
4148 .voltage = {2700, 3600},
4149 },
4150
4151 {
4152 .vendor = "Eon",
4153 .name = "EN25P64",
4154 .bustype = BUS_SPI,
4155 .manufacture_id = EON_ID_NOPREFIX,
4156 .model_id = EON_EN25B64,
4157 .total_size = 8192,
4158 .page_size = 256,
4159 /* OTP: 512B total; enter 0x3A */
4160 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4161 .tested = TEST_UNTESTED,
4162 .probe = probe_spi_rdid,
4163 .probe_timing = TIMING_ZERO,
4164 .block_erasers =
4165 {
4166 {
4167 .eraseblocks = { {64 * 1024, 128} },
4168 .block_erase = spi_block_erase_d8,
4169 }, {
4170 .eraseblocks = { {8 * 1024 * 1024, 1} },
4171 .block_erase = spi_block_erase_c7,
4172 }
4173 },
4174 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4175 .unlock = spi_disable_blockprotect,
4176 .write = spi_chip_write_256,
4177 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004178 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004179 },
4180
4181 {
4182 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004183 .name = "EN25F05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004184 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004185 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004186 .model_id = EON_EN25F05,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004187 .total_size = 64,
4188 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004189 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00004190 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004191 .probe = probe_spi_rdid,
4192 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004193 .block_erasers =
4194 {
4195 {
4196 .eraseblocks = { {4 * 1024, 16} },
4197 .block_erase = spi_block_erase_20,
4198 }, {
4199 .eraseblocks = { {32 * 1024, 2} },
4200 .block_erase = spi_block_erase_d8,
4201 }, {
4202 .eraseblocks = { {32 * 1024, 2} },
4203 .block_erase = spi_block_erase_52,
4204 }, {
4205 .eraseblocks = { {64 * 1024, 1} },
4206 .block_erase = spi_block_erase_60,
4207 }, {
4208 .eraseblocks = { {64 * 1024, 1} },
4209 .block_erase = spi_block_erase_c7,
4210 }
4211 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004212 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004213 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004214 .write = spi_chip_write_256,
4215 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004216 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004217 },
4218
4219 {
4220 .vendor = "Eon",
4221 .name = "EN25F10",
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_EN25F10,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004225 .total_size = 128,
4226 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004227 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004228 .tested = TEST_UNTESTED,
4229 .probe = probe_spi_rdid,
4230 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004231 .block_erasers =
4232 {
4233 {
4234 .eraseblocks = { {4 * 1024, 32} },
4235 .block_erase = spi_block_erase_20,
4236 }, {
4237 .eraseblocks = { {32 * 1024, 4} },
4238 .block_erase = spi_block_erase_d8,
4239 }, {
4240 .eraseblocks = { {32 * 1024, 4} },
4241 .block_erase = spi_block_erase_52,
4242 }, {
4243 .eraseblocks = { {128 * 1024, 1} },
4244 .block_erase = spi_block_erase_60,
4245 }, {
4246 .eraseblocks = { {128 * 1024, 1} },
4247 .block_erase = spi_block_erase_c7,
4248 }
4249 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004250 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004251 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004252 .write = spi_chip_write_256,
4253 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004254 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004255 },
4256
4257 {
4258 .vendor = "Eon",
4259 .name = "EN25F20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004260 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004261 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004262 .model_id = EON_EN25F20,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004263 .total_size = 256,
4264 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004265 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004266 .tested = TEST_UNTESTED,
4267 .probe = probe_spi_rdid,
4268 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004269 .block_erasers =
4270 {
4271 {
4272 .eraseblocks = { {4 * 1024, 64} },
4273 .block_erase = spi_block_erase_20,
4274 }, {
4275 .eraseblocks = { {64 * 1024, 4} },
4276 .block_erase = spi_block_erase_d8,
4277 }, {
4278 .eraseblocks = { {64 * 1024, 4} },
4279 .block_erase = spi_block_erase_52,
4280 }, {
4281 .eraseblocks = { {256 * 1024, 1} },
4282 .block_erase = spi_block_erase_60,
4283 }, {
4284 .eraseblocks = { {256 * 1024, 1} },
4285 .block_erase = spi_block_erase_c7,
4286 }
4287 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004288 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004289 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004290 .write = spi_chip_write_256,
4291 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004292 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004293 },
4294
4295 {
4296 .vendor = "Eon",
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004297 .name = "EN25F40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004298 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004299 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004300 .model_id = EON_EN25F40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004301 .total_size = 512,
4302 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004303 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +00004304 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004305 .probe = probe_spi_rdid,
4306 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004307 .block_erasers =
4308 {
4309 {
Sean Nelson54596372010-01-09 05:30:14 +00004310 .eraseblocks = { {4 * 1024, 128} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00004311 .block_erase = spi_block_erase_20,
4312 }, {
Sean Nelson54596372010-01-09 05:30:14 +00004313 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00004314 .block_erase = spi_block_erase_d8,
4315 }, {
Sean Nelson54596372010-01-09 05:30:14 +00004316 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00004317 .block_erase = spi_block_erase_60,
4318 }, {
Sean Nelson54596372010-01-09 05:30:14 +00004319 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00004320 .block_erase = spi_block_erase_c7,
4321 },
4322 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004323 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004324 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004325 .write = spi_chip_write_256,
4326 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004327 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004328 },
4329
4330 {
4331 .vendor = "Eon",
4332 .name = "EN25F80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004333 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004334 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004335 .model_id = EON_EN25F80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004336 .total_size = 1024,
4337 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004338 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +00004339 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004340 .probe = probe_spi_rdid,
4341 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004342 .block_erasers =
4343 {
4344 {
4345 .eraseblocks = { {4 * 1024, 256} },
4346 .block_erase = spi_block_erase_20,
4347 }, {
4348 .eraseblocks = { {64 * 1024, 16} },
4349 .block_erase = spi_block_erase_d8,
4350 }, {
4351 .eraseblocks = { {1024 * 1024, 1} },
4352 .block_erase = spi_block_erase_60,
4353 }, {
4354 .eraseblocks = { {1024 * 1024, 1} },
4355 .block_erase = spi_block_erase_c7,
4356 }
4357 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004358 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004359 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004360 .write = spi_chip_write_256,
4361 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004362 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004363 },
4364
4365 {
4366 .vendor = "Eon",
4367 .name = "EN25F16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004368 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004369 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004370 .model_id = EON_EN25F16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004371 .total_size = 2048,
4372 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004373 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzel018d4822011-10-21 12:33:07 +00004374 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004375 .probe = probe_spi_rdid,
4376 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004377 .block_erasers =
4378 {
4379 {
4380 .eraseblocks = { {4 * 1024, 512} },
4381 .block_erase = spi_block_erase_20,
4382 }, {
4383 .eraseblocks = { {64 * 1024, 32} },
4384 .block_erase = spi_block_erase_d8,
4385 }, {
4386 .eraseblocks = { {2 * 1024 * 1024, 1} },
4387 .block_erase = spi_block_erase_60,
4388 }, {
4389 .eraseblocks = { {2 * 1024 * 1024, 1} },
4390 .block_erase = spi_block_erase_c7,
4391 }
4392 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004393 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004394 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004395 .write = spi_chip_write_256,
4396 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004397 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004398 },
4399
4400 {
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004401 .vendor = "Eon",
4402 .name = "EN25F32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004403 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004404 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004405 .model_id = EON_EN25F32,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004406 .total_size = 4096,
4407 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004408 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +00004409 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004410 .probe = probe_spi_rdid,
4411 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004412 .block_erasers =
4413 {
4414 {
4415 .eraseblocks = { {4 * 1024, 1024} },
4416 .block_erase = spi_block_erase_20,
4417 }, {
4418 .eraseblocks = { {64 * 1024, 64} },
4419 .block_erase = spi_block_erase_d8,
4420 }, {
4421 .eraseblocks = { {4 * 1024 * 1024, 1} },
4422 .block_erase = spi_block_erase_60,
4423 }, {
4424 .eraseblocks = { {4 * 1024 * 1024, 1} },
4425 .block_erase = spi_block_erase_c7,
4426 }
4427 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004428 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004429 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004430 .write = spi_chip_write_256,
4431 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004432 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004433 },
4434
4435 {
Russ Dill3cd5a122010-03-05 08:44:11 +00004436 .vendor = "Eon",
Stefan Taunerd932fd02012-09-06 17:37:16 +00004437 .name = "EN25F64",
4438 .bustype = BUS_SPI,
4439 .manufacture_id = EON_ID_NOPREFIX,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00004440 .model_id = EON_EN25F64,
Stefan Taunerd932fd02012-09-06 17:37:16 +00004441 .total_size = 8192,
4442 .page_size = 256,
4443 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00004444 .tested = TEST_OK_PREW,
Stefan Taunerd932fd02012-09-06 17:37:16 +00004445 .probe = probe_spi_rdid,
4446 .probe_timing = TIMING_ZERO,
4447 .block_erasers =
4448 {
4449 {
4450 .eraseblocks = { {4 * 1024, 2048} },
4451 .block_erase = spi_block_erase_20,
4452 }, {
4453 .eraseblocks = { {64 * 1024, 128} },
4454 .block_erase = spi_block_erase_d8,
4455 }, {
4456 .eraseblocks = { {8 * 1024 * 1024, 1} },
4457 .block_erase = spi_block_erase_60,
4458 }, {
4459 .eraseblocks = { {8 * 1024 * 1024, 1} },
4460 .block_erase = spi_block_erase_c7,
4461 }
4462 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004463 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Stefan Taunerd932fd02012-09-06 17:37:16 +00004464 .unlock = spi_disable_blockprotect,
4465 .write = spi_chip_write_256,
4466 .read = spi_chip_read,
4467 .voltage = {2700, 3600},
4468 },
4469
4470 {
4471 .vendor = "Eon",
David Hendricks6d715302011-07-24 22:21:57 +00004472 .name = "EN25Q40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004473 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004474 .manufacture_id = EON_ID_NOPREFIX,
4475 .model_id = EON_EN25Q40,
4476 .total_size = 512,
4477 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004478 /* OTP: 256B total; enter 0x3A */
4479 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004480 .tested = TEST_UNTESTED,
4481 .probe = probe_spi_rdid,
4482 .probe_timing = TIMING_ZERO,
4483 .block_erasers =
4484 {
4485 {
4486 .eraseblocks = { {4 * 1024, 128} },
4487 .block_erase = spi_block_erase_20,
4488 }, {
4489 .eraseblocks = { {64 * 1024, 8} },
4490 .block_erase = spi_block_erase_d8,
4491 }, {
4492 .eraseblocks = { {512 * 1024, 1} },
4493 .block_erase = spi_block_erase_60,
4494 }, {
4495 .eraseblocks = { {512 * 1024, 1} },
4496 .block_erase = spi_block_erase_c7,
4497 }
4498 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004499 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004500 .unlock = spi_disable_blockprotect,
4501 .write = spi_chip_write_256,
4502 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004503 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004504 },
4505
4506 {
4507 .vendor = "Eon",
4508 .name = "EN25Q80(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004509 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004510 .manufacture_id = EON_ID_NOPREFIX,
4511 .model_id = EON_EN25Q80,
4512 .total_size = 1024,
4513 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004514 /* OTP: 256B total; enter 0x3A */
4515 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004516 .tested = TEST_UNTESTED,
4517 .probe = probe_spi_rdid,
4518 .probe_timing = TIMING_ZERO,
4519 .block_erasers =
4520 {
4521 {
4522 .eraseblocks = { {4 * 1024, 256} },
4523 .block_erase = spi_block_erase_20,
4524 }, {
4525 .eraseblocks = { {64 * 1024, 16} },
4526 .block_erase = spi_block_erase_d8,
4527 }, {
4528 .eraseblocks = { {1024 * 1024, 1} },
4529 .block_erase = spi_block_erase_60,
4530 }, {
4531 .eraseblocks = { {1024 * 1024, 1} },
4532 .block_erase = spi_block_erase_c7,
4533 }
4534 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004535 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004536 .unlock = spi_disable_blockprotect,
4537 .write = spi_chip_write_256,
4538 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004539 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004540 },
4541
4542 {
4543 /* Note: EN25D16 is an evil twin which shares the model ID
4544 but has different write protection capabilities */
4545 .vendor = "Eon",
4546 .name = "EN25Q16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004547 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004548 .manufacture_id = EON_ID_NOPREFIX,
4549 .model_id = EON_EN25Q16,
4550 .total_size = 2048,
4551 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004552 /* OTP: D16 512B/Q16 128B total; enter 0x3A */
4553 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004554 .tested = TEST_UNTESTED,
4555 .probe = probe_spi_rdid,
4556 .probe_timing = TIMING_ZERO,
4557 .block_erasers =
4558 {
4559 {
4560 .eraseblocks = { {4 * 1024, 512} },
4561 .block_erase = spi_block_erase_20,
4562 }, {
4563 .eraseblocks = { {64 * 1024, 32} },
4564 .block_erase = spi_block_erase_d8,
4565 }, {
4566 /* not supported by Q16 version */
4567 .eraseblocks = { {64 * 1024, 32} },
4568 .block_erase = spi_block_erase_52,
4569 }, {
4570 .eraseblocks = { {2 * 1024 * 1024, 1} },
4571 .block_erase = spi_block_erase_60,
4572 }, {
4573 .eraseblocks = { {2 * 1024 * 1024, 1} },
4574 .block_erase = spi_block_erase_c7,
4575 }
4576 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004577 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004578 .unlock = spi_disable_blockprotect,
4579 .write = spi_chip_write_256,
4580 .read = spi_chip_read,
4581 .voltage = {2700, 3600},
4582 },
4583
4584 {
4585 .vendor = "Eon",
4586 .name = "EN25Q32(A/B)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004587 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004588 .manufacture_id = EON_ID_NOPREFIX,
4589 .model_id = EON_EN25Q32,
4590 .total_size = 4096,
4591 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004592 /* OTP: 512B total; enter 0x3A */
4593 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004594 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004595 .probe = probe_spi_rdid,
4596 .probe_timing = TIMING_ZERO,
4597 .block_erasers =
4598 {
4599 {
4600 .eraseblocks = { {4 * 1024, 1024} },
4601 .block_erase = spi_block_erase_20,
4602 }, {
4603 .eraseblocks = { {64 * 1024, 64} },
4604 .block_erase = spi_block_erase_d8,
4605 }, {
4606 .eraseblocks = { {4 * 1024 * 1024, 1} },
4607 .block_erase = spi_block_erase_60,
4608 }, {
4609 .eraseblocks = { {4 * 1024 * 1024, 1} },
4610 .block_erase = spi_block_erase_c7,
4611 }
4612 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004613 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004614 .unlock = spi_disable_blockprotect,
4615 .write = spi_chip_write_256,
4616 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004617 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004618 },
4619
4620 {
4621 .vendor = "Eon",
4622 .name = "EN25Q64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004623 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004624 .manufacture_id = EON_ID_NOPREFIX,
4625 .model_id = EON_EN25Q64,
4626 .total_size = 8192,
4627 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004628 /* OTP: 512B total; enter 0x3A */
4629 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004630 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004631 .probe = probe_spi_rdid,
4632 .probe_timing = TIMING_ZERO,
4633 .block_erasers =
4634 {
4635 {
4636 .eraseblocks = { {4 * 1024, 2048} },
4637 .block_erase = spi_block_erase_20,
4638 }, {
4639 .eraseblocks = { {64 * 1024, 128} },
4640 .block_erase = spi_block_erase_d8,
4641 }, {
4642 .eraseblocks = { {8 * 1024 * 1024, 1} },
4643 .block_erase = spi_block_erase_60,
4644 }, {
4645 .eraseblocks = { {8 * 1024 * 1024, 1} },
4646 .block_erase = spi_block_erase_c7,
4647 }
4648 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004649 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004650 .unlock = spi_disable_blockprotect,
4651 .write = spi_chip_write_256,
4652 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004653 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004654 },
4655
4656 {
4657 .vendor = "Eon",
4658 .name = "EN25Q128",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004659 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004660 .manufacture_id = EON_ID_NOPREFIX,
4661 .model_id = EON_EN25Q128,
4662 .total_size = 16384,
4663 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004664 /* OTP: 512B total; enter 0x3A */
4665 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0be072c2016-03-13 15:16:30 +00004666 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004667 .probe = probe_spi_rdid,
4668 .probe_timing = TIMING_ZERO,
4669 .block_erasers =
4670 {
4671 {
4672 .eraseblocks = { {4 * 1024, 4096} },
4673 .block_erase = spi_block_erase_20,
4674 }, {
4675 .eraseblocks = { {64 * 1024, 256} },
4676 .block_erase = spi_block_erase_d8,
4677 }, {
4678 .eraseblocks = { {16 * 1024 * 1024, 1} },
4679 .block_erase = spi_block_erase_60,
4680 }, {
4681 .eraseblocks = { {16 * 1024 * 1024, 1} },
4682 .block_erase = spi_block_erase_c7,
4683 }
4684 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004685 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004686 .unlock = spi_disable_blockprotect,
4687 .write = spi_chip_write_256,
4688 .read = spi_chip_read,
4689 },
4690
4691 {
4692 .vendor = "Eon",
4693 .name = "EN25QH16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004694 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004695 .manufacture_id = EON_ID_NOPREFIX,
4696 .model_id = EON_EN25QH16,
4697 .total_size = 2048,
4698 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004699 /* supports SFDP */
4700 /* OTP: 512B total; enter 0x3A */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004701 /* QPI enable 0x38, disable 0xFF */
4702 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner5c316f92015-02-08 21:57:52 +00004703 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004704 .probe = probe_spi_rdid,
4705 .probe_timing = TIMING_ZERO,
4706 .block_erasers =
4707 {
4708 {
4709 .eraseblocks = { {4 * 1024, 512} },
4710 .block_erase = spi_block_erase_20,
4711 }, {
4712 .eraseblocks = { {64 * 1024, 32} },
4713 .block_erase = spi_block_erase_d8,
4714 }, {
4715 .eraseblocks = { {1024 * 2048, 1} },
4716 .block_erase = spi_block_erase_60,
4717 }, {
4718 .eraseblocks = { {1024 * 2048, 1} },
4719 .block_erase = spi_block_erase_c7,
4720 }
4721 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004722 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004723 .unlock = spi_disable_blockprotect_bp3_srwd,
David Hendricks6d715302011-07-24 22:21:57 +00004724 .write = spi_chip_write_256,
4725 .read = spi_chip_read,
Stefan Tauner2cef9162012-05-14 01:51:46 +00004726 .voltage = {2700, 3600},
4727 },
4728
4729 {
4730 .vendor = "Eon",
4731 .name = "EN25QH32",
4732 .bustype = BUS_SPI,
4733 .manufacture_id = EON_ID_NOPREFIX,
4734 .model_id = EON_EN25QH32,
4735 .total_size = 4096,
4736 .page_size = 256,
4737 /* supports SFDP */
4738 /* OTP: 512B total; enter 0x3A */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004739 /* QPI enable 0x38, disable 0xFF */
4740 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner23e10b82016-01-23 16:16:49 +00004741 .tested = TEST_OK_PREW,
Stefan Tauner2cef9162012-05-14 01:51:46 +00004742 .probe = probe_spi_rdid,
4743 .probe_timing = TIMING_ZERO,
4744 .block_erasers =
4745 {
4746 {
4747 .eraseblocks = { {4 * 1024, 1024} },
4748 .block_erase = spi_block_erase_20,
4749 }, {
4750 .eraseblocks = { {64 * 1024, 64} },
4751 .block_erase = spi_block_erase_d8,
4752 }, {
4753 .eraseblocks = { {1024 * 4096, 1} },
4754 .block_erase = spi_block_erase_60,
4755 }, {
4756 .eraseblocks = { {1024 * 4096, 1} },
4757 .block_erase = spi_block_erase_c7,
4758 }
4759 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004760 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004761 .unlock = spi_disable_blockprotect_bp3_srwd,
4762 .write = spi_chip_write_256,
4763 .read = spi_chip_read,
4764 .voltage = {2700, 3600},
4765 },
4766
4767 {
4768 .vendor = "Eon",
4769 .name = "EN25QH64",
4770 .bustype = BUS_SPI,
4771 .manufacture_id = EON_ID_NOPREFIX,
4772 .model_id = EON_EN25QH64,
4773 .total_size = 8192,
4774 .page_size = 256,
4775 /* supports SFDP */
4776 /* OTP: 512B total; enter 0x3A */
4777 /* QPI enable 0x38, disable 0xFF */
4778 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner23e10b82016-01-23 16:16:49 +00004779 .tested = TEST_OK_PREW,
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004780 .probe = probe_spi_rdid,
4781 .probe_timing = TIMING_ZERO,
4782 .block_erasers = {
4783 {
4784 .eraseblocks = { {4 * 1024, 2048} },
4785 .block_erase = spi_block_erase_20,
4786 }, {
4787 .eraseblocks = { {64 * 1024, 128} },
4788 .block_erase = spi_block_erase_d8,
4789 }, {
4790 .eraseblocks = { { 8192 * 1024, 1} },
4791 .block_erase = spi_block_erase_60,
4792 }, {
4793 .eraseblocks = { { 8192 * 1024, 1} },
4794 .block_erase = spi_block_erase_c7,
4795 }
4796 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004797 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004798 .unlock = spi_disable_blockprotect_bp3_srwd,
4799 .write = spi_chip_write_256,
4800 .read = spi_chip_read,
4801 .voltage = {2700, 3600},
4802 },
4803
4804 {
4805 .vendor = "Eon",
4806 .name = "EN25QH128",
4807 .bustype = BUS_SPI,
4808 .manufacture_id = EON_ID_NOPREFIX,
4809 .model_id = EON_EN25QH128,
4810 .total_size = 16384,
4811 .page_size = 256,
4812 /* supports SFDP */
4813 /* OTP: 512B total; enter 0x3A */
4814 /* QPI enable 0x38, disable 0xFF */
4815 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4816 .tested = TEST_UNTESTED,
4817 .probe = probe_spi_rdid,
4818 .probe_timing = TIMING_ZERO,
4819 .block_erasers = {
4820 {
4821 .eraseblocks = { {4 * 1024, 4096} },
4822 .block_erase = spi_block_erase_20,
4823 }, {
4824 .eraseblocks = { {64 * 1024, 256} },
4825 .block_erase = spi_block_erase_d8,
4826 }, {
4827 .eraseblocks = { { 16384 * 1024, 1} },
4828 .block_erase = spi_block_erase_60,
4829 }, {
4830 .eraseblocks = { { 16384 * 1024, 1} },
4831 .block_erase = spi_block_erase_c7,
4832 }
4833 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004834 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00004835 .unlock = spi_disable_blockprotect_bp3_srwd,
4836 .write = spi_chip_write_256,
4837 .read = spi_chip_read,
4838 .voltage = {2700, 3600},
4839 },
4840
4841 {
4842 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00004843 .name = "EN25S10",
4844 .bustype = BUS_SPI,
4845 .manufacture_id = EON_ID_NOPREFIX,
4846 .model_id = EON_EN25S10,
4847 .total_size = 128,
4848 .page_size = 256,
4849 /* OTP: 256B total; enter 0x3A */
4850 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4851 .tested = TEST_UNTESTED,
4852 .probe = probe_spi_rdid,
4853 .probe_timing = TIMING_ZERO,
4854 .block_erasers = {
4855 {
4856 .eraseblocks = { {4 * 1024, 32} },
4857 .block_erase = spi_block_erase_20,
4858 }, {
4859 .eraseblocks = { {32 * 1024, 4} },
4860 .block_erase = spi_block_erase_52,
4861 }, {
4862 .eraseblocks = { {128 * 1024, 1} },
4863 .block_erase = spi_block_erase_60,
4864 }, {
4865 .eraseblocks = { {128 * 1024, 1} },
4866 .block_erase = spi_block_erase_c7,
4867 }
4868 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004869 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00004870 .unlock = spi_disable_blockprotect,
4871 .write = spi_chip_write_256,
4872 .read = spi_chip_read,
4873 .voltage = {1650, 1950},
4874 },
4875
4876 {
4877 .vendor = "Eon",
4878 .name = "EN25S20",
4879 .bustype = BUS_SPI,
4880 .manufacture_id = EON_ID_NOPREFIX,
4881 .model_id = EON_EN25S20,
4882 .total_size = 256,
4883 .page_size = 256,
4884 /* OTP: 256B total; enter 0x3A */
4885 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4886 .tested = TEST_UNTESTED,
4887 .probe = probe_spi_rdid,
4888 .probe_timing = TIMING_ZERO,
4889 .block_erasers = {
4890 {
4891 .eraseblocks = { {4 * 1024, 64} },
4892 .block_erase = spi_block_erase_20,
4893 }, {
4894 .eraseblocks = { {64 * 1024, 4} },
4895 .block_erase = spi_block_erase_d8,
4896 }, {
4897 .eraseblocks = { {256 * 1024, 1} },
4898 .block_erase = spi_block_erase_60,
4899 }, {
4900 .eraseblocks = { {256 * 1024, 1} },
4901 .block_erase = spi_block_erase_c7,
4902 }
4903 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004904 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00004905 .unlock = spi_disable_blockprotect,
4906 .write = spi_chip_write_256,
4907 .read = spi_chip_read,
4908 .voltage = {1650, 1950},
4909 },
4910
4911 {
4912 .vendor = "Eon",
4913 .name = "EN25S40",
4914 .bustype = BUS_SPI,
4915 .manufacture_id = EON_ID_NOPREFIX,
4916 .model_id = EON_EN25S40,
4917 .total_size = 512,
4918 .page_size = 256,
4919 /* OTP: 256B total; enter 0x3A */
4920 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4921 .tested = TEST_UNTESTED,
4922 .probe = probe_spi_rdid,
4923 .probe_timing = TIMING_ZERO,
4924 .block_erasers = {
4925 {
4926 .eraseblocks = { {4 * 1024, 128} },
4927 .block_erase = spi_block_erase_20,
4928 }, {
4929 .eraseblocks = { {64 * 1024, 8} },
4930 .block_erase = spi_block_erase_d8,
4931 }, {
4932 .eraseblocks = { {512 * 1024, 1} },
4933 .block_erase = spi_block_erase_60,
4934 }, {
4935 .eraseblocks = { {512 * 1024, 1} },
4936 .block_erase = spi_block_erase_c7,
4937 }
4938 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004939 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00004940 .unlock = spi_disable_blockprotect,
4941 .write = spi_chip_write_256,
4942 .read = spi_chip_read,
4943 .voltage = {1650, 1950},
4944 },
4945
4946 {
4947 .vendor = "Eon",
4948 .name = "EN25S80",
4949 .bustype = BUS_SPI,
4950 .manufacture_id = EON_ID_NOPREFIX,
4951 .model_id = EON_EN25S80,
4952 .total_size = 1024,
4953 .page_size = 256,
4954 /* OTP: 256B total; enter 0x3A */
4955 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4956 .tested = TEST_UNTESTED,
4957 .probe = probe_spi_rdid,
4958 .probe_timing = TIMING_ZERO,
4959 .block_erasers = {
4960 {
4961 .eraseblocks = { {4 * 1024, 256} },
4962 .block_erase = spi_block_erase_20,
4963 }, {
4964 .eraseblocks = { {64 * 1024, 16} },
4965 .block_erase = spi_block_erase_d8,
4966 }, {
4967 .eraseblocks = { {1024 * 1024, 1} },
4968 .block_erase = spi_block_erase_60,
4969 }, {
4970 .eraseblocks = { {1024 * 1024, 1} },
4971 .block_erase = spi_block_erase_c7,
4972 }
4973 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00004974 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00004975 .unlock = spi_disable_blockprotect,
4976 .write = spi_chip_write_256,
4977 .read = spi_chip_read,
4978 .voltage = {1650, 1950},
4979 },
4980
4981 {
4982 .vendor = "Eon",
4983 .name = "EN25S16",
4984 .bustype = BUS_SPI,
4985 .manufacture_id = EON_ID_NOPREFIX,
4986 .model_id = EON_EN25S16,
4987 .total_size = 2048,
4988 .page_size = 256,
4989 /* OTP: 512B total; enter 0x3A */
4990 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4991 .tested = TEST_UNTESTED,
4992 .probe = probe_spi_rdid,
4993 .probe_timing = TIMING_ZERO,
4994 .block_erasers = {
4995 {
4996 .eraseblocks = { {4 * 1024, 512} },
4997 .block_erase = spi_block_erase_20,
4998 }, {
4999 .eraseblocks = { {64 * 1024, 32} },
5000 .block_erase = spi_block_erase_52,
5001 }, {
5002 .eraseblocks = { {32 * 1024, 64} },
5003 .block_erase = spi_block_erase_d8,
5004 }, {
5005 .eraseblocks = { {2048 * 1024, 1} },
5006 .block_erase = spi_block_erase_60,
5007 }, {
5008 .eraseblocks = { {2048 * 1024, 1} },
5009 .block_erase = spi_block_erase_c7,
5010 }
5011 },
5012 .printlock = spi_prettyprint_status_register_en25s_wp,
5013 .unlock = spi_disable_blockprotect_bp3_srwd,
5014 .write = spi_chip_write_256,
5015 .read = spi_chip_read,
5016 .voltage = {1650, 1950},
5017 },
5018
5019 {
5020 .vendor = "Eon",
5021 .name = "EN25S32",
5022 .bustype = BUS_SPI,
5023 .manufacture_id = EON_ID_NOPREFIX,
5024 .model_id = EON_EN25S32,
5025 .total_size = 4096,
5026 .page_size = 256,
5027 /* OTP: 512B total; enter 0x3A */
5028 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5029 .tested = TEST_UNTESTED,
5030 .probe = probe_spi_rdid,
5031 .probe_timing = TIMING_ZERO,
5032 .block_erasers = {
5033 {
5034 .eraseblocks = { {4 * 1024, 1024} },
5035 .block_erase = spi_block_erase_20,
5036 }, {
5037 .eraseblocks = { {32 * 1024, 128} },
5038 .block_erase = spi_block_erase_52,
5039 }, {
5040 .eraseblocks = { {64 * 1024, 64} },
5041 .block_erase = spi_block_erase_d8,
5042 }, {
5043 .eraseblocks = { {4096 * 1024, 1} },
5044 .block_erase = spi_block_erase_60,
5045 }, {
5046 .eraseblocks = { {4096 * 1024, 1} },
5047 .block_erase = spi_block_erase_c7,
5048 }
5049 },
5050 .printlock = spi_prettyprint_status_register_en25s_wp,
5051 .unlock = spi_disable_blockprotect_bp3_srwd,
5052 .write = spi_chip_write_256,
5053 .read = spi_chip_read,
5054 .voltage = {1650, 1950},
5055 },
5056
5057 {
5058 .vendor = "Eon",
5059 .name = "EN25S64",
5060 .bustype = BUS_SPI,
5061 .manufacture_id = EON_ID_NOPREFIX,
5062 .model_id = EON_EN25S64,
5063 .total_size = 8192,
5064 .page_size = 256,
5065 /* OTP: 512B total; enter 0x3A */
5066 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5067 .tested = TEST_UNTESTED,
5068 .probe = probe_spi_rdid,
5069 .probe_timing = TIMING_ZERO,
5070 .block_erasers = {
5071 {
5072 .eraseblocks = { {4 * 1024, 2048} },
5073 .block_erase = spi_block_erase_20,
5074 }, {
5075 .eraseblocks = { {64 * 1024, 128} },
5076 .block_erase = spi_block_erase_d8,
5077 }, {
5078 .eraseblocks = { {8192 * 1024, 1} },
5079 .block_erase = spi_block_erase_60,
5080 }, {
5081 .eraseblocks = { {8192 * 1024, 1} },
5082 .block_erase = spi_block_erase_c7,
5083 }
5084 },
5085 .printlock = spi_prettyprint_status_register_en25s_wp,
5086 .unlock = spi_disable_blockprotect_bp3_srwd,
5087 .write = spi_chip_write_256,
5088 .read = spi_chip_read,
5089 .voltage = {1650, 1950},
5090 },
5091
5092 {
5093 .vendor = "Eon",
Russ Dill3cd5a122010-03-05 08:44:11 +00005094 .name = "EN29F010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005095 .bustype = BUS_PARALLEL,
Russ Dill3cd5a122010-03-05 08:44:11 +00005096 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005097 .model_id = EON_EN29F010,
Russ Dill3cd5a122010-03-05 08:44:11 +00005098 .total_size = 128,
5099 .page_size = 128,
5100 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005101 .tested = TEST_OK_PRE,
Russ Dill3cd5a122010-03-05 08:44:11 +00005102 .probe = probe_jedec,
5103 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5104 .block_erasers =
5105 {
5106 {
5107 .eraseblocks = { {16 * 1024, 8} },
5108 .block_erase = erase_sector_jedec,
5109 },
5110 {
5111 .eraseblocks = { {128 * 1024, 1} },
5112 .block_erase = erase_chip_block_jedec,
5113 },
5114 },
5115 .write = write_jedec_1,
5116 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005117 .voltage = {4500, 5500},
Russ Dill3cd5a122010-03-05 08:44:11 +00005118 },
5119
5120 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00005121 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005122 .name = "EN29F002(A)(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005123 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005124 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005125 .model_id = EON_EN29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005126 .total_size = 256,
5127 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00005128 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005129 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005130 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005131 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005132 .block_erasers =
5133 {
5134 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005135 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005136 {16 * 1024, 1},
Michael Karchere3cb0a12010-03-13 23:47:09 +00005137 {8 * 1024, 2},
5138 {32 * 1024, 1},
5139 {64 * 1024, 3},
Sean Nelson6b11ad22009-12-23 17:05:59 +00005140 },
5141 .block_erase = erase_sector_jedec,
5142 }, {
5143 .eraseblocks = { {256 * 1024, 1} },
5144 .block_erase = erase_chip_block_jedec,
5145 },
5146 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005147 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005148 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005149 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005150 },
5151
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005152 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00005153 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005154 .name = "EN29F002(A)(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005155 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005156 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005157 .model_id = EON_EN29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005158 .total_size = 256,
5159 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00005160 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00005161 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005162 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005163 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005164 .block_erasers =
5165 {
5166 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005167 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005168 {64 * 1024, 3},
Michael Karchere3cb0a12010-03-13 23:47:09 +00005169 {32 * 1024, 1},
5170 {8 * 1024, 2},
5171 {16 * 1024, 1},
Sean Nelson6b11ad22009-12-23 17:05:59 +00005172 },
5173 .block_erase = erase_sector_jedec,
5174 }, {
5175 .eraseblocks = { {256 * 1024, 1} },
5176 .block_erase = erase_chip_block_jedec,
5177 },
5178 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005179 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005180 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005181 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005182 },
5183
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005184 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005185 .vendor = "Eon",
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005186 .name = "EN29LV040(A)",
5187 .bustype = BUS_PARALLEL,
5188 .manufacture_id = EON_ID,
5189 .model_id = EON_EN29LV040,
5190 .total_size = 512,
5191 .page_size = 4 * 1024,
5192 .tested = TEST_OK_PREW,
5193 .probe = probe_jedec,
5194 .probe_timing = TIMING_ZERO,
5195 .block_erasers =
5196 {
5197 {
5198 .eraseblocks = { {64 * 1024, 8} },
5199 .block_erase = erase_sector_jedec,
5200 },
5201 {
5202 .eraseblocks = { {512 * 1024, 1} },
5203 .block_erase = erase_chip_block_jedec,
5204 },
5205 },
5206 .write = write_jedec_1,
5207 .read = read_memmapped,
5208 .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R and 55R, others 2.7-3.6V */
5209 },
5210
5211 {
5212 .vendor = "Eon",
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005213 .name = "EN29LV640B",
5214 .bustype = BUS_PARALLEL,
5215 .manufacture_id = EON_ID,
5216 .model_id = EON_EN29LV640B,
5217 .total_size = 8192,
5218 .page_size = 8192,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005219 .feature_bits = FEATURE_ADDR_SHIFTED,
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005220 .tested = TEST_OK_PREW,
5221 .probe = probe_en29lv640b,
5222 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5223 .block_erasers =
5224 {
5225 {
5226 .eraseblocks = {
5227 {8 * 1024, 8},
5228 {64 * 1024, 127},
5229 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005230 .block_erase = erase_block_jedec,
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005231 }, {
5232 .eraseblocks = { {8 * 1024 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005233 .block_erase = erase_chip_block_jedec,
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005234 },
5235 },
5236 .write = write_en29lv640b,
5237 .read = read_memmapped,
5238 .voltage = {2700, 3600},
5239 },
5240
5241 {
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00005242 .vendor = "Eon",
5243 .name = "EN29GL064(A)B",
5244 .bustype = BUS_PARALLEL,
5245 .manufacture_id = EON_ID,
5246 .model_id = EON_EN29GL064B,
5247 .total_size = 8192,
5248 .page_size = 128 * 1024, /* actual page size is 16 */
5249 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5250 .tested = TEST_UNTESTED,
5251 .probe = probe_jedec_29gl,
5252 .probe_timing = TIMING_ZERO,
5253 .block_erasers =
5254 {
5255 {
5256 .eraseblocks = {
5257 {8 * 1024, 8},
5258 {64 * 1024, 127},
5259 },
5260 .block_erase = erase_sector_jedec,
5261 }, {
5262 .eraseblocks = { {8 * 1024 * 1024, 1} },
5263 .block_erase = erase_chip_block_jedec,
5264 },
5265 },
5266 .write = write_jedec_1,
5267 .read = read_memmapped,
5268 .voltage = {2700, 3600},
5269 },
5270
5271 {
5272 .vendor = "Eon",
5273 .name = "EN29GL064(A)T",
5274 .bustype = BUS_PARALLEL,
5275 .manufacture_id = EON_ID,
5276 .model_id = EON_EN29GL064T,
5277 .total_size = 8192,
5278 .page_size = 128 * 1024, /* actual page size is 16 */
5279 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5280 .tested = TEST_UNTESTED,
5281 .probe = probe_jedec_29gl,
5282 .probe_timing = TIMING_ZERO,
5283 .block_erasers =
5284 {
5285 {
5286 .eraseblocks = {
5287 {64 * 1024, 127},
5288 {8 * 1024, 8},
5289 },
5290 .block_erase = erase_sector_jedec,
5291 }, {
5292 .eraseblocks = { {8 * 1024 * 1024, 1} },
5293 .block_erase = erase_chip_block_jedec,
5294 },
5295 },
5296 .write = write_jedec_1,
5297 .read = read_memmapped,
5298 .voltage = {2700, 3600},
5299 },
5300
5301 {
5302 .vendor = "Eon",
5303 .name = "EN29GL064H/L",
5304 .bustype = BUS_PARALLEL,
5305 .manufacture_id = EON_ID,
5306 .model_id = EON_EN29GL064HL,
5307 .total_size = 8192,
5308 .page_size = 128 * 1024, /* actual page size is 16 */
5309 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5310 .tested = TEST_UNTESTED,
5311 .probe = probe_jedec_29gl,
5312 .probe_timing = TIMING_ZERO,
5313 .block_erasers =
5314 {
5315 {
5316 .eraseblocks = { {64 * 1024, 128} },
5317 .block_erase = erase_sector_jedec,
5318 }, {
5319 .eraseblocks = { {8 * 1024 * 1024, 1} },
5320 .block_erase = erase_chip_block_jedec,
5321 },
5322 },
5323 .write = write_jedec_1,
5324 .read = read_memmapped,
5325 .voltage = {2700, 3600},
5326 },
5327
5328 {
5329 .vendor = "Eon",
5330 .name = "EN29GL128",
5331 .bustype = BUS_PARALLEL,
5332 .manufacture_id = EON_ID,
5333 .model_id = EON_EN29GL128HL,
5334 .total_size = 16384,
5335 .page_size = 128 * 1024, /* actual page size is 16 */
5336 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5337 .tested = TEST_UNTESTED,
5338 .probe = probe_jedec_29gl,
5339 .probe_timing = TIMING_ZERO,
5340 .block_erasers =
5341 {
5342 {
5343 .eraseblocks = { {128 * 1024, 128} },
5344 .block_erase = erase_sector_jedec,
5345 }, {
5346 .eraseblocks = { {16 * 1024 * 1024, 1} },
5347 .block_erase = erase_chip_block_jedec,
5348 },
5349 },
5350 .write = write_jedec_1,
5351 .read = read_memmapped,
5352 .voltage = {2700, 3600},
5353 },
5354
5355 {
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005356 .vendor = "ESI",
5357 .name = "ES25P40",
5358 .bustype = BUS_SPI,
5359 .manufacture_id = EXCEL_ID_NOPREFIX,
5360 .model_id = EXCEL_ES25P40,
5361 .total_size = 512,
5362 .page_size = 256,
5363 /* 256-byte paramter page separate from memory array:
5364 * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
5365 .feature_bits = FEATURE_WRSR_WREN,
5366 .tested = TEST_UNTESTED,
5367 .probe = probe_spi_rdid,
5368 .probe_timing = TIMING_ZERO,
5369 .block_erasers =
5370 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00005371 {
5372 .eraseblocks = { {64 * 1024, 8} },
5373 .block_erase = spi_block_erase_d8,
5374 }, {
5375 .eraseblocks = { {512 * 1024, 1} },
5376 .block_erase = spi_block_erase_c7,
5377 }
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005378 },
5379 .printlock = spi_prettyprint_status_register_bp2_srwd,
5380 .unlock = spi_disable_blockprotect_bp2_srwd,
5381 .write = spi_chip_write_256,
5382 .read = spi_chip_read, /* Fast Read (0x0B) supported */
5383 .voltage = {2700, 3600},
5384 },
5385
5386 {
5387 .vendor = "ESI",
5388 .name = "ES25P80",
5389 .bustype = BUS_SPI,
5390 .manufacture_id = EXCEL_ID_NOPREFIX,
5391 .model_id = EXCEL_ES25P80,
5392 .total_size = 1024,
5393 .page_size = 256,
5394 /* 256-byte paramter page separate from memory array:
5395 * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
5396 .feature_bits = FEATURE_WRSR_WREN,
5397 .tested = TEST_UNTESTED,
5398 .probe = probe_spi_rdid,
5399 .probe_timing = TIMING_ZERO,
5400 .block_erasers =
5401 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00005402 {
5403 .eraseblocks = { {64 * 1024, 16} },
5404 .block_erase = spi_block_erase_d8,
5405 }, {
5406 .eraseblocks = { {1024 * 1024, 1} },
5407 .block_erase = spi_block_erase_c7,
5408 }
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005409 },
5410 .printlock = spi_prettyprint_status_register_bp2_srwd,
5411 .unlock = spi_disable_blockprotect_bp2_srwd,
5412 .write = spi_chip_write_256,
5413 .read = spi_chip_read, /* Fast Read (0x0B) supported */
5414 .voltage = {2700, 3600},
5415 },
5416
5417 {
5418 .vendor = "ESI",
5419 .name = "ES25P16",
5420 .bustype = BUS_SPI,
5421 .manufacture_id = EXCEL_ID_NOPREFIX,
5422 .model_id = EXCEL_ES25P16,
5423 .total_size = 2 * 1024,
5424 .page_size = 256,
5425 /* 256-byte paramter page separate from memory array:
5426 * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
5427 .feature_bits = FEATURE_WRSR_WREN,
5428 .tested = TEST_UNTESTED,
5429 .probe = probe_spi_rdid,
5430 .probe_timing = TIMING_ZERO,
5431 .block_erasers =
5432 {
5433 {
5434 .eraseblocks = { {64 * 1024, 32} },
5435 .block_erase = spi_block_erase_d8,
5436 }, {
5437 .eraseblocks = { {2 * 1024 * 1024, 1} },
5438 .block_erase = spi_block_erase_c7,
5439 }
5440 },
5441 .printlock = spi_prettyprint_status_register_bp2_srwd,
5442 .unlock = spi_disable_blockprotect_bp2_srwd,
5443 .write = spi_chip_write_256,
5444 .read = spi_chip_read, /* Fast Read (0x0B) supported */
5445 .voltage = {2700, 3600},
5446 },
5447
5448 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005449 .vendor = "Fujitsu",
5450 .name = "MBM29F004BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005451 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005452 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005453 .model_id = FUJITSU_MBM29F004BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005454 .total_size = 512,
5455 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005456 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005457 .tested = TEST_UNTESTED,
5458 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005459 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005460 .block_erasers =
5461 {
5462 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005463 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005464 {16 * 1024, 1},
5465 {8 * 1024, 2},
5466 {32 * 1024, 1},
5467 {64 * 1024, 7},
5468 },
Sean Nelson35727f72010-01-28 23:55:12 +00005469 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005470 }, {
5471 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005472 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005473 },
5474 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005475 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005476 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005477 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005478 },
5479
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005480 {
5481 .vendor = "Fujitsu",
5482 .name = "MBM29F004TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005483 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005484 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005485 .model_id = FUJITSU_MBM29F004TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005486 .total_size = 512,
5487 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005488 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005489 .tested = TEST_UNTESTED,
5490 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005491 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005492 .block_erasers =
5493 {
5494 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005495 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005496 {64 * 1024, 7},
5497 {32 * 1024, 1},
5498 {8 * 1024, 2},
5499 {16 * 1024, 1},
5500 },
Sean Nelson35727f72010-01-28 23:55:12 +00005501 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005502 }, {
5503 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005504 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005505 },
5506 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005507 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005508 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005509 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005510 },
5511
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005512 {
Sean Nelson35727f72010-01-28 23:55:12 +00005513 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005514 .vendor = "Fujitsu",
5515 .name = "MBM29F400BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005516 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005517 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005518 .model_id = FUJITSU_MBM29F400BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005519 .total_size = 512,
5520 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005521 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00005522 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005523 .probe = probe_jedec,
5524 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson6b11ad22009-12-23 17:05:59 +00005525 .block_erasers =
5526 {
5527 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005528 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005529 {16 * 1024, 1},
5530 {8 * 1024, 2},
5531 {32 * 1024, 1},
5532 {64 * 1024, 7},
5533 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005534 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005535 }, {
5536 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005537 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005538 },
5539 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005540 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005541 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005542 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00005543 },
5544
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005545 {
5546 .vendor = "Fujitsu",
5547 .name = "MBM29F400TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005548 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005549 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005550 .model_id = FUJITSU_MBM29F400TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005551 .total_size = 512,
5552 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005553 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005554 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005555 .probe = probe_jedec,
5556 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson6b11ad22009-12-23 17:05:59 +00005557 .block_erasers =
5558 {
5559 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005560 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005561 {64 * 1024, 7},
5562 {32 * 1024, 1},
5563 {8 * 1024, 2},
5564 {16 * 1024, 1},
5565 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005566 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005567 }, {
5568 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005569 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005570 },
5571 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005572 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005573 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005574 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00005575 },
5576
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005577 {
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005578 .vendor = "Fujitsu",
5579 .name = "MBM29LV160BE",
5580 .bustype = BUS_PARALLEL,
5581 .manufacture_id = FUJITSU_ID,
5582 .model_id = FUJITSU_MBM29LV160BE,
5583 .total_size = 2 * 1024,
5584 .page_size = 0,
5585 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET,
5586 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005587 .probe = probe_jedec,
5588 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005589 .block_erasers =
5590 {
5591 {
5592 .eraseblocks = {
5593 {16 * 1024, 1},
5594 {8 * 1024, 2},
5595 {32 * 1024, 1},
5596 {64 * 1024, 31},
5597 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005598 .block_erase = erase_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005599 }, {
5600 .eraseblocks = { {2048 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005601 .block_erase = erase_chip_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005602 },
5603 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005604 .write = write_jedec_1, /* Supports a fast mode too */
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005605 .read = read_memmapped,
5606 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */
5607 },
5608
5609 {
5610 .vendor = "Fujitsu",
5611 .name = "MBM29LV160TE",
5612 .bustype = BUS_PARALLEL,
5613 .manufacture_id = FUJITSU_ID,
5614 .model_id = FUJITSU_MBM29LV160TE,
5615 .total_size = 2 * 1024,
5616 .page_size = 0,
5617 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET,
5618 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005619 .probe = probe_jedec,
5620 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005621 .block_erasers =
5622 {
5623 {
5624 .eraseblocks = {
5625 {64 * 1024, 31},
5626 {32 * 1024, 1},
5627 {8 * 1024, 2},
5628 {16 * 1024, 1},
5629 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005630 .block_erase = erase_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005631 }, {
5632 .eraseblocks = { {2048 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005633 .block_erase = erase_chip_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005634 },
5635 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005636 .write = write_jedec_1, /* Supports a fast mode too */
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005637 .read = read_memmapped,
5638 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */
5639 },
5640
5641 {
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005642 .vendor = "GigaDevice",
Roman Titov95edc892015-04-03 21:29:04 +00005643 .name = "GD25LQ40",
5644 .bustype = BUS_SPI,
5645 .manufacture_id = GIGADEVICE_ID,
5646 .model_id = GIGADEVICE_GD25LQ40,
5647 .total_size = 512,
5648 .page_size = 256,
5649 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
5650 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5651 .tested = TEST_UNTESTED,
5652 .probe = probe_spi_rdid,
5653 .probe_timing = TIMING_ZERO,
5654 .block_erasers =
5655 {
5656 {
5657 .eraseblocks = { {4 * 1024, 128} },
5658 .block_erase = spi_block_erase_20,
5659 }, {
5660 .eraseblocks = { {32 * 1024, 16} },
5661 .block_erase = spi_block_erase_52,
5662 }, {
5663 .eraseblocks = { {64 * 1024, 8} },
5664 .block_erase = spi_block_erase_d8,
5665 }, {
5666 .eraseblocks = { {512 * 1024, 1} },
5667 .block_erase = spi_block_erase_60,
5668 }, {
5669 .eraseblocks = { {512 * 1024, 1} },
5670 .block_erase = spi_block_erase_c7,
5671 }
5672 },
5673 .printlock = spi_prettyprint_status_register_bp4_srwd,
5674 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5675 .write = spi_chip_write_256,
5676 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5677 .voltage = {1695, 1950},
5678 },
5679
5680 {
5681 .vendor = "GigaDevice",
5682 .name = "GD25LQ80",
5683 .bustype = BUS_SPI,
5684 .manufacture_id = GIGADEVICE_ID,
5685 .model_id = GIGADEVICE_GD25LQ80,
5686 .total_size = 1024,
5687 .page_size = 256,
5688 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
5689 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5690 .tested = TEST_UNTESTED,
5691 .probe = probe_spi_rdid,
5692 .probe_timing = TIMING_ZERO,
5693 .block_erasers =
5694 {
5695 {
5696 .eraseblocks = { {4 * 1024, 256} },
5697 .block_erase = spi_block_erase_20,
5698 }, {
5699 .eraseblocks = { {32 * 1024, 32} },
5700 .block_erase = spi_block_erase_52,
5701 }, {
5702 .eraseblocks = { {64 * 1024, 16} },
5703 .block_erase = spi_block_erase_d8,
5704 }, {
5705 .eraseblocks = { {1 * 1024 * 1024, 1} },
5706 .block_erase = spi_block_erase_60,
5707 }, {
5708 .eraseblocks = { {1 * 1024 * 1024, 1} },
5709 .block_erase = spi_block_erase_c7,
5710 }
5711 },
5712 .printlock = spi_prettyprint_status_register_bp4_srwd,
5713 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5714 .write = spi_chip_write_256,
5715 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5716 .voltage = {1695, 1950},
5717 },
5718
5719 {
5720 .vendor = "GigaDevice",
5721 .name = "GD25LQ16",
5722 .bustype = BUS_SPI,
5723 .manufacture_id = GIGADEVICE_ID,
5724 .model_id = GIGADEVICE_GD25LQ16,
5725 .total_size = 2048,
5726 .page_size = 256,
5727 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
5728 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5729 .tested = TEST_UNTESTED,
5730 .probe = probe_spi_rdid,
5731 .probe_timing = TIMING_ZERO,
5732 .block_erasers =
5733 {
5734 {
5735 .eraseblocks = { {4 * 1024, 512} },
5736 .block_erase = spi_block_erase_20,
5737 }, {
5738 .eraseblocks = { {32 * 1024, 64} },
5739 .block_erase = spi_block_erase_52,
5740 }, {
5741 .eraseblocks = { {64 * 1024, 32} },
5742 .block_erase = spi_block_erase_d8,
5743 }, {
5744 .eraseblocks = { {2 * 1024 * 1024, 1} },
5745 .block_erase = spi_block_erase_60,
5746 }, {
5747 .eraseblocks = { {2 * 1024 * 1024, 1} },
5748 .block_erase = spi_block_erase_c7,
5749 }
5750 },
5751 .printlock = spi_prettyprint_status_register_bp4_srwd,
5752 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5753 .write = spi_chip_write_256,
5754 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5755 .voltage = {1695, 1950},
5756 },
5757
5758 {
5759 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005760 .name = "GD25LQ32",
5761 .bustype = BUS_SPI,
5762 .manufacture_id = GIGADEVICE_ID,
5763 .model_id = GIGADEVICE_GD25LQ32,
5764 .total_size = 4096,
5765 .page_size = 256,
5766 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
5767 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5768 .tested = TEST_OK_PREW,
5769 .probe = probe_spi_rdid,
5770 .probe_timing = TIMING_ZERO,
5771 .block_erasers =
5772 {
5773 {
5774 .eraseblocks = { {4 * 1024, 1024} },
5775 .block_erase = spi_block_erase_20,
5776 }, {
5777 .eraseblocks = { {32 * 1024, 128} },
5778 .block_erase = spi_block_erase_52,
5779 }, {
5780 .eraseblocks = { {64 * 1024, 64} },
5781 .block_erase = spi_block_erase_d8,
5782 }, {
5783 .eraseblocks = { {4 * 1024 * 1024, 1} },
5784 .block_erase = spi_block_erase_60,
5785 }, {
5786 .eraseblocks = { {4 * 1024 * 1024, 1} },
5787 .block_erase = spi_block_erase_c7,
5788 }
5789 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005790 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005791 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5792 .write = spi_chip_write_256,
Roman Titov95edc892015-04-03 21:29:04 +00005793 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5794 .voltage = {1695, 1950},
5795 },
5796
5797 {
5798 .vendor = "GigaDevice",
5799 .name = "GD25LQ64(B)",
5800 .bustype = BUS_SPI,
5801 .manufacture_id = GIGADEVICE_ID,
5802 .model_id = GIGADEVICE_GD25LQ64,
5803 .total_size = 8192,
5804 .page_size = 256,
5805 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
5806 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +00005807 .tested = TEST_OK_PREW,
Roman Titov95edc892015-04-03 21:29:04 +00005808 .probe = probe_spi_rdid,
5809 .probe_timing = TIMING_ZERO,
5810 .block_erasers =
5811 {
5812 {
5813 .eraseblocks = { {4 * 1024, 2048} },
5814 .block_erase = spi_block_erase_20,
5815 }, {
5816 .eraseblocks = { {32 * 1024, 256} },
5817 .block_erase = spi_block_erase_52,
5818 }, {
5819 .eraseblocks = { {64 * 1024, 128} },
5820 .block_erase = spi_block_erase_d8,
5821 }, {
5822 .eraseblocks = { {8 * 1024 * 1024, 1} },
5823 .block_erase = spi_block_erase_60,
5824 }, {
5825 .eraseblocks = { {8 * 1024 * 1024, 1} },
5826 .block_erase = spi_block_erase_c7,
5827 }
5828 },
5829 .printlock = spi_prettyprint_status_register_bp4_srwd,
5830 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5831 .write = spi_chip_write_256,
5832 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5833 .voltage = {1695, 1950},
5834 },
5835
5836 {
5837 .vendor = "GigaDevice",
5838 .name = "GD25LQ128",
5839 .bustype = BUS_SPI,
5840 .manufacture_id = GIGADEVICE_ID,
5841 .model_id = GIGADEVICE_GD25LQ128,
5842 .total_size = 16384,
5843 .page_size = 256,
5844 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
5845 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5846 .tested = TEST_UNTESTED,
5847 .probe = probe_spi_rdid,
5848 .probe_timing = TIMING_ZERO,
5849 .block_erasers =
5850 {
5851 {
5852 .eraseblocks = { {4 * 1024, 4096} },
5853 .block_erase = spi_block_erase_20,
5854 }, {
5855 .eraseblocks = { {32 * 1024, 512} },
5856 .block_erase = spi_block_erase_52,
5857 }, {
5858 .eraseblocks = { {64 * 1024, 256} },
5859 .block_erase = spi_block_erase_d8,
5860 }, {
5861 .eraseblocks = { {16 * 1024 * 1024, 1} },
5862 .block_erase = spi_block_erase_60,
5863 }, {
5864 .eraseblocks = { {16 * 1024 * 1024, 1} },
5865 .block_erase = spi_block_erase_c7,
5866 }
5867 },
5868 .printlock = spi_prettyprint_status_register_bp4_srwd,
5869 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5870 .write = spi_chip_write_256,
5871 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5872 .voltage = {1695, 1950},
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005873 },
5874
5875 {
5876 .vendor = "GigaDevice",
5877 .name = "GD25Q512",
5878 .bustype = BUS_SPI,
5879 .manufacture_id = GIGADEVICE_ID,
5880 .model_id = GIGADEVICE_GD25Q512,
5881 .total_size = 64,
5882 .page_size = 256,
5883 .feature_bits = FEATURE_WRSR_WREN,
5884 .tested = TEST_UNTESTED,
5885 .probe = probe_spi_rdid,
5886 .probe_timing = TIMING_ZERO,
5887 .block_erasers = {
5888 {
5889 .eraseblocks = { {4 * 1024, 16} },
5890 .block_erase = spi_block_erase_20,
5891 }, {
5892 .eraseblocks = { {32 * 1024, 2} },
5893 .block_erase = spi_block_erase_52,
5894 }, {
5895 .eraseblocks = { {64 * 1024, 1} },
5896 .block_erase = spi_block_erase_60,
5897 }, {
5898 .eraseblocks = { {64 * 1024, 1} },
5899 .block_erase = spi_block_erase_c7,
5900 }
5901 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005902 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005903 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5904 .write = spi_chip_write_256,
5905 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5906 .voltage = {2700, 3600},
5907 },
5908
5909 {
5910 .vendor = "GigaDevice",
5911 .name = "GD25Q10",
5912 .bustype = BUS_SPI,
5913 .manufacture_id = GIGADEVICE_ID,
5914 .model_id = GIGADEVICE_GD25Q10,
5915 .total_size = 128,
5916 .page_size = 256,
5917 .feature_bits = FEATURE_WRSR_WREN,
5918 .tested = TEST_UNTESTED,
5919 .probe = probe_spi_rdid,
5920 .probe_timing = TIMING_ZERO,
5921 .block_erasers = {
5922 {
5923 .eraseblocks = { {4 * 1024, 32} },
5924 .block_erase = spi_block_erase_20,
5925 }, {
5926 .eraseblocks = { {32 * 1024, 4} },
5927 .block_erase = spi_block_erase_52,
5928 }, {
5929 .eraseblocks = { {64 * 1024, 2} },
5930 .block_erase = spi_block_erase_d8,
5931 }, {
5932 .eraseblocks = { {128 * 1024, 1} },
5933 .block_erase = spi_block_erase_60,
5934 }, {
5935 .eraseblocks = { {128 * 1024, 1} },
5936 .block_erase = spi_block_erase_c7,
5937 }
5938 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005939 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005940 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5941 .write = spi_chip_write_256,
5942 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5943 .voltage = {2700, 3600},
5944 },
5945
5946 {
5947 .vendor = "GigaDevice",
5948 .name = "GD25Q20(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005949 .bustype = BUS_SPI,
5950 .manufacture_id = GIGADEVICE_ID,
5951 .model_id = GIGADEVICE_GD25Q20,
5952 .total_size = 256,
5953 .page_size = 256,
5954 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +00005955 .tested = TEST_OK_PREW,
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005956 .probe = probe_spi_rdid,
5957 .probe_timing = TIMING_ZERO,
5958 .block_erasers =
5959 {
5960 {
5961 .eraseblocks = { {4 * 1024, 64} },
5962 .block_erase = spi_block_erase_20,
5963 }, {
5964 .eraseblocks = { {32 * 1024, 8} },
5965 .block_erase = spi_block_erase_52,
5966 }, {
5967 .eraseblocks = { {64 * 1024, 4} },
5968 .block_erase = spi_block_erase_d8,
5969 }, {
5970 .eraseblocks = { {256 * 1024, 1} },
5971 .block_erase = spi_block_erase_60,
5972 }, {
5973 .eraseblocks = { {256 * 1024, 1} },
5974 .block_erase = spi_block_erase_c7,
5975 }
5976 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005977 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005978 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005979 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005980 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Taunereb582572012-09-21 12:52:50 +00005981 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005982 },
5983
5984 {
5985 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005986 .name = "GD25Q40(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005987 .bustype = BUS_SPI,
5988 .manufacture_id = GIGADEVICE_ID,
5989 .model_id = GIGADEVICE_GD25Q40,
5990 .total_size = 512,
5991 .page_size = 256,
5992 .feature_bits = FEATURE_WRSR_WREN,
5993 .tested = TEST_UNTESTED,
5994 .probe = probe_spi_rdid,
5995 .probe_timing = TIMING_ZERO,
5996 .block_erasers =
5997 {
5998 {
5999 .eraseblocks = { {4 * 1024, 128} },
6000 .block_erase = spi_block_erase_20,
6001 }, {
6002 .eraseblocks = { {32 * 1024, 16} },
6003 .block_erase = spi_block_erase_52,
6004 }, {
6005 .eraseblocks = { {64 * 1024, 8} },
6006 .block_erase = spi_block_erase_d8,
6007 }, {
6008 .eraseblocks = { {512 * 1024, 1} },
6009 .block_erase = spi_block_erase_60,
6010 }, {
6011 .eraseblocks = { {512 * 1024, 1} },
6012 .block_erase = spi_block_erase_c7,
6013 }
6014 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006015 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006016 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006017 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006018 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Taunereb582572012-09-21 12:52:50 +00006019 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006020 },
6021
6022 {
6023 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00006024 .name = "GD25Q80(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006025 .bustype = BUS_SPI,
6026 .manufacture_id = GIGADEVICE_ID,
6027 .model_id = GIGADEVICE_GD25Q80,
6028 .total_size = 1024,
6029 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00006030 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006031 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6032 .tested = TEST_OK_PREW,
6033 .probe = probe_spi_rdid,
6034 .probe_timing = TIMING_ZERO,
6035 .block_erasers =
6036 {
6037 {
6038 .eraseblocks = { {4 * 1024, 256} },
6039 .block_erase = spi_block_erase_20,
6040 }, {
6041 .eraseblocks = { {32 * 1024, 32} },
6042 .block_erase = spi_block_erase_52,
6043 }, {
6044 .eraseblocks = { {64 * 1024, 16} },
6045 .block_erase = spi_block_erase_d8,
6046 }, {
6047 .eraseblocks = { {1024 * 1024, 1} },
6048 .block_erase = spi_block_erase_60,
6049 }, {
6050 .eraseblocks = { {1024 * 1024, 1} },
6051 .block_erase = spi_block_erase_c7,
6052 }
6053 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006054 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006055 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006056 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006057 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006058 .voltage = {2700, 3600},
6059 },
6060
6061 {
6062 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006063 .name = "GD25Q16(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006064 .bustype = BUS_SPI,
6065 .manufacture_id = GIGADEVICE_ID,
6066 .model_id = GIGADEVICE_GD25Q16,
6067 .total_size = 2048,
6068 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00006069 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006070 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner6697f712014-08-06 15:09:15 +00006071 .tested = TEST_OK_PREW,
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006072 .probe = probe_spi_rdid,
6073 .probe_timing = TIMING_ZERO,
6074 .block_erasers =
6075 {
6076 {
6077 .eraseblocks = { {4 * 1024, 512} },
6078 .block_erase = spi_block_erase_20,
6079 }, {
6080 .eraseblocks = { {32 * 1024, 64} },
6081 .block_erase = spi_block_erase_52,
6082 }, {
6083 .eraseblocks = { {64 * 1024, 32} },
6084 .block_erase = spi_block_erase_d8,
6085 }, {
6086 .eraseblocks = { {2 * 1024 * 1024, 1} },
6087 .block_erase = spi_block_erase_60,
6088 }, {
6089 .eraseblocks = { {2 * 1024 * 1024, 1} },
6090 .block_erase = spi_block_erase_c7,
6091 }
6092 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006093 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006094 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006095 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006096 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006097 .voltage = {2700, 3600},
6098 },
6099
6100 {
6101 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00006102 .name = "GD25Q32(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006103 .bustype = BUS_SPI,
6104 .manufacture_id = GIGADEVICE_ID,
6105 .model_id = GIGADEVICE_GD25Q32,
6106 .total_size = 4096,
6107 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00006108 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006109 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00006110 .tested = TEST_OK_PREW,
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006111 .probe = probe_spi_rdid,
6112 .probe_timing = TIMING_ZERO,
6113 .block_erasers =
6114 {
6115 {
6116 .eraseblocks = { {4 * 1024, 1024} },
6117 .block_erase = spi_block_erase_20,
6118 }, {
6119 .eraseblocks = { {32 * 1024, 128} },
6120 .block_erase = spi_block_erase_52,
6121 }, {
6122 .eraseblocks = { {64 * 1024, 64} },
6123 .block_erase = spi_block_erase_d8,
6124 }, {
6125 .eraseblocks = { {4 * 1024 * 1024, 1} },
6126 .block_erase = spi_block_erase_60,
6127 }, {
6128 .eraseblocks = { {4 * 1024 * 1024, 1} },
6129 .block_erase = spi_block_erase_c7,
6130 }
6131 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006132 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006133 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006134 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006135 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006136 .voltage = {2700, 3600},
6137 },
6138
6139 {
6140 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00006141 .name = "GD25Q64(B)",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006142 .bustype = BUS_SPI,
6143 .manufacture_id = GIGADEVICE_ID,
6144 .model_id = GIGADEVICE_GD25Q64,
6145 .total_size = 8192,
6146 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00006147 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006148 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunereb582572012-09-21 12:52:50 +00006149 .tested = TEST_OK_PREW,
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006150 .probe = probe_spi_rdid,
6151 .probe_timing = TIMING_ZERO,
6152 .block_erasers =
6153 {
6154 {
6155 .eraseblocks = { {4 * 1024, 2048} },
6156 .block_erase = spi_block_erase_20,
6157 }, {
6158 .eraseblocks = { {32 * 1024, 256} },
6159 .block_erase = spi_block_erase_52,
6160 }, {
6161 .eraseblocks = { {64 * 1024, 128} },
6162 .block_erase = spi_block_erase_d8,
6163 }, {
6164 .eraseblocks = { {8 * 1024 * 1024, 1} },
6165 .block_erase = spi_block_erase_60,
6166 }, {
6167 .eraseblocks = { {8 * 1024 * 1024, 1} },
6168 .block_erase = spi_block_erase_c7,
6169 }
6170 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006171 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006172 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006173 .write = spi_chip_write_256,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006174 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Tauner352e50b2013-02-22 15:58:45 +00006175 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006176 },
6177
6178 {
6179 .vendor = "GigaDevice",
Stefan Tauner352e50b2013-02-22 15:58:45 +00006180 .name = "GD25Q128B",
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006181 .bustype = BUS_SPI,
6182 .manufacture_id = GIGADEVICE_ID,
6183 .model_id = GIGADEVICE_GD25Q128,
6184 .total_size = 16384,
6185 .page_size = 256,
Stefan Tauner352e50b2013-02-22 15:58:45 +00006186 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006187 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6188 .tested = TEST_UNTESTED,
6189 .probe = probe_spi_rdid,
6190 .probe_timing = TIMING_ZERO,
6191 .block_erasers =
6192 {
6193 {
6194 .eraseblocks = { {4 * 1024, 4096} },
6195 .block_erase = spi_block_erase_20,
6196 }, {
6197 .eraseblocks = { {32 * 1024, 512} },
6198 .block_erase = spi_block_erase_52,
6199 }, {
6200 .eraseblocks = { {64 * 1024, 256} },
6201 .block_erase = spi_block_erase_d8,
6202 }, {
6203 .eraseblocks = { {16 * 1024 * 1024, 1} },
6204 .block_erase = spi_block_erase_60,
6205 }, {
6206 .eraseblocks = { {16 * 1024 * 1024, 1} },
6207 .block_erase = spi_block_erase_c7,
6208 }
6209 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006210 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006211 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6212 .write = spi_chip_write_256,
6213 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6214 .voltage = {2700, 3600},
6215 },
6216
6217 {
6218 .vendor = "GigaDevice",
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006219 .name = "GD25Q128C",
6220 .bustype = BUS_SPI,
6221 .manufacture_id = GIGADEVICE_ID,
6222 .model_id = GIGADEVICE_GD25Q128,
6223 .total_size = 16384,
6224 .page_size = 256,
6225 /* OTP: 1536B total; read 0x48; write 0x42, erase 0x44 */
6226 /* QPI: enable 0x38, disable 0xFF */
6227 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6228 .tested = TEST_UNTESTED,
6229 .probe = probe_spi_rdid,
6230 .probe_timing = TIMING_ZERO,
6231 .block_erasers =
6232 {
6233 {
6234 .eraseblocks = { {4 * 1024, 4096} },
6235 .block_erase = spi_block_erase_20,
6236 }, {
6237 .eraseblocks = { {32 * 1024, 512} },
6238 .block_erase = spi_block_erase_52,
6239 }, {
6240 .eraseblocks = { {64 * 1024, 256} },
6241 .block_erase = spi_block_erase_d8,
6242 }, {
6243 .eraseblocks = { {16 * 1024 * 1024, 1} },
6244 .block_erase = spi_block_erase_60,
6245 }, {
6246 .eraseblocks = { {16 * 1024 * 1024, 1} },
6247 .block_erase = spi_block_erase_c7,
6248 }
6249 },
6250 /* TODO: 2nd status reg (read 0x35, write 0x31) and 3rd status reg (read 0x15, write 0x11) */
6251 .printlock = spi_prettyprint_status_register_bp4_srwd,
6252 .unlock = spi_disable_blockprotect_bp4_srwd,
6253 .write = spi_chip_write_256,
6254 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6255 .voltage = {2700, 3600},
6256 },
6257
6258 {
6259 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006260 .name = "GD25T80",
6261 .bustype = BUS_SPI,
6262 .manufacture_id = GIGADEVICE_ID,
6263 .model_id = GIGADEVICE_GD25T80,
6264 .total_size = 1024,
6265 .page_size = 256,
6266 /* OTP: 256B total; enter 0x3A */
6267 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6268 .tested = TEST_UNTESTED,
6269 .probe = probe_spi_rdid,
6270 .probe_timing = TIMING_ZERO,
6271 .block_erasers = {
6272 {
6273 .eraseblocks = { {4 * 1024, 256} },
6274 .block_erase = spi_block_erase_20,
6275 }, {
6276 .eraseblocks = { {64 * 1024, 16} },
6277 .block_erase = spi_block_erase_52,
6278 }, {
6279 .eraseblocks = { {64 * 1024, 16} },
6280 .block_erase = spi_block_erase_d8,
6281 }, {
6282 .eraseblocks = { {1024 * 1024, 1} },
6283 .block_erase = spi_block_erase_60,
6284 }, {
6285 .eraseblocks = { {1024 * 1024, 1} },
6286 .block_erase = spi_block_erase_c7,
6287 }
6288 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006289 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006290 .unlock = spi_disable_blockprotect,
6291 .write = spi_chip_write_256,
6292 .read = spi_chip_read,
Stefan Tauner352e50b2013-02-22 15:58:45 +00006293 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006294 },
6295
6296 {
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006297 .vendor = "GigaDevice",
Hatim Kanchwalad0595352016-03-06 14:33:49 +00006298 .name = "GD25VQ21B",
6299 .bustype = BUS_SPI,
6300 .manufacture_id = GIGADEVICE_ID,
6301 .model_id = GIGADEVICE_GD25VQ21B,
6302 .total_size = 256,
6303 .page_size = 256,
6304 /* OTP: 1536B total; read 0x48, write 0x42, erase 0x44 */
6305 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6306 .tested = TEST_UNTESTED,
6307 .probe = probe_spi_rdid,
6308 .probe_timing = TIMING_ZERO,
6309 .block_erasers =
6310 {
6311 {
6312 .eraseblocks = { { 4 * 1024, 64} },
6313 .block_erase = spi_block_erase_20,
6314 }, {
6315 .eraseblocks = { { 32 * 1024, 8} },
6316 .block_erase = spi_block_erase_52,
6317 }, {
6318 .eraseblocks = { { 64 * 1024, 4} },
6319 .block_erase = spi_block_erase_d8,
6320 }, {
6321 .eraseblocks = { {256 * 1024, 1} },
6322 .block_erase = spi_block_erase_60,
6323 }, {
6324 .eraseblocks = { {256 * 1024, 1} },
6325 .block_erase = spi_block_erase_c7,
6326 }
6327 },
6328 .printlock = spi_prettyprint_status_register_bp4_srwd,
6329 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6330 .write = spi_chip_write_256,
6331 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6332 .voltage = {2300, 3600},
6333 },
6334
6335 {
6336 .vendor = "GigaDevice",
6337 .name = "GD25VQ40C",
6338 .bustype = BUS_SPI,
6339 .manufacture_id = GIGADEVICE_ID,
6340 .model_id = GIGADEVICE_GD25VQ41B,
6341 .total_size = 512,
6342 .page_size = 256,
6343 /* Supports SFDP */
6344 /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */
6345 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6346 .tested = TEST_UNTESTED,
6347 .probe = probe_spi_rdid,
6348 .probe_timing = TIMING_ZERO,
6349 .block_erasers =
6350 {
6351 {
6352 .eraseblocks = { { 4 * 1024, 128} },
6353 .block_erase = spi_block_erase_20,
6354 }, {
6355 .eraseblocks = { { 32 * 1024, 16} },
6356 .block_erase = spi_block_erase_52,
6357 }, {
6358 .eraseblocks = { { 64 * 1024, 8} },
6359 .block_erase = spi_block_erase_d8,
6360 }, {
6361 .eraseblocks = { {512 * 1024, 1} },
6362 .block_erase = spi_block_erase_60,
6363 }, {
6364 .eraseblocks = { {512 * 1024, 1} },
6365 .block_erase = spi_block_erase_c7,
6366 }
6367 },
6368 .printlock = spi_prettyprint_status_register_bp4_srwd,
6369 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6370 .write = spi_chip_write_256,
6371 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6372 .voltage = {2300, 3600},
6373 },
6374
6375 {
6376 .vendor = "GigaDevice",
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006377 .name = "GD25VQ41B",
6378 .bustype = BUS_SPI,
6379 .manufacture_id = GIGADEVICE_ID,
6380 .model_id = GIGADEVICE_GD25VQ41B,
6381 .total_size = 512,
6382 .page_size = 256,
6383 /* OTP: 1536B total; read 0x48, write 0x42, erase 0x44 */
6384 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner0be072c2016-03-13 15:16:30 +00006385 .tested = TEST_OK_PREW,
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006386 .probe = probe_spi_rdid,
6387 .probe_timing = TIMING_ZERO,
Stefan Tauner0be072c2016-03-13 15:16:30 +00006388 .block_erasers =
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006389 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00006390 {
6391 .eraseblocks = { { 4 * 1024, 128} },
6392 .block_erase = spi_block_erase_20,
6393 }, {
6394 .eraseblocks = { { 32 * 1024, 16} },
6395 .block_erase = spi_block_erase_52,
6396 }, {
6397 .eraseblocks = { { 64 * 1024, 8} },
6398 .block_erase = spi_block_erase_d8,
6399 }, {
6400 .eraseblocks = { {512 * 1024, 1} },
6401 .block_erase = spi_block_erase_60,
6402 }, {
6403 .eraseblocks = { {512 * 1024, 1} },
6404 .block_erase = spi_block_erase_c7,
6405 }
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006406 },
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006407 .printlock = spi_prettyprint_status_register_bp4_srwd,
Hatim Kanchwalad0595352016-03-06 14:33:49 +00006408 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6409 .write = spi_chip_write_256,
6410 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6411 .voltage = {2300, 3600},
6412 },
6413
6414 {
6415 .vendor = "GigaDevice",
6416 .name = "GD25VQ80C",
6417 .bustype = BUS_SPI,
6418 .manufacture_id = GIGADEVICE_ID,
6419 .model_id = GIGADEVICE_GD25VQ80C,
6420 .total_size = 1024,
6421 .page_size = 256,
6422 /* Supports SFDP */
6423 /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */
6424 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6425 .tested = TEST_UNTESTED,
6426 .probe = probe_spi_rdid,
6427 .probe_timing = TIMING_ZERO,
6428 .block_erasers =
6429 {
6430 {
6431 .eraseblocks = { { 4 * 1024, 256} },
6432 .block_erase = spi_block_erase_20,
6433 }, {
6434 .eraseblocks = { { 32 * 1024, 32} },
6435 .block_erase = spi_block_erase_52,
6436 }, {
6437 .eraseblocks = { { 64 * 1024, 16} },
6438 .block_erase = spi_block_erase_d8,
6439 }, {
6440 .eraseblocks = { {1024 * 1024, 1} },
6441 .block_erase = spi_block_erase_60,
6442 }, {
6443 .eraseblocks = { {1024 * 1024, 1} },
6444 .block_erase = spi_block_erase_c7,
6445 }
6446 },
6447 .printlock = spi_prettyprint_status_register_bp4_srwd,
6448 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6449 .write = spi_chip_write_256,
6450 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6451 .voltage = {2300, 3600},
6452 },
6453
6454 {
6455 .vendor = "GigaDevice",
6456 .name = "GD25VQ16C",
6457 .bustype = BUS_SPI,
6458 .manufacture_id = GIGADEVICE_ID,
6459 .model_id = GIGADEVICE_GD25VQ16C,
6460 .total_size = 2 * 1024,
6461 .page_size = 256,
6462 /* Supports SFDP */
6463 /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */
6464 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6465 .tested = TEST_UNTESTED,
6466 .probe = probe_spi_rdid,
6467 .probe_timing = TIMING_ZERO,
6468 .block_erasers =
6469 {
6470 {
6471 .eraseblocks = { { 4 * 1024, 512} },
6472 .block_erase = spi_block_erase_20,
6473 }, {
6474 .eraseblocks = { { 32 * 1024, 64} },
6475 .block_erase = spi_block_erase_52,
6476 }, {
6477 .eraseblocks = { { 64 * 1024, 32} },
6478 .block_erase = spi_block_erase_d8,
6479 }, {
6480 .eraseblocks = { {2 * 1024 * 1024, 1} },
6481 .block_erase = spi_block_erase_60,
6482 }, {
6483 .eraseblocks = { {2 * 1024 * 1024, 1} },
6484 .block_erase = spi_block_erase_c7,
6485 }
6486 },
6487 .printlock = spi_prettyprint_status_register_bp4_srwd,
6488 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006489 .write = spi_chip_write_256,
6490 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6491 .voltage = {2300, 3600},
6492 },
6493
6494 {
David Borgc96a8bd2010-06-21 16:12:22 +00006495 .vendor = "Hyundai",
6496 .name = "HY29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006497 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00006498 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006499 .model_id = HYUNDAI_HY29F002T,
David Borgc96a8bd2010-06-21 16:12:22 +00006500 .total_size = 256,
6501 .page_size = 256 * 1024,
6502 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006503 .tested = TEST_OK_PRE,
David Borgc96a8bd2010-06-21 16:12:22 +00006504 .probe = probe_jedec,
6505 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6506 .block_erasers =
6507 {
6508 {
6509 .eraseblocks = {
6510 {64 * 1024, 3},
6511 {32 * 1024, 1},
6512 {8 * 1024, 2},
6513 {16 * 1024, 1},
6514 },
6515 .block_erase = erase_sector_jedec,
6516 }, {
6517 .eraseblocks = { {256 * 1024, 1} },
6518 .block_erase = erase_chip_block_jedec,
6519 },
6520 },
6521 .write = write_jedec_1,
6522 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006523 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00006524 },
6525
6526 {
6527 .vendor = "Hyundai",
6528 .name = "HY29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006529 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00006530 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006531 .model_id = HYUNDAI_HY29F002B,
David Borgc96a8bd2010-06-21 16:12:22 +00006532 .total_size = 256,
6533 .page_size = 256 * 1024,
6534 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
6535 .tested = TEST_UNTESTED,
6536 .probe = probe_jedec,
6537 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6538 .block_erasers =
6539 {
6540 {
6541 .eraseblocks = {
6542 {16 * 1024, 1},
6543 {8 * 1024, 2},
6544 {32 * 1024, 1},
6545 {64 * 1024, 3},
6546 },
6547 .block_erase = erase_sector_jedec,
6548 }, {
6549 .eraseblocks = { {256 * 1024, 1} },
6550 .block_erase = erase_chip_block_jedec,
6551 },
6552 },
6553 .write = write_jedec_1,
6554 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006555 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00006556 },
6557
6558 {
Joshua Roysf1324e02010-09-16 00:51:51 +00006559 .vendor = "Hyundai",
6560 .name = "HY29F040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006561 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00006562 .manufacture_id = HYUNDAI_ID,
6563 .model_id = HYUNDAI_HY29F040A,
6564 .total_size = 512,
6565 .page_size = 64 * 1024,
6566 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
6567 .tested = TEST_UNTESTED,
6568 .probe = probe_jedec,
6569 .probe_timing = TIMING_ZERO,
6570 .block_erasers =
6571 {
6572 {
6573 .eraseblocks = { {64 * 1024, 8} },
6574 .block_erase = erase_sector_jedec,
6575 }, {
6576 .eraseblocks = { {512 * 1024, 1} },
6577 .block_erase = erase_chip_block_jedec,
6578 },
6579 },
6580 .write = write_jedec_1,
6581 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006582 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00006583 },
6584
6585 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006586 .vendor = "Intel",
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00006587 .name = "25F160S33B8",
6588 .bustype = BUS_SPI,
6589 .manufacture_id = INTEL_ID,
6590 .model_id = INTEL_25F160S33B8,
6591 .total_size = 2048,
6592 .page_size = 256,
6593 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
6594 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6595 .tested = TEST_UNTESTED,
6596 .probe = probe_spi_rdid,
6597 .probe_timing = TIMING_ZERO,
6598 .block_erasers =
6599 {
6600 {
6601 /* This chip supports erasing of the 8 so-called "parameter blocks" with
6602 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
6603 * have no effect on the memory contents, but sets a flag in the SR.
6604 .eraseblocks = {
6605 {8 * 1024, 8},
6606 {64 * 1024, 31} // inaccessible
6607 },
6608 .block_erase = spi_block_erase_40,
6609 }, { */
6610 .eraseblocks = { {64 * 1024, 32} },
6611 .block_erase = spi_block_erase_d8,
6612 }, {
6613 .eraseblocks = { {2 * 1024 * 1024, 1} },
6614 .block_erase = spi_block_erase_c7,
6615 }
6616 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00006617 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
6618 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00006619 .write = spi_chip_write_256,
6620 .read = spi_chip_read, /* also fast read 0x0B */
6621 .voltage = {2700, 3600},
6622 },
6623
6624 {
6625 .vendor = "Intel",
6626 .name = "25F160S33T8",
6627 .bustype = BUS_SPI,
6628 .manufacture_id = INTEL_ID,
6629 .model_id = INTEL_25F160S33T8,
6630 .total_size = 2048,
6631 .page_size = 256,
6632 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
6633 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6634 .tested = TEST_UNTESTED,
6635 .probe = probe_spi_rdid,
6636 .probe_timing = TIMING_ZERO,
6637 .block_erasers =
6638 {
6639 {
6640 /* This chip supports erasing of the 8 so-called "parameter blocks" with
6641 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
6642 * have no effect on the memory contents, but sets a flag in the SR.
6643 .eraseblocks = {
6644 {64 * 1024, 31}, // inaccessible
6645 {8 * 1024, 8}
6646 },
6647 .block_erase = spi_block_erase_40,
6648 }, { */
6649 .eraseblocks = { {64 * 1024, 32} },
6650 .block_erase = spi_block_erase_d8,
6651 }, {
6652 .eraseblocks = { {2 * 1024 * 1024, 1} },
6653 .block_erase = spi_block_erase_c7,
6654 }
6655 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00006656 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
6657 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00006658 .write = spi_chip_write_256,
6659 .read = spi_chip_read, /* also fast read 0x0B */
6660 .voltage = {2700, 3600},
6661 },
6662
6663 {
6664 .vendor = "Intel",
6665 .name = "25F320S33B8",
6666 .bustype = BUS_SPI,
6667 .manufacture_id = INTEL_ID,
6668 .model_id = INTEL_25F320S33B8,
6669 .total_size = 4096,
6670 .page_size = 256,
6671 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
6672 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6673 .tested = TEST_UNTESTED,
6674 .probe = probe_spi_rdid,
6675 .probe_timing = TIMING_ZERO,
6676 .block_erasers =
6677 {
6678 {
6679 /* This chip supports erasing of the 8 so-called "parameter blocks" with
6680 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
6681 * have no effect on the memory contents, but sets a flag in the SR.
6682 .eraseblocks = {
6683 {8 * 1024, 8},
6684 {64 * 1024, 63} // inaccessible
6685 },
6686 .block_erase = spi_block_erase_40,
6687 }, { */
6688 .eraseblocks = { {64 * 1024, 64} },
6689 .block_erase = spi_block_erase_d8,
6690 }, {
6691 .eraseblocks = { {4 * 1024 * 1024, 1} },
6692 .block_erase = spi_block_erase_c7,
6693 }
6694 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00006695 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
6696 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00006697 .write = spi_chip_write_256,
6698 .read = spi_chip_read, /* also fast read 0x0B */
6699 .voltage = {2700, 3600},
6700 },
6701
6702 {
6703 .vendor = "Intel",
6704 .name = "25F320S33T8",
6705 .bustype = BUS_SPI,
6706 .manufacture_id = INTEL_ID,
6707 .model_id = INTEL_25F320S33T8,
6708 .total_size = 4096,
6709 .page_size = 256,
6710 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
6711 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6712 .tested = TEST_UNTESTED,
6713 .probe = probe_spi_rdid,
6714 .probe_timing = TIMING_ZERO,
6715 .block_erasers =
6716 {
6717 {
6718 /* This chip supports erasing of the 8 so-called "parameter blocks" with
6719 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
6720 * have no effect on the memory contents, but sets a flag in the SR.
6721 .eraseblocks = {
6722 {64 * 1024, 63}, // inaccessible
6723 {8 * 1024, 8}
6724 },
6725 .block_erase = spi_block_erase_40,
6726 }, { */
6727 .eraseblocks = { {64 * 1024, 64} },
6728 .block_erase = spi_block_erase_d8,
6729 }, {
6730 .eraseblocks = { {4 * 1024 * 1024, 1} },
6731 .block_erase = spi_block_erase_c7,
6732 }
6733 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00006734 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
6735 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00006736 .write = spi_chip_write_256,
6737 .read = spi_chip_read, /* also fast read 0x0B */
6738 .voltage = {2700, 3600},
6739 },
6740
6741 {
6742 .vendor = "Intel",
6743 .name = "25F640S33B8",
6744 .bustype = BUS_SPI,
6745 .manufacture_id = INTEL_ID,
6746 .model_id = INTEL_25F640S33B8,
6747 .total_size = 8192,
6748 .page_size = 256,
6749 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
6750 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6751 .tested = TEST_UNTESTED,
6752 .probe = probe_spi_rdid,
6753 .probe_timing = TIMING_ZERO,
6754 .block_erasers =
6755 {
6756 {
6757 /* This chip supports erasing of the 8 so-called "parameter blocks" with
6758 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
6759 * have no effect on the memory contents, but sets a flag in the SR.
6760 .eraseblocks = {
6761 {8 * 1024, 8},
6762 {64 * 1024, 127} // inaccessible
6763 },
6764 .block_erase = spi_block_erase_40,
6765 }, { */
6766 .eraseblocks = { {64 * 1024, 128} },
6767 .block_erase = spi_block_erase_d8,
6768 }, {
6769 .eraseblocks = { {8 * 1024 * 1024, 1} },
6770 .block_erase = spi_block_erase_c7,
6771 }
6772 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00006773 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
6774 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00006775 .write = spi_chip_write_256,
6776 .read = spi_chip_read, /* also fast read 0x0B */
6777 .voltage = {2700, 3600},
6778 },
6779
6780 {
6781 .vendor = "Intel",
6782 .name = "25F640S33T8",
6783 .bustype = BUS_SPI,
6784 .manufacture_id = INTEL_ID,
6785 .model_id = INTEL_25F640S33T8,
6786 .total_size = 8192,
6787 .page_size = 256,
6788 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
6789 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6790 .tested = TEST_UNTESTED,
6791 .probe = probe_spi_rdid,
6792 .probe_timing = TIMING_ZERO,
6793 .block_erasers =
6794 {
6795 {
6796 /* This chip supports erasing of the 8 so-called "parameter blocks" with
6797 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
6798 * have no effect on the memory contents, but sets a flag in the SR.
6799 .eraseblocks = {
6800 {64 * 1024, 127}, // inaccessible
6801 {8 * 1024, 8}
6802 },
6803 .block_erase = spi_block_erase_40,
6804 }, { */
6805 .eraseblocks = { {64 * 1024, 128} },
6806 .block_erase = spi_block_erase_d8,
6807 }, {
6808 .eraseblocks = { {8 * 1024 * 1024, 1} },
6809 .block_erase = spi_block_erase_c7,
6810 }
6811 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +00006812 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
6813 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
Stefan Tauner54aaa4a2012-12-29 15:04:12 +00006814 .write = spi_chip_write_256,
6815 .read = spi_chip_read, /* also fast read 0x0B */
6816 .voltage = {2700, 3600},
6817 },
6818
6819 {
6820 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006821 .name = "28F001BN/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006822 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006823 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006824 .model_id = INTEL_28F001B,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006825 .total_size = 128,
6826 .page_size = 128 * 1024, /* 8k + 2x4k + 112k */
Sean Nelsondee4a832010-03-22 04:39:31 +00006827 .tested = TEST_UNTESTED,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006828 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006829 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00006830 .block_erasers =
6831 {
6832 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006833 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00006834 {8 * 1024, 1},
6835 {4 * 1024, 2},
6836 {112 * 1024, 1},
6837 },
Sean Nelson28accc22010-03-19 18:47:06 +00006838 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00006839 },
6840 },
Sean Nelsondee4a832010-03-22 04:39:31 +00006841 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006842 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006843 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006844 },
6845
6846 {
6847 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006848 .name = "28F001BN/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006849 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006850 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006851 .model_id = INTEL_28F001T,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006852 .total_size = 128,
6853 .page_size = 128 * 1024, /* 112k + 2x4k + 8k */
Stefan Tauner23e10b82016-01-23 16:16:49 +00006854 .tested = TEST_OK_PREW,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006855 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006856 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00006857 .block_erasers =
6858 {
6859 {
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006860 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00006861 {112 * 1024, 1},
6862 {4 * 1024, 2},
6863 {8 * 1024, 1},
6864 },
Sean Nelson28accc22010-03-19 18:47:06 +00006865 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00006866 },
6867 },
Sean Nelsondee4a832010-03-22 04:39:31 +00006868 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006869 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006870 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00006871 },
6872
6873 {
6874 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006875 .name = "28F002BC/BL/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006876 .bustype = BUS_PARALLEL,
Joshua Roysd97c0e02010-07-22 15:20:43 +00006877 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006878 .model_id = INTEL_28F002T,
Joshua Roysd97c0e02010-07-22 15:20:43 +00006879 .total_size = 256,
6880 .page_size = 256 * 1024,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006881 .tested = TEST_OK_PRE,
Joshua Roysd97c0e02010-07-22 15:20:43 +00006882 .probe = probe_82802ab,
6883 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6884 .block_erasers =
6885 {
6886 {
6887 .eraseblocks = {
6888 {128 * 1024, 1},
6889 {96 * 1024, 1},
6890 {8 * 1024, 2},
6891 {16 * 1024, 1},
6892 },
6893 .block_erase = erase_block_82802ab,
6894 },
6895 },
6896 .write = write_82802ab,
6897 .read = read_memmapped,
6898 },
6899
6900 {
6901 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006902 .name = "28F008S3/S5/SC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006903 .bustype = BUS_PARALLEL,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00006904 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006905 .model_id = INTEL_28F004S3,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00006906 .total_size = 512,
6907 .page_size = 256,
6908 .tested = TEST_UNTESTED,
6909 .probe = probe_82802ab,
6910 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00006911 .block_erasers =
6912 {
6913 {
6914 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00006915 .block_erase = erase_block_82802ab,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00006916 },
6917 },
Sean Nelsondee4a832010-03-22 04:39:31 +00006918 .unlock = unlock_28f004s5,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00006919 .write = write_82802ab,
6920 .read = read_memmapped,
6921 },
6922
6923 {
6924 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006925 .name = "28F004B5/BE/BV/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006926 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00006927 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006928 .model_id = INTEL_28F004B,
Michael Karcherad0010a2010-04-03 10:27:08 +00006929 .total_size = 512,
6930 .page_size = 128 * 1024, /* maximal block size */
6931 .tested = TEST_UNTESTED,
6932 .probe = probe_82802ab,
6933 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6934 .block_erasers =
6935 {
6936 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006937 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00006938 {16 * 1024, 1},
6939 {8 * 1024, 2},
6940 {96 * 1024, 1},
6941 {128 * 1024, 3},
6942 },
6943 .block_erase = erase_block_82802ab,
6944 },
6945 },
6946 .write = write_82802ab,
6947 .read = read_memmapped,
6948 },
6949
6950 {
6951 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006952 .name = "28F004B5/BE/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006953 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00006954 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006955 .model_id = INTEL_28F004T,
Michael Karcherad0010a2010-04-03 10:27:08 +00006956 .total_size = 512,
6957 .page_size = 128 * 1024, /* maximal block size */
6958 .tested = TEST_UNTESTED,
6959 .probe = probe_82802ab,
6960 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6961 .block_erasers =
6962 {
6963 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006964 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00006965 {128 * 1024, 3},
6966 {96 * 1024, 1},
6967 {8 * 1024, 2},
6968 {16 * 1024, 1},
6969 },
6970 .block_erase = erase_block_82802ab,
6971 },
6972 },
6973 .write = write_82802ab,
6974 .read = read_memmapped,
6975 },
6976
6977 {
6978 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006979 .name = "28F400BV/BX/CE/CV-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006980 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00006981 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00006982 .model_id = INTEL_28F400B,
Michael Karcherad0010a2010-04-03 10:27:08 +00006983 .total_size = 512,
6984 .page_size = 128 * 1024, /* maximal block size */
6985 .feature_bits = FEATURE_ADDR_SHIFTED,
6986 .tested = TEST_UNTESTED,
6987 .probe = probe_82802ab,
6988 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6989 .block_erasers =
6990 {
6991 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006992 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00006993 {16 * 1024, 1},
6994 {8 * 1024, 2},
6995 {96 * 1024, 1},
6996 {128 * 1024, 3},
6997 },
6998 .block_erase = erase_block_82802ab,
6999 },
7000 },
7001 .write = write_82802ab,
7002 .read = read_memmapped,
7003 },
7004
7005 {
7006 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00007007 .name = "28F400BV/BX/CE/CV-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007008 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00007009 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00007010 .model_id = INTEL_28F400T,
Michael Karcherad0010a2010-04-03 10:27:08 +00007011 .total_size = 512,
7012 .page_size = 128 * 1024, /* maximal block size */
7013 .feature_bits = FEATURE_ADDR_SHIFTED,
7014 .tested = TEST_UNTESTED,
7015 .probe = probe_82802ab,
7016 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7017 .block_erasers =
7018 {
7019 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00007020 .eraseblocks = {
Michael Karcherad0010a2010-04-03 10:27:08 +00007021 {128 * 1024, 3},
7022 {96 * 1024, 1},
7023 {8 * 1024, 2},
7024 {16 * 1024, 1},
7025 },
7026 .block_erase = erase_block_82802ab,
7027 },
7028 },
7029 .write = write_82802ab,
7030 .read = read_memmapped,
7031 },
7032
7033 {
7034 .vendor = "Intel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007035 .name = "82802AB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007036 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007037 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00007038 .model_id = INTEL_82802AB,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007039 .total_size = 512,
7040 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007041 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00007042 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007043 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007044 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00007045 .block_erasers =
7046 {
7047 {
7048 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00007049 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00007050 },
7051 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00007052 .unlock = unlock_regspace2_uniform_64k,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007053 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007054 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007055 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007056 },
7057
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007058 {
7059 .vendor = "Intel",
7060 .name = "82802AC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007061 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007062 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00007063 .model_id = INTEL_82802AC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007064 .total_size = 1024,
7065 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007066 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +00007067 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007068 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007069 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00007070 .block_erasers =
7071 {
7072 {
7073 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +00007074 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00007075 },
7076 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00007077 .unlock = unlock_regspace2_uniform_64k,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007078 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007079 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007080 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007081 },
7082
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007083 {
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007084 .vendor = "ISSI",
David Hendricks3083ed92017-05-02 13:25:56 -07007085 .name = "IS25LP128",
7086 .bustype = BUS_SPI,
7087 .manufacture_id = ISSI_ID_SPI,
7088 .model_id = ISSI_IS25LP128,
7089 .total_size = 16384,
7090 .page_size = 256,
7091 /* OTP: 1024B total; read 0x48; write 0x42 */
7092 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7093 .tested = TEST_OK_PREW,
7094 .probe = probe_spi_rdid,
7095 .probe_timing = TIMING_ZERO,
7096 .block_erasers =
7097 {
7098 {
7099 .eraseblocks = { {4 * 1024, 4096} },
7100 .block_erase = spi_block_erase_20,
7101 }, {
7102 .eraseblocks = { {4 * 1024, 4096} },
7103 .block_erase = spi_block_erase_d7,
7104 }, {
7105 .eraseblocks = { {32 * 1024, 512} },
7106 .block_erase = spi_block_erase_52,
7107 }, {
7108 .eraseblocks = { {64 * 1024, 256} },
7109 .block_erase = spi_block_erase_d8,
7110 }, {
7111 .eraseblocks = { {16 * 1024 * 1024, 1} },
7112 .block_erase = spi_block_erase_60,
7113 }, {
7114 .eraseblocks = { {16 * 1024 * 1024, 1} },
7115 .block_erase = spi_block_erase_c7,
7116 }
7117 },
7118 .unlock = spi_disable_blockprotect,
7119 .write = spi_chip_write_256,
7120 .read = spi_chip_read,
7121 .voltage = {2300, 3600},
7122 },
7123
7124 {
7125 .vendor = "ISSI",
7126 .name = "IS25WP128",
7127 .bustype = BUS_SPI,
7128 .manufacture_id = ISSI_ID_SPI,
7129 .model_id = ISSI_IS25WP128,
7130 .total_size = 16384,
7131 .page_size = 256,
7132 /* OTP: 1024B total; read 0x48; write 0x42 */
7133 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7134 .tested = TEST_OK_PREW,
7135 .probe = probe_spi_rdid,
7136 .probe_timing = TIMING_ZERO,
7137 .block_erasers =
7138 {
7139 {
7140 .eraseblocks = { {4 * 1024, 4096} },
7141 .block_erase = spi_block_erase_20,
7142 }, {
7143 .eraseblocks = { {4 * 1024, 4096} },
7144 .block_erase = spi_block_erase_d7,
7145 }, {
7146 .eraseblocks = { {32 * 1024, 512} },
7147 .block_erase = spi_block_erase_52,
7148 }, {
7149 .eraseblocks = { {64 * 1024, 256} },
7150 .block_erase = spi_block_erase_d8,
7151 }, {
7152 .eraseblocks = { {16 * 1024 * 1024, 1} },
7153 .block_erase = spi_block_erase_60,
7154 }, {
7155 .eraseblocks = { {16 * 1024 * 1024, 1} },
7156 .block_erase = spi_block_erase_c7,
7157 }
7158 },
7159 .unlock = spi_disable_blockprotect,
7160 .write = spi_chip_write_256,
7161 .read = spi_chip_read,
7162 .voltage = {1650, 1950},
7163 },
7164
7165 {
7166 .vendor = "ISSI",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007167 .name = "IS29GL064B",
7168 .bustype = BUS_PARALLEL,
7169 .manufacture_id = ISSI_ID,
7170 .model_id = ISSI_PMC_IS29GL064B,
7171 .total_size = 8192,
7172 .page_size = 128 * 1024, /* actual page size is 16 */
7173 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7174 .tested = TEST_UNTESTED,
7175 .probe = probe_jedec_29gl,
7176 .probe_timing = TIMING_ZERO,
7177 .block_erasers =
7178 {
7179 {
7180 .eraseblocks = {
7181 {8 * 1024, 8},
7182 {64 * 1024, 127},
7183 },
7184 .block_erase = erase_sector_jedec,
7185 }, {
7186 .eraseblocks = { {8 * 1024 * 1024, 1} },
7187 .block_erase = erase_chip_block_jedec,
7188 },
7189 },
7190 .write = write_jedec_1,
7191 .read = read_memmapped,
7192 .voltage = {2700, 3600},
7193 },
7194
7195 {
7196 .vendor = "ISSI",
7197 .name = "IS29GL064T",
7198 .bustype = BUS_PARALLEL,
7199 .manufacture_id = ISSI_ID,
7200 .model_id = ISSI_PMC_IS29GL064T,
7201 .total_size = 8192,
7202 .page_size = 128 * 1024, /* actual page size is 16 */
7203 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7204 .tested = TEST_UNTESTED,
7205 .probe = probe_jedec_29gl,
7206 .probe_timing = TIMING_ZERO,
7207 .block_erasers =
7208 {
7209 {
7210 .eraseblocks = {
7211 {64 * 1024, 127},
7212 {8 * 1024, 8},
7213 },
7214 .block_erase = erase_sector_jedec,
7215 }, {
7216 .eraseblocks = { {8 * 1024 * 1024, 1} },
7217 .block_erase = erase_chip_block_jedec,
7218 },
7219 },
7220 .write = write_jedec_1,
7221 .read = read_memmapped,
7222 .voltage = {2700, 3600},
7223 },
7224
7225 {
7226 .vendor = "ISSI",
7227 .name = "IS29GL064H/L",
7228 .bustype = BUS_PARALLEL,
7229 .manufacture_id = ISSI_ID,
7230 .model_id = ISSI_PMC_IS29GL064HL,
7231 .total_size = 8192,
7232 .page_size = 128 * 1024, /* actual page size is 16 */
7233 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7234 .tested = TEST_UNTESTED,
7235 .probe = probe_jedec_29gl,
7236 .probe_timing = TIMING_ZERO,
7237 .block_erasers =
7238 {
7239 {
7240 .eraseblocks = { {64 * 1024, 128} },
7241 .block_erase = erase_sector_jedec,
7242 }, {
7243 .eraseblocks = { {8 * 1024 * 1024, 1} },
7244 .block_erase = erase_chip_block_jedec,
7245 },
7246 },
7247 .write = write_jedec_1,
7248 .read = read_memmapped,
7249 .voltage = {2700, 3600},
7250 },
7251
7252 {
7253 .vendor = "ISSI",
7254 .name = "IS29GL128H/L",
7255 .bustype = BUS_PARALLEL,
7256 .manufacture_id = ISSI_ID,
7257 .model_id = ISSI_PMC_IS29GL128HL,
7258 .total_size = 16384,
7259 .page_size = 128 * 1024, /* actual page size is 16 */
7260 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7261 .tested = TEST_UNTESTED,
7262 .probe = probe_jedec_29gl,
7263 .probe_timing = TIMING_ZERO,
7264 .block_erasers =
7265 {
7266 {
7267 .eraseblocks = { {128 * 1024, 128} },
7268 .block_erase = erase_sector_jedec,
7269 }, {
7270 .eraseblocks = { {16 * 1024 * 1024, 1} },
7271 .block_erase = erase_chip_block_jedec,
7272 },
7273 },
7274 .write = write_jedec_1,
7275 .read = read_memmapped,
7276 .voltage = {2700, 3600},
7277 },
7278
7279 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007280 .vendor = "Macronix",
Michael Coppola583ea322014-08-20 18:56:35 +00007281 .name = "MX23L1654",
7282 .bustype = BUS_SPI,
7283 .manufacture_id = MACRONIX_ID,
7284 .model_id = MACRONIX_MX23L1654,
7285 .total_size = 2048,
7286 .page_size = 256,
7287 .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA},
7288 .probe = probe_spi_rdid,
7289 .probe_timing = TIMING_ZERO,
7290 .write = NULL, /* MX23L1654 is a mask ROM, so it is read-only */
7291 .read = spi_chip_read, /* Fast read (0x0B) supported */
7292 .voltage = {3000, 3600},
7293 },
7294
7295 {
7296 .vendor = "Macronix",
Michael Coppola4e7f36e2014-05-03 23:01:18 +00007297 .name = "MX23L3254",
7298 .bustype = BUS_SPI,
7299 .manufacture_id = MACRONIX_ID,
7300 .model_id = MACRONIX_MX23L3254,
7301 .total_size = 4096,
7302 .page_size = 256,
Stefan Tauner6455dff2014-05-26 00:36:24 +00007303 .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA},
Michael Coppola4e7f36e2014-05-03 23:01:18 +00007304 .probe = probe_spi_rdid,
7305 .probe_timing = TIMING_ZERO,
7306 .write = NULL, /* MX23L3254 is a mask ROM, so it is read-only */
7307 .read = spi_chip_read, /* Fast read (0x0B) supported */
7308 .voltage = {3000, 3600},
7309 },
7310
7311 {
7312 .vendor = "Macronix",
Michael Coppola583ea322014-08-20 18:56:35 +00007313 .name = "MX23L6454",
7314 .bustype = BUS_SPI,
7315 .manufacture_id = MACRONIX_ID,
7316 .model_id = MACRONIX_MX23L6454,
7317 .total_size = 8192,
7318 .page_size = 256,
Stefan Tauner23e10b82016-01-23 16:16:49 +00007319 .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA},
Michael Coppola583ea322014-08-20 18:56:35 +00007320 .probe = probe_spi_rdid,
7321 .probe_timing = TIMING_ZERO,
7322 .write = NULL, /* MX23L6454 is a mask ROM, so it is read-only */
7323 .read = spi_chip_read, /* Fast read (0x0B) supported */
7324 .voltage = {3000, 3600},
7325 },
7326
7327 {
7328 .vendor = "Macronix",
7329 .name = "MX23L12854",
7330 .bustype = BUS_SPI,
7331 .manufacture_id = MACRONIX_ID,
7332 .model_id = MACRONIX_MX23L12854,
7333 .total_size = 16384,
7334 .page_size = 256,
7335 .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA},
7336 .probe = probe_spi_rdid,
7337 .probe_timing = TIMING_ZERO,
7338 .write = NULL, /* MX23L12854 is a mask ROM, so it is read-only */
7339 .read = spi_chip_read, /* Fast read (0x0B) supported */
7340 .voltage = {3000, 3600},
7341 },
7342
7343 {
7344 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00007345 .name = "MX25L512(E)/MX25V512(C)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007346 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007347 .manufacture_id = MACRONIX_ID,
7348 .model_id = MACRONIX_MX25L512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007349 .total_size = 64,
7350 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007351 /* MX25L512E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00007352 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007353 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007354 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007355 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007356 .block_erasers =
7357 {
7358 {
7359 .eraseblocks = { {4 * 1024, 16} },
7360 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007361 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007362 .eraseblocks = { {64 * 1024, 1} },
7363 .block_erase = spi_block_erase_52,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007364 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007365 .eraseblocks = { {64 * 1024, 1} },
7366 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007367 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007368 .eraseblocks = { {64 * 1024, 1} },
7369 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007370 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007371 .eraseblocks = { {64 * 1024, 1} },
7372 .block_erase = spi_block_erase_c7,
7373 },
7374 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007375 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007376 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007377 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007378 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L512E supports dual I/O */
7379 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V512(C) */
FENG yu ningff692fb2008-12-08 18:15:10 +00007380 },
7381
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007382 {
7383 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00007384 .name = "MX25L1005(C)/MX25L1006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007385 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007386 .manufacture_id = MACRONIX_ID,
7387 .model_id = MACRONIX_MX25L1005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007388 .total_size = 128,
7389 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007390 /* MX25L1006E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00007391 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00007392 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007393 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007394 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007395 .block_erasers =
7396 {
7397 {
7398 .eraseblocks = { {4 * 1024, 32} },
7399 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007400 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007401 .eraseblocks = { {64 * 1024, 2} },
7402 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007403 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007404 .eraseblocks = { {128 * 1024, 1} },
7405 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007406 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007407 .eraseblocks = { {128 * 1024, 1} },
7408 .block_erase = spi_block_erase_c7,
7409 },
7410 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007411 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007412 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007413 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007414 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L1006E supports dual I/O */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007415 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007416 },
7417
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007418 {
7419 .vendor = "Macronix",
Stefan Tauner5c316f92015-02-08 21:57:52 +00007420 .name = "MX25L2005(C)/MX25L2006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007421 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007422 .manufacture_id = MACRONIX_ID,
7423 .model_id = MACRONIX_MX25L2005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007424 .total_size = 256,
7425 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00007426 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007427 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007428 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007429 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007430 .block_erasers =
7431 {
7432 {
7433 .eraseblocks = { {4 * 1024, 64} },
7434 .block_erase = spi_block_erase_20,
7435 }, {
7436 .eraseblocks = { {64 * 1024, 4} },
7437 .block_erase = spi_block_erase_52,
7438 }, {
7439 .eraseblocks = { {64 * 1024, 4} },
7440 .block_erase = spi_block_erase_d8,
7441 }, {
7442 .eraseblocks = { {256 * 1024, 1} },
7443 .block_erase = spi_block_erase_60,
7444 }, {
7445 .eraseblocks = { {256 * 1024, 1} },
7446 .block_erase = spi_block_erase_c7,
7447 },
7448 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007449 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007450 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007451 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007452 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007453 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007454 },
7455
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007456 {
7457 .vendor = "Macronix",
Stefan Tauner5c316f92015-02-08 21:57:52 +00007458 .name = "MX25L4005(A/C)/MX25L4006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007459 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007460 .manufacture_id = MACRONIX_ID,
7461 .model_id = MACRONIX_MX25L4005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007462 .total_size = 512,
7463 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00007464 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +00007465 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007466 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007467 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007468 .block_erasers =
7469 {
7470 {
7471 .eraseblocks = { {4 * 1024, 128} },
7472 .block_erase = spi_block_erase_20,
7473 }, {
7474 .eraseblocks = { {64 * 1024, 8} },
7475 .block_erase = spi_block_erase_52,
7476 }, {
7477 .eraseblocks = { {64 * 1024, 8} },
7478 .block_erase = spi_block_erase_d8,
7479 }, {
7480 .eraseblocks = { {512 * 1024, 1} },
7481 .block_erase = spi_block_erase_60,
7482 }, {
7483 .eraseblocks = { {512 * 1024, 1} },
7484 .block_erase = spi_block_erase_c7,
7485 },
7486 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007487 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007488 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007489 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007490 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007491 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007492 },
7493
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007494 {
7495 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007496 .name = "MX25L8005/MX25L8006E/MX25L8008E/MX25V8005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007497 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007498 .manufacture_id = MACRONIX_ID,
7499 .model_id = MACRONIX_MX25L8005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007500 .total_size = 1024,
7501 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007502 /* MX25L8006E, MX25L8008E support SFDP */
7503 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L8006E, MX25L8008E only) */
David Hendricks67db2eb2010-09-03 03:35:48 +00007504 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +00007505 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007506 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007507 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007508 .block_erasers =
7509 {
7510 {
7511 .eraseblocks = { {4 * 1024, 256} },
7512 .block_erase = spi_block_erase_20,
7513 }, {
7514 .eraseblocks = { {64 * 1024, 16} },
7515 .block_erase = spi_block_erase_52,
7516 }, {
7517 .eraseblocks = { {64 * 1024, 16} },
7518 .block_erase = spi_block_erase_d8,
7519 }, {
7520 .eraseblocks = { {1024 * 1024, 1} },
7521 .block_erase = spi_block_erase_60,
7522 }, {
7523 .eraseblocks = { {1024 * 1024, 1} },
7524 .block_erase = spi_block_erase_c7,
7525 },
7526 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007527 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007528 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007529 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007530 .read = spi_chip_read, /* Fast read (0x0B) supported */
7531 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V8005 */
FENG yu ningff692fb2008-12-08 18:15:10 +00007532 },
7533
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007534 {
7535 .vendor = "Macronix",
7536 .name = "MX25L1605",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007537 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007538 .manufacture_id = MACRONIX_ID,
7539 .model_id = MACRONIX_MX25L1605,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007540 .total_size = 2048,
7541 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00007542 .feature_bits = FEATURE_WRSR_WREN,
Sven Schnelle4bd8a402011-03-07 10:59:06 +00007543 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007544 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007545 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007546 .block_erasers =
7547 {
7548 {
Stefan Tauner226037d2013-03-16 01:22:12 +00007549 .eraseblocks = { {64 * 1024, 32} },
7550 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007551 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00007552 .eraseblocks = { {64 * 1024, 32} },
7553 .block_erase = spi_block_erase_d8,
7554 }, {
7555 .eraseblocks = { {2 * 1024 * 1024, 1} },
7556 .block_erase = spi_block_erase_60,
7557 }, {
7558 .eraseblocks = { {2 * 1024 * 1024, 1} },
7559 .block_erase = spi_block_erase_c7,
7560 },
7561 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007562 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */
Stefan Tauner226037d2013-03-16 01:22:12 +00007563 .unlock = spi_disable_blockprotect,
7564 .write = spi_chip_write_256,
7565 .read = spi_chip_read, /* Fast read (0x0B) supported */
7566 .voltage = {2700, 3600},
7567 },
7568
7569 {
7570 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007571 .name = "MX25L1605A/MX25L1606E/MX25L1608E",
Stefan Tauner226037d2013-03-16 01:22:12 +00007572 .bustype = BUS_SPI,
7573 .manufacture_id = MACRONIX_ID,
7574 .model_id = MACRONIX_MX25L1605,
7575 .total_size = 2048,
7576 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007577 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L1606E and MX25L1608E only) */
Stefan Tauner226037d2013-03-16 01:22:12 +00007578 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7579 .tested = TEST_OK_PREW,
7580 .probe = probe_spi_rdid,
7581 .probe_timing = TIMING_ZERO,
7582 .block_erasers =
7583 {
7584 {
7585 .eraseblocks = { {4 * 1024, 512} },
7586 .block_erase = spi_block_erase_20,
7587 }, {
7588 .eraseblocks = { {64 * 1024, 32} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007589 .block_erase = spi_block_erase_52,
7590 }, {
7591 .eraseblocks = { {64 * 1024, 32} },
7592 .block_erase = spi_block_erase_d8,
7593 }, {
7594 .eraseblocks = { {2 * 1024 * 1024, 1} },
7595 .block_erase = spi_block_erase_60,
7596 }, {
7597 .eraseblocks = { {2 * 1024 * 1024, 1} },
7598 .block_erase = spi_block_erase_c7,
7599 },
7600 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007601 .printlock = spi_prettyprint_status_register_bp3_srwd, /* MX25L1605A bp2 only */
Stefan Tauner5c316f92015-02-08 21:57:52 +00007602 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007603 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007604 .read = spi_chip_read, /* Fast read (0x0B) supported (MX25L1608E supports dual-I/O read) */
Stefan Tauner226037d2013-03-16 01:22:12 +00007605 .voltage = {2700, 3600},
7606 },
7607
7608 {
7609 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007610 .name = "MX25L1605D/MX25L1608D/MX25L1673E",
Stefan Tauner226037d2013-03-16 01:22:12 +00007611 .bustype = BUS_SPI,
7612 .manufacture_id = MACRONIX_ID,
7613 .model_id = MACRONIX_MX25L1605,
7614 .total_size = 2048,
7615 .page_size = 256,
7616 .feature_bits = FEATURE_WRSR_WREN,
7617 .tested = TEST_OK_PREW,
7618 .probe = probe_spi_rdid,
7619 .probe_timing = TIMING_ZERO,
7620 .block_erasers =
7621 {
7622 {
7623 .eraseblocks = { {4 * 1024, 512} },
7624 .block_erase = spi_block_erase_20,
7625 }, {
7626 .eraseblocks = { {64 * 1024, 32} },
7627 .block_erase = spi_block_erase_d8,
7628 }, {
7629 .eraseblocks = { {2 * 1024 * 1024, 1} },
7630 .block_erase = spi_block_erase_60,
7631 }, {
7632 .eraseblocks = { {2 * 1024 * 1024, 1} },
7633 .block_erase = spi_block_erase_c7,
7634 },
7635 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007636 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: Continuously Program (CP) mode, for 73E is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00007637 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00007638 .write = spi_chip_write_256,
7639 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007640 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007641 },
7642
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007643 {
7644 .vendor = "Macronix",
Stephan Guillouxf5c70902009-04-19 23:04:00 +00007645 .name = "MX25L1635D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007646 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007647 .manufacture_id = MACRONIX_ID,
7648 .model_id = MACRONIX_MX25L1635D,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00007649 .total_size = 2048,
7650 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00007651 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
7652 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00007653 .tested = TEST_UNTESTED,
7654 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007655 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00007656 .block_erasers =
7657 {
7658 {
7659 .eraseblocks = { {4 * 1024, 512} },
7660 .block_erase = spi_block_erase_20,
7661 }, {
7662 .eraseblocks = { {64 * 1024, 32} },
7663 .block_erase = spi_block_erase_d8,
7664 }, {
7665 .eraseblocks = { {2 * 1024 * 1024, 1} },
7666 .block_erase = spi_block_erase_60,
7667 }, {
7668 .eraseblocks = { {2 * 1024 * 1024, 1} },
7669 .block_erase = spi_block_erase_c7,
7670 }
7671 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007672 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00007673 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007674 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00007675 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007676 .voltage = {2700, 3600},
Stephan Guillouxf5c70902009-04-19 23:04:00 +00007677 },
Stephan Guillouxfd315502009-04-20 22:54:13 +00007678
Stephan Guillouxf5c70902009-04-19 23:04:00 +00007679 {
7680 .vendor = "Macronix",
Stephan Guilloux3611b802010-09-13 19:59:28 +00007681 .name = "MX25L1635E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007682 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007683 .manufacture_id = MACRONIX_ID,
7684 .model_id = MACRONIX_MX25L1635E,
Stephan Guilloux3611b802010-09-13 19:59:28 +00007685 .total_size = 2048,
7686 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00007687 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
7688 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux3611b802010-09-13 19:59:28 +00007689 .tested = TEST_UNTESTED,
7690 .probe = probe_spi_rdid,
7691 .probe_timing = TIMING_ZERO,
7692 .block_erasers =
7693 {
7694 {
7695 .eraseblocks = { {4 * 1024, 512} },
7696 .block_erase = spi_block_erase_20,
7697 }, {
7698 .eraseblocks = { {64 * 1024, 32} },
7699 .block_erase = spi_block_erase_d8,
7700 }, {
7701 .eraseblocks = { {2 * 1024 * 1024, 1} },
7702 .block_erase = spi_block_erase_60,
7703 }, {
7704 .eraseblocks = { {2 * 1024 * 1024, 1} },
7705 .block_erase = spi_block_erase_c7,
7706 }
7707 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007708 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00007709 .unlock = spi_disable_blockprotect_bp3_srwd,
Stephan Guilloux3611b802010-09-13 19:59:28 +00007710 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00007711 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00007712 .voltage = {2700, 3600},
Stephan Guilloux3611b802010-09-13 19:59:28 +00007713 },
7714
7715 {
7716 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00007717 .name = "MX25L3205(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007718 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007719 .manufacture_id = MACRONIX_ID,
7720 .model_id = MACRONIX_MX25L3205,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007721 .total_size = 4096,
7722 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00007723 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00007724 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007725 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007726 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00007727 .block_erasers =
7728 {
7729 {
Stefan Tauner226037d2013-03-16 01:22:12 +00007730 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00007731 .block_erase = spi_block_erase_20,
7732 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00007733 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00007734 .block_erase = spi_block_erase_d8,
7735 }, {
7736 .eraseblocks = { {4 * 1024 * 1024, 1} },
7737 .block_erase = spi_block_erase_60,
7738 }, {
7739 .eraseblocks = { {4 * 1024 * 1024, 1} },
7740 .block_erase = spi_block_erase_c7,
7741 },
7742 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007743 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007744 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007745 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00007746 .read = spi_chip_read, /* Fast read (0x0B) supported */
7747 .voltage = {2700, 3600},
7748 },
7749
7750 {
7751 .vendor = "Macronix",
7752 .name = "MX25L3205D/MX25L3208D",
7753 .bustype = BUS_SPI,
7754 .manufacture_id = MACRONIX_ID,
7755 .model_id = MACRONIX_MX25L3205,
7756 .total_size = 4096,
7757 .page_size = 256,
7758 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
7759 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7760 .tested = TEST_OK_PREW,
7761 .probe = probe_spi_rdid,
7762 .probe_timing = TIMING_ZERO,
7763 .block_erasers =
7764 {
7765 {
7766 .eraseblocks = { {4 * 1024, 1024} },
7767 .block_erase = spi_block_erase_20,
7768 }, {
7769 .eraseblocks = { {64 * 1024, 64} },
7770 .block_erase = spi_block_erase_d8,
7771 }, {
7772 .eraseblocks = { {4 * 1024 * 1024, 1} },
7773 .block_erase = spi_block_erase_60,
7774 }, {
7775 .eraseblocks = { {4 * 1024 * 1024, 1} },
7776 .block_erase = spi_block_erase_c7,
7777 },
7778 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007779 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */
Stefan Tauner5c316f92015-02-08 21:57:52 +00007780 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00007781 .write = spi_chip_write_256,
7782 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
7783 .voltage = {2700, 3600},
7784 },
7785
7786 {
7787 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007788 .name = "MX25L3206E/MX25L3208E",
Stefan Tauner226037d2013-03-16 01:22:12 +00007789 .bustype = BUS_SPI,
7790 .manufacture_id = MACRONIX_ID,
7791 .model_id = MACRONIX_MX25L3205,
7792 .total_size = 4096,
7793 .page_size = 256,
7794 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
7795 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7796 .tested = TEST_OK_PREW,
7797 .probe = probe_spi_rdid,
7798 .probe_timing = TIMING_ZERO,
7799 .block_erasers =
7800 {
7801 {
7802 .eraseblocks = { {4 * 1024, 1024} },
7803 .block_erase = spi_block_erase_20,
7804 }, {
7805 .eraseblocks = { {64 * 1024, 64} },
7806 .block_erase = spi_block_erase_d8,
7807 }, {
7808 .eraseblocks = { {64 * 1024, 64} },
7809 .block_erase = spi_block_erase_52,
7810 }, {
7811 .eraseblocks = { {4 * 1024 * 1024, 1} },
7812 .block_erase = spi_block_erase_60,
7813 }, {
7814 .eraseblocks = { {4 * 1024 * 1024, 1} },
7815 .block_erase = spi_block_erase_c7,
7816 },
7817 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007818 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner5c316f92015-02-08 21:57:52 +00007819 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00007820 .write = spi_chip_write_256,
7821 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007822 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007823 },
7824
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007825 {
7826 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007827 .name = "MX25L3273E",
7828 .bustype = BUS_SPI,
7829 .manufacture_id = MACRONIX_ID,
7830 .model_id = MACRONIX_MX25L3205,
7831 .total_size = 4096,
7832 .page_size = 256,
7833 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
7834 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +00007835 .tested = TEST_OK_PREW,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007836 .probe = probe_spi_rdid,
7837 .probe_timing = TIMING_ZERO,
7838 .block_erasers =
7839 {
7840 {
7841 .eraseblocks = { {4 * 1024, 1024} },
7842 .block_erase = spi_block_erase_20,
7843 }, {
7844 .eraseblocks = { {32 * 1024, 128} },
7845 .block_erase = spi_block_erase_52,
7846 }, {
7847 .eraseblocks = { {64 * 1024, 64} },
7848 .block_erase = spi_block_erase_d8,
7849 }, {
7850 .eraseblocks = { {4 * 1024 * 1024, 1} },
7851 .block_erase = spi_block_erase_60,
7852 }, {
7853 .eraseblocks = { {4 * 1024 * 1024, 1} },
7854 .block_erase = spi_block_erase_c7,
7855 },
7856 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007857 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner5c316f92015-02-08 21:57:52 +00007858 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007859 .write = spi_chip_write_256,
7860 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
7861 .voltage = {2700, 3600},
7862 },
7863
7864 {
7865 .vendor = "Macronix",
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00007866 .name = "MX25L3235D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007867 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007868 .manufacture_id = MACRONIX_ID,
7869 .model_id = MACRONIX_MX25L3235D,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00007870 .total_size = 4096,
7871 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00007872 /* OTP: 256B total; enter 0xB1, exit 0xC1 */
7873 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00007874 .tested = TEST_UNTESTED,
7875 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007876 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00007877 .block_erasers =
7878 {
7879 {
7880 .eraseblocks = { {4 * 1024, 1024} },
7881 .block_erase = spi_block_erase_20,
7882 }, {
7883 .eraseblocks = { {64 * 1024, 64} },
7884 .block_erase = spi_block_erase_d8,
7885 }, {
7886 .eraseblocks = { {4 * 1024 * 1024, 1} },
7887 .block_erase = spi_block_erase_60,
7888 }, {
7889 .eraseblocks = { {4 * 1024 * 1024, 1} },
7890 .block_erase = spi_block_erase_c7,
7891 }
7892 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007893 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00007894 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007895 .write = spi_chip_write_256,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00007896 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007897 .voltage = {2700, 3600},
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00007898 },
7899
7900 {
7901 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007902 .name = "MX25L6405",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007903 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007904 .manufacture_id = MACRONIX_ID,
7905 .model_id = MACRONIX_MX25L6405,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007906 .total_size = 8192,
7907 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007908 /* Has an additional 512B EEPROM sector */
7909 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzelac427b22012-02-16 21:07:07 +00007910 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007911 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007912 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00007913 .block_erasers =
7914 {
7915 {
7916 .eraseblocks = { {64 * 1024, 128} },
7917 .block_erase = spi_block_erase_20,
7918 }, {
7919 .eraseblocks = { {64 * 1024, 128} },
7920 .block_erase = spi_block_erase_d8,
7921 }, {
7922 .eraseblocks = { {8 * 1024 * 1024, 1} },
7923 .block_erase = spi_block_erase_60,
7924 }, {
7925 .eraseblocks = { {8 * 1024 * 1024, 1} },
7926 .block_erase = spi_block_erase_c7,
7927 }
7928 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007929 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: error flag */
Stefan Tauner5c316f92015-02-08 21:57:52 +00007930 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007931 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007932 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007933 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007934 },
7935
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007936 {
7937 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007938 .name = "MX25L6405D",
Stefan Tauner226037d2013-03-16 01:22:12 +00007939 .bustype = BUS_SPI,
7940 .manufacture_id = MACRONIX_ID,
7941 .model_id = MACRONIX_MX25L6405,
7942 .total_size = 8192,
7943 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007944 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
Stefan Tauner226037d2013-03-16 01:22:12 +00007945 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7946 .tested = TEST_OK_PREW,
7947 .probe = probe_spi_rdid,
7948 .probe_timing = TIMING_ZERO,
7949 .block_erasers =
7950 {
7951 {
7952 .eraseblocks = { {4 * 1024, 2048} },
7953 .block_erase = spi_block_erase_20,
7954 }, {
7955 .eraseblocks = { {64 * 1024, 128} },
7956 .block_erase = spi_block_erase_d8,
7957 }, {
7958 .eraseblocks = { {8 * 1024 * 1024, 1} },
7959 .block_erase = spi_block_erase_60,
7960 }, {
7961 .eraseblocks = { {8 * 1024 * 1024, 1} },
7962 .block_erase = spi_block_erase_c7,
7963 }
7964 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007965 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */
Stefan Tauner5c316f92015-02-08 21:57:52 +00007966 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00007967 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007968 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0xBB) supported */
Stefan Tauner226037d2013-03-16 01:22:12 +00007969 .voltage = {2700, 3600},
7970 },
7971
7972 {
7973 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007974 .name = "MX25L6406E/MX25L6408E",
7975 .bustype = BUS_SPI,
7976 .manufacture_id = MACRONIX_ID,
7977 .model_id = MACRONIX_MX25L6405,
7978 .total_size = 8192,
7979 .page_size = 256,
7980 /* MX25L6406E supports SFDP */
7981 /* OTP: 06E 64B total; enter 0xB1, exit 0xC1 */
7982 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7983 .tested = TEST_OK_PREW,
7984 .probe = probe_spi_rdid,
7985 .probe_timing = TIMING_ZERO,
7986 .block_erasers =
7987 {
7988 {
7989 .eraseblocks = { {4 * 1024, 2048} },
7990 .block_erase = spi_block_erase_20,
7991 }, {
7992 .eraseblocks = { {64 * 1024, 128} },
7993 .block_erase = spi_block_erase_52,
7994 }, {
7995 .eraseblocks = { {64 * 1024, 128} },
7996 .block_erase = spi_block_erase_d8,
7997 }, {
7998 .eraseblocks = { {8 * 1024 * 1024, 1} },
7999 .block_erase = spi_block_erase_60,
8000 }, {
8001 .eraseblocks = { {8 * 1024 * 1024, 1} },
8002 .block_erase = spi_block_erase_c7,
8003 }
8004 },
8005 .printlock = spi_prettyprint_status_register_bp3_srwd,
8006 .unlock = spi_disable_blockprotect_bp3_srwd,
8007 .write = spi_chip_write_256,
8008 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read supported */
8009 .voltage = {2700, 3600},
8010 },
8011
8012 {
8013 .vendor = "Macronix",
Nico Huberb0072782017-12-06 21:02:57 +01008014 .name = "MX25L6436E/MX25L6445E/MX25L6465E/MX25L6473E/MX25L6473F",
Stefan Tauner226037d2013-03-16 01:22:12 +00008015 .bustype = BUS_SPI,
8016 .manufacture_id = MACRONIX_ID,
8017 .model_id = MACRONIX_MX25L6405,
8018 .total_size = 8192,
8019 .page_size = 256,
8020 /* supports SFDP */
8021 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8022 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8023 .tested = TEST_OK_PREW,
8024 .probe = probe_spi_rdid,
8025 .probe_timing = TIMING_ZERO,
8026 .block_erasers =
8027 {
8028 {
8029 .eraseblocks = { {4 * 1024, 2048} },
8030 .block_erase = spi_block_erase_20,
8031 }, {
8032 .eraseblocks = { {32 * 1024, 256} },
8033 .block_erase = spi_block_erase_52,
8034 }, {
8035 .eraseblocks = { {64 * 1024, 128} },
8036 .block_erase = spi_block_erase_d8,
8037 }, {
8038 .eraseblocks = { {8 * 1024 * 1024, 1} },
8039 .block_erase = spi_block_erase_60,
8040 }, {
8041 .eraseblocks = { {8 * 1024 * 1024, 1} },
8042 .block_erase = spi_block_erase_c7,
8043 }
8044 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008045 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008046 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00008047 .write = spi_chip_write_256,
8048 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8049 .voltage = {2700, 3600},
8050 },
8051
8052 {
8053 .vendor = "Macronix",
Stefan Tauner5c316f92015-02-08 21:57:52 +00008054 .name = "MX25L12805D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008055 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008056 .manufacture_id = MACRONIX_ID,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008057 .model_id = MACRONIX_MX25L12805D,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00008058 .total_size = 16384,
8059 .page_size = 256,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008060 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
Stefan Tauner226037d2013-03-16 01:22:12 +00008061 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +00008062 .tested = TEST_OK_PREW,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00008063 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008064 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008065 .block_erasers =
8066 {
8067 {
8068 .eraseblocks = { {4 * 1024, 4096} },
8069 .block_erase = spi_block_erase_20,
8070 }, {
8071 .eraseblocks = { {64 * 1024, 256} },
8072 .block_erase = spi_block_erase_d8,
8073 }, {
8074 .eraseblocks = { {16 * 1024 * 1024, 1} },
8075 .block_erase = spi_block_erase_60,
8076 }, {
8077 .eraseblocks = { {16 * 1024 * 1024, 1} },
8078 .block_erase = spi_block_erase_c7,
8079 }
8080 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008081 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008082 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008083 .write = spi_chip_write_256,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008084 .read = spi_chip_read, /* Fast read (0x0B) supported */
8085 .voltage = {2700, 3600},
8086 },
8087
8088 {
8089 .vendor = "Macronix",
8090 .name = "MX25L12835F/MX25L12845E/MX25L12865E",
8091 .bustype = BUS_SPI,
8092 .manufacture_id = MACRONIX_ID,
8093 .model_id = MACRONIX_MX25L12805D,
8094 .total_size = 16384,
8095 .page_size = 256,
8096 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8097 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8098 .tested = TEST_OK_PREW,
8099 .probe = probe_spi_rdid,
8100 .probe_timing = TIMING_ZERO,
8101 .block_erasers =
8102 {
8103 {
8104 .eraseblocks = { {4 * 1024, 4096} },
8105 .block_erase = spi_block_erase_20,
8106 }, {
8107 .eraseblocks = { {32 * 1024, 512} },
8108 .block_erase = spi_block_erase_52,
8109 }, {
8110 .eraseblocks = { {64 * 1024, 256} },
8111 .block_erase = spi_block_erase_d8,
8112 }, {
8113 .eraseblocks = { {16 * 1024 * 1024, 1} },
8114 .block_erase = spi_block_erase_60,
8115 }, {
8116 .eraseblocks = { {16 * 1024 * 1024, 1} },
8117 .block_erase = spi_block_erase_c7,
8118 }
8119 },
8120 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
8121 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8122 .unlock = spi_disable_blockprotect_bp3_srwd,
8123 .write = spi_chip_write_256,
8124 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008125 .voltage = {2700, 3600},
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00008126 },
8127
8128 {
8129 .vendor = "Macronix",
Timothy Pearson5bdb87e2016-08-27 14:02:50 -05008130 .name = "MX25L25635F/MX25L25645E/MX25L25665E",
8131 .bustype = BUS_SPI,
8132 .manufacture_id = MACRONIX_ID,
8133 .model_id = MACRONIX_MX25L25635F,
8134 .total_size = 32768,
8135 .page_size = 256,
8136 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8137 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_SUPPORT,
Timothy Pearson5bdb87e2016-08-27 14:02:50 -05008138 .tested = TEST_OK_PREW,
8139 .probe = probe_spi_rdid,
8140 .probe_timing = TIMING_ZERO,
8141 .block_erasers =
8142 {
8143 {
8144 .eraseblocks = { {4 * 1024, 8192} },
Nico Huber7a077222017-10-14 18:18:30 +02008145 .block_erase = spi_block_erase_20,
Timothy Pearson5bdb87e2016-08-27 14:02:50 -05008146 }, {
8147 .eraseblocks = { {32 * 1024, 1024} },
Nico Huber7a077222017-10-14 18:18:30 +02008148 .block_erase = spi_block_erase_52,
Timothy Pearson5bdb87e2016-08-27 14:02:50 -05008149 }, {
8150 .eraseblocks = { {64 * 1024, 512} },
Nico Huber7a077222017-10-14 18:18:30 +02008151 .block_erase = spi_block_erase_d8,
Timothy Pearson5bdb87e2016-08-27 14:02:50 -05008152 }, {
8153 .eraseblocks = { {32 * 1024 * 1024, 1} },
8154 .block_erase = spi_block_erase_60,
8155 }, {
8156 .eraseblocks = { {32 * 1024 * 1024, 1} },
8157 .block_erase = spi_block_erase_c7,
8158 }
8159 },
8160 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
8161 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8162 .unlock = spi_disable_blockprotect_bp3_srwd,
8163 .write = spi_chip_write_256,
8164 .read = spi_chip_read, /* Fast read (0x0B) supported */
Nico Huber7a077222017-10-14 18:18:30 +02008165 .set_4ba = spi_enter_4ba_b7,
Timothy Pearson5bdb87e2016-08-27 14:02:50 -05008166 .voltage = {2700, 3600},
8167 },
8168
8169 {
8170 .vendor = "Macronix",
Timothy Pearsone29591d2016-08-27 15:43:00 -05008171 .name = "MX66L51235F",
8172 .bustype = BUS_SPI,
8173 .manufacture_id = MACRONIX_ID,
8174 .model_id = MACRONIX_MX66L51235F,
8175 .total_size = 65536,
8176 .page_size = 256,
8177 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8178 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_SUPPORT,
Timothy Pearsone29591d2016-08-27 15:43:00 -05008179 .tested = TEST_OK_PREW,
8180 .probe = probe_spi_rdid,
8181 .probe_timing = TIMING_ZERO,
8182 .block_erasers =
8183 {
8184 {
8185 .eraseblocks = { {4 * 1024, 16384} },
Nico Huber7a077222017-10-14 18:18:30 +02008186 .block_erase = spi_block_erase_20,
Timothy Pearsone29591d2016-08-27 15:43:00 -05008187 }, {
8188 .eraseblocks = { {32 * 1024, 2048} },
Nico Huber7a077222017-10-14 18:18:30 +02008189 .block_erase = spi_block_erase_52,
Timothy Pearsone29591d2016-08-27 15:43:00 -05008190 }, {
8191 .eraseblocks = { {64 * 1024, 1024} },
Nico Huber7a077222017-10-14 18:18:30 +02008192 .block_erase = spi_block_erase_d8,
Timothy Pearsone29591d2016-08-27 15:43:00 -05008193 }, {
8194 .eraseblocks = { {64 * 1024 * 1024, 1} },
8195 .block_erase = spi_block_erase_60,
8196 }, {
8197 .eraseblocks = { {64 * 1024 * 1024, 1} },
8198 .block_erase = spi_block_erase_c7,
8199 }
8200 },
8201 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
8202 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8203 .unlock = spi_disable_blockprotect_bp3_srwd,
8204 .write = spi_chip_write_256,
8205 .read = spi_chip_read, /* Fast read (0x0B) supported */
Nico Huber7a077222017-10-14 18:18:30 +02008206 .set_4ba = spi_enter_4ba_b7,
Timothy Pearsone29591d2016-08-27 15:43:00 -05008207 .voltage = {2700, 3600},
8208 },
8209
8210 {
8211 .vendor = "Macronix",
Vincent Palatinf800f552013-03-15 02:03:16 +00008212 .name = "MX25U1635E",
8213 .bustype = BUS_SPI,
8214 .manufacture_id = MACRONIX_ID,
8215 .model_id = MACRONIX_MX25U1635E,
8216 .total_size = 2048,
8217 .page_size = 256,
8218 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8219 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
8220 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008221 .tested = TEST_OK_PR,
Vincent Palatinf800f552013-03-15 02:03:16 +00008222 .probe = probe_spi_rdid,
8223 .probe_timing = TIMING_ZERO,
8224 .block_erasers =
8225 {
8226 {
8227 .eraseblocks = { {4 * 1024, 512} },
8228 .block_erase = spi_block_erase_20,
8229 }, {
8230 .eraseblocks = { {32 * 1024, 64} },
8231 .block_erase = spi_block_erase_52,
8232 }, {
8233 .eraseblocks = { {64 * 1024, 32} },
8234 .block_erase = spi_block_erase_d8,
8235 }, {
8236 .eraseblocks = { {2 * 1024 * 1024, 1} },
8237 .block_erase = spi_block_erase_60,
8238 }, {
8239 .eraseblocks = { {2 * 1024 * 1024, 1} },
8240 .block_erase = spi_block_erase_c7,
8241 }
8242 },
8243 /* TODO: security register */
Stefan Tauner12f3d512014-05-27 21:27:27 +00008244 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008245 .unlock = spi_disable_blockprotect_bp3_srwd,
Vincent Palatinf800f552013-03-15 02:03:16 +00008246 .write = spi_chip_write_256,
8247 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8248 .voltage = {1650, 2000},
8249 },
8250
8251 {
8252 .vendor = "Macronix",
8253 .name = "MX25U3235E/F",
8254 .bustype = BUS_SPI,
8255 .manufacture_id = MACRONIX_ID,
8256 .model_id = MACRONIX_MX25U3235E,
8257 .total_size = 4096,
8258 .page_size = 256,
8259 /* F model supports SFDP */
8260 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8261 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
8262 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
8263 .tested = TEST_OK_PREW,
8264 .probe = probe_spi_rdid,
8265 .probe_timing = TIMING_ZERO,
8266 .block_erasers =
8267 {
8268 {
8269 .eraseblocks = { {4 * 1024, 1024} },
8270 .block_erase = spi_block_erase_20,
8271 }, {
8272 .eraseblocks = { {32 * 1024, 128} },
8273 .block_erase = spi_block_erase_52,
8274 }, {
8275 .eraseblocks = { {64 * 1024, 64} },
8276 .block_erase = spi_block_erase_d8,
8277 }, {
8278 .eraseblocks = { {4 * 1024 * 1024, 1} },
8279 .block_erase = spi_block_erase_60,
8280 }, {
8281 .eraseblocks = { {4 * 1024 * 1024, 1} },
8282 .block_erase = spi_block_erase_c7,
8283 }
8284 },
8285 /* TODO: security register */
Stefan Tauner12f3d512014-05-27 21:27:27 +00008286 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008287 .unlock = spi_disable_blockprotect_bp3_srwd,
Vincent Palatinf800f552013-03-15 02:03:16 +00008288 .write = spi_chip_write_256,
8289 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8290 .voltage = {1650, 2000},
8291 },
8292
8293 {
8294 .vendor = "Macronix",
8295 .name = "MX25U6435E/F",
8296 .bustype = BUS_SPI,
8297 .manufacture_id = MACRONIX_ID,
8298 .model_id = MACRONIX_MX25U6435E,
8299 .total_size = 8192,
8300 .page_size = 256,
8301 /* F model supports SFDP */
8302 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8303 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
8304 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner23e10b82016-01-23 16:16:49 +00008305 .tested = TEST_OK_PREW,
Vincent Palatinf800f552013-03-15 02:03:16 +00008306 .probe = probe_spi_rdid,
8307 .probe_timing = TIMING_ZERO,
8308 .block_erasers =
8309 {
8310 {
8311 .eraseblocks = { {4 * 1024, 2048} },
8312 .block_erase = spi_block_erase_20,
8313 }, {
8314 .eraseblocks = { {32 * 1024, 256} },
8315 .block_erase = spi_block_erase_52,
8316 }, {
8317 .eraseblocks = { {64 * 1024, 128} },
8318 .block_erase = spi_block_erase_d8,
8319 }, {
8320 .eraseblocks = { {8 * 1024 * 1024, 1} },
8321 .block_erase = spi_block_erase_60,
8322 }, {
8323 .eraseblocks = { {8 * 1024 * 1024, 1} },
8324 .block_erase = spi_block_erase_c7,
8325 }
8326 },
8327 /* TODO: security register */
Stefan Tauner12f3d512014-05-27 21:27:27 +00008328 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008329 .unlock = spi_disable_blockprotect_bp3_srwd,
Vincent Palatinf800f552013-03-15 02:03:16 +00008330 .write = spi_chip_write_256,
8331 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8332 .voltage = {1650, 2000},
8333 },
8334
8335 {
8336 .vendor = "Macronix",
Martin Roth440057a2014-07-13 00:05:07 +00008337 .name = "MX25U12835F",
8338 .bustype = BUS_SPI,
8339 .manufacture_id = MACRONIX_ID,
8340 .model_id = MACRONIX_MX25U12835E,
8341 .total_size = 16384,
8342 .page_size = 256,
8343 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8344 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
8345 .tested = TEST_UNTESTED,
8346 .probe = probe_spi_rdid,
8347 .probe_timing = TIMING_ZERO,
8348 .block_erasers =
8349 {
8350 {
8351 .eraseblocks = { {4 * 1024, 4096} },
8352 .block_erase = spi_block_erase_20,
8353 }, {
8354 .eraseblocks = { {32 * 1024, 512} },
8355 .block_erase = spi_block_erase_52,
8356 }, {
8357 .eraseblocks = { {64 * 1024, 256} },
8358 .block_erase = spi_block_erase_d8,
8359 }, {
8360 .eraseblocks = { {16 * 1024 * 1024, 1} },
8361 .block_erase = spi_block_erase_60,
8362 }, {
8363 .eraseblocks = { {16 * 1024 * 1024, 1} },
8364 .block_erase = spi_block_erase_c7,
8365 }
8366 },
8367 /* TODO: security register */
8368 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8369 .unlock = spi_disable_blockprotect_bp3_srwd,
8370 .write = spi_chip_write_256, /* Multi I/O supported */
8371 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8372 .voltage = {1650, 2000},
8373 },
8374
8375 {
Stefan Taunera4617f72015-01-10 15:59:54 +00008376 .vendor = "Macronix",
Stefan Tauner40bc96f2015-01-10 09:33:14 +00008377 .name = "MX25L6495F",
8378 .bustype = BUS_SPI,
8379 .manufacture_id = MACRONIX_ID,
8380 .model_id = MACRONIX_MX25L6495F,
8381 .total_size = 8192,
8382 .page_size = 256,
8383 /* OTP: 1024B total; enter 0xB1, exit 0xC1 */
8384 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8385 .tested = TEST_OK_PREW,
8386 .probe = probe_spi_rdid,
8387 .probe_timing = TIMING_ZERO,
8388 .block_erasers =
8389 {
8390 {
8391 .eraseblocks = { {4 * 1024, 2048} },
8392 .block_erase = spi_block_erase_20,
8393 }, {
8394 .eraseblocks = { {64 * 1024, 128} },
8395 .block_erase = spi_block_erase_d8,
8396 }, {
8397 .eraseblocks = { {32 * 1024, 256} },
8398 .block_erase = spi_block_erase_52,
8399 }, {
8400 .eraseblocks = { {8 * 1024 * 1024, 1} },
8401 .block_erase = spi_block_erase_60,
8402 }, {
8403 .eraseblocks = { {8 * 1024 * 1024, 1} },
8404 .block_erase = spi_block_erase_c7,
8405 }
8406 },
8407 .unlock = spi_disable_blockprotect,
8408 .write = spi_chip_write_256,
8409 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8410 .voltage = {2700, 3600},
8411 },
8412
8413 {
Martin Roth440057a2014-07-13 00:05:07 +00008414 .vendor = "Macronix",
Mark Panajotovic502a9132009-08-24 01:42:24 +00008415 .name = "MX29F001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008416 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008417 .manufacture_id = MACRONIX_ID,
8418 .model_id = MACRONIX_MX29F001B,
Mark Panajotovic502a9132009-08-24 01:42:24 +00008419 .total_size = 128,
8420 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008421 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8422 .tested = TEST_UNTESTED,
8423 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00008424 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008425 .block_erasers =
8426 {
8427 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00008428 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00008429 {8 * 1024, 1},
8430 {4 * 1024, 2},
8431 {8 * 1024, 2},
8432 {32 * 1024, 1},
8433 {64 * 1024, 1},
8434 },
Sean Nelson35727f72010-01-28 23:55:12 +00008435 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00008436 }, {
8437 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00008438 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00008439 }
8440 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00008441 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00008442 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008443 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00008444 },
8445
8446 {
8447 .vendor = "Macronix",
8448 .name = "MX29F001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008449 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008450 .manufacture_id = MACRONIX_ID,
8451 .model_id = MACRONIX_MX29F001T,
Mark Panajotovic502a9132009-08-24 01:42:24 +00008452 .total_size = 128,
8453 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008454 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stefan Tauner74c6ec62011-05-18 01:31:46 +00008455 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00008456 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00008457 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008458 .block_erasers =
8459 {
8460 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00008461 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00008462 {64 * 1024, 1},
8463 {32 * 1024, 1},
8464 {8 * 1024, 2},
8465 {4 * 1024, 2},
8466 {8 * 1024, 1},
8467 },
Sean Nelson35727f72010-01-28 23:55:12 +00008468 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00008469 }, {
8470 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00008471 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00008472 }
8473 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00008474 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00008475 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008476 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00008477 },
8478
8479 {
8480 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00008481 .name = "MX29F002(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008482 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008483 .manufacture_id = MACRONIX_ID,
8484 .model_id = MACRONIX_MX29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008485 .total_size = 256,
8486 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008487 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008488 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00008489 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00008490 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00008491 .block_erasers =
8492 {
8493 {
8494 .eraseblocks = {
8495 {16 * 1024, 1},
8496 {8 * 1024, 2},
8497 {32 * 1024, 1},
8498 {64 * 1024, 3},
8499 },
Sean Nelson35727f72010-01-28 23:55:12 +00008500 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00008501 }, {
8502 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00008503 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00008504 },
8505 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00008506 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008507 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008508 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00008509 },
8510
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008511 {
8512 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00008513 .name = "MX29F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008514 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008515 .manufacture_id = MACRONIX_ID,
8516 .model_id = MACRONIX_MX29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008517 .total_size = 256,
8518 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008519 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00008520 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00008521 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00008522 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00008523 .block_erasers =
8524 {
8525 {
8526 .eraseblocks = {
8527 {64 * 1024, 3},
8528 {32 * 1024, 1},
8529 {8 * 1024, 2},
8530 {16 * 1024, 1},
8531 },
Sean Nelson35727f72010-01-28 23:55:12 +00008532 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00008533 }, {
8534 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00008535 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00008536 },
8537 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00008538 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008539 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008540 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00008541 },
8542
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008543 {
8544 .vendor = "Macronix",
Daniele Forsi6a18a932014-07-13 14:53:45 +00008545 .name = "MX29F022(N)B",
8546 .bustype = BUS_PARALLEL,
8547 .manufacture_id = MACRONIX_ID,
8548 .model_id = MACRONIX_MX29F022B,
8549 .total_size = 256,
8550 .page_size = 0, /* unused */
8551 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8552 .tested = TEST_UNTESTED,
8553 .probe = probe_jedec,
8554 .probe_timing = TIMING_ZERO,
8555 .block_erasers =
8556 {
8557 {
8558 .eraseblocks = {
8559 {16 * 1024, 1},
8560 {8 * 1024, 2},
8561 {32 * 1024, 1},
8562 {64 * 1024, 3},
8563 },
8564 .block_erase = erase_sector_jedec,
8565 }, {
8566 .eraseblocks = { {256 * 1024, 1} },
8567 .block_erase = erase_chip_block_jedec,
8568 }
8569 },
8570 .write = write_jedec_1,
8571 .read = read_memmapped,
8572 .voltage = {4500, 5500},
8573 },
8574
8575 {
8576 .vendor = "Macronix",
8577 .name = "MX29F022(N)T",
8578 .bustype = BUS_PARALLEL,
8579 .manufacture_id = MACRONIX_ID,
8580 .model_id = MACRONIX_MX29F022T,
8581 .total_size = 256,
8582 .page_size = 0, /* unused */
8583 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8584 .tested = TEST_OK_PREW,
8585 .probe = probe_jedec,
8586 .probe_timing = TIMING_ZERO,
8587 .block_erasers =
8588 {
8589 {
8590 .eraseblocks = {
8591 {64 * 1024, 3},
8592 {32 * 1024, 1},
8593 {8 * 1024, 2},
8594 {16 * 1024, 1},
8595 },
8596 .block_erase = erase_sector_jedec,
8597 }, {
8598 .eraseblocks = { {256 * 1024, 1} },
8599 .block_erase = erase_chip_block_jedec,
8600 }
8601 },
8602 .write = write_jedec_1,
8603 .read = read_memmapped,
8604 .voltage = {4500, 5500},
8605 },
8606
8607 {
8608 .vendor = "Macronix",
Joshua Roysf1324e02010-09-16 00:51:51 +00008609 .name = "MX29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008610 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00008611 .manufacture_id = MACRONIX_ID,
8612 .model_id = MACRONIX_MX29F040,
8613 .total_size = 512,
8614 .page_size = 64 * 1024,
8615 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8616 .tested = TEST_UNTESTED,
8617 .probe = probe_jedec,
8618 .probe_timing = TIMING_ZERO,
8619 .block_erasers =
8620 {
8621 {
8622 .eraseblocks = { {64 * 1024, 8} },
8623 .block_erase = erase_sector_jedec,
8624 }, {
8625 .eraseblocks = { {512 * 1024, 1} },
8626 .block_erase = erase_chip_block_jedec,
8627 },
8628 },
8629 .write = write_jedec_1,
8630 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008631 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00008632 },
8633
8634 {
8635 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00008636 .name = "MX29GL320EB",
8637 .bustype = BUS_PARALLEL,
8638 .manufacture_id = MACRONIX_ID,
8639 .model_id = MACRONIX_MX29GL320EB,
8640 .total_size = 4096,
8641 .page_size = 128 * 1024, /* actual page size is 16 */
8642 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8643 .tested = TEST_UNTESTED,
8644 .probe = probe_jedec_29gl,
8645 .probe_timing = TIMING_ZERO,
8646 .block_erasers =
8647 {
8648 {
8649 .eraseblocks = {
8650 {8 * 1024, 8},
8651 {64 * 1024, 63},
8652 },
8653 .block_erase = erase_sector_jedec,
8654 }, {
8655 .eraseblocks = { {4 * 1024 * 1024, 1} },
8656 .block_erase = erase_chip_block_jedec,
8657 },
8658 },
8659 .write = write_jedec_1,
8660 .read = read_memmapped,
8661 .voltage = {2700, 3600},
8662 },
8663
8664 {
8665 .vendor = "Macronix",
8666 .name = "MX29GL320ET",
8667 .bustype = BUS_PARALLEL,
8668 .manufacture_id = MACRONIX_ID,
8669 .model_id = MACRONIX_MX29GL320ET,
8670 .total_size = 4096,
8671 .page_size = 128 * 1024, /* actual page size is 16 */
8672 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8673 .tested = TEST_UNTESTED,
8674 .probe = probe_jedec_29gl,
8675 .probe_timing = TIMING_ZERO,
8676 .block_erasers =
8677 {
8678 {
8679 .eraseblocks = {
8680 {64 * 1024, 63},
8681 {8 * 1024, 8},
8682 },
8683 .block_erase = erase_sector_jedec,
8684 }, {
8685 .eraseblocks = { {4 * 1024 * 1024, 1} },
8686 .block_erase = erase_chip_block_jedec,
8687 },
8688 },
8689 .write = write_jedec_1,
8690 .read = read_memmapped,
8691 .voltage = {2700, 3600},
8692 },
8693
8694 {
8695 .vendor = "Macronix",
8696 .name = "MX29GL320EH/L",
8697 .bustype = BUS_PARALLEL,
8698 .manufacture_id = MACRONIX_ID,
8699 .model_id = MACRONIX_MX29GL320EHL,
8700 .total_size = 4096,
8701 .page_size = 128 * 1024, /* actual page size is 16 */
8702 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8703 .tested = TEST_UNTESTED,
8704 .probe = probe_jedec_29gl,
8705 .probe_timing = TIMING_ZERO,
8706 .block_erasers =
8707 {
8708 {
8709 .eraseblocks = { {64 * 1024, 64} },
8710 .block_erase = erase_sector_jedec,
8711 }, {
8712 .eraseblocks = { {4 * 1024 * 1024, 1} },
8713 .block_erase = erase_chip_block_jedec,
8714 },
8715 },
8716 .write = write_jedec_1,
8717 .read = read_memmapped,
8718 .voltage = {2700, 3600},
8719 },
8720
8721 {
8722 .vendor = "Macronix",
8723 .name = "MX29GL640EB",
8724 .bustype = BUS_PARALLEL,
8725 .manufacture_id = MACRONIX_ID,
8726 .model_id = MACRONIX_MX29GL640EB,
8727 .total_size = 8192,
8728 .page_size = 128 * 1024, /* actual page size is 16 */
8729 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8730 .tested = TEST_UNTESTED,
8731 .probe = probe_jedec_29gl,
8732 .probe_timing = TIMING_ZERO,
8733 .block_erasers =
8734 {
8735 {
8736 .eraseblocks = {
8737 {8 * 1024, 8},
8738 {64 * 1024, 127},
8739 },
8740 .block_erase = erase_sector_jedec,
8741 }, {
8742 .eraseblocks = { {8 * 1024 * 1024, 1} },
8743 .block_erase = erase_chip_block_jedec,
8744 },
8745 },
8746 .write = write_jedec_1,
8747 .read = read_memmapped,
8748 .voltage = {2700, 3600},
8749 },
8750
8751 {
8752 .vendor = "Macronix",
8753 .name = "MX29GL640ET",
8754 .bustype = BUS_PARALLEL,
8755 .manufacture_id = MACRONIX_ID,
8756 .model_id = MACRONIX_MX29GL640ET,
8757 .total_size = 8192,
8758 .page_size = 128 * 1024, /* actual page size is 16 */
8759 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8760 .tested = TEST_UNTESTED,
8761 .probe = probe_jedec_29gl,
8762 .probe_timing = TIMING_ZERO,
8763 .block_erasers =
8764 {
8765 {
8766 .eraseblocks = {
8767 {64 * 1024, 127},
8768 {8 * 1024, 8},
8769 },
8770 .block_erase = erase_sector_jedec,
8771 }, {
8772 .eraseblocks = { {8 * 1024 * 1024, 1} },
8773 .block_erase = erase_chip_block_jedec,
8774 },
8775 },
8776 .write = write_jedec_1,
8777 .read = read_memmapped,
8778 .voltage = {2700, 3600},
8779 },
8780
8781 {
8782 .vendor = "Macronix",
8783 .name = "MX29GL640EH/L",
8784 .bustype = BUS_PARALLEL,
8785 .manufacture_id = MACRONIX_ID,
8786 .model_id = MACRONIX_MX29GL640EHL,
8787 .total_size = 8192,
8788 .page_size = 128 * 1024, /* actual page size is 16 */
8789 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8790 .tested = TEST_UNTESTED,
8791 .probe = probe_jedec_29gl,
8792 .probe_timing = TIMING_ZERO,
8793 .block_erasers =
8794 {
8795 {
8796 .eraseblocks = { {64 * 1024, 128} },
8797 .block_erase = erase_sector_jedec,
8798 }, {
8799 .eraseblocks = { {8 * 1024 * 1024, 1} },
8800 .block_erase = erase_chip_block_jedec,
8801 },
8802 },
8803 .write = write_jedec_1,
8804 .read = read_memmapped,
8805 .voltage = {2700, 3600},
8806 },
8807
8808 {
8809 .vendor = "Macronix",
8810 .name = "MX29GL128F",
8811 .bustype = BUS_PARALLEL,
8812 .manufacture_id = MACRONIX_ID,
8813 .model_id = MACRONIX_MX29GL128F,
8814 .total_size = 16384,
8815 .page_size = 128 * 1024, /* actual page size is 16 */
8816 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8817 .tested = TEST_UNTESTED,
8818 .probe = probe_jedec_29gl,
8819 .probe_timing = TIMING_ZERO,
8820 .block_erasers =
8821 {
8822 {
8823 .eraseblocks = { {128 * 1024, 128} },
8824 .block_erase = erase_sector_jedec,
8825 }, {
8826 .eraseblocks = { {16 * 1024 * 1024, 1} },
8827 .block_erase = erase_chip_block_jedec,
8828 },
8829 },
8830 .write = write_jedec_1,
8831 .read = read_memmapped,
8832 .voltage = {2700, 3600},
8833 },
8834
8835 {
8836 .vendor = "Macronix",
Carl-Daniel Hailfinger350a0c32009-07-24 13:59:27 +00008837 .name = "MX29LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008838 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008839 .manufacture_id = MACRONIX_ID,
8840 .model_id = MACRONIX_MX29LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008841 .total_size = 512,
8842 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008843 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8844 .tested = TEST_UNTESTED,
8845 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00008846 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008847 .block_erasers =
8848 {
8849 {
Stefan Tauner6697f712014-08-06 15:09:15 +00008850 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +00008851 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00008852 }, {
8853 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00008854 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00008855 },
8856 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00008857 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008858 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008859 .voltage = {2700, 3600},
Carl-Daniel Hailfinger7de86392008-12-10 10:32:05 +00008860 },
8861
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008862 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008863 .vendor = "Micron/Numonyx/ST",
8864 .name = "M25P05-A",
8865 .bustype = BUS_SPI,
8866 .manufacture_id = ST_ID,
8867 .model_id = ST_M25P05A,
8868 .total_size = 64,
8869 .page_size = 256,
8870 .feature_bits = FEATURE_WRSR_WREN,
8871 .tested = TEST_OK_PREW,
8872 .probe = probe_spi_rdid,
8873 .probe_timing = TIMING_ZERO,
8874 .block_erasers =
8875 {
8876 {
8877 .eraseblocks = { {32 * 1024, 2} },
8878 .block_erase = spi_block_erase_d8,
8879 }, {
8880 .eraseblocks = { {64 * 1024, 1} },
8881 .block_erase = spi_block_erase_c7,
8882 }
8883 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008884 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008885 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008886 .write = spi_chip_write_256,
8887 .read = spi_chip_read,
8888 .voltage = {2700, 3600},
8889 },
8890
8891 /* The ST M25P05 is a bit of a problem. It has the same ID as the
8892 * ST M25P05-A in RES mode, but supports only 128 byte writes instead
8893 * of 256 byte writes. We rely heavily on the fact that probe_spi_res1
8894 * only is successful if RDID does not work.
8895 */
8896 {
8897 .vendor = "Micron/Numonyx/ST",
8898 .name = "M25P05",
8899 .bustype = BUS_SPI,
8900 .manufacture_id = 0, /* Not used. */
8901 .model_id = ST_M25P05_RES,
8902 .total_size = 64,
8903 .page_size = 256,
8904 .feature_bits = FEATURE_WRSR_WREN,
8905 .tested = TEST_UNTESTED,
8906 .probe = probe_spi_res1,
8907 .probe_timing = TIMING_ZERO,
8908 .block_erasers =
8909 {
8910 {
8911 .eraseblocks = { {32 * 1024, 2} },
8912 .block_erase = spi_block_erase_d8,
8913 }, {
8914 .eraseblocks = { {64 * 1024, 1} },
8915 .block_erase = spi_block_erase_c7,
8916 }
8917 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008918 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008919 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008920 .write = spi_chip_write_1, /* 128 */
8921 .read = spi_chip_read,
8922 .voltage = {2700, 3600},
8923 },
8924
8925 {
8926 .vendor = "Micron/Numonyx/ST",
8927 .name = "M25P10-A",
8928 .bustype = BUS_SPI,
8929 .manufacture_id = ST_ID,
8930 .model_id = ST_M25P10A,
8931 .total_size = 128,
8932 .page_size = 256,
8933 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +00008934 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008935 .probe = probe_spi_rdid,
8936 .probe_timing = TIMING_ZERO,
8937 .block_erasers =
8938 {
8939 {
8940 .eraseblocks = { {32 * 1024, 4} },
8941 .block_erase = spi_block_erase_d8,
8942 }, {
8943 .eraseblocks = { {128 * 1024, 1} },
8944 .block_erase = spi_block_erase_c7,
8945 }
8946 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008947 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008948 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008949 .write = spi_chip_write_256,
8950 .read = spi_chip_read,
8951 .voltage = {2700, 3600},
8952 },
8953
8954 /* The ST M25P10 has the same problem as the M25P05. */
8955 {
8956 .vendor = "Micron/Numonyx/ST",
8957 .name = "M25P10",
8958 .bustype = BUS_SPI,
8959 .manufacture_id = 0, /* Not used. */
8960 .model_id = ST_M25P10_RES,
8961 .total_size = 128,
8962 .page_size = 256,
8963 .feature_bits = FEATURE_WRSR_WREN,
8964 .tested = TEST_UNTESTED,
8965 .probe = probe_spi_res1,
8966 .probe_timing = TIMING_ZERO,
8967 .block_erasers =
8968 {
8969 {
8970 .eraseblocks = { {32 * 1024, 4} },
8971 .block_erase = spi_block_erase_d8,
8972 }, {
8973 .eraseblocks = { {128 * 1024, 1} },
8974 .block_erase = spi_block_erase_c7,
8975 }
8976 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008977 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008978 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00008979 .write = spi_chip_write_1, /* 128 */
8980 .read = spi_chip_read,
8981 .voltage = {2700, 3600},
8982 },
8983
8984 {
8985 .vendor = "Micron/Numonyx/ST", /* Numonyx */
8986 .name = "M25P20",
8987 .bustype = BUS_SPI,
8988 .manufacture_id = ST_ID,
8989 .model_id = ST_M25P20,
8990 .total_size = 256,
8991 .page_size = 256,
8992 .feature_bits = FEATURE_WRSR_WREN,
8993 .tested = TEST_UNTESTED,
8994 .probe = probe_spi_rdid,
8995 .probe_timing = TIMING_ZERO,
8996 .block_erasers =
8997 {
8998 {
8999 .eraseblocks = { {64 * 1024, 4} },
9000 .block_erase = spi_block_erase_d8,
9001 }, {
9002 .eraseblocks = { {256 * 1024, 1} },
9003 .block_erase = spi_block_erase_c7,
9004 }
9005 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009006 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009007 .unlock = spi_disable_blockprotect,
9008 .write = spi_chip_write_256,
9009 .read = spi_chip_read, /* Fast read (0x0B) supported */
9010 .voltage = {2700, 3600},
9011 },
9012
9013 {
9014 .vendor = "Micron/Numonyx/ST",
9015 .name = "M25P20-old",
9016 .bustype = BUS_SPI,
9017 .manufacture_id = 0, /* Not used. */
9018 .model_id = ST_M25P20_RES,
9019 .total_size = 256,
9020 .page_size = 256,
9021 .feature_bits = FEATURE_WRSR_WREN,
9022 .tested = TEST_OK_PREW,
9023 .probe = probe_spi_res1,
9024 .probe_timing = TIMING_ZERO,
9025 .block_erasers =
9026 {
9027 {
9028 .eraseblocks = { {64 * 1024, 4} },
9029 .block_erase = spi_block_erase_d8,
9030 }, {
9031 .eraseblocks = { {256 * 1024, 1} },
9032 .block_erase = spi_block_erase_c7,
9033 }
9034 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009035 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009036 .unlock = spi_disable_blockprotect,
9037 .write = spi_chip_write_256,
9038 .read = spi_chip_read, /* Fast read (0x0B) supported */
9039 .voltage = {2700, 3600},
9040 },
9041
9042 {
9043 .vendor = "Micron/Numonyx/ST", /* Numonyx */
9044 .name = "M25P40",
9045 .bustype = BUS_SPI,
9046 .manufacture_id = ST_ID,
9047 .model_id = ST_M25P40,
9048 .total_size = 512,
9049 .page_size = 256,
9050 .feature_bits = FEATURE_WRSR_WREN,
9051 .tested = TEST_OK_PREW,
9052 .probe = probe_spi_rdid,
9053 .probe_timing = TIMING_ZERO,
9054 .block_erasers =
9055 {
9056 {
9057 .eraseblocks = { {64 * 1024, 8} },
9058 .block_erase = spi_block_erase_d8,
9059 }, {
9060 .eraseblocks = { {512 * 1024, 1} },
9061 .block_erase = spi_block_erase_c7,
9062 }
9063 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009064 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009065 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009066 .write = spi_chip_write_256,
9067 .read = spi_chip_read,
9068 .voltage = {2700, 3600},
9069 },
9070
9071 {
9072 .vendor = "Micron/Numonyx/ST",
9073 .name = "M25P40-old",
9074 .bustype = BUS_SPI,
9075 .manufacture_id = 0, /* Not used. */
9076 .model_id = ST_M25P40_RES,
9077 .total_size = 512,
9078 .page_size = 256,
9079 .feature_bits = FEATURE_WRSR_WREN,
9080 .tested = TEST_UNTESTED,
9081 .probe = probe_spi_res1,
9082 .probe_timing = TIMING_ZERO,
9083 .block_erasers =
9084 {
9085 {
9086 .eraseblocks = { {64 * 1024, 8} },
9087 .block_erase = spi_block_erase_d8,
9088 }, {
9089 .eraseblocks = { {512 * 1024, 1} },
9090 .block_erase = spi_block_erase_c7,
9091 }
9092 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009093 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009094 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009095 .write = spi_chip_write_256,
9096 .read = spi_chip_read,
9097 },
9098
9099 {
9100 .vendor = "Micron/Numonyx/ST",
9101 .name = "M25P80",
9102 .bustype = BUS_SPI,
9103 .manufacture_id = ST_ID,
9104 .model_id = ST_M25P80,
9105 .total_size = 1024,
9106 .page_size = 256,
9107 .feature_bits = FEATURE_WRSR_WREN,
9108 .tested = TEST_OK_PREW,
9109 .probe = probe_spi_rdid,
9110 .probe_timing = TIMING_ZERO,
9111 .block_erasers =
9112 {
9113 {
9114 .eraseblocks = { {64 * 1024, 16} },
9115 .block_erase = spi_block_erase_d8,
9116 }, {
9117 .eraseblocks = { {1024 * 1024, 1} },
9118 .block_erase = spi_block_erase_c7,
9119 }
9120 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009121 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009122 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009123 .write = spi_chip_write_256,
9124 .read = spi_chip_read,
9125 .voltage = {2700, 3600},
9126 },
9127
9128 {
9129 .vendor = "Micron/Numonyx/ST",
9130 .name = "M25P16",
9131 .bustype = BUS_SPI,
9132 .manufacture_id = ST_ID,
9133 .model_id = ST_M25P16,
9134 .total_size = 2048,
9135 .page_size = 256,
9136 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00009137 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009138 .probe = probe_spi_rdid,
9139 .probe_timing = TIMING_ZERO,
9140 .block_erasers =
9141 {
9142 {
9143 .eraseblocks = { {64 * 1024, 32} },
9144 .block_erase = spi_block_erase_d8,
9145 }, {
9146 .eraseblocks = { {2 * 1024 * 1024, 1} },
9147 .block_erase = spi_block_erase_c7,
9148 }
9149 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009150 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009151 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009152 .write = spi_chip_write_256,
9153 .read = spi_chip_read,
9154 .voltage = {2700, 3600},
9155 },
9156
9157 {
9158 .vendor = "Micron/Numonyx/ST",
9159 .name = "M25P32",
9160 .bustype = BUS_SPI,
9161 .manufacture_id = ST_ID,
9162 .model_id = ST_M25P32,
9163 .total_size = 4096,
9164 .page_size = 256,
9165 .feature_bits = FEATURE_WRSR_WREN,
9166 .tested = TEST_OK_PREW,
9167 .probe = probe_spi_rdid,
9168 .probe_timing = TIMING_ZERO,
9169 .block_erasers =
9170 {
9171 {
9172 .eraseblocks = { {64 * 1024, 64} },
9173 .block_erase = spi_block_erase_d8,
9174 }, {
9175 .eraseblocks = { {4 * 1024 * 1024, 1} },
9176 .block_erase = spi_block_erase_c7,
9177 }
9178 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009179 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009180 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009181 .write = spi_chip_write_256,
9182 .read = spi_chip_read,
9183 .voltage = {2700, 3600},
9184 },
9185
9186 {
9187 .vendor = "Micron/Numonyx/ST",
9188 .name = "M25P64",
9189 .bustype = BUS_SPI,
9190 .manufacture_id = ST_ID,
9191 .model_id = ST_M25P64,
9192 .total_size = 8192,
9193 .page_size = 256,
9194 .feature_bits = FEATURE_WRSR_WREN,
9195 .tested = TEST_OK_PREW,
9196 .probe = probe_spi_rdid,
9197 .probe_timing = TIMING_ZERO,
9198 .block_erasers =
9199 {
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_c7,
9206 }
9207 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009208 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009209 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009210 .write = spi_chip_write_256,
9211 .read = spi_chip_read,
9212 .voltage = {2700, 3600},
9213 },
9214
9215 {
9216 .vendor = "Micron/Numonyx/ST",
9217 .name = "M25P128",
9218 .bustype = BUS_SPI,
9219 .manufacture_id = ST_ID,
9220 .model_id = ST_M25P128,
9221 .total_size = 16384,
9222 .page_size = 256,
9223 .feature_bits = FEATURE_WRSR_WREN,
9224 .tested = TEST_OK_PREW,
9225 .probe = probe_spi_rdid,
9226 .probe_timing = TIMING_ZERO,
9227 .block_erasers =
9228 {
9229 {
9230 .eraseblocks = { {256 * 1024, 64} },
9231 .block_erase = spi_block_erase_d8,
9232 }, {
9233 .eraseblocks = { {16 * 1024 * 1024, 1} },
9234 .block_erase = spi_block_erase_c7,
9235 }
9236 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009237 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009238 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009239 .write = spi_chip_write_256,
9240 .read = spi_chip_read,
9241 .voltage = {2700, 3600},
9242 },
9243
9244 {
9245 .vendor = "Micron/Numonyx/ST",
9246 .name = "M25PE10",
9247 .bustype = BUS_SPI,
9248 .manufacture_id = ST_ID,
9249 .model_id = ST_M25PE10,
9250 .total_size = 128,
9251 .page_size = 256,
9252 .feature_bits = FEATURE_WRSR_WREN,
9253 .tested = TEST_UNTESTED,
9254 .probe = probe_spi_rdid,
9255 .probe_timing = TIMING_ZERO,
9256 .block_erasers =
9257 {
9258 {
9259 .eraseblocks = { {4 * 1024, 32} },
9260 .block_erase = spi_block_erase_20,
9261 }, {
9262 .eraseblocks = { {64 * 1024, 2} },
9263 .block_erase = spi_block_erase_d8,
9264 }, {
9265 .eraseblocks = { {128 * 1024, 1} },
9266 .block_erase = spi_block_erase_c7,
9267 }
9268 },
9269 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
9270 .unlock = spi_disable_blockprotect,
9271 .write = spi_chip_write_256,
9272 .read = spi_chip_read,
9273 .voltage = {2700, 3600},
9274 },
9275
9276 {
9277 .vendor = "Micron/Numonyx/ST",
9278 .name = "M25PE20",
9279 .bustype = BUS_SPI,
9280 .manufacture_id = ST_ID,
9281 .model_id = ST_M25PE20,
9282 .total_size = 256,
9283 .page_size = 256,
9284 .feature_bits = FEATURE_WRSR_WREN,
9285 .tested = TEST_UNTESTED,
9286 .probe = probe_spi_rdid,
9287 .probe_timing = TIMING_ZERO,
9288 .block_erasers =
9289 {
9290 {
9291 .eraseblocks = { {4 * 1024, 64} },
9292 .block_erase = spi_block_erase_20,
9293 }, {
9294 .eraseblocks = { {64 * 1024, 4} },
9295 .block_erase = spi_block_erase_d8,
9296 }, {
9297 .eraseblocks = { {256 * 1024, 1} },
9298 .block_erase = spi_block_erase_c7,
9299 }
9300 },
9301 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
9302 .unlock = spi_disable_blockprotect,
9303 .write = spi_chip_write_256,
9304 .read = spi_chip_read,
9305 .voltage = {2700, 3600},
9306 },
9307
9308 {
9309 .vendor = "Micron/Numonyx/ST",
9310 .name = "M25PE40",
9311 .bustype = BUS_SPI,
9312 .manufacture_id = ST_ID,
9313 .model_id = ST_M25PE40,
9314 .total_size = 512,
9315 .page_size = 256,
9316 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +00009317 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009318 .probe = probe_spi_rdid,
9319 .probe_timing = TIMING_ZERO,
9320 .block_erasers =
9321 {
9322 {
9323 .eraseblocks = { {4 * 1024, 128} },
9324 .block_erase = spi_block_erase_20,
9325 }, {
9326 .eraseblocks = { {64 * 1024, 8} },
9327 .block_erase = spi_block_erase_d8,
9328 }, {
9329 .eraseblocks = { {512 * 1024, 1} },
9330 .block_erase = spi_block_erase_c7,
9331 }
9332 },
9333 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
9334 .unlock = spi_disable_blockprotect,
9335 .write = spi_chip_write_256,
9336 .read = spi_chip_read,
9337 .voltage = {2700, 3600},
9338 },
9339
9340 {
9341 .vendor = "Micron/Numonyx/ST",
9342 .name = "M25PE80",
9343 .bustype = BUS_SPI,
9344 .manufacture_id = ST_ID,
9345 .model_id = ST_M25PE80,
9346 .total_size = 1024,
9347 .page_size = 256,
9348 .feature_bits = FEATURE_WRSR_WREN,
9349 .tested = TEST_OK_PREW,
9350 .probe = probe_spi_rdid,
9351 .probe_timing = TIMING_ZERO,
9352 .block_erasers =
9353 {
9354 {
9355 .eraseblocks = { {4 * 1024, 256} },
9356 .block_erase = spi_block_erase_20,
9357 }, {
9358 .eraseblocks = { {64 * 1024, 16} },
9359 .block_erase = spi_block_erase_d8,
9360 }, {
9361 .eraseblocks = { {1024 * 1024, 1} },
9362 .block_erase = spi_block_erase_c7,
9363 }
9364 },
9365 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
9366 .unlock = spi_disable_blockprotect,
9367 .write = spi_chip_write_256,
9368 .read = spi_chip_read,
9369 .voltage = {2700, 3600},
9370 },
9371
9372 {
9373 .vendor = "Micron/Numonyx/ST",
9374 .name = "M25PE16",
9375 .bustype = BUS_SPI,
9376 .manufacture_id = ST_ID,
9377 .model_id = ST_M25PE16,
9378 .total_size = 2048,
9379 .page_size = 256,
9380 .feature_bits = FEATURE_WRSR_WREN,
9381 .tested = TEST_UNTESTED,
9382 .probe = probe_spi_rdid,
9383 .probe_timing = TIMING_ZERO,
9384 .block_erasers =
9385 {
9386 {
9387 .eraseblocks = { {4 * 1024, 512} },
9388 .block_erase = spi_block_erase_20,
9389 }, {
9390 .eraseblocks = { {64 * 1024, 32} },
9391 .block_erase = spi_block_erase_d8,
9392 }, {
9393 .eraseblocks = { {2 * 1024 * 1024, 1} },
9394 .block_erase = spi_block_erase_c7,
9395 }
9396 },
9397 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
9398 .unlock = spi_disable_blockprotect,
9399 .write = spi_chip_write_256,
9400 .read = spi_chip_read,
9401 .voltage = {2700, 3600},
9402 },
9403
9404 {
9405 .vendor = "Micron/Numonyx/ST",
9406 .name = "M25PX80",
9407 .bustype = BUS_SPI,
9408 .manufacture_id = ST_ID,
9409 .model_id = ST_M25PX80,
9410 .total_size = 1024,
9411 .page_size = 256,
9412 /* OTP: 64B total; read 0x4B, write 0x42 */
9413 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9414 .tested = TEST_OK_PREW,
9415 .probe = probe_spi_rdid,
9416 .probe_timing = TIMING_ZERO,
9417 .block_erasers = {
9418 {
9419 .eraseblocks = { { 4 * 1024, 256 } },
9420 .block_erase = spi_block_erase_20,
9421 }, {
9422 .eraseblocks = { {64 * 1024, 16} },
9423 .block_erase = spi_block_erase_d8,
9424 }, {
9425 .eraseblocks = { {1024 * 1024, 1} },
9426 .block_erase = spi_block_erase_c7,
9427 }
9428 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009429 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009430 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
9431 .write = spi_chip_write_256,
9432 .read = spi_chip_read,
9433 .voltage = {2700, 3600},
9434 },
9435
9436 {
9437 .vendor = "Micron/Numonyx/ST",
9438 .name = "M25PX16",
9439 .bustype = BUS_SPI,
9440 .manufacture_id = ST_ID,
9441 .model_id = ST_M25PX16,
9442 .total_size = 2048,
9443 .page_size = 256,
9444 /* OTP: 64B total; read 0x4B; write 0x42 */
9445 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9446 .tested = TEST_OK_PREW,
9447 .probe = probe_spi_rdid,
9448 .probe_timing = TIMING_ZERO,
9449 .block_erasers =
9450 {
9451 {
9452 .eraseblocks = { { 4 * 1024, 512 } },
9453 .block_erase = spi_block_erase_20,
9454 }, {
9455 .eraseblocks = { {64 * 1024, 32} },
9456 .block_erase = spi_block_erase_d8,
9457 }, {
9458 .eraseblocks = { {2 * 1024 * 1024, 1} },
9459 .block_erase = spi_block_erase_c7,
9460 }
9461 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009462 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009463 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
9464 .write = spi_chip_write_256,
9465 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00009466 .voltage = {2300, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009467 },
9468
9469 {
9470 .vendor = "Micron/Numonyx/ST",
9471 .name = "M25PX32",
9472 .bustype = BUS_SPI,
9473 .manufacture_id = ST_ID,
9474 .model_id = ST_M25PX32,
9475 .total_size = 4096,
9476 .page_size = 256,
9477 /* OTP: 64B total; read 0x4B; write 0x42 */
9478 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9479 .tested = TEST_OK_PRE,
9480 .probe = probe_spi_rdid,
9481 .probe_timing = TIMING_ZERO,
9482 .block_erasers =
9483 {
9484 {
9485 .eraseblocks = { { 4 * 1024, 1024 } },
9486 .block_erase = spi_block_erase_20,
9487 }, {
9488 .eraseblocks = { {64 * 1024, 64} },
9489 .block_erase = spi_block_erase_d8,
9490 }, {
9491 .eraseblocks = { {4 * 1024 * 1024, 1} },
9492 .block_erase = spi_block_erase_c7,
9493 }
9494 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009495 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009496 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
9497 .write = spi_chip_write_256,
9498 .read = spi_chip_read,
9499 .voltage = {2700, 3600},
9500 },
9501
9502 {
9503 .vendor = "Micron/Numonyx/ST",
9504 .name = "M25PX64",
9505 .bustype = BUS_SPI,
9506 .manufacture_id = ST_ID,
9507 .model_id = ST_M25PX64,
9508 .total_size = 8192,
9509 .page_size = 256,
9510 /* OTP: 64B total; read 0x4B; write 0x42 */
9511 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00009512 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009513 .probe = probe_spi_rdid,
9514 .probe_timing = TIMING_ZERO,
9515 .block_erasers =
9516 {
9517 {
9518 .eraseblocks = { { 4 * 1024, 2048 } },
9519 .block_erase = spi_block_erase_20,
9520 }, {
9521 .eraseblocks = { {64 * 1024, 128} },
9522 .block_erase = spi_block_erase_d8,
9523 }, {
9524 .eraseblocks = { {8 * 1024 * 1024, 1} },
9525 .block_erase = spi_block_erase_c7,
9526 }
9527 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009528 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009529 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
9530 .write = spi_chip_write_256,
9531 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00009532 .voltage = {2700, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009533 },
9534
9535 {
9536 .vendor = "Micron/Numonyx/ST",
9537 .name = "M45PE10",
9538 .bustype = BUS_SPI,
9539 .manufacture_id = ST_ID,
9540 .model_id = ST_M45PE10,
9541 .total_size = 128,
9542 .page_size = 256,
9543 .tested = TEST_UNTESTED,
9544 .probe = probe_spi_rdid,
9545 .probe_timing = TIMING_ZERO,
9546 .block_erasers = {
9547 {
9548 .eraseblocks = { {256, 512} },
9549 .block_erase = spi_block_erase_db,
9550 }, {
9551 .eraseblocks = { {64 * 1024, 2} },
9552 .block_erase = spi_block_erase_d8,
9553 }
9554 },
9555 .printlock = spi_prettyprint_status_register_default_welwip,
9556 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
9557 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
9558 .read = spi_chip_read, /* Fast read (0x0B) supported */
9559 .voltage = {2700, 3600},
9560 },
9561
9562 {
9563 .vendor = "Micron/Numonyx/ST",
9564 .name = "M45PE20",
9565 .bustype = BUS_SPI,
9566 .manufacture_id = ST_ID,
9567 .model_id = ST_M45PE20,
9568 .total_size = 256,
9569 .page_size = 256,
9570 .tested = TEST_UNTESTED,
9571 .probe = probe_spi_rdid,
9572 .probe_timing = TIMING_ZERO,
9573 .block_erasers = {
9574 {
9575 .eraseblocks = { {256, 1024} },
9576 .block_erase = spi_block_erase_db,
9577 }, {
9578 .eraseblocks = { {64 * 1024, 4} },
9579 .block_erase = spi_block_erase_d8,
9580 }
9581 },
9582 .printlock = spi_prettyprint_status_register_default_welwip,
9583 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
9584 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
9585 .read = spi_chip_read, /* Fast read (0x0B) supported */
9586 .voltage = {2700, 3600},
9587 },
9588
9589 {
9590 .vendor = "Micron/Numonyx/ST",
9591 .name = "M45PE40",
9592 .bustype = BUS_SPI,
9593 .manufacture_id = ST_ID,
9594 .model_id = ST_M45PE40,
9595 .total_size = 512,
9596 .page_size = 256,
9597 .tested = TEST_UNTESTED,
9598 .probe = probe_spi_rdid,
9599 .probe_timing = TIMING_ZERO,
9600 .block_erasers = {
9601 {
9602 .eraseblocks = { {256, 2048} },
9603 .block_erase = spi_block_erase_db,
9604 }, {
9605 .eraseblocks = { {64 * 1024, 8} },
9606 .block_erase = spi_block_erase_d8,
9607 }
9608 },
9609 .printlock = spi_prettyprint_status_register_default_welwip,
9610 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
Stefan Tauner23e10b82016-01-23 16:16:49 +00009611 .write = spi_chip_write_256, /* Page write supported (similar to PP but allows 0->1 changes) */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009612 .read = spi_chip_read, /* Fast read (0x0B) supported */
9613 .voltage = {2700, 3600},
9614 },
9615
9616 {
9617 .vendor = "Micron/Numonyx/ST",
9618 .name = "M45PE80",
9619 .bustype = BUS_SPI,
9620 .manufacture_id = ST_ID,
9621 .model_id = ST_M45PE80,
9622 .total_size = 1024,
9623 .page_size = 256,
9624 .tested = TEST_UNTESTED,
9625 .probe = probe_spi_rdid,
9626 .probe_timing = TIMING_ZERO,
9627 .block_erasers = {
9628 {
9629 .eraseblocks = { {256, 4096} },
9630 .block_erase = spi_block_erase_db,
9631 }, {
9632 .eraseblocks = { {64 * 1024, 16} },
9633 .block_erase = spi_block_erase_d8,
9634 }
9635 },
9636 .printlock = spi_prettyprint_status_register_default_welwip,
9637 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
9638 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
9639 .read = spi_chip_read, /* Fast read (0x0B) supported */
9640 .voltage = {2700, 3600},
9641 },
9642
9643 {
9644 .vendor = "Micron/Numonyx/ST",
9645 .name = "M45PE16",
9646 .bustype = BUS_SPI,
9647 .manufacture_id = ST_ID,
9648 .model_id = ST_M45PE16,
9649 .total_size = 2048,
9650 .page_size = 256,
9651 .tested = TEST_UNTESTED,
9652 .probe = probe_spi_rdid,
9653 .probe_timing = TIMING_ZERO,
9654 .block_erasers = {
9655 {
9656 .eraseblocks = { {256, 8192} },
9657 .block_erase = spi_block_erase_db,
9658 }, {
9659 .eraseblocks = { {64 * 1024, 32} },
9660 .block_erase = spi_block_erase_d8,
9661 }
9662 },
9663 .printlock = spi_prettyprint_status_register_default_welwip,
9664 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
9665 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
9666 .read = spi_chip_read, /* Fast read (0x0B) supported */
9667 .voltage = {2700, 3600},
9668 },
9669
9670 {
9671 .vendor = "Micron/Numonyx/ST",
9672 .name = "N25Q016",
9673 .bustype = BUS_SPI,
9674 .manufacture_id = ST_ID,
9675 .model_id = ST_N25Q016__1E,
9676 .total_size = 2048,
9677 .page_size = 256,
9678 /* supports SFDP */
9679 /* OTP: 64B total; read 0x4B, write 0x42 */
9680 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9681 .tested = TEST_UNTESTED,
9682 .probe = probe_spi_rdid,
9683 .probe_timing = TIMING_ZERO,
9684 .block_erasers =
9685 {
9686 {
9687 .eraseblocks = { {4 * 1024, 512} },
9688 .block_erase = spi_block_erase_20,
9689 }, {
9690 .eraseblocks = { {32 * 1024, 64} },
9691 .block_erase = spi_block_erase_52,
9692 }, {
9693 .eraseblocks = { {64 * 1024, 32} },
9694 .block_erase = spi_block_erase_d8,
9695 }, {
9696 .eraseblocks = { {2 * 1024 * 1024, 1} },
9697 .block_erase = spi_block_erase_c7,
9698 }
9699 },
9700 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
9701 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
9702 .write = spi_chip_write_256, /* Multi I/O supported */
9703 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9704 .voltage = {1700, 2000},
9705 },
9706
9707 {
9708 .vendor = "Micron/Numonyx/ST",
9709 .name = "N25Q032..1E",
9710 .bustype = BUS_SPI,
9711 .manufacture_id = ST_ID,
9712 .model_id = ST_N25Q032__1E,
9713 .total_size = 4096,
9714 .page_size = 256,
9715 /* supports SFDP */
9716 /* OTP: 64B total; read 0x4B, write 0x42 */
9717 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9718 .tested = TEST_UNTESTED,
9719 .probe = probe_spi_rdid,
9720 .probe_timing = TIMING_ZERO,
9721 .block_erasers =
9722 {
9723 {
9724 .eraseblocks = { {4 * 1024, 1024} },
9725 .block_erase = spi_block_erase_20,
9726 }, {
9727 .eraseblocks = { {64 * 1024, 64} },
9728 .block_erase = spi_block_erase_d8,
9729 }, {
9730 .eraseblocks = { {4 * 1024 * 1024, 1} },
9731 .block_erase = spi_block_erase_c7,
9732 }
9733 },
9734 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
9735 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
9736 .write = spi_chip_write_256, /* Multi I/O supported */
9737 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9738 .voltage = {1700, 2000},
9739 },
9740
9741 {
9742 .vendor = "Micron/Numonyx/ST",
9743 .name = "N25Q032..3E",
9744 .bustype = BUS_SPI,
9745 .manufacture_id = ST_ID,
9746 .model_id = ST_N25Q032__3E,
9747 .total_size = 4096,
9748 .page_size = 256,
9749 /* supports SFDP */
9750 /* OTP: 64B total; read 0x4B, write 0x42 */
9751 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9752 .tested = TEST_OK_PREW,
9753 .probe = probe_spi_rdid,
9754 .probe_timing = TIMING_ZERO,
9755 .block_erasers =
9756 {
9757 {
9758 .eraseblocks = { {4 * 1024, 1024} },
9759 .block_erase = spi_block_erase_20,
9760 }, {
9761 .eraseblocks = { {64 * 1024, 64} },
9762 .block_erase = spi_block_erase_d8,
9763 }, {
9764 .eraseblocks = { {4 * 1024 * 1024, 1} },
9765 .block_erase = spi_block_erase_c7,
9766 }
9767 },
9768 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
9769 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
9770 .write = spi_chip_write_256, /* Multi I/O supported */
9771 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9772 .voltage = {2700, 3600},
9773 },
9774
9775 {
9776 .vendor = "Micron/Numonyx/ST",
9777 .name = "N25Q064..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
9778 .bustype = BUS_SPI,
9779 .manufacture_id = ST_ID,
9780 .model_id = ST_N25Q064__1E,
9781 .total_size = 8192,
9782 .page_size = 256,
9783 /* supports SFDP */
9784 /* OTP: 64B total; read 0x4B, write 0x42 */
9785 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00009786 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009787 .probe = probe_spi_rdid,
9788 .probe_timing = TIMING_ZERO,
9789 .block_erasers =
9790 {
9791 {
9792 .eraseblocks = { {4 * 1024, 2048 } },
9793 .block_erase = spi_block_erase_20,
9794 }, {
9795 .eraseblocks = { {64 * 1024, 128} },
9796 .block_erase = spi_block_erase_d8,
9797 }, {
9798 .eraseblocks = { {8 * 1024 * 1024, 1} },
9799 .block_erase = spi_block_erase_c7,
9800 }
9801 },
9802 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
9803 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
9804 .write = spi_chip_write_256, /* Multi I/O supported */
9805 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9806 .voltage = {1700, 2000},
9807 },
9808
9809 {
9810 .vendor = "Micron/Numonyx/ST",
9811 .name = "N25Q064..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
9812 .bustype = BUS_SPI,
9813 .manufacture_id = ST_ID,
9814 .model_id = ST_N25Q064__3E,
9815 .total_size = 8192,
9816 .page_size = 256,
9817 /* supports SFDP */
9818 /* OTP: 64B total; read 0x4B, write 0x42 */
9819 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9820 .tested = TEST_OK_PREW,
9821 .probe = probe_spi_rdid,
9822 .probe_timing = TIMING_ZERO,
9823 .block_erasers =
9824 {
9825 {
9826 .eraseblocks = { {4 * 1024, 2048 } },
9827 .block_erase = spi_block_erase_20,
9828 }, {
9829 .eraseblocks = { {64 * 1024, 128} },
9830 .block_erase = spi_block_erase_d8,
9831 }, {
9832 .eraseblocks = { {8 * 1024 * 1024, 1} },
9833 .block_erase = spi_block_erase_c7,
9834 }
9835 },
9836 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
9837 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
9838 .write = spi_chip_write_256, /* Multi I/O supported */
9839 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9840 .voltage = {2700, 3600},
9841 },
9842
9843 {
9844 .vendor = "Micron/Numonyx/ST",
9845 .name = "N25Q128..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
9846 .bustype = BUS_SPI,
9847 .manufacture_id = ST_ID,
9848 .model_id = ST_N25Q128__1E,
9849 .total_size = 16384,
9850 .page_size = 256,
9851 /* supports SFDP */
9852 /* OTP: 64B total; read 0x4B, write 0x42 */
9853 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +00009854 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009855 .probe = probe_spi_rdid,
9856 .probe_timing = TIMING_ZERO,
9857 .block_erasers = {
9858 {
9859 .eraseblocks = { {4 * 1024, 4096 } },
9860 .block_erase = spi_block_erase_20,
9861 }, {
9862 .eraseblocks = { {64 * 1024, 256} },
9863 .block_erase = spi_block_erase_d8,
9864 }, {
9865 .eraseblocks = { {16384 * 1024, 1} },
9866 .block_erase = spi_block_erase_c7,
9867 }
9868 },
9869 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
9870 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
9871 .write = spi_chip_write_256, /* Multi I/O supported */
9872 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9873 .voltage = {1700, 2000},
9874 },
9875
9876 {
9877 .vendor = "Micron/Numonyx/ST",
9878 .name = "N25Q128..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
9879 .bustype = BUS_SPI,
9880 .manufacture_id = ST_ID,
9881 .model_id = ST_N25Q128__3E,
9882 .total_size = 16384,
9883 .page_size = 256,
9884 /* supports SFDP */
9885 /* OTP: 64B total; read 0x4B, write 0x42 */
9886 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9887 .tested = TEST_OK_PREW,
9888 .probe = probe_spi_rdid,
9889 .probe_timing = TIMING_ZERO,
9890 .block_erasers = {
9891 {
9892 .eraseblocks = { {4 * 1024, 4096 } },
9893 .block_erase = spi_block_erase_20,
9894 }, {
9895 .eraseblocks = { {64 * 1024, 256} },
9896 .block_erase = spi_block_erase_d8,
9897 }, {
9898 .eraseblocks = { {16384 * 1024, 1} },
9899 .block_erase = spi_block_erase_c7,
9900 }
9901 },
9902 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
9903 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
9904 .write = spi_chip_write_256, /* Multi I/O supported */
9905 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9906 .voltage = {2700, 3600},
9907 },
9908
9909 {
Ed Swierk199ab392017-07-03 13:33:44 -07009910 .vendor = "Micron",
9911 .name = "N25Q256..3E/MT25QL256", /* ..3E/L = 3V, uniform 64KB/4KB blocks/sectors */
9912 .bustype = BUS_SPI,
9913 .manufacture_id = ST_ID,
9914 .model_id = ST_N25Q256__3E,
9915 .total_size = 32768,
9916 .page_size = 256,
9917 /* supports SFDP */
9918 /* OTP: 64B total; read 0x4B, write 0x42 */
Nico Hubera1672f82017-10-14 18:00:20 +02009919 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_SUPPORT | FEATURE_4BA_READ | FEATURE_4BA_WRITE,
Ed Swierk199ab392017-07-03 13:33:44 -07009920 .tested = TEST_OK_PREW,
9921 .probe = probe_spi_rdid,
9922 .probe_timing = TIMING_ZERO,
9923 .block_erasers = {
9924 {
9925 .eraseblocks = { {4 * 1024, 8192} },
Nico Huber7e3c81a2017-10-14 18:56:50 +02009926 .block_erase = spi_block_erase_21,
Ed Swierk199ab392017-07-03 13:33:44 -07009927 }, {
9928 .eraseblocks = { {64 * 1024, 512} },
Nico Huber7e3c81a2017-10-14 18:56:50 +02009929 .block_erase = spi_block_erase_dc,
Ed Swierk199ab392017-07-03 13:33:44 -07009930 }, {
9931 .eraseblocks = { {32768 * 1024, 1} },
9932 .block_erase = spi_block_erase_c7,
9933 }
9934 },
9935 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
9936 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
9937 .write = spi_chip_write_256, /* Multi I/O supported */
9938 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9939 .voltage = {2700, 3600},
9940 },
9941
9942 {
9943 .vendor = "Micron",
9944 .name = "N25Q512..3E/MT25QL512", /* ..3E/L = 3V, uniform 64KB/4KB blocks/sectors */
9945 .bustype = BUS_SPI,
9946 .manufacture_id = ST_ID,
9947 .model_id = ST_N25Q512__3E,
9948 .total_size = 65536,
9949 .page_size = 256,
9950 /* supports SFDP */
9951 /* OTP: 64B total; read 0x4B, write 0x42 */
Nico Hubera1672f82017-10-14 18:00:20 +02009952 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_SUPPORT | FEATURE_4BA_READ | FEATURE_4BA_WRITE,
Ed Swierk199ab392017-07-03 13:33:44 -07009953 .tested = TEST_OK_PREW,
9954 .probe = probe_spi_rdid,
9955 .probe_timing = TIMING_ZERO,
9956 .block_erasers = {
9957 {
9958 .eraseblocks = { {4 * 1024, 16384} },
Nico Huber7e3c81a2017-10-14 18:56:50 +02009959 .block_erase = spi_block_erase_21,
Ed Swierk199ab392017-07-03 13:33:44 -07009960 }, {
9961 .eraseblocks = { {64 * 1024, 1024} },
Nico Huber7e3c81a2017-10-14 18:56:50 +02009962 .block_erase = spi_block_erase_dc,
Ed Swierk199ab392017-07-03 13:33:44 -07009963 }, {
9964 .eraseblocks = { {65536 * 1024, 1} },
9965 .block_erase = spi_block_erase_c7,
9966 }
9967 },
9968 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
9969 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
9970 .write = spi_chip_write_256, /* Multi I/O supported */
9971 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9972 .voltage = {2700, 3600},
9973 },
9974
9975 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00009976 .vendor = "MoselVitelic",
9977 .name = "V29C51000B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009978 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00009979 .manufacture_id = SYNCMOS_MVC_ID,
9980 .model_id = MVC_V29C51000B,
9981 .total_size = 64,
9982 .page_size = 512,
9983 .feature_bits = FEATURE_EITHER_RESET,
9984 .tested = TEST_UNTESTED,
9985 .probe = probe_jedec,
9986 .probe_timing = TIMING_ZERO,
9987 .block_erasers =
9988 {
9989 {
9990 .eraseblocks = { {512, 128} },
9991 .block_erase = erase_sector_jedec,
9992 }, {
9993 .eraseblocks = { {64 * 1024, 1} },
9994 .block_erase = erase_chip_block_jedec,
9995 },
9996 },
9997 .write = write_jedec_1,
9998 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009999 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010000 },
10001
10002 {
10003 .vendor = "MoselVitelic",
10004 .name = "V29C51000T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010005 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010006 .manufacture_id = SYNCMOS_MVC_ID,
10007 .model_id = MVC_V29C51000T,
10008 .total_size = 64,
10009 .page_size = 512,
10010 .feature_bits = FEATURE_EITHER_RESET,
10011 .tested = TEST_UNTESTED,
10012 .probe = probe_jedec,
10013 .probe_timing = TIMING_ZERO,
10014 .block_erasers =
10015 {
10016 {
10017 .eraseblocks = { {512, 128} },
10018 .block_erase = erase_sector_jedec,
10019 }, {
10020 .eraseblocks = { {64 * 1024, 1} },
10021 .block_erase = erase_chip_block_jedec,
10022 },
10023 },
10024 .write = write_jedec_1,
10025 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010026 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010027 },
10028
10029 {
10030 .vendor = "MoselVitelic",
10031 .name = "V29C51400B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010032 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010033 .manufacture_id = SYNCMOS_MVC_ID,
10034 .model_id = MVC_V29C51400B,
10035 .total_size = 512,
10036 .page_size = 1024,
10037 .feature_bits = FEATURE_EITHER_RESET,
10038 .tested = TEST_UNTESTED,
10039 .probe = probe_jedec,
10040 .probe_timing = TIMING_ZERO,
10041 .block_erasers =
10042 {
10043 {
10044 .eraseblocks = { {1024, 512} },
10045 .block_erase = erase_sector_jedec,
10046 }, {
10047 .eraseblocks = { {512 * 1024, 1} },
10048 .block_erase = erase_chip_block_jedec,
10049 },
10050 },
10051 .write = write_jedec_1,
10052 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010053 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010054 },
10055
10056 {
10057 .vendor = "MoselVitelic",
10058 .name = "V29C51400T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010059 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010060 .manufacture_id = SYNCMOS_MVC_ID,
10061 .model_id = MVC_V29C51400T,
10062 .total_size = 512,
10063 .page_size = 1024,
10064 .feature_bits = FEATURE_EITHER_RESET,
10065 .tested = TEST_UNTESTED,
10066 .probe = probe_jedec,
10067 .probe_timing = TIMING_ZERO,
10068 .block_erasers =
10069 {
10070 {
10071 .eraseblocks = { {1024, 512} },
10072 .block_erase = erase_sector_jedec,
10073 }, {
10074 .eraseblocks = { {512 * 1024, 1} },
10075 .block_erase = erase_chip_block_jedec,
10076 },
10077 },
10078 .write = write_jedec_1,
10079 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010080 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010081 },
10082
10083 {
10084 .vendor = "MoselVitelic",
10085 .name = "V29LC51000",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010086 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010087 .manufacture_id = SYNCMOS_MVC_ID,
10088 .model_id = MVC_V29LC51000,
10089 .total_size = 64,
10090 .page_size = 512,
10091 .feature_bits = FEATURE_EITHER_RESET,
10092 .tested = TEST_UNTESTED,
10093 .probe = probe_jedec,
10094 .probe_timing = TIMING_ZERO,
10095 .block_erasers =
10096 {
10097 {
10098 .eraseblocks = { {512, 128} },
10099 .block_erase = erase_sector_jedec,
10100 }, {
10101 .eraseblocks = { {64 * 1024, 1} },
10102 .block_erase = erase_chip_block_jedec,
10103 },
10104 },
10105 .write = write_jedec_1,
10106 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010107 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010108 },
10109
10110 {
10111 .vendor = "MoselVitelic",
10112 .name = "V29LC51001",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010113 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010114 .manufacture_id = SYNCMOS_MVC_ID,
10115 .model_id = MVC_V29LC51001,
10116 .total_size = 128,
10117 .page_size = 512,
10118 .feature_bits = FEATURE_EITHER_RESET,
10119 .tested = TEST_UNTESTED,
10120 .probe = probe_jedec,
10121 .probe_timing = TIMING_ZERO,
10122 .block_erasers =
10123 {
10124 {
10125 .eraseblocks = { {512, 256} },
10126 .block_erase = erase_sector_jedec,
10127 }, {
10128 .eraseblocks = { {128 * 1024, 1} },
10129 .block_erase = erase_chip_block_jedec,
10130 },
10131 },
10132 .write = write_jedec_1,
10133 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010134 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010135 },
10136
10137 {
10138 .vendor = "MoselVitelic",
10139 .name = "V29LC51002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010140 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010141 .manufacture_id = SYNCMOS_MVC_ID,
10142 .model_id = MVC_V29LC51002,
10143 .total_size = 256,
10144 .page_size = 512,
10145 .feature_bits = FEATURE_EITHER_RESET,
10146 .tested = TEST_UNTESTED,
10147 .probe = probe_jedec,
10148 .probe_timing = TIMING_ZERO,
10149 .block_erasers =
10150 {
10151 {
10152 .eraseblocks = { {512, 512} },
10153 .block_erase = erase_sector_jedec,
10154 }, {
10155 .eraseblocks = { {256 * 1024, 1} },
10156 .block_erase = erase_chip_block_jedec,
10157 },
10158 },
10159 .write = write_jedec_1,
10160 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010161 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010162 },
10163
10164 {
Stefan Taunerb6b00e92013-06-28 21:28:43 +000010165 .vendor = "Nantronics",
10166 .name = "N25S10",
10167 .bustype = BUS_SPI,
10168 .manufacture_id = NANTRONICS_ID_NOPREFIX,
10169 .model_id = NANTRONICS_N25S10,
10170 .total_size = 128,
10171 .page_size = 256,
10172 .feature_bits = FEATURE_WRSR_WREN,
10173 .tested = TEST_UNTESTED,
10174 .probe = probe_spi_rdid,
10175 .probe_timing = TIMING_ZERO,
10176 .block_erasers =
10177 {
10178 {
10179 .eraseblocks = { {4 * 1024, 32} },
10180 .block_erase = spi_block_erase_20,
10181 }, {
10182 .eraseblocks = { {4 * 1024, 32} },
10183 .block_erase = spi_block_erase_d7,
10184 }, {
10185 .eraseblocks = { {32 * 1024, 4} },
10186 .block_erase = spi_block_erase_52,
10187 }, {
10188 .eraseblocks = { {64 * 1024, 2} },
10189 .block_erase = spi_block_erase_d8,
10190 }, {
10191 .eraseblocks = { {128 * 1024, 1} },
10192 .block_erase = spi_block_erase_60,
10193 }, {
10194 .eraseblocks = { {128 * 1024, 1} },
10195 .block_erase = spi_block_erase_c7,
10196 }
10197 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010198 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000010199 .unlock = spi_disable_blockprotect_bp3_srwd,
10200 .write = spi_chip_write_256,
10201 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
10202 .voltage = {2700, 3600},
10203 },
10204
10205 {
10206 .vendor = "Nantronics",
10207 .name = "N25S20",
10208 .bustype = BUS_SPI,
10209 .manufacture_id = NANTRONICS_ID_NOPREFIX,
10210 .model_id = NANTRONICS_N25S20,
10211 .total_size = 256,
10212 .page_size = 256,
10213 .feature_bits = FEATURE_WRSR_WREN,
10214 .tested = TEST_UNTESTED,
10215 .probe = probe_spi_rdid,
10216 .probe_timing = TIMING_ZERO,
10217 .block_erasers =
10218 {
10219 {
10220 .eraseblocks = { {4 * 1024, 64} },
10221 .block_erase = spi_block_erase_20,
10222 }, {
10223 .eraseblocks = { {4 * 1024, 64} },
10224 .block_erase = spi_block_erase_d7,
10225 }, {
10226 .eraseblocks = { {32 * 1024, 8} },
10227 .block_erase = spi_block_erase_52,
10228 }, {
10229 .eraseblocks = { {64 * 1024, 4} },
10230 .block_erase = spi_block_erase_d8,
10231 }, {
10232 .eraseblocks = { {256 * 1024, 1} },
10233 .block_erase = spi_block_erase_60,
10234 }, {
10235 .eraseblocks = { {256 * 1024, 1} },
10236 .block_erase = spi_block_erase_c7,
10237 }
10238 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010239 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000010240 .unlock = spi_disable_blockprotect_bp3_srwd,
10241 .write = spi_chip_write_256,
10242 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
10243 .voltage = {2700, 3600},
10244 },
10245
10246 {
10247 .vendor = "Nantronics",
10248 .name = "N25S40",
10249 .bustype = BUS_SPI,
10250 .manufacture_id = NANTRONICS_ID_NOPREFIX,
10251 .model_id = NANTRONICS_N25S40,
10252 .total_size = 512,
10253 .page_size = 256,
10254 .feature_bits = FEATURE_WRSR_WREN,
10255 .tested = TEST_UNTESTED,
10256 .probe = probe_spi_rdid,
10257 .probe_timing = TIMING_ZERO,
10258 .block_erasers =
10259 {
10260 {
10261 .eraseblocks = { {4 * 1024, 128} },
10262 .block_erase = spi_block_erase_20,
10263 }, {
10264 .eraseblocks = { {4 * 1024, 128} },
10265 .block_erase = spi_block_erase_d7,
10266 }, {
10267 .eraseblocks = { {32 * 1024, 16} },
10268 .block_erase = spi_block_erase_52,
10269 }, {
10270 .eraseblocks = { {64 * 1024, 8} },
10271 .block_erase = spi_block_erase_d8,
10272 }, {
10273 .eraseblocks = { {512 * 1024, 1} },
10274 .block_erase = spi_block_erase_60,
10275 }, {
10276 .eraseblocks = { {512 * 1024, 1} },
10277 .block_erase = spi_block_erase_c7,
10278 }
10279 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010280 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000010281 .unlock = spi_disable_blockprotect_bp3_srwd,
10282 .write = spi_chip_write_256,
10283 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
10284 .voltage = {2700, 3600},
10285 },
10286
10287 {
10288 .vendor = "Nantronics",
10289 .name = "N25S80",
10290 .bustype = BUS_SPI,
10291 .manufacture_id = NANTRONICS_ID_NOPREFIX,
10292 .model_id = NANTRONICS_N25S80,
10293 .total_size = 1024,
10294 .page_size = 256,
10295 .feature_bits = FEATURE_WRSR_WREN,
10296 .tested = TEST_UNTESTED,
10297 .probe = probe_spi_rdid,
10298 .probe_timing = TIMING_ZERO,
10299 .block_erasers =
10300 {
10301 {
10302 .eraseblocks = { {4 * 1024, 256} },
10303 .block_erase = spi_block_erase_20,
10304 }, {
10305 .eraseblocks = { {32 * 1024, 32} },
10306 .block_erase = spi_block_erase_52,
10307 }, {
10308 .eraseblocks = { {64 * 1024, 16} },
10309 .block_erase = spi_block_erase_d8,
10310 }, {
10311 .eraseblocks = { {1024 * 1024, 1} },
10312 .block_erase = spi_block_erase_60,
10313 }, {
10314 .eraseblocks = { {1024 * 1024, 1} },
10315 .block_erase = spi_block_erase_c7,
10316 }
10317 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010318 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000010319 .unlock = spi_disable_blockprotect_bp3_srwd,
10320 .write = spi_chip_write_256,
10321 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
10322 .voltage = {2700, 3600},
10323 },
10324
10325 {
10326 .vendor = "Nantronics",
10327 .name = "N25S16",
10328 .bustype = BUS_SPI,
10329 .manufacture_id = NANTRONICS_ID_NOPREFIX,
10330 .model_id = NANTRONICS_N25S16,
10331 .total_size = 2048,
10332 .page_size = 256,
10333 .feature_bits = FEATURE_WRSR_WREN,
10334 .tested = TEST_UNTESTED,
10335 .probe = probe_spi_rdid,
10336 .probe_timing = TIMING_ZERO,
10337 .block_erasers =
10338 {
10339 {
10340 .eraseblocks = { {4 * 1024, 512} },
10341 .block_erase = spi_block_erase_20,
10342 }, {
10343 .eraseblocks = { {64 * 1024, 32} },
10344 .block_erase = spi_block_erase_d8,
10345 }, {
10346 .eraseblocks = { {2048 * 1024, 1} },
10347 .block_erase = spi_block_erase_60,
10348 }, {
10349 .eraseblocks = { {2048 * 1024, 1} },
10350 .block_erase = spi_block_erase_c7,
10351 }
10352 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010353 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000010354 .unlock = spi_disable_blockprotect_bp3_srwd,
10355 .write = spi_chip_write_256,
10356 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
10357 .voltage = {2700, 3600},
10358 },
10359
10360 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010361 .vendor = "PMC",
Stefan Taunerf4451612013-04-19 01:59:15 +000010362 .name = "Pm25LD256C",
10363 .bustype = BUS_SPI,
10364 .manufacture_id = PMC_ID,
10365 .model_id = PMC_PM25LD256C,
10366 .total_size = 32,
10367 .page_size = 256,
10368 .feature_bits = FEATURE_WRSR_WREN,
10369 .tested = TEST_UNTESTED,
10370 .probe = probe_spi_rdid,
10371 .probe_timing = TIMING_ZERO,
10372 .block_erasers =
10373 {
10374 {
10375 .eraseblocks = { {4 * 1024, 8} },
10376 .block_erase = spi_block_erase_20,
10377 }, {
10378 .eraseblocks = { {4 * 1024, 8} },
10379 .block_erase = spi_block_erase_d7,
10380 }, {
10381 .eraseblocks = { {32 * 1024, 1} },
10382 .block_erase = spi_block_erase_d8,
10383 }, {
10384 .eraseblocks = { {32 * 1024, 1} },
10385 .block_erase = spi_block_erase_60,
10386 }, {
10387 .eraseblocks = { {32 * 1024, 1} },
10388 .block_erase = spi_block_erase_c7,
10389 }
10390 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010391 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000010392 .unlock = spi_disable_blockprotect,
10393 .write = spi_chip_write_256,
10394 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
10395 .voltage = {2700, 3600},
10396 },
10397 {
10398 .vendor = "PMC",
10399 .name = "Pm25LD512(C)",
10400 .bustype = BUS_SPI,
10401 .manufacture_id = PMC_ID,
10402 .model_id = PMC_PM25LD512,
10403 .total_size = 64,
10404 .page_size = 256,
10405 .feature_bits = FEATURE_WRSR_WREN,
10406 .tested = TEST_OK_PREW,
10407 .probe = probe_spi_rdid,
10408 .probe_timing = TIMING_ZERO,
10409 .block_erasers =
10410 {
10411 {
10412 .eraseblocks = { {4 * 1024, 16} },
10413 .block_erase = spi_block_erase_20,
10414 }, {
10415 .eraseblocks = { {4 * 1024, 16} },
10416 .block_erase = spi_block_erase_d7,
10417 }, {
10418 .eraseblocks = { {32 * 1024, 2} },
10419 .block_erase = spi_block_erase_d8,
10420 }, {
10421 .eraseblocks = { {64 * 1024, 1} },
10422 .block_erase = spi_block_erase_60,
10423 }, {
10424 .eraseblocks = { {64 * 1024, 1} },
10425 .block_erase = spi_block_erase_c7,
10426 }
10427 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010428 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000010429 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
10430 .write = spi_chip_write_256,
10431 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
10432 .voltage = {2300, 3600},
10433 },
10434
10435 {
10436 .vendor = "PMC",
10437 .name = "Pm25LD010(C)",
10438 .bustype = BUS_SPI,
10439 .manufacture_id = PMC_ID,
10440 .model_id = PMC_PM25LD010,
10441 .total_size = 128,
10442 .page_size = 256,
10443 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000010444 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +000010445 .probe = probe_spi_rdid,
10446 .probe_timing = TIMING_ZERO,
10447 .block_erasers =
10448 {
10449 {
10450 .eraseblocks = { {4 * 1024, 32} },
10451 .block_erase = spi_block_erase_20,
10452 }, {
10453 .eraseblocks = { {4 * 1024, 32} },
10454 .block_erase = spi_block_erase_d7,
10455 }, {
10456 .eraseblocks = { {32 * 1024, 4} },
10457 .block_erase = spi_block_erase_d8,
10458 }, {
10459 .eraseblocks = { {128 * 1024, 1} },
10460 .block_erase = spi_block_erase_60,
10461 }, {
10462 .eraseblocks = { {128 * 1024, 1} },
10463 .block_erase = spi_block_erase_c7,
10464 }
10465 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010466 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000010467 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
10468 .write = spi_chip_write_256,
10469 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
10470 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD010 */
10471 },
10472
10473 {
10474 .vendor = "PMC",
10475 .name = "Pm25LD020(C)",
10476 .bustype = BUS_SPI,
10477 .manufacture_id = PMC_ID,
10478 .model_id = PMC_PM25LD020,
10479 .total_size = 256,
10480 .page_size = 256,
10481 .feature_bits = FEATURE_WRSR_WREN,
10482 .tested = TEST_UNTESTED,
10483 .probe = probe_spi_rdid,
10484 .probe_timing = TIMING_ZERO,
10485 .block_erasers =
10486 {
10487 {
10488 .eraseblocks = { {4 * 1024, 64} },
10489 .block_erase = spi_block_erase_20,
10490 }, {
10491 .eraseblocks = { {4 * 1024, 64} },
10492 .block_erase = spi_block_erase_d7,
10493 }, {
10494 .eraseblocks = { {64 * 1024, 4} },
10495 .block_erase = spi_block_erase_d8,
10496 }, {
10497 .eraseblocks = { {256 * 1024, 1} },
10498 .block_erase = spi_block_erase_60,
10499 }, {
10500 .eraseblocks = { {256 * 1024, 1} },
10501 .block_erase = spi_block_erase_c7,
10502 }
10503 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010504 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000010505 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
10506 .write = spi_chip_write_256,
10507 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
10508 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD020 */
10509 },
10510
10511 {
10512 .vendor = "PMC",
10513 .name = "Pm25LD040(C)",
10514 .bustype = BUS_SPI,
10515 .manufacture_id = PMC_ID,
10516 .model_id = PMC_PM25LV040,
10517 .total_size = 512,
10518 .page_size = 256,
10519 .feature_bits = FEATURE_WRSR_WREN,
10520 .tested = TEST_UNTESTED,
10521 .probe = probe_spi_rdid,
10522 .probe_timing = TIMING_ZERO,
10523 .block_erasers =
10524 {
10525 {
10526 .eraseblocks = { {4 * 1024, 128} },
10527 .block_erase = spi_block_erase_20,
10528 }, {
10529 .eraseblocks = { {4 * 1024, 128} },
10530 .block_erase = spi_block_erase_d7,
10531 }, {
10532 .eraseblocks = { {64 * 1024, 8} },
10533 .block_erase = spi_block_erase_d8,
10534 }, {
10535 .eraseblocks = { {512 * 1024, 1} },
10536 .block_erase = spi_block_erase_60,
10537 }, {
10538 .eraseblocks = { {512 * 1024, 1} },
10539 .block_erase = spi_block_erase_c7,
10540 }
10541 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010542 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000010543 .unlock = spi_disable_blockprotect,
10544 .write = spi_chip_write_256,
10545 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
10546 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD040 */
10547 },
10548
Steven Honeyman81a8fb72015-06-02 22:32:24 +000010549 {
10550 .vendor = "PMC",
10551 .name = "Pm25LQ020",
10552 .bustype = BUS_SPI,
10553 .manufacture_id = PMC_ID,
10554 .model_id = PMC_PM25LQ020,
10555 .total_size = 256,
10556 .page_size = 256,
10557 /* OTP: 256B total; read 0x4B, write 0xB1 */
10558 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10559 .tested = TEST_UNTESTED,
10560 .probe = probe_spi_rdid,
10561 .probe_timing = TIMING_ZERO,
10562 .block_erasers =
10563 {
10564 {
10565 .eraseblocks = { {4 * 1024, 64} },
10566 .block_erase = spi_block_erase_20,
10567 }, {
10568 .eraseblocks = { {4 * 1024, 64} },
10569 .block_erase = spi_block_erase_d7,
10570 }, {
10571 .eraseblocks = { {64 * 1024, 4} },
10572 .block_erase = spi_block_erase_d8,
10573 }, {
10574 .eraseblocks = { {256 * 1024, 1} },
10575 .block_erase = spi_block_erase_60,
10576 }, {
10577 .eraseblocks = { {256 * 1024, 1} },
10578 .block_erase = spi_block_erase_c7,
10579 }
10580 },
10581 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
10582 .unlock = spi_disable_blockprotect_bp3_srwd,
10583 .write = spi_chip_write_256,
10584 .read = spi_chip_read,
10585 .voltage = {2300, 3600},
10586 },
10587
10588 {
10589 .vendor = "PMC",
10590 .name = "Pm25LQ040",
10591 .bustype = BUS_SPI,
10592 .manufacture_id = PMC_ID,
10593 .model_id = PMC_PM25LQ040,
10594 .total_size = 512,
10595 .page_size = 256,
10596 /* OTP: 256B total; read 0x4B, write 0xB1 */
10597 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10598 .tested = TEST_UNTESTED,
10599 .probe = probe_spi_rdid,
10600 .probe_timing = TIMING_ZERO,
10601 .block_erasers =
10602 {
10603 {
10604 .eraseblocks = { {4 * 1024, 128} },
10605 .block_erase = spi_block_erase_20,
10606 }, {
10607 .eraseblocks = { {4 * 1024, 128} },
10608 .block_erase = spi_block_erase_d7,
10609 }, {
10610 .eraseblocks = { {64 * 1024, 8} },
10611 .block_erase = spi_block_erase_d8,
10612 }, {
10613 .eraseblocks = { {512 * 1024, 1} },
10614 .block_erase = spi_block_erase_60,
10615 }, {
10616 .eraseblocks = { {512 * 1024, 1} },
10617 .block_erase = spi_block_erase_c7,
10618 }
10619 },
10620 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
10621 .unlock = spi_disable_blockprotect_bp3_srwd,
10622 .write = spi_chip_write_256,
10623 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10624 .voltage = {2300, 3600},
10625 },
10626
10627 {
10628 .vendor = "PMC",
10629 .name = "Pm25LQ080",
10630 .bustype = BUS_SPI,
10631 .manufacture_id = PMC_ID,
10632 .model_id = PMC_PM25LQ080,
10633 .total_size = 1024,
10634 .page_size = 256,
10635 /* OTP: 64B total; read 0x4B, write 0xB1 */
10636 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10637 .tested = TEST_UNTESTED,
10638 .probe = probe_spi_rdid,
10639 .probe_timing = TIMING_ZERO,
10640 .block_erasers =
10641 {
10642 {
10643 .eraseblocks = { {4 * 1024, 256} },
10644 .block_erase = spi_block_erase_20,
10645 }, {
10646 .eraseblocks = { {4 * 1024, 256} },
10647 .block_erase = spi_block_erase_d7,
10648 }, {
10649 .eraseblocks = { {64 * 1024, 16} },
10650 .block_erase = spi_block_erase_d8,
10651 }, {
10652 .eraseblocks = { {1024 * 1024, 1} },
10653 .block_erase = spi_block_erase_60,
10654 }, {
10655 .eraseblocks = { {1024 * 1024, 1} },
10656 .block_erase = spi_block_erase_c7,
10657 }
10658 },
10659 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
10660 .unlock = spi_disable_blockprotect_bp3_srwd,
10661 .write = spi_chip_write_256,
10662 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10663 .voltage = {2300, 3600},
10664 },
10665
10666 {
10667 .vendor = "PMC",
10668 .name = "Pm25LQ016",
10669 .bustype = BUS_SPI,
10670 .manufacture_id = PMC_ID,
10671 .model_id = PMC_PM25LQ016,
10672 .total_size = 2048,
10673 .page_size = 256,
10674 /* OTP: 256B total; read 0x4B, write 0xB1 */
10675 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10676 .tested = TEST_UNTESTED,
10677 .probe = probe_spi_rdid,
10678 .probe_timing = TIMING_ZERO,
10679 .block_erasers =
10680 {
10681 {
10682 .eraseblocks = { {4 * 1024, 512} },
10683 .block_erase = spi_block_erase_20,
10684 }, {
10685 .eraseblocks = { {4 * 1024, 512} },
10686 .block_erase = spi_block_erase_d7,
10687 }, {
10688 .eraseblocks = { {64 * 1024, 32} },
10689 .block_erase = spi_block_erase_d8,
10690 }, {
10691 .eraseblocks = { {2048 * 1024, 1} },
10692 .block_erase = spi_block_erase_60,
10693 }, {
10694 .eraseblocks = { {2048 * 1024, 1} },
10695 .block_erase = spi_block_erase_c7,
10696 }
10697 },
10698 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
10699 .unlock = spi_disable_blockprotect_bp3_srwd,
10700 .write = spi_chip_write_256,
10701 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10702 .voltage = {2300, 3600},
10703 },
10704
10705 {
10706 .vendor = "PMC",
10707 .name = "Pm25LQ032C",
10708 .bustype = BUS_SPI,
10709 .manufacture_id = PMC_ID,
10710 .model_id = PMC_PM25LQ032C,
10711 .total_size = 4096,
10712 .page_size = 256,
10713 /* OTP: 64B total; read 0x4B, write 0xB1 */
10714 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000010715 .tested = TEST_OK_PREW,
Steven Honeyman81a8fb72015-06-02 22:32:24 +000010716 .probe = probe_spi_rdid,
10717 .probe_timing = TIMING_ZERO,
10718 .block_erasers =
10719 {
10720 {
10721 .eraseblocks = { {4 * 1024, 1024} },
10722 .block_erase = spi_block_erase_20,
10723 }, {
10724 .eraseblocks = { {4 * 1024, 1024} },
10725 .block_erase = spi_block_erase_d7,
10726 }, {
10727 .eraseblocks = { {64 * 1024, 64} },
10728 .block_erase = spi_block_erase_d8,
10729 }, {
10730 .eraseblocks = { {4096 * 1024, 1} },
10731 .block_erase = spi_block_erase_60,
10732 }, {
10733 .eraseblocks = { {4096 * 1024, 1} },
10734 .block_erase = spi_block_erase_c7,
10735 }
10736 },
10737 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
10738 .unlock = spi_disable_blockprotect_bp3_srwd,
10739 .write = spi_chip_write_256,
10740 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10741 .voltage = {2700, 3600},
10742 },
10743
10744 {
Stefan Taunerf4451612013-04-19 01:59:15 +000010745 .vendor = "PMC",
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010746 .name = "Pm25LV512(A)",
10747 .bustype = BUS_SPI,
Stefan Taunerbecda742014-05-30 19:34:00 +000010748 .manufacture_id = PMC_ID_NOPREFIX,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010749 .model_id = PMC_PM25LV512,
10750 .total_size = 64,
10751 .page_size = 256,
10752 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +000010753 .tested = TEST_OK_PREW,
Stefan Taunerbecda742014-05-30 19:34:00 +000010754 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010755 .probe_timing = TIMING_ZERO,
10756 .block_erasers =
10757 {
10758 {
10759 .eraseblocks = { {4 * 1024, 16} },
10760 .block_erase = spi_block_erase_d7,
10761 }, {
10762 .eraseblocks = { {32 * 1024, 2} },
10763 .block_erase = spi_block_erase_d8,
10764 }, {
10765 .eraseblocks = { {64 * 1024, 1} },
10766 .block_erase = spi_block_erase_c7,
10767 }
10768 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010769 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010770 .unlock = spi_disable_blockprotect,
10771 .write = spi_chip_write_256,
10772 .read = spi_chip_read, /* Fast read (0x0B) supported */
10773 .voltage = {2700, 3600},
10774 },
10775
10776 {
10777 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010778 .name = "Pm25LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010779 .bustype = BUS_SPI,
Stefan Taunerbecda742014-05-30 19:34:00 +000010780 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010781 .model_id = PMC_PM25LV010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010782 .total_size = 128,
10783 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010784 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerbecda742014-05-30 19:34:00 +000010785 .tested = TEST_OK_PREW,
10786 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010787 .probe_timing = TIMING_ZERO,
10788 .block_erasers =
10789 {
10790 {
10791 .eraseblocks = { {4 * 1024, 32} },
10792 .block_erase = spi_block_erase_d7,
10793 }, {
10794 .eraseblocks = { {32 * 1024, 4} },
10795 .block_erase = spi_block_erase_d8,
10796 }, {
10797 .eraseblocks = { {128 * 1024, 1} },
10798 .block_erase = spi_block_erase_c7,
10799 }
10800 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010801 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010802 .unlock = spi_disable_blockprotect,
10803 .write = spi_chip_write_256,
10804 .read = spi_chip_read, /* Fast read (0x0B) supported */
10805 .voltage = {2700, 3600},
10806 },
10807
10808 {
10809 .vendor = "PMC",
10810 .name = "Pm25LV010A",
10811 .bustype = BUS_SPI,
10812 .manufacture_id = PMC_ID,
10813 .model_id = PMC_PM25LV010,
10814 .total_size = 128,
10815 .page_size = 256,
10816 .feature_bits = FEATURE_WRSR_WREN,
10817 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010818 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010819 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000010820 .block_erasers =
10821 {
10822 {
10823 .eraseblocks = { {4 * 1024, 32} },
10824 .block_erase = spi_block_erase_d7,
10825 }, {
10826 .eraseblocks = { {32 * 1024, 4} },
10827 .block_erase = spi_block_erase_d8,
10828 }, {
10829 .eraseblocks = { {128 * 1024, 1} },
10830 .block_erase = spi_block_erase_c7,
10831 }
10832 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010833 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010834 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000010835 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010836 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +000010837 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010838 },
10839
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010840 {
10841 .vendor = "PMC",
10842 .name = "Pm25LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010843 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010844 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010845 .model_id = PMC_PM25LV020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010846 .total_size = 256,
10847 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010848 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010849 .tested = TEST_UNTESTED,
10850 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010851 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000010852 .block_erasers =
10853 {
10854 {
10855 .eraseblocks = { {4 * 1024, 64} },
10856 .block_erase = spi_block_erase_d7,
10857 }, {
10858 .eraseblocks = { {64 * 1024, 4} },
10859 .block_erase = spi_block_erase_d8,
10860 }, {
10861 .eraseblocks = { {256 * 1024, 1} },
10862 .block_erase = spi_block_erase_c7,
10863 }
10864 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010865 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010866 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000010867 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010868 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010869 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010870 },
10871
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010872 {
10873 .vendor = "PMC",
10874 .name = "Pm25LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010875 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010876 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010877 .model_id = PMC_PM25LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010878 .total_size = 512,
10879 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010880 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +000010881 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010882 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010883 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000010884 .block_erasers =
10885 {
10886 {
10887 .eraseblocks = { {4 * 1024, 128} },
10888 .block_erase = spi_block_erase_d7,
10889 }, {
10890 .eraseblocks = { {64 * 1024, 8} },
10891 .block_erase = spi_block_erase_d8,
10892 }, {
10893 .eraseblocks = { {512 * 1024, 1} },
10894 .block_erase = spi_block_erase_c7,
10895 }
10896 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010897 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010898 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000010899 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010900 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010901 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010902 },
10903
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010904 {
10905 .vendor = "PMC",
10906 .name = "Pm25LV080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010907 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010908 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010909 .model_id = PMC_PM25LV080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010910 .total_size = 1024,
10911 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010912 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010913 .tested = TEST_UNTESTED,
10914 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010915 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000010916 .block_erasers =
10917 {
10918 {
10919 .eraseblocks = { {4 * 1024, 256} },
10920 .block_erase = spi_block_erase_d7,
10921 }, {
10922 .eraseblocks = { {4 * 1024, 256} },
10923 .block_erase = spi_block_erase_20,
10924 }, {
10925 .eraseblocks = { {64 * 1024, 16} },
10926 .block_erase = spi_block_erase_d8,
10927 }, {
10928 .eraseblocks = { {1024 * 1024, 1} },
10929 .block_erase = spi_block_erase_60,
10930 }, {
10931 .eraseblocks = { {1024 * 1024, 1} },
10932 .block_erase = spi_block_erase_c7,
10933 }
10934 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010935 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010936 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000010937 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010938 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010939 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010940 },
10941
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010942 {
10943 .vendor = "PMC",
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010944 .name = "Pm25LV016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010945 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010946 .manufacture_id = PMC_ID,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010947 .model_id = PMC_PM25LV016B,
10948 .total_size = 2048,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010949 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000010950 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010951 .tested = TEST_UNTESTED,
10952 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000010953 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000010954 .block_erasers =
10955 {
10956 {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010957 .eraseblocks = { {4 * 1024, 512} },
Sean Nelson5643c072010-01-19 03:23:07 +000010958 .block_erase = spi_block_erase_d7,
10959 }, {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010960 .eraseblocks = { {4 * 1024, 512} },
10961 .block_erase = spi_block_erase_20,
10962 }, {
10963 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson5643c072010-01-19 03:23:07 +000010964 .block_erase = spi_block_erase_d8,
10965 }, {
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010966 .eraseblocks = { {2 * 1024 * 1024, 1} },
10967 .block_erase = spi_block_erase_60,
10968 }, {
10969 .eraseblocks = { {2 * 1024 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +000010970 .block_erase = spi_block_erase_c7,
10971 }
10972 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010973 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000010974 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000010975 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000010976 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +000010977 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000010978 },
10979
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010980 {
10981 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +000010982 .name = "Pm29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010983 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000010984 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010985 .model_id = PMC_PM29F002T,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000010986 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +000010987 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010988 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +000010989 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +000010990 .probe = probe_jedec,
Stefan Tauneraf2db612011-12-02 21:48:17 +000010991 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +000010992 .block_erasers =
10993 {
10994 {
10995 .eraseblocks = {
10996 {128 * 1024, 1},
10997 {96 * 1024, 1},
10998 {8 * 1024, 2},
10999 {16 * 1024, 1},
11000 },
Sean Nelson35727f72010-01-28 23:55:12 +000011001 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000011002 }, {
11003 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000011004 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000011005 },
11006 },
Sean Nelson35727f72010-01-28 23:55:12 +000011007 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000011008 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011009 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +000011010 },
11011
11012 {
11013 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +000011014 .name = "Pm29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011015 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000011016 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011017 .model_id = PMC_PM29F002B,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000011018 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +000011019 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011020 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000011021 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000011022 .probe = probe_jedec,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011023 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +000011024 .block_erasers =
11025 {
11026 {
11027 .eraseblocks = {
11028 {16 * 1024, 1},
11029 {8 * 1024, 2},
11030 {96 * 1024, 1},
11031 {128 * 1024, 1},
11032 },
Sean Nelson35727f72010-01-28 23:55:12 +000011033 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000011034 }, {
11035 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000011036 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000011037 },
11038 },
Sean Nelson35727f72010-01-28 23:55:12 +000011039 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000011040 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011041 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +000011042 },
11043
11044 {
11045 .vendor = "PMC",
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000011046 .name = "Pm39LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011047 .bustype = BUS_PARALLEL,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000011048 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011049 .model_id = PMC_PM39F010, /* Pm39LV010 and Pm39F010 have identical IDs but different voltage */
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000011050 .total_size = 128,
11051 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000011052 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000011053 .tested = TEST_OK_PREW,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000011054 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011055 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson5643c072010-01-19 03:23:07 +000011056 .block_erasers =
11057 {
11058 {
11059 .eraseblocks = { {4 * 1024, 32} },
11060 .block_erase = erase_sector_jedec,
11061 }, {
11062 .eraseblocks = { {64 * 1024, 2} },
11063 .block_erase = erase_block_jedec,
11064 }, {
11065 .eraseblocks = { {128 * 1024, 1} },
11066 .block_erase = erase_chip_block_jedec,
11067 }
11068 },
Sean Nelson35727f72010-01-28 23:55:12 +000011069 .write = write_jedec_1,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000011070 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011071 .voltage = {2700, 3600},
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000011072 },
11073
11074 {
11075 .vendor = "PMC",
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011076 .name = "Pm39LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011077 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011078 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011079 .model_id = PMC_PM39LV020,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011080 .total_size = 256,
11081 .page_size = 4096,
11082 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
11083 .tested = TEST_UNTESTED,
11084 .probe = probe_jedec,
11085 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
11086 .block_erasers =
11087 {
11088 {
11089 .eraseblocks = { {4 * 1024, 64} },
11090 .block_erase = erase_sector_jedec,
11091 }, {
11092 .eraseblocks = { {64 * 1024, 4} },
11093 .block_erase = erase_block_jedec,
11094 }, {
11095 .eraseblocks = { {256 * 1024, 1} },
11096 .block_erase = erase_chip_block_jedec,
11097 }
11098 },
11099 .write = write_jedec_1,
11100 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011101 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011102 },
11103
11104 {
11105 .vendor = "PMC",
11106 .name = "Pm39LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011107 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011108 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011109 .model_id = PMC_PM39LV040,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011110 .total_size = 512,
11111 .page_size = 4096,
11112 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000011113 .tested = TEST_OK_PR,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011114 .probe = probe_jedec,
11115 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
11116 .block_erasers =
11117 {
11118 {
11119 .eraseblocks = { {4 * 1024, 128} },
11120 .block_erase = erase_sector_jedec,
11121 }, {
11122 .eraseblocks = { {64 * 1024, 8} },
11123 .block_erase = erase_block_jedec,
11124 }, {
11125 .eraseblocks = { {512 * 1024, 1} },
11126 .block_erase = erase_chip_block_jedec,
11127 }
11128 },
11129 .write = write_jedec_1,
11130 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011131 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011132 },
Kyösti Mälkkiedab1d22012-05-20 23:32:33 +000011133
11134 {
11135 .vendor = "PMC",
11136 .name = "Pm39LV512",
11137 .bustype = BUS_PARALLEL,
11138 .manufacture_id = PMC_ID_NOPREFIX,
11139 .model_id = PMC_PM39LV512,
11140 .total_size = 64,
11141 .page_size = 4096,
11142 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
11143 .tested = TEST_OK_PREW,
11144 .probe = probe_jedec,
11145 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
11146 .block_erasers =
11147 {
11148 {
11149 .eraseblocks = { {4 * 1024, 16} },
11150 .block_erase = erase_sector_jedec,
11151 }, {
11152 .eraseblocks = { {64 * 1024, 1} },
11153 .block_erase = erase_block_jedec,
11154 }, {
11155 .eraseblocks = { {64 * 1024, 1} },
11156 .block_erase = erase_chip_block_jedec,
11157 }
11158 },
11159 .write = write_jedec_1,
11160 .read = read_memmapped,
11161 .voltage = {2700, 3600},
11162 },
11163
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011164 {
11165 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011166 .name = "Pm49FL002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011167 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011168 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011169 .model_id = PMC_PM49FL002,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011170 .total_size = 256,
11171 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011172 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000011173 .tested = TEST_OK_PR,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000011174 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011175 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +000011176 .block_erasers =
11177 {
11178 {
11179 .eraseblocks = { {4 * 1024, 64} },
11180 .block_erase = erase_sector_jedec,
11181 }, {
11182 .eraseblocks = { {16 * 1024, 16} },
11183 .block_erase = erase_block_jedec,
11184 }, {
11185 .eraseblocks = { {256 * 1024, 1} },
11186 .block_erase = erase_chip_block_jedec,
11187 }
11188 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000011189 .unlock = unlock_regspace2_uniform_32k,
Sean Nelson36172342010-02-27 18:01:15 +000011190 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011191 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011192 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011193 },
11194
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011195 {
11196 .vendor = "PMC",
11197 .name = "Pm49FL004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011198 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011199 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011200 .model_id = PMC_PM49FL004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011201 .total_size = 512,
11202 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011203 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner74dc73f2015-03-01 22:04:38 +000011204 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000011205 .probe = probe_jedec,
Stefan Tauner74dc73f2015-03-01 22:04:38 +000011206 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000011207 .block_erasers =
11208 {
11209 {
11210 .eraseblocks = { {4 * 1024, 128} },
11211 .block_erase = erase_sector_jedec,
11212 }, {
11213 .eraseblocks = { {64 * 1024, 8} },
11214 .block_erase = erase_block_jedec,
11215 }, {
11216 .eraseblocks = { {512 * 1024, 1} },
11217 .block_erase = erase_chip_block_jedec,
11218 }
11219 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000011220 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson36172342010-02-27 18:01:15 +000011221 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011222 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011223 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011224 },
11225
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011226 {
Sean Nelsond70b09c2009-11-24 02:11:08 +000011227 .vendor = "Sanyo",
Stefan Taunera60d4082014-06-04 16:17:03 +000011228 .name = "LE25FW106",
11229 .bustype = BUS_SPI,
11230 .manufacture_id = SANYO_ID,
11231 .model_id = SANYO_LE25FW106,
11232 .total_size = 128,
11233 .page_size = 256,
11234 .feature_bits = FEATURE_WRSR_WREN,
11235 .tested = TEST_OK_PREW,
11236 .probe = probe_spi_res2,
11237 .probe_timing = TIMING_ZERO,
11238 .block_erasers = {
11239 {
11240 .eraseblocks = { {2 * 1024, 64} },
11241 .block_erase = spi_block_erase_d7,
11242 }, {
11243 .eraseblocks = { {32 * 1024, 4} },
11244 .block_erase = spi_block_erase_d8,
11245 }, {
11246 .eraseblocks = { {128 * 1024, 1} },
11247 .block_erase = spi_block_erase_c7,
11248 }
11249 },
11250 .printlock = spi_prettyprint_status_register_bp1_srwd, /* FIXME: Add ERSER error flag. */
11251 .unlock = spi_disable_blockprotect_bp1_srwd,
11252 .write = spi_chip_write_256,
11253 .read = spi_chip_read,
11254 .voltage = {2700, 3600},
11255 },
11256
11257 {
11258 .vendor = "Sanyo",
Stefan Tauner33491b82014-05-18 21:36:04 +000011259 .name = "LE25FW406A",
11260 .bustype = BUS_SPI,
11261 .manufacture_id = SANYO_ID,
11262 .model_id = SANYO_LE25FW406A,
11263 .total_size = 512,
11264 .page_size = 256,
11265 .feature_bits = FEATURE_WRSR_WREN,
11266 .tested = TEST_OK_PREW,
11267 .probe = probe_spi_res2,
11268 .probe_timing = TIMING_ZERO,
11269 .block_erasers = {
11270 {
11271 .eraseblocks = { {4 * 1024, 128} },
11272 .block_erase = spi_block_erase_d7,
11273 }, {
11274 .eraseblocks = { {64 * 1024, 8} },
11275 .block_erase = spi_block_erase_d8,
11276 }, {
11277 .eraseblocks = { {512 * 1024, 1} },
11278 .block_erase = spi_block_erase_c7,
11279 }
11280 },
11281 .printlock = spi_prettyprint_status_register_plain,
11282 .unlock = spi_disable_blockprotect,
11283 .write = spi_chip_write_256,
11284 .read = spi_chip_read,
11285 .voltage = {2700, 3600},
11286 },
11287
11288 {
11289 .vendor = "Sanyo",
Jurij Mundaa1e53742014-05-14 13:19:50 +000011290 .name = "LE25FU406B",
11291 .bustype = BUS_SPI,
11292 .manufacture_id = SANYO_ID,
11293 .model_id = SANYO_LE25FU406B,
11294 .total_size = 512,
11295 .page_size = 256,
11296 .feature_bits = FEATURE_WRSR_WREN,
11297 .tested = TEST_OK_PREW,
11298 .probe = probe_spi_res2,
11299 .probe_timing = TIMING_ZERO,
11300 .block_erasers = {
11301 {
11302 .eraseblocks = { {4 * 1024, 128} },
11303 .block_erase = spi_block_erase_d7,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011304 }, {
Jurij Mundaa1e53742014-05-14 13:19:50 +000011305 .eraseblocks = { {64 * 1024, 8} },
11306 .block_erase = spi_block_erase_d8,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011307 }, {
Jurij Mundaa1e53742014-05-14 13:19:50 +000011308 .eraseblocks = { {512 * 1024, 1} },
11309 .block_erase = spi_block_erase_c7,
11310 }
11311 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011312 .printlock = spi_prettyprint_status_register_bp2_srwd,
Jurij Mundaa1e53742014-05-14 13:19:50 +000011313 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
11314 .write = spi_chip_write_256,
11315 .read = spi_chip_read,
11316 .voltage = {2300, 3600},
11317 },
11318
11319 {
11320 .vendor = "Sanyo",
Stefan Tauner2f055df2015-12-25 22:13:15 +000011321 .name = "LE25FU406C/LE25U40CMC",
11322 .bustype = BUS_SPI,
11323 .manufacture_id = SANYO_ID,
11324 .model_id = SANYO_LE25FU406C,
11325 .total_size = 512,
11326 .page_size = 256,
11327 .feature_bits = FEATURE_WRSR_WREN,
11328 .tested = TEST_OK_PR,
11329 .probe = probe_spi_rdid,
11330 .probe_timing = TIMING_ZERO,
11331 .block_erasers = {
11332 {
11333 .eraseblocks = { {4 * 1024, 128} },
11334 .block_erase = spi_block_erase_20,
11335 }, {
11336 .eraseblocks = { {4 * 1024, 128} },
11337 .block_erase = spi_block_erase_d7,
11338 }, {
11339 .eraseblocks = { {64 * 1024, 8} },
11340 .block_erase = spi_block_erase_d8,
11341 }, {
11342 .eraseblocks = { {512 * 1024, 1} },
11343 .block_erase = spi_block_erase_60,
11344 }, {
11345 .eraseblocks = { {512 * 1024, 1} },
11346 .block_erase = spi_block_erase_c7,
11347 }
11348 },
11349 .printlock = spi_prettyprint_status_register_bp2_srwd,
11350 .unlock = spi_disable_blockprotect_bp2_srwd,
11351 .write = spi_chip_write_256,
11352 .read = spi_chip_read, /* Fast read (0x0B), dual read (0x3B) and dual I/O (0xBB) supported */
11353 .voltage = {2300, 3600},
11354 },
11355
11356 {
11357 .vendor = "Sanyo",
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011358 .name = "LE25FW203A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011359 .bustype = BUS_SPI,
Sean Nelsond70b09c2009-11-24 02:11:08 +000011360 .manufacture_id = SANYO_ID,
11361 .model_id = SANYO_LE25FW203A,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011362 .total_size = 256,
Sean Nelsond70b09c2009-11-24 02:11:08 +000011363 .page_size = 256,
11364 .tested = TEST_UNTESTED,
11365 .probe = probe_spi_rdid,
11366 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000011367 .block_erasers =
11368 {
11369 {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011370 .eraseblocks = { {256, 1024} },
11371 .block_erase = spi_block_erase_db,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011372 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011373 .eraseblocks = { {64 * 1024, 4} },
Sean Nelson5643c072010-01-19 03:23:07 +000011374 .block_erase = spi_block_erase_d8,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011375 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011376 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +000011377 .block_erase = spi_block_erase_c7,
11378 }
11379 },
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011380 .printlock = spi_prettyprint_status_register_default_welwip,
11381 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
Sean Nelsond70b09c2009-11-24 02:11:08 +000011382 .write = spi_chip_write_256,
11383 .read = spi_chip_read,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011384 .voltage = {2700, 3600},
11385 },
11386
11387 {
11388 .vendor = "Sanyo",
11389 .name = "LE25FW403A",
11390 .bustype = BUS_SPI,
11391 .manufacture_id = SANYO_ID,
11392 .model_id = SANYO_LE25FW403A,
11393 .total_size = 512,
11394 .page_size = 256,
11395 .tested = TEST_UNTESTED,
11396 .probe = probe_spi_rdid,
11397 .probe_timing = TIMING_ZERO,
11398 .block_erasers = {
11399 {
11400 .eraseblocks = { {256, 2 * 1024} },
11401 .block_erase = spi_block_erase_db,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011402 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011403 .eraseblocks = { {64 * 1024, 8} },
11404 .block_erase = spi_block_erase_d8,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011405 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011406 .eraseblocks = { {512 * 1024, 1} },
11407 .block_erase = spi_block_erase_c7,
11408 }
11409 },
11410 .printlock = spi_prettyprint_status_register_default_welwip,
11411 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
11412 .write = spi_chip_write_256,
11413 .read = spi_chip_read,
11414 .voltage = {2700, 3600},
11415 },
11416
11417 {
11418 .vendor = "Sanyo",
11419 .name = "LE25FW418A",
11420 .bustype = BUS_SPI,
11421 .manufacture_id = SANYO_ID,
11422 .model_id = SANYO_LE25FW418A,
11423 .total_size = 512,
11424 .page_size = 256,
11425 .feature_bits = FEATURE_WRSR_WREN,
11426 .tested = TEST_UNTESTED,
11427 .probe = probe_spi_res2,
11428 .probe_timing = TIMING_ZERO,
11429 .block_erasers = {
11430 {
11431 .eraseblocks = { {4 * 1024, 128} },
11432 .block_erase = spi_block_erase_d7,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011433 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011434 .eraseblocks = { {64 * 1024, 8} },
11435 .block_erase = spi_block_erase_d8,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011436 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011437 .eraseblocks = { {512 * 1024, 1} },
11438 .block_erase = spi_block_erase_c7,
11439 }
11440 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011441 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011442 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
11443 .write = spi_chip_write_256,
11444 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
11445 .voltage = {2700, 3600},
11446 },
11447
11448 {
11449 .vendor = "Sanyo",
11450 .name = "LE25FW806",
11451 .bustype = BUS_SPI,
11452 .manufacture_id = SANYO_ID,
11453 .model_id = SANYO_LE25FW806,
11454 .total_size = 1024,
11455 .page_size = 256,
11456 .feature_bits = FEATURE_WRSR_WREN,
11457 .tested = TEST_UNTESTED,
11458 .probe = probe_spi_res2,
11459 .probe_timing = TIMING_ZERO,
11460 .block_erasers = {
11461 {
11462 .eraseblocks = { {4 * 1024, 256} },
11463 .block_erase = spi_block_erase_20,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011464 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011465 .eraseblocks = { {4 * 1024, 256} },
11466 .block_erase = spi_block_erase_d7,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011467 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011468 .eraseblocks = { {64 * 1024, 16} },
11469 .block_erase = spi_block_erase_d8,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011470 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011471 .eraseblocks = { {1024 * 1024, 1} },
11472 .block_erase = spi_block_erase_c7,
11473 }
11474 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011475 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011476 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
11477 .write = spi_chip_write_256,
11478 .read = spi_chip_read,
11479 .voltage = {2700, 3600},
11480 },
11481
11482 {
11483 .vendor = "Sanyo",
11484 .name = "LE25FW808",
11485 .bustype = BUS_SPI,
11486 .manufacture_id = SANYO_ID,
11487 .model_id = SANYO_LE25FW808,
11488 .total_size = 1024,
11489 .page_size = 256,
11490 .feature_bits = FEATURE_WRSR_WREN,
11491 .tested = TEST_UNTESTED,
11492 .probe = probe_spi_res2,
11493 .probe_timing = TIMING_ZERO,
11494 .block_erasers = {
11495 {
11496 .eraseblocks = { {8 * 1024, 128} },
11497 .block_erase = spi_block_erase_d7,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011498 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011499 .eraseblocks = { {64 * 1024, 16} },
11500 .block_erase = spi_block_erase_d8,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011501 }, {
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011502 .eraseblocks = { {1024 * 1024, 1} },
11503 .block_erase = spi_block_erase_c7,
11504 }
11505 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011506 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaev384de8e2013-06-28 21:28:49 +000011507 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
11508 .write = spi_chip_write_256,
11509 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
11510 .voltage = {2700, 3600},
Sean Nelsond70b09c2009-11-24 02:11:08 +000011511 },
11512
11513 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011514 .vendor = "Sharp",
Mattias Mattssonfca3b012011-08-25 22:44:11 +000011515 .name = "LH28F008BJT-BTLZ1",
11516 .bustype = BUS_PARALLEL,
11517 .manufacture_id = SHARP_ID,
Stefan Tauner352e50b2013-02-22 15:58:45 +000011518 .model_id = SHARP_LH28F008BJ__PB,
Mattias Mattssonfca3b012011-08-25 22:44:11 +000011519 .total_size = 1024,
11520 .page_size = 64 * 1024,
11521 .tested = TEST_OK_PREW,
11522 .probe = probe_82802ab,
11523 .probe_timing = TIMING_ZERO,
11524 .block_erasers =
11525 {
11526 {
11527 .eraseblocks = {
11528 {8 * 1024, 8},
11529 {64 * 1024, 15}
11530 },
11531 .block_erase = erase_block_82802ab,
11532 }, {
11533 .eraseblocks = { {1024 * 1024, 1} },
11534 .block_erase = erase_sector_49lfxxxc,
11535 }
11536 },
11537 .unlock = unlock_lh28f008bjt,
11538 .write = write_82802ab,
11539 .read = read_memmapped,
11540 .voltage = {2700, 3600},
11541 },
11542
11543 {
11544 .vendor = "Sharp",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011545 .name = "LHF00L04",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011546 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011547 .manufacture_id = SHARP_ID,
11548 .model_id = SHARP_LHF00L04,
11549 .total_size = 1024,
11550 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011551 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011552 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000011553 .probe = probe_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +000011554 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +000011555 .block_erasers =
11556 {
11557 {
11558 .eraseblocks = {
11559 {64 * 1024, 15},
11560 {8 * 1024, 8}
11561 },
Sean Nelson28accc22010-03-19 18:47:06 +000011562 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +000011563 }, {
11564 .eraseblocks = {
11565 {1024 * 1024, 1}
11566 },
Sean Nelson51c83fb2010-01-20 20:55:53 +000011567 .block_erase = NULL, /* 30 D0, only in A/A mux mode */
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +000011568 },
11569 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000011570 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000011571 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011572 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011573 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011574 },
11575
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011576 {
11577 .vendor = "Spansion",
Rudy Hostf4e57772010-11-29 00:37:49 +000011578 .name = "S25FL004A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011579 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +000011580 .manufacture_id = SPANSION_ID,
11581 .model_id = SPANSION_S25FL004A,
11582 .total_size = 512,
11583 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011584 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +000011585 .tested = TEST_UNTESTED,
11586 .probe = probe_spi_rdid,
11587 .probe_timing = TIMING_ZERO,
11588 .block_erasers =
11589 {
11590 {
11591 .eraseblocks = { {64 * 1024, 8} },
11592 .block_erase = spi_block_erase_d8,
11593 }, {
11594 .eraseblocks = { {512 * 1024, 1} },
11595 .block_erase = spi_block_erase_c7,
11596 }
11597 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011598 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +000011599 .unlock = spi_disable_blockprotect,
11600 .write = spi_chip_write_256,
11601 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000011602 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +000011603 },
11604
11605 {
11606 .vendor = "Spansion",
Michael Karcher23ff4602010-01-12 23:29:30 +000011607 .name = "S25FL008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011608 .bustype = BUS_SPI,
Michael Karcher23ff4602010-01-12 23:29:30 +000011609 .manufacture_id = SPANSION_ID,
11610 .model_id = SPANSION_S25FL008A,
11611 .total_size = 1024,
11612 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011613 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000011614 .tested = TEST_OK_PRE,
Michael Karcher23ff4602010-01-12 23:29:30 +000011615 .probe = probe_spi_rdid,
11616 .probe_timing = TIMING_ZERO,
Michael Karcher23ff4602010-01-12 23:29:30 +000011617 .block_erasers =
11618 {
11619 {
11620 .eraseblocks = { {64 * 1024, 16} },
11621 .block_erase = spi_block_erase_d8,
11622 }, {
11623 .eraseblocks = { {1024 * 1024, 1} },
11624 .block_erase = spi_block_erase_c7,
11625 }
11626 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011627 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011628 .unlock = spi_disable_blockprotect,
Michael Karcher23ff4602010-01-12 23:29:30 +000011629 .write = spi_chip_write_256,
11630 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011631 .voltage = {2700, 3600},
Michael Karcher23ff4602010-01-12 23:29:30 +000011632 },
11633
11634 {
11635 .vendor = "Spansion",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011636 .name = "S25FL016A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011637 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011638 .manufacture_id = SPANSION_ID,
11639 .model_id = SPANSION_S25FL016A,
11640 .total_size = 2048,
11641 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011642 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011643 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011644 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011645 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000011646 .block_erasers =
11647 {
11648 {
11649 .eraseblocks = { {64 * 1024, 32} },
11650 .block_erase = spi_block_erase_d8,
11651 }, {
11652 .eraseblocks = { {2 * 1024 * 1024, 1} },
11653 .block_erase = spi_block_erase_c7,
11654 }
11655 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011656 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011657 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000011658 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011659 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011660 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011661 },
11662
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011663 {
Rudy Hostf4e57772010-11-29 00:37:49 +000011664 .vendor = "Spansion",
Stefan Taunere34e3e82013-01-01 00:06:51 +000011665 .name = "S25FL032A/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011666 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +000011667 .manufacture_id = SPANSION_ID,
11668 .model_id = SPANSION_S25FL032A,
11669 .total_size = 4096,
11670 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011671 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +000011672 .tested = TEST_OK_PREW,
Rudy Hostf4e57772010-11-29 00:37:49 +000011673 .probe = probe_spi_rdid,
11674 .probe_timing = TIMING_ZERO,
11675 .block_erasers =
11676 {
11677 {
11678 .eraseblocks = { {64 * 1024, 64} },
11679 .block_erase = spi_block_erase_d8,
11680 }, {
11681 .eraseblocks = { {4 * 1024 * 1024, 1} },
11682 .block_erase = spi_block_erase_c7,
11683 }
11684 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011685 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +000011686 .unlock = spi_disable_blockprotect,
11687 .write = spi_chip_write_256,
11688 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000011689 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +000011690 },
11691
11692 {
11693 .vendor = "Spansion",
Stefan Taunere34e3e82013-01-01 00:06:51 +000011694 .name = "S25FL064A/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011695 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +000011696 .manufacture_id = SPANSION_ID,
11697 .model_id = SPANSION_S25FL064A,
11698 .total_size = 8192,
11699 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011700 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +000011701 .tested = TEST_OK_PREW,
11702 .probe = probe_spi_rdid,
11703 .probe_timing = TIMING_ZERO,
11704 .block_erasers =
11705 {
11706 {
11707 .eraseblocks = { {64 * 1024, 128} },
11708 .block_erase = spi_block_erase_d8,
11709 }, {
11710 .eraseblocks = { {8 * 1024 * 1024, 1} },
11711 .block_erase = spi_block_erase_c7,
11712 }
11713 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000011714 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Rudy Hostf4e57772010-11-29 00:37:49 +000011715 .unlock = spi_disable_blockprotect,
11716 .write = spi_chip_write_256,
11717 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000011718 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +000011719 },
11720
11721 {
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000011722 .vendor = "Spansion",
11723 .name = "S25FL204K",
11724 .bustype = BUS_SPI,
11725 .manufacture_id = SPANSION_ID,
11726 .model_id = SPANSION_S25FL204,
11727 .total_size = 512,
11728 .page_size = 256,
11729 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011730 .tested = TEST_OK_PR,
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000011731 .probe = probe_spi_rdid,
11732 .probe_timing = TIMING_ZERO,
11733 .block_erasers = {
11734 {
11735 .eraseblocks = { {4 * 1024, 128} },
11736 .block_erase = spi_block_erase_20,
11737 }, {
11738 .eraseblocks = { {64 * 1024, 8} },
11739 .block_erase = spi_block_erase_d8,
11740 }, {
11741 .eraseblocks = { { 512 * 1024, 1} },
11742 .block_erase = spi_block_erase_60,
11743 }, {
11744 .eraseblocks = { { 512 * 1024, 1} },
11745 .block_erase = spi_block_erase_c7,
11746 }
11747 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011748 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner6697f712014-08-06 15:09:15 +000011749 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000011750 .write = spi_chip_write_256,
Stefan Tauner6697f712014-08-06 15:09:15 +000011751 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000011752 .voltage = {2700, 3600},
11753 },
11754
11755 {
11756 .vendor = "Spansion",
11757 .name = "S25FL208K",
11758 .bustype = BUS_SPI,
11759 .manufacture_id = SPANSION_ID,
11760 .model_id = SPANSION_S25FL208,
11761 .total_size = 1024,
11762 .page_size = 256,
11763 .feature_bits = FEATURE_WRSR_WREN,
11764 .tested = TEST_UNTESTED,
11765 .probe = probe_spi_rdid,
11766 .probe_timing = TIMING_ZERO,
11767 .block_erasers = {
11768 {
11769 .eraseblocks = { {4 * 1024, 256} },
11770 .block_erase = spi_block_erase_20,
11771 }, {
11772 .eraseblocks = { {64 * 1024, 16} },
11773 .block_erase = spi_block_erase_d8,
11774 }, {
11775 .eraseblocks = { { 1024 * 1024, 1} },
11776 .block_erase = spi_block_erase_60,
11777 }, {
11778 .eraseblocks = { { 1024 * 1024, 1} },
11779 .block_erase = spi_block_erase_c7,
11780 }
11781 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011782 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner6697f712014-08-06 15:09:15 +000011783 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000011784 .write = spi_chip_write_256,
Stefan Tauner6697f712014-08-06 15:09:15 +000011785 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000011786 .voltage = {2700, 3600},
11787 },
11788
11789 {
11790 .vendor = "Spansion",
Stefan Tauner6697f712014-08-06 15:09:15 +000011791 .name = "S25FL116K/S25FL216K", /* FIXME: separate them */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000011792 .bustype = BUS_SPI,
11793 .manufacture_id = SPANSION_ID,
11794 .model_id = SPANSION_S25FL216,
11795 .total_size = 2048,
11796 .page_size = 256,
11797 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (S25FL116K only) */
11798 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11799 .tested = TEST_UNTESTED,
11800 .probe = probe_spi_rdid,
11801 .probe_timing = TIMING_ZERO,
11802 .block_erasers = {
11803 {
11804 .eraseblocks = { {4 * 1024, 512} },
11805 .block_erase = spi_block_erase_20,
11806 }, {
11807 .eraseblocks = { {64 * 1024, 32} },
11808 .block_erase = spi_block_erase_d8,
11809 }, {
11810 .eraseblocks = { { 2048 * 1024, 1} },
11811 .block_erase = spi_block_erase_60,
11812 }, {
11813 .eraseblocks = { { 2048 * 1024, 1} },
11814 .block_erase = spi_block_erase_c7,
11815 }
11816 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011817 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner6697f712014-08-06 15:09:15 +000011818 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000011819 .write = spi_chip_write_256,
Stefan Tauner6697f712014-08-06 15:09:15 +000011820 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
Nikolay Nikolaev0ec2f7e2013-06-28 21:29:36 +000011821 .voltage = {2700, 3600},
11822 },
11823
11824 {
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000011825 .vendor = "Spansion",
Nikolay Martynov598968a2014-05-04 21:44:13 +000011826 .name = "S25FL132K",
11827 .bustype = BUS_SPI,
11828 .manufacture_id = SPANSION_ID,
11829 .model_id = SPANSION_S25FL132K,
11830 .total_size = 4096,
11831 .page_size = 256,
11832 /* OTP: 768B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
11833 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11834 .tested = TEST_UNTESTED,
11835 .probe = probe_spi_rdid,
11836 .probe_timing = TIMING_ZERO,
11837 .block_erasers = {
11838 {
11839 .eraseblocks = { {4 * 1024, 1024} },
11840 .block_erase = spi_block_erase_20,
11841 }, {
11842 .eraseblocks = { {64 * 1024, 64} },
11843 .block_erase = spi_block_erase_d8,
11844 }, {
11845 .eraseblocks = { { 4096 * 1024, 1} },
11846 .block_erase = spi_block_erase_60,
11847 }, {
11848 .eraseblocks = { { 4096 * 1024, 1} },
11849 .block_erase = spi_block_erase_c7,
11850 }
11851 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011852 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
Nikolay Martynov598968a2014-05-04 21:44:13 +000011853 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
11854 .write = spi_chip_write_256,
11855 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11856 .voltage = {2700, 3600},
11857 },
11858
11859 {
11860 .vendor = "Spansion",
11861 .name = "S25FL164K",
11862 .bustype = BUS_SPI,
11863 .manufacture_id = SPANSION_ID,
11864 .model_id = SPANSION_S25FL164K,
11865 .total_size = 8192,
11866 .page_size = 256,
11867 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
11868 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11869 .tested = TEST_OK_PREW,
11870 .probe = probe_spi_rdid,
11871 .probe_timing = TIMING_ZERO,
11872 .block_erasers = {
11873 {
11874 .eraseblocks = { {4 * 1024, 2048} },
11875 .block_erase = spi_block_erase_20,
11876 }, {
11877 .eraseblocks = { {64 * 1024, 128} },
11878 .block_erase = spi_block_erase_d8,
11879 }, {
11880 .eraseblocks = { { 8192 * 1024, 1} },
11881 .block_erase = spi_block_erase_60,
11882 }, {
11883 .eraseblocks = { { 8192 * 1024, 1} },
11884 .block_erase = spi_block_erase_c7,
11885 }
11886 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011887 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
Nikolay Martynov598968a2014-05-04 21:44:13 +000011888 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
11889 .write = spi_chip_write_256,
11890 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11891 .voltage = {2700, 3600},
11892 },
11893
11894 {
11895 .vendor = "Spansion",
Jernej Å krabece814a9b2014-12-12 00:32:03 +000011896 .name = "S25FL127S-64kB", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
11897 .bustype = BUS_SPI,
11898 .manufacture_id = SPANSION_ID,
11899 .model_id = SPANSION_S25FL128,
11900 .total_size = 16384,
11901 .page_size = 256,
11902 /* supports 4B addressing */
11903 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
11904 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11905 .tested = TEST_OK_PREW,
11906 /* FIXME: we should distinguish the configuration on probing time like we do for AT45DB chips */
11907 .probe = probe_spi_rdid,
11908 .probe_timing = TIMING_ZERO,
11909 .block_erasers = {
11910 {
11911 /* This chip supports erasing of 32 so-called "parameter sectors" with
11912 * opcode 0x20 which may be configured to be on top or bottom of the address
11913 * space. Trying to access an address outside these 4kB blocks does have no
11914 * effect on the memory contents, e.g.
11915 .eraseblocks = {
11916 {4 * 1024, 32},
11917 {64 * 1024, 254} // inaccessible
11918 },
11919 .block_erase = spi_block_erase_20,
11920 }, { */
11921 .eraseblocks = { { 64 * 1024, 256} },
11922 .block_erase = spi_block_erase_d8,
11923 }, {
11924 .eraseblocks = { { 16384 * 1024, 1} },
11925 .block_erase = spi_block_erase_60,
11926 }, {
11927 .eraseblocks = { { 16384 * 1024, 1} },
11928 .block_erase = spi_block_erase_c7,
11929 }
11930 },
11931 .printlock = spi_prettyprint_status_register_bp2_srwd,
11932 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
11933 .write = spi_chip_write_256, /* Multi I/O supported */
11934 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11935 .voltage = {2700, 3600},
11936 },
11937
11938 {
11939 .vendor = "Spansion",
11940 .name = "S25FL127S-256kB", /* uniform 256kB sectors */
11941 .bustype = BUS_SPI,
11942 .manufacture_id = SPANSION_ID,
11943 .model_id = SPANSION_S25FL128,
11944 .total_size = 16384,
11945 .page_size = 512,
11946 /* supports 4B addressing */
11947 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
11948 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11949 .tested = TEST_UNTESTED,
11950 .probe = probe_spi_rdid,
11951 .probe_timing = TIMING_ZERO,
11952 .block_erasers = {
11953 {
11954 .eraseblocks = { {256 * 1024, 64} },
11955 .block_erase = spi_block_erase_d8,
11956 }, {
11957 .eraseblocks = { { 16384 * 1024, 1} },
11958 .block_erase = spi_block_erase_60,
11959 }, {
11960 .eraseblocks = { { 16384 * 1024, 1} },
11961 .block_erase = spi_block_erase_c7,
11962 }
11963 },
11964 .printlock = spi_prettyprint_status_register_bp2_srwd,
11965 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
11966 .write = spi_chip_write_256, /* Multi I/O supported */
11967 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11968 .voltage = {2700, 3600},
11969 },
11970
11971 {
11972 .vendor = "Spansion",
Stefan Tauner88b19252014-08-06 14:36:27 +000011973 .name = "S25FL128P......0", /* uniform 64 kB sectors */
11974 .bustype = BUS_SPI,
11975 .manufacture_id = SPANSION_ID,
11976 .model_id = SPANSION_S25FL128,
11977 .total_size = 16384,
11978 .page_size = 256,
11979 .feature_bits = FEATURE_WRSR_WREN,
11980 .tested = TEST_UNTESTED,
11981 .probe = probe_spi_rdid,
11982 .probe_timing = TIMING_ZERO,
11983 .block_erasers = {
11984 {
11985 .eraseblocks = { {64 * 1024, 256} },
11986 .block_erase = spi_block_erase_20,
11987 }, {
11988 .eraseblocks = { {64 * 1024, 256} },
11989 .block_erase = spi_block_erase_d8,
11990 }, {
11991 .eraseblocks = { { 16384 * 1024, 1} },
11992 .block_erase = spi_block_erase_60,
11993 }, {
11994 .eraseblocks = { { 16384 * 1024, 1} },
11995 .block_erase = spi_block_erase_c7,
11996 }
11997 },
11998 .printlock = spi_prettyprint_status_register_bp3_srwd,
11999 .unlock = spi_disable_blockprotect_bp3_srwd,
12000 .write = spi_chip_write_256,
12001 .read = spi_chip_read, /* Fast read (0x0B) supported */
12002 .voltage = {2700, 3600},
12003 },
12004
12005 {
12006 .vendor = "Spansion",
12007 .name = "S25FL128P......1", /* uniform 256kB sectors */
12008 .bustype = BUS_SPI,
12009 .manufacture_id = SPANSION_ID,
12010 .model_id = SPANSION_S25FL128,
12011 .total_size = 16384,
12012 .page_size = 256,
12013 .feature_bits = FEATURE_WRSR_WREN,
12014 .tested = TEST_UNTESTED,
12015 .probe = probe_spi_rdid,
12016 .probe_timing = TIMING_ZERO,
12017 .block_erasers = {
12018 {
12019 .eraseblocks = { {256 * 1024, 64} },
12020 .block_erase = spi_block_erase_d8,
12021 }, {
12022 .eraseblocks = { { 16384 * 1024, 1} },
12023 .block_erase = spi_block_erase_c7,
12024 }
12025 },
12026 .printlock = spi_prettyprint_status_register_bp2_srwd,
12027 .unlock = spi_disable_blockprotect_bp2_srwd,
12028 .write = spi_chip_write_256,
12029 .read = spi_chip_read, /* Fast read (0x0B) supported */
12030 .voltage = {2700, 3600},
12031 },
12032
12033 {
12034 .vendor = "Spansion",
12035 .name = "S25FL128S......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000012036 .bustype = BUS_SPI,
12037 .manufacture_id = SPANSION_ID,
12038 .model_id = SPANSION_S25FL128,
12039 .total_size = 16384,
12040 .page_size = 256,
12041 /* supports 4B addressing */
12042 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
12043 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000012044 .tested = TEST_OK_PREW,
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000012045 .probe = probe_spi_rdid,
12046 .probe_timing = TIMING_ZERO,
12047 .block_erasers = {
12048 {
Stefan Tauner88b19252014-08-06 14:36:27 +000012049 /* This chip supports erasing of the 32 so-called "parameter sectors" with
12050 * opcode 0x20. Trying to access an address outside these 4kB blocks does
12051 * have no effect on the memory contents, but sets a flag in the SR.
12052 .eraseblocks = {
12053 {4 * 1024, 32},
12054 {64 * 1024, 254} // inaccessible
12055 },
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000012056 .block_erase = spi_block_erase_20,
Stefan Tauner88b19252014-08-06 14:36:27 +000012057 }, { */
12058 .eraseblocks = { { 64 * 1024, 256} },
12059 .block_erase = spi_block_erase_d8,
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000012060 }, {
Stefan Tauner88b19252014-08-06 14:36:27 +000012061 .eraseblocks = { { 16384 * 1024, 1} },
12062 .block_erase = spi_block_erase_60,
12063 }, {
12064 .eraseblocks = { { 16384 * 1024, 1} },
12065 .block_erase = spi_block_erase_c7,
12066 }
12067 },
12068 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
12069 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
12070 .write = spi_chip_write_256, /* Multi I/O supported */
12071 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12072 .voltage = {2700, 3600},
12073 },
12074
12075 {
12076 .vendor = "Spansion",
12077 .name = "S25FL128S......1", /* uniform 256 kB sectors */
12078 .bustype = BUS_SPI,
12079 .manufacture_id = SPANSION_ID,
12080 .model_id = SPANSION_S25FL128,
12081 .total_size = 16384,
12082 .page_size = 512,
12083 /* supports 4B addressing */
12084 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
12085 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12086 .tested = TEST_UNTESTED,
12087 .probe = probe_spi_rdid,
12088 .probe_timing = TIMING_ZERO,
12089 .block_erasers = {
12090 {
Nikolay Nikolaevc80c4a32013-06-28 21:29:44 +000012091 .eraseblocks = { {256 * 1024, 64} },
12092 .block_erase = spi_block_erase_d8,
12093 }, {
12094 .eraseblocks = { { 16384 * 1024, 1} },
12095 .block_erase = spi_block_erase_60,
12096 }, {
12097 .eraseblocks = { { 16384 * 1024, 1} },
12098 .block_erase = spi_block_erase_c7,
12099 }
12100 },
12101 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
12102 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
12103 .write = spi_chip_write_256, /* Multi I/O supported */
12104 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12105 .voltage = {2700, 3600},
12106 },
12107
12108 {
Stefan Tauner88b19252014-08-06 14:36:27 +000012109 .vendor = "Spansion",
12110 .name = "S25FL129P......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
12111 .bustype = BUS_SPI,
12112 .manufacture_id = SPANSION_ID,
12113 .model_id = SPANSION_S25FL128,
12114 .total_size = 16384,
12115 .page_size = 256,
12116 /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */
12117 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12118 .tested = TEST_OK_PREW,
12119 .probe = probe_spi_rdid,
12120 .probe_timing = TIMING_ZERO,
12121 .block_erasers = {
12122 {
12123 /* FIXME: This chip supports erasing of the 32 so-called "parameter sectors" with
12124 * opcode 0x20. Trying to access an address outside these 4kB blocks does have no
12125 * effect on the memory contents, but sets a flag in the SR.
12126 .eraseblocks = {
12127 {4 * 1024, 32},
12128 {64 * 1024, 254} // inaccessible
12129 },
12130 .block_erase = spi_block_erase_20,
12131 }, { */
12132 /* FIXME: Additionally it also supports erase opcode 40h for the respective 2*4 kB pairs
12133 .eraseblocks = {
12134 {8 * 1024, 16},
12135 {64 * 1024, 254} // inaccessible
12136 },
12137 .block_erase = spi_block_erase_40,
12138 }, { */
12139 .eraseblocks = { { 64 * 1024, 256} },
12140 .block_erase = spi_block_erase_d8,
12141 }, {
12142 .eraseblocks = { { 16384 * 1024, 1} },
12143 .block_erase = spi_block_erase_60,
12144 }, {
12145 .eraseblocks = { { 16384 * 1024, 1} },
12146 .block_erase = spi_block_erase_c7,
12147 }
12148 },
12149 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */
12150 .unlock = spi_disable_blockprotect_bp2_srwd,
12151 .write = spi_chip_write_256, /* Multi I/O supported */
12152 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12153 .voltage = {2700, 3600},
12154 },
12155
12156 {
12157 .vendor = "Spansion",
12158 .name = "S25FL129P......1", /* uniform 256 kB sectors */
12159 .bustype = BUS_SPI,
12160 .manufacture_id = SPANSION_ID,
12161 .model_id = SPANSION_S25FL128,
12162 .total_size = 16384,
Stefan Tauner23e10b82016-01-23 16:16:49 +000012163 .page_size = 256,
Stefan Tauner88b19252014-08-06 14:36:27 +000012164 /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */
12165 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12166 .tested = TEST_UNTESTED,
12167 .probe = probe_spi_rdid,
12168 .probe_timing = TIMING_ZERO,
12169 .block_erasers = {
12170 {
12171 .eraseblocks = { {256 * 1024, 64} },
12172 .block_erase = spi_block_erase_d8,
12173 }, {
12174 .eraseblocks = { { 16384 * 1024, 1} },
12175 .block_erase = spi_block_erase_60,
12176 }, {
12177 .eraseblocks = { { 16384 * 1024, 1} },
12178 .block_erase = spi_block_erase_c7,
12179 }
12180 },
12181 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */
12182 .unlock = spi_disable_blockprotect_bp2_srwd,
12183 .write = spi_chip_write_256, /* Multi I/O supported */
12184 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12185 .voltage = {2700, 3600},
12186 },
12187
12188 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012189 .vendor = "SST",
Idwer Volleringf3607d12014-05-07 15:25:04 +000012190 .name = "SST25LF020A",
12191 .bustype = BUS_SPI,
12192 .manufacture_id = SST_ID,
12193 .model_id = SST_SST25VF020_REMS,
12194 .total_size = 256,
12195 .page_size = 256,
12196 .feature_bits = FEATURE_WRSR_EWSR,
12197 .tested = TEST_OK_PREW,
12198 .probe = probe_spi_rems,
12199 .probe_timing = TIMING_ZERO,
12200 .block_erasers =
12201 {
12202 {
12203 .eraseblocks = { {4 * 1024, 64} },
12204 .block_erase = spi_block_erase_20,
12205 }, {
12206 .eraseblocks = { {32 * 1024, 8} },
12207 .block_erase = spi_block_erase_52,
12208 }, {
12209 .eraseblocks = { {256 * 1024, 1} },
12210 .block_erase = spi_block_erase_60,
12211 },
12212 },
12213 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
12214 .unlock = spi_disable_blockprotect,
12215 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
12216 .read = spi_chip_read, /* Fast read (0x0B) supported */
12217 .voltage = {2700, 3600},
12218 },
12219
12220 {
12221 .vendor = "SST",
Zeus Castro33670ba2011-08-17 09:50:11 +000012222 .name = "SST25LF040A",
12223 .bustype = BUS_SPI,
12224 .manufacture_id = SST_ID,
12225 .model_id = SST_SST25VF040_REMS,
12226 .total_size = 512,
12227 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012228 .feature_bits = FEATURE_WRSR_EWSR,
Uwe Hermann4335ec82011-09-07 20:20:25 +000012229 .tested = TEST_OK_PREW,
Zeus Castro33670ba2011-08-17 09:50:11 +000012230 .probe = probe_spi_res2,
12231 .probe_timing = TIMING_ZERO,
12232 .block_erasers =
12233 {
12234 {
12235 .eraseblocks = { {4 * 1024, 128} },
12236 .block_erase = spi_block_erase_20,
12237 }, {
12238 .eraseblocks = { {32 * 1024, 16} },
12239 .block_erase = spi_block_erase_52,
12240 }, {
12241 .eraseblocks = { {512 * 1024, 1} },
12242 .block_erase = spi_block_erase_60,
12243 },
12244 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012245 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +000012246 .unlock = spi_disable_blockprotect,
12247 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
12248 .read = spi_chip_read,
12249 .voltage = {3000, 3600},
12250 },
12251
12252 {
12253 .vendor = "SST",
Stefan Taunere34e3e82013-01-01 00:06:51 +000012254 .name = "SST25LF080(A)",
Zeus Castro33670ba2011-08-17 09:50:11 +000012255 .bustype = BUS_SPI,
12256 .manufacture_id = SST_ID,
12257 .model_id = SST_SST25VF080_REMS,
12258 .total_size = 1024,
12259 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000012260 .feature_bits = FEATURE_WRSR_EITHER,
Zeus Castro33670ba2011-08-17 09:50:11 +000012261 .tested = TEST_UNTESTED,
12262 .probe = probe_spi_res2,
12263 .probe_timing = TIMING_ZERO,
12264 .block_erasers =
12265 {
12266 {
12267 .eraseblocks = { {4 * 1024, 256} },
12268 .block_erase = spi_block_erase_20,
12269 }, {
12270 .eraseblocks = { {32 * 1024, 32} },
12271 .block_erase = spi_block_erase_52,
12272 }, {
12273 .eraseblocks = { {1024 * 1024, 1} },
12274 .block_erase = spi_block_erase_60,
12275 },
12276 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012277 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +000012278 .unlock = spi_disable_blockprotect,
12279 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
12280 .read = spi_chip_read,
12281 .voltage = {3000, 3600},
12282 },
12283
12284 {
12285 .vendor = "SST",
Stefan Tauner6697f712014-08-06 15:09:15 +000012286 .name = "SST25VF512(A)",
Cory Henderson370f5822013-10-19 23:09:16 +000012287 .bustype = BUS_SPI,
12288 .manufacture_id = SST_ID,
Stefan Tauner6697f712014-08-06 15:09:15 +000012289 .model_id = SST_SST25VF512_REMS,
Cory Henderson370f5822013-10-19 23:09:16 +000012290 .total_size = 64,
12291 .page_size = 256,
12292 .feature_bits = FEATURE_WRSR_EWSR,
12293 .tested = TEST_OK_PREW,
12294 .probe = probe_spi_rems,
12295 .probe_timing = TIMING_ZERO,
12296 .block_erasers =
12297 {
12298 {
12299 .eraseblocks = { {4 * 1024, 16} },
12300 .block_erase = spi_block_erase_20,
12301 }, {
12302 .eraseblocks = { {32 * 1024, 2} },
12303 .block_erase = spi_block_erase_52,
12304 }, {
12305 .eraseblocks = { {32 * 1024, 2} },
Stefan Tauner6697f712014-08-06 15:09:15 +000012306 .block_erase = spi_block_erase_d8, /* Supported by SST25VF512A only */
Cory Henderson370f5822013-10-19 23:09:16 +000012307 }, {
12308 .eraseblocks = { {64 * 1024, 1} },
12309 .block_erase = spi_block_erase_60,
12310 }, {
12311 .eraseblocks = { {64 * 1024, 1} },
Stefan Tauner6697f712014-08-06 15:09:15 +000012312 .block_erase = spi_block_erase_c7, /* Supported by SST25VF512A only */
Cory Henderson370f5822013-10-19 23:09:16 +000012313 },
12314 },
12315 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
12316 .unlock = spi_disable_blockprotect,
12317 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
Stefan Tauner6697f712014-08-06 15:09:15 +000012318 .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF512A only */
Cory Henderson370f5822013-10-19 23:09:16 +000012319 .voltage = {2700, 3600},
12320 },
12321
12322 {
12323 .vendor = "SST",
Stefan Tauner6697f712014-08-06 15:09:15 +000012324 .name = "SST25VF010(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012325 .bustype = BUS_SPI,
Mark Marshall90021f22010-12-03 14:48:11 +000012326 .manufacture_id = SST_ID,
12327 .model_id = SST_SST25VF010_REMS,
12328 .total_size = 128,
12329 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012330 .feature_bits = FEATURE_WRSR_EWSR,
Mark Marshall90021f22010-12-03 14:48:11 +000012331 .tested = TEST_OK_PREW,
12332 .probe = probe_spi_rems,
12333 .probe_timing = TIMING_ZERO,
12334 .block_erasers =
12335 {
12336 {
12337 .eraseblocks = { {4 * 1024, 32} },
12338 .block_erase = spi_block_erase_20,
12339 }, {
12340 .eraseblocks = { {32 * 1024, 4} },
12341 .block_erase = spi_block_erase_52,
12342 }, {
Cory Henderson370f5822013-10-19 23:09:16 +000012343 .eraseblocks = { {32 * 1024, 4} },
Stefan Tauner6697f712014-08-06 15:09:15 +000012344 .block_erase = spi_block_erase_d8, /* Supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000012345 }, {
Mark Marshall90021f22010-12-03 14:48:11 +000012346 .eraseblocks = { {128 * 1024, 1} },
12347 .block_erase = spi_block_erase_60,
Cory Henderson370f5822013-10-19 23:09:16 +000012348 }, {
12349 .eraseblocks = { {128 * 1024, 1} },
Stefan Tauner6697f712014-08-06 15:09:15 +000012350 .block_erase = spi_block_erase_c7, /* Supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000012351 },
12352 },
12353 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
12354 .unlock = spi_disable_blockprotect,
12355 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
Stefan Tauner6697f712014-08-06 15:09:15 +000012356 .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000012357 .voltage = {2700, 3600},
12358 },
12359
12360 {
12361 .vendor = "SST",
12362 .name = "SST25VF020",
12363 .bustype = BUS_SPI,
12364 .manufacture_id = SST_ID,
12365 .model_id = SST_SST25VF020_REMS,
12366 .total_size = 256,
12367 .page_size = 256,
12368 .feature_bits = FEATURE_WRSR_EWSR,
12369 .tested = TEST_UNTESTED,
12370 .probe = probe_spi_rems,
12371 .probe_timing = TIMING_ZERO,
12372 .block_erasers =
12373 {
12374 {
12375 .eraseblocks = { {4 * 1024, 64} },
12376 .block_erase = spi_block_erase_20,
12377 }, {
12378 .eraseblocks = { {32 * 1024, 8} },
12379 .block_erase = spi_block_erase_52,
12380 }, {
12381 .eraseblocks = { {256 * 1024, 1} },
12382 .block_erase = spi_block_erase_60,
12383 },
12384 },
12385 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
12386 .unlock = spi_disable_blockprotect,
12387 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
12388 .read = spi_chip_read, /* only */
12389 .voltage = {2700, 3600},
12390 },
12391
12392 {
12393 .vendor = "SST",
12394 .name = "SST25VF020B",
12395 .bustype = BUS_SPI,
12396 .manufacture_id = SST_ID,
12397 .model_id = SST_SST25VF020B,
12398 .total_size = 256,
12399 .page_size = 256,
12400 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000012401 .tested = TEST_OK_PREW,
Cory Henderson370f5822013-10-19 23:09:16 +000012402 .probe = probe_spi_rdid,
12403 .probe_timing = TIMING_ZERO,
12404 .block_erasers =
12405 {
12406 {
12407 .eraseblocks = { {4 * 1024, 64} },
12408 .block_erase = spi_block_erase_20,
12409 }, {
12410 .eraseblocks = { {32 * 1024, 8} },
12411 .block_erase = spi_block_erase_52,
12412 }, {
12413 .eraseblocks = { {64 * 1024, 4} },
12414 .block_erase = spi_block_erase_d8,
12415 }, {
12416 .eraseblocks = { {256 * 1024, 1} },
12417 .block_erase = spi_block_erase_60,
12418 }, {
12419 .eraseblocks = { {256 * 1024, 1} },
12420 .block_erase = spi_block_erase_c7,
12421 },
12422 },
12423 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 and 2nd SR */
12424 .unlock = spi_disable_blockprotect, /* FIXME: 2nd SR */
12425 .write = spi_aai_write, /* AAI supported (0xAD) */
12426 .read = spi_chip_read, /* Fast read (0x0B) supported */
12427 .voltage = {2700, 3600},
12428 },
12429
12430 {
12431 .vendor = "SST",
12432 .name = "SST25VF040",
12433 .bustype = BUS_SPI,
12434 .manufacture_id = SST_ID,
12435 .model_id = SST_SST25VF040_REMS,
12436 .total_size = 512,
12437 .page_size = 256,
12438 .feature_bits = FEATURE_WRSR_EWSR,
12439 .tested = TEST_OK_PR,
12440 .probe = probe_spi_rems,
12441 .probe_timing = TIMING_ZERO,
12442 .block_erasers =
12443 {
12444 {
12445 .eraseblocks = { {4 * 1024, 128} },
12446 .block_erase = spi_block_erase_20,
12447 }, {
12448 .eraseblocks = { {32 * 1024, 16} },
12449 .block_erase = spi_block_erase_52,
12450 }, {
12451 .eraseblocks = { {512 * 1024, 1} },
12452 .block_erase = spi_block_erase_60,
Mark Marshall90021f22010-12-03 14:48:11 +000012453 },
12454 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012455 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Mark Marshall90021f22010-12-03 14:48:11 +000012456 .unlock = spi_disable_blockprotect,
Cory Henderson370f5822013-10-19 23:09:16 +000012457 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
12458 .read = spi_chip_read,
12459 .voltage = {2700, 3600},
12460 },
12461
12462 {
12463 .vendor = "SST",
12464 .name = "SST25VF040B",
12465 .bustype = BUS_SPI,
12466 .manufacture_id = SST_ID,
12467 .model_id = SST_SST25VF040B,
12468 .total_size = 512,
12469 .page_size = 256,
12470 .feature_bits = FEATURE_WRSR_EWSR,
12471 .tested = TEST_OK_PREW,
12472 .probe = probe_spi_rdid,
12473 .probe_timing = TIMING_ZERO,
12474 .block_erasers =
12475 {
12476 {
12477 .eraseblocks = { {4 * 1024, 128} },
12478 .block_erase = spi_block_erase_20,
12479 }, {
12480 .eraseblocks = { {32 * 1024, 16} },
12481 .block_erase = spi_block_erase_52,
12482 }, {
12483 .eraseblocks = { {64 * 1024, 8} },
12484 .block_erase = spi_block_erase_d8,
12485 }, {
12486 .eraseblocks = { {512 * 1024, 1} },
12487 .block_erase = spi_block_erase_60,
12488 }, {
12489 .eraseblocks = { {512 * 1024, 1} },
12490 .block_erase = spi_block_erase_c7,
12491 },
12492 },
12493 .printlock = spi_prettyprint_status_register_sst25vf040b,
12494 .unlock = spi_disable_blockprotect,
12495 .write = spi_aai_write, /* AAI supported (0xAD) */
12496 .read = spi_chip_read, /* Fast read (0x0B) supported */
12497 .voltage = {2700, 3600},
12498 },
12499
12500 {
12501 .vendor = "SST",
12502 .name = "SST25VF040B.REMS",
12503 .bustype = BUS_SPI,
12504 .manufacture_id = SST_ID,
12505 .model_id = SST_SST25VF040B_REMS,
12506 .total_size = 512,
12507 .page_size = 256,
12508 .feature_bits = FEATURE_WRSR_EWSR,
12509 .tested = TEST_OK_PREW,
12510 .probe = probe_spi_rems,
12511 .probe_timing = TIMING_ZERO,
12512 .block_erasers =
12513 {
12514 {
12515 .eraseblocks = { {4 * 1024, 128} },
12516 .block_erase = spi_block_erase_20,
12517 }, {
12518 .eraseblocks = { {32 * 1024, 16} },
12519 .block_erase = spi_block_erase_52,
12520 }, {
12521 .eraseblocks = { {64 * 1024, 8} },
12522 .block_erase = spi_block_erase_d8,
12523 }, {
12524 .eraseblocks = { {512 * 1024, 1} },
12525 .block_erase = spi_block_erase_60,
12526 }, {
12527 .eraseblocks = { {512 * 1024, 1} },
12528 .block_erase = spi_block_erase_c7,
12529 },
12530 },
12531 .printlock = spi_prettyprint_status_register_sst25vf040b,
12532 .unlock = spi_disable_blockprotect,
12533 .write = spi_aai_write,
12534 .read = spi_chip_read,
12535 .voltage = {2700, 3600},
12536 },
12537
12538 {
12539 .vendor = "SST",
Ben Gardnerbcf61092015-11-22 02:23:31 +000012540 .name = "SST25WF020A",
12541 .bustype = BUS_SPI,
12542 .manufacture_id = SANYO_ID, /* See flashchips.h */
12543 .model_id = SST_SST25WF020A,
12544 .total_size = 256,
12545 .page_size = 256,
12546 .feature_bits = FEATURE_WRSR_WREN,
12547 .tested = TEST_UNTESTED,
12548 .probe = probe_spi_rdid,
12549 .probe_timing = TIMING_ZERO,
12550 .block_erasers =
12551 {
12552 {
12553 .eraseblocks = { {4 * 1024, 64} },
12554 .block_erase = spi_block_erase_20,
12555 }, {
12556 .eraseblocks = { {64 * 1024, 4} },
12557 .block_erase = spi_block_erase_d8,
12558 }, {
12559 .eraseblocks = { {256 * 1024, 1} },
12560 .block_erase = spi_block_erase_60,
12561 }, {
12562 .eraseblocks = { {256 * 1024, 1} },
12563 .block_erase = spi_block_erase_c7,
12564 },
12565 },
12566 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
12567 .unlock = spi_disable_blockprotect_bp2_srwd,
12568 .write = spi_chip_write_256,
12569 .read = spi_chip_read, /* Fast read (0x0B) supported */
12570 .voltage = {1650, 1950},
12571 },
12572
12573 {
12574 .vendor = "SST",
12575 .name = "SST25WF040B",
12576 .bustype = BUS_SPI,
12577 .manufacture_id = SANYO_ID, /* See flashchips.h */
12578 .model_id = SST_SST25WF040B,
12579 .total_size = 512,
12580 .page_size = 256,
12581 .feature_bits = FEATURE_WRSR_WREN,
12582 .tested = TEST_UNTESTED,
12583 .probe = probe_spi_rdid,
12584 .probe_timing = TIMING_ZERO,
12585 .block_erasers =
12586 {
12587 {
12588 .eraseblocks = { {4 * 1024, 128} },
12589 .block_erase = spi_block_erase_20,
12590 }, {
12591 .eraseblocks = { {64 * 1024, 8} },
12592 .block_erase = spi_block_erase_d8,
12593 }, {
12594 .eraseblocks = { {512 * 1024, 1} },
12595 .block_erase = spi_block_erase_60,
12596 }, {
12597 .eraseblocks = { {512 * 1024, 1} },
12598 .block_erase = spi_block_erase_c7,
12599 },
12600 },
12601 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
12602 .unlock = spi_disable_blockprotect_bp2_srwd,
12603 .write = spi_chip_write_256,
12604 .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */
12605 .voltage = {1650, 1950},
12606 },
12607
12608 {
12609 .vendor = "SST",
12610 .name = "SST25WF080B",
12611 .bustype = BUS_SPI,
12612 .manufacture_id = SANYO_ID, /* See flashchips.h */
12613 .model_id = SST_SST25WF080B,
12614 .total_size = 1024,
12615 .page_size = 256,
12616 .feature_bits = FEATURE_WRSR_WREN,
12617 .tested = TEST_OK_PREW,
12618 .probe = probe_spi_rdid,
12619 .probe_timing = TIMING_ZERO,
12620 .block_erasers =
12621 {
12622 {
12623 .eraseblocks = { {4 * 1024, 256} },
12624 .block_erase = spi_block_erase_20,
12625 }, {
12626 .eraseblocks = { {64 * 1024, 16} },
12627 .block_erase = spi_block_erase_d8,
12628 }, {
12629 .eraseblocks = { {1024 * 1024, 1} },
12630 .block_erase = spi_block_erase_60,
12631 }, {
12632 .eraseblocks = { {1024 * 1024, 1} },
12633 .block_erase = spi_block_erase_c7,
12634 },
12635 },
12636 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
12637 .unlock = spi_disable_blockprotect_bp2_srwd,
12638 .write = spi_chip_write_256,
12639 .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */
12640 .voltage = {1650, 1950},
12641 },
12642
12643 {
12644 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +000012645 .name = "SST25VF080B",
12646 .bustype = BUS_SPI,
12647 .manufacture_id = SST_ID,
12648 .model_id = SST_SST25VF080B,
12649 .total_size = 1024,
12650 .page_size = 256,
12651 .feature_bits = FEATURE_WRSR_EWSR,
12652 .tested = TEST_OK_PREW,
12653 .probe = probe_spi_rdid,
12654 .probe_timing = TIMING_ZERO,
12655 .block_erasers =
12656 {
12657 {
12658 .eraseblocks = { {4 * 1024, 256} },
12659 .block_erase = spi_block_erase_20,
12660 }, {
12661 .eraseblocks = { {32 * 1024, 32} },
12662 .block_erase = spi_block_erase_52,
12663 }, {
12664 .eraseblocks = { {64 * 1024, 16} },
12665 .block_erase = spi_block_erase_d8,
12666 }, {
12667 .eraseblocks = { {1024 * 1024, 1} },
12668 .block_erase = spi_block_erase_60,
12669 }, {
12670 .eraseblocks = { {1024 * 1024, 1} },
12671 .block_erase = spi_block_erase_c7,
12672 },
12673 },
12674 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
12675 .unlock = spi_disable_blockprotect,
12676 .write = spi_aai_write,
Mark Marshall90021f22010-12-03 14:48:11 +000012677 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000012678 .voltage = {2700, 3600},
Mark Marshall90021f22010-12-03 14:48:11 +000012679 },
12680
12681 {
12682 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012683 .name = "SST25VF016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012684 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012685 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012686 .model_id = SST_SST25VF016B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012687 .total_size = 2048,
12688 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000012689 .feature_bits = FEATURE_WRSR_EITHER,
Mark Marshall90021f22010-12-03 14:48:11 +000012690 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012691 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012692 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000012693 .block_erasers =
12694 {
12695 {
12696 .eraseblocks = { {4 * 1024, 512} },
12697 .block_erase = spi_block_erase_20,
12698 }, {
12699 .eraseblocks = { {32 * 1024, 64} },
12700 .block_erase = spi_block_erase_52,
12701 }, {
12702 .eraseblocks = { {64 * 1024, 32} },
12703 .block_erase = spi_block_erase_d8,
12704 }, {
12705 .eraseblocks = { {2 * 1024 * 1024, 1} },
12706 .block_erase = spi_block_erase_60,
12707 }, {
12708 .eraseblocks = { {2 * 1024 * 1024, 1} },
12709 .block_erase = spi_block_erase_c7,
12710 },
12711 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012712 .printlock = spi_prettyprint_status_register_sst25vf016,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012713 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +000012714 .write = spi_aai_write,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012715 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012716 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012717 },
12718
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012719 {
12720 .vendor = "SST",
12721 .name = "SST25VF032B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012722 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012723 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012724 .model_id = SST_SST25VF032B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012725 .total_size = 4096,
12726 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012727 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerfcf6a8c2011-05-18 01:32:00 +000012728 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012729 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012730 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000012731 .block_erasers =
12732 {
12733 {
12734 .eraseblocks = { {4 * 1024, 1024} },
12735 .block_erase = spi_block_erase_20,
12736 }, {
12737 .eraseblocks = { {32 * 1024, 128} },
12738 .block_erase = spi_block_erase_52,
12739 }, {
12740 .eraseblocks = { {64 * 1024, 64} },
12741 .block_erase = spi_block_erase_d8,
12742 }, {
12743 .eraseblocks = { {4 * 1024 * 1024, 1} },
12744 .block_erase = spi_block_erase_60,
12745 }, {
12746 .eraseblocks = { {4 * 1024 * 1024, 1} },
12747 .block_erase = spi_block_erase_c7,
12748 },
12749 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012750 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012751 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +000012752 .write = spi_aai_write,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000012753 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012754 .voltage = {2700, 3600},
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000012755 },
12756
12757 {
12758 .vendor = "SST",
Ed Swierk86f4e6d2010-07-21 15:02:22 +000012759 .name = "SST25VF064C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012760 .bustype = BUS_SPI,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000012761 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012762 .model_id = SST_SST25VF064C,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000012763 .total_size = 8192,
12764 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012765 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Tauner8179be52011-06-04 13:13:34 +000012766 .tested = TEST_OK_PREW,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000012767 .probe = probe_spi_rdid,
12768 .probe_timing = TIMING_ZERO,
12769 .block_erasers =
12770 {
12771 {
12772 .eraseblocks = { {4 * 1024, 2048} },
12773 .block_erase = spi_block_erase_20,
12774 }, {
12775 .eraseblocks = { {32 * 1024, 256} },
12776 .block_erase = spi_block_erase_52,
12777 }, {
12778 .eraseblocks = { {64 * 1024, 128} },
12779 .block_erase = spi_block_erase_d8,
12780 }, {
12781 .eraseblocks = { {8 * 1024 * 1024, 1} },
12782 .block_erase = spi_block_erase_60,
12783 }, {
12784 .eraseblocks = { {8 * 1024 * 1024, 1} },
12785 .block_erase = spi_block_erase_c7,
12786 },
12787 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012788 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Ed Swierk86f4e6d2010-07-21 15:02:22 +000012789 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +000012790 .write = spi_chip_write_256,
Ed Swierk86f4e6d2010-07-21 15:02:22 +000012791 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012792 .voltage = {2700, 3600},
Ed Swierk86f4e6d2010-07-21 15:02:22 +000012793 },
12794
12795 {
12796 .vendor = "SST",
Stefan Tauner9e349e42012-10-01 22:45:08 +000012797 .name = "SST25WF512",
12798 .bustype = BUS_SPI,
12799 .manufacture_id = SST_ID,
12800 .model_id = SST_SST25WF512,
12801 .total_size = 64,
12802 .page_size = 256,
12803 .feature_bits = FEATURE_WRSR_EITHER,
12804 .tested = TEST_UNTESTED,
12805 .probe = probe_spi_rdid,
12806 .probe_timing = TIMING_ZERO,
12807 .block_erasers =
12808 {
12809 {
12810 .eraseblocks = { {4 * 1024, 16} },
12811 .block_erase = spi_block_erase_20,
12812 }, {
12813 .eraseblocks = { {32 * 1024, 2} },
12814 .block_erase = spi_block_erase_52,
12815 }, {
12816 .eraseblocks = { {1024 * 64, 1} },
12817 .block_erase = spi_block_erase_60,
12818 }, {
12819 .eraseblocks = { {1024 * 64, 1} },
12820 .block_erase = spi_block_erase_c7,
12821 },
12822 },
Jason Harper43ddef02014-05-04 00:55:24 +000012823 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
12824 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000012825 .write = spi_aai_write,
12826 .read = spi_chip_read, /* Fast read (0x0B) supported */
12827 .voltage = {1650, 1950},
12828 },
12829
12830 {
12831 .vendor = "SST",
12832 .name = "SST25WF010",
12833 .bustype = BUS_SPI,
12834 .manufacture_id = SST_ID,
12835 .model_id = SST_SST25WF010,
12836 .total_size = 128,
12837 .page_size = 256,
12838 .feature_bits = FEATURE_WRSR_EITHER,
12839 .tested = TEST_UNTESTED,
12840 .probe = probe_spi_rdid,
12841 .probe_timing = TIMING_ZERO,
12842 .block_erasers =
12843 {
12844 {
12845 .eraseblocks = { {4 * 1024, 32} },
12846 .block_erase = spi_block_erase_20,
12847 }, {
12848 .eraseblocks = { {32 * 1024, 4} },
12849 .block_erase = spi_block_erase_52,
12850 }, {
12851 .eraseblocks = { {1024 * 128, 1} },
12852 .block_erase = spi_block_erase_60,
12853 }, {
12854 .eraseblocks = { {1024 * 128, 1} },
12855 .block_erase = spi_block_erase_c7,
12856 },
12857 },
Jason Harper43ddef02014-05-04 00:55:24 +000012858 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
12859 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000012860 .write = spi_aai_write,
12861 .read = spi_chip_read, /* Fast read (0x0B) supported */
12862 .voltage = {1650, 1950},
12863 },
12864
12865 {
12866 .vendor = "SST",
12867 .name = "SST25WF020",
12868 .bustype = BUS_SPI,
12869 .manufacture_id = SST_ID,
12870 .model_id = SST_SST25WF020,
12871 .total_size = 256,
12872 .page_size = 256,
12873 .feature_bits = FEATURE_WRSR_EITHER,
12874 .tested = TEST_UNTESTED,
12875 .probe = probe_spi_rdid,
12876 .probe_timing = TIMING_ZERO,
12877 .block_erasers =
12878 {
12879 {
12880 .eraseblocks = { {4 * 1024, 64} },
12881 .block_erase = spi_block_erase_20,
12882 }, {
12883 .eraseblocks = { {32 * 1024, 8} },
12884 .block_erase = spi_block_erase_52,
12885 }, {
12886 .eraseblocks = { {64 * 1024, 4} },
12887 .block_erase = spi_block_erase_d8,
12888 }, {
12889 .eraseblocks = { {1024 * 256, 1} },
12890 .block_erase = spi_block_erase_60,
12891 }, {
12892 .eraseblocks = { {1024 * 256, 1} },
12893 .block_erase = spi_block_erase_c7,
12894 },
12895 },
Jason Harper43ddef02014-05-04 00:55:24 +000012896 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
12897 .unlock = spi_disable_blockprotect_bp2_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000012898 .write = spi_aai_write,
12899 .read = spi_chip_read, /* Fast read (0x0B) supported */
12900 .voltage = {1650, 1950},
12901 },
12902
12903 {
12904 .vendor = "SST",
12905 .name = "SST25WF040",
12906 .bustype = BUS_SPI,
12907 .manufacture_id = SST_ID,
12908 .model_id = SST_SST25WF040,
12909 .total_size = 512,
12910 .page_size = 256,
12911 .feature_bits = FEATURE_WRSR_EITHER,
12912 .tested = TEST_UNTESTED,
12913 .probe = probe_spi_rdid,
12914 .probe_timing = TIMING_ZERO,
12915 .block_erasers =
12916 {
12917 {
12918 .eraseblocks = { {4 * 1024, 128} },
12919 .block_erase = spi_block_erase_20,
12920 }, {
12921 .eraseblocks = { {32 * 1024, 16} },
12922 .block_erase = spi_block_erase_52,
12923 }, {
12924 .eraseblocks = { {64 * 1024, 8} },
12925 .block_erase = spi_block_erase_d8,
12926 }, {
12927 .eraseblocks = { {1024 * 512, 1} },
12928 .block_erase = spi_block_erase_60,
12929 }, {
12930 .eraseblocks = { {1024 * 512, 1} },
12931 .block_erase = spi_block_erase_c7,
12932 },
12933 },
Jason Harper43ddef02014-05-04 00:55:24 +000012934 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
12935 .unlock = spi_disable_blockprotect_bp2_srwd,
12936 .write = spi_aai_write,
12937 .read = spi_chip_read, /* Fast read (0x0B) supported */
12938 .voltage = {1650, 1950},
12939 },
12940
12941 {
12942 .vendor = "SST",
12943 .name = "SST25WF080",
12944 .bustype = BUS_SPI,
12945 .manufacture_id = SST_ID,
12946 .model_id = SST_SST25WF080,
12947 .total_size = 1024,
12948 .page_size = 256,
12949 .feature_bits = FEATURE_WRSR_EITHER,
12950 .tested = TEST_OK_PREW,
12951 .probe = probe_spi_rdid,
12952 .probe_timing = TIMING_ZERO,
12953 .block_erasers =
12954 {
12955 {
12956 .eraseblocks = { {4 * 1024, 256} },
12957 .block_erase = spi_block_erase_20,
12958 }, {
12959 .eraseblocks = { {32 * 1024, 32} },
12960 .block_erase = spi_block_erase_52,
12961 }, {
12962 .eraseblocks = { {64 * 1024, 16} },
12963 .block_erase = spi_block_erase_d8,
12964 }, {
12965 .eraseblocks = { {1024 * 1024, 1} },
12966 .block_erase = spi_block_erase_60,
12967 }, {
12968 .eraseblocks = { {1024 * 1024, 1} },
12969 .block_erase = spi_block_erase_c7,
12970 },
12971 },
12972 .printlock = spi_prettyprint_status_register_sst25, /* *does* have a BP3 but it is useless */
12973 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner9e349e42012-10-01 22:45:08 +000012974 .write = spi_aai_write,
12975 .read = spi_chip_read, /* Fast read (0x0B) supported */
12976 .voltage = {1650, 1950},
12977 },
12978
12979 {
12980 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012981 .name = "SST28SF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012982 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012983 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012984 .model_id = SST_SST28SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012985 .total_size = 512,
12986 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000012987 .feature_bits = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012988 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012989 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000012990 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000012991 .block_erasers =
12992 {
12993 {
12994 .eraseblocks = { {128, 4096} },
12995 .block_erase = erase_sector_28sf040,
12996 }, {
12997 .eraseblocks = { {512 * 1024, 1} },
12998 .block_erase = erase_chip_28sf040,
12999 }
13000 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000013001 .unlock = unprotect_28sf040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013002 .write = write_28sf040,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013003 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013004 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013005 },
13006
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013007 {
13008 .vendor = "SST",
13009 .name = "SST29EE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013010 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013011 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013012 .model_id = SST_SST29EE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013013 .total_size = 128,
13014 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000013015 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000013016 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013017 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000013018 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013019 .block_erasers =
13020 {
13021 {
13022 .eraseblocks = { {128 * 1024, 1} },
13023 .block_erase = erase_chip_block_jedec,
13024 }
13025 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013026 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013027 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013028 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013029 },
13030
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013031 {
13032 .vendor = "SST",
13033 .name = "SST29LE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013034 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013035 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013036 .model_id = SST_SST29LE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013037 .total_size = 128,
13038 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000013039 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013040 .tested = TEST_UNTESTED,
13041 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000013042 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013043 .block_erasers =
13044 {
13045 {
13046 .eraseblocks = { {128 * 1024, 1} },
13047 .block_erase = erase_chip_block_jedec,
13048 }
13049 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013050 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013051 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013052 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013053 },
13054
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013055 {
13056 .vendor = "SST",
13057 .name = "SST29EE020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013058 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013059 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013060 .model_id = SST_SST29EE020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013061 .total_size = 256,
13062 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000013063 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000013064 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013065 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013066 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013067 .block_erasers =
13068 {
13069 {
13070 .eraseblocks = { {256 * 1024, 1} },
13071 .block_erase = erase_chip_block_jedec,
13072 }
13073 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013074 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013075 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013076 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013077 },
13078
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013079 {
13080 .vendor = "SST",
13081 .name = "SST29LE020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013082 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013083 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013084 .model_id = SST_SST29LE020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013085 .total_size = 256,
13086 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000013087 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000013088 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013089 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000013090 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013091 .block_erasers =
13092 {
13093 {
13094 .eraseblocks = { {256 * 1024, 1} },
13095 .block_erase = erase_chip_block_jedec,
13096 }
13097 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013098 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013099 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013100 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013101 },
13102
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013103 {
13104 .vendor = "SST",
Uwe Hermann48da3f92010-01-23 15:15:19 +000013105 .name = "SST39SF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013106 .bustype = BUS_PARALLEL,
Uwe Hermann48da3f92010-01-23 15:15:19 +000013107 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013108 .model_id = SST_SST39SF512,
Uwe Hermann48da3f92010-01-23 15:15:19 +000013109 .total_size = 64,
13110 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013111 .feature_bits = FEATURE_EITHER_RESET,
Idwer Vollering7913fb42011-03-07 15:32:58 +000013112 .tested = TEST_OK_PREW,
Uwe Hermann48da3f92010-01-23 15:15:19 +000013113 .probe = probe_jedec,
13114 .probe_timing = 1, /* 150 ns */
Uwe Hermann48da3f92010-01-23 15:15:19 +000013115 .block_erasers =
13116 {
13117 {
13118 .eraseblocks = { {4 * 1024, 16} },
13119 .block_erase = erase_sector_jedec,
13120 }, {
13121 .eraseblocks = { {64 * 1024, 1} },
13122 .block_erase = erase_chip_block_jedec,
13123 }
13124 },
Sean Nelson35727f72010-01-28 23:55:12 +000013125 .write = write_jedec_1,
Uwe Hermann48da3f92010-01-23 15:15:19 +000013126 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013127 .voltage = {4500, 5500},
Uwe Hermann48da3f92010-01-23 15:15:19 +000013128 },
13129
13130 {
13131 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013132 .name = "SST39SF010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013133 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013134 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013135 .model_id = SST_SST39SF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013136 .total_size = 128,
13137 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013138 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000013139 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013140 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000013141 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013142 .block_erasers =
13143 {
13144 {
13145 .eraseblocks = { {4 * 1024, 32} },
13146 .block_erase = erase_sector_jedec,
13147 }, {
13148 .eraseblocks = { {128 * 1024, 1} },
13149 .block_erase = erase_chip_block_jedec,
13150 }
13151 },
Sean Nelson35727f72010-01-28 23:55:12 +000013152 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013153 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013154 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013155 },
13156
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013157 {
13158 .vendor = "SST",
13159 .name = "SST39SF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013160 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013161 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013162 .model_id = SST_SST39SF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013163 .total_size = 256,
13164 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013165 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann19f46f22011-06-18 22:56:14 +000013166 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013167 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013168 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013169 .block_erasers =
13170 {
13171 {
13172 .eraseblocks = { {4 * 1024, 64} },
13173 .block_erase = erase_sector_jedec,
13174 }, {
13175 .eraseblocks = { {256 * 1024, 1} },
13176 .block_erase = erase_chip_block_jedec,
13177 }
13178 },
Sean Nelson35727f72010-01-28 23:55:12 +000013179 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013180 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013181 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013182 },
13183
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013184 {
13185 .vendor = "SST",
13186 .name = "SST39SF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013187 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013188 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013189 .model_id = SST_SST39SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013190 .total_size = 512,
13191 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013192 .feature_bits = FEATURE_EITHER_RESET,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +000013193 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013194 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013195 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013196 .block_erasers =
13197 {
13198 {
13199 .eraseblocks = { {4 * 1024, 128} },
13200 .block_erase = erase_sector_jedec,
13201 }, {
13202 .eraseblocks = { {512 * 1024, 1} },
13203 .block_erase = erase_chip_block_jedec,
13204 }
13205 },
Sean Nelson35727f72010-01-28 23:55:12 +000013206 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013207 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013208 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013209 },
13210
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013211 {
13212 .vendor = "SST",
13213 .name = "SST39VF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013214 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013215 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013216 .model_id = SST_SST39VF512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013217 .total_size = 64,
13218 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013219 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd7d423b2012-10-20 09:13:16 +000013220 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013221 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013222 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013223 .block_erasers =
13224 {
13225 {
13226 .eraseblocks = { {4 * 1024, 16} },
13227 .block_erase = erase_sector_jedec,
13228 }, {
13229 .eraseblocks = { {64 * 1024, 1} },
13230 .block_erase = erase_chip_block_jedec,
13231 }
13232 },
Sean Nelson35727f72010-01-28 23:55:12 +000013233 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013234 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013235 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013236 },
13237
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013238 {
13239 .vendor = "SST",
13240 .name = "SST39VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013241 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013242 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013243 .model_id = SST_SST39VF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013244 .total_size = 128,
13245 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013246 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd94d25d2012-07-28 03:17:15 +000013247 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013248 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013249 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013250 .block_erasers =
13251 {
13252 {
13253 .eraseblocks = { {4 * 1024, 32} },
13254 .block_erase = erase_sector_jedec,
13255 }, {
13256 .eraseblocks = { {128 * 1024, 1} },
13257 .block_erase = erase_chip_block_jedec,
13258 }
13259 },
Sean Nelson35727f72010-01-28 23:55:12 +000013260 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013261 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013262 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013263 },
13264
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013265 {
13266 .vendor = "SST",
13267 .name = "SST39VF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013268 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013269 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013270 .model_id = SST_SST39VF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013271 .total_size = 256,
13272 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013273 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner5c316f92015-02-08 21:57:52 +000013274 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013275 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013276 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013277 .block_erasers =
13278 {
13279 {
13280 .eraseblocks = { {4 * 1024, 64} },
13281 .block_erase = erase_sector_jedec,
13282 }, {
13283 .eraseblocks = { {256 * 1024, 1} },
13284 .block_erase = erase_chip_block_jedec,
13285 }
13286 },
Sean Nelson35727f72010-01-28 23:55:12 +000013287 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013288 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013289 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013290 },
13291
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013292 {
13293 .vendor = "SST",
13294 .name = "SST39VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013295 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013296 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013297 .model_id = SST_SST39VF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013298 .total_size = 512,
13299 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013300 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner23e10b82016-01-23 16:16:49 +000013301 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013302 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013303 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013304 .block_erasers =
13305 {
13306 {
13307 .eraseblocks = { {4 * 1024, 128} },
13308 .block_erase = erase_sector_jedec,
13309 }, {
13310 .eraseblocks = { {512 * 1024, 1} },
13311 .block_erase = erase_chip_block_jedec,
13312 }
13313 },
Sean Nelson35727f72010-01-28 23:55:12 +000013314 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013315 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013316 .voltage = {2700, 3600},
Carl-Daniel Hailfinger90eff152008-12-08 23:51:45 +000013317 },
FENG yu ningff692fb2008-12-08 18:15:10 +000013318
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013319 {
13320 .vendor = "SST",
Peter Stuge8440cc02009-01-25 23:55:12 +000013321 .name = "SST39VF080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013322 .bustype = BUS_PARALLEL,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000013323 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013324 .model_id = SST_SST39VF080,
Peter Stuge8440cc02009-01-25 23:55:12 +000013325 .total_size = 1024,
13326 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013327 .feature_bits = FEATURE_EITHER_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +000013328 .tested = TEST_UNTESTED,
13329 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013330 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013331 .block_erasers =
13332 {
13333 {
13334 .eraseblocks = { {4 * 1024, 256} },
13335 .block_erase = erase_sector_jedec,
13336 }, {
13337 .eraseblocks = { {64 * 1024, 16} },
13338 .block_erase = erase_block_jedec,
13339 }, {
13340 .eraseblocks = { {1024 * 1024, 1} },
13341 .block_erase = erase_chip_block_jedec,
13342 }
13343 },
Sean Nelson35727f72010-01-28 23:55:12 +000013344 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013345 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013346 .voltage = {2700, 3600},
Peter Stuge8440cc02009-01-25 23:55:12 +000013347 },
13348
13349 {
13350 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013351 .name = "SST49LF002A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013352 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013353 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013354 .model_id = SST_SST49LF002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013355 .total_size = 256,
13356 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013357 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000013358 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013359 .probe = probe_jedec,
13360 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013361 .block_erasers =
13362 {
13363 {
13364 .eraseblocks = { {4 * 1024, 64} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013365 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013366 }, {
13367 .eraseblocks = { {16 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013368 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013369 }, {
13370 .eraseblocks = { {256 * 1024, 1} },
13371 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
13372 }
13373 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013374 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013375 .unlock = unlock_sst_fwhub,
13376 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013377 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013378 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013379 },
13380
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013381 {
13382 .vendor = "SST",
13383 .name = "SST49LF003A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013384 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013385 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013386 .model_id = SST_SST49LF003A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013387 .total_size = 384,
13388 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013389 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000013390 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013391 .probe = probe_jedec,
13392 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013393 .block_erasers =
13394 {
13395 {
13396 .eraseblocks = { {4 * 1024, 96} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013397 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013398 }, {
13399 .eraseblocks = { {64 * 1024, 6} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013400 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013401 }, {
13402 .eraseblocks = { {384 * 1024, 1} },
13403 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
13404 }
13405 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013406 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013407 .unlock = unlock_sst_fwhub,
13408 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013409 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013410 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013411 },
13412
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013413 {
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000013414 /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB)
13415 * and is only honored for 64k block erase, but not 4k sector erase.
13416 */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013417 .vendor = "SST",
13418 .name = "SST49LF004A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013419 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013420 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013421 .model_id = SST_SST49LF004A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013422 .total_size = 512,
13423 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013424 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000013425 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013426 .probe = probe_jedec,
13427 .probe_timing = 1, /* 150 ns */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000013428 .block_erasers =
13429 {
13430 {
13431 .eraseblocks = { {4 * 1024, 128} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013432 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000013433 }, {
13434 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013435 .block_erase = erase_block_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000013436 }, {
13437 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson51c83fb2010-01-20 20:55:53 +000013438 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000013439 },
13440 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013441 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013442 .unlock = unlock_sst_fwhub,
13443 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013444 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013445 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013446 },
13447
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013448 {
13449 .vendor = "SST",
13450 .name = "SST49LF004C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013451 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013452 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013453 .model_id = SST_SST49LF004C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013454 .total_size = 512,
13455 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013456 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013457 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013458 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000013459 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013460 .block_erasers =
13461 {
13462 {
13463 .eraseblocks = { {4 * 1024, 128} },
13464 .block_erase = erase_sector_49lfxxxc,
13465 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000013466 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000013467 {64 * 1024, 7},
13468 {32 * 1024, 1},
13469 {8 * 1024, 2},
13470 {16 * 1024, 1},
13471 },
Sean Nelson69e58112010-03-23 17:10:28 +000013472 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013473 }
13474 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013475 .printlock = printlock_regspace2_block_eraser_1,
13476 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000013477 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013478 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013479 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013480 },
13481
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013482 {
13483 .vendor = "SST",
13484 .name = "SST49LF008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013485 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013486 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013487 .model_id = SST_SST49LF008A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013488 .total_size = 1024,
13489 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013490 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000013491 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013492 .probe = probe_jedec,
13493 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013494 .block_erasers =
13495 {
13496 {
13497 .eraseblocks = { {4 * 1024, 256} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013498 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013499 }, {
13500 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013501 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013502 }, {
13503 .eraseblocks = { {1024 * 1024, 1} },
13504 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
13505 }
13506 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013507 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013508 .unlock = unlock_sst_fwhub,
13509 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013510 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013511 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013512 },
13513
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013514 {
13515 .vendor = "SST",
13516 .name = "SST49LF008C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013517 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013518 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013519 .model_id = SST_SST49LF008C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013520 .total_size = 1024,
13521 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013522 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013523 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013524 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000013525 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013526 .block_erasers =
13527 {
13528 {
13529 .eraseblocks = { {4 * 1024, 256} },
13530 .block_erase = erase_sector_49lfxxxc,
13531 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000013532 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000013533 {64 * 1024, 15},
13534 {32 * 1024, 1},
13535 {8 * 1024, 2},
13536 {16 * 1024, 1},
13537 },
Sean Nelson69e58112010-03-23 17:10:28 +000013538 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013539 }
13540 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013541 .printlock = printlock_regspace2_block_eraser_1,
13542 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000013543 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013544 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013545 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013546 },
13547
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013548 {
13549 .vendor = "SST",
13550 .name = "SST49LF016C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013551 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013552 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013553 .model_id = SST_SST49LF016C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013554 .total_size = 2048,
13555 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013556 .feature_bits = FEATURE_REGISTERMAP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000013557 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013558 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000013559 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013560 .block_erasers =
13561 {
13562 {
13563 .eraseblocks = { {4 * 1024, 512} },
13564 .block_erase = erase_sector_49lfxxxc,
13565 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000013566 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000013567 {64 * 1024, 31},
13568 {32 * 1024, 1},
13569 {8 * 1024, 2},
13570 {16 * 1024, 1},
13571 },
Sean Nelson69e58112010-03-23 17:10:28 +000013572 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013573 }
13574 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013575 .printlock = printlock_regspace2_block_eraser_1,
13576 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000013577 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013578 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013579 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013580 },
13581
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013582 {
13583 .vendor = "SST",
13584 .name = "SST49LF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013585 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013586 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013587 .model_id = SST_SST49LF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013588 .total_size = 256,
13589 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013590 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +000013591 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013592 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013593 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013594 .block_erasers =
13595 {
13596 {
13597 .eraseblocks = { {4 * 1024, 64} },
13598 .block_erase = erase_sector_jedec,
13599 }, {
13600 .eraseblocks = { {16 * 1024, 16} },
13601 .block_erase = erase_block_jedec,
13602 }, {
13603 .eraseblocks = { {256 * 1024, 1} },
13604 .block_erase = NULL,
13605 }
13606 },
Sean Nelson35727f72010-01-28 23:55:12 +000013607 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013608 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013609 .voltage = {3000, 3600},
Sven Schnellec208dfb2009-01-07 12:35:09 +000013610 },
13611
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013612 {
13613 .vendor = "SST",
13614 .name = "SST49LF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013615 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013616 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013617 .model_id = SST_SST49LF020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013618 .total_size = 256,
Carl-Daniel Hailfingerda654322009-07-23 01:44:38 +000013619 .page_size = 4 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013620 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000013621 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013622 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013623 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013624 .block_erasers =
13625 {
13626 {
13627 .eraseblocks = { {4 * 1024, 64} },
13628 .block_erase = erase_sector_jedec,
13629 }, {
13630 .eraseblocks = { {16 * 1024, 16} },
13631 .block_erase = erase_block_jedec,
13632 }, {
13633 .eraseblocks = { {256 * 1024, 1} },
13634 .block_erase = NULL,
13635 }
13636 },
Sean Nelson35727f72010-01-28 23:55:12 +000013637 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013638 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013639 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013640 },
13641
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013642 {
13643 .vendor = "SST",
13644 .name = "SST49LF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013645 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013646 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013647 .model_id = SST_SST49LF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013648 .total_size = 512,
13649 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013650 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000013651 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013652 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013653 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013654 .block_erasers =
13655 {
13656 {
13657 .eraseblocks = { {4 * 1024, 128} },
13658 .block_erase = erase_sector_jedec,
13659 }, {
13660 .eraseblocks = { {64 * 1024, 8} },
13661 .block_erase = erase_block_jedec,
13662 }, {
13663 .eraseblocks = { {512 * 1024, 1} },
13664 .block_erase = NULL,
13665 }
13666 },
Sean Nelson35727f72010-01-28 23:55:12 +000013667 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013668 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013669 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013670 },
13671
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013672 {
13673 .vendor = "SST",
13674 .name = "SST49LF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013675 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013676 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013677 .model_id = SST_SST49LF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013678 .total_size = 512,
13679 .page_size = 64 * 1024,
Joshua Roysa84b0bd2010-08-16 22:12:39 +000013680 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000013681 .tested = TEST_OK_PREW,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013682 .probe = probe_jedec,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013683 .probe_timing = 1, /* 150ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013684 .block_erasers =
13685 {
13686 {
13687 .eraseblocks = { {4 * 1024, 128} },
13688 .block_erase = erase_sector_jedec,
13689 }, {
13690 .eraseblocks = { {64 * 1024, 8} },
13691 .block_erase = erase_block_jedec,
13692 }, {
13693 .eraseblocks = { {512 * 1024, 1} },
13694 .block_erase = NULL,
13695 }
13696 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013697 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000013698 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013699 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013700 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013701 },
13702
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013703 {
13704 .vendor = "SST",
13705 .name = "SST49LF080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013706 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013707 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013708 .model_id = SST_SST49LF080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013709 .total_size = 1024,
13710 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013711 .feature_bits = FEATURE_EITHER_RESET,
Brandon Dowdyf07bf322011-03-06 18:31:11 +000013712 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013713 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000013714 .probe_timing = TIMING_FIXME,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013715 .block_erasers =
13716 {
13717 {
13718 .eraseblocks = { {4 * 1024, 256} },
13719 .block_erase = erase_sector_jedec,
13720 }, {
13721 .eraseblocks = { {64 * 1024, 16} },
13722 .block_erase = erase_block_jedec,
13723 }, {
13724 .eraseblocks = { {1024 * 1024, 1} },
13725 .block_erase = NULL,
13726 }
13727 },
Sean Nelson35727f72010-01-28 23:55:12 +000013728 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013729 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013730 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013731 },
13732
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013733 {
13734 .vendor = "SST",
13735 .name = "SST49LF160C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013736 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013737 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013738 .model_id = SST_SST49LF160C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013739 .total_size = 2048,
13740 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013741 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013742 .tested = TEST_OK_PR,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013743 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000013744 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013745 .block_erasers =
13746 {
13747 {
13748 .eraseblocks = { {4 * 1024, 512} },
13749 .block_erase = erase_sector_49lfxxxc,
13750 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000013751 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000013752 {64 * 1024, 31},
13753 {32 * 1024, 1},
13754 {8 * 1024, 2},
13755 {16 * 1024, 1},
13756 },
Sean Nelson69e58112010-03-23 17:10:28 +000013757 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013758 }
13759 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013760 .printlock = printlock_regspace2_block_eraser_1,
13761 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000013762 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013763 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013764 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013765 },
13766
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013767 {
13768 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013769 .name = "M29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013770 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013771 .manufacture_id = ST_ID,
13772 .model_id = ST_M29F002B,
13773 .total_size = 256,
13774 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013775 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013776 .tested = TEST_UNTESTED,
13777 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013778 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000013779 .block_erasers =
13780 {
13781 {
13782 .eraseblocks = {
13783 {16 * 1024, 1},
13784 {8 * 1024, 2},
13785 {32 * 1024, 1},
13786 {64 * 1024, 3},
13787 },
13788 .block_erase = erase_sector_jedec,
13789 }, {
13790 .eraseblocks = { {256 * 1024, 1} },
13791 .block_erase = erase_chip_block_jedec,
13792 }
13793 },
Sean Nelson35727f72010-01-28 23:55:12 +000013794 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013795 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000013796 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000013797 },
13798
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013799 {
13800 .vendor = "ST",
13801 .name = "M29F002T/NT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013802 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013803 .manufacture_id = ST_ID,
13804 .model_id = ST_M29F002T,
13805 .total_size = 256,
13806 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013807 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stefan Taunere34e3e82013-01-01 00:06:51 +000013808 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013809 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013810 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000013811 .block_erasers =
13812 {
13813 {
13814 .eraseblocks = {
13815 {64 * 1024, 3},
13816 {32 * 1024, 1},
13817 {8 * 1024, 2},
13818 {16 * 1024, 1},
13819 },
13820 .block_erase = erase_sector_jedec,
13821 }, {
13822 .eraseblocks = { {256 * 1024, 1} },
13823 .block_erase = erase_chip_block_jedec,
13824 }
13825 },
Sean Nelson35727f72010-01-28 23:55:12 +000013826 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013827 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000013828 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000013829 },
13830
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013831 {
13832 .vendor = "ST",
13833 .name = "M29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013834 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013835 .manufacture_id = ST_ID,
13836 .model_id = ST_M29F040B,
13837 .total_size = 512,
13838 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013839 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
13840 .tested = TEST_UNTESTED,
13841 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +000013842 .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */
Sean Nelson56358aa2010-01-19 16:08:51 +000013843 .block_erasers =
13844 {
13845 {
Stefan Tauner6697f712014-08-06 15:09:15 +000013846 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +000013847 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000013848 }, {
13849 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000013850 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000013851 }
13852 },
Sean Nelson35727f72010-01-28 23:55:12 +000013853 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013854 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013855 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013856 },
13857
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013858 {
Sean Nelson35727f72010-01-28 23:55:12 +000013859 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013860 .vendor = "ST",
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000013861 .name = "M29F400BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013862 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000013863 .manufacture_id = ST_ID,
13864 .model_id = ST_M29F400BB,
13865 .total_size = 512,
13866 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000013867 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000013868 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000013869 .probe = probe_jedec,
13870 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000013871 .block_erasers =
13872 {
13873 {
13874 .eraseblocks = {
13875 {16 * 1024, 1},
13876 {8 * 1024, 2},
13877 {32 * 1024, 1},
13878 {64 * 1024, 7},
13879 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000013880 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000013881 }, {
13882 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000013883 .block_erase = erase_chip_block_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000013884 }
13885 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000013886 .write = write_jedec_1,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000013887 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013888 .voltage = {4500, 5500},
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000013889 },
13890 {
13891 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
13892 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013893 .name = "M29F400BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013894 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013895 .manufacture_id = ST_ID,
13896 .model_id = ST_M29F400BT,
13897 .total_size = 512,
13898 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000013899 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013900 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000013901 .probe = probe_jedec,
13902 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson56358aa2010-01-19 16:08:51 +000013903 .block_erasers =
13904 {
13905 {
13906 .eraseblocks = {
13907 {64 * 1024, 7},
13908 {32 * 1024, 1},
13909 {8 * 1024, 2},
13910 {16 * 1024, 1},
13911 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000013912 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000013913 }, {
13914 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000013915 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000013916 }
13917 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000013918 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013919 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013920 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013921 },
13922
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013923 {
13924 .vendor = "ST",
13925 .name = "M29W010B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013926 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013927 .manufacture_id = ST_ID,
13928 .model_id = ST_M29W010B,
13929 .total_size = 128,
13930 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013931 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013932 .tested = TEST_UNTESTED,
13933 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013934 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000013935 .block_erasers =
13936 {
13937 {
Stefan Tauner6697f712014-08-06 15:09:15 +000013938 .eraseblocks = { {16 * 1024, 8} },
Sean Nelson56358aa2010-01-19 16:08:51 +000013939 .block_erase = erase_sector_jedec,
13940 }, {
13941 .eraseblocks = { {128 * 1024, 1} },
13942 .block_erase = erase_chip_block_jedec,
13943 }
13944 },
Sean Nelson35727f72010-01-28 23:55:12 +000013945 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013946 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013947 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013948 },
13949
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013950 {
13951 .vendor = "ST",
13952 .name = "M29W040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013953 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013954 .manufacture_id = ST_ID,
13955 .model_id = ST_M29W040B,
13956 .total_size = 512,
13957 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013958 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013959 .tested = TEST_UNTESTED,
13960 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013961 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000013962 .block_erasers =
13963 {
13964 {
Stefan Tauner6697f712014-08-06 15:09:15 +000013965 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson56358aa2010-01-19 16:08:51 +000013966 .block_erase = erase_sector_jedec,
13967 }, {
13968 .eraseblocks = { {512 * 1024, 1} },
13969 .block_erase = erase_chip_block_jedec,
13970 }
13971 },
Sean Nelson35727f72010-01-28 23:55:12 +000013972 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013973 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013974 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013975 },
13976
Stefan Taunereb582572012-09-21 12:52:50 +000013977 {
13978 .vendor = "ST",
13979 .name = "M29W512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013980 .bustype = BUS_PARALLEL,
Stefan Taunereb582572012-09-21 12:52:50 +000013981 .manufacture_id = ST_ID,
13982 .model_id = ST_M29W512B,
13983 .total_size = 64,
13984 .page_size = 64 * 1024,
13985 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauner0554ca52013-07-25 22:54:25 +000013986 .tested = TEST_OK_PREW,
Stefan Taunereb582572012-09-21 12:52:50 +000013987 .probe = probe_jedec,
13988 .probe_timing = TIMING_ZERO,
13989 .block_erasers =
13990 {
13991 {
13992 .eraseblocks = { {64 * 1024, 1} },
13993 .block_erase = erase_chip_block_jedec,
13994 }
13995 },
13996 .write = write_jedec_1,
13997 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013998 .voltage = {2700, 3600},
Stefan Taunereb582572012-09-21 12:52:50 +000013999 },
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +000014000
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014001 {
14002 .vendor = "ST",
14003 .name = "M50FLW040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014004 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014005 .manufacture_id = ST_ID,
14006 .model_id = ST_M50FLW040A,
14007 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000014008 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014009 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014010 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000014011 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000014012 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000014013 .block_erasers =
14014 {
14015 {
Sean Nelson329bde72010-01-19 16:39:19 +000014016 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000014017 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000014018 {64 * 1024, 5}, /* block */
14019 {4 * 1024, 16}, /* sector */
14020 {4 * 1024, 16}, /* sector */
14021 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000014022 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000014023 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000014024 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000014025 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014026 }
14027 },
Sean Nelson28accc22010-03-19 18:47:06 +000014028 .write = write_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014029 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014030 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014031 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014032 },
14033
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014034 {
14035 .vendor = "ST",
14036 .name = "M50FLW040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014037 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014038 .manufacture_id = ST_ID,
14039 .model_id = ST_M50FLW040B,
14040 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000014041 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014042 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014043 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000014044 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000014045 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000014046 .block_erasers =
14047 {
14048 {
Sean Nelson329bde72010-01-19 16:39:19 +000014049 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000014050 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000014051 {4 * 1024, 16}, /* sector */
14052 {64 * 1024, 5}, /* block */
14053 {4 * 1024, 16}, /* sector */
14054 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000014055 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000014056 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000014057 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000014058 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014059 }
14060 },
Sean Nelson28accc22010-03-19 18:47:06 +000014061 .write = write_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014062 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014063 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014064 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014065 },
14066
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014067 {
14068 .vendor = "ST",
14069 .name = "M50FLW080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014070 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014071 .manufacture_id = ST_ID,
14072 .model_id = ST_M50FLW080A,
14073 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000014074 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014075 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014076 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +000014077 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000014078 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000014079 .block_erasers =
14080 {
14081 {
Sean Nelson329bde72010-01-19 16:39:19 +000014082 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000014083 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000014084 {64 * 1024, 13}, /* block */
14085 {4 * 1024, 16}, /* sector */
14086 {4 * 1024, 16}, /* sector */
14087 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000014088 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000014089 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000014090 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000014091 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014092 }
14093 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014094 .printlock = printlock_regspace2_block_eraser_0,
14095 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000014096 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014097 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014098 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014099 },
14100
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014101 {
14102 .vendor = "ST",
14103 .name = "M50FLW080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014104 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014105 .manufacture_id = ST_ID,
14106 .model_id = ST_M50FLW080B,
14107 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000014108 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014109 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014110 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000014111 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000014112 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000014113 .block_erasers =
14114 {
14115 {
Sean Nelson329bde72010-01-19 16:39:19 +000014116 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000014117 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000014118 {4 * 1024, 16}, /* sector */
14119 {64 * 1024, 13}, /* block */
14120 {4 * 1024, 16}, /* sector */
14121 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000014122 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000014123 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000014124 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000014125 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014126 }
14127 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014128 .printlock = printlock_regspace2_block_eraser_0,
14129 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000014130 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014131 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014132 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014133 },
14134
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014135 {
14136 .vendor = "ST",
14137 .name = "M50FW002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014138 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014139 .manufacture_id = ST_ID,
14140 .model_id = ST_M50FW002,
14141 .total_size = 256,
Stefan Tauner4404f732013-09-12 08:28:56 +000014142 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014143 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014144 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +000014145 .probe = probe_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014146 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000014147 .block_erasers =
14148 {
14149 {
14150 .eraseblocks = {
14151 {64 * 1024, 3},
14152 {32 * 1024, 1},
14153 {8 * 1024, 2},
14154 {16 * 1024, 1},
14155 },
Sean Nelson28accc22010-03-19 18:47:06 +000014156 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014157 }, {
Stefan Tauner5c316f92015-02-08 21:57:52 +000014158 .eraseblocks = { {256 * 1024, 1} },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014159 .block_erase = NULL, /* Only in A/A mux mode */
Sean Nelson56358aa2010-01-19 16:08:51 +000014160 }
14161 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014162 .printlock = printlock_regspace2_block_eraser_0,
14163 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000014164 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014165 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014166 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014167 },
14168
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014169 {
14170 .vendor = "ST",
14171 .name = "M50FW016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014172 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014173 .manufacture_id = ST_ID,
14174 .model_id = ST_M50FW016,
14175 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000014176 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014177 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014178 .tested = TEST_UNTESTED,
14179 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014180 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000014181 .block_erasers =
14182 {
14183 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014184 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson28accc22010-03-19 18:47:06 +000014185 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014186 }
14187 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014188 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000014189 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014190 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014191 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014192 },
14193
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014194 {
14195 .vendor = "ST",
14196 .name = "M50FW040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014197 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014198 .manufacture_id = ST_ID,
14199 .model_id = ST_M50FW040,
14200 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000014201 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014202 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +000014203 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014204 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014205 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000014206 .block_erasers =
14207 {
14208 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014209 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000014210 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014211 }
14212 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014213 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000014214 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014215 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014216 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014217 },
14218
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014219 {
14220 .vendor = "ST",
14221 .name = "M50FW080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014222 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014223 .manufacture_id = ST_ID,
14224 .model_id = ST_M50FW080,
14225 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000014226 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014227 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014228 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014229 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014230 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000014231 .block_erasers =
14232 {
14233 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014234 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000014235 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014236 }
14237 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014238 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000014239 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014240 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014241 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014242 },
14243
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014244 {
14245 .vendor = "ST",
Stefan Tauner8c4602b2013-09-12 08:29:00 +000014246 .name = "M50LPW080",
14247 .bustype = BUS_LPC, /* A/A Mux */
14248 .manufacture_id = ST_ID,
14249 .model_id = ST_M50LPW080,
14250 .total_size = 1024,
14251 .page_size = 0,
14252 .feature_bits = FEATURE_REGISTERMAP,
14253 .tested = TEST_UNTESTED,
14254 .probe = probe_82802ab,
14255 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
14256 .block_erasers =
14257 {
14258 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014259 .eraseblocks = { {64 * 1024, 16} },
Stefan Tauner8c4602b2013-09-12 08:29:00 +000014260 .block_erase = erase_block_82802ab,
14261 }
14262 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014263 .unlock = unlock_regspace2_uniform_64k,
Stefan Tauner8c4602b2013-09-12 08:29:00 +000014264 .write = write_82802ab,
14265 .read = read_memmapped,
14266 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
14267 },
14268
14269 {
14270 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014271 .name = "M50LPW116",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014272 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014273 .manufacture_id = ST_ID,
14274 .model_id = ST_M50LPW116,
14275 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000014276 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014277 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014278 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000014279 .probe = probe_82802ab,
Udu Ogahc04ee222009-09-05 01:31:32 +000014280 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014281 .block_erasers =
14282 {
14283 {
14284 .eraseblocks = {
14285 {4 * 1024, 16},
14286 {64 * 1024, 30},
14287 {32 * 1024, 1},
14288 {8 * 1024, 2},
14289 {16 * 1024, 1},
14290 },
Sean Nelson28accc22010-03-19 18:47:06 +000014291 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014292 }
14293 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014294 .printlock = printlock_regspace2_block_eraser_0,
14295 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000014296 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014297 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014298 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014299 },
14300
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014301 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000014302 .vendor = "SyncMOS/MoselVitelic",
14303 .name = "{F,S,V}29C51001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014304 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000014305 .manufacture_id = SYNCMOS_MVC_ID,
14306 .model_id = SM_MVC_29C51001B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014307 .total_size = 128,
Mattias Mattsson4c066502010-07-29 20:01:13 +000014308 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000014309 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014310 .tested = TEST_UNTESTED,
14311 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014312 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014313 .block_erasers =
14314 {
14315 {
14316 .eraseblocks = { {512, 256} },
14317 .block_erase = erase_sector_jedec,
14318 }, {
14319 .eraseblocks = { {128 * 1024, 1} },
14320 .block_erase = erase_chip_block_jedec,
14321 },
14322 },
Sean Nelson35727f72010-01-28 23:55:12 +000014323 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014324 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014325 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014326 },
14327
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014328 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000014329 .vendor = "SyncMOS/MoselVitelic",
14330 .name = "{F,S,V}29C51001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014331 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000014332 .manufacture_id = SYNCMOS_MVC_ID,
14333 .model_id = SM_MVC_29C51001T,
14334 .total_size = 128,
14335 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000014336 .feature_bits = FEATURE_EITHER_RESET,
Mattias Mattsson4c066502010-07-29 20:01:13 +000014337 .tested = TEST_UNTESTED,
14338 .probe = probe_jedec,
14339 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
14340 .block_erasers =
14341 {
14342 {
14343 .eraseblocks = { {512, 256} },
14344 .block_erase = erase_sector_jedec,
14345 }, {
14346 .eraseblocks = { {128 * 1024, 1} },
14347 .block_erase = erase_chip_block_jedec,
14348 },
14349 },
14350 .write = write_jedec_1,
14351 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014352 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000014353 },
14354
14355 {
14356 .vendor = "SyncMOS/MoselVitelic",
14357 .name = "{F,S,V}29C51002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014358 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000014359 .manufacture_id = SYNCMOS_MVC_ID,
14360 .model_id = SM_MVC_29C51002B,
14361 .total_size = 256,
14362 .page_size = 512,
14363 .feature_bits = FEATURE_EITHER_RESET,
14364 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014365 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014366 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014367 .block_erasers =
14368 {
14369 {
14370 .eraseblocks = { {512, 512} },
14371 .block_erase = erase_sector_jedec,
14372 }, {
14373 .eraseblocks = { {256 * 1024, 1} },
14374 .block_erase = erase_chip_block_jedec,
14375 },
14376 },
Sean Nelson35727f72010-01-28 23:55:12 +000014377 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014378 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000014379 },
14380
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014381 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000014382 .vendor = "SyncMOS/MoselVitelic",
14383 .name = "{F,S,V}29C51002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014384 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000014385 .manufacture_id = SYNCMOS_MVC_ID,
14386 .model_id = SM_MVC_29C51002T,
14387 .total_size = 256,
14388 .page_size = 512,
14389 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000014390 .tested = TEST_OK_PREW,
Mattias Mattsson4c066502010-07-29 20:01:13 +000014391 .probe = probe_jedec,
14392 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
14393 .block_erasers =
14394 {
14395 {
14396 .eraseblocks = { {512, 512} },
14397 .block_erase = erase_sector_jedec,
14398 }, {
14399 .eraseblocks = { {256 * 1024, 1} },
14400 .block_erase = erase_chip_block_jedec,
14401 },
14402 },
14403 .write = write_jedec_1,
14404 .read = read_memmapped,
14405 },
14406
14407 {
14408 .vendor = "SyncMOS/MoselVitelic",
14409 .name = "{F,S,V}29C51004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014410 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000014411 .manufacture_id = SYNCMOS_MVC_ID,
14412 .model_id = SM_MVC_29C51004B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014413 .total_size = 512,
Mattias Mattsson4c066502010-07-29 20:01:13 +000014414 .page_size = 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014415 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014416 .tested = TEST_UNTESTED,
14417 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014418 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +000014419 .block_erasers =
14420 {
14421 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000014422 .eraseblocks = { {1024, 512} },
14423 .block_erase = erase_sector_jedec,
14424 }, {
14425 .eraseblocks = { {512 * 1024, 1} },
14426 .block_erase = erase_chip_block_jedec,
14427 },
14428 },
14429 .write = write_jedec_1,
14430 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014431 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000014432 },
14433
14434 {
14435 .vendor = "SyncMOS/MoselVitelic",
14436 .name = "{F,S,V}29C51004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014437 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000014438 .manufacture_id = SYNCMOS_MVC_ID,
14439 .model_id = SM_MVC_29C51004T,
14440 .total_size = 512,
14441 .page_size = 1024,
14442 .feature_bits = FEATURE_EITHER_RESET,
14443 .tested = TEST_UNTESTED,
14444 .probe = probe_jedec,
14445 .probe_timing = TIMING_ZERO,
14446 .block_erasers =
14447 {
14448 {
14449 .eraseblocks = { {1024, 512} },
14450 .block_erase = erase_sector_jedec,
14451 }, {
14452 .eraseblocks = { {512 * 1024, 1} },
14453 .block_erase = erase_chip_block_jedec,
14454 },
14455 },
14456 .write = write_jedec_1,
14457 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014458 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000014459 },
14460
14461 {
14462 .vendor = "SyncMOS/MoselVitelic",
14463 .name = "{S,V}29C31004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014464 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000014465 .manufacture_id = SYNCMOS_MVC_ID,
14466 .model_id = SM_MVC_29C31004B,
14467 .total_size = 512,
14468 .page_size = 1024,
14469 .feature_bits = FEATURE_EITHER_RESET,
14470 .tested = TEST_UNTESTED,
14471 .probe = probe_jedec,
14472 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
14473 .block_erasers =
14474 {
14475 {
14476 .eraseblocks = { {1024, 512} },
14477 .block_erase = erase_sector_jedec,
14478 }, {
14479 .eraseblocks = { {512 * 1024, 1} },
14480 .block_erase = erase_chip_block_jedec,
14481 },
14482 },
14483 .write = write_jedec_1,
14484 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014485 .voltage = {3000, 3600},
Mattias Mattsson4c066502010-07-29 20:01:13 +000014486 },
14487
14488 {
14489 .vendor = "SyncMOS/MoselVitelic",
14490 .name = "{S,V}29C31004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014491 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000014492 .manufacture_id = SYNCMOS_MVC_ID,
14493 .model_id = SM_MVC_29C31004T,
14494 .total_size = 512,
14495 .page_size = 1024,
14496 .feature_bits = FEATURE_EITHER_RESET,
14497 .tested = TEST_UNTESTED,
14498 .probe = probe_jedec,
14499 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
14500 .block_erasers =
14501 {
14502 {
14503 .eraseblocks = { {1024, 512} },
Sean Nelson56358aa2010-01-19 16:08:51 +000014504 .block_erase = erase_sector_jedec,
14505 }, {
14506 .eraseblocks = { {512 * 1024, 1} },
14507 .block_erase = erase_chip_block_jedec,
14508 },
14509 },
Sean Nelson35727f72010-01-28 23:55:12 +000014510 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014511 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014512 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014513 },
14514
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014515 {
Uwe Hermanna106d152009-05-27 23:17:40 +000014516 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000014517 .name = "TMS29F002RB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014518 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000014519 .manufacture_id = TI_OLD_ID,
14520 .model_id = TI_TMS29F002RB,
14521 .total_size = 256,
14522 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000014523 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000014524 .tested = TEST_UNTESTED,
14525 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014526 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014527 .block_erasers =
14528 {
14529 {
14530 .eraseblocks = {
14531 {16 * 1024, 1},
14532 {8 * 1024, 2},
14533 {32 * 1024, 1},
14534 {64 * 1024, 3},
14535 },
14536 .block_erase = erase_sector_jedec,
14537 }, {
14538 .eraseblocks = { {256 * 1024, 1} },
14539 .block_erase = erase_chip_block_jedec,
14540 },
14541 },
Sean Nelson35727f72010-01-28 23:55:12 +000014542 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000014543 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014544 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000014545 },
14546
14547 {
Uwe Hermanna106d152009-05-27 23:17:40 +000014548 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000014549 .name = "TMS29F002RT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014550 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000014551 .manufacture_id = TI_OLD_ID,
14552 .model_id = TI_TMS29F002RT,
14553 .total_size = 256,
14554 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000014555 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000014556 .tested = TEST_UNTESTED,
14557 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014558 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014559 .block_erasers =
14560 {
14561 {
14562 .eraseblocks = {
14563 {64 * 1024, 3},
14564 {32 * 1024, 1},
14565 {8 * 1024, 2},
14566 {16 * 1024, 1},
14567 },
14568 .block_erase = erase_sector_jedec,
14569 }, {
14570 .eraseblocks = { {256 * 1024, 1} },
14571 .block_erase = erase_chip_block_jedec,
14572 },
14573 },
Sean Nelson35727f72010-01-28 23:55:12 +000014574 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000014575 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014576 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000014577 },
14578
14579 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014580 .vendor = "Winbond",
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000014581 .name = "W25Q40.V",
14582 .bustype = BUS_SPI,
14583 .manufacture_id = WINBOND_NEX_ID,
14584 .model_id = WINBOND_NEX_W25Q40_V,
14585 .total_size = 512,
14586 .page_size = 256,
14587 /* supports SFDP */
14588 /* OTP: 756B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
14589 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner5c316f92015-02-08 21:57:52 +000014590 .tested = TEST_OK_PREW,
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000014591 .probe = probe_spi_rdid,
14592 .probe_timing = TIMING_ZERO,
14593 .block_erasers =
14594 {
14595 {
14596 .eraseblocks = { {4 * 1024, 128} },
14597 .block_erase = spi_block_erase_20,
14598 }, {
14599 .eraseblocks = { {32 * 1024, 16} },
14600 .block_erase = spi_block_erase_52,
14601 }, {
14602 .eraseblocks = { {64 * 1024, 8} },
14603 .block_erase = spi_block_erase_d8,
14604 }, {
14605 .eraseblocks = { {512 * 1024, 1} },
14606 .block_erase = spi_block_erase_60,
14607 }, {
14608 .eraseblocks = { {512 * 1024, 1} },
14609 .block_erase = spi_block_erase_c7,
14610 }
14611 },
14612 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14613 .unlock = spi_disable_blockprotect,
14614 .write = spi_chip_write_256, /* Multi I/O supported */
14615 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
14616 .voltage = {2700, 3600},
14617 },
14618
14619 {
14620 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014621 .name = "W25Q80.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014622 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014623 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014624 .model_id = WINBOND_NEX_W25Q80_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014625 .total_size = 1024,
14626 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014627 /* supports SFDP */
14628 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000014629 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000014630 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014631 .probe = probe_spi_rdid,
14632 .probe_timing = TIMING_ZERO,
14633 .block_erasers =
14634 {
14635 {
14636 .eraseblocks = { {4 * 1024, 256} },
14637 .block_erase = spi_block_erase_20,
14638 }, {
14639 .eraseblocks = { {32 * 1024, 32} },
14640 .block_erase = spi_block_erase_52,
14641 }, {
14642 .eraseblocks = { {64 * 1024, 16} },
14643 .block_erase = spi_block_erase_d8,
14644 }, {
14645 .eraseblocks = { {1024 * 1024, 1} },
14646 .block_erase = spi_block_erase_60,
14647 }, {
14648 .eraseblocks = { {1024 * 1024, 1} },
14649 .block_erase = spi_block_erase_c7,
14650 }
14651 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000014652 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000014653 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014654 .write = spi_chip_write_256,
14655 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014656 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000014657 },
14658
14659 {
14660 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014661 .name = "W25Q16.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014662 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014663 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014664 .model_id = WINBOND_NEX_W25Q16_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014665 .total_size = 2048,
14666 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014667 /* supports SFDP */
14668 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000014669 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner716e0982011-07-25 20:38:52 +000014670 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014671 .probe = probe_spi_rdid,
14672 .probe_timing = TIMING_ZERO,
14673 .block_erasers =
14674 {
14675 {
14676 .eraseblocks = { {4 * 1024, 512} },
14677 .block_erase = spi_block_erase_20,
14678 }, {
14679 .eraseblocks = { {32 * 1024, 64} },
14680 .block_erase = spi_block_erase_52,
14681 }, {
14682 .eraseblocks = { {64 * 1024, 32} },
14683 .block_erase = spi_block_erase_d8,
14684 }, {
14685 .eraseblocks = { {2 * 1024 * 1024, 1} },
14686 .block_erase = spi_block_erase_60,
14687 }, {
14688 .eraseblocks = { {2 * 1024 * 1024, 1} },
14689 .block_erase = spi_block_erase_c7,
14690 }
14691 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000014692 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000014693 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014694 .write = spi_chip_write_256,
14695 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014696 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000014697 },
14698
14699 {
14700 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014701 .name = "W25Q32.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014702 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014703 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014704 .model_id = WINBOND_NEX_W25Q32_V,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014705 .total_size = 4096,
14706 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014707 /* supports SFDP */
14708 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000014709 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000014710 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014711 .probe = probe_spi_rdid,
14712 .probe_timing = TIMING_ZERO,
14713 .block_erasers =
14714 {
14715 {
14716 .eraseblocks = { {4 * 1024, 1024} },
14717 .block_erase = spi_block_erase_20,
14718 }, {
14719 .eraseblocks = { {32 * 1024, 128} },
14720 .block_erase = spi_block_erase_52,
14721 }, {
14722 .eraseblocks = { {64 * 1024, 64} },
14723 .block_erase = spi_block_erase_d8,
14724 }, {
14725 .eraseblocks = { {4 * 1024 * 1024, 1} },
14726 .block_erase = spi_block_erase_60,
14727 }, {
14728 .eraseblocks = { {4 * 1024 * 1024, 1} },
14729 .block_erase = spi_block_erase_c7,
14730 }
14731 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000014732 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000014733 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000014734 .write = spi_chip_write_256,
14735 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014736 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +000014737 },
14738
14739 {
14740 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014741 .name = "W25Q64.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014742 .bustype = BUS_SPI,
David Hendricksc4acec92010-06-24 11:39:57 +000014743 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014744 .model_id = WINBOND_NEX_W25Q64_V,
David Hendricksc4acec92010-06-24 11:39:57 +000014745 .total_size = 8192,
14746 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014747 /* supports SFDP */
14748 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000014749 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +000014750 .tested = TEST_OK_PREW,
David Hendricksc4acec92010-06-24 11:39:57 +000014751 .probe = probe_spi_rdid,
14752 .probe_timing = TIMING_ZERO,
14753 .block_erasers =
14754 {
14755 {
14756 .eraseblocks = { {4 * 1024, 2048} },
14757 .block_erase = spi_block_erase_20,
14758 }, {
14759 .eraseblocks = { {32 * 1024, 256} },
14760 .block_erase = spi_block_erase_52,
14761 }, {
14762 .eraseblocks = { {64 * 1024, 128} },
14763 .block_erase = spi_block_erase_d8,
14764 }, {
14765 .eraseblocks = { {8 * 1024 * 1024, 1} },
14766 .block_erase = spi_block_erase_60,
14767 }, {
14768 .eraseblocks = { {8 * 1024 * 1024, 1} },
14769 .block_erase = spi_block_erase_c7,
14770 }
14771 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000014772 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000014773 .unlock = spi_disable_blockprotect,
David Hendricksc4acec92010-06-24 11:39:57 +000014774 .write = spi_chip_write_256,
14775 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014776 .voltage = {2700, 3600},
David Hendricksc4acec92010-06-24 11:39:57 +000014777 },
14778
14779 {
14780 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014781 .name = "W25Q128.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014782 .bustype = BUS_SPI,
Antony Rheneus0fbba982011-05-26 14:28:51 +000014783 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014784 .model_id = WINBOND_NEX_W25Q128_V,
Antony Rheneus0fbba982011-05-26 14:28:51 +000014785 .total_size = 16384,
14786 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014787 /* supports SFDP */
14788 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000014789 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +000014790 .tested = TEST_OK_PREW,
Antony Rheneus0fbba982011-05-26 14:28:51 +000014791 .probe = probe_spi_rdid,
14792 .probe_timing = TIMING_ZERO,
14793 .block_erasers =
14794 {
14795 {
14796 .eraseblocks = { {4 * 1024, 4096} },
14797 .block_erase = spi_block_erase_20,
14798 }, {
14799 .eraseblocks = { {32 * 1024, 512} },
14800 .block_erase = spi_block_erase_52,
14801 }, {
14802 .eraseblocks = { {64 * 1024, 256} },
14803 .block_erase = spi_block_erase_d8,
14804 }, {
14805 .eraseblocks = { {16 * 1024 * 1024, 1} },
14806 .block_erase = spi_block_erase_60,
14807 }, {
14808 .eraseblocks = { {16 * 1024 * 1024, 1} },
14809 .block_erase = spi_block_erase_c7,
14810 }
14811 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000014812 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Antony Rheneus0fbba982011-05-26 14:28:51 +000014813 .unlock = spi_disable_blockprotect,
14814 .write = spi_chip_write_256,
14815 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014816 .voltage = {2700, 3600},
14817 },
14818
14819 {
14820 .vendor = "Winbond",
Boris Baykovaa6c3742016-06-11 18:29:01 +020014821 .name = "W25Q256.V",
14822 .bustype = BUS_SPI,
14823 .manufacture_id = WINBOND_NEX_ID,
14824 .model_id = WINBOND_NEX_W25Q256_V,
14825 .total_size = 32768,
14826 .page_size = 256,
14827 /* supports SFDP */
14828 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
14829 /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */
Nico Hubera1672f82017-10-14 18:00:20 +020014830 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_SUPPORT | FEATURE_4BA_READ,
Boris Baykovaa6c3742016-06-11 18:29:01 +020014831 .tested = TEST_OK_PREW,
14832 .probe = probe_spi_rdid,
14833 .probe_timing = TIMING_ZERO,
14834 .block_erasers =
14835 {
14836 {
14837 .eraseblocks = { {4 * 1024, 8192} },
Nico Huber7a077222017-10-14 18:18:30 +020014838 .block_erase = spi_block_erase_20,
Boris Baykovaa6c3742016-06-11 18:29:01 +020014839 }, {
14840 .eraseblocks = { {32 * 1024, 1024} },
Nico Huber7a077222017-10-14 18:18:30 +020014841 .block_erase = spi_block_erase_52,
Boris Baykovaa6c3742016-06-11 18:29:01 +020014842 }, {
14843 .eraseblocks = { {64 * 1024, 512} },
Nico Huber7a077222017-10-14 18:18:30 +020014844 .block_erase = spi_block_erase_d8,
Boris Baykovaa6c3742016-06-11 18:29:01 +020014845 }, {
14846 .eraseblocks = { {32 * 1024 * 1024, 1} },
14847 .block_erase = spi_block_erase_60,
14848 }, {
14849 .eraseblocks = { {32 * 1024 * 1024, 1} },
14850 .block_erase = spi_block_erase_c7,
14851 }
14852 },
14853 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14854 .unlock = spi_disable_blockprotect,
14855 .write = spi_chip_write_256,
14856 .read = spi_chip_read,
Nico Huber7a077222017-10-14 18:18:30 +020014857 .set_4ba = spi_enter_4ba_b7_we,
Boris Baykovaa6c3742016-06-11 18:29:01 +020014858 .voltage = {2700, 3600},
14859 },
14860
14861 {
14862 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014863 .name = "W25Q20.W",
14864 .bustype = BUS_SPI,
14865 .manufacture_id = WINBOND_NEX_ID,
14866 .model_id = WINBOND_NEX_W25Q20_W,
14867 .total_size = 256,
14868 .page_size = 256,
14869 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
14870 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
14871 .tested = TEST_UNTESTED,
14872 .probe = probe_spi_rdid,
14873 .probe_timing = TIMING_ZERO,
14874 .block_erasers =
14875 {
14876 {
14877 .eraseblocks = { {4 * 1024, 64} },
14878 .block_erase = spi_block_erase_20,
14879 }, {
14880 .eraseblocks = { {32 * 1024, 8} },
14881 .block_erase = spi_block_erase_52,
14882 }, {
14883 .eraseblocks = { {64 * 1024, 4} },
14884 .block_erase = spi_block_erase_d8,
14885 }, {
14886 .eraseblocks = { {256 * 1024, 1} },
14887 .block_erase = spi_block_erase_60,
14888 }, {
14889 .eraseblocks = { {256 * 1024, 1} },
14890 .block_erase = spi_block_erase_c7,
14891 }
14892 },
14893 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14894 .unlock = spi_disable_blockprotect,
14895 .write = spi_chip_write_256,
14896 .read = spi_chip_read,
14897 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
14898 },
14899
14900 {
14901 .vendor = "Winbond",
14902 .name = "W25Q40.W",
14903 .bustype = BUS_SPI,
14904 .manufacture_id = WINBOND_NEX_ID,
14905 .model_id = WINBOND_NEX_W25Q40_W,
14906 .total_size = 512,
14907 .page_size = 256,
14908 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
14909 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
14910 .tested = TEST_UNTESTED,
14911 .probe = probe_spi_rdid,
14912 .probe_timing = TIMING_ZERO,
14913 .block_erasers =
14914 {
14915 {
14916 .eraseblocks = { {4 * 1024, 128} },
14917 .block_erase = spi_block_erase_20,
14918 }, {
14919 .eraseblocks = { {32 * 1024, 16} },
14920 .block_erase = spi_block_erase_52,
14921 }, {
14922 .eraseblocks = { {64 * 1024, 8} },
14923 .block_erase = spi_block_erase_d8,
14924 }, {
14925 .eraseblocks = { {512 * 1024, 1} },
14926 .block_erase = spi_block_erase_60,
14927 }, {
14928 .eraseblocks = { {512 * 1024, 1} },
14929 .block_erase = spi_block_erase_c7,
14930 }
14931 },
14932 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14933 .unlock = spi_disable_blockprotect,
14934 .write = spi_chip_write_256,
14935 .read = spi_chip_read,
14936 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
14937 },
14938
14939 {
14940 .vendor = "Winbond",
14941 .name = "W25Q80.W",
14942 .bustype = BUS_SPI,
14943 .manufacture_id = WINBOND_NEX_ID,
14944 .model_id = WINBOND_NEX_W25Q80_W,
14945 .total_size = 1024,
14946 .page_size = 256,
14947 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
14948 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000014949 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000014950 .probe = probe_spi_rdid,
14951 .probe_timing = TIMING_ZERO,
14952 .block_erasers =
14953 {
14954 {
14955 .eraseblocks = { {4 * 1024, 256} },
14956 .block_erase = spi_block_erase_20,
14957 }, {
14958 .eraseblocks = { {32 * 1024, 32} },
14959 .block_erase = spi_block_erase_52,
14960 }, {
14961 .eraseblocks = { {64 * 1024, 16} },
14962 .block_erase = spi_block_erase_d8,
14963 }, {
14964 .eraseblocks = { {1 * 1024 * 1024, 1} },
14965 .block_erase = spi_block_erase_60,
14966 }, {
14967 .eraseblocks = { {1 * 1024 * 1024, 1} },
14968 .block_erase = spi_block_erase_c7,
14969 }
14970 },
14971 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14972 .unlock = spi_disable_blockprotect,
14973 .write = spi_chip_write_256,
14974 .read = spi_chip_read,
14975 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
14976 },
14977
14978 {
14979 .vendor = "Winbond",
14980 .name = "W25Q16.W",
14981 .bustype = BUS_SPI,
14982 .manufacture_id = WINBOND_NEX_ID,
14983 .model_id = WINBOND_NEX_W25Q16_W,
14984 .total_size = 2048,
14985 .page_size = 256,
14986 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
14987 /* QPI enable 0x38, disable 0xFF */
14988 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
14989 .tested = TEST_UNTESTED,
14990 .probe = probe_spi_rdid,
14991 .probe_timing = TIMING_ZERO,
14992 .block_erasers =
14993 {
14994 {
14995 .eraseblocks = { {4 * 1024, 512} },
14996 .block_erase = spi_block_erase_20,
14997 }, {
14998 .eraseblocks = { {32 * 1024, 64} },
14999 .block_erase = spi_block_erase_52,
15000 }, {
15001 .eraseblocks = { {64 * 1024, 32} },
15002 .block_erase = spi_block_erase_d8,
15003 }, {
15004 .eraseblocks = { {2 * 1024 * 1024, 1} },
15005 .block_erase = spi_block_erase_60,
15006 }, {
15007 .eraseblocks = { {2 * 1024 * 1024, 1} },
15008 .block_erase = spi_block_erase_c7,
15009 }
15010 },
15011 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15012 .unlock = spi_disable_blockprotect,
15013 .write = spi_chip_write_256,
15014 .read = spi_chip_read,
15015 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
15016 },
15017
15018 {
15019 .vendor = "Winbond",
15020 .name = "W25Q32.W",
15021 .bustype = BUS_SPI,
15022 .manufacture_id = WINBOND_NEX_ID,
15023 .model_id = WINBOND_NEX_W25Q32_W,
15024 .total_size = 4096,
15025 .page_size = 256,
15026 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
15027 /* QPI enable 0x38, disable 0xFF */
15028 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
15029 .tested = TEST_OK_PREW,
15030 .probe = probe_spi_rdid,
15031 .probe_timing = TIMING_ZERO,
15032 .block_erasers =
15033 {
15034 {
15035 .eraseblocks = { {4 * 1024, 1024} },
15036 .block_erase = spi_block_erase_20,
15037 }, {
15038 .eraseblocks = { {32 * 1024, 128} },
15039 .block_erase = spi_block_erase_52,
15040 }, {
15041 .eraseblocks = { {64 * 1024, 64} },
15042 .block_erase = spi_block_erase_d8,
15043 }, {
15044 .eraseblocks = { {4 * 1024 * 1024, 1} },
15045 .block_erase = spi_block_erase_60,
15046 }, {
15047 .eraseblocks = { {4 * 1024 * 1024, 1} },
15048 .block_erase = spi_block_erase_c7,
15049 }
15050 },
15051 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15052 .unlock = spi_disable_blockprotect,
15053 .write = spi_chip_write_256,
15054 .read = spi_chip_read,
15055 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
15056 },
15057
15058 {
15059 .vendor = "Winbond",
15060 .name = "W25Q64.W",
15061 .bustype = BUS_SPI,
15062 .manufacture_id = WINBOND_NEX_ID,
15063 .model_id = WINBOND_NEX_W25Q64_W,
15064 .total_size = 8192,
15065 .page_size = 256,
15066 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
15067 /* QPI enable 0x38, disable 0xFF */
15068 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner0554ca52013-07-25 22:54:25 +000015069 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015070 .probe = probe_spi_rdid,
15071 .probe_timing = TIMING_ZERO,
15072 .block_erasers =
15073 {
15074 {
15075 .eraseblocks = { {4 * 1024, 2048} },
15076 .block_erase = spi_block_erase_20,
15077 }, {
15078 .eraseblocks = { {32 * 1024, 256} },
15079 .block_erase = spi_block_erase_52,
15080 }, {
15081 .eraseblocks = { {64 * 1024, 128} },
15082 .block_erase = spi_block_erase_d8,
15083 }, {
15084 .eraseblocks = { {8 * 1024 * 1024, 1} },
15085 .block_erase = spi_block_erase_60,
15086 }, {
15087 .eraseblocks = { {8 * 1024 * 1024, 1} },
15088 .block_erase = spi_block_erase_c7,
15089 }
15090 },
15091 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15092 .unlock = spi_disable_blockprotect,
15093 .write = spi_chip_write_256,
15094 .read = spi_chip_read,
15095 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
Antony Rheneus0fbba982011-05-26 14:28:51 +000015096 },
15097
15098 {
15099 .vendor = "Winbond",
Nico Huber70eed9f2017-04-24 22:19:27 +020015100 .name = "W25Q128.W",
15101 .bustype = BUS_SPI,
15102 .manufacture_id = WINBOND_NEX_ID,
15103 .model_id = WINBOND_NEX_W25Q128_W,
15104 .total_size = 16384,
15105 .page_size = 256,
15106 /* supports SFDP */
15107 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
15108 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
David Hendricks48729d32017-12-08 14:44:07 -080015109 .tested = TEST_OK_PREW,
Nico Huber70eed9f2017-04-24 22:19:27 +020015110 .probe = probe_spi_rdid,
15111 .probe_timing = TIMING_ZERO,
15112 .block_erasers =
15113 {
15114 {
15115 .eraseblocks = { {4 * 1024, 4096} },
15116 .block_erase = spi_block_erase_20,
15117 }, {
15118 .eraseblocks = { {32 * 1024, 512} },
15119 .block_erase = spi_block_erase_52,
15120 }, {
15121 .eraseblocks = { {64 * 1024, 256} },
15122 .block_erase = spi_block_erase_d8,
15123 }, {
15124 .eraseblocks = { {16 * 1024 * 1024, 1} },
15125 .block_erase = spi_block_erase_60,
15126 }, {
15127 .eraseblocks = { {16 * 1024 * 1024, 1} },
15128 .block_erase = spi_block_erase_c7,
15129 }
15130 },
15131 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15132 .unlock = spi_disable_blockprotect,
15133 .write = spi_chip_write_256,
15134 .read = spi_chip_read,
15135 .voltage = {1650, 1950},
15136 },
15137
15138 {
15139 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000015140 .name = "W25X10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015141 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015142 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015143 .model_id = WINBOND_NEX_W25X10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015144 .total_size = 128,
15145 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000015146 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +000015147 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015148 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000015149 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015150 .block_erasers =
15151 {
15152 {
15153 .eraseblocks = { {4 * 1024, 32} },
15154 .block_erase = spi_block_erase_20,
15155 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015156 .eraseblocks = { {64 * 1024, 2} },
15157 .block_erase = spi_block_erase_d8,
15158 }, {
15159 .eraseblocks = { {128 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015160 .block_erase = spi_block_erase_c7,
15161 }
15162 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000015163 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000015164 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000015165 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015166 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015167 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000015168 },
15169
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015170 {
15171 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000015172 .name = "W25X20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015173 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015174 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015175 .model_id = WINBOND_NEX_W25X20,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015176 .total_size = 256,
15177 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000015178 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +000015179 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015180 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000015181 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015182 .block_erasers =
15183 {
15184 {
15185 .eraseblocks = { {4 * 1024, 64} },
15186 .block_erase = spi_block_erase_20,
15187 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015188 .eraseblocks = { {64 * 1024, 4} },
15189 .block_erase = spi_block_erase_d8,
15190 }, {
15191 .eraseblocks = { {256 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015192 .block_erase = spi_block_erase_c7,
15193 }
15194 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000015195 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000015196 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000015197 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015198 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015199 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000015200 },
15201
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015202 {
15203 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000015204 .name = "W25X40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015205 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015206 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015207 .model_id = WINBOND_NEX_W25X40,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015208 .total_size = 512,
15209 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000015210 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +000015211 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015212 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000015213 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015214 .block_erasers =
15215 {
15216 {
15217 .eraseblocks = { {4 * 1024, 128} },
15218 .block_erase = spi_block_erase_20,
15219 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015220 .eraseblocks = { {64 * 1024, 8} },
15221 .block_erase = spi_block_erase_d8,
15222 }, {
15223 .eraseblocks = { {512 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015224 .block_erase = spi_block_erase_c7,
15225 }
15226 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000015227 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000015228 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000015229 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015230 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015231 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000015232 },
15233
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015234 {
15235 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000015236 .name = "W25X80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015237 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015238 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015239 .model_id = WINBOND_NEX_W25X80,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015240 .total_size = 1024,
15241 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000015242 .feature_bits = FEATURE_WRSR_WREN,
Yul Rottmann6d6ab742011-03-05 16:31:57 +000015243 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015244 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000015245 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015246 .block_erasers =
15247 {
15248 {
15249 .eraseblocks = { {4 * 1024, 256} },
15250 .block_erase = spi_block_erase_20,
15251 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015252 .eraseblocks = { {64 * 1024, 16} },
15253 .block_erase = spi_block_erase_d8,
15254 }, {
15255 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015256 .block_erase = spi_block_erase_c7,
15257 }
15258 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000015259 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000015260 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000015261 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015262 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015263 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000015264 },
15265
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015266 {
15267 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000015268 .name = "W25X16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015269 .bustype = BUS_SPI,
Hector Martina721ae22009-07-11 19:39:11 +000015270 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015271 .model_id = WINBOND_NEX_W25X16,
Hector Martina721ae22009-07-11 19:39:11 +000015272 .total_size = 2048,
15273 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000015274 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +000015275 .tested = TEST_OK_PREW,
Hector Martina721ae22009-07-11 19:39:11 +000015276 .probe = probe_spi_rdid,
15277 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015278 .block_erasers =
15279 {
15280 {
15281 .eraseblocks = { {4 * 1024, 512} },
15282 .block_erase = spi_block_erase_20,
15283 }, {
15284 .eraseblocks = { {32 * 1024, 64} },
15285 .block_erase = spi_block_erase_52,
15286 }, {
15287 .eraseblocks = { {64 * 1024, 32} },
15288 .block_erase = spi_block_erase_d8,
15289 }, {
15290 .eraseblocks = { {2 * 1024 * 1024, 1} },
15291 .block_erase = spi_block_erase_60,
15292 }, {
15293 .eraseblocks = { {2 * 1024 * 1024, 1} },
15294 .block_erase = spi_block_erase_c7,
15295 }
15296 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000015297 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000015298 .unlock = spi_disable_blockprotect,
Hector Martina721ae22009-07-11 19:39:11 +000015299 .write = spi_chip_write_256,
15300 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015301 .voltage = {2700, 3600},
Hector Martina721ae22009-07-11 19:39:11 +000015302 },
15303
15304 {
15305 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000015306 .name = "W25X32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015307 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000015308 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015309 .model_id = WINBOND_NEX_W25X32,
Zheng Bao1db2b752009-11-26 11:05:01 +000015310 .total_size = 4096,
15311 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000015312 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000015313 .tested = TEST_OK_PREW,
Zheng Bao1db2b752009-11-26 11:05:01 +000015314 .probe = probe_spi_rdid,
15315 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015316 .block_erasers =
15317 {
15318 {
15319 .eraseblocks = { {4 * 1024, 1024} },
15320 .block_erase = spi_block_erase_20,
15321 }, {
15322 .eraseblocks = { {32 * 1024, 128} },
15323 .block_erase = spi_block_erase_52,
15324 }, {
15325 .eraseblocks = { {64 * 1024, 64} },
15326 .block_erase = spi_block_erase_d8,
15327 }, {
15328 .eraseblocks = { {4 * 1024 * 1024, 1} },
15329 .block_erase = spi_block_erase_60,
15330 }, {
15331 .eraseblocks = { {4 * 1024 * 1024, 1} },
15332 .block_erase = spi_block_erase_c7,
15333 }
15334 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000015335 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000015336 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000015337 .write = spi_chip_write_256,
15338 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015339 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000015340 },
15341
15342 {
15343 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000015344 .name = "W25X64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015345 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000015346 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015347 .model_id = WINBOND_NEX_W25X64,
Zheng Bao1db2b752009-11-26 11:05:01 +000015348 .total_size = 8192,
15349 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000015350 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000015351 .tested = TEST_OK_PREW,
Zheng Bao1db2b752009-11-26 11:05:01 +000015352 .probe = probe_spi_rdid,
15353 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015354 .block_erasers =
15355 {
15356 {
15357 .eraseblocks = { {4 * 1024, 2048} },
15358 .block_erase = spi_block_erase_20,
15359 }, {
15360 .eraseblocks = { {32 * 1024, 256} },
15361 .block_erase = spi_block_erase_52,
15362 }, {
15363 .eraseblocks = { {64 * 1024, 128} },
15364 .block_erase = spi_block_erase_d8,
15365 }, {
15366 .eraseblocks = { {8 * 1024 * 1024, 1} },
15367 .block_erase = spi_block_erase_60,
15368 }, {
15369 .eraseblocks = { {8 * 1024 * 1024, 1} },
15370 .block_erase = spi_block_erase_c7,
15371 }
15372 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000015373 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000015374 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000015375 .write = spi_chip_write_256,
15376 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015377 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000015378 },
15379
15380 {
15381 .vendor = "Winbond",
Urja Rannikko2a1aaba2015-06-20 11:53:10 +000015382 .name = "W29C512A/W29EE512",
15383 .bustype = BUS_PARALLEL,
15384 .manufacture_id = WINBOND_ID,
15385 .model_id = WINBOND_W29C512A,
15386 .total_size = 64,
15387 .page_size = 128,
15388 .feature_bits = FEATURE_LONG_RESET,
15389 .tested = TEST_OK_PREW,
15390 .probe = probe_jedec,
15391 .probe_timing = 10,
15392 .block_erasers =
15393 {
15394 {
15395 .eraseblocks = { {64 * 1024, 1} },
15396 .block_erase = erase_chip_block_jedec,
15397 }
15398 },
15399 .write = write_jedec,
15400 .read = read_memmapped,
15401 .voltage = {4500, 5500},
15402 },
15403
15404 {
15405 .vendor = "Winbond",
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000015406 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015407 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000015408 .manufacture_id = WINBOND_ID,
15409 .model_id = WINBOND_W29C010,
15410 .total_size = 128,
15411 .page_size = 128,
15412 .feature_bits = FEATURE_LONG_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000015413 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000015414 .probe = probe_w29ee011,
15415 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */
15416 .block_erasers =
15417 {
15418 {
15419 .eraseblocks = { {128 * 1024, 1} },
15420 .block_erase = erase_chip_block_jedec,
15421 }
15422 },
15423 .write = write_jedec,
15424 .read = read_memmapped,
15425 },
15426
15427 {/* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */
15428 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000015429 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015430 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015431 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015432 .model_id = WINBOND_W29C010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015433 .total_size = 128,
15434 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000015435 .feature_bits = FEATURE_LONG_RESET,
David Hendricks567b7b82011-05-18 01:31:03 +000015436 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015437 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000015438 .probe_timing = 10, /* used datasheet for the W29C011A */
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015439 .block_erasers =
15440 {
15441 {
15442 .eraseblocks = { {128 * 1024, 1} },
15443 .block_erase = erase_chip_block_jedec,
15444 }
15445 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015446 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015447 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000015448 },
15449
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015450 {
15451 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000015452 .name = "W29C020(C)/W29C022",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015453 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015454 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015455 .model_id = WINBOND_W29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015456 .total_size = 256,
15457 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000015458 .feature_bits = FEATURE_LONG_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000015459 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015460 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000015461 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015462 .block_erasers =
15463 {
15464 {
15465 .eraseblocks = { {256 * 1024, 1} },
15466 .block_erase = erase_chip_block_jedec,
15467 }
15468 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015469 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015470 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015471 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000015472 },
15473
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015474 {
15475 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000015476 .name = "W29C040/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015477 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015478 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015479 .model_id = WINBOND_W29C040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015480 .total_size = 512,
15481 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000015482 .feature_bits = FEATURE_LONG_RESET,
15483 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015484 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000015485 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015486 .block_erasers =
15487 {
15488 {
15489 .eraseblocks = { {512 * 1024, 1} },
15490 .block_erase = erase_chip_block_jedec,
15491 }
15492 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015493 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015494 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015495 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000015496 },
15497
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015498 {
15499 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000015500 .name = "W29GL032CB",
15501 .bustype = BUS_PARALLEL,
15502 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
15503 .model_id = WINBOND_W29GL032CB,
15504 .total_size = 4096,
15505 .page_size = 128 * 1024, /* actual page size is 16 */
15506 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
15507 .tested = TEST_UNTESTED,
15508 .probe = probe_jedec_29gl,
15509 .probe_timing = TIMING_ZERO,
15510 .block_erasers =
15511 {
15512 {
15513 .eraseblocks = {
15514 {8 * 1024, 8},
15515 {64 * 1024, 63},
15516 },
15517 .block_erase = erase_sector_jedec,
15518 }, {
15519 .eraseblocks = { {4 * 1024 * 1024, 1} },
15520 .block_erase = erase_chip_block_jedec,
15521 },
15522 },
15523 .write = write_jedec_1,
15524 .read = read_memmapped,
15525 .voltage = {2700, 3600},
15526 },
15527
15528 {
15529 .vendor = "Winbond",
15530 .name = "W29GL032CT",
15531 .bustype = BUS_PARALLEL,
15532 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
15533 .model_id = WINBOND_W29GL032CT,
15534 .total_size = 4096,
15535 .page_size = 128 * 1024, /* actual page size is 16 */
15536 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
15537 .tested = TEST_UNTESTED,
15538 .probe = probe_jedec_29gl,
15539 .probe_timing = TIMING_ZERO,
15540 .block_erasers =
15541 {
15542 {
15543 .eraseblocks = {
15544 {64 * 1024, 63},
15545 {8 * 1024, 8},
15546 },
15547 .block_erase = erase_sector_jedec,
15548 }, {
15549 .eraseblocks = { {4 * 1024 * 1024, 1} },
15550 .block_erase = erase_chip_block_jedec,
15551 },
15552 },
15553 .write = write_jedec_1,
15554 .read = read_memmapped,
15555 .voltage = {2700, 3600},
15556 },
15557
15558 {
15559 .vendor = "Winbond",
15560 .name = "W29GL032CH/L",
15561 .bustype = BUS_PARALLEL,
15562 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
15563 .model_id = WINBOND_W29GL032CHL,
15564 .total_size = 4096,
15565 .page_size = 128 * 1024, /* actual page size is 16 */
15566 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
15567 .tested = TEST_UNTESTED,
15568 .probe = probe_jedec_29gl,
15569 .probe_timing = TIMING_ZERO,
15570 .block_erasers =
15571 {
15572 {
15573 .eraseblocks = { {64 * 1024, 64} },
15574 .block_erase = erase_sector_jedec,
15575 }, {
15576 .eraseblocks = { {4 * 1024 * 1024, 1} },
15577 .block_erase = erase_chip_block_jedec,
15578 },
15579 },
15580 .write = write_jedec_1,
15581 .read = read_memmapped,
15582 .voltage = {2700, 3600},
15583 },
15584
15585 {
15586 .vendor = "Winbond",
15587 .name = "W29GL064CB",
15588 .bustype = BUS_PARALLEL,
15589 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
15590 .model_id = WINBOND_W29GL064CB,
15591 .total_size = 8192,
15592 .page_size = 128 * 1024, /* actual page size is 16 */
15593 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
15594 .tested = TEST_UNTESTED,
15595 .probe = probe_jedec_29gl,
15596 .probe_timing = TIMING_ZERO,
15597 .block_erasers =
15598 {
15599 {
15600 .eraseblocks = {
15601 {8 * 1024, 8},
15602 {64 * 1024, 127},
15603 },
15604 .block_erase = erase_sector_jedec,
15605 }, {
15606 .eraseblocks = { {8 * 1024 * 1024, 1} },
15607 .block_erase = erase_chip_block_jedec,
15608 },
15609 },
15610 .write = write_jedec_1,
15611 .read = read_memmapped,
15612 .voltage = {2700, 3600},
15613 },
15614
15615 {
15616 .vendor = "Winbond",
15617 .name = "W29GL064CT",
15618 .bustype = BUS_PARALLEL,
15619 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
15620 .model_id = WINBOND_W29GL064CT,
15621 .total_size = 8192,
15622 .page_size = 128 * 1024, /* actual page size is 16 */
15623 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
15624 .tested = TEST_UNTESTED,
15625 .probe = probe_jedec_29gl,
15626 .probe_timing = TIMING_ZERO,
15627 .block_erasers =
15628 {
15629 {
15630 .eraseblocks = {
15631 {64 * 1024, 127},
15632 {8 * 1024, 8},
15633 },
15634 .block_erase = erase_sector_jedec,
15635 }, {
15636 .eraseblocks = { {8 * 1024 * 1024, 1} },
15637 .block_erase = erase_chip_block_jedec,
15638 },
15639 },
15640 .write = write_jedec_1,
15641 .read = read_memmapped,
15642 .voltage = {2700, 3600},
15643 },
15644
15645 {
15646 .vendor = "Winbond",
15647 .name = "W29GL064CH/L",
15648 .bustype = BUS_PARALLEL,
15649 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
15650 .model_id = WINBOND_W29GL064CHL,
15651 .total_size = 8192,
15652 .page_size = 128 * 1024, /* actual page size is 16 */
15653 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
15654 .tested = TEST_UNTESTED,
15655 .probe = probe_jedec_29gl,
15656 .probe_timing = TIMING_ZERO,
15657 .block_erasers =
15658 {
15659 {
15660 .eraseblocks = { {64 * 1024, 128} },
15661 .block_erase = erase_sector_jedec,
15662 }, {
15663 .eraseblocks = { {8 * 1024 * 1024, 1} },
15664 .block_erase = erase_chip_block_jedec,
15665 },
15666 },
15667 .write = write_jedec_1,
15668 .read = read_memmapped,
15669 .voltage = {2700, 3600},
15670 },
15671
15672 {
15673 .vendor = "Winbond",
15674 .name = "W29GL128C",
15675 .bustype = BUS_PARALLEL,
15676 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
15677 .model_id = WINBOND_W29GL128CHL,
15678 .total_size = 16384,
15679 .page_size = 128 * 1024, /* actual page size is 16 */
15680 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
15681 .tested = TEST_UNTESTED,
15682 .probe = probe_jedec_29gl,
15683 .probe_timing = TIMING_ZERO,
15684 .block_erasers =
15685 {
15686 {
15687 .eraseblocks = { {128 * 1024, 128} },
15688 .block_erase = erase_sector_jedec,
15689 }, {
15690 .eraseblocks = { {16 * 1024 * 1024, 1} },
15691 .block_erase = erase_chip_block_jedec,
15692 },
15693 },
15694 .write = write_jedec_1,
15695 .read = read_memmapped,
15696 .voltage = {2700, 3600},
15697 },
15698
15699 {
15700 .vendor = "Winbond",
Kyösti Mälkkic31243e2012-10-28 01:50:08 +000015701 .name = "W39F010",
15702 .bustype = BUS_PARALLEL,
15703 .manufacture_id = WINBOND_ID,
15704 .model_id = WINBOND_W39F010,
15705 .total_size = 128,
15706 .page_size = 4 * 1024,
15707 .feature_bits = FEATURE_EITHER_RESET,
15708 .tested = TEST_OK_PREW,
15709 .probe = probe_jedec,
15710 .probe_timing = 10,
15711 .block_erasers =
15712 {
15713 {
15714 .eraseblocks = { {4 * 1024, 32} },
15715 .block_erase = erase_block_jedec,
15716 }, {
15717 .eraseblocks = { {128 * 1024, 1} },
15718 .block_erase = erase_chip_block_jedec,
15719 }
15720 },
15721 .printlock = printlock_w39f010,
15722 .write = write_jedec_1,
15723 .read = read_memmapped,
15724 .voltage = {4500, 5500},
15725 },
15726
15727 {
15728 .vendor = "Winbond",
15729 .name = "W39L010",
15730 .bustype = BUS_PARALLEL,
15731 .manufacture_id = WINBOND_ID,
15732 .model_id = WINBOND_W39L010,
15733 .total_size = 128,
15734 .page_size = 4 * 1024,
15735 .feature_bits = FEATURE_EITHER_RESET,
15736 .tested = TEST_UNTESTED,
15737 .probe = probe_jedec,
15738 .probe_timing = 10,
15739 .block_erasers =
15740 {
15741 {
15742 .eraseblocks = { {4 * 1024, 32} },
15743 .block_erase = erase_block_jedec,
15744 }, {
15745 .eraseblocks = { {128 * 1024, 1} },
15746 .block_erase = erase_chip_block_jedec,
15747 }
15748 },
15749 .printlock = printlock_w39l010,
15750 .write = write_jedec_1,
15751 .read = read_memmapped,
15752 .voltage = {3000, 3600},
15753 },
15754
15755 {
15756 .vendor = "Winbond",
15757 .name = "W39L020",
15758 .bustype = BUS_PARALLEL,
15759 .manufacture_id = WINBOND_ID,
15760 .model_id = WINBOND_W39L020,
15761 .total_size = 256,
15762 .page_size = 4 * 1024,
15763 .feature_bits = FEATURE_EITHER_RESET,
15764 .tested = TEST_UNTESTED,
15765 .probe = probe_jedec,
15766 .probe_timing = 10,
15767 .block_erasers =
15768 {
15769 {
15770 .eraseblocks = { {4 * 1024, 64} },
15771 .block_erase = erase_block_jedec,
15772 }, {
15773 .eraseblocks = { {64 * 1024, 4} },
15774 .block_erase = erase_sector_jedec,
15775 }, {
15776 .eraseblocks = { {256 * 1024, 1} },
15777 .block_erase = erase_chip_block_jedec,
15778 }
15779 },
15780 .printlock = printlock_w39l020,
15781 .write = write_jedec_1,
15782 .read = read_memmapped,
15783 .voltage = {3000, 3600},
15784 },
15785
15786 {
15787 .vendor = "Winbond",
Michael Karcher19e0aac2011-03-06 17:58:05 +000015788 .name = "W39L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015789 .bustype = BUS_PARALLEL,
Michael Karcher19e0aac2011-03-06 17:58:05 +000015790 .manufacture_id = WINBOND_ID,
15791 .model_id = WINBOND_W39L040,
15792 .total_size = 512,
15793 .page_size = 64 * 1024,
15794 .feature_bits = FEATURE_EITHER_RESET,
15795 .tested = TEST_OK_PR,
15796 .probe = probe_jedec,
15797 .probe_timing = 10,
15798 .block_erasers =
15799 {
15800 {
15801 .eraseblocks = { {4 * 1024, 128} },
15802 .block_erase = erase_block_jedec,
15803 }, {
15804 .eraseblocks = { {64 * 1024, 8} },
15805 .block_erase = erase_sector_jedec,
15806 }, {
15807 .eraseblocks = { {512 * 1024, 1} },
15808 .block_erase = erase_chip_block_jedec,
15809 }
15810 },
15811 .printlock = printlock_w39l040,
15812 .write = write_jedec_1,
15813 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000015814 .voltage = {3000, 3600},
Michael Karcher19e0aac2011-03-06 17:58:05 +000015815 },
15816
15817 {
15818 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015819 .name = "W39V040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015820 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015821 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015822 .model_id = WINBOND_W39V040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015823 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000015824 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015825 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000015826 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015827 .probe = probe_jedec,
Stefan Tauner716e0982011-07-25 20:38:52 +000015828 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015829 .block_erasers =
15830 {
15831 {
15832 .eraseblocks = { {64 * 1024, 8} },
15833 .block_erase = erase_sector_jedec,
15834 }, {
15835 .eraseblocks = { {512 * 1024, 1} },
15836 .block_erase = erase_chip_block_jedec,
15837 }
15838 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015839 .printlock = printlock_w39v040a,
Sean Nelson35727f72010-01-28 23:55:12 +000015840 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015841 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015842 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000015843 },
15844
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015845 {
15846 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015847 .name = "W39V040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015848 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015849 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015850 .model_id = WINBOND_W39V040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015851 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000015852 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015853 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000015854 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015855 .probe = probe_jedec,
Paul Menzel018d4822011-10-21 12:33:07 +000015856 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015857 .block_erasers =
15858 {
15859 {
15860 .eraseblocks = { {64 * 1024, 8} },
15861 .block_erase = erase_sector_jedec,
15862 }, {
15863 .eraseblocks = { {512 * 1024, 1} },
15864 .block_erase = erase_chip_block_jedec,
15865 }
15866 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015867 .printlock = printlock_w39v040b,
Sean Nelson35727f72010-01-28 23:55:12 +000015868 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015869 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015870 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000015871 },
15872
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015873 {
15874 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015875 .name = "W39V040C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015876 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015877 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015878 .model_id = WINBOND_W39V040C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015879 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000015880 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015881 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000015882 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +000015883 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015884 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015885 .block_erasers =
15886 {
15887 {
15888 .eraseblocks = { {64 * 1024, 8} },
15889 .block_erase = erase_sector_jedec,
15890 }, {
15891 .eraseblocks = { {512 * 1024, 1} },
15892 .block_erase = erase_chip_block_jedec,
15893 }
15894 },
Sean Nelson6e0b9122010-02-19 00:52:10 +000015895 .printlock = printlock_w39v040c,
Sean Nelson35727f72010-01-28 23:55:12 +000015896 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015897 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015898 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000015899 },
15900
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015901 {
15902 .vendor = "Winbond",
15903 .name = "W39V040FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015904 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015905 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015906 .model_id = WINBOND_W39V040FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015907 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000015908 .page_size = 64 * 1024,
Michael Karcherc9b63412010-05-30 16:55:18 +000015909 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner23e10b82016-01-23 16:16:49 +000015910 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015911 .probe = probe_jedec,
Antony Rheneus0fbba982011-05-26 14:28:51 +000015912 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000015913 .block_erasers =
15914 {
15915 {
15916 .eraseblocks = { {4 * 1024, 128} },
15917 .block_erase = erase_block_jedec,
15918 }, {
15919 .eraseblocks = { {64 * 1024, 8} },
15920 .block_erase = erase_sector_jedec,
15921 }, {
15922 .eraseblocks = { {512 * 1024, 1} },
15923 .block_erase = erase_chip_block_jedec,
15924 }
15925 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015926 .printlock = printlock_w39v040fa,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015927 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000015928 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015929 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015930 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000015931 },
15932
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015933 {
15934 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015935 .name = "W39V040FB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015936 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015937 .manufacture_id = WINBOND_ID,
15938 .model_id = WINBOND_W39V040B,
15939 .total_size = 512,
15940 .page_size = 64 * 1024,
15941 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner0be072c2016-03-13 15:16:30 +000015942 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015943 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000015944 .probe_timing = 10,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015945 .block_erasers =
15946 {
15947 {
15948 .eraseblocks = { {64 * 1024, 8} },
15949 .block_erase = erase_sector_jedec,
15950 }, {
15951 .eraseblocks = { {512 * 1024, 1} },
15952 .block_erase = erase_chip_block_jedec,
15953 }
15954 },
15955 .printlock = printlock_w39v040fb,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015956 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015957 .write = write_jedec_1,
15958 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000015959 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015960 },
15961
15962 {
15963 .vendor = "Winbond",
15964 .name = "W39V040FC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015965 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015966 .manufacture_id = WINBOND_ID,
15967 .model_id = WINBOND_W39V040C,
15968 .total_size = 512,
15969 .page_size = 64 * 1024,
15970 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +000015971 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015972 .probe = probe_jedec,
15973 .probe_timing = 10,
15974 .block_erasers =
15975 {
15976 {
15977 .eraseblocks = { {64 * 1024, 8} },
15978 .block_erase = erase_sector_jedec,
15979 }, {
15980 .eraseblocks = { {512 * 1024, 1} },
15981 .block_erase = erase_chip_block_jedec,
15982 }
15983 },
15984 .printlock = printlock_w39v040fc,
15985 .write = write_jedec_1,
15986 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000015987 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000015988 },
15989
15990 {
15991 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015992 .name = "W39V080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015993 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015994 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000015995 .model_id = WINBOND_W39V080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015996 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000015997 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015998 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +000015999 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016000 .probe = probe_jedec,
Paul Menzelac427b22012-02-16 21:07:07 +000016001 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016002 .block_erasers =
16003 {
16004 {
16005 .eraseblocks = { {64 * 1024, 16} },
16006 .block_erase = erase_sector_jedec,
16007 }, {
16008 .eraseblocks = { {1024 * 1024, 1} },
16009 .block_erase = erase_chip_block_jedec,
16010 }
16011 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016012 .printlock = printlock_w39v080a,
Sean Nelson35727f72010-01-28 23:55:12 +000016013 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016014 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016015 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000016016 },
16017
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016018 {
16019 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000016020 .name = "W49F002U/N",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016021 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016022 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016023 .model_id = WINBOND_W49F002U,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016024 .total_size = 256,
16025 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000016026 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000016027 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016028 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000016029 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016030 .block_erasers =
16031 {
16032 {
16033 .eraseblocks = {
16034 {128 * 1024, 1},
16035 {96 * 1024, 1},
16036 {8 * 1024, 2},
16037 {16 * 1024, 1},
16038 },
16039 .block_erase = erase_sector_jedec,
16040 }, {
16041 .eraseblocks = { {256 * 1024, 1} },
16042 .block_erase = erase_chip_block_jedec,
16043 }
16044 },
Sean Nelson35727f72010-01-28 23:55:12 +000016045 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016046 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016047 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000016048 },
16049
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016050 {
16051 .vendor = "Winbond",
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000016052 .name = "W49F020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016053 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000016054 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016055 .model_id = WINBOND_W49F020,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000016056 .total_size = 256,
16057 .page_size = 128,
16058 .feature_bits = FEATURE_EITHER_RESET,
16059 .tested = TEST_OK_PROBE,
16060 .probe = probe_jedec,
16061 .probe_timing = 10,
16062 .block_erasers =
16063 {
16064 {
16065 .eraseblocks = { {256 * 1024, 1} },
16066 .block_erase = erase_chip_block_jedec,
16067 }
16068 },
16069 .write = write_jedec_1,
16070 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016071 .voltage = {4500, 5500},
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000016072 },
16073
16074 {
16075 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016076 .name = "W49V002A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016077 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016078 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016079 .model_id = WINBOND_W49V002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016080 .total_size = 256,
16081 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000016082 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000016083 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016084 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000016085 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016086 .block_erasers =
16087 {
16088 {
16089 .eraseblocks = {
16090 {64 * 1024, 3},
16091 {32 * 1024, 1},
16092 {8 * 1024, 2},
16093 {16 * 1024, 1},
16094 },
16095 .block_erase = erase_sector_jedec,
16096 }, {
16097 .eraseblocks = { {256 * 1024, 1} },
16098 .block_erase = erase_chip_block_jedec,
16099 }
16100 },
Sean Nelson35727f72010-01-28 23:55:12 +000016101 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016102 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016103 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000016104 },
16105
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016106 {
16107 .vendor = "Winbond",
16108 .name = "W49V002FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016109 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016110 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016111 .model_id = WINBOND_W49V002FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016112 .total_size = 256,
16113 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000016114 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000016115 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016116 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000016117 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016118 .block_erasers =
16119 {
16120 {
16121 .eraseblocks = {
16122 {64 * 1024, 3},
16123 {32 * 1024, 1},
16124 {8 * 1024, 2},
16125 {16 * 1024, 1},
16126 },
16127 .block_erase = erase_sector_jedec,
16128 }, {
16129 .eraseblocks = { {256 * 1024, 1} },
16130 .block_erase = erase_chip_block_jedec,
16131 }
16132 },
Sean Nelson35727f72010-01-28 23:55:12 +000016133 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016134 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016135 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000016136 },
16137
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016138 {
16139 .vendor = "Winbond",
16140 .name = "W39V080FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016141 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016142 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016143 .model_id = WINBOND_W39V080FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016144 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000016145 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000016146 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner23e10b82016-01-23 16:16:49 +000016147 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000016148 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016149 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016150 .block_erasers =
16151 {
16152 {
Stefan Tauner6697f712014-08-06 15:09:15 +000016153 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016154 .block_erase = erase_sector_jedec,
16155 }, {
16156 .eraseblocks = { {1024 * 1024, 1} },
16157 .block_erase = erase_chip_block_jedec,
16158 }
16159 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016160 .printlock = printlock_w39v080fa,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000016161 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000016162 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016163 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000016164 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +000016165 },
16166
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016167 {
16168 .vendor = "Winbond",
16169 .name = "W39V080FA (dual mode)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016170 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016171 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016172 .model_id = WINBOND_W39V080FA_DM,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016173 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000016174 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000016175 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016176 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000016177 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016178 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016179 .block_erasers =
16180 {
16181 {
Stefan Tauner6697f712014-08-06 15:09:15 +000016182 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016183 .block_erase = erase_sector_jedec,
16184 }, {
16185 .eraseblocks = { {512 * 1024, 1} },
16186 .block_erase = erase_chip_block_jedec,
16187 }
16188 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000016189 .printlock = printlock_w39v080fa_dual,
Sean Nelson35727f72010-01-28 23:55:12 +000016190 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016191 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000016192 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +000016193 },
Stefan Taunerac1b4c82012-02-17 14:51:04 +000016194
16195 {
16196 .vendor = "Unknown",
16197 .name = "SFDP-capable chip",
16198 .bustype = BUS_SPI,
16199 .manufacture_id = GENERIC_MANUF_ID,
16200 .model_id = SFDP_DEVICE_ID,
16201 /* We present our own "report this" text hence we do not
16202 * want the default "This flash part has status UNTESTED..."
16203 * text to be printed. */
16204 .tested = TEST_OK_PREW,
16205 .probe = probe_spi_sfdp,
16206 .unlock = spi_disable_blockprotect, /* is this safe? */
16207 .read = spi_chip_read,
16208 /* FIXME: some vendor extensions define this */
Carl-Daniel Hailfinger1c6d2ff2012-08-27 00:44:42 +000016209 .voltage = {0},
Stefan Taunerac1b4c82012-02-17 14:51:04 +000016210 /* Everything below will be set by the probing function. */
16211 .write = NULL,
16212 .total_size = 0,
16213 .page_size = 0,
16214 .feature_bits = 0,
16215 .block_erasers = {},
16216 },
FENG yu ningff692fb2008-12-08 18:15:10 +000016217
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016218 {
Carl-Daniel Hailfinger532c7172011-11-04 21:35:26 +000016219 .vendor = "Programmer",
16220 .name = "Opaque flash chip",
16221 .bustype = BUS_PROG,
16222 .manufacture_id = PROGMANUF_ID,
16223 .model_id = PROGDEV_ID,
16224 .total_size = 0,
16225 .page_size = 256,
16226 /* probe is assumed to work, rest will be filled in by probe */
16227 .tested = TEST_OK_PROBE,
16228 .probe = probe_opaque,
16229 /* eraseblock sizes will be set by the probing function */
16230 .block_erasers =
16231 {
16232 {
16233 .block_erase = erase_opaque,
16234 }
16235 },
16236 .write = write_opaque,
16237 .read = read_opaque,
16238 },
16239
16240 {
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000016241 .vendor = "AMIC",
16242 .name = "unknown AMIC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016243 .bustype = BUS_SPI,
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000016244 .manufacture_id = AMIC_ID,
16245 .model_id = GENERIC_DEVICE_ID,
16246 .total_size = 0,
16247 .page_size = 256,
16248 .tested = TEST_BAD_PREW,
16249 .probe = probe_spi_rdid4,
16250 .probe_timing = TIMING_ZERO,
16251 .write = NULL,
16252 .read = NULL,
16253 },
16254
16255 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016256 .vendor = "Atmel",
16257 .name = "unknown Atmel SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016258 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016259 .manufacture_id = ATMEL_ID,
16260 .model_id = GENERIC_DEVICE_ID,
16261 .total_size = 0,
16262 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000016263 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016264 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000016265 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016266 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016267 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000016268 },
16269
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016270 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +000016271 .vendor = "Eon",
16272 .name = "unknown Eon SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016273 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016274 .manufacture_id = EON_ID_NOPREFIX,
16275 .model_id = GENERIC_DEVICE_ID,
16276 .total_size = 0,
16277 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000016278 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016279 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000016280 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016281 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016282 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000016283 },
16284
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016285 {
16286 .vendor = "Macronix",
16287 .name = "unknown Macronix SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016288 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000016289 .manufacture_id = MACRONIX_ID,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016290 .model_id = GENERIC_DEVICE_ID,
16291 .total_size = 0,
16292 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000016293 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016294 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000016295 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016296 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016297 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000016298 },
16299
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016300 {
16301 .vendor = "PMC",
16302 .name = "unknown PMC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016303 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016304 .manufacture_id = PMC_ID,
16305 .model_id = GENERIC_DEVICE_ID,
16306 .total_size = 0,
16307 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000016308 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016309 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000016310 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016311 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016312 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000016313 },
16314
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016315 {
16316 .vendor = "SST",
16317 .name = "unknown SST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016318 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016319 .manufacture_id = SST_ID,
16320 .model_id = GENERIC_DEVICE_ID,
16321 .total_size = 0,
16322 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000016323 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016324 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000016325 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016326 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016327 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000016328 },
16329
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016330 {
16331 .vendor = "ST",
16332 .name = "unknown ST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016333 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016334 .manufacture_id = ST_ID,
16335 .model_id = GENERIC_DEVICE_ID,
16336 .total_size = 0,
16337 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000016338 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016339 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000016340 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016341 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016342 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000016343 },
Uwe Hermannfc425e82008-03-16 02:06:25 +000016344
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000016345 {
Sean Nelson118e1d62009-11-24 02:08:11 +000016346 .vendor = "Sanyo",
16347 .name = "unknown Sanyo SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016348 .bustype = BUS_SPI,
Sean Nelson118e1d62009-11-24 02:08:11 +000016349 .manufacture_id = SANYO_ID,
16350 .model_id = GENERIC_DEVICE_ID,
16351 .total_size = 0,
16352 .page_size = 256,
16353 .tested = TEST_BAD_PREW,
16354 .probe = probe_spi_rdid,
16355 .probe_timing = TIMING_ZERO,
Sean Nelson118e1d62009-11-24 02:08:11 +000016356 .write = NULL,
16357 .read = NULL,
16358 },
16359
16360 {
Stefan Taunereb582572012-09-21 12:52:50 +000016361 .vendor = "Winbond",
16362 .name = "unknown Winbond (ex Nexcom) SPI chip",
16363 .bustype = BUS_SPI,
16364 .manufacture_id = WINBOND_NEX_ID,
16365 .model_id = GENERIC_DEVICE_ID,
16366 .total_size = 0,
16367 .page_size = 256,
16368 .tested = TEST_BAD_PREW,
16369 .probe = probe_spi_rdid,
16370 .probe_timing = TIMING_ZERO,
16371 .write = NULL,
16372 .read = NULL,
16373 },
16374
16375 {
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000016376 .vendor = "Generic",
16377 .name = "unknown SPI chip (RDID)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016378 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000016379 .manufacture_id = GENERIC_MANUF_ID,
16380 .model_id = GENERIC_DEVICE_ID,
16381 .total_size = 0,
16382 .page_size = 256,
16383 .tested = TEST_BAD_PREW,
16384 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000016385 .write = NULL,
16386 },
Stefan Tauneraf2db612011-12-02 21:48:17 +000016387
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000016388 {
16389 .vendor = "Generic",
16390 .name = "unknown SPI chip (REMS)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016391 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000016392 .manufacture_id = GENERIC_MANUF_ID,
16393 .model_id = GENERIC_DEVICE_ID,
16394 .total_size = 0,
16395 .page_size = 256,
16396 .tested = TEST_BAD_PREW,
16397 .probe = probe_spi_rems,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000016398 .write = NULL,
16399 },
16400
Stefan Tauner96658be2014-05-26 22:05:31 +000016401 {0}
Stephan Guilloux72cf5652009-04-21 01:46:07 +000016402};
Stefan Tauner96658be2014-05-26 22:05:31 +000016403
16404const unsigned int flashchips_size = ARRAY_SIZE(flashchips);