blob: 753a094ad64e0ad1a87aa325def5c11b7ed2a5af [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 *
32 * Please keep the list sorted by vendor name and chip name, so that
33 * the output of 'flashrom -L' is alphabetically sorted.
34 */
Ollie Lho184a4042005-11-26 21:55:36 +000035struct 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
FENG yu ningff692fb2008-12-08 18:15:10 +000057 */
58
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000059 {
60 .vendor = "AMD",
Uwe Hermanna8b37272009-06-19 15:54:39 +000061 .name = "Am29F010A/B",
62 .bustype = CHIP_BUSTYPE_PARALLEL,
63 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000064 .model_id = AMD_AM29F010B, /* Same as Am29F010A */
Uwe Hermanna8b37272009-06-19 15:54:39 +000065 .total_size = 128,
66 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000067 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000068 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +000069 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000070 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +000071 .block_erasers =
72 {
73 {
74 .eraseblocks = { {16 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +000075 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000076 }, {
77 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000078 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000079 },
80 },
Sean Nelson35727f72010-01-28 23:55:12 +000081 .write = write_jedec_1,
Uwe Hermanna8b37272009-06-19 15:54:39 +000082 .read = read_memmapped,
83 },
84
85 {
86 .vendor = "AMD",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000087 .name = "Am29F002(N)BB",
Urja Rannikko038a3122009-06-28 19:19:25 +000088 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000089 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000090 .model_id = AMD_AM29F002BB,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000091 .total_size = 256,
92 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000093 .feature_bits = FEATURE_SHORT_RESET | FEATURE_ADDR_2AA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000094 .tested = TEST_UNTESTED,
95 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000096 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +000097 .block_erasers =
98 {
99 {
100 .eraseblocks = {
101 {16 * 1024, 1},
102 {8 * 1024, 2},
103 {32 * 1024, 1},
104 {64 * 1024, 3},
105 },
106 .block_erase = erase_sector_jedec,
107 }, {
108 .eraseblocks = { {256 * 1024, 1} },
109 .block_erase = erase_chip_block_jedec,
110 },
111 },
Michael Karcher1c296ca2009-11-27 17:49:42 +0000112 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000113 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +0000114 },
115
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000116 {
117 .vendor = "AMD",
118 .name = "Am29F002(N)BT",
Urja Rannikko038a3122009-06-28 19:19:25 +0000119 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000120 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000121 .model_id = AMD_AM29F002BT,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000122 .total_size = 256,
123 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +0000124 .feature_bits = FEATURE_EITHER_RESET | FEATURE_ADDR_2AA,
125 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000126 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +0000127 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000128 .block_erasers =
129 {
130 {
131 .eraseblocks = {
132 {64 * 1024, 3},
133 {32 * 1024, 1},
134 {8 * 1024, 2},
135 {16 * 1024, 1},
136 },
137 .block_erase = erase_sector_jedec,
138 }, {
139 .eraseblocks = { {256 * 1024, 1} },
140 .block_erase = erase_chip_block_jedec,
141 },
142 },
Michael Karcher1c296ca2009-11-27 17:49:42 +0000143 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000144 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +0000145 },
146
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000147 {
148 .vendor = "AMD",
149 .name = "Am29F016D",
Urja Rannikko038a3122009-06-28 19:19:25 +0000150 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000151 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000152 .model_id = AMD_AM29F016D,
Sean Nelson72a9a022009-12-22 22:15:33 +0000153 .total_size = 2 * 1024,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000154 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000155 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000156 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +0000157 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000158 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000159 .block_erasers =
160 {
161 {
162 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson35727f72010-01-28 23:55:12 +0000163 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000164 }, {
165 .eraseblocks = { {2048 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000166 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000167 },
168 },
Sean Nelson35727f72010-01-28 23:55:12 +0000169 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000170 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +0000171 },
172
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000173 {
174 .vendor = "AMD",
175 .name = "Am29F040B",
Urja Rannikko038a3122009-06-28 19:19:25 +0000176 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000177 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000178 .model_id = AMD_AM29F040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000179 .total_size = 512,
180 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000181 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
182 .tested = TEST_UNTESTED,
183 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000184 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000185 .block_erasers =
186 {
187 {
188 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +0000189 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000190 }, {
191 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000192 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000193 },
194 },
Sean Nelson35727f72010-01-28 23:55:12 +0000195 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000196 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +0000197 },
198
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000199 {
200 .vendor = "AMD",
Peter Stuge8440cc02009-01-25 23:55:12 +0000201 .name = "Am29F080B",
Urja Rannikko038a3122009-06-28 19:19:25 +0000202 .bustype = CHIP_BUSTYPE_PARALLEL,
Mateusz Murawski5bae4382009-06-02 00:38:14 +0000203 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000204 .model_id = AMD_AM29F080B,
Peter Stuge8440cc02009-01-25 23:55:12 +0000205 .total_size = 1024,
206 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000207 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +0000208 .tested = TEST_UNTESTED,
209 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +0000210 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000211 .block_erasers =
212 {
213 {
214 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson35727f72010-01-28 23:55:12 +0000215 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000216 }, {
217 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000218 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000219 },
220 },
Sean Nelson35727f72010-01-28 23:55:12 +0000221 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000222 .read = read_memmapped,
Peter Stuge8440cc02009-01-25 23:55:12 +0000223 },
224
225 {
226 .vendor = "AMD",
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000227 .name = "Am29LV001BB",
228 .bustype = CHIP_BUSTYPE_PARALLEL,
229 .manufacture_id = AMD_ID,
230 .model_id = AMD_AM29LV001BB,
231 .total_size = 128,
232 .page_size = 64 * 1024, /* unused */
233 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
234 .tested = TEST_OK_PREW,
235 .probe = probe_jedec,
236 .probe_timing = TIMING_ZERO,
237 .block_erasers =
238 {
239 {
240 .eraseblocks = {
241 {8 * 1024, 1},
242 {4 * 1024, 2},
243 {16 * 1024, 7},
244 },
245 .block_erase = erase_sector_jedec,
246 }, {
247 .eraseblocks = { {128 * 1024, 1} },
248 .block_erase = erase_chip_block_jedec,
249 },
250 },
251 .write = write_jedec_1,
252 .read = read_memmapped,
253 },
254
255 {
256 .vendor = "AMD",
257 .name = "Am29LV001BT",
258 .bustype = CHIP_BUSTYPE_PARALLEL,
259 .manufacture_id = AMD_ID,
260 .model_id = AMD_AM29LV001BT,
261 .total_size = 128,
262 .page_size = 64 * 1024, /* unused */
263 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
264 .tested = TEST_UNTESTED,
265 .probe = probe_jedec,
266 .probe_timing = TIMING_ZERO,
267 .block_erasers =
268 {
269 {
270 .eraseblocks = {
271 {16 * 1024, 7},
272 {4 * 1024, 2},
273 {8 * 1024, 1},
274 },
275 .block_erase = erase_sector_jedec,
276 }, {
277 .eraseblocks = { {128 * 1024, 1} },
278 .block_erase = erase_chip_block_jedec,
279 },
280 },
281 .write = write_jedec_1,
282 .read = read_memmapped,
283 },
284
285 {
286 .vendor = "AMD",
287 .name = "Am29LV002BB",
288 .bustype = CHIP_BUSTYPE_PARALLEL,
289 .manufacture_id = AMD_ID,
290 .model_id = AMD_AM29LV002BB,
291 .total_size = 256,
292 .page_size = 64 * 1024, /* unused */
293 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
294 .tested = TEST_UNTESTED,
295 .probe = probe_jedec,
296 .probe_timing = TIMING_ZERO,
297 .block_erasers =
298 {
299 {
300 .eraseblocks = {
301 {16 * 1024, 1},
302 {8 * 1024, 2},
303 {32 * 1024, 1},
304 {64 * 1024, 3},
305 },
306 .block_erase = erase_sector_jedec,
307 }, {
308 .eraseblocks = { {256 * 1024, 1} },
309 .block_erase = erase_chip_block_jedec,
310 },
311 },
312 .write = write_jedec_1,
313 .read = read_memmapped,
314 },
315
316 {
317 .vendor = "AMD",
318 .name = "Am29LV002BT",
319 .bustype = CHIP_BUSTYPE_PARALLEL,
320 .manufacture_id = AMD_ID,
321 .model_id = AMD_AM29LV002BT,
322 .total_size = 256,
323 .page_size = 64 * 1024, /* unused */
324 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
325 .tested = TEST_UNTESTED,
326 .probe = probe_jedec,
327 .probe_timing = TIMING_ZERO,
328 .block_erasers =
329 {
330 {
331 .eraseblocks = {
332 {64 * 1024, 3},
333 {32 * 1024, 1},
334 {8 * 1024, 2},
335 {16 * 1024, 1},
336 },
337 .block_erase = erase_sector_jedec,
338 }, {
339 .eraseblocks = { {256 * 1024, 1} },
340 .block_erase = erase_chip_block_jedec,
341 },
342 },
343 .write = write_jedec_1,
344 .read = read_memmapped,
345 },
346
347 {
348 .vendor = "AMD",
349 .name = "Am29LV004BB",
350 .bustype = CHIP_BUSTYPE_PARALLEL,
351 .manufacture_id = AMD_ID,
352 .model_id = AMD_AM29LV004BB,
353 .total_size = 512,
354 .page_size = 64 * 1024, /* unused */
355 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
356 .tested = TEST_UNTESTED,
357 .probe = probe_jedec,
358 .probe_timing = TIMING_ZERO,
359 .block_erasers =
360 {
361 {
362 .eraseblocks = {
363 {16 * 1024, 1},
364 {8 * 1024, 2},
365 {32 * 1024, 1},
366 {64 * 1024, 7},
367 },
368 .block_erase = erase_sector_jedec,
369 }, {
370 .eraseblocks = { {512 * 1024, 1} },
371 .block_erase = erase_chip_block_jedec,
372 },
373 },
374 .write = write_jedec_1,
375 .read = read_memmapped,
376 },
377
378 {
379 .vendor = "AMD",
380 .name = "Am29LV004BT",
381 .bustype = CHIP_BUSTYPE_PARALLEL,
382 .manufacture_id = AMD_ID,
383 .model_id = AMD_AM29LV004BT,
384 .total_size = 512,
385 .page_size = 64 * 1024, /* unused */
386 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
387 .tested = TEST_UNTESTED,
388 .probe = probe_jedec,
389 .probe_timing = TIMING_ZERO,
390 .block_erasers =
391 {
392 {
393 .eraseblocks = {
394 {64 * 1024, 7},
395 {32 * 1024, 1},
396 {8 * 1024, 2},
397 {16 * 1024, 1},
398 },
399 .block_erase = erase_sector_jedec,
400 }, {
401 .eraseblocks = { {512 * 1024, 1} },
402 .block_erase = erase_chip_block_jedec,
403 },
404 },
405 .write = write_jedec_1,
406 .read = read_memmapped,
407 },
408
409 {
410 .vendor = "AMD",
411 .name = "Am29LV008BB",
412 .bustype = CHIP_BUSTYPE_PARALLEL,
413 .manufacture_id = AMD_ID,
414 .model_id = AMD_AM29LV008BB,
415 .total_size = 1024,
416 .page_size = 64 * 1024, /* unused */
417 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
418 .tested = TEST_UNTESTED,
419 .probe = probe_jedec,
420 .probe_timing = TIMING_ZERO,
421 .block_erasers =
422 {
423 {
424 .eraseblocks = {
425 {16 * 1024, 1},
426 {8 * 1024, 2},
427 {32 * 1024, 1},
428 {64 * 1024, 15},
429 },
430 .block_erase = erase_sector_jedec,
431 }, {
432 .eraseblocks = { {1024 * 1024, 1} },
433 .block_erase = erase_chip_block_jedec,
434 },
435 },
436 .write = write_jedec_1,
437 .read = read_memmapped,
438 },
439
440 {
441 .vendor = "AMD",
442 .name = "Am29LV008BT",
443 .bustype = CHIP_BUSTYPE_PARALLEL,
444 .manufacture_id = AMD_ID,
445 .model_id = AMD_AM29LV008BT,
446 .total_size = 1024,
447 .page_size = 64 * 1024, /* unused */
448 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
449 .tested = TEST_UNTESTED,
450 .probe = probe_jedec,
451 .probe_timing = TIMING_ZERO,
452 .block_erasers =
453 {
454 {
455 .eraseblocks = {
456 {64 * 1024, 15},
457 {32 * 1024, 1},
458 {8 * 1024, 2},
459 {16 * 1024, 1},
460 },
461 .block_erase = erase_sector_jedec,
462 }, {
463 .eraseblocks = { {1024 * 1024, 1} },
464 .block_erase = erase_chip_block_jedec,
465 },
466 },
467 .write = write_jedec_1,
468 .read = read_memmapped,
469 },
470
471 {
472 .vendor = "AMD",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000473 .name = "Am29LV040B",
Urja Rannikko038a3122009-06-28 19:19:25 +0000474 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000475 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000476 .model_id = AMD_AM29LV040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000477 .total_size = 512,
478 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000479 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000480 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +0000481 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000482 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000483 .block_erasers =
484 {
485 {
486 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +0000487 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000488 }, {
489 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000490 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000491 },
492 },
Sean Nelson35727f72010-01-28 23:55:12 +0000493 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000494 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +0000495 },
496
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000497 {
Peter Stuge8440cc02009-01-25 23:55:12 +0000498 .vendor = "AMD",
499 .name = "Am29LV081B",
Urja Rannikko038a3122009-06-28 19:19:25 +0000500 .bustype = CHIP_BUSTYPE_PARALLEL,
Mateusz Murawski5bae4382009-06-02 00:38:14 +0000501 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000502 .model_id = AMD_AM29LV080B,
Peter Stuge8440cc02009-01-25 23:55:12 +0000503 .total_size = 1024,
504 .page_size = 64 * 1024,
David Borg204f4652010-12-04 03:26:40 +0000505 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, /* datasheet specifies address as don't care */
Peter Stuge8440cc02009-01-25 23:55:12 +0000506 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +0000507 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000508 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000509 .block_erasers =
510 {
511 {
512 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson35727f72010-01-28 23:55:12 +0000513 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000514 }, {
515 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000516 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000517 },
518 },
Sean Nelson35727f72010-01-28 23:55:12 +0000519 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000520 .read = read_memmapped,
Peter Stuge8440cc02009-01-25 23:55:12 +0000521 },
522
523 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000524 .vendor = "AMIC",
525 .name = "A25L05PT",
526 .bustype = CHIP_BUSTYPE_SPI,
527 .manufacture_id = AMIC_ID,
528 .model_id = AMIC_A25L05PT,
529 .total_size = 64,
530 .page_size = 256,
531 .tested = TEST_UNTESTED,
532 .probe = probe_spi_rdid4,
533 .probe_timing = TIMING_ZERO,
534 .block_erasers =
535 {
536 {
537 .eraseblocks = {
538 {32 * 1024, 1},
539 {16 * 1024, 1},
540 {8 * 1024, 1},
541 {4 * 1024, 2},
542 },
543 .block_erase = spi_block_erase_d8,
544 }, {
545 .eraseblocks = { {64 * 1024, 1} },
546 .block_erase = spi_block_erase_c7,
547 }
548 },
549 .unlock = spi_disable_blockprotect,
550 .write = spi_chip_write_256,
551 .read = spi_chip_read,
552 },
553
554 {
555 .vendor = "AMIC",
556 .name = "A25L05PU",
557 .bustype = CHIP_BUSTYPE_SPI,
558 .manufacture_id = AMIC_ID,
559 .model_id = AMIC_A25L05PU,
560 .total_size = 64,
561 .page_size = 256,
562 .tested = TEST_UNTESTED,
563 .probe = probe_spi_rdid4,
564 .probe_timing = TIMING_ZERO,
565 .block_erasers =
566 {
567 {
568 .eraseblocks = {
569 {4 * 1024, 2},
570 {8 * 1024, 1},
571 {16 * 1024, 1},
572 {32 * 1024, 1},
573 },
574 .block_erase = spi_block_erase_d8,
575 }, {
576 .eraseblocks = { {64 * 1024, 1} },
577 .block_erase = spi_block_erase_c7,
578 }
579 },
580 .unlock = spi_disable_blockprotect,
581 .write = spi_chip_write_256,
582 .read = spi_chip_read,
583 },
584
585 {
586 .vendor = "AMIC",
587 .name = "A25L10PT",
588 .bustype = CHIP_BUSTYPE_SPI,
589 .manufacture_id = AMIC_ID,
590 .model_id = AMIC_A25L10PT,
591 .total_size = 128,
592 .page_size = 256,
593 .tested = TEST_UNTESTED,
594 .probe = probe_spi_rdid4,
595 .probe_timing = TIMING_ZERO,
596 .block_erasers =
597 {
598 {
599 .eraseblocks = {
600 {64 * 1024, 1},
601 {32 * 1024, 1},
602 {16 * 1024, 1},
603 {8 * 1024, 1},
604 {4 * 1024, 2},
605 },
606 .block_erase = spi_block_erase_d8,
607 }, {
608 .eraseblocks = { {128 * 1024, 1} },
609 .block_erase = spi_block_erase_c7,
610 }
611 },
612 .unlock = spi_disable_blockprotect,
613 .write = spi_chip_write_256,
614 .read = spi_chip_read,
615 },
616
617 {
618 .vendor = "AMIC",
619 .name = "A25L10PU",
620 .bustype = CHIP_BUSTYPE_SPI,
621 .manufacture_id = AMIC_ID,
622 .model_id = AMIC_A25L10PU,
623 .total_size = 128,
624 .page_size = 256,
625 .tested = TEST_UNTESTED,
626 .probe = probe_spi_rdid4,
627 .probe_timing = TIMING_ZERO,
628 .block_erasers =
629 {
630 {
631 .eraseblocks = {
632 {4 * 1024, 2},
633 {8 * 1024, 1},
634 {16 * 1024, 1},
635 {32 * 1024, 1},
636 {64 * 1024, 1},
637 },
638 .block_erase = spi_block_erase_d8,
639 }, {
640 .eraseblocks = { {128 * 1024, 1} },
641 .block_erase = spi_block_erase_c7,
642 }
643 },
644 .unlock = spi_disable_blockprotect,
645 .write = spi_chip_write_256,
646 .read = spi_chip_read,
647 },
648
649 {
650 .vendor = "AMIC",
651 .name = "A25L20PT",
652 .bustype = CHIP_BUSTYPE_SPI,
653 .manufacture_id = AMIC_ID,
654 .model_id = AMIC_A25L20PT,
655 .total_size = 256,
656 .page_size = 256,
657 .tested = TEST_UNTESTED,
658 .probe = probe_spi_rdid4,
659 .probe_timing = TIMING_ZERO,
660 .block_erasers =
661 {
662 {
663 .eraseblocks = {
664 {64 * 1024, 3},
665 {32 * 1024, 1},
666 {16 * 1024, 1},
667 {8 * 1024, 1},
668 {4 * 1024, 2},
669 },
670 .block_erase = spi_block_erase_d8,
671 }, {
672 .eraseblocks = { {256 * 1024, 1} },
673 .block_erase = spi_block_erase_c7,
674 }
675 },
676 .unlock = spi_disable_blockprotect,
677 .write = spi_chip_write_256,
678 .read = spi_chip_read,
679 },
680
681 {
682 .vendor = "AMIC",
683 .name = "A25L20PU",
684 .bustype = CHIP_BUSTYPE_SPI,
685 .manufacture_id = AMIC_ID,
686 .model_id = AMIC_A25L20PU,
687 .total_size = 256,
688 .page_size = 256,
689 .tested = TEST_UNTESTED,
690 .probe = probe_spi_rdid4,
691 .probe_timing = TIMING_ZERO,
692 .block_erasers =
693 {
694 {
695 .eraseblocks = {
696 {4 * 1024, 2},
697 {8 * 1024, 1},
698 {16 * 1024, 1},
699 {32 * 1024, 1},
700 {64 * 1024, 3},
701 },
702 .block_erase = spi_block_erase_d8,
703 }, {
704 .eraseblocks = { {256 * 1024, 1} },
705 .block_erase = spi_block_erase_c7,
706 }
707 },
708 .unlock = spi_disable_blockprotect,
709 .write = spi_chip_write_256,
710 .read = spi_chip_read,
711 },
712
713 /* The A25L40P{T,U} chips are distinguished by their
714 * erase block layouts, but without any distinction in RDID.
715 * This inexplicable quirk was verified by Rudolf Marek
716 * and discussed on the flashrom mailing list on 2010-07-12.
717 */
718 {
719 .vendor = "AMIC",
720 .name = "A25L40PT",
721 .bustype = CHIP_BUSTYPE_SPI,
722 .manufacture_id = AMIC_ID,
723 .model_id = AMIC_A25L40PT,
724 .total_size = 512,
725 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000726 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000727 .probe = probe_spi_rdid4,
728 .probe_timing = TIMING_ZERO,
729 .block_erasers =
730 {
731 {
732 .eraseblocks = {
733 {64 * 1024, 7},
734 {32 * 1024, 1},
735 {16 * 1024, 1},
736 {8 * 1024, 1},
737 {4 * 1024, 2},
738 },
739 .block_erase = spi_block_erase_d8,
740 }, {
741 .eraseblocks = { {512 * 1024, 1} },
742 .block_erase = spi_block_erase_c7,
743 }
744 },
745 .unlock = spi_disable_blockprotect,
746 .write = spi_chip_write_256,
747 .read = spi_chip_read,
748 },
749
750 {
751 .vendor = "AMIC",
752 .name = "A25L40PU",
753 .bustype = CHIP_BUSTYPE_SPI,
754 .manufacture_id = AMIC_ID,
755 .model_id = AMIC_A25L40PU,
756 .total_size = 512,
757 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000758 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000759 .probe = probe_spi_rdid4,
760 .probe_timing = TIMING_ZERO,
761 .block_erasers =
762 {
763 {
764 .eraseblocks = {
765 {4 * 1024, 2},
766 {8 * 1024, 1},
767 {16 * 1024, 1},
768 {32 * 1024, 1},
769 {64 * 1024, 7},
770 },
771 .block_erase = spi_block_erase_d8,
772 }, {
773 .eraseblocks = { {512 * 1024, 1} },
774 .block_erase = spi_block_erase_c7,
775 }
776 },
777 .unlock = spi_disable_blockprotect,
778 .write = spi_chip_write_256,
779 .read = spi_chip_read,
780 },
781
782 {
783 .vendor = "AMIC",
784 .name = "A25L80P",
785 .bustype = CHIP_BUSTYPE_SPI,
786 .manufacture_id = AMIC_ID,
787 .model_id = AMIC_A25L80P,
788 .total_size = 1024,
789 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000790 .tested = TEST_OK_PRE,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000791 .probe = probe_spi_rdid4,
792 .probe_timing = TIMING_ZERO,
793 .block_erasers =
794 {
795 {
796 .eraseblocks = {
797 {4 * 1024, 2},
798 {8 * 1024, 1},
799 {16 * 1024, 1},
800 {32 * 1024, 1},
801 {64 * 1024, 15},
802 },
803 .block_erase = spi_block_erase_d8,
804 }, {
805 .eraseblocks = { {1024 * 1024, 1} },
806 .block_erase = spi_block_erase_c7,
807 }
808 },
809 .unlock = spi_disable_blockprotect,
810 .write = spi_chip_write_256,
811 .read = spi_chip_read,
812 },
813
814 {
815 .vendor = "AMIC",
816 .name = "A25L16PT",
817 .bustype = CHIP_BUSTYPE_SPI,
818 .manufacture_id = AMIC_ID,
819 .model_id = AMIC_A25L16PT,
820 .total_size = 2048,
821 .page_size = 256,
822 .tested = TEST_UNTESTED,
823 .probe = probe_spi_rdid4,
824 .probe_timing = TIMING_ZERO,
825 .block_erasers =
826 {
827 {
828 .eraseblocks = {
829 {64 * 1024, 31},
830 {32 * 1024, 1},
831 {16 * 1024, 1},
832 {8 * 1024, 1},
833 {4 * 1024, 2},
834 },
835 .block_erase = spi_block_erase_d8,
836 }, {
837 .eraseblocks = { {2048 * 1024, 1} },
838 .block_erase = spi_block_erase_60,
839 }, {
840 .eraseblocks = { {2048 * 1024, 1} },
841 .block_erase = spi_block_erase_c7,
842 }
843 },
844 .unlock = spi_disable_blockprotect,
845 .write = spi_chip_write_256,
846 .read = spi_chip_read,
847 },
848
849 {
850 .vendor = "AMIC",
851 .name = "A25L16PU",
852 .bustype = CHIP_BUSTYPE_SPI,
853 .manufacture_id = AMIC_ID,
854 .model_id = AMIC_A25L16PU,
855 .total_size = 2048,
856 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000857 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000858 .probe = probe_spi_rdid4,
859 .probe_timing = TIMING_ZERO,
860 .block_erasers =
861 {
862 {
863 .eraseblocks = {
864 {4 * 1024, 2},
865 {8 * 1024, 1},
866 {16 * 1024, 1},
867 {32 * 1024, 1},
868 {64 * 1024, 31},
869 },
870 .block_erase = spi_block_erase_d8,
871 }, {
872 .eraseblocks = { {2048 * 1024, 1} },
873 .block_erase = spi_block_erase_60,
874 }, {
875 .eraseblocks = { {2048 * 1024, 1} },
876 .block_erase = spi_block_erase_c7,
877 }
878 },
879 .unlock = spi_disable_blockprotect,
880 .write = spi_chip_write_256,
881 .read = spi_chip_read,
882 },
883
884 {
885 .vendor = "AMIC",
Dan Lenski11617122010-07-29 15:00:40 +0000886 .name = "A25L512",
887 .bustype = CHIP_BUSTYPE_SPI,
888 .manufacture_id = AMIC_ID_NOPREFIX,
889 .model_id = AMIC_A25L512,
890 .total_size = 64,
891 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +0000892 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +0000893 .tested = TEST_UNTESTED,
894 .probe = probe_spi_rdid,
895 .probe_timing = TIMING_ZERO,
896 .block_erasers =
897 {
898 {
899 .eraseblocks = { { 4 * 1024, 16 } },
900 .block_erase = spi_block_erase_20,
901 }, {
902 .eraseblocks = { { 64 * 1024, 1 } },
903 .block_erase = spi_block_erase_d8,
904 }, {
905 .eraseblocks = { { 64 * 1024, 1 } },
906 .block_erase = spi_block_erase_c7,
907 }
908 },
909 .unlock = spi_disable_blockprotect,
910 .write = spi_chip_write_256,
911 .read = spi_chip_read,
912 },
913
914 {
915 .vendor = "AMIC",
916 .name = "A25L010",
917 .bustype = CHIP_BUSTYPE_SPI,
918 .manufacture_id = AMIC_ID_NOPREFIX,
919 .model_id = AMIC_A25L010,
920 .total_size = 128,
921 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +0000922 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +0000923 .tested = TEST_UNTESTED,
924 .probe = probe_spi_rdid,
925 .probe_timing = TIMING_ZERO,
926 .block_erasers =
927 {
928 {
929 .eraseblocks = { { 4 * 1024, 32 } },
930 .block_erase = spi_block_erase_20,
931 }, {
932 .eraseblocks = { { 64 * 1024, 2 } },
933 .block_erase = spi_block_erase_d8,
934 }, {
935 .eraseblocks = { { 128 * 1024, 1 } },
936 .block_erase = spi_block_erase_c7,
937 }
938 },
939 .unlock = spi_disable_blockprotect,
940 .write = spi_chip_write_256,
941 .read = spi_chip_read,
942 },
943
944 {
945 .vendor = "AMIC",
946 .name = "A25L020",
947 .bustype = CHIP_BUSTYPE_SPI,
948 .manufacture_id = AMIC_ID_NOPREFIX,
949 .model_id = AMIC_A25L020,
950 .total_size = 256,
951 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +0000952 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +0000953 .tested = TEST_UNTESTED,
954 .probe = probe_spi_rdid,
955 .probe_timing = TIMING_ZERO,
956 .block_erasers =
957 {
958 {
959 .eraseblocks = { { 4 * 1024, 64 } },
960 .block_erase = spi_block_erase_20,
961 }, {
962 .eraseblocks = { { 64 * 1024, 4 } },
963 .block_erase = spi_block_erase_d8,
964 }, {
965 .eraseblocks = { { 256 * 1024, 1 } },
966 .block_erase = spi_block_erase_c7,
967 }
968 },
969 .unlock = spi_disable_blockprotect,
970 .write = spi_chip_write_256,
971 .read = spi_chip_read,
972 },
973
974 {
975 .vendor = "AMIC",
976 .name = "A25L040",
977 .bustype = CHIP_BUSTYPE_SPI,
978 .manufacture_id = AMIC_ID_NOPREFIX,
979 .model_id = AMIC_A25L040,
980 .total_size = 512,
981 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +0000982 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +0000983 .tested = TEST_UNTESTED,
984 .probe = probe_spi_rdid,
985 .probe_timing = TIMING_ZERO,
986 .block_erasers =
987 {
988 {
989 .eraseblocks = { { 4 * 1024, 128 } },
990 .block_erase = spi_block_erase_20,
991 }, {
992 .eraseblocks = { { 64 * 1024, 8 } },
993 .block_erase = spi_block_erase_d8,
994 }, {
995 .eraseblocks = { { 512 * 1024, 1 } },
996 .block_erase = spi_block_erase_c7,
997 }
998 },
999 .unlock = spi_disable_blockprotect,
1000 .write = spi_chip_write_256,
1001 .read = spi_chip_read,
1002 },
1003
1004 {
1005 .vendor = "AMIC",
1006 .name = "A25L080",
1007 .bustype = CHIP_BUSTYPE_SPI,
1008 .manufacture_id = AMIC_ID_NOPREFIX,
1009 .model_id = AMIC_A25L080,
1010 .total_size = 1024,
1011 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001012 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001013 .tested = TEST_UNTESTED,
1014 .probe = probe_spi_rdid,
1015 .probe_timing = TIMING_ZERO,
1016 .block_erasers =
1017 {
1018 {
1019 .eraseblocks = { { 4 * 1024, 256 } },
1020 .block_erase = spi_block_erase_20,
1021 }, {
1022 .eraseblocks = { { 64 * 1024, 16 } },
1023 .block_erase = spi_block_erase_d8,
1024 }, {
1025 .eraseblocks = { { 1024 * 1024, 1 } },
1026 .block_erase = spi_block_erase_c7,
1027 }
1028 },
1029 .unlock = spi_disable_blockprotect,
1030 .write = spi_chip_write_256,
1031 .read = spi_chip_read,
1032 },
1033
1034 {
1035 .vendor = "AMIC",
1036 .name = "A25L016",
1037 .bustype = CHIP_BUSTYPE_SPI,
1038 .manufacture_id = AMIC_ID_NOPREFIX,
1039 .model_id = AMIC_A25L016,
1040 .total_size = 2048,
1041 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001042 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001043 .tested = TEST_UNTESTED,
1044 .probe = probe_spi_rdid,
1045 .probe_timing = TIMING_ZERO,
1046 .block_erasers =
1047 {
1048 {
1049 .eraseblocks = { { 4 * 1024, 512 } },
1050 .block_erase = spi_block_erase_20,
1051 }, {
1052 .eraseblocks = { { 64 * 1024, 32 } },
1053 .block_erase = spi_block_erase_d8,
1054 }, {
1055 .eraseblocks = { { 2048 * 1024, 1 } },
1056 .block_erase = spi_block_erase_c7,
1057 }
1058 },
1059 .unlock = spi_disable_blockprotect,
1060 .write = spi_chip_write_256,
1061 .read = spi_chip_read,
1062 },
1063
1064 {
1065 .vendor = "AMIC",
1066 .name = "A25L032",
1067 .bustype = CHIP_BUSTYPE_SPI,
1068 .manufacture_id = AMIC_ID_NOPREFIX,
1069 .model_id = AMIC_A25L032,
1070 .total_size = 4096,
1071 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001072 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001073 .tested = TEST_UNTESTED,
1074 .probe = probe_spi_rdid,
1075 .probe_timing = TIMING_ZERO,
1076 .block_erasers =
1077 {
1078 {
1079 .eraseblocks = { { 4 * 1024, 1024 } },
1080 .block_erase = spi_block_erase_20,
1081 }, {
1082 .eraseblocks = { { 64 * 1024, 64 } },
1083 .block_erase = spi_block_erase_52,
1084 }, {
1085 .eraseblocks = { { 64 * 1024, 64 } },
1086 .block_erase = spi_block_erase_d8,
1087 }, {
1088 .eraseblocks = { { 4096 * 1024, 1 } },
1089 .block_erase = spi_block_erase_60,
1090 }, {
1091 .eraseblocks = { { 4096 * 1024, 1 } },
1092 .block_erase = spi_block_erase_c7,
1093 }
1094 },
1095 .unlock = NULL, /* Two status reg bytes (read with 0x35 and 0x05) */
1096 .write = spi_chip_write_256,
1097 .read = spi_chip_read,
1098 },
1099
1100 {
1101 .vendor = "AMIC",
1102 .name = "A25LQ032",
1103 .bustype = CHIP_BUSTYPE_SPI,
1104 .manufacture_id = AMIC_ID_NOPREFIX,
1105 .model_id = AMIC_A25LQ032,
1106 .total_size = 4096,
1107 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001108 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001109 .tested = TEST_UNTESTED,
1110 .probe = probe_spi_rdid,
1111 .probe_timing = TIMING_ZERO,
1112 .block_erasers =
1113 {
1114 {
1115 .eraseblocks = { { 4 * 1024, 1024 } },
1116 .block_erase = spi_block_erase_20,
1117 }, {
1118 .eraseblocks = { { 64 * 1024, 64 } },
1119 .block_erase = spi_block_erase_52,
1120 }, {
1121 .eraseblocks = { { 64 * 1024, 64 } },
1122 .block_erase = spi_block_erase_d8,
1123 }, {
1124 .eraseblocks = { { 4096 * 1024, 1 } },
1125 .block_erase = spi_block_erase_60,
1126 }, {
1127 .eraseblocks = { { 4096 * 1024, 1 } },
1128 .block_erase = spi_block_erase_c7,
1129 }
1130 },
1131 .unlock = NULL, /* Two status reg bytes (read with 0x35 and 0x05) */
1132 .write = spi_chip_write_256,
1133 .read = spi_chip_read,
1134 },
1135
1136 {
1137 .vendor = "AMIC",
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001138 .name = "A29002B",
1139 .bustype = CHIP_BUSTYPE_PARALLEL,
1140 .manufacture_id = AMIC_ID_NOPREFIX,
1141 .model_id = AMIC_A29002B,
1142 .total_size = 256,
1143 .page_size = 64 * 1024,
1144 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
1145 .tested = TEST_UNTESTED,
1146 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001147 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001148 .block_erasers =
1149 {
1150 {
1151 .eraseblocks = {
1152 {16 * 1024, 1},
1153 {8 * 1024, 2},
1154 {32 * 1024, 1},
1155 {64 * 1024, 3},
1156 },
1157 .block_erase = erase_sector_jedec,
1158 }, {
1159 .eraseblocks = { {256 * 1024, 1} },
1160 .block_erase = erase_chip_block_jedec,
1161 },
1162 },
1163 .write = write_jedec_1,
1164 .read = read_memmapped,
1165 },
1166
1167 {
1168 .vendor = "AMIC",
1169 .name = "A29002T",
1170 .bustype = CHIP_BUSTYPE_PARALLEL,
1171 .manufacture_id = AMIC_ID_NOPREFIX,
1172 .model_id = AMIC_A29002T,
1173 .total_size = 256,
1174 .page_size = 64 * 1024,
1175 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00001176 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001177 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001178 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001179 .block_erasers =
1180 {
1181 {
1182 .eraseblocks = {
1183 {64 * 1024, 3},
1184 {32 * 1024, 1},
1185 {8 * 1024, 2},
1186 {16 * 1024, 1},
1187 },
1188 .block_erase = erase_sector_jedec,
1189 }, {
1190 .eraseblocks = { {256 * 1024, 1} },
1191 .block_erase = erase_chip_block_jedec,
1192 },
1193 },
1194 .write = write_jedec_1,
1195 .read = read_memmapped,
1196 },
1197
1198 {
1199 .vendor = "AMIC",
1200 .name = "A29040B",
1201 .bustype = CHIP_BUSTYPE_PARALLEL,
1202 .manufacture_id = AMIC_ID_NOPREFIX,
1203 .model_id = AMIC_A29040B,
1204 .total_size = 512,
1205 .page_size = 64 * 1024,
1206 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
1207 .tested = TEST_UNTESTED,
1208 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001209 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001210 .block_erasers =
1211 {
1212 {
1213 .eraseblocks = { {64 * 1024, 8} },
1214 .block_erase = erase_sector_jedec,
1215 }, {
1216 .eraseblocks = { {512 * 1024, 1} },
1217 .block_erase = erase_chip_block_jedec,
1218 },
1219 },
1220 .write = write_jedec_1,
1221 .read = read_memmapped,
1222 },
1223
1224 {
1225 .vendor = "AMIC",
1226 .name = "A49LF040A",
1227 .bustype = CHIP_BUSTYPE_LPC,
1228 .manufacture_id = AMIC_ID_NOPREFIX,
1229 .model_id = AMIC_A49LF040A,
1230 .total_size = 512,
1231 .page_size = 64 * 1024,
1232 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00001233 .tested = TEST_OK_PRE,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001234 .probe = probe_jedec,
1235 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
1236 .block_erasers =
1237 {
1238 {
1239 .eraseblocks = { {64 * 1024, 8} },
1240 .block_erase = erase_block_jedec,
1241 }, {
1242 .eraseblocks = { {512 * 1024, 1} },
1243 .block_erase = erase_chip_block_jedec,
1244 }
1245 },
1246 .unlock = unlock_49fl00x,
1247 .write = write_jedec_1,
1248 .read = read_memmapped,
1249 },
1250
1251 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001252 .vendor = "Atmel",
1253 .name = "AT25DF021",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001254 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001255 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001256 .model_id = ATMEL_AT25DF021,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001257 .total_size = 256,
1258 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001259 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001260 .tested = TEST_UNTESTED,
1261 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001262 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001263 .block_erasers =
1264 {
1265 {
1266 .eraseblocks = { {4 * 1024, 64} },
1267 .block_erase = spi_block_erase_20,
1268 }, {
1269 .eraseblocks = { {32 * 1024, 8} },
1270 .block_erase = spi_block_erase_52,
1271 }, {
1272 .eraseblocks = { {64 * 1024, 4} },
1273 .block_erase = spi_block_erase_d8,
1274 }, {
1275 .eraseblocks = { {256 * 1024, 1} },
1276 .block_erase = spi_block_erase_60,
1277 }, {
1278 .eraseblocks = { {256 * 1024, 1} },
1279 .block_erase = spi_block_erase_c7,
1280 }
1281 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001282 .printlock = spi_prettyprint_status_register_at25df,
1283 .unlock = spi_disable_blockprotect_at25df,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001284 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001285 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00001286 },
1287
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001288 {
1289 .vendor = "Atmel",
1290 .name = "AT25DF041A",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001291 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001292 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001293 .model_id = ATMEL_AT25DF041A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001294 .total_size = 512,
1295 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001296 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001297 .tested = TEST_UNTESTED,
1298 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001299 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001300 .block_erasers =
1301 {
1302 {
1303 .eraseblocks = { {4 * 1024, 128} },
1304 .block_erase = spi_block_erase_20,
1305 }, {
1306 .eraseblocks = { {32 * 1024, 16} },
1307 .block_erase = spi_block_erase_52,
1308 }, {
1309 .eraseblocks = { {64 * 1024, 8} },
1310 .block_erase = spi_block_erase_d8,
1311 }, {
1312 .eraseblocks = { {512 * 1024, 1} },
1313 .block_erase = spi_block_erase_60,
1314 }, {
1315 .eraseblocks = { {512 * 1024, 1} },
1316 .block_erase = spi_block_erase_c7,
1317 }
1318 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001319 .printlock = spi_prettyprint_status_register_at25df,
1320 .unlock = spi_disable_blockprotect_at25df,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001321 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001322 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00001323 },
1324
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001325 {
1326 .vendor = "Atmel",
1327 .name = "AT25DF081",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001328 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001329 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001330 .model_id = ATMEL_AT25DF081,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001331 .total_size = 1024,
1332 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001333 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001334 .tested = TEST_UNTESTED,
1335 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001336 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001337 .block_erasers =
1338 {
1339 {
1340 .eraseblocks = { {4 * 1024, 256} },
1341 .block_erase = spi_block_erase_20,
1342 }, {
1343 .eraseblocks = { {32 * 1024, 32} },
1344 .block_erase = spi_block_erase_52,
1345 }, {
1346 .eraseblocks = { {64 * 1024, 16} },
1347 .block_erase = spi_block_erase_d8,
1348 }, {
1349 .eraseblocks = { {1024 * 1024, 1} },
1350 .block_erase = spi_block_erase_60,
1351 }, {
1352 .eraseblocks = { {1024 * 1024, 1} },
1353 .block_erase = spi_block_erase_c7,
1354 }
1355 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001356 .printlock = spi_prettyprint_status_register_at25df,
1357 .unlock = spi_disable_blockprotect_at25df,
1358 .write = spi_chip_write_256,
1359 .read = spi_chip_read,
1360 },
1361
1362 {
1363 .vendor = "Atmel",
1364 .name = "AT25DF081A",
1365 .bustype = CHIP_BUSTYPE_SPI,
1366 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001367 .model_id = ATMEL_AT25DF081A,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001368 .total_size = 1024,
1369 .page_size = 256,
1370 .feature_bits = FEATURE_WRSR_WREN,
1371 .tested = TEST_UNTESTED,
1372 .probe = probe_spi_rdid,
1373 .probe_timing = TIMING_ZERO,
1374 .block_erasers =
1375 {
1376 {
1377 .eraseblocks = { {4 * 1024, 256} },
1378 .block_erase = spi_block_erase_20,
1379 }, {
1380 .eraseblocks = { {32 * 1024, 32} },
1381 .block_erase = spi_block_erase_52,
1382 }, {
1383 .eraseblocks = { {64 * 1024, 16} },
1384 .block_erase = spi_block_erase_d8,
1385 }, {
1386 .eraseblocks = { {1024 * 1024, 1} },
1387 .block_erase = spi_block_erase_60,
1388 }, {
1389 .eraseblocks = { {1024 * 1024, 1} },
1390 .block_erase = spi_block_erase_c7,
1391 }
1392 },
1393 .printlock = spi_prettyprint_status_register_at25df_sec,
1394 .unlock = spi_disable_blockprotect_at25df_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001395 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001396 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00001397 },
1398
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001399 {
1400 .vendor = "Atmel",
1401 .name = "AT25DF161",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001402 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001403 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001404 .model_id = ATMEL_AT25DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001405 .total_size = 2048,
1406 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001407 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001408 .tested = TEST_UNTESTED,
1409 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001410 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001411 .block_erasers =
1412 {
1413 {
1414 .eraseblocks = { {4 * 1024, 512} },
1415 .block_erase = spi_block_erase_20,
1416 }, {
1417 .eraseblocks = { {32 * 1024, 64} },
1418 .block_erase = spi_block_erase_52,
1419 }, {
1420 .eraseblocks = { {64 * 1024, 32} },
1421 .block_erase = spi_block_erase_d8,
1422 }, {
1423 .eraseblocks = { {2 * 1024 * 1024, 1} },
1424 .block_erase = spi_block_erase_60,
1425 }, {
1426 .eraseblocks = { {2 * 1024 * 1024, 1} },
1427 .block_erase = spi_block_erase_c7,
1428 }
1429 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001430 .printlock = spi_prettyprint_status_register_at25df_sec,
1431 .unlock = spi_disable_blockprotect_at25df_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001432 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001433 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00001434 },
1435
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001436 {
1437 .vendor = "Atmel",
1438 .name = "AT25DF321",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001439 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001440 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001441 .model_id = ATMEL_AT25DF321,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001442 .total_size = 4096,
1443 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001444 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00001445 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001446 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001447 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001448 .block_erasers =
1449 {
1450 {
1451 .eraseblocks = { {4 * 1024, 1024} },
1452 .block_erase = spi_block_erase_20,
1453 }, {
1454 .eraseblocks = { {32 * 1024, 128} },
1455 .block_erase = spi_block_erase_52,
1456 }, {
1457 .eraseblocks = { {64 * 1024, 64} },
1458 .block_erase = spi_block_erase_d8,
1459 }, {
1460 .eraseblocks = { {4 * 1024 * 1024, 1} },
1461 .block_erase = spi_block_erase_60,
1462 }, {
1463 .eraseblocks = { {4 * 1024 * 1024, 1} },
1464 .block_erase = spi_block_erase_c7,
1465 }
1466 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001467 .printlock = spi_prettyprint_status_register_at25df,
1468 .unlock = spi_disable_blockprotect_at25df,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001469 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001470 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00001471 },
1472
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001473 {
1474 .vendor = "Atmel",
1475 .name = "AT25DF321A",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001476 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001477 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001478 .model_id = ATMEL_AT25DF321A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001479 .total_size = 4096,
1480 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001481 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001482 .tested = TEST_UNTESTED,
1483 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001484 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001485 .block_erasers =
1486 {
1487 {
1488 .eraseblocks = { {4 * 1024, 1024} },
1489 .block_erase = spi_block_erase_20,
1490 }, {
1491 .eraseblocks = { {32 * 1024, 128} },
1492 .block_erase = spi_block_erase_52,
1493 }, {
1494 .eraseblocks = { {64 * 1024, 64} },
1495 .block_erase = spi_block_erase_d8,
1496 }, {
1497 .eraseblocks = { {4 * 1024 * 1024, 1} },
1498 .block_erase = spi_block_erase_60,
1499 }, {
1500 .eraseblocks = { {4 * 1024 * 1024, 1} },
1501 .block_erase = spi_block_erase_c7,
1502 }
1503 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001504 .printlock = spi_prettyprint_status_register_at25df_sec,
1505 .unlock = spi_disable_blockprotect_at25df_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001506 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001507 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00001508 },
1509
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001510 {
1511 .vendor = "Atmel",
1512 .name = "AT25DF641",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001513 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001514 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001515 .model_id = ATMEL_AT25DF641,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001516 .total_size = 8192,
1517 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001518 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001519 .tested = TEST_UNTESTED,
1520 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001521 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001522 .block_erasers =
1523 {
1524 {
1525 .eraseblocks = { {4 * 1024, 2048} },
1526 .block_erase = spi_block_erase_20,
1527 }, {
1528 .eraseblocks = { {32 * 1024, 256} },
1529 .block_erase = spi_block_erase_52,
1530 }, {
1531 .eraseblocks = { {64 * 1024, 128} },
1532 .block_erase = spi_block_erase_d8,
1533 }, {
1534 .eraseblocks = { {8 * 1024 * 1024, 1} },
1535 .block_erase = spi_block_erase_60,
1536 }, {
1537 .eraseblocks = { {8 * 1024 * 1024, 1} },
1538 .block_erase = spi_block_erase_c7,
1539 }
1540 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001541 .printlock = spi_prettyprint_status_register_at25df_sec,
1542 .unlock = spi_disable_blockprotect_at25df_sec,
1543 .write = spi_chip_write_256,
1544 .read = spi_chip_read,
1545 },
1546
1547 {
1548 .vendor = "Atmel",
1549 .name = "AT25DQ161",
1550 .bustype = CHIP_BUSTYPE_SPI,
1551 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001552 .model_id = ATMEL_AT25DQ161,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001553 .total_size = 2048,
1554 .page_size = 256,
1555 .feature_bits = FEATURE_WRSR_WREN,
1556 .tested = TEST_UNTESTED,
1557 .probe = probe_spi_rdid,
1558 .probe_timing = TIMING_ZERO,
1559 .block_erasers =
1560 {
1561 {
1562 .eraseblocks = { {4 * 1024, 512} },
1563 .block_erase = spi_block_erase_20,
1564 }, {
1565 .eraseblocks = { {32 * 1024, 64} },
1566 .block_erase = spi_block_erase_52,
1567 }, {
1568 .eraseblocks = { {64 * 1024, 32} },
1569 .block_erase = spi_block_erase_d8,
1570 }, {
1571 .eraseblocks = { {2 * 1024 * 1024, 1} },
1572 .block_erase = spi_block_erase_60,
1573 }, {
1574 .eraseblocks = { {2 * 1024 * 1024, 1} },
1575 .block_erase = spi_block_erase_c7,
1576 }
1577 },
1578 .printlock = spi_prettyprint_status_register_at25df_sec,
1579 .unlock = spi_disable_blockprotect_at25df_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001580 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001581 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00001582 },
1583
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001584 {
1585 .vendor = "Atmel",
1586 .name = "AT25F512B",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001587 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001588 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001589 .model_id = ATMEL_AT25F512B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001590 .total_size = 64,
1591 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001592 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001593 .tested = TEST_UNTESTED,
1594 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001595 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001596 .block_erasers =
1597 {
1598 {
1599 .eraseblocks = { {4 * 1024, 16} },
1600 .block_erase = spi_block_erase_20,
1601 }, {
1602 .eraseblocks = { {32 * 1024, 2} },
1603 .block_erase = spi_block_erase_52,
1604 }, {
1605 .eraseblocks = { {32 * 1024, 2} },
1606 .block_erase = spi_block_erase_d8,
1607 }, {
1608 .eraseblocks = { {64 * 1024, 1} },
1609 .block_erase = spi_block_erase_60,
1610 }, {
1611 .eraseblocks = { {64 * 1024, 1} },
1612 .block_erase = spi_block_erase_c7,
1613 }
1614 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001615 .printlock = spi_prettyprint_status_register_at25f,
1616 .unlock = spi_disable_blockprotect_at25f,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001617 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001618 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00001619 },
1620
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001621 {
1622 .vendor = "Atmel",
1623 .name = "AT25FS010",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001624 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001625 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001626 .model_id = ATMEL_AT25FS010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001627 .total_size = 128,
1628 .page_size = 256,
1629 .tested = TEST_UNTESTED,
1630 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001631 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001632 .block_erasers =
1633 {
1634 {
1635 .eraseblocks = { {4 * 1024, 32} },
1636 .block_erase = spi_block_erase_20,
1637 }, {
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001638 .eraseblocks = { {4 * 1024, 32} },
1639 .block_erase = spi_block_erase_d7,
1640 }, {
Sean Nelson89187292009-12-23 12:02:55 +00001641 .eraseblocks = { {32 * 1024, 4} },
1642 .block_erase = spi_block_erase_52,
1643 }, {
1644 .eraseblocks = { {32 * 1024, 4} },
1645 .block_erase = spi_block_erase_d8,
1646 }, {
1647 .eraseblocks = { {128 * 1024, 1} },
1648 .block_erase = spi_block_erase_60,
1649 }, {
1650 .eraseblocks = { {128 * 1024, 1} },
1651 .block_erase = spi_block_erase_c7,
1652 }
1653 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001654 .printlock = spi_prettyprint_status_register_at25fs010,
1655 .unlock = spi_disable_blockprotect_at25fs010,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001656 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001657 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00001658 },
1659
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001660 {
1661 .vendor = "Atmel",
1662 .name = "AT25FS040",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001663 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001664 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001665 .model_id = ATMEL_AT25FS040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001666 .total_size = 512,
1667 .page_size = 256,
1668 .tested = TEST_UNTESTED,
1669 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001670 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001671 .block_erasers =
1672 {
1673 {
1674 .eraseblocks = { {4 * 1024, 128} },
1675 .block_erase = spi_block_erase_20,
1676 }, {
1677 .eraseblocks = { {64 * 1024, 8} },
1678 .block_erase = spi_block_erase_52,
1679 }, {
1680 .eraseblocks = { {64 * 1024, 8} },
1681 .block_erase = spi_block_erase_d8,
1682 }, {
1683 .eraseblocks = { {512 * 1024, 1} },
1684 .block_erase = spi_block_erase_60,
1685 }, {
1686 .eraseblocks = { {512 * 1024, 1} },
1687 .block_erase = spi_block_erase_c7,
1688 }
1689 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001690 .printlock = spi_prettyprint_status_register_at25fs040,
1691 .unlock = spi_disable_blockprotect_at25fs040,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001692 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001693 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00001694 },
1695
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001696 {
1697 .vendor = "Atmel",
1698 .name = "AT26DF041",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001699 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001700 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001701 .model_id = ATMEL_AT26DF041,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001702 .total_size = 512,
1703 .page_size = 256,
1704 .tested = TEST_UNTESTED,
1705 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001706 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001707 .block_erasers =
1708 {
1709 {
1710 .eraseblocks = { {4 * 1024, 128} },
1711 .block_erase = spi_block_erase_20,
1712 }
1713 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001714 .write = NULL /* Incompatible Page write */,
1715 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00001716 },
1717
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001718 {
1719 .vendor = "Atmel",
1720 .name = "AT26DF081A",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001721 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001722 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001723 .model_id = ATMEL_AT26DF081A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001724 .total_size = 1024,
1725 .page_size = 256,
Mathias Krause2c3afa32011-01-17 07:45:54 +00001726 .feature_bits = FEATURE_WRSR_WREN,
1727 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001728 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001729 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001730 .block_erasers =
1731 {
1732 {
1733 .eraseblocks = { {4 * 1024, 256} },
1734 .block_erase = spi_block_erase_20,
1735 }, {
1736 .eraseblocks = { {32 * 1024, 32} },
1737 .block_erase = spi_block_erase_52,
1738 }, {
1739 .eraseblocks = { {64 * 1024, 16} },
1740 .block_erase = spi_block_erase_d8,
1741 }, {
1742 .eraseblocks = { {1024 * 1024, 1} },
1743 .block_erase = spi_block_erase_60,
1744 }, {
1745 .eraseblocks = { {1024 * 1024, 1} },
1746 .block_erase = spi_block_erase_c7,
1747 }
1748 },
Mathias Krause2c3afa32011-01-17 07:45:54 +00001749 .unlock = spi_disable_blockprotect_at25df,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001750 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001751 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00001752 },
1753
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001754 {
1755 .vendor = "Atmel",
1756 .name = "AT26DF161",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001757 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001758 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001759 .model_id = ATMEL_AT26DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001760 .total_size = 2048,
1761 .page_size = 256,
1762 .tested = TEST_UNTESTED,
1763 .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, 512} },
1769 .block_erase = spi_block_erase_20,
1770 }, {
1771 .eraseblocks = { {32 * 1024, 64} },
1772 .block_erase = spi_block_erase_52,
1773 }, {
1774 .eraseblocks = { {64 * 1024, 32} },
1775 .block_erase = spi_block_erase_d8,
1776 }, {
1777 .eraseblocks = { {2 * 1024 * 1024, 1} },
1778 .block_erase = spi_block_erase_60,
1779 }, {
1780 .eraseblocks = { {2 * 1024 * 1024, 1} },
1781 .block_erase = spi_block_erase_c7,
1782 }
1783 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00001784 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001785 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001786 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00001787 },
1788
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001789 {
1790 .vendor = "Atmel",
1791 .name = "AT26DF161A",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001792 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001793 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001794 .model_id = ATMEL_AT26DF161A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001795 .total_size = 2048,
1796 .page_size = 256,
1797 .tested = TEST_UNTESTED,
1798 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001799 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001800 .block_erasers =
1801 {
1802 {
1803 .eraseblocks = { {4 * 1024, 512} },
1804 .block_erase = spi_block_erase_20,
1805 }, {
1806 .eraseblocks = { {32 * 1024, 64} },
1807 .block_erase = spi_block_erase_52,
1808 }, {
1809 .eraseblocks = { {64 * 1024, 32} },
1810 .block_erase = spi_block_erase_d8,
1811 }, {
1812 .eraseblocks = { {2 * 1024 * 1024, 1} },
1813 .block_erase = spi_block_erase_60,
1814 }, {
1815 .eraseblocks = { {2 * 1024 * 1024, 1} },
1816 .block_erase = spi_block_erase_c7,
1817 }
1818 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00001819 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001820 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001821 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00001822 },
1823
1824 /*The AT26DF321 has the same ID as the AT25DF321. */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001825 /*{
1826 .vendor = "Atmel",
1827 .name = "AT26DF321",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001828 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001829 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001830 .model_id = ATMEL_AT26DF321,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001831 .total_size = 4096,
1832 .page_size = 256,
1833 .tested = TEST_UNTESTED,
1834 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001835 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00001836 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001837 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001838 .read = spi_chip_read,
1839 },*/
FENG yu ningff692fb2008-12-08 18:15:10 +00001840
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001841 {
1842 .vendor = "Atmel",
1843 .name = "AT26F004",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001844 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001845 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001846 .model_id = ATMEL_AT26F004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001847 .total_size = 512,
1848 .page_size = 256,
1849 .tested = TEST_UNTESTED,
1850 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001851 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001852 .block_erasers =
1853 {
1854 {
1855 .eraseblocks = { {4 * 1024, 128} },
1856 .block_erase = spi_block_erase_20,
1857 }, {
1858 .eraseblocks = { {32 * 1024, 16} },
1859 .block_erase = spi_block_erase_52,
1860 }, {
1861 .eraseblocks = { {64 * 1024, 8} },
1862 .block_erase = spi_block_erase_d8,
1863 }, {
1864 .eraseblocks = { {512 * 1024, 1} },
1865 .block_erase = spi_block_erase_60,
1866 }, {
1867 .eraseblocks = { {512 * 1024, 1} },
1868 .block_erase = spi_block_erase_c7,
1869 }
1870 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001871 .write = NULL /* Incompatible Page write */,
1872 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00001873 },
1874
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001875 {
1876 .vendor = "Atmel",
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00001877 .name = "AT29C512",
Urja Rannikko038a3122009-06-28 19:19:25 +00001878 .bustype = CHIP_BUSTYPE_PARALLEL,
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00001879 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001880 .model_id = ATMEL_AT29C512,
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00001881 .total_size = 64,
1882 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00001883 .feature_bits = FEATURE_LONG_RESET,
1884 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00001885 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00001886 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00001887 .block_erasers =
1888 {
1889 {
1890 .eraseblocks = { {64 * 1024, 1} },
1891 .block_erase = erase_chip_block_jedec,
1892 }
1893 },
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00001894 .write = write_jedec,
1895 .read = read_memmapped,
1896
1897 },
1898
1899 {
1900 .vendor = "Atmel",
Uwe Hermann8403ccb2009-05-16 21:39:19 +00001901 .name = "AT29C010A",
Urja Rannikko161b8852009-06-05 08:47:37 +00001902 .bustype = CHIP_BUSTYPE_PARALLEL,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00001903 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001904 .model_id = ATMEL_AT29C010A,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00001905 .total_size = 128,
1906 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00001907 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00001908 .tested = TEST_OK_PRE,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00001909 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00001910 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00001911 .block_erasers =
1912 {
1913 {
1914 .eraseblocks = { {128 * 1024, 1} },
1915 .block_erase = erase_chip_block_jedec,
1916 }
1917 },
Uwe Hermann8403ccb2009-05-16 21:39:19 +00001918 .write = write_jedec, /* FIXME */
1919 .read = read_memmapped,
1920 },
1921
1922 {
1923 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001924 .name = "AT29C020",
Urja Rannikko161b8852009-06-05 08:47:37 +00001925 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001926 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001927 .model_id = ATMEL_AT29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001928 .total_size = 256,
1929 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00001930 .feature_bits = FEATURE_LONG_RESET,
1931 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001932 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00001933 .probe_timing = 10000, /* 10ms */
Sean Nelson89187292009-12-23 12:02:55 +00001934 .block_erasers =
1935 {
1936 {
1937 .eraseblocks = { {256 * 1024, 1} },
1938 .block_erase = erase_chip_block_jedec,
1939 }
1940 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001941 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00001942 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00001943 },
1944
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001945 {
1946 .vendor = "Atmel",
1947 .name = "AT29C040A",
Urja Rannikko161b8852009-06-05 08:47:37 +00001948 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001949 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001950 .model_id = ATMEL_AT29C040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001951 .total_size = 512,
1952 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00001953 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001954 .tested = TEST_UNTESTED,
1955 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00001956 .probe_timing = 10000, /* 10 ms */
Sean Nelson89187292009-12-23 12:02:55 +00001957 .block_erasers =
1958 {
1959 {
1960 .eraseblocks = { {512 * 1024, 1} },
1961 .block_erase = erase_chip_block_jedec,
1962 }
1963 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001964 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00001965 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00001966 },
1967
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001968 {
1969 .vendor = "Atmel",
1970 .name = "AT45CS1282",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001971 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001972 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001973 .model_id = ATMEL_AT45CS1282,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00001974 .total_size = 16896 /* No power of two sizes */,
1975 .page_size = 1056 /* No power of two sizes */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001976 .tested = TEST_BAD_READ,
1977 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001978 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001979 .write = NULL /* Incompatible Page write */,
1980 .read = NULL /* Incompatible read */,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00001981 },
FENG yu ningff692fb2008-12-08 18:15:10 +00001982
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001983 {
1984 .vendor = "Atmel",
1985 .name = "AT45DB011D",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001986 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001987 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001988 .model_id = ATMEL_AT45DB011D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00001989 .total_size = 128 /* Size can only be determined from status register */,
1990 .page_size = 256 /* Size can only be determined from status register */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001991 .tested = TEST_BAD_READ,
1992 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001993 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001994 .write = NULL,
1995 .read = NULL,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00001996 },
FENG yu ningff692fb2008-12-08 18:15:10 +00001997
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001998 {
1999 .vendor = "Atmel",
2000 .name = "AT45DB021D",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00002001 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002002 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002003 .model_id = ATMEL_AT45DB021D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002004 .total_size = 256 /* Size can only be determined from status register */,
2005 .page_size = 256 /* Size can only be determined from status register */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002006 .tested = TEST_BAD_READ,
2007 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002008 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002009 .write = NULL,
2010 .read = NULL,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002011 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002012
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002013 {
2014 .vendor = "Atmel",
2015 .name = "AT45DB041D",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00002016 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002017 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002018 .model_id = ATMEL_AT45DB041D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002019 .total_size = 512 /* Size can only be determined from status register */,
2020 .page_size = 256 /* Size can only be determined from status register */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002021 .tested = TEST_BAD_READ,
2022 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002023 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002024 .write = NULL,
2025 .read = NULL,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002026 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002027
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002028 {
2029 .vendor = "Atmel",
2030 .name = "AT45DB081D",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00002031 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002032 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002033 .model_id = ATMEL_AT45DB081D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002034 .total_size = 1024 /* Size can only be determined from status register */,
2035 .page_size = 256 /* Size can only be determined from status register */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002036 .tested = TEST_BAD_READ,
2037 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002038 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002039 .write = NULL,
2040 .read = NULL,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002041 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002042
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002043 {
2044 .vendor = "Atmel",
2045 .name = "AT45DB161D",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00002046 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002047 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002048 .model_id = ATMEL_AT45DB161D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002049 .total_size = 2048 /* Size can only be determined from status register */,
2050 .page_size = 512 /* Size can only be determined from status register */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002051 .tested = TEST_BAD_READ,
2052 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002053 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002054 .write = NULL,
2055 .read = NULL,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002056 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002057
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002058 {
2059 .vendor = "Atmel",
2060 .name = "AT45DB321C",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00002061 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002062 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002063 .model_id = ATMEL_AT45DB321C,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002064 .total_size = 4224 /* No power of two sizes */,
2065 .page_size = 528 /* No power of two sizes */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002066 .tested = TEST_BAD_READ,
2067 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002068 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002069 .write = NULL,
2070 .read = NULL /* Incompatible read */,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002071 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002072
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002073 {
2074 .vendor = "Atmel",
2075 .name = "AT45DB321D",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00002076 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002077 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002078 .model_id = ATMEL_AT45DB321D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002079 .total_size = 4096 /* Size can only be determined from status register */,
2080 .page_size = 512 /* Size can only be determined from status register */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002081 .tested = TEST_BAD_READ,
2082 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002083 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002084 .write = NULL,
2085 .read = NULL,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002086 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002087
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002088 {
2089 .vendor = "Atmel",
2090 .name = "AT45DB642D",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00002091 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002092 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002093 .model_id = ATMEL_AT45DB642D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002094 .total_size = 8192 /* Size can only be determined from status register */,
2095 .page_size = 1024 /* Size can only be determined from status register */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002096 .tested = TEST_BAD_READ,
2097 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002098 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002099 .write = NULL,
2100 .read = NULL,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002101 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002102
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002103 {
2104 .vendor = "Atmel",
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002105 .name = "AT49BV512",
Urja Rannikko161b8852009-06-05 08:47:37 +00002106 .bustype = CHIP_BUSTYPE_PARALLEL,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002107 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002108 .model_id = ATMEL_AT49BV512,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002109 .total_size = 64,
2110 .page_size = 64,
Sean Nelson35727f72010-01-28 23:55:12 +00002111 .feature_bits = FEATURE_EITHER_RESET,
2112 .tested = TEST_UNTESTED,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002113 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002114 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002115 .block_erasers =
2116 {
2117 {
2118 .eraseblocks = { {64 * 1024, 1} },
2119 .block_erase = erase_chip_block_jedec,
2120 }
2121 },
Sean Nelson35727f72010-01-28 23:55:12 +00002122 .write = write_jedec_1,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002123 .read = read_memmapped,
2124 },
2125
2126 {
2127 .vendor = "Atmel",
Andrew Morgan1a5eaa12010-06-07 14:10:55 +00002128 .name = "AT49F020",
2129 .bustype = CHIP_BUSTYPE_PARALLEL,
2130 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002131 .model_id = ATMEL_AT49F020,
Andrew Morgan1a5eaa12010-06-07 14:10:55 +00002132 .total_size = 256,
2133 .page_size = 256,
2134 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002135 .tested = TEST_OK_PRE,
Andrew Morgan1a5eaa12010-06-07 14:10:55 +00002136 .probe = probe_jedec,
2137 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2138 .block_erasers =
2139 {
2140 {
2141 .eraseblocks = { {256 * 1024, 1} },
2142 .block_erase = erase_chip_block_jedec,
2143 }
2144 },
2145 .write = write_jedec_1,
2146 .read = read_memmapped,
2147 },
2148
2149 {
2150 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002151 .name = "AT49F002(N)",
Urja Rannikko161b8852009-06-05 08:47:37 +00002152 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002153 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002154 .model_id = ATMEL_AT49F002N,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002155 .total_size = 256,
2156 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002157 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002158 .tested = TEST_UNTESTED,
2159 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002160 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002161 .block_erasers =
2162 {
2163 {
2164 .eraseblocks = {
2165 {16 * 1024, 1},
2166 {8 * 1024, 2},
2167 {96 * 1024, 1},
2168 {128 * 1024, 1},
2169 },
2170 .block_erase = erase_sector_jedec,
2171 }, {
2172 .eraseblocks = { {256 * 1024, 1} },
2173 .block_erase = erase_chip_block_jedec,
2174 }
2175 },
Sean Nelson35727f72010-01-28 23:55:12 +00002176 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002177 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00002178 },
2179
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002180 {
2181 .vendor = "Atmel",
2182 .name = "AT49F002(N)T",
Urja Rannikko161b8852009-06-05 08:47:37 +00002183 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002184 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002185 .model_id = ATMEL_AT49F002NT,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002186 .total_size = 256,
2187 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002188 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002189 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002190 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002191 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002192 .block_erasers =
2193 {
2194 {
2195 .eraseblocks = {
2196 {128 * 1024, 1},
2197 {96 * 1024, 1},
2198 {8 * 1024, 2},
2199 {16 * 1024, 1},
2200 },
2201 .block_erase = erase_sector_jedec,
2202 }, {
2203 .eraseblocks = { {256 * 1024, 1} },
2204 .block_erase = erase_chip_block_jedec,
2205 }
2206 },
Sean Nelson35727f72010-01-28 23:55:12 +00002207 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002208 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00002209 },
2210
Daniel Lenskidf90d3a2010-07-22 11:44:38 +00002211 {
Joshua Roysf1324e02010-09-16 00:51:51 +00002212 .vendor = "Bright",
2213 .name = "BM29F040",
2214 .bustype = CHIP_BUSTYPE_PARALLEL,
2215 .manufacture_id = BRIGHT_ID,
2216 .model_id = BRIGHT_BM29F040,
2217 .total_size = 512,
2218 .page_size = 64 * 1024,
2219 .feature_bits = FEATURE_EITHER_RESET,
2220 .tested = TEST_OK_PR,
2221 .probe = probe_jedec,
2222 .probe_timing = TIMING_ZERO,
2223 .block_erasers =
2224 {
2225 {
2226 .eraseblocks = { {64 * 1024, 8} },
2227 .block_erase = erase_sector_jedec,
2228 }, {
2229 .eraseblocks = { {512 * 1024, 1} },
2230 .block_erase = erase_chip_block_jedec,
2231 },
2232 },
2233 .write = write_jedec_1,
2234 .read = read_memmapped,
2235 },
2236
2237 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002238 .vendor = "EMST",
2239 .name = "F49B002UA",
Urja Rannikko161b8852009-06-05 08:47:37 +00002240 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002241 .manufacture_id = EMST_ID,
2242 .model_id = EMST_F49B002UA,
2243 .total_size = 256,
2244 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00002245 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002246 .tested = TEST_UNTESTED,
2247 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002248 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00002249 .block_erasers =
2250 {
2251 {
2252 .eraseblocks = {
2253 {128 * 1024, 1},
2254 {96 * 1024, 1},
2255 {8 * 1024, 2},
2256 {16 * 1024, 1},
2257 },
2258 .block_erase = erase_sector_jedec,
2259 }, {
2260 .eraseblocks = { {256 * 1024, 1} },
2261 .block_erase = erase_chip_block_jedec,
2262 }
2263 },
Sean Nelson35727f72010-01-28 23:55:12 +00002264 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002265 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00002266 },
2267
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002268 {
Michael Karcher80a59ea2010-06-19 22:06:35 +00002269 .vendor = "EMST",
2270 .name = "F25L008A",
2271 .bustype = CHIP_BUSTYPE_SPI,
2272 .manufacture_id = EMST_ID,
2273 .model_id = EMST_F25L008A,
2274 .total_size = 1024,
2275 .page_size = 256,
2276 .tested = TEST_UNTESTED,
2277 .probe = probe_spi_rdid,
2278 .probe_timing = TIMING_ZERO,
2279 .block_erasers =
2280 {
2281 {
2282 .eraseblocks = { {4 * 1024, 256} },
2283 .block_erase = spi_block_erase_20,
2284 }, {
2285 .eraseblocks = { {64 * 1024, 16} },
2286 .block_erase = spi_block_erase_d8,
2287 }, {
2288 .eraseblocks = { {1024 * 1024, 1} },
2289 .block_erase = spi_block_erase_60,
2290 }, {
2291 .eraseblocks = { {1024 * 1024, 1} },
2292 .block_erase = spi_block_erase_c7,
2293 }
2294 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002295 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger9a795d82010-07-14 16:19:05 +00002296 .write = spi_chip_write_1,
Michael Karcher4497e862010-07-10 19:34:15 +00002297 .read = spi_chip_read,
Michael Karcher80a59ea2010-06-19 22:06:35 +00002298 },
2299
2300 {
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002301 .vendor = "Eon",
2302 .name = "EN25B05",
2303 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002304 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002305 .model_id = EON_EN25B05,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002306 .total_size = 64,
2307 .page_size = 256,
2308 .tested = TEST_UNTESTED,
2309 .probe = probe_spi_rdid,
2310 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002311 .block_erasers =
2312 {
2313 {
2314 .eraseblocks = {
2315 {4 * 1024, 2},
2316 {8 * 1024, 1},
2317 {16 * 1024, 1},
2318 {32 * 1024, 1},
2319 },
2320 .block_erase = spi_block_erase_d8,
2321 }, {
2322 .eraseblocks = { {64 * 1024, 1} },
2323 .block_erase = spi_block_erase_c7,
2324 }
2325 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002326 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002327 .write = spi_chip_write_256,
2328 .read = spi_chip_read,
2329 },
2330
2331 {
2332 .vendor = "Eon",
2333 .name = "EN25B05T",
2334 .bustype = CHIP_BUSTYPE_SPI,
2335 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002336 .model_id = EON_EN25B05,
Sean Nelson54596372010-01-09 05:30:14 +00002337 .total_size = 64,
2338 .page_size = 256,
2339 .tested = TEST_UNTESTED,
2340 .probe = probe_spi_rdid,
2341 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002342 .block_erasers =
2343 {
2344 {
2345 .eraseblocks = {
2346 {32 * 1024, 1},
2347 {16 * 1024, 1},
2348 {8 * 1024, 1},
2349 {4 * 1024, 2},
2350 },
2351 .block_erase = spi_block_erase_d8,
2352 }, {
2353 .eraseblocks = { {64 * 1024, 1} },
2354 .block_erase = spi_block_erase_c7,
2355 }
2356 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002357 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002358 .write = spi_chip_write_256,
2359 .read = spi_chip_read,
2360 },
2361
2362 {
2363 .vendor = "Eon",
2364 .name = "EN25B10",
2365 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002366 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002367 .model_id = EON_EN25B10,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002368 .total_size = 128,
2369 .page_size = 256,
2370 .tested = TEST_UNTESTED,
2371 .probe = probe_spi_rdid,
2372 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002373 .block_erasers =
2374 {
2375 {
2376 .eraseblocks = {
2377 {4 * 1024, 2},
2378 {8 * 1024, 1},
2379 {16 * 1024, 1},
2380 {32 * 1024, 3},
2381 },
2382 .block_erase = spi_block_erase_d8,
2383 }, {
2384 .eraseblocks = { {128 * 1024, 1} },
2385 .block_erase = spi_block_erase_c7,
2386 }
2387 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002388 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002389 .write = spi_chip_write_256,
2390 .read = spi_chip_read,
2391 },
2392
2393 {
2394 .vendor = "Eon",
2395 .name = "EN25B10T",
2396 .bustype = CHIP_BUSTYPE_SPI,
2397 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002398 .model_id = EON_EN25B10,
Sean Nelson54596372010-01-09 05:30:14 +00002399 .total_size = 128,
2400 .page_size = 256,
2401 .tested = TEST_UNTESTED,
2402 .probe = probe_spi_rdid,
2403 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002404 .block_erasers =
2405 {
2406 {
2407 .eraseblocks = {
2408 {32 * 1024, 3},
2409 {16 * 1024, 1},
2410 {8 * 1024, 1},
2411 {4 * 1024, 2},
2412 },
2413 .block_erase = spi_block_erase_d8,
2414 }, {
2415 .eraseblocks = { {128 * 1024, 1} },
2416 .block_erase = spi_block_erase_c7,
2417 }
2418 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002419 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002420 .write = spi_chip_write_256,
2421 .read = spi_chip_read,
2422 },
2423
2424 {
2425 .vendor = "Eon",
2426 .name = "EN25B20",
2427 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002428 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002429 .model_id = EON_EN25B20,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002430 .total_size = 256,
2431 .page_size = 256,
2432 .tested = TEST_UNTESTED,
2433 .probe = probe_spi_rdid,
2434 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002435 .block_erasers =
2436 {
2437 {
2438 .eraseblocks = {
2439 {4 * 1024, 2},
2440 {8 * 1024, 1},
2441 {16 * 1024, 1},
2442 {32 * 1024, 1},
2443 {64 * 1024, 3}
2444 },
2445 .block_erase = spi_block_erase_d8,
2446 }, {
2447 .eraseblocks = { {256 * 1024, 1} },
2448 .block_erase = spi_block_erase_c7,
2449 }
2450 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002451 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002452 .write = spi_chip_write_256,
2453 .read = spi_chip_read,
2454 },
2455
2456 {
2457 .vendor = "Eon",
2458 .name = "EN25B20T",
2459 .bustype = CHIP_BUSTYPE_SPI,
2460 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002461 .model_id = EON_EN25B20,
Sean Nelson54596372010-01-09 05:30:14 +00002462 .total_size = 256,
2463 .page_size = 256,
2464 .tested = TEST_UNTESTED,
2465 .probe = probe_spi_rdid,
2466 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002467 .block_erasers =
2468 {
2469 {
2470 .eraseblocks = {
2471 {64 * 1024, 3},
2472 {32 * 1024, 1},
2473 {16 * 1024, 1},
2474 {8 * 1024, 1},
2475 {4 * 1024, 2},
2476 },
2477 .block_erase = spi_block_erase_d8,
2478 }, {
2479 .eraseblocks = { {256 * 1024, 1} },
2480 .block_erase = spi_block_erase_c7,
2481 }
2482 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002483 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002484 .write = spi_chip_write_256,
2485 .read = spi_chip_read,
2486 },
2487
2488 {
2489 .vendor = "Eon",
2490 .name = "EN25B40",
2491 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002492 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002493 .model_id = EON_EN25B40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002494 .total_size = 512,
2495 .page_size = 256,
2496 .tested = TEST_UNTESTED,
2497 .probe = probe_spi_rdid,
2498 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002499 .block_erasers =
2500 {
2501 {
2502 .eraseblocks = {
2503 {4 * 1024, 2},
2504 {8 * 1024, 1},
2505 {16 * 1024, 1},
2506 {32 * 1024, 1},
2507 {64 * 1024, 7}
2508 },
2509 .block_erase = spi_block_erase_d8,
2510 }, {
2511 .eraseblocks = { {512 * 1024, 1} },
2512 .block_erase = spi_block_erase_c7,
2513 }
2514 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002515 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002516 .write = spi_chip_write_256,
2517 .read = spi_chip_read,
2518 },
2519
2520 {
2521 .vendor = "Eon",
2522 .name = "EN25B40T",
2523 .bustype = CHIP_BUSTYPE_SPI,
2524 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002525 .model_id = EON_EN25B40,
Sean Nelson54596372010-01-09 05:30:14 +00002526 .total_size = 512,
2527 .page_size = 256,
2528 .tested = TEST_UNTESTED,
2529 .probe = probe_spi_rdid,
2530 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002531 .block_erasers =
2532 {
2533 {
2534 .eraseblocks = {
2535 {64 * 1024, 7},
2536 {32 * 1024, 1},
2537 {16 * 1024, 1},
2538 {8 * 1024, 1},
2539 {4 * 1024, 2},
2540 },
2541 .block_erase = spi_block_erase_d8,
2542 }, {
2543 .eraseblocks = { {512 * 1024, 1} },
2544 .block_erase = spi_block_erase_c7,
2545 }
2546 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002547 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002548 .write = spi_chip_write_256,
2549 .read = spi_chip_read,
2550 },
2551
2552 {
2553 .vendor = "Eon",
2554 .name = "EN25B80",
2555 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002556 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002557 .model_id = EON_EN25B80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002558 .total_size = 1024,
2559 .page_size = 256,
2560 .tested = TEST_UNTESTED,
2561 .probe = probe_spi_rdid,
2562 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002563 .block_erasers =
2564 {
2565 {
2566 .eraseblocks = {
2567 {4 * 1024, 2},
2568 {8 * 1024, 1},
2569 {16 * 1024, 1},
2570 {32 * 1024, 1},
2571 {64 * 1024, 15}
2572 },
2573 .block_erase = spi_block_erase_d8,
2574 }, {
2575 .eraseblocks = { {1024 * 1024, 1} },
2576 .block_erase = spi_block_erase_c7,
2577 }
2578 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002579 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002580 .write = spi_chip_write_256,
2581 .read = spi_chip_read,
2582 },
2583
2584 {
2585 .vendor = "Eon",
2586 .name = "EN25B80T",
2587 .bustype = CHIP_BUSTYPE_SPI,
2588 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002589 .model_id = EON_EN25B80,
Sean Nelson54596372010-01-09 05:30:14 +00002590 .total_size = 1024,
2591 .page_size = 256,
2592 .tested = TEST_UNTESTED,
2593 .probe = probe_spi_rdid,
2594 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002595 .block_erasers =
2596 {
2597 {
2598 .eraseblocks = {
2599 {64 * 1024, 15},
2600 {32 * 1024, 1},
2601 {16 * 1024, 1},
2602 {8 * 1024, 1},
2603 {4 * 1024, 2},
2604 },
2605 .block_erase = spi_block_erase_d8,
2606 }, {
2607 .eraseblocks = { {1024 * 1024, 1} },
2608 .block_erase = spi_block_erase_c7,
2609 }
2610 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002611 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002612 .write = spi_chip_write_256,
2613 .read = spi_chip_read,
2614 },
2615
2616 {
2617 .vendor = "Eon",
2618 .name = "EN25B16",
2619 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002620 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002621 .model_id = EON_EN25B16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002622 .total_size = 2048,
2623 .page_size = 256,
2624 .tested = TEST_UNTESTED,
2625 .probe = probe_spi_rdid,
2626 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002627 .block_erasers =
2628 {
2629 {
2630 .eraseblocks = {
2631 {4 * 1024, 2},
2632 {8 * 1024, 1},
2633 {16 * 1024, 1},
2634 {32 * 1024, 1},
2635 {64 * 1024, 31},
2636 },
2637 .block_erase = spi_block_erase_d8,
2638 }, {
2639 .eraseblocks = { {2 * 1024 * 1024, 1} },
2640 .block_erase = spi_block_erase_c7,
2641 }
2642 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002643 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002644 .write = spi_chip_write_256,
2645 .read = spi_chip_read,
2646 },
2647
2648 {
2649 .vendor = "Eon",
2650 .name = "EN25B16T",
2651 .bustype = CHIP_BUSTYPE_SPI,
2652 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002653 .model_id = EON_EN25B16,
Sean Nelson54596372010-01-09 05:30:14 +00002654 .total_size = 2048,
2655 .page_size = 256,
2656 .tested = TEST_UNTESTED,
2657 .probe = probe_spi_rdid,
2658 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002659 .block_erasers =
2660 {
2661 {
2662 .eraseblocks = {
2663 {64 * 1024, 31},
2664 {32 * 1024, 1},
2665 {16 * 1024, 1},
2666 {8 * 1024, 1},
2667 {4 * 1024, 2},
2668 },
2669 .block_erase = spi_block_erase_d8,
2670 }, {
2671 .eraseblocks = { {2 * 1024 * 1024, 1} },
2672 .block_erase = spi_block_erase_c7,
2673 }
2674 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002675 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002676 .write = spi_chip_write_256,
2677 .read = spi_chip_read,
2678 },
2679
2680 {
2681 .vendor = "Eon",
2682 .name = "EN25B32",
2683 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002684 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002685 .model_id = EON_EN25B32,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002686 .total_size = 4096,
2687 .page_size = 256,
2688 .tested = TEST_UNTESTED,
2689 .probe = probe_spi_rdid,
2690 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002691 .block_erasers =
2692 {
2693 {
2694 .eraseblocks = {
2695 {4 * 1024, 2},
2696 {8 * 1024, 1},
2697 {16 * 1024, 1},
2698 {32 * 1024, 1},
2699 {64 * 1024, 63},
2700 },
2701 .block_erase = spi_block_erase_d8,
2702 }, {
2703 .eraseblocks = { {4 * 1024 * 1024, 1} },
2704 .block_erase = spi_block_erase_c7,
2705 }
2706 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002707 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002708 .write = spi_chip_write_256,
2709 .read = spi_chip_read,
2710 },
2711
2712 {
2713 .vendor = "Eon",
2714 .name = "EN25B32T",
2715 .bustype = CHIP_BUSTYPE_SPI,
2716 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002717 .model_id = EON_EN25B32,
Sean Nelson54596372010-01-09 05:30:14 +00002718 .total_size = 4096,
2719 .page_size = 256,
2720 .tested = TEST_UNTESTED,
2721 .probe = probe_spi_rdid,
2722 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002723 .block_erasers =
2724 {
2725 {
2726 .eraseblocks = {
2727 {64 * 1024, 63},
2728 {32 * 1024, 1},
2729 {16 * 1024, 1},
2730 {8 * 1024, 1},
2731 {4 * 1024, 2},
2732 },
2733 .block_erase = spi_block_erase_d8,
2734 }, {
2735 .eraseblocks = { {4 * 1024 * 1024, 1} },
2736 .block_erase = spi_block_erase_c7,
2737 }
2738 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002739 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002740 .write = spi_chip_write_256,
2741 .read = spi_chip_read,
2742 },
2743
2744 {
2745 .vendor = "Eon",
2746 .name = "EN25B64",
2747 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002748 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002749 .model_id = EON_EN25B64,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002750 .total_size = 8192,
2751 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00002752 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002753 .tested = TEST_UNTESTED,
2754 .probe = probe_spi_rdid,
2755 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002756 .block_erasers =
2757 {
2758 {
2759 .eraseblocks = {
2760 {4 * 1024, 2},
2761 {8 * 1024, 1},
2762 {16 * 1024, 1},
2763 {32 * 1024, 1},
2764 {64 * 1024, 127},
2765 },
2766 .block_erase = spi_block_erase_d8,
2767 }, {
2768 .eraseblocks = { {8 * 1024 * 1024, 1} },
2769 .block_erase = spi_block_erase_c7,
2770 }
2771 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002772 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002773 .write = spi_chip_write_256,
2774 .read = spi_chip_read,
2775 },
2776
2777 {
2778 .vendor = "Eon",
2779 .name = "EN25B64T",
2780 .bustype = CHIP_BUSTYPE_SPI,
2781 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002782 .model_id = EON_EN25B64,
Sean Nelson54596372010-01-09 05:30:14 +00002783 .total_size = 8192,
2784 .page_size = 256,
2785 .tested = TEST_UNTESTED,
2786 .probe = probe_spi_rdid,
2787 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002788 .block_erasers =
2789 {
2790 {
2791 .eraseblocks = {
2792 {64 * 1024, 127},
2793 {32 * 1024, 1},
2794 {16 * 1024, 1},
2795 {8 * 1024, 1},
2796 {4 * 1024, 2},
2797 },
2798 .block_erase = spi_block_erase_d8,
2799 }, {
2800 .eraseblocks = { {8 * 1024 * 1024, 1} },
2801 .block_erase = spi_block_erase_c7,
2802 }
2803 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002804 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002805 .write = spi_chip_write_256,
2806 .read = spi_chip_read,
2807 },
2808
2809 {
2810 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002811 .name = "EN25D16",
2812 .bustype = CHIP_BUSTYPE_SPI,
2813 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002814 .model_id = EON_EN25D16,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002815 .total_size = 2048,
2816 .page_size = 256,
2817 .tested = TEST_UNTESTED,
2818 .probe = probe_spi_rdid,
2819 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002820 .block_erasers =
2821 {
2822 {
2823 .eraseblocks = { {4 * 1024, 512} },
2824 .block_erase = spi_block_erase_20,
2825 }, {
2826 .eraseblocks = { {64 * 1024, 32} },
2827 .block_erase = spi_block_erase_d8,
2828 }, {
2829 .eraseblocks = { {64 * 1024, 32} },
2830 .block_erase = spi_block_erase_52,
2831 }, {
2832 .eraseblocks = { {2 * 1024 * 1024, 1} },
2833 .block_erase = spi_block_erase_60,
2834 }, {
2835 .eraseblocks = { {2 * 1024 * 1024, 1} },
2836 .block_erase = spi_block_erase_c7,
2837 }
2838 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002839 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002840 .write = spi_chip_write_256,
2841 .read = spi_chip_read,
2842 },
2843
2844 {
2845 .vendor = "Eon",
2846 .name = "EN25F05",
2847 .bustype = CHIP_BUSTYPE_SPI,
2848 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002849 .model_id = EON_EN25F05,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002850 .total_size = 64,
2851 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00002852 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002853 .tested = TEST_UNTESTED,
2854 .probe = probe_spi_rdid,
2855 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002856 .block_erasers =
2857 {
2858 {
2859 .eraseblocks = { {4 * 1024, 16} },
2860 .block_erase = spi_block_erase_20,
2861 }, {
2862 .eraseblocks = { {32 * 1024, 2} },
2863 .block_erase = spi_block_erase_d8,
2864 }, {
2865 .eraseblocks = { {32 * 1024, 2} },
2866 .block_erase = spi_block_erase_52,
2867 }, {
2868 .eraseblocks = { {64 * 1024, 1} },
2869 .block_erase = spi_block_erase_60,
2870 }, {
2871 .eraseblocks = { {64 * 1024, 1} },
2872 .block_erase = spi_block_erase_c7,
2873 }
2874 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002875 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002876 .write = spi_chip_write_256,
2877 .read = spi_chip_read,
2878 },
2879
2880 {
2881 .vendor = "Eon",
2882 .name = "EN25F10",
2883 .bustype = CHIP_BUSTYPE_SPI,
2884 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002885 .model_id = EON_EN25F10,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002886 .total_size = 128,
2887 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00002888 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002889 .tested = TEST_UNTESTED,
2890 .probe = probe_spi_rdid,
2891 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002892 .block_erasers =
2893 {
2894 {
2895 .eraseblocks = { {4 * 1024, 32} },
2896 .block_erase = spi_block_erase_20,
2897 }, {
2898 .eraseblocks = { {32 * 1024, 4} },
2899 .block_erase = spi_block_erase_d8,
2900 }, {
2901 .eraseblocks = { {32 * 1024, 4} },
2902 .block_erase = spi_block_erase_52,
2903 }, {
2904 .eraseblocks = { {128 * 1024, 1} },
2905 .block_erase = spi_block_erase_60,
2906 }, {
2907 .eraseblocks = { {128 * 1024, 1} },
2908 .block_erase = spi_block_erase_c7,
2909 }
2910 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002911 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002912 .write = spi_chip_write_256,
2913 .read = spi_chip_read,
2914 },
2915
2916 {
2917 .vendor = "Eon",
2918 .name = "EN25F20",
2919 .bustype = CHIP_BUSTYPE_SPI,
2920 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002921 .model_id = EON_EN25F20,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002922 .total_size = 256,
2923 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00002924 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002925 .tested = TEST_UNTESTED,
2926 .probe = probe_spi_rdid,
2927 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002928 .block_erasers =
2929 {
2930 {
2931 .eraseblocks = { {4 * 1024, 64} },
2932 .block_erase = spi_block_erase_20,
2933 }, {
2934 .eraseblocks = { {64 * 1024, 4} },
2935 .block_erase = spi_block_erase_d8,
2936 }, {
2937 .eraseblocks = { {64 * 1024, 4} },
2938 .block_erase = spi_block_erase_52,
2939 }, {
2940 .eraseblocks = { {256 * 1024, 1} },
2941 .block_erase = spi_block_erase_60,
2942 }, {
2943 .eraseblocks = { {256 * 1024, 1} },
2944 .block_erase = spi_block_erase_c7,
2945 }
2946 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002947 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002948 .write = spi_chip_write_256,
2949 .read = spi_chip_read,
2950 },
2951
2952 {
2953 .vendor = "Eon",
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002954 .name = "EN25F40",
2955 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002956 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002957 .model_id = EON_EN25F40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002958 .total_size = 512,
2959 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00002960 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerfaaa2b22009-06-22 10:06:28 +00002961 .tested = TEST_OK_PROBE,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002962 .probe = probe_spi_rdid,
2963 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00002964 .block_erasers =
2965 {
2966 {
Sean Nelson54596372010-01-09 05:30:14 +00002967 .eraseblocks = { {4 * 1024, 128} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00002968 .block_erase = spi_block_erase_20,
2969 }, {
Sean Nelson54596372010-01-09 05:30:14 +00002970 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00002971 .block_erase = spi_block_erase_d8,
2972 }, {
Sean Nelson54596372010-01-09 05:30:14 +00002973 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00002974 .block_erase = spi_block_erase_60,
2975 }, {
Sean Nelson54596372010-01-09 05:30:14 +00002976 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00002977 .block_erase = spi_block_erase_c7,
2978 },
2979 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002980 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002981 .write = spi_chip_write_256,
2982 .read = spi_chip_read,
2983 },
2984
2985 {
2986 .vendor = "Eon",
2987 .name = "EN25F80",
2988 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002989 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002990 .model_id = EON_EN25F80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002991 .total_size = 1024,
2992 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00002993 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002994 .tested = TEST_OK_PRE,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002995 .probe = probe_spi_rdid,
2996 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002997 .block_erasers =
2998 {
2999 {
3000 .eraseblocks = { {4 * 1024, 256} },
3001 .block_erase = spi_block_erase_20,
3002 }, {
3003 .eraseblocks = { {64 * 1024, 16} },
3004 .block_erase = spi_block_erase_d8,
3005 }, {
3006 .eraseblocks = { {1024 * 1024, 1} },
3007 .block_erase = spi_block_erase_60,
3008 }, {
3009 .eraseblocks = { {1024 * 1024, 1} },
3010 .block_erase = spi_block_erase_c7,
3011 }
3012 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003013 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003014 .write = spi_chip_write_256,
3015 .read = spi_chip_read,
3016 },
3017
3018 {
3019 .vendor = "Eon",
3020 .name = "EN25F16",
3021 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003022 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003023 .model_id = EON_EN25F16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003024 .total_size = 2048,
3025 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003026 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003027 .tested = TEST_UNTESTED,
3028 .probe = probe_spi_rdid,
3029 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003030 .block_erasers =
3031 {
3032 {
3033 .eraseblocks = { {4 * 1024, 512} },
3034 .block_erase = spi_block_erase_20,
3035 }, {
3036 .eraseblocks = { {64 * 1024, 32} },
3037 .block_erase = spi_block_erase_d8,
3038 }, {
3039 .eraseblocks = { {2 * 1024 * 1024, 1} },
3040 .block_erase = spi_block_erase_60,
3041 }, {
3042 .eraseblocks = { {2 * 1024 * 1024, 1} },
3043 .block_erase = spi_block_erase_c7,
3044 }
3045 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003046 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003047 .write = spi_chip_write_256,
3048 .read = spi_chip_read,
3049 },
3050
3051 {
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003052 .vendor = "Eon",
3053 .name = "EN25F32",
3054 .bustype = CHIP_BUSTYPE_SPI,
3055 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003056 .model_id = EON_EN25F32,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003057 .total_size = 4096,
3058 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003059 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003060 .tested = TEST_UNTESTED,
3061 .probe = probe_spi_rdid,
3062 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003063 .block_erasers =
3064 {
3065 {
3066 .eraseblocks = { {4 * 1024, 1024} },
3067 .block_erase = spi_block_erase_20,
3068 }, {
3069 .eraseblocks = { {64 * 1024, 64} },
3070 .block_erase = spi_block_erase_d8,
3071 }, {
3072 .eraseblocks = { {4 * 1024 * 1024, 1} },
3073 .block_erase = spi_block_erase_60,
3074 }, {
3075 .eraseblocks = { {4 * 1024 * 1024, 1} },
3076 .block_erase = spi_block_erase_c7,
3077 }
3078 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003079 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003080 .write = spi_chip_write_256,
3081 .read = spi_chip_read,
3082 },
3083
3084 {
Russ Dill3cd5a122010-03-05 08:44:11 +00003085 .vendor = "Eon",
3086 .name = "EN29F010",
3087 .bustype = CHIP_BUSTYPE_PARALLEL,
3088 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003089 .model_id = EON_EN29F010,
Russ Dill3cd5a122010-03-05 08:44:11 +00003090 .total_size = 128,
3091 .page_size = 128,
3092 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003093 .tested = TEST_OK_PRE,
Russ Dill3cd5a122010-03-05 08:44:11 +00003094 .probe = probe_jedec,
3095 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3096 .block_erasers =
3097 {
3098 {
3099 .eraseblocks = { {16 * 1024, 8} },
3100 .block_erase = erase_sector_jedec,
3101 },
3102 {
3103 .eraseblocks = { {128 * 1024, 1} },
3104 .block_erase = erase_chip_block_jedec,
3105 },
3106 },
3107 .write = write_jedec_1,
3108 .read = read_memmapped,
3109 },
3110
3111 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00003112 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003113 .name = "EN29F002(A)(N)B",
Urja Rannikko161b8852009-06-05 08:47:37 +00003114 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003115 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003116 .model_id = EON_EN29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003117 .total_size = 256,
3118 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00003119 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003120 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003121 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003122 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003123 .block_erasers =
3124 {
3125 {
3126 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00003127 {16 * 1024, 1},
Michael Karchere3cb0a12010-03-13 23:47:09 +00003128 {8 * 1024, 2},
3129 {32 * 1024, 1},
3130 {64 * 1024, 3},
Sean Nelson6b11ad22009-12-23 17:05:59 +00003131 },
3132 .block_erase = erase_sector_jedec,
3133 }, {
3134 .eraseblocks = { {256 * 1024, 1} },
3135 .block_erase = erase_chip_block_jedec,
3136 },
3137 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00003138 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003139 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00003140 },
3141
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003142 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00003143 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003144 .name = "EN29F002(A)(N)T",
Urja Rannikko161b8852009-06-05 08:47:37 +00003145 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003146 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003147 .model_id = EON_EN29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003148 .total_size = 256,
3149 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00003150 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003151 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003152 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003153 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003154 .block_erasers =
3155 {
3156 {
3157 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00003158 {64 * 1024, 3},
Michael Karchere3cb0a12010-03-13 23:47:09 +00003159 {32 * 1024, 1},
3160 {8 * 1024, 2},
3161 {16 * 1024, 1},
Sean Nelson6b11ad22009-12-23 17:05:59 +00003162 },
3163 .block_erase = erase_sector_jedec,
3164 }, {
3165 .eraseblocks = { {256 * 1024, 1} },
3166 .block_erase = erase_chip_block_jedec,
3167 },
3168 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00003169 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003170 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00003171 },
3172
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003173 {
3174 .vendor = "Fujitsu",
3175 .name = "MBM29F004BC",
Urja Rannikko038a3122009-06-28 19:19:25 +00003176 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003177 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003178 .model_id = FUJITSU_MBM29F004BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003179 .total_size = 512,
3180 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003181 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003182 .tested = TEST_UNTESTED,
3183 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003184 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003185 .block_erasers =
3186 {
3187 {
3188 .eraseblocks = {
3189 {16 * 1024, 1},
3190 {8 * 1024, 2},
3191 {32 * 1024, 1},
3192 {64 * 1024, 7},
3193 },
Sean Nelson35727f72010-01-28 23:55:12 +00003194 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003195 }, {
3196 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00003197 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003198 },
3199 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003200 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003201 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00003202 },
3203
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003204 {
3205 .vendor = "Fujitsu",
3206 .name = "MBM29F004TC",
Urja Rannikko038a3122009-06-28 19:19:25 +00003207 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003208 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003209 .model_id = FUJITSU_MBM29F004TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003210 .total_size = 512,
3211 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003212 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003213 .tested = TEST_UNTESTED,
3214 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003215 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003216 .block_erasers =
3217 {
3218 {
3219 .eraseblocks = {
3220 {64 * 1024, 7},
3221 {32 * 1024, 1},
3222 {8 * 1024, 2},
3223 {16 * 1024, 1},
3224 },
Sean Nelson35727f72010-01-28 23:55:12 +00003225 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003226 }, {
3227 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00003228 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003229 },
3230 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003231 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003232 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00003233 },
3234
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003235 {
Sean Nelson35727f72010-01-28 23:55:12 +00003236 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003237 .vendor = "Fujitsu",
3238 .name = "MBM29F400BC",
Urja Rannikko038a3122009-06-28 19:19:25 +00003239 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003240 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003241 .model_id = FUJITSU_MBM29F400BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003242 .total_size = 512,
3243 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003244 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00003245 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003246 .probe = probe_m29f400bt,
Maciej Pijankac6e11112009-06-03 14:46:22 +00003247 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (m29f400bt.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003248 .block_erasers =
3249 {
3250 {
3251 .eraseblocks = {
3252 {16 * 1024, 1},
3253 {8 * 1024, 2},
3254 {32 * 1024, 1},
3255 {64 * 1024, 7},
3256 },
3257 .block_erase = block_erase_m29f400bt,
3258 }, {
3259 .eraseblocks = { {512 * 1024, 1} },
3260 .block_erase = block_erase_chip_m29f400bt,
3261 },
3262 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00003263 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003264 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00003265 },
3266
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003267 {
3268 .vendor = "Fujitsu",
3269 .name = "MBM29F400TC",
Urja Rannikko038a3122009-06-28 19:19:25 +00003270 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003271 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003272 .model_id = FUJITSU_MBM29F400TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003273 .total_size = 512,
3274 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003275 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003276 .tested = TEST_UNTESTED,
3277 .probe = probe_m29f400bt,
Maciej Pijankac6e11112009-06-03 14:46:22 +00003278 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (m29f400bt.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003279 .block_erasers =
3280 {
3281 {
3282 .eraseblocks = {
3283 {64 * 1024, 7},
3284 {32 * 1024, 1},
3285 {8 * 1024, 2},
3286 {16 * 1024, 1},
3287 },
3288 .block_erase = block_erase_m29f400bt,
3289 }, {
3290 .eraseblocks = { {512 * 1024, 1} },
3291 .block_erase = block_erase_chip_m29f400bt,
3292 },
3293 },
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00003294 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003295 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00003296 },
3297
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003298 {
David Borgc96a8bd2010-06-21 16:12:22 +00003299 .vendor = "Hyundai",
3300 .name = "HY29F002T",
3301 .bustype = CHIP_BUSTYPE_PARALLEL,
3302 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003303 .model_id = HYUNDAI_HY29F002T,
David Borgc96a8bd2010-06-21 16:12:22 +00003304 .total_size = 256,
3305 .page_size = 256 * 1024,
3306 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003307 .tested = TEST_OK_PRE,
David Borgc96a8bd2010-06-21 16:12:22 +00003308 .probe = probe_jedec,
3309 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3310 .block_erasers =
3311 {
3312 {
3313 .eraseblocks = {
3314 {64 * 1024, 3},
3315 {32 * 1024, 1},
3316 {8 * 1024, 2},
3317 {16 * 1024, 1},
3318 },
3319 .block_erase = erase_sector_jedec,
3320 }, {
3321 .eraseblocks = { {256 * 1024, 1} },
3322 .block_erase = erase_chip_block_jedec,
3323 },
3324 },
3325 .write = write_jedec_1,
3326 .read = read_memmapped,
3327 },
3328
3329 {
3330 .vendor = "Hyundai",
3331 .name = "HY29F002B",
3332 .bustype = CHIP_BUSTYPE_PARALLEL,
3333 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003334 .model_id = HYUNDAI_HY29F002B,
David Borgc96a8bd2010-06-21 16:12:22 +00003335 .total_size = 256,
3336 .page_size = 256 * 1024,
3337 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
3338 .tested = TEST_UNTESTED,
3339 .probe = probe_jedec,
3340 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3341 .block_erasers =
3342 {
3343 {
3344 .eraseblocks = {
3345 {16 * 1024, 1},
3346 {8 * 1024, 2},
3347 {32 * 1024, 1},
3348 {64 * 1024, 3},
3349 },
3350 .block_erase = erase_sector_jedec,
3351 }, {
3352 .eraseblocks = { {256 * 1024, 1} },
3353 .block_erase = erase_chip_block_jedec,
3354 },
3355 },
3356 .write = write_jedec_1,
3357 .read = read_memmapped,
3358 },
3359
3360 {
Joshua Roysf1324e02010-09-16 00:51:51 +00003361 .vendor = "Hyundai",
3362 .name = "HY29F040A",
3363 .bustype = CHIP_BUSTYPE_PARALLEL,
3364 .manufacture_id = HYUNDAI_ID,
3365 .model_id = HYUNDAI_HY29F040A,
3366 .total_size = 512,
3367 .page_size = 64 * 1024,
3368 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
3369 .tested = TEST_UNTESTED,
3370 .probe = probe_jedec,
3371 .probe_timing = TIMING_ZERO,
3372 .block_erasers =
3373 {
3374 {
3375 .eraseblocks = { {64 * 1024, 8} },
3376 .block_erase = erase_sector_jedec,
3377 }, {
3378 .eraseblocks = { {512 * 1024, 1} },
3379 .block_erase = erase_chip_block_jedec,
3380 },
3381 },
3382 .write = write_jedec_1,
3383 .read = read_memmapped,
3384 },
3385
3386 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003387 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003388 .name = "28F001BN/BX-B",
Urja Rannikko161b8852009-06-05 08:47:37 +00003389 .bustype = CHIP_BUSTYPE_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00003390 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003391 .model_id = INTEL_28F001B,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00003392 .total_size = 128,
3393 .page_size = 128 * 1024, /* 8k + 2x4k + 112k */
Sean Nelsondee4a832010-03-22 04:39:31 +00003394 .tested = TEST_UNTESTED,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00003395 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003396 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00003397 .block_erasers =
3398 {
3399 {
3400 .eraseblocks = {
3401 {8 * 1024, 1},
3402 {4 * 1024, 2},
3403 {112 * 1024, 1},
3404 },
Sean Nelson28accc22010-03-19 18:47:06 +00003405 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00003406 },
3407 },
Sean Nelsondee4a832010-03-22 04:39:31 +00003408 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00003409 .read = read_memmapped,
3410 },
3411
3412 {
3413 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003414 .name = "28F001BN/BX-T",
Urja Rannikko161b8852009-06-05 08:47:37 +00003415 .bustype = CHIP_BUSTYPE_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00003416 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003417 .model_id = INTEL_28F001T,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00003418 .total_size = 128,
3419 .page_size = 128 * 1024, /* 112k + 2x4k + 8k */
Sean Nelsondee4a832010-03-22 04:39:31 +00003420 .tested = TEST_UNTESTED,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00003421 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003422 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00003423 .block_erasers =
3424 {
3425 {
3426 .eraseblocks = {
3427 {112 * 1024, 1},
3428 {4 * 1024, 2},
3429 {8 * 1024, 1},
3430 },
Sean Nelson28accc22010-03-19 18:47:06 +00003431 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00003432 },
3433 },
Sean Nelsondee4a832010-03-22 04:39:31 +00003434 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00003435 .read = read_memmapped,
3436 },
3437
3438 {
3439 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003440 .name = "28F002BC/BL/BV/BX-T",
Joshua Roysd97c0e02010-07-22 15:20:43 +00003441 .bustype = CHIP_BUSTYPE_PARALLEL,
3442 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003443 .model_id = INTEL_28F002T,
Joshua Roysd97c0e02010-07-22 15:20:43 +00003444 .total_size = 256,
3445 .page_size = 256 * 1024,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003446 .tested = TEST_OK_PRE,
Joshua Roysd97c0e02010-07-22 15:20:43 +00003447 .probe = probe_82802ab,
3448 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3449 .block_erasers =
3450 {
3451 {
3452 .eraseblocks = {
3453 {128 * 1024, 1},
3454 {96 * 1024, 1},
3455 {8 * 1024, 2},
3456 {16 * 1024, 1},
3457 },
3458 .block_erase = erase_block_82802ab,
3459 },
3460 },
3461 .write = write_82802ab,
3462 .read = read_memmapped,
3463 },
3464
3465 {
3466 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003467 .name = "28F008S3/S5/SC",
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00003468 .bustype = CHIP_BUSTYPE_PARALLEL,
3469 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003470 .model_id = INTEL_28F004S3,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00003471 .total_size = 512,
3472 .page_size = 256,
3473 .tested = TEST_UNTESTED,
3474 .probe = probe_82802ab,
3475 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00003476 .block_erasers =
3477 {
3478 {
3479 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00003480 .block_erase = erase_block_82802ab,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00003481 },
3482 },
Sean Nelsondee4a832010-03-22 04:39:31 +00003483 .unlock = unlock_28f004s5,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00003484 .write = write_82802ab,
3485 .read = read_memmapped,
3486 },
3487
3488 {
3489 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003490 .name = "28F004B5/BE/BV/BX-B",
Michael Karcherad0010a2010-04-03 10:27:08 +00003491 .bustype = CHIP_BUSTYPE_PARALLEL,
3492 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003493 .model_id = INTEL_28F004B,
Michael Karcherad0010a2010-04-03 10:27:08 +00003494 .total_size = 512,
3495 .page_size = 128 * 1024, /* maximal block size */
3496 .tested = TEST_UNTESTED,
3497 .probe = probe_82802ab,
3498 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3499 .block_erasers =
3500 {
3501 {
3502 .eraseblocks = {
3503 {16 * 1024, 1},
3504 {8 * 1024, 2},
3505 {96 * 1024, 1},
3506 {128 * 1024, 3},
3507 },
3508 .block_erase = erase_block_82802ab,
3509 },
3510 },
3511 .write = write_82802ab,
3512 .read = read_memmapped,
3513 },
3514
3515 {
3516 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003517 .name = "28F004B5/BE/BV/BX-T",
Michael Karcherad0010a2010-04-03 10:27:08 +00003518 .bustype = CHIP_BUSTYPE_PARALLEL,
3519 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003520 .model_id = INTEL_28F004T,
Michael Karcherad0010a2010-04-03 10:27:08 +00003521 .total_size = 512,
3522 .page_size = 128 * 1024, /* maximal block size */
3523 .tested = TEST_UNTESTED,
3524 .probe = probe_82802ab,
3525 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3526 .block_erasers =
3527 {
3528 {
3529 .eraseblocks = {
3530 {128 * 1024, 3},
3531 {96 * 1024, 1},
3532 {8 * 1024, 2},
3533 {16 * 1024, 1},
3534 },
3535 .block_erase = erase_block_82802ab,
3536 },
3537 },
3538 .write = write_82802ab,
3539 .read = read_memmapped,
3540 },
3541
3542 {
3543 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003544 .name = "28F400BV/BX/CE/CV-B",
Michael Karcherad0010a2010-04-03 10:27:08 +00003545 .bustype = CHIP_BUSTYPE_PARALLEL,
3546 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003547 .model_id = INTEL_28F400B,
Michael Karcherad0010a2010-04-03 10:27:08 +00003548 .total_size = 512,
3549 .page_size = 128 * 1024, /* maximal block size */
3550 .feature_bits = FEATURE_ADDR_SHIFTED,
3551 .tested = TEST_UNTESTED,
3552 .probe = probe_82802ab,
3553 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3554 .block_erasers =
3555 {
3556 {
3557 .eraseblocks = {
3558 {16 * 1024, 1},
3559 {8 * 1024, 2},
3560 {96 * 1024, 1},
3561 {128 * 1024, 3},
3562 },
3563 .block_erase = erase_block_82802ab,
3564 },
3565 },
3566 .write = write_82802ab,
3567 .read = read_memmapped,
3568 },
3569
3570 {
3571 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003572 .name = "28F400BV/BX/CE/CV-T",
Michael Karcherad0010a2010-04-03 10:27:08 +00003573 .bustype = CHIP_BUSTYPE_PARALLEL,
3574 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003575 .model_id = INTEL_28F400T,
Michael Karcherad0010a2010-04-03 10:27:08 +00003576 .total_size = 512,
3577 .page_size = 128 * 1024, /* maximal block size */
3578 .feature_bits = FEATURE_ADDR_SHIFTED,
3579 .tested = TEST_UNTESTED,
3580 .probe = probe_82802ab,
3581 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3582 .block_erasers =
3583 {
3584 {
3585 .eraseblocks = {
3586 {128 * 1024, 3},
3587 {96 * 1024, 1},
3588 {8 * 1024, 2},
3589 {16 * 1024, 1},
3590 },
3591 .block_erase = erase_block_82802ab,
3592 },
3593 },
3594 .write = write_82802ab,
3595 .read = read_memmapped,
3596 },
3597
3598 {
3599 .vendor = "Intel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003600 .name = "82802AB",
Mateusz Murawskie33890d2009-06-12 11:45:10 +00003601 .bustype = CHIP_BUSTYPE_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003602 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003603 .model_id = INTEL_82802AB,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003604 .total_size = 512,
3605 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00003606 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +00003607 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003608 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003609 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00003610 .block_erasers =
3611 {
3612 {
3613 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00003614 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00003615 },
3616 },
Sean Nelson28accc22010-03-19 18:47:06 +00003617 .unlock = unlock_82802ab,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003618 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003619 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00003620 },
3621
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003622 {
3623 .vendor = "Intel",
3624 .name = "82802AC",
Mateusz Murawskie33890d2009-06-12 11:45:10 +00003625 .bustype = CHIP_BUSTYPE_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003626 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003627 .model_id = INTEL_82802AC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003628 .total_size = 1024,
3629 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00003630 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +00003631 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003632 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003633 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00003634 .block_erasers =
3635 {
3636 {
3637 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +00003638 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00003639 },
3640 },
Sean Nelson28accc22010-03-19 18:47:06 +00003641 .unlock = unlock_82802ab,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003642 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003643 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00003644 },
3645
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003646 {
3647 .vendor = "Macronix",
3648 .name = "MX25L512",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00003649 .bustype = CHIP_BUSTYPE_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003650 .manufacture_id = MACRONIX_ID,
3651 .model_id = MACRONIX_MX25L512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003652 .total_size = 64,
3653 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00003654 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003655 .tested = TEST_UNTESTED,
3656 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003657 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00003658 .block_erasers =
3659 {
3660 {
3661 .eraseblocks = { {4 * 1024, 16} },
3662 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00003663 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00003664 .eraseblocks = { {64 * 1024, 1} },
3665 .block_erase = spi_block_erase_52,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00003666 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00003667 .eraseblocks = { {64 * 1024, 1} },
3668 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00003669 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00003670 .eraseblocks = { {64 * 1024, 1} },
3671 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00003672 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00003673 .eraseblocks = { {64 * 1024, 1} },
3674 .block_erase = spi_block_erase_c7,
3675 },
3676 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003677 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00003678 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003679 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00003680 },
3681
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003682 {
3683 .vendor = "Macronix",
3684 .name = "MX25L1005",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00003685 .bustype = CHIP_BUSTYPE_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003686 .manufacture_id = MACRONIX_ID,
3687 .model_id = MACRONIX_MX25L1005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003688 .total_size = 128,
3689 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00003690 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003691 .tested = TEST_UNTESTED,
3692 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003693 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00003694 .block_erasers =
3695 {
3696 {
3697 .eraseblocks = { {4 * 1024, 32} },
3698 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00003699 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00003700 .eraseblocks = { {64 * 1024, 2} },
3701 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00003702 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00003703 .eraseblocks = { {128 * 1024, 1} },
3704 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00003705 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00003706 .eraseblocks = { {128 * 1024, 1} },
3707 .block_erase = spi_block_erase_c7,
3708 },
3709 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003710 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00003711 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003712 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00003713 },
3714
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003715 {
3716 .vendor = "Macronix",
3717 .name = "MX25L2005",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00003718 .bustype = CHIP_BUSTYPE_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003719 .manufacture_id = MACRONIX_ID,
3720 .model_id = MACRONIX_MX25L2005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003721 .total_size = 256,
3722 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00003723 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003724 .tested = TEST_UNTESTED,
3725 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003726 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00003727 .block_erasers =
3728 {
3729 {
3730 .eraseblocks = { {4 * 1024, 64} },
3731 .block_erase = spi_block_erase_20,
3732 }, {
3733 .eraseblocks = { {64 * 1024, 4} },
3734 .block_erase = spi_block_erase_52,
3735 }, {
3736 .eraseblocks = { {64 * 1024, 4} },
3737 .block_erase = spi_block_erase_d8,
3738 }, {
3739 .eraseblocks = { {256 * 1024, 1} },
3740 .block_erase = spi_block_erase_60,
3741 }, {
3742 .eraseblocks = { {256 * 1024, 1} },
3743 .block_erase = spi_block_erase_c7,
3744 },
3745 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003746 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00003747 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003748 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00003749 },
3750
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003751 {
3752 .vendor = "Macronix",
3753 .name = "MX25L4005",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00003754 .bustype = CHIP_BUSTYPE_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003755 .manufacture_id = MACRONIX_ID,
3756 .model_id = MACRONIX_MX25L4005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003757 .total_size = 512,
3758 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00003759 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003760 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003761 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003762 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00003763 .block_erasers =
3764 {
3765 {
3766 .eraseblocks = { {4 * 1024, 128} },
3767 .block_erase = spi_block_erase_20,
3768 }, {
3769 .eraseblocks = { {64 * 1024, 8} },
3770 .block_erase = spi_block_erase_52,
3771 }, {
3772 .eraseblocks = { {64 * 1024, 8} },
3773 .block_erase = spi_block_erase_d8,
3774 }, {
3775 .eraseblocks = { {512 * 1024, 1} },
3776 .block_erase = spi_block_erase_60,
3777 }, {
3778 .eraseblocks = { {512 * 1024, 1} },
3779 .block_erase = spi_block_erase_c7,
3780 },
3781 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003782 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00003783 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003784 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00003785 },
3786
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003787 {
3788 .vendor = "Macronix",
3789 .name = "MX25L8005",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00003790 .bustype = CHIP_BUSTYPE_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003791 .manufacture_id = MACRONIX_ID,
3792 .model_id = MACRONIX_MX25L8005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003793 .total_size = 1024,
3794 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00003795 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003796 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003797 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003798 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00003799 .block_erasers =
3800 {
3801 {
3802 .eraseblocks = { {4 * 1024, 256} },
3803 .block_erase = spi_block_erase_20,
3804 }, {
3805 .eraseblocks = { {64 * 1024, 16} },
3806 .block_erase = spi_block_erase_52,
3807 }, {
3808 .eraseblocks = { {64 * 1024, 16} },
3809 .block_erase = spi_block_erase_d8,
3810 }, {
3811 .eraseblocks = { {1024 * 1024, 1} },
3812 .block_erase = spi_block_erase_60,
3813 }, {
3814 .eraseblocks = { {1024 * 1024, 1} },
3815 .block_erase = spi_block_erase_c7,
3816 },
3817 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003818 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00003819 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003820 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00003821 },
3822
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003823 {
3824 .vendor = "Macronix",
3825 .name = "MX25L1605",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00003826 .bustype = CHIP_BUSTYPE_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003827 .manufacture_id = MACRONIX_ID,
3828 .model_id = MACRONIX_MX25L1605,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003829 .total_size = 2048,
3830 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00003831 .feature_bits = FEATURE_WRSR_WREN,
Sven Schnelle4bd8a402011-03-07 10:59:06 +00003832 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003833 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003834 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00003835 .block_erasers =
3836 {
3837 {
3838 .eraseblocks = { {4 * 1024, 512} },
3839 .block_erase = spi_block_erase_20, /* This erase function has 64k blocksize for eLiteFlash */
3840 }, {
3841 .eraseblocks = { {64 * 1024, 32} }, /* Not supported in MX25L1605 (eLiteFlash) and MX25L1605D */
3842 .block_erase = spi_block_erase_52,
3843 }, {
3844 .eraseblocks = { {64 * 1024, 32} },
3845 .block_erase = spi_block_erase_d8,
3846 }, {
3847 .eraseblocks = { {2 * 1024 * 1024, 1} },
3848 .block_erase = spi_block_erase_60,
3849 }, {
3850 .eraseblocks = { {2 * 1024 * 1024, 1} },
3851 .block_erase = spi_block_erase_c7,
3852 },
3853 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003854 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00003855 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003856 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00003857 },
3858
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003859 {
3860 .vendor = "Macronix",
Stephan Guillouxf5c70902009-04-19 23:04:00 +00003861 .name = "MX25L1635D",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00003862 .bustype = CHIP_BUSTYPE_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003863 .manufacture_id = MACRONIX_ID,
3864 .model_id = MACRONIX_MX25L1635D,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00003865 .total_size = 2048,
3866 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00003867 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00003868 .tested = TEST_UNTESTED,
3869 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003870 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003871 .block_erasers =
3872 {
3873 {
3874 .eraseblocks = { {4 * 1024, 512} },
3875 .block_erase = spi_block_erase_20,
3876 }, {
3877 .eraseblocks = { {64 * 1024, 32} },
3878 .block_erase = spi_block_erase_d8,
3879 }, {
3880 .eraseblocks = { {2 * 1024 * 1024, 1} },
3881 .block_erase = spi_block_erase_60,
3882 }, {
3883 .eraseblocks = { {2 * 1024 * 1024, 1} },
3884 .block_erase = spi_block_erase_c7,
3885 }
3886 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003887 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00003888 .write = spi_chip_write_256,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00003889 .read = spi_chip_read,
3890 },
Stephan Guillouxfd315502009-04-20 22:54:13 +00003891
Stephan Guillouxf5c70902009-04-19 23:04:00 +00003892 {
3893 .vendor = "Macronix",
Stephan Guilloux3611b802010-09-13 19:59:28 +00003894 .name = "MX25L1635E",
3895 .bustype = CHIP_BUSTYPE_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003896 .manufacture_id = MACRONIX_ID,
3897 .model_id = MACRONIX_MX25L1635E,
Stephan Guilloux3611b802010-09-13 19:59:28 +00003898 .total_size = 2048,
3899 .page_size = 256,
3900 .feature_bits = FEATURE_WRSR_WREN,
3901 .tested = TEST_UNTESTED,
3902 .probe = probe_spi_rdid,
3903 .probe_timing = TIMING_ZERO,
3904 .block_erasers =
3905 {
3906 {
3907 .eraseblocks = { {4 * 1024, 512} },
3908 .block_erase = spi_block_erase_20,
3909 }, {
3910 .eraseblocks = { {64 * 1024, 32} },
3911 .block_erase = spi_block_erase_d8,
3912 }, {
3913 .eraseblocks = { {2 * 1024 * 1024, 1} },
3914 .block_erase = spi_block_erase_60,
3915 }, {
3916 .eraseblocks = { {2 * 1024 * 1024, 1} },
3917 .block_erase = spi_block_erase_c7,
3918 }
3919 },
3920 .unlock = spi_disable_blockprotect,
3921 .write = spi_chip_write_256,
3922 .read = spi_chip_read,
3923 },
3924
3925 {
3926 .vendor = "Macronix",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003927 .name = "MX25L3205",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00003928 .bustype = CHIP_BUSTYPE_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003929 .manufacture_id = MACRONIX_ID,
3930 .model_id = MACRONIX_MX25L3205,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003931 .total_size = 4096,
3932 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00003933 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00003934 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003935 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003936 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003937 .block_erasers =
3938 {
3939 {
3940 .eraseblocks = { {4 * 1024, 1024} },
3941 .block_erase = spi_block_erase_20,
3942 }, {
3943 .eraseblocks = { {4 * 1024, 1024} },
3944 .block_erase = spi_block_erase_d8,
3945 }, {
3946 .eraseblocks = { {4 * 1024 * 1024, 1} },
3947 .block_erase = spi_block_erase_60,
3948 }, {
3949 .eraseblocks = { {4 * 1024 * 1024, 1} },
3950 .block_erase = spi_block_erase_c7,
3951 },
3952 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003953 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00003954 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003955 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00003956 },
3957
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003958 {
3959 .vendor = "Macronix",
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00003960 .name = "MX25L3235D",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00003961 .bustype = CHIP_BUSTYPE_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003962 .manufacture_id = MACRONIX_ID,
3963 .model_id = MACRONIX_MX25L3235D,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00003964 .total_size = 4096,
3965 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00003966 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00003967 .tested = TEST_UNTESTED,
3968 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003969 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003970 .block_erasers =
3971 {
3972 {
3973 .eraseblocks = { {4 * 1024, 1024} },
3974 .block_erase = spi_block_erase_20,
3975 }, {
3976 .eraseblocks = { {64 * 1024, 64} },
3977 .block_erase = spi_block_erase_d8,
3978 }, {
3979 .eraseblocks = { {4 * 1024 * 1024, 1} },
3980 .block_erase = spi_block_erase_60,
3981 }, {
3982 .eraseblocks = { {4 * 1024 * 1024, 1} },
3983 .block_erase = spi_block_erase_c7,
3984 }
3985 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003986 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00003987 .write = spi_chip_write_256,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00003988 .read = spi_chip_read,
3989 },
3990
3991 {
3992 .vendor = "Macronix",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003993 .name = "MX25L6405",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00003994 .bustype = CHIP_BUSTYPE_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003995 .manufacture_id = MACRONIX_ID,
3996 .model_id = MACRONIX_MX25L6405,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003997 .total_size = 8192,
3998 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00003999 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger452b3e32009-06-22 11:14:43 +00004000 .tested = TEST_OK_PROBE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004001 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004002 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004003 .block_erasers =
4004 {
4005 {
4006 .eraseblocks = { {64 * 1024, 128} },
4007 .block_erase = spi_block_erase_20,
4008 }, {
4009 .eraseblocks = { {64 * 1024, 128} },
4010 .block_erase = spi_block_erase_d8,
4011 }, {
4012 .eraseblocks = { {8 * 1024 * 1024, 1} },
4013 .block_erase = spi_block_erase_60,
4014 }, {
4015 .eraseblocks = { {8 * 1024 * 1024, 1} },
4016 .block_erase = spi_block_erase_c7,
4017 }
4018 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004019 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004020 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004021 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00004022 },
4023
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004024 {
4025 .vendor = "Macronix",
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00004026 .name = "MX25L12805",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004027 .bustype = CHIP_BUSTYPE_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004028 .manufacture_id = MACRONIX_ID,
4029 .model_id = MACRONIX_MX25L12805,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00004030 .total_size = 16384,
4031 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004032 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00004033 .tested = TEST_UNTESTED,
4034 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004035 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004036 .block_erasers =
4037 {
4038 {
4039 .eraseblocks = { {4 * 1024, 4096} },
4040 .block_erase = spi_block_erase_20,
4041 }, {
4042 .eraseblocks = { {64 * 1024, 256} },
4043 .block_erase = spi_block_erase_d8,
4044 }, {
4045 .eraseblocks = { {16 * 1024 * 1024, 1} },
4046 .block_erase = spi_block_erase_60,
4047 }, {
4048 .eraseblocks = { {16 * 1024 * 1024, 1} },
4049 .block_erase = spi_block_erase_c7,
4050 }
4051 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004052 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004053 .write = spi_chip_write_256,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00004054 .read = spi_chip_read,
4055 },
4056
4057 {
4058 .vendor = "Macronix",
Mark Panajotovic502a9132009-08-24 01:42:24 +00004059 .name = "MX29F001B",
4060 .bustype = CHIP_BUSTYPE_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004061 .manufacture_id = MACRONIX_ID,
4062 .model_id = MACRONIX_MX29F001B,
Mark Panajotovic502a9132009-08-24 01:42:24 +00004063 .total_size = 128,
4064 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004065 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
4066 .tested = TEST_UNTESTED,
4067 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00004068 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004069 .block_erasers =
4070 {
4071 {
4072 .eraseblocks = {
4073 {8 * 1024, 1},
4074 {4 * 1024, 2},
4075 {8 * 1024, 2},
4076 {32 * 1024, 1},
4077 {64 * 1024, 1},
4078 },
Sean Nelson35727f72010-01-28 23:55:12 +00004079 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00004080 }, {
4081 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004082 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00004083 }
4084 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004085 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00004086 .read = read_memmapped,
4087 },
4088
4089 {
4090 .vendor = "Macronix",
4091 .name = "MX29F001T",
4092 .bustype = CHIP_BUSTYPE_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004093 .manufacture_id = MACRONIX_ID,
4094 .model_id = MACRONIX_MX29F001T,
Mark Panajotovic502a9132009-08-24 01:42:24 +00004095 .total_size = 128,
4096 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004097 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
4098 .tested = TEST_UNTESTED,
4099 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00004100 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004101 .block_erasers =
4102 {
4103 {
4104 .eraseblocks = {
4105 {64 * 1024, 1},
4106 {32 * 1024, 1},
4107 {8 * 1024, 2},
4108 {4 * 1024, 2},
4109 {8 * 1024, 1},
4110 },
Sean Nelson35727f72010-01-28 23:55:12 +00004111 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00004112 }, {
4113 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004114 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00004115 }
4116 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004117 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00004118 .read = read_memmapped,
4119 },
4120
4121 {
4122 .vendor = "Macronix",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004123 .name = "MX29F002B",
Urja Rannikko038a3122009-06-28 19:19:25 +00004124 .bustype = CHIP_BUSTYPE_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004125 .manufacture_id = MACRONIX_ID,
4126 .model_id = MACRONIX_MX29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004127 .total_size = 256,
4128 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004129 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004130 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00004131 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00004132 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004133 .block_erasers =
4134 {
4135 {
4136 .eraseblocks = {
4137 {16 * 1024, 1},
4138 {8 * 1024, 2},
4139 {32 * 1024, 1},
4140 {64 * 1024, 3},
4141 },
Sean Nelson35727f72010-01-28 23:55:12 +00004142 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004143 }, {
4144 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004145 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004146 },
4147 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004148 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004149 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00004150 },
4151
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004152 {
4153 .vendor = "Macronix",
4154 .name = "MX29F002T",
Urja Rannikko038a3122009-06-28 19:19:25 +00004155 .bustype = CHIP_BUSTYPE_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004156 .manufacture_id = MACRONIX_ID,
4157 .model_id = MACRONIX_MX29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004158 .total_size = 256,
4159 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004160 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004161 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +00004162 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00004163 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004164 .block_erasers =
4165 {
4166 {
4167 .eraseblocks = {
4168 {64 * 1024, 3},
4169 {32 * 1024, 1},
4170 {8 * 1024, 2},
4171 {16 * 1024, 1},
4172 },
Sean Nelson35727f72010-01-28 23:55:12 +00004173 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004174 }, {
4175 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004176 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004177 },
4178 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004179 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004180 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00004181 },
4182
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004183 {
4184 .vendor = "Macronix",
Joshua Roysf1324e02010-09-16 00:51:51 +00004185 .name = "MX29F040",
4186 .bustype = CHIP_BUSTYPE_PARALLEL,
4187 .manufacture_id = MACRONIX_ID,
4188 .model_id = MACRONIX_MX29F040,
4189 .total_size = 512,
4190 .page_size = 64 * 1024,
4191 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
4192 .tested = TEST_UNTESTED,
4193 .probe = probe_jedec,
4194 .probe_timing = TIMING_ZERO,
4195 .block_erasers =
4196 {
4197 {
4198 .eraseblocks = { {64 * 1024, 8} },
4199 .block_erase = erase_sector_jedec,
4200 }, {
4201 .eraseblocks = { {512 * 1024, 1} },
4202 .block_erase = erase_chip_block_jedec,
4203 },
4204 },
4205 .write = write_jedec_1,
4206 .read = read_memmapped,
4207 },
4208
4209 {
4210 .vendor = "Macronix",
Carl-Daniel Hailfinger350a0c32009-07-24 13:59:27 +00004211 .name = "MX29LV040",
Urja Rannikko038a3122009-06-28 19:19:25 +00004212 .bustype = CHIP_BUSTYPE_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004213 .manufacture_id = MACRONIX_ID,
4214 .model_id = MACRONIX_MX29LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004215 .total_size = 512,
4216 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004217 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
4218 .tested = TEST_UNTESTED,
4219 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00004220 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004221 .block_erasers =
4222 {
4223 {
4224 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson35727f72010-01-28 23:55:12 +00004225 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00004226 }, {
4227 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004228 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00004229 },
4230 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004231 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004232 .read = read_memmapped,
Carl-Daniel Hailfinger7de86392008-12-10 10:32:05 +00004233 },
4234
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004235 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00004236 .vendor = "MoselVitelic",
4237 .name = "V29C51000B",
4238 .bustype = CHIP_BUSTYPE_PARALLEL,
4239 .manufacture_id = SYNCMOS_MVC_ID,
4240 .model_id = MVC_V29C51000B,
4241 .total_size = 64,
4242 .page_size = 512,
4243 .feature_bits = FEATURE_EITHER_RESET,
4244 .tested = TEST_UNTESTED,
4245 .probe = probe_jedec,
4246 .probe_timing = TIMING_ZERO,
4247 .block_erasers =
4248 {
4249 {
4250 .eraseblocks = { {512, 128} },
4251 .block_erase = erase_sector_jedec,
4252 }, {
4253 .eraseblocks = { {64 * 1024, 1} },
4254 .block_erase = erase_chip_block_jedec,
4255 },
4256 },
4257 .write = write_jedec_1,
4258 .read = read_memmapped,
4259 },
4260
4261 {
4262 .vendor = "MoselVitelic",
4263 .name = "V29C51000T",
4264 .bustype = CHIP_BUSTYPE_PARALLEL,
4265 .manufacture_id = SYNCMOS_MVC_ID,
4266 .model_id = MVC_V29C51000T,
4267 .total_size = 64,
4268 .page_size = 512,
4269 .feature_bits = FEATURE_EITHER_RESET,
4270 .tested = TEST_UNTESTED,
4271 .probe = probe_jedec,
4272 .probe_timing = TIMING_ZERO,
4273 .block_erasers =
4274 {
4275 {
4276 .eraseblocks = { {512, 128} },
4277 .block_erase = erase_sector_jedec,
4278 }, {
4279 .eraseblocks = { {64 * 1024, 1} },
4280 .block_erase = erase_chip_block_jedec,
4281 },
4282 },
4283 .write = write_jedec_1,
4284 .read = read_memmapped,
4285 },
4286
4287 {
4288 .vendor = "MoselVitelic",
4289 .name = "V29C51400B",
4290 .bustype = CHIP_BUSTYPE_PARALLEL,
4291 .manufacture_id = SYNCMOS_MVC_ID,
4292 .model_id = MVC_V29C51400B,
4293 .total_size = 512,
4294 .page_size = 1024,
4295 .feature_bits = FEATURE_EITHER_RESET,
4296 .tested = TEST_UNTESTED,
4297 .probe = probe_jedec,
4298 .probe_timing = TIMING_ZERO,
4299 .block_erasers =
4300 {
4301 {
4302 .eraseblocks = { {1024, 512} },
4303 .block_erase = erase_sector_jedec,
4304 }, {
4305 .eraseblocks = { {512 * 1024, 1} },
4306 .block_erase = erase_chip_block_jedec,
4307 },
4308 },
4309 .write = write_jedec_1,
4310 .read = read_memmapped,
4311 },
4312
4313 {
4314 .vendor = "MoselVitelic",
4315 .name = "V29C51400T",
4316 .bustype = CHIP_BUSTYPE_PARALLEL,
4317 .manufacture_id = SYNCMOS_MVC_ID,
4318 .model_id = MVC_V29C51400T,
4319 .total_size = 512,
4320 .page_size = 1024,
4321 .feature_bits = FEATURE_EITHER_RESET,
4322 .tested = TEST_UNTESTED,
4323 .probe = probe_jedec,
4324 .probe_timing = TIMING_ZERO,
4325 .block_erasers =
4326 {
4327 {
4328 .eraseblocks = { {1024, 512} },
4329 .block_erase = erase_sector_jedec,
4330 }, {
4331 .eraseblocks = { {512 * 1024, 1} },
4332 .block_erase = erase_chip_block_jedec,
4333 },
4334 },
4335 .write = write_jedec_1,
4336 .read = read_memmapped,
4337 },
4338
4339 {
4340 .vendor = "MoselVitelic",
4341 .name = "V29LC51000",
4342 .bustype = CHIP_BUSTYPE_PARALLEL,
4343 .manufacture_id = SYNCMOS_MVC_ID,
4344 .model_id = MVC_V29LC51000,
4345 .total_size = 64,
4346 .page_size = 512,
4347 .feature_bits = FEATURE_EITHER_RESET,
4348 .tested = TEST_UNTESTED,
4349 .probe = probe_jedec,
4350 .probe_timing = TIMING_ZERO,
4351 .block_erasers =
4352 {
4353 {
4354 .eraseblocks = { {512, 128} },
4355 .block_erase = erase_sector_jedec,
4356 }, {
4357 .eraseblocks = { {64 * 1024, 1} },
4358 .block_erase = erase_chip_block_jedec,
4359 },
4360 },
4361 .write = write_jedec_1,
4362 .read = read_memmapped,
4363 },
4364
4365 {
4366 .vendor = "MoselVitelic",
4367 .name = "V29LC51001",
4368 .bustype = CHIP_BUSTYPE_PARALLEL,
4369 .manufacture_id = SYNCMOS_MVC_ID,
4370 .model_id = MVC_V29LC51001,
4371 .total_size = 128,
4372 .page_size = 512,
4373 .feature_bits = FEATURE_EITHER_RESET,
4374 .tested = TEST_UNTESTED,
4375 .probe = probe_jedec,
4376 .probe_timing = TIMING_ZERO,
4377 .block_erasers =
4378 {
4379 {
4380 .eraseblocks = { {512, 256} },
4381 .block_erase = erase_sector_jedec,
4382 }, {
4383 .eraseblocks = { {128 * 1024, 1} },
4384 .block_erase = erase_chip_block_jedec,
4385 },
4386 },
4387 .write = write_jedec_1,
4388 .read = read_memmapped,
4389 },
4390
4391 {
4392 .vendor = "MoselVitelic",
4393 .name = "V29LC51002",
4394 .bustype = CHIP_BUSTYPE_PARALLEL,
4395 .manufacture_id = SYNCMOS_MVC_ID,
4396 .model_id = MVC_V29LC51002,
4397 .total_size = 256,
4398 .page_size = 512,
4399 .feature_bits = FEATURE_EITHER_RESET,
4400 .tested = TEST_UNTESTED,
4401 .probe = probe_jedec,
4402 .probe_timing = TIMING_ZERO,
4403 .block_erasers =
4404 {
4405 {
4406 .eraseblocks = { {512, 512} },
4407 .block_erase = erase_sector_jedec,
4408 }, {
4409 .eraseblocks = { {256 * 1024, 1} },
4410 .block_erase = erase_chip_block_jedec,
4411 },
4412 },
4413 .write = write_jedec_1,
4414 .read = read_memmapped,
4415 },
4416
4417 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004418 .vendor = "Numonyx",
4419 .name = "M25PE10",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004420 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004421 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00004422 .model_id = ST_M25PE10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004423 .total_size = 128,
4424 .page_size = 256,
4425 .tested = TEST_UNTESTED,
4426 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004427 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00004428 .block_erasers =
4429 {
4430 {
4431 .eraseblocks = { {4 * 1024, 32} },
4432 .block_erase = spi_block_erase_20,
4433 }, {
4434 .eraseblocks = { {64 * 1024, 2} },
4435 .block_erase = spi_block_erase_d8,
4436 }, {
4437 .eraseblocks = { {128 * 1024, 1} },
4438 .block_erase = spi_block_erase_c7,
4439 }
4440 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004441 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004442 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004443 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00004444 },
4445
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004446 {
4447 .vendor = "Numonyx",
4448 .name = "M25PE20",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004449 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004450 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00004451 .model_id = ST_M25PE20,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004452 .total_size = 256,
4453 .page_size = 256,
4454 .tested = TEST_UNTESTED,
4455 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004456 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00004457 .block_erasers =
4458 {
4459 {
4460 .eraseblocks = { {4 * 1024, 64} },
4461 .block_erase = spi_block_erase_20,
4462 }, {
4463 .eraseblocks = { {64 * 1024, 4} },
4464 .block_erase = spi_block_erase_d8,
4465 }, {
4466 .eraseblocks = { {256 * 1024, 1} },
4467 .block_erase = spi_block_erase_c7,
4468 }
4469 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004470 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004471 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004472 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00004473 },
4474
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004475 {
4476 .vendor = "Numonyx",
4477 .name = "M25PE40",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004478 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004479 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00004480 .model_id = ST_M25PE40,
Sean Nelson5643c072010-01-19 03:23:07 +00004481 .total_size = 512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004482 .page_size = 256,
4483 .tested = TEST_UNTESTED,
4484 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004485 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00004486 .block_erasers =
4487 {
4488 {
4489 .eraseblocks = { {4 * 1024, 128} },
4490 .block_erase = spi_block_erase_20,
4491 }, {
4492 .eraseblocks = { {64 * 1024, 8} },
4493 .block_erase = spi_block_erase_d8,
4494 }, {
4495 .eraseblocks = { {512 * 1024, 1} },
4496 .block_erase = spi_block_erase_c7,
4497 }
4498 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004499 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004500 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004501 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00004502 },
4503
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004504 {
4505 .vendor = "Numonyx",
4506 .name = "M25PE80",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004507 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004508 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00004509 .model_id = ST_M25PE80,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004510 .total_size = 1024,
4511 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004512 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004513 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004514 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00004515 .block_erasers =
4516 {
4517 {
4518 .eraseblocks = { {4 * 1024, 256} },
4519 .block_erase = spi_block_erase_20,
4520 }, {
4521 .eraseblocks = { {64 * 1024, 16} },
4522 .block_erase = spi_block_erase_d8,
4523 }, {
4524 .eraseblocks = { {1024 * 1024, 1} },
4525 .block_erase = spi_block_erase_c7,
4526 }
4527 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004528 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004529 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004530 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00004531 },
4532
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004533 {
4534 .vendor = "Numonyx",
4535 .name = "M25PE16",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004536 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004537 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00004538 .model_id = ST_M25PE16,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004539 .total_size = 2048,
4540 .page_size = 256,
4541 .tested = TEST_UNTESTED,
4542 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004543 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00004544 .block_erasers =
4545 {
4546 {
4547 .eraseblocks = { {4 * 1024, 512} },
4548 .block_erase = spi_block_erase_20,
4549 }, {
4550 .eraseblocks = { {64 * 1024, 32} },
4551 .block_erase = spi_block_erase_d8,
4552 }, {
4553 .eraseblocks = { {2 * 1024 * 1024, 1} },
4554 .block_erase = spi_block_erase_c7,
4555 }
4556 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004557 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004558 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004559 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00004560 },
4561
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004562 {
4563 .vendor = "PMC",
4564 .name = "Pm25LV010",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004565 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004566 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004567 .model_id = PMC_PM25LV010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004568 .total_size = 128,
4569 .page_size = 256,
4570 .tested = TEST_UNTESTED,
4571 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004572 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00004573 .block_erasers =
4574 {
4575 {
4576 .eraseblocks = { {4 * 1024, 32} },
4577 .block_erase = spi_block_erase_d7,
4578 }, {
4579 .eraseblocks = { {32 * 1024, 4} },
4580 .block_erase = spi_block_erase_d8,
4581 }, {
4582 .eraseblocks = { {128 * 1024, 1} },
4583 .block_erase = spi_block_erase_c7,
4584 }
4585 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004586 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004587 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004588 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00004589 },
4590
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004591 {
4592 .vendor = "PMC",
4593 .name = "Pm25LV016B",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004594 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004595 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004596 .model_id = PMC_PM25LV016B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004597 .total_size = 2048,
4598 .page_size = 256,
4599 .tested = TEST_UNTESTED,
4600 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004601 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00004602 .block_erasers =
4603 {
4604 {
4605 .eraseblocks = { {4 * 1024, 512} },
4606 .block_erase = spi_block_erase_d7,
4607 }, {
4608 .eraseblocks = { {4 * 1024, 512} },
4609 .block_erase = spi_block_erase_20,
4610 }, {
4611 .eraseblocks = { {64 * 1024, 32} },
4612 .block_erase = spi_block_erase_d8,
4613 }, {
4614 .eraseblocks = { {2 * 1024 * 1024, 1} },
4615 .block_erase = spi_block_erase_60,
4616 }, {
4617 .eraseblocks = { {2 * 1024 * 1024, 1} },
4618 .block_erase = spi_block_erase_c7,
4619 }
4620 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004621 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004622 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004623 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00004624 },
4625
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004626 {
4627 .vendor = "PMC",
4628 .name = "Pm25LV020",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004629 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004630 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004631 .model_id = PMC_PM25LV020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004632 .total_size = 256,
4633 .page_size = 256,
4634 .tested = TEST_UNTESTED,
4635 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004636 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00004637 .block_erasers =
4638 {
4639 {
4640 .eraseblocks = { {4 * 1024, 64} },
4641 .block_erase = spi_block_erase_d7,
4642 }, {
4643 .eraseblocks = { {64 * 1024, 4} },
4644 .block_erase = spi_block_erase_d8,
4645 }, {
4646 .eraseblocks = { {256 * 1024, 1} },
4647 .block_erase = spi_block_erase_c7,
4648 }
4649 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004650 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004651 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004652 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00004653 },
4654
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004655 {
4656 .vendor = "PMC",
4657 .name = "Pm25LV040",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004658 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004659 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004660 .model_id = PMC_PM25LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004661 .total_size = 512,
4662 .page_size = 256,
4663 .tested = TEST_UNTESTED,
4664 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004665 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00004666 .block_erasers =
4667 {
4668 {
4669 .eraseblocks = { {4 * 1024, 128} },
4670 .block_erase = spi_block_erase_d7,
4671 }, {
4672 .eraseblocks = { {64 * 1024, 8} },
4673 .block_erase = spi_block_erase_d8,
4674 }, {
4675 .eraseblocks = { {512 * 1024, 1} },
4676 .block_erase = spi_block_erase_c7,
4677 }
4678 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004679 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004680 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004681 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00004682 },
4683
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004684 {
4685 .vendor = "PMC",
4686 .name = "Pm25LV080B",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004687 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004688 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004689 .model_id = PMC_PM25LV080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004690 .total_size = 1024,
4691 .page_size = 256,
4692 .tested = TEST_UNTESTED,
4693 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004694 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00004695 .block_erasers =
4696 {
4697 {
4698 .eraseblocks = { {4 * 1024, 256} },
4699 .block_erase = spi_block_erase_d7,
4700 }, {
4701 .eraseblocks = { {4 * 1024, 256} },
4702 .block_erase = spi_block_erase_20,
4703 }, {
4704 .eraseblocks = { {64 * 1024, 16} },
4705 .block_erase = spi_block_erase_d8,
4706 }, {
4707 .eraseblocks = { {1024 * 1024, 1} },
4708 .block_erase = spi_block_erase_60,
4709 }, {
4710 .eraseblocks = { {1024 * 1024, 1} },
4711 .block_erase = spi_block_erase_c7,
4712 }
4713 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004714 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004715 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004716 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00004717 },
4718
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004719 {
4720 .vendor = "PMC",
4721 .name = "Pm25LV512",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004722 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004723 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004724 .model_id = PMC_PM25LV512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004725 .total_size = 64,
4726 .page_size = 256,
4727 .tested = TEST_UNTESTED,
4728 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004729 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00004730 .block_erasers =
4731 {
4732 {
4733 .eraseblocks = { {4 * 1024, 16} },
4734 .block_erase = spi_block_erase_d7,
4735 }, {
4736 .eraseblocks = { {32 * 1024, 2} },
4737 .block_erase = spi_block_erase_d8,
4738 }, {
4739 .eraseblocks = { {64 * 1024, 1} },
4740 .block_erase = spi_block_erase_c7,
4741 }
4742 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004743 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004744 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004745 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00004746 },
4747
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004748 {
4749 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00004750 .name = "Pm29F002T",
Uwe Hermannf983d9f2009-06-14 21:53:26 +00004751 .bustype = CHIP_BUSTYPE_PARALLEL,
4752 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004753 .model_id = PMC_PM29F002T,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00004754 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00004755 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004756 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004757 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +00004758 .probe = probe_jedec,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00004759 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00004760 .block_erasers =
4761 {
4762 {
4763 .eraseblocks = {
4764 {128 * 1024, 1},
4765 {96 * 1024, 1},
4766 {8 * 1024, 2},
4767 {16 * 1024, 1},
4768 },
Sean Nelson35727f72010-01-28 23:55:12 +00004769 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00004770 }, {
4771 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004772 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00004773 },
4774 },
Sean Nelson35727f72010-01-28 23:55:12 +00004775 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00004776 .read = read_memmapped,
4777 },
4778
4779 {
4780 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00004781 .name = "Pm29F002B",
Uwe Hermannf983d9f2009-06-14 21:53:26 +00004782 .bustype = CHIP_BUSTYPE_PARALLEL,
4783 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004784 .model_id = PMC_PM29F002B,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00004785 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00004786 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004787 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00004788 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00004789 .probe = probe_jedec,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00004790 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00004791 .block_erasers =
4792 {
4793 {
4794 .eraseblocks = {
4795 {16 * 1024, 1},
4796 {8 * 1024, 2},
4797 {96 * 1024, 1},
4798 {128 * 1024, 1},
4799 },
Sean Nelson35727f72010-01-28 23:55:12 +00004800 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00004801 }, {
4802 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004803 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00004804 },
4805 },
Sean Nelson35727f72010-01-28 23:55:12 +00004806 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00004807 .read = read_memmapped,
4808 },
4809
4810 {
4811 .vendor = "PMC",
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00004812 .name = "Pm39LV010",
Urja Rannikko038a3122009-06-28 19:19:25 +00004813 .bustype = CHIP_BUSTYPE_PARALLEL,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00004814 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004815 .model_id = PMC_PM39F010, /* Pm39LV010 and Pm39F010 have identical IDs but different voltage */
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00004816 .total_size = 128,
4817 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00004818 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004819 .tested = TEST_OK_PRE,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00004820 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004821 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson5643c072010-01-19 03:23:07 +00004822 .block_erasers =
4823 {
4824 {
4825 .eraseblocks = { {4 * 1024, 32} },
4826 .block_erase = erase_sector_jedec,
4827 }, {
4828 .eraseblocks = { {64 * 1024, 2} },
4829 .block_erase = erase_block_jedec,
4830 }, {
4831 .eraseblocks = { {128 * 1024, 1} },
4832 .block_erase = erase_chip_block_jedec,
4833 }
4834 },
Sean Nelson35727f72010-01-28 23:55:12 +00004835 .write = write_jedec_1,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00004836 .read = read_memmapped,
4837 },
4838
4839 {
4840 .vendor = "PMC",
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00004841 .name = "Pm39LV020",
4842 .bustype = CHIP_BUSTYPE_PARALLEL,
4843 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004844 .model_id = PMC_PM39LV020,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00004845 .total_size = 256,
4846 .page_size = 4096,
4847 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
4848 .tested = TEST_UNTESTED,
4849 .probe = probe_jedec,
4850 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4851 .block_erasers =
4852 {
4853 {
4854 .eraseblocks = { {4 * 1024, 64} },
4855 .block_erase = erase_sector_jedec,
4856 }, {
4857 .eraseblocks = { {64 * 1024, 4} },
4858 .block_erase = erase_block_jedec,
4859 }, {
4860 .eraseblocks = { {256 * 1024, 1} },
4861 .block_erase = erase_chip_block_jedec,
4862 }
4863 },
4864 .write = write_jedec_1,
4865 .read = read_memmapped,
4866 },
4867
4868 {
4869 .vendor = "PMC",
4870 .name = "Pm39LV040",
4871 .bustype = CHIP_BUSTYPE_PARALLEL,
4872 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004873 .model_id = PMC_PM39LV040,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00004874 .total_size = 512,
4875 .page_size = 4096,
4876 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
4877 .tested = TEST_UNTESTED,
4878 .probe = probe_jedec,
4879 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4880 .block_erasers =
4881 {
4882 {
4883 .eraseblocks = { {4 * 1024, 128} },
4884 .block_erase = erase_sector_jedec,
4885 }, {
4886 .eraseblocks = { {64 * 1024, 8} },
4887 .block_erase = erase_block_jedec,
4888 }, {
4889 .eraseblocks = { {512 * 1024, 1} },
4890 .block_erase = erase_chip_block_jedec,
4891 }
4892 },
4893 .write = write_jedec_1,
4894 .read = read_memmapped,
4895 },
4896
4897 {
4898 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004899 .name = "Pm49FL002",
Uwe Hermann431f4f72010-09-05 12:41:25 +00004900 .bustype = CHIP_BUSTYPE_LPC | CHIP_BUSTYPE_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004901 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004902 .model_id = PMC_PM49FL002,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004903 .total_size = 256,
4904 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004905 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004906 .tested = TEST_OK_PRE,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00004907 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004908 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00004909 .block_erasers =
4910 {
4911 {
4912 .eraseblocks = { {4 * 1024, 64} },
4913 .block_erase = erase_sector_jedec,
4914 }, {
4915 .eraseblocks = { {16 * 1024, 16} },
4916 .block_erase = erase_block_jedec,
4917 }, {
4918 .eraseblocks = { {256 * 1024, 1} },
4919 .block_erase = erase_chip_block_jedec,
4920 }
4921 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00004922 .unlock = unlock_49fl00x,
Sean Nelson36172342010-02-27 18:01:15 +00004923 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004924 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00004925 },
4926
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004927 {
4928 .vendor = "PMC",
4929 .name = "Pm49FL004",
Uwe Hermann431f4f72010-09-05 12:41:25 +00004930 .bustype = CHIP_BUSTYPE_LPC | CHIP_BUSTYPE_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004931 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004932 .model_id = PMC_PM49FL004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004933 .total_size = 512,
4934 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004935 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00004936 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00004937 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004938 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00004939 .block_erasers =
4940 {
4941 {
4942 .eraseblocks = { {4 * 1024, 128} },
4943 .block_erase = erase_sector_jedec,
4944 }, {
4945 .eraseblocks = { {64 * 1024, 8} },
4946 .block_erase = erase_block_jedec,
4947 }, {
4948 .eraseblocks = { {512 * 1024, 1} },
4949 .block_erase = erase_chip_block_jedec,
4950 }
4951 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00004952 .unlock = unlock_49fl00x,
Sean Nelson36172342010-02-27 18:01:15 +00004953 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004954 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00004955 },
4956
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004957 {
Sean Nelsond70b09c2009-11-24 02:11:08 +00004958 .vendor = "Sanyo",
4959 .name = "LF25FW203A",
4960 .bustype = CHIP_BUSTYPE_SPI,
4961 .manufacture_id = SANYO_ID,
4962 .model_id = SANYO_LE25FW203A,
4963 .total_size = 2048,
4964 .page_size = 256,
4965 .tested = TEST_UNTESTED,
4966 .probe = probe_spi_rdid,
4967 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00004968 .block_erasers =
4969 {
4970 {
4971 .eraseblocks = { {64 * 1024, 32} },
4972 .block_erase = spi_block_erase_d8,
4973 }, {
4974 .eraseblocks = { {2 * 1024 * 1024, 1} },
4975 .block_erase = spi_block_erase_c7,
4976 }
4977 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004978 .unlock = spi_disable_blockprotect,
Sean Nelsond70b09c2009-11-24 02:11:08 +00004979 .write = spi_chip_write_256,
4980 .read = spi_chip_read,
4981 },
4982
4983 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004984 .vendor = "Sharp",
4985 .name = "LHF00L04",
Urja Rannikko038a3122009-06-28 19:19:25 +00004986 .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004987 .manufacture_id = SHARP_ID,
4988 .model_id = SHARP_LHF00L04,
4989 .total_size = 1024,
4990 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00004991 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004992 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00004993 .probe = probe_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00004994 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00004995 .block_erasers =
4996 {
4997 {
4998 .eraseblocks = {
4999 {64 * 1024, 15},
5000 {8 * 1024, 8}
5001 },
Sean Nelson28accc22010-03-19 18:47:06 +00005002 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00005003 }, {
5004 .eraseblocks = {
5005 {1024 * 1024, 1}
5006 },
Sean Nelson51c83fb2010-01-20 20:55:53 +00005007 .block_erase = NULL, /* 30 D0, only in A/A mux mode */
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00005008 },
5009 },
Sean Nelson28accc22010-03-19 18:47:06 +00005010 .unlock = unlock_82802ab,
5011 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005012 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00005013 },
5014
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005015 {
5016 .vendor = "Spansion",
Rudy Hostf4e57772010-11-29 00:37:49 +00005017 .name = "S25FL004A",
5018 .bustype = CHIP_BUSTYPE_SPI,
5019 .manufacture_id = SPANSION_ID,
5020 .model_id = SPANSION_S25FL004A,
5021 .total_size = 512,
5022 .page_size = 256,
5023 .tested = TEST_UNTESTED,
5024 .probe = probe_spi_rdid,
5025 .probe_timing = TIMING_ZERO,
5026 .block_erasers =
5027 {
5028 {
5029 .eraseblocks = { {64 * 1024, 8} },
5030 .block_erase = spi_block_erase_d8,
5031 }, {
5032 .eraseblocks = { {512 * 1024, 1} },
5033 .block_erase = spi_block_erase_c7,
5034 }
5035 },
5036 .unlock = spi_disable_blockprotect,
5037 .write = spi_chip_write_256,
5038 .read = spi_chip_read,
5039 },
5040
5041 {
5042 .vendor = "Spansion",
Michael Karcher23ff4602010-01-12 23:29:30 +00005043 .name = "S25FL008A",
5044 .bustype = CHIP_BUSTYPE_SPI,
5045 .manufacture_id = SPANSION_ID,
5046 .model_id = SPANSION_S25FL008A,
5047 .total_size = 1024,
5048 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005049 .tested = TEST_OK_PRE,
Michael Karcher23ff4602010-01-12 23:29:30 +00005050 .probe = probe_spi_rdid,
5051 .probe_timing = TIMING_ZERO,
Michael Karcher23ff4602010-01-12 23:29:30 +00005052 .block_erasers =
5053 {
5054 {
5055 .eraseblocks = { {64 * 1024, 16} },
5056 .block_erase = spi_block_erase_d8,
5057 }, {
5058 .eraseblocks = { {1024 * 1024, 1} },
5059 .block_erase = spi_block_erase_c7,
5060 }
5061 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005062 .unlock = spi_disable_blockprotect,
Michael Karcher23ff4602010-01-12 23:29:30 +00005063 .write = spi_chip_write_256,
5064 .read = spi_chip_read,
5065 },
5066
5067 {
5068 .vendor = "Spansion",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005069 .name = "S25FL016A",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00005070 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005071 .manufacture_id = SPANSION_ID,
5072 .model_id = SPANSION_S25FL016A,
5073 .total_size = 2048,
5074 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005075 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005076 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005077 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005078 .block_erasers =
5079 {
5080 {
5081 .eraseblocks = { {64 * 1024, 32} },
5082 .block_erase = spi_block_erase_d8,
5083 }, {
5084 .eraseblocks = { {2 * 1024 * 1024, 1} },
5085 .block_erase = spi_block_erase_c7,
5086 }
5087 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005088 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005089 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005090 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00005091 },
5092
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005093 {
Rudy Hostf4e57772010-11-29 00:37:49 +00005094 .vendor = "Spansion",
5095 .name = "S25FL032A",
5096 .bustype = CHIP_BUSTYPE_SPI,
5097 .manufacture_id = SPANSION_ID,
5098 .model_id = SPANSION_S25FL032A,
5099 .total_size = 4096,
5100 .page_size = 256,
5101 .tested = TEST_UNTESTED,
5102 .probe = probe_spi_rdid,
5103 .probe_timing = TIMING_ZERO,
5104 .block_erasers =
5105 {
5106 {
5107 .eraseblocks = { {64 * 1024, 64} },
5108 .block_erase = spi_block_erase_d8,
5109 }, {
5110 .eraseblocks = { {4 * 1024 * 1024, 1} },
5111 .block_erase = spi_block_erase_c7,
5112 }
5113 },
5114 .unlock = spi_disable_blockprotect,
5115 .write = spi_chip_write_256,
5116 .read = spi_chip_read,
5117 },
5118
5119 {
5120 .vendor = "Spansion",
5121 .name = "S25FL064A",
5122 .bustype = CHIP_BUSTYPE_SPI,
5123 .manufacture_id = SPANSION_ID,
5124 .model_id = SPANSION_S25FL064A,
5125 .total_size = 8192,
5126 .page_size = 256,
5127 .tested = TEST_OK_PREW,
5128 .probe = probe_spi_rdid,
5129 .probe_timing = TIMING_ZERO,
5130 .block_erasers =
5131 {
5132 {
5133 .eraseblocks = { {64 * 1024, 128} },
5134 .block_erase = spi_block_erase_d8,
5135 }, {
5136 .eraseblocks = { {8 * 1024 * 1024, 1} },
5137 .block_erase = spi_block_erase_c7,
5138 }
5139 },
5140 .unlock = spi_disable_blockprotect,
5141 .write = spi_chip_write_256,
5142 .read = spi_chip_read,
5143 },
5144
5145 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005146 .vendor = "SST",
Mark Marshall90021f22010-12-03 14:48:11 +00005147 .name = "SST25VF010.REMS",
5148 .bustype = CHIP_BUSTYPE_SPI,
5149 .manufacture_id = SST_ID,
5150 .model_id = SST_SST25VF010_REMS,
5151 .total_size = 128,
5152 .page_size = 256,
5153 .tested = TEST_OK_PREW,
5154 .probe = probe_spi_rems,
5155 .probe_timing = TIMING_ZERO,
5156 .block_erasers =
5157 {
5158 {
5159 .eraseblocks = { {4 * 1024, 32} },
5160 .block_erase = spi_block_erase_20,
5161 }, {
5162 .eraseblocks = { {32 * 1024, 4} },
5163 .block_erase = spi_block_erase_52,
5164 }, {
5165 .eraseblocks = { {128 * 1024, 1} },
5166 .block_erase = spi_block_erase_60,
5167 },
5168 },
5169 .unlock = spi_disable_blockprotect,
5170 .write = spi_chip_write_1,
5171 .read = spi_chip_read,
5172 },
5173
5174 {
5175 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005176 .name = "SST25VF016B",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00005177 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005178 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005179 .model_id = SST_SST25VF016B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005180 .total_size = 2048,
5181 .page_size = 256,
Mark Marshall90021f22010-12-03 14:48:11 +00005182 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005183 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005184 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00005185 .block_erasers =
5186 {
5187 {
5188 .eraseblocks = { {4 * 1024, 512} },
5189 .block_erase = spi_block_erase_20,
5190 }, {
5191 .eraseblocks = { {32 * 1024, 64} },
5192 .block_erase = spi_block_erase_52,
5193 }, {
5194 .eraseblocks = { {64 * 1024, 32} },
5195 .block_erase = spi_block_erase_d8,
5196 }, {
5197 .eraseblocks = { {2 * 1024 * 1024, 1} },
5198 .block_erase = spi_block_erase_60,
5199 }, {
5200 .eraseblocks = { {2 * 1024 * 1024, 1} },
5201 .block_erase = spi_block_erase_c7,
5202 },
5203 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005204 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger93bb3752009-05-13 22:19:12 +00005205 .write = spi_chip_write_1,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005206 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00005207 },
5208
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005209 {
5210 .vendor = "SST",
5211 .name = "SST25VF032B",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00005212 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005213 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005214 .model_id = SST_SST25VF032B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005215 .total_size = 4096,
5216 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005217 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005218 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005219 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00005220 .block_erasers =
5221 {
5222 {
5223 .eraseblocks = { {4 * 1024, 1024} },
5224 .block_erase = spi_block_erase_20,
5225 }, {
5226 .eraseblocks = { {32 * 1024, 128} },
5227 .block_erase = spi_block_erase_52,
5228 }, {
5229 .eraseblocks = { {64 * 1024, 64} },
5230 .block_erase = spi_block_erase_d8,
5231 }, {
5232 .eraseblocks = { {4 * 1024 * 1024, 1} },
5233 .block_erase = spi_block_erase_60,
5234 }, {
5235 .eraseblocks = { {4 * 1024 * 1024, 1} },
5236 .block_erase = spi_block_erase_c7,
5237 },
5238 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005239 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +00005240 .write = spi_aai_write,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00005241 .read = spi_chip_read,
5242 },
5243
5244 {
5245 .vendor = "SST",
Ed Swierk86f4e6d2010-07-21 15:02:22 +00005246 .name = "SST25VF064C",
5247 .bustype = CHIP_BUSTYPE_SPI,
5248 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005249 .model_id = SST_SST25VF064C,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00005250 .total_size = 8192,
5251 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005252 .tested = TEST_OK_PRE,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00005253 .probe = probe_spi_rdid,
5254 .probe_timing = TIMING_ZERO,
5255 .block_erasers =
5256 {
5257 {
5258 .eraseblocks = { {4 * 1024, 2048} },
5259 .block_erase = spi_block_erase_20,
5260 }, {
5261 .eraseblocks = { {32 * 1024, 256} },
5262 .block_erase = spi_block_erase_52,
5263 }, {
5264 .eraseblocks = { {64 * 1024, 128} },
5265 .block_erase = spi_block_erase_d8,
5266 }, {
5267 .eraseblocks = { {8 * 1024 * 1024, 1} },
5268 .block_erase = spi_block_erase_60,
5269 }, {
5270 .eraseblocks = { {8 * 1024 * 1024, 1} },
5271 .block_erase = spi_block_erase_c7,
5272 },
5273 },
5274 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +00005275 .write = spi_chip_write_256,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00005276 .read = spi_chip_read,
5277 },
5278
5279 {
5280 .vendor = "SST",
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00005281 .name = "SST25VF040.REMS",
5282 .bustype = CHIP_BUSTYPE_SPI,
5283 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005284 .model_id = SST_SST25VF040_REMS,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00005285 .total_size = 512,
5286 .page_size = 256,
5287 .tested = TEST_OK_PR,
5288 .probe = probe_spi_rems,
5289 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00005290 .block_erasers =
5291 {
5292 {
5293 .eraseblocks = { {4 * 1024, 128} },
5294 .block_erase = spi_block_erase_20,
5295 }, {
5296 .eraseblocks = { {32 * 1024, 16} },
5297 .block_erase = spi_block_erase_52,
5298 }, {
5299 .eraseblocks = { {512 * 1024, 1} },
5300 .block_erase = spi_block_erase_60,
5301 },
5302 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005303 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger93bb3752009-05-13 22:19:12 +00005304 .write = spi_chip_write_1,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005305 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00005306 },
5307
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005308 {
5309 .vendor = "SST",
5310 .name = "SST25VF040B",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00005311 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005312 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005313 .model_id = SST_SST25VF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005314 .total_size = 512,
5315 .page_size = 256,
5316 .tested = TEST_UNTESTED,
5317 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005318 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00005319 .block_erasers =
5320 {
5321 {
5322 .eraseblocks = { {4 * 1024, 128} },
5323 .block_erase = spi_block_erase_20,
5324 }, {
5325 .eraseblocks = { {32 * 1024, 16} },
5326 .block_erase = spi_block_erase_52,
5327 }, {
5328 .eraseblocks = { {64 * 1024, 8} },
5329 .block_erase = spi_block_erase_d8,
5330 }, {
5331 .eraseblocks = { {512 * 1024, 1} },
5332 .block_erase = spi_block_erase_60,
5333 }, {
5334 .eraseblocks = { {512 * 1024, 1} },
5335 .block_erase = spi_block_erase_c7,
5336 },
5337 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005338 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger93bb3752009-05-13 22:19:12 +00005339 .write = spi_chip_write_1,
Zheng Bao0677dff2009-02-25 08:07:33 +00005340 .read = spi_chip_read,
5341 },
5342
5343 {
5344 .vendor = "SST",
Stefan Reinauer5cacf8c2010-06-14 12:58:06 +00005345 .name = "SST25LF040A.RES",
5346 .bustype = CHIP_BUSTYPE_SPI,
5347 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005348 .model_id = SST_SST25VF040_REMS,
Stefan Reinauer5cacf8c2010-06-14 12:58:06 +00005349 .total_size = 512,
5350 .page_size = 256,
5351 .tested = TEST_OK_PROBE,
5352 .probe = probe_spi_res2,
5353 .probe_timing = TIMING_ZERO,
5354 .block_erasers =
5355 {
5356 {
5357 .eraseblocks = { {4 * 1024, 128} },
5358 .block_erase = spi_block_erase_20,
5359 }, {
5360 .eraseblocks = { {32 * 1024, 16} },
5361 .block_erase = spi_block_erase_52,
5362 }, {
5363 .eraseblocks = { {512 * 1024, 1} },
5364 .block_erase = spi_block_erase_60,
5365 },
5366 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005367 .unlock = spi_disable_blockprotect,
Stefan Reinauer5cacf8c2010-06-14 12:58:06 +00005368 .write = spi_chip_write_1,
5369 .read = spi_chip_read,
5370 },
5371
5372 {
5373 .vendor = "SST",
Peter Stugefd9217d2009-01-26 03:37:40 +00005374 .name = "SST25VF040B.REMS",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00005375 .bustype = CHIP_BUSTYPE_SPI,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005376 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005377 .model_id = SST_SST25VF040B_REMS,
Peter Stugefd9217d2009-01-26 03:37:40 +00005378 .total_size = 512,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00005379 .page_size = 256,
Peter Stugefd9217d2009-01-26 03:37:40 +00005380 .tested = TEST_OK_PR,
5381 .probe = probe_spi_rems,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005382 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00005383 .block_erasers =
5384 {
5385 {
5386 .eraseblocks = { {4 * 1024, 128} },
5387 .block_erase = spi_block_erase_20,
5388 }, {
5389 .eraseblocks = { {32 * 1024, 16} },
5390 .block_erase = spi_block_erase_52,
5391 }, {
5392 .eraseblocks = { {64 * 1024, 8} },
5393 .block_erase = spi_block_erase_d8,
5394 }, {
5395 .eraseblocks = { {512 * 1024, 1} },
5396 .block_erase = spi_block_erase_60,
5397 }, {
5398 .eraseblocks = { {512 * 1024, 1} },
5399 .block_erase = spi_block_erase_c7,
5400 },
5401 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005402 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger93bb3752009-05-13 22:19:12 +00005403 .write = spi_chip_write_1,
Peter Stugefd9217d2009-01-26 03:37:40 +00005404 .read = spi_chip_read,
5405 },
5406
5407 {
5408 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005409 .name = "SST25VF080B",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00005410 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005411 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005412 .model_id = SST_SST25VF080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005413 .total_size = 1024,
5414 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005415 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005416 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005417 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00005418 .block_erasers =
5419 {
5420 {
5421 .eraseblocks = { {4 * 1024, 256} },
5422 .block_erase = spi_block_erase_20,
5423 }, {
5424 .eraseblocks = { {32 * 1024, 32} },
5425 .block_erase = spi_block_erase_52,
5426 }, {
5427 .eraseblocks = { {64 * 1024, 16} },
5428 .block_erase = spi_block_erase_d8,
5429 }, {
5430 .eraseblocks = { {1024 * 1024, 1} },
5431 .block_erase = spi_block_erase_60,
5432 }, {
5433 .eraseblocks = { {1024 * 1024, 1} },
5434 .block_erase = spi_block_erase_c7,
5435 },
5436 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005437 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005438 .write = spi_chip_write_1,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005439 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00005440 },
5441
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005442 {
5443 .vendor = "SST",
5444 .name = "SST28SF040A",
Urja Rannikko038a3122009-06-28 19:19:25 +00005445 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005446 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005447 .model_id = SST_SST28SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005448 .total_size = 512,
5449 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00005450 .feature_bits = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005451 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005452 .probe = probe_82802ab,
Maciej Pijankac6e11112009-06-03 14:46:22 +00005453 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (sst28sf040.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00005454 .block_erasers =
5455 {
5456 {
5457 .eraseblocks = { {128, 4096} },
5458 .block_erase = erase_sector_28sf040,
5459 }, {
5460 .eraseblocks = { {512 * 1024, 1} },
5461 .block_erase = erase_chip_28sf040,
5462 }
5463 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00005464 .unlock = unprotect_28sf040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005465 .write = write_28sf040,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005466 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00005467 },
5468
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005469 {
5470 .vendor = "SST",
5471 .name = "SST29EE010",
Urja Rannikko038a3122009-06-28 19:19:25 +00005472 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005473 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005474 .model_id = SST_SST29EE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005475 .total_size = 128,
5476 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00005477 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005478 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005479 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005480 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00005481 .block_erasers =
5482 {
5483 {
5484 .eraseblocks = { {128 * 1024, 1} },
5485 .block_erase = erase_chip_block_jedec,
5486 }
5487 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005488 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005489 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00005490 },
5491
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005492 {
5493 .vendor = "SST",
5494 .name = "SST29LE010",
Urja Rannikko038a3122009-06-28 19:19:25 +00005495 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005496 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005497 .model_id = SST_SST29LE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005498 .total_size = 128,
5499 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00005500 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005501 .tested = TEST_UNTESTED,
5502 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005503 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00005504 .block_erasers =
5505 {
5506 {
5507 .eraseblocks = { {128 * 1024, 1} },
5508 .block_erase = erase_chip_block_jedec,
5509 }
5510 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005511 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005512 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00005513 },
5514
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005515 {
5516 .vendor = "SST",
5517 .name = "SST29EE020A",
Urja Rannikko038a3122009-06-28 19:19:25 +00005518 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005519 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005520 .model_id = SST_SST29EE020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005521 .total_size = 256,
5522 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00005523 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005524 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005525 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005526 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00005527 .block_erasers =
5528 {
5529 {
5530 .eraseblocks = { {256 * 1024, 1} },
5531 .block_erase = erase_chip_block_jedec,
5532 }
5533 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005534 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005535 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00005536 },
5537
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005538 {
5539 .vendor = "SST",
5540 .name = "SST29LE020",
Urja Rannikko038a3122009-06-28 19:19:25 +00005541 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005542 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005543 .model_id = SST_SST29LE020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005544 .total_size = 256,
5545 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00005546 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005547 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005548 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005549 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00005550 .block_erasers =
5551 {
5552 {
5553 .eraseblocks = { {256 * 1024, 1} },
5554 .block_erase = erase_chip_block_jedec,
5555 }
5556 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005557 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005558 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00005559 },
5560
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005561 {
5562 .vendor = "SST",
Uwe Hermann48da3f92010-01-23 15:15:19 +00005563 .name = "SST39SF512",
5564 .bustype = CHIP_BUSTYPE_PARALLEL,
5565 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005566 .model_id = SST_SST39SF512,
Uwe Hermann48da3f92010-01-23 15:15:19 +00005567 .total_size = 64,
5568 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00005569 .feature_bits = FEATURE_EITHER_RESET,
Idwer Vollering7913fb42011-03-07 15:32:58 +00005570 .tested = TEST_OK_PREW,
Uwe Hermann48da3f92010-01-23 15:15:19 +00005571 .probe = probe_jedec,
5572 .probe_timing = 1, /* 150 ns */
Uwe Hermann48da3f92010-01-23 15:15:19 +00005573 .block_erasers =
5574 {
5575 {
5576 .eraseblocks = { {4 * 1024, 16} },
5577 .block_erase = erase_sector_jedec,
5578 }, {
5579 .eraseblocks = { {64 * 1024, 1} },
5580 .block_erase = erase_chip_block_jedec,
5581 }
5582 },
Sean Nelson35727f72010-01-28 23:55:12 +00005583 .write = write_jedec_1,
Uwe Hermann48da3f92010-01-23 15:15:19 +00005584 .read = read_memmapped,
5585 },
5586
5587 {
5588 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005589 .name = "SST39SF010A",
Urja Rannikko038a3122009-06-28 19:19:25 +00005590 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005591 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005592 .model_id = SST_SST39SF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005593 .total_size = 128,
5594 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00005595 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005596 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005597 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005598 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00005599 .block_erasers =
5600 {
5601 {
5602 .eraseblocks = { {4 * 1024, 32} },
5603 .block_erase = erase_sector_jedec,
5604 }, {
5605 .eraseblocks = { {128 * 1024, 1} },
5606 .block_erase = erase_chip_block_jedec,
5607 }
5608 },
Sean Nelson35727f72010-01-28 23:55:12 +00005609 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005610 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00005611 },
5612
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005613 {
5614 .vendor = "SST",
5615 .name = "SST39SF020A",
Urja Rannikko038a3122009-06-28 19:19:25 +00005616 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005617 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005618 .model_id = SST_SST39SF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005619 .total_size = 256,
5620 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00005621 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005622 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005623 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00005624 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00005625 .block_erasers =
5626 {
5627 {
5628 .eraseblocks = { {4 * 1024, 64} },
5629 .block_erase = erase_sector_jedec,
5630 }, {
5631 .eraseblocks = { {256 * 1024, 1} },
5632 .block_erase = erase_chip_block_jedec,
5633 }
5634 },
Sean Nelson35727f72010-01-28 23:55:12 +00005635 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005636 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00005637 },
5638
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005639 {
5640 .vendor = "SST",
5641 .name = "SST39SF040",
Urja Rannikko038a3122009-06-28 19:19:25 +00005642 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005643 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005644 .model_id = SST_SST39SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005645 .total_size = 512,
5646 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00005647 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005648 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005649 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00005650 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00005651 .block_erasers =
5652 {
5653 {
5654 .eraseblocks = { {4 * 1024, 128} },
5655 .block_erase = erase_sector_jedec,
5656 }, {
5657 .eraseblocks = { {512 * 1024, 1} },
5658 .block_erase = erase_chip_block_jedec,
5659 }
5660 },
Sean Nelson35727f72010-01-28 23:55:12 +00005661 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005662 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00005663 },
5664
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005665 {
5666 .vendor = "SST",
5667 .name = "SST39VF512",
Urja Rannikko038a3122009-06-28 19:19:25 +00005668 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005669 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005670 .model_id = SST_SST39VF512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005671 .total_size = 64,
5672 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00005673 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005674 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005675 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00005676 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00005677 .block_erasers =
5678 {
5679 {
5680 .eraseblocks = { {4 * 1024, 16} },
5681 .block_erase = erase_sector_jedec,
5682 }, {
5683 .eraseblocks = { {64 * 1024, 1} },
5684 .block_erase = erase_chip_block_jedec,
5685 }
5686 },
Sean Nelson35727f72010-01-28 23:55:12 +00005687 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005688 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00005689 },
5690
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005691 {
5692 .vendor = "SST",
5693 .name = "SST39VF010",
Urja Rannikko038a3122009-06-28 19:19:25 +00005694 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005695 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005696 .model_id = SST_SST39VF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005697 .total_size = 128,
5698 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00005699 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005700 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005701 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00005702 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00005703 .block_erasers =
5704 {
5705 {
5706 .eraseblocks = { {4 * 1024, 32} },
5707 .block_erase = erase_sector_jedec,
5708 }, {
5709 .eraseblocks = { {128 * 1024, 1} },
5710 .block_erase = erase_chip_block_jedec,
5711 }
5712 },
Sean Nelson35727f72010-01-28 23:55:12 +00005713 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005714 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00005715 },
5716
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005717 {
5718 .vendor = "SST",
5719 .name = "SST39VF020",
Urja Rannikko038a3122009-06-28 19:19:25 +00005720 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005721 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005722 .model_id = SST_SST39VF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005723 .total_size = 256,
5724 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00005725 .feature_bits = FEATURE_EITHER_RESET,
5726 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005727 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00005728 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00005729 .block_erasers =
5730 {
5731 {
5732 .eraseblocks = { {4 * 1024, 64} },
5733 .block_erase = erase_sector_jedec,
5734 }, {
5735 .eraseblocks = { {256 * 1024, 1} },
5736 .block_erase = erase_chip_block_jedec,
5737 }
5738 },
Sean Nelson35727f72010-01-28 23:55:12 +00005739 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005740 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00005741 },
5742
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005743 {
5744 .vendor = "SST",
5745 .name = "SST39VF040",
Urja Rannikko038a3122009-06-28 19:19:25 +00005746 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005747 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005748 .model_id = SST_SST39VF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005749 .total_size = 512,
5750 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00005751 .feature_bits = FEATURE_EITHER_RESET,
5752 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005753 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00005754 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00005755 .block_erasers =
5756 {
5757 {
5758 .eraseblocks = { {4 * 1024, 128} },
5759 .block_erase = erase_sector_jedec,
5760 }, {
5761 .eraseblocks = { {512 * 1024, 1} },
5762 .block_erase = erase_chip_block_jedec,
5763 }
5764 },
Sean Nelson35727f72010-01-28 23:55:12 +00005765 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005766 .read = read_memmapped,
Carl-Daniel Hailfinger90eff152008-12-08 23:51:45 +00005767 },
FENG yu ningff692fb2008-12-08 18:15:10 +00005768
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005769 {
5770 .vendor = "SST",
Peter Stuge8440cc02009-01-25 23:55:12 +00005771 .name = "SST39VF080",
Urja Rannikko038a3122009-06-28 19:19:25 +00005772 .bustype = CHIP_BUSTYPE_PARALLEL,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005773 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005774 .model_id = SST_SST39VF080,
Peter Stuge8440cc02009-01-25 23:55:12 +00005775 .total_size = 1024,
5776 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00005777 .feature_bits = FEATURE_EITHER_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +00005778 .tested = TEST_UNTESTED,
5779 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00005780 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00005781 .block_erasers =
5782 {
5783 {
5784 .eraseblocks = { {4 * 1024, 256} },
5785 .block_erase = erase_sector_jedec,
5786 }, {
5787 .eraseblocks = { {64 * 1024, 16} },
5788 .block_erase = erase_block_jedec,
5789 }, {
5790 .eraseblocks = { {1024 * 1024, 1} },
5791 .block_erase = erase_chip_block_jedec,
5792 }
5793 },
Sean Nelson35727f72010-01-28 23:55:12 +00005794 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005795 .read = read_memmapped,
Peter Stuge8440cc02009-01-25 23:55:12 +00005796 },
5797
5798 {
5799 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005800 .name = "SST49LF002A/B",
Urja Rannikko038a3122009-06-28 19:19:25 +00005801 .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005802 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005803 .model_id = SST_SST49LF002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005804 .total_size = 256,
5805 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005806 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00005807 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005808 .probe = probe_jedec,
5809 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00005810 .block_erasers =
5811 {
5812 {
5813 .eraseblocks = { {4 * 1024, 64} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00005814 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00005815 }, {
5816 .eraseblocks = { {16 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00005817 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00005818 }, {
5819 .eraseblocks = { {256 * 1024, 1} },
5820 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
5821 }
5822 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005823 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00005824 .unlock = unlock_sst_fwhub,
5825 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005826 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00005827 },
5828
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005829 {
5830 .vendor = "SST",
5831 .name = "SST49LF003A/B",
Urja Rannikko038a3122009-06-28 19:19:25 +00005832 .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005833 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005834 .model_id = SST_SST49LF003A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005835 .total_size = 384,
5836 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005837 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Peter Lemenkov45835c42009-09-25 01:09:18 +00005838 .tested = TEST_OK_PR,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005839 .probe = probe_jedec,
5840 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00005841 .block_erasers =
5842 {
5843 {
5844 .eraseblocks = { {4 * 1024, 96} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00005845 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00005846 }, {
5847 .eraseblocks = { {64 * 1024, 6} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00005848 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00005849 }, {
5850 .eraseblocks = { {384 * 1024, 1} },
5851 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
5852 }
5853 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005854 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00005855 .unlock = unlock_sst_fwhub,
5856 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005857 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00005858 },
5859
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005860 {
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00005861 /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB)
5862 * and is only honored for 64k block erase, but not 4k sector erase.
5863 */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005864 .vendor = "SST",
5865 .name = "SST49LF004A/B",
Urja Rannikko038a3122009-06-28 19:19:25 +00005866 .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005867 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005868 .model_id = SST_SST49LF004A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005869 .total_size = 512,
5870 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005871 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00005872 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005873 .probe = probe_jedec,
5874 .probe_timing = 1, /* 150 ns */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00005875 .block_erasers =
5876 {
5877 {
5878 .eraseblocks = { {4 * 1024, 128} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00005879 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00005880 }, {
5881 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00005882 .block_erase = erase_block_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00005883 }, {
5884 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson51c83fb2010-01-20 20:55:53 +00005885 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00005886 },
5887 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005888 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00005889 .unlock = unlock_sst_fwhub,
5890 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005891 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00005892 },
5893
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005894 {
5895 .vendor = "SST",
5896 .name = "SST49LF004C",
Urja Rannikko038a3122009-06-28 19:19:25 +00005897 .bustype = CHIP_BUSTYPE_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005898 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005899 .model_id = SST_SST49LF004C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005900 .total_size = 512,
5901 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005902 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005903 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005904 .probe = probe_82802ab,
Maciej Pijankac6e11112009-06-03 14:46:22 +00005905 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00005906 .block_erasers =
5907 {
5908 {
5909 .eraseblocks = { {4 * 1024, 128} },
5910 .block_erase = erase_sector_49lfxxxc,
5911 }, {
5912 .eraseblocks = {
5913 {64 * 1024, 7},
5914 {32 * 1024, 1},
5915 {8 * 1024, 2},
5916 {16 * 1024, 1},
5917 },
Sean Nelson69e58112010-03-23 17:10:28 +00005918 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00005919 }
5920 },
Sean Nelson69e58112010-03-23 17:10:28 +00005921 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00005922 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005923 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00005924 },
5925
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005926 {
5927 .vendor = "SST",
5928 .name = "SST49LF008A",
Urja Rannikko038a3122009-06-28 19:19:25 +00005929 .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005930 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005931 .model_id = SST_SST49LF008A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005932 .total_size = 1024,
5933 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005934 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005935 .tested = TEST_OK_PRE,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005936 .probe = probe_jedec,
5937 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00005938 .block_erasers =
5939 {
5940 {
5941 .eraseblocks = { {4 * 1024, 256} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00005942 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00005943 }, {
5944 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00005945 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00005946 }, {
5947 .eraseblocks = { {1024 * 1024, 1} },
5948 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
5949 }
5950 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005951 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00005952 .unlock = unlock_sst_fwhub,
5953 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005954 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00005955 },
5956
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005957 {
5958 .vendor = "SST",
5959 .name = "SST49LF008C",
Urja Rannikko038a3122009-06-28 19:19:25 +00005960 .bustype = CHIP_BUSTYPE_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005961 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005962 .model_id = SST_SST49LF008C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005963 .total_size = 1024,
5964 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005965 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005966 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005967 .probe = probe_82802ab,
Maciej Pijankac6e11112009-06-03 14:46:22 +00005968 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00005969 .block_erasers =
5970 {
5971 {
5972 .eraseblocks = { {4 * 1024, 256} },
5973 .block_erase = erase_sector_49lfxxxc,
5974 }, {
5975 .eraseblocks = {
5976 {64 * 1024, 15},
5977 {32 * 1024, 1},
5978 {8 * 1024, 2},
5979 {16 * 1024, 1},
5980 },
Sean Nelson69e58112010-03-23 17:10:28 +00005981 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00005982 }
5983 },
Sean Nelson69e58112010-03-23 17:10:28 +00005984 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00005985 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005986 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00005987 },
5988
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005989 {
5990 .vendor = "SST",
5991 .name = "SST49LF016C",
Urja Rannikko038a3122009-06-28 19:19:25 +00005992 .bustype = CHIP_BUSTYPE_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005993 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005994 .model_id = SST_SST49LF016C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005995 .total_size = 2048,
5996 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005997 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005998 .tested = TEST_OK_PR,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005999 .probe = probe_82802ab,
Maciej Pijankac6e11112009-06-03 14:46:22 +00006000 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006001 .block_erasers =
6002 {
6003 {
6004 .eraseblocks = { {4 * 1024, 512} },
6005 .block_erase = erase_sector_49lfxxxc,
6006 }, {
6007 .eraseblocks = {
6008 {64 * 1024, 31},
6009 {32 * 1024, 1},
6010 {8 * 1024, 2},
6011 {16 * 1024, 1},
6012 },
Sean Nelson69e58112010-03-23 17:10:28 +00006013 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006014 }
6015 },
Sean Nelson69e58112010-03-23 17:10:28 +00006016 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00006017 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006018 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00006019 },
6020
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006021 {
6022 .vendor = "SST",
6023 .name = "SST49LF020",
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006024 .bustype = CHIP_BUSTYPE_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006025 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006026 .model_id = SST_SST49LF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006027 .total_size = 256,
6028 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006029 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006030 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006031 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006032 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006033 .block_erasers =
6034 {
6035 {
6036 .eraseblocks = { {4 * 1024, 64} },
6037 .block_erase = erase_sector_jedec,
6038 }, {
6039 .eraseblocks = { {16 * 1024, 16} },
6040 .block_erase = erase_block_jedec,
6041 }, {
6042 .eraseblocks = { {256 * 1024, 1} },
6043 .block_erase = NULL,
6044 }
6045 },
Sean Nelson35727f72010-01-28 23:55:12 +00006046 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006047 .read = read_memmapped,
Sven Schnellec208dfb2009-01-07 12:35:09 +00006048 },
6049
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006050 {
6051 .vendor = "SST",
6052 .name = "SST49LF020A",
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006053 .bustype = CHIP_BUSTYPE_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006054 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006055 .model_id = SST_SST49LF020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006056 .total_size = 256,
Carl-Daniel Hailfingerda654322009-07-23 01:44:38 +00006057 .page_size = 4 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006058 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006059 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006060 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006061 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006062 .block_erasers =
6063 {
6064 {
6065 .eraseblocks = { {4 * 1024, 64} },
6066 .block_erase = erase_sector_jedec,
6067 }, {
6068 .eraseblocks = { {16 * 1024, 16} },
6069 .block_erase = erase_block_jedec,
6070 }, {
6071 .eraseblocks = { {256 * 1024, 1} },
6072 .block_erase = NULL,
6073 }
6074 },
Sean Nelson35727f72010-01-28 23:55:12 +00006075 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006076 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00006077 },
6078
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006079 {
6080 .vendor = "SST",
6081 .name = "SST49LF040",
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006082 .bustype = CHIP_BUSTYPE_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006083 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006084 .model_id = SST_SST49LF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006085 .total_size = 512,
6086 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006087 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006088 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006089 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006090 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006091 .block_erasers =
6092 {
6093 {
6094 .eraseblocks = { {4 * 1024, 128} },
6095 .block_erase = erase_sector_jedec,
6096 }, {
6097 .eraseblocks = { {64 * 1024, 8} },
6098 .block_erase = erase_block_jedec,
6099 }, {
6100 .eraseblocks = { {512 * 1024, 1} },
6101 .block_erase = NULL,
6102 }
6103 },
Sean Nelson35727f72010-01-28 23:55:12 +00006104 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006105 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00006106 },
6107
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006108 {
6109 .vendor = "SST",
6110 .name = "SST49LF040B",
Urja Rannikko038a3122009-06-28 19:19:25 +00006111 .bustype = CHIP_BUSTYPE_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006112 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006113 .model_id = SST_SST49LF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006114 .total_size = 512,
6115 .page_size = 64 * 1024,
Joshua Roysa84b0bd2010-08-16 22:12:39 +00006116 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006117 .tested = TEST_OK_PRE,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006118 .probe = probe_jedec,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006119 .probe_timing = 1, /* 150ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006120 .block_erasers =
6121 {
6122 {
6123 .eraseblocks = { {4 * 1024, 128} },
6124 .block_erase = erase_sector_jedec,
6125 }, {
6126 .eraseblocks = { {64 * 1024, 8} },
6127 .block_erase = erase_block_jedec,
6128 }, {
6129 .eraseblocks = { {512 * 1024, 1} },
6130 .block_erase = NULL,
6131 }
6132 },
Joshua Roysa84b0bd2010-08-16 22:12:39 +00006133 .unlock = unlock_82802ab,
Sean Nelson35727f72010-01-28 23:55:12 +00006134 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006135 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00006136 },
6137
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006138 {
6139 .vendor = "SST",
6140 .name = "SST49LF080A",
Urja Rannikko038a3122009-06-28 19:19:25 +00006141 .bustype = CHIP_BUSTYPE_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006142 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006143 .model_id = SST_SST49LF080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006144 .total_size = 1024,
6145 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006146 .feature_bits = FEATURE_EITHER_RESET,
Brandon Dowdyf07bf322011-03-06 18:31:11 +00006147 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006148 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00006149 .probe_timing = TIMING_FIXME,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006150 .block_erasers =
6151 {
6152 {
6153 .eraseblocks = { {4 * 1024, 256} },
6154 .block_erase = erase_sector_jedec,
6155 }, {
6156 .eraseblocks = { {64 * 1024, 16} },
6157 .block_erase = erase_block_jedec,
6158 }, {
6159 .eraseblocks = { {1024 * 1024, 1} },
6160 .block_erase = NULL,
6161 }
6162 },
Sean Nelson35727f72010-01-28 23:55:12 +00006163 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006164 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00006165 },
6166
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006167 {
6168 .vendor = "SST",
6169 .name = "SST49LF160C",
Urja Rannikko038a3122009-06-28 19:19:25 +00006170 .bustype = CHIP_BUSTYPE_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006171 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006172 .model_id = SST_SST49LF160C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006173 .total_size = 2048,
6174 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006175 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006176 .tested = TEST_OK_PRE,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006177 .probe = probe_82802ab,
Maciej Pijankac6e11112009-06-03 14:46:22 +00006178 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006179 .block_erasers =
6180 {
6181 {
6182 .eraseblocks = { {4 * 1024, 512} },
6183 .block_erase = erase_sector_49lfxxxc,
6184 }, {
6185 .eraseblocks = {
6186 {64 * 1024, 31},
6187 {32 * 1024, 1},
6188 {8 * 1024, 2},
6189 {16 * 1024, 1},
6190 },
Sean Nelson69e58112010-03-23 17:10:28 +00006191 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006192 }
6193 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00006194 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00006195 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006196 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00006197 },
6198
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006199 {
6200 .vendor = "ST",
6201 .name = "M25P05-A",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00006202 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006203 .manufacture_id = ST_ID,
6204 .model_id = ST_M25P05A,
6205 .total_size = 64,
6206 .page_size = 256,
6207 .tested = TEST_UNTESTED,
6208 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006209 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006210 .block_erasers =
6211 {
6212 {
6213 .eraseblocks = { {32 * 1024, 2} },
6214 .block_erase = spi_block_erase_d8,
6215 }, {
6216 .eraseblocks = { {64 * 1024, 1} },
6217 .block_erase = spi_block_erase_c7,
6218 }
6219 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006220 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006221 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006222 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00006223 },
6224
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00006225 /* The ST M25P05 is a bit of a problem. It has the same ID as the
6226 * ST M25P05-A in RES mode, but supports only 128 byte writes instead
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00006227 * of 256 byte writes. We rely heavily on the fact that probe_spi_res1
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00006228 * only is successful if RDID does not work.
6229 */
6230 {
6231 .vendor = "ST",
6232 .name = "M25P05.RES",
6233 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00006234 .manufacture_id = 0, /* Not used. */
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00006235 .model_id = ST_M25P05_RES,
6236 .total_size = 64,
6237 .page_size = 256,
6238 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00006239 .probe = probe_spi_res1,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00006240 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006241 .block_erasers =
6242 {
6243 {
6244 .eraseblocks = { {32 * 1024, 2} },
6245 .block_erase = spi_block_erase_d8,
6246 }, {
6247 .eraseblocks = { {64 * 1024, 1} },
6248 .block_erase = spi_block_erase_c7,
6249 }
6250 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006251 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00006252 .write = spi_chip_write_1, /* 128 */
6253 .read = spi_chip_read,
6254 },
6255
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006256 {
6257 .vendor = "ST",
6258 .name = "M25P10-A",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00006259 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006260 .manufacture_id = ST_ID,
6261 .model_id = ST_M25P10A,
6262 .total_size = 128,
6263 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006264 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006265 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006266 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006267 .block_erasers =
6268 {
6269 {
6270 .eraseblocks = { {32 * 1024, 4} },
6271 .block_erase = spi_block_erase_d8,
6272 }, {
6273 .eraseblocks = { {128 * 1024, 1} },
6274 .block_erase = spi_block_erase_c7,
6275 }
6276 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006277 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006278 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006279 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00006280 },
6281
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00006282 /* The ST M25P10 has the same problem as the M25P05. */
6283 {
6284 .vendor = "ST",
6285 .name = "M25P10.RES",
6286 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00006287 .manufacture_id = 0, /* Not used. */
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00006288 .model_id = ST_M25P10_RES,
6289 .total_size = 128,
6290 .page_size = 256,
6291 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00006292 .probe = probe_spi_res1,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00006293 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006294 .block_erasers =
6295 {
6296 {
6297 .eraseblocks = { {32 * 1024, 4} },
6298 .block_erase = spi_block_erase_d8,
6299 }, {
6300 .eraseblocks = { {128 * 1024, 1} },
6301 .block_erase = spi_block_erase_c7,
6302 }
6303 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006304 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00006305 .write = spi_chip_write_1, /* 128 */
6306 .read = spi_chip_read,
6307 },
6308
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006309 {
6310 .vendor = "ST",
6311 .name = "M25P20",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00006312 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006313 .manufacture_id = ST_ID,
6314 .model_id = ST_M25P20,
6315 .total_size = 256,
6316 .page_size = 256,
6317 .tested = TEST_UNTESTED,
6318 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006319 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006320 .block_erasers =
6321 {
6322 {
6323 .eraseblocks = { {64 * 1024, 4} },
6324 .block_erase = spi_block_erase_d8,
6325 }, {
6326 .eraseblocks = { {256 * 1024, 1} },
6327 .block_erase = spi_block_erase_c7,
6328 }
6329 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006330 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006331 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006332 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00006333 },
6334
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006335 {
6336 .vendor = "ST",
6337 .name = "M25P40",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00006338 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006339 .manufacture_id = ST_ID,
6340 .model_id = ST_M25P40,
6341 .total_size = 512,
6342 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006343 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006344 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006345 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006346 .block_erasers =
6347 {
6348 {
6349 .eraseblocks = { {64 * 1024, 8} },
6350 .block_erase = spi_block_erase_d8,
6351 }, {
6352 .eraseblocks = { {512 * 1024, 1} },
6353 .block_erase = spi_block_erase_c7,
6354 }
6355 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006356 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006357 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006358 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00006359 },
6360
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006361 {
6362 .vendor = "ST",
6363 .name = "M25P40-old",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00006364 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00006365 .manufacture_id = 0, /* Not used. */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006366 .model_id = ST_M25P40_RES,
6367 .total_size = 512,
6368 .page_size = 256,
6369 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00006370 .probe = probe_spi_res1,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006371 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006372 .block_erasers =
6373 {
6374 {
6375 .eraseblocks = { {64 * 1024, 8} },
6376 .block_erase = spi_block_erase_d8,
6377 }, {
6378 .eraseblocks = { {512 * 1024, 1} },
6379 .block_erase = spi_block_erase_c7,
6380 }
6381 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006382 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006383 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006384 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00006385 },
6386
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006387 {
6388 .vendor = "ST",
6389 .name = "M25P80",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00006390 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006391 .manufacture_id = ST_ID,
6392 .model_id = ST_M25P80,
6393 .total_size = 1024,
6394 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006395 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006396 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006397 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006398 .block_erasers =
6399 {
6400 {
6401 .eraseblocks = { {64 * 1024, 16} },
6402 .block_erase = spi_block_erase_d8,
6403 }, {
6404 .eraseblocks = { {1024 * 1024, 1} },
6405 .block_erase = spi_block_erase_c7,
6406 }
6407 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006408 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006409 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006410 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00006411 },
6412
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006413 {
6414 .vendor = "ST",
6415 .name = "M25P16",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00006416 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006417 .manufacture_id = ST_ID,
6418 .model_id = ST_M25P16,
6419 .total_size = 2048,
6420 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006421 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006422 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006423 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006424 .block_erasers =
6425 {
6426 {
6427 .eraseblocks = { {64 * 1024, 32} },
6428 .block_erase = spi_block_erase_d8,
6429 }, {
6430 .eraseblocks = { {2 * 1024 * 1024, 1} },
6431 .block_erase = spi_block_erase_c7,
6432 }
6433 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006434 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006435 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006436 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00006437 },
6438
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006439 {
6440 .vendor = "ST",
6441 .name = "M25P32",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00006442 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006443 .manufacture_id = ST_ID,
6444 .model_id = ST_M25P32,
6445 .total_size = 4096,
6446 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006447 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006448 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006449 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006450 .block_erasers =
6451 {
6452 {
6453 .eraseblocks = { {64 * 1024, 64} },
6454 .block_erase = spi_block_erase_d8,
6455 }, {
6456 .eraseblocks = { {4 * 1024 * 1024, 1} },
6457 .block_erase = spi_block_erase_c7,
6458 }
6459 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006460 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006461 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006462 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00006463 },
6464
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006465 {
6466 .vendor = "ST",
6467 .name = "M25P64",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00006468 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006469 .manufacture_id = ST_ID,
6470 .model_id = ST_M25P64,
6471 .total_size = 8192,
6472 .page_size = 256,
6473 .tested = TEST_UNTESTED,
6474 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006475 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006476 .block_erasers =
6477 {
6478 {
6479 .eraseblocks = { {64 * 1024, 128} },
6480 .block_erase = spi_block_erase_d8,
6481 }, {
6482 .eraseblocks = { {8 * 1024 * 1024, 1} },
6483 .block_erase = spi_block_erase_c7,
6484 }
6485 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006486 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006487 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006488 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00006489 },
6490
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006491 {
6492 .vendor = "ST",
6493 .name = "M25P128",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00006494 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006495 .manufacture_id = ST_ID,
6496 .model_id = ST_M25P128,
6497 .total_size = 16384,
6498 .page_size = 256,
6499 .tested = TEST_UNTESTED,
6500 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006501 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006502 .block_erasers =
6503 {
6504 {
6505 .eraseblocks = { {256 * 1024, 64} },
6506 .block_erase = spi_block_erase_d8,
6507 }, {
6508 .eraseblocks = { {16 * 1024 * 1024, 1} },
6509 .block_erase = spi_block_erase_c7,
6510 }
6511 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006512 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006513 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006514 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00006515 },
6516
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006517 {
6518 .vendor = "ST",
Carl Worthd1dd72c2011-03-06 18:45:40 +00006519 .name = "M25PX16",
6520 .bustype = CHIP_BUSTYPE_SPI,
6521 .manufacture_id = ST_ID,
6522 .model_id = ST_M25PX16,
6523 .total_size = 2048,
6524 .page_size = 256,
6525 .tested = TEST_OK_PREW,
6526 .probe = probe_spi_rdid,
6527 .probe_timing = TIMING_ZERO,
6528 .block_erasers =
6529 {
6530 {
6531 .eraseblocks = { { 4 * 1024, 512 } },
6532 .block_erase = spi_block_erase_20,
6533 }, {
6534 .eraseblocks = { {64 * 1024, 32} },
6535 .block_erase = spi_block_erase_d8,
6536 }, {
6537 .eraseblocks = { {2 * 1024 * 1024, 1} },
6538 .block_erase = spi_block_erase_c7,
6539 }
6540 },
6541 .unlock = spi_disable_blockprotect,
6542 .write = spi_chip_write_256,
6543 .read = spi_chip_read,
6544 },
6545
6546 {
6547 .vendor = "ST",
Jason Shriver4119e9b2010-09-14 13:16:01 +00006548 .name = "M25PX32",
6549 .bustype = CHIP_BUSTYPE_SPI,
6550 .manufacture_id = ST_ID,
6551 .model_id = ST_M25PX32,
6552 .total_size = 4096,
6553 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006554 .tested = TEST_OK_PRE,
Jason Shriver4119e9b2010-09-14 13:16:01 +00006555 .probe = probe_spi_rdid,
6556 .probe_timing = TIMING_ZERO,
6557 .block_erasers =
6558 {
6559 {
6560 .eraseblocks = { { 4 * 1024, 1024 } },
6561 .block_erase = spi_block_erase_20,
6562 }, {
6563 .eraseblocks = { {64 * 1024, 64} },
6564 .block_erase = spi_block_erase_d8,
6565 }, {
6566 .eraseblocks = { {4 * 1024 * 1024, 1} },
6567 .block_erase = spi_block_erase_c7,
6568 }
6569 },
6570 .unlock = spi_disable_blockprotect,
6571 .write = spi_chip_write_256,
6572 .read = spi_chip_read,
6573 },
6574
6575 {
6576 .vendor = "ST",
6577 .name = "M25PX64",
6578 .bustype = CHIP_BUSTYPE_SPI,
6579 .manufacture_id = ST_ID,
6580 .model_id = ST_M25PX64,
6581 .total_size = 8192,
6582 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006583 .tested = TEST_OK_PRE,
Jason Shriver4119e9b2010-09-14 13:16:01 +00006584 .probe = probe_spi_rdid,
6585 .probe_timing = TIMING_ZERO,
6586 .block_erasers =
6587 {
6588 {
6589 .eraseblocks = { { 4 * 1024, 2048 } },
6590 .block_erase = spi_block_erase_20,
6591 }, {
6592 .eraseblocks = { {64 * 1024, 128} },
6593 .block_erase = spi_block_erase_d8,
6594 }, {
6595 .eraseblocks = { {8 * 1024 * 1024, 1} },
6596 .block_erase = spi_block_erase_c7,
6597 }
6598 },
6599 .unlock = spi_disable_blockprotect,
6600 .write = spi_chip_write_256,
6601 .read = spi_chip_read,
6602 },
6603
6604 {
6605 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006606 .name = "M29F002B",
Urja Rannikko038a3122009-06-28 19:19:25 +00006607 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006608 .manufacture_id = ST_ID,
6609 .model_id = ST_M29F002B,
6610 .total_size = 256,
6611 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006612 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006613 .tested = TEST_UNTESTED,
6614 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006615 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00006616 .block_erasers =
6617 {
6618 {
6619 .eraseblocks = {
6620 {16 * 1024, 1},
6621 {8 * 1024, 2},
6622 {32 * 1024, 1},
6623 {64 * 1024, 3},
6624 },
6625 .block_erase = erase_sector_jedec,
6626 }, {
6627 .eraseblocks = { {256 * 1024, 1} },
6628 .block_erase = erase_chip_block_jedec,
6629 }
6630 },
Sean Nelson35727f72010-01-28 23:55:12 +00006631 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006632 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00006633 },
6634
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006635 {
6636 .vendor = "ST",
6637 .name = "M29F002T/NT",
Urja Rannikko038a3122009-06-28 19:19:25 +00006638 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006639 .manufacture_id = ST_ID,
6640 .model_id = ST_M29F002T,
6641 .total_size = 256,
6642 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006643 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
6644 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006645 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006646 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00006647 .block_erasers =
6648 {
6649 {
6650 .eraseblocks = {
6651 {64 * 1024, 3},
6652 {32 * 1024, 1},
6653 {8 * 1024, 2},
6654 {16 * 1024, 1},
6655 },
6656 .block_erase = erase_sector_jedec,
6657 }, {
6658 .eraseblocks = { {256 * 1024, 1} },
6659 .block_erase = erase_chip_block_jedec,
6660 }
6661 },
Sean Nelson35727f72010-01-28 23:55:12 +00006662 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006663 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00006664 },
6665
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006666 {
6667 .vendor = "ST",
6668 .name = "M29F040B",
Urja Rannikko038a3122009-06-28 19:19:25 +00006669 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006670 .manufacture_id = ST_ID,
6671 .model_id = ST_M29F040B,
6672 .total_size = 512,
6673 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006674 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
6675 .tested = TEST_UNTESTED,
6676 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00006677 .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */
Sean Nelson56358aa2010-01-19 16:08:51 +00006678 .block_erasers =
6679 {
6680 {
6681 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson35727f72010-01-28 23:55:12 +00006682 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +00006683 }, {
6684 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006685 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +00006686 }
6687 },
Sean Nelson35727f72010-01-28 23:55:12 +00006688 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006689 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00006690 },
6691
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006692 {
Sean Nelson35727f72010-01-28 23:55:12 +00006693 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006694 .vendor = "ST",
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00006695 .name = "M29F400BB",
6696 .bustype = CHIP_BUSTYPE_PARALLEL,
6697 .manufacture_id = ST_ID,
6698 .model_id = ST_M29F400BB,
6699 .total_size = 512,
6700 .page_size = 64 * 1024,
6701 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00006702 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00006703 .probe = probe_m29f400bt,
6704 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
6705 .block_erasers =
6706 {
6707 {
6708 .eraseblocks = {
6709 {16 * 1024, 1},
6710 {8 * 1024, 2},
6711 {32 * 1024, 1},
6712 {64 * 1024, 7},
6713 },
6714 .block_erase = block_erase_m29f400bt,
6715 }, {
6716 .eraseblocks = { {512 * 1024, 1} },
6717 .block_erase = block_erase_chip_m29f400bt,
6718 }
6719 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00006720 .write = write_m29f400bt,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00006721 .read = read_memmapped,
6722 },
6723 {
6724 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
6725 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006726 .name = "M29F400BT",
Urja Rannikko038a3122009-06-28 19:19:25 +00006727 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006728 .manufacture_id = ST_ID,
6729 .model_id = ST_M29F400BT,
6730 .total_size = 512,
6731 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006732 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006733 .tested = TEST_UNTESTED,
6734 .probe = probe_m29f400bt,
Maciej Pijankac6e11112009-06-03 14:46:22 +00006735 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (m29f400bt.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00006736 .block_erasers =
6737 {
6738 {
6739 .eraseblocks = {
6740 {64 * 1024, 7},
6741 {32 * 1024, 1},
6742 {8 * 1024, 2},
6743 {16 * 1024, 1},
6744 },
6745 .block_erase = block_erase_m29f400bt,
6746 }, {
6747 .eraseblocks = { {512 * 1024, 1} },
6748 .block_erase = block_erase_chip_m29f400bt,
6749 }
6750 },
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00006751 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006752 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00006753 },
6754
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006755 {
6756 .vendor = "ST",
6757 .name = "M29W010B",
Urja Rannikko038a3122009-06-28 19:19:25 +00006758 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006759 .manufacture_id = ST_ID,
6760 .model_id = ST_M29W010B,
6761 .total_size = 128,
6762 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006763 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006764 .tested = TEST_UNTESTED,
6765 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006766 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00006767 .block_erasers =
6768 {
6769 {
6770 .eraseblocks = { {16 * 1024, 8}, },
6771 .block_erase = erase_sector_jedec,
6772 }, {
6773 .eraseblocks = { {128 * 1024, 1} },
6774 .block_erase = erase_chip_block_jedec,
6775 }
6776 },
Sean Nelson35727f72010-01-28 23:55:12 +00006777 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006778 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00006779 },
6780
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006781 {
6782 .vendor = "ST",
6783 .name = "M29W040B",
Urja Rannikko038a3122009-06-28 19:19:25 +00006784 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006785 .manufacture_id = ST_ID,
6786 .model_id = ST_M29W040B,
6787 .total_size = 512,
6788 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006789 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006790 .tested = TEST_UNTESTED,
6791 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006792 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00006793 .block_erasers =
6794 {
6795 {
6796 .eraseblocks = { {64 * 1024, 8}, },
6797 .block_erase = erase_sector_jedec,
6798 }, {
6799 .eraseblocks = { {512 * 1024, 1} },
6800 .block_erase = erase_chip_block_jedec,
6801 }
6802 },
Sean Nelson35727f72010-01-28 23:55:12 +00006803 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006804 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00006805 },
6806
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +00006807 {
6808 .vendor = "ST",
6809 .name = "M29W512B",
6810 .bustype = CHIP_BUSTYPE_PARALLEL,
6811 .manufacture_id = ST_ID,
6812 .model_id = ST_M29W512B,
6813 .total_size = 64,
6814 .page_size = 64 * 1024,
6815 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006816 .tested = TEST_OK_PRE,
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +00006817 .probe = probe_jedec,
6818 .probe_timing = TIMING_ZERO,
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +00006819 .block_erasers =
6820 {
6821 {
6822 .eraseblocks = { {64 * 1024, 1} },
6823 .block_erase = erase_chip_block_jedec,
6824 }
6825 },
6826 .write = write_jedec_1,
6827 .read = read_memmapped,
6828 },
6829
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006830 {
6831 .vendor = "ST",
6832 .name = "M50FLW040A",
Sean Nelson35727f72010-01-28 23:55:12 +00006833 .bustype = CHIP_BUSTYPE_FWH | CHIP_BUSTYPE_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006834 .manufacture_id = ST_ID,
6835 .model_id = ST_M50FLW040A,
6836 .total_size = 512,
6837 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006838 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006839 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00006840 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00006841 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00006842 .block_erasers =
6843 {
6844 {
Sean Nelson329bde72010-01-19 16:39:19 +00006845 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00006846 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00006847 {64 * 1024, 5}, /* block */
6848 {4 * 1024, 16}, /* sector */
6849 {4 * 1024, 16}, /* sector */
6850 },
6851 .block_erase = NULL,
6852 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00006853 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +00006854 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00006855 }, {
6856 .eraseblocks = { {512 * 1024, 1} },
6857 .block_erase = erase_chip_stm50flw0x0x,
6858 }
6859 },
Sean Nelson28accc22010-03-19 18:47:06 +00006860 .unlock = unlock_stm50flw0x0x,
6861 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006862 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00006863 },
6864
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006865 {
6866 .vendor = "ST",
6867 .name = "M50FLW040B",
Sean Nelson35727f72010-01-28 23:55:12 +00006868 .bustype = CHIP_BUSTYPE_FWH | CHIP_BUSTYPE_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006869 .manufacture_id = ST_ID,
6870 .model_id = ST_M50FLW040B,
6871 .total_size = 512,
6872 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006873 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006874 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00006875 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00006876 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00006877 .block_erasers =
6878 {
6879 {
Sean Nelson329bde72010-01-19 16:39:19 +00006880 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00006881 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00006882 {4 * 1024, 16}, /* sector */
6883 {64 * 1024, 5}, /* block */
6884 {4 * 1024, 16}, /* sector */
6885 },
6886 .block_erase = NULL,
6887 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00006888 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +00006889 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00006890 }, {
6891 .eraseblocks = { {512 * 1024, 1} },
6892 .block_erase = erase_chip_stm50flw0x0x,
6893 }
6894 },
Sean Nelson28accc22010-03-19 18:47:06 +00006895 .unlock = unlock_stm50flw0x0x,
6896 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006897 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00006898 },
6899
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006900 {
6901 .vendor = "ST",
6902 .name = "M50FLW080A",
Sean Nelson35727f72010-01-28 23:55:12 +00006903 .bustype = CHIP_BUSTYPE_FWH | CHIP_BUSTYPE_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006904 .manufacture_id = ST_ID,
6905 .model_id = ST_M50FLW080A,
6906 .total_size = 1024,
6907 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006908 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006909 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +00006910 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00006911 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00006912 .block_erasers =
6913 {
6914 {
Sean Nelson329bde72010-01-19 16:39:19 +00006915 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00006916 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00006917 {64 * 1024, 13}, /* block */
6918 {4 * 1024, 16}, /* sector */
6919 {4 * 1024, 16}, /* sector */
6920 },
6921 .block_erase = NULL,
6922 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00006923 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +00006924 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00006925 }, {
6926 .eraseblocks = { {1024 * 1024, 1} },
6927 .block_erase = erase_chip_stm50flw0x0x,
6928 }
6929 },
Sean Nelson28accc22010-03-19 18:47:06 +00006930 .unlock = unlock_stm50flw0x0x,
6931 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006932 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00006933 },
6934
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006935 {
6936 .vendor = "ST",
6937 .name = "M50FLW080B",
Sean Nelson35727f72010-01-28 23:55:12 +00006938 .bustype = CHIP_BUSTYPE_FWH | CHIP_BUSTYPE_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006939 .manufacture_id = ST_ID,
6940 .model_id = ST_M50FLW080B,
6941 .total_size = 1024,
6942 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006943 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006944 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00006945 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00006946 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00006947 .block_erasers =
6948 {
6949 {
Sean Nelson329bde72010-01-19 16:39:19 +00006950 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00006951 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00006952 {4 * 1024, 16}, /* sector */
6953 {64 * 1024, 13}, /* block */
6954 {4 * 1024, 16}, /* sector */
6955 },
6956 .block_erase = NULL,
6957 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00006958 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +00006959 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00006960 }, {
6961 .eraseblocks = { {1024 * 1024, 1} },
6962 .block_erase = erase_chip_stm50flw0x0x,
6963 }
6964 },
Sean Nelson28accc22010-03-19 18:47:06 +00006965 .unlock = unlock_stm50flw0x0x,
6966 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006967 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00006968 },
6969
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006970 {
6971 .vendor = "ST",
6972 .name = "M50FW002",
Urja Rannikko038a3122009-06-28 19:19:25 +00006973 .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006974 .manufacture_id = ST_ID,
6975 .model_id = ST_M50FW002,
6976 .total_size = 256,
6977 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006978 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006979 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00006980 .probe = probe_82802ab,
Maciej Pijankac6e11112009-06-03 14:46:22 +00006981 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (sst49lfxxxc.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00006982 .block_erasers =
6983 {
6984 {
6985 .eraseblocks = {
6986 {64 * 1024, 3},
6987 {32 * 1024, 1},
6988 {8 * 1024, 2},
6989 {16 * 1024, 1},
6990 },
Sean Nelson28accc22010-03-19 18:47:06 +00006991 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00006992 }, {
6993 .eraseblocks = { {256 * 1024, 1} },
6994 .block_erase = erase_chip_stm50flw0x0x,
6995 }
6996 },
Sean Nelson28accc22010-03-19 18:47:06 +00006997 .unlock = unlock_stm50flw0x0x,
6998 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006999 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00007000 },
7001
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007002 {
7003 .vendor = "ST",
7004 .name = "M50FW016",
Urja Rannikko038a3122009-06-28 19:19:25 +00007005 .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007006 .manufacture_id = ST_ID,
7007 .model_id = ST_M50FW016,
7008 .total_size = 2048,
7009 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007010 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007011 .tested = TEST_UNTESTED,
7012 .probe = probe_82802ab,
Maciej Pijankac6e11112009-06-03 14:46:22 +00007013 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00007014 .block_erasers =
7015 {
7016 {
7017 .eraseblocks = { {64 * 1024, 32}, },
Sean Nelson28accc22010-03-19 18:47:06 +00007018 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00007019 }, {
7020 .eraseblocks = { {2 * 1024 * 1024, 1} },
7021 .block_erase = erase_chip_stm50flw0x0x,
7022 }
7023 },
Sean Nelson28accc22010-03-19 18:47:06 +00007024 .unlock = unlock_stm50flw0x0x,
7025 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007026 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00007027 },
7028
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007029 {
7030 .vendor = "ST",
7031 .name = "M50FW040",
Urja Rannikko038a3122009-06-28 19:19:25 +00007032 .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007033 .manufacture_id = ST_ID,
7034 .model_id = ST_M50FW040,
7035 .total_size = 512,
7036 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007037 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +00007038 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007039 .probe = probe_82802ab,
Maciej Pijankac6e11112009-06-03 14:46:22 +00007040 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00007041 .block_erasers =
7042 {
7043 {
7044 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +00007045 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00007046 }, {
7047 .eraseblocks = { {512 * 1024, 1} },
7048 .block_erase = erase_chip_stm50flw0x0x,
7049 }
7050 },
Sean Nelson28accc22010-03-19 18:47:06 +00007051 .unlock = unlock_stm50flw0x0x,
7052 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007053 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00007054 },
7055
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007056 {
7057 .vendor = "ST",
7058 .name = "M50FW080",
Urja Rannikko038a3122009-06-28 19:19:25 +00007059 .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007060 .manufacture_id = ST_ID,
7061 .model_id = ST_M50FW080,
7062 .total_size = 1024,
7063 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007064 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +00007065 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007066 .probe = probe_82802ab,
Maciej Pijankac6e11112009-06-03 14:46:22 +00007067 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00007068 .block_erasers =
7069 {
7070 {
7071 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +00007072 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00007073 }, {
7074 .eraseblocks = { {1024 * 1024, 1} },
7075 .block_erase = erase_chip_stm50flw0x0x,
7076 }
7077 },
Sean Nelson28accc22010-03-19 18:47:06 +00007078 .unlock = unlock_stm50flw0x0x,
7079 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007080 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00007081 },
7082
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007083 {
7084 .vendor = "ST",
7085 .name = "M50LPW116",
Urja Rannikko038a3122009-06-28 19:19:25 +00007086 .bustype = CHIP_BUSTYPE_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007087 .manufacture_id = ST_ID,
7088 .model_id = ST_M50LPW116,
7089 .total_size = 2048,
7090 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007091 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007092 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00007093 .probe = probe_82802ab,
Udu Ogahc04ee222009-09-05 01:31:32 +00007094 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007095 .block_erasers =
7096 {
7097 {
7098 .eraseblocks = {
7099 {4 * 1024, 16},
7100 {64 * 1024, 30},
7101 {32 * 1024, 1},
7102 {8 * 1024, 2},
7103 {16 * 1024, 1},
7104 },
Sean Nelson28accc22010-03-19 18:47:06 +00007105 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00007106 }, {
7107 .eraseblocks = { {2 * 1024 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00007108 .block_erase = erase_chip_stm50flw0x0x,
Sean Nelson56358aa2010-01-19 16:08:51 +00007109 }
7110 },
Sean Nelson28accc22010-03-19 18:47:06 +00007111 .unlock = unlock_stm50flw0x0x,
7112 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007113 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00007114 },
7115
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007116 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00007117 .vendor = "SyncMOS/MoselVitelic",
7118 .name = "{F,S,V}29C51001B",
Urja Rannikko038a3122009-06-28 19:19:25 +00007119 .bustype = CHIP_BUSTYPE_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00007120 .manufacture_id = SYNCMOS_MVC_ID,
7121 .model_id = SM_MVC_29C51001B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007122 .total_size = 128,
Mattias Mattsson4c066502010-07-29 20:01:13 +00007123 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +00007124 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007125 .tested = TEST_UNTESTED,
7126 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007127 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007128 .block_erasers =
7129 {
7130 {
7131 .eraseblocks = { {512, 256} },
7132 .block_erase = erase_sector_jedec,
7133 }, {
7134 .eraseblocks = { {128 * 1024, 1} },
7135 .block_erase = erase_chip_block_jedec,
7136 },
7137 },
Sean Nelson35727f72010-01-28 23:55:12 +00007138 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007139 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00007140 },
7141
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007142 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00007143 .vendor = "SyncMOS/MoselVitelic",
7144 .name = "{F,S,V}29C51001T",
Urja Rannikko038a3122009-06-28 19:19:25 +00007145 .bustype = CHIP_BUSTYPE_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00007146 .manufacture_id = SYNCMOS_MVC_ID,
7147 .model_id = SM_MVC_29C51001T,
7148 .total_size = 128,
7149 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +00007150 .feature_bits = FEATURE_EITHER_RESET,
Mattias Mattsson4c066502010-07-29 20:01:13 +00007151 .tested = TEST_UNTESTED,
7152 .probe = probe_jedec,
7153 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7154 .block_erasers =
7155 {
7156 {
7157 .eraseblocks = { {512, 256} },
7158 .block_erase = erase_sector_jedec,
7159 }, {
7160 .eraseblocks = { {128 * 1024, 1} },
7161 .block_erase = erase_chip_block_jedec,
7162 },
7163 },
7164 .write = write_jedec_1,
7165 .read = read_memmapped,
7166 },
7167
7168 {
7169 .vendor = "SyncMOS/MoselVitelic",
7170 .name = "{F,S,V}29C51002B",
7171 .bustype = CHIP_BUSTYPE_PARALLEL,
7172 .manufacture_id = SYNCMOS_MVC_ID,
7173 .model_id = SM_MVC_29C51002B,
7174 .total_size = 256,
7175 .page_size = 512,
7176 .feature_bits = FEATURE_EITHER_RESET,
7177 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007178 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007179 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007180 .block_erasers =
7181 {
7182 {
7183 .eraseblocks = { {512, 512} },
7184 .block_erase = erase_sector_jedec,
7185 }, {
7186 .eraseblocks = { {256 * 1024, 1} },
7187 .block_erase = erase_chip_block_jedec,
7188 },
7189 },
Sean Nelson35727f72010-01-28 23:55:12 +00007190 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007191 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00007192 },
7193
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007194 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00007195 .vendor = "SyncMOS/MoselVitelic",
7196 .name = "{F,S,V}29C51002T",
Urja Rannikko038a3122009-06-28 19:19:25 +00007197 .bustype = CHIP_BUSTYPE_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00007198 .manufacture_id = SYNCMOS_MVC_ID,
7199 .model_id = SM_MVC_29C51002T,
7200 .total_size = 256,
7201 .page_size = 512,
7202 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007203 .tested = TEST_OK_PRE,
Mattias Mattsson4c066502010-07-29 20:01:13 +00007204 .probe = probe_jedec,
7205 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7206 .block_erasers =
7207 {
7208 {
7209 .eraseblocks = { {512, 512} },
7210 .block_erase = erase_sector_jedec,
7211 }, {
7212 .eraseblocks = { {256 * 1024, 1} },
7213 .block_erase = erase_chip_block_jedec,
7214 },
7215 },
7216 .write = write_jedec_1,
7217 .read = read_memmapped,
7218 },
7219
7220 {
7221 .vendor = "SyncMOS/MoselVitelic",
7222 .name = "{F,S,V}29C51004B",
7223 .bustype = CHIP_BUSTYPE_PARALLEL,
7224 .manufacture_id = SYNCMOS_MVC_ID,
7225 .model_id = SM_MVC_29C51004B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007226 .total_size = 512,
Mattias Mattsson4c066502010-07-29 20:01:13 +00007227 .page_size = 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007228 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007229 .tested = TEST_UNTESTED,
7230 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007231 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007232 .block_erasers =
7233 {
7234 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00007235 .eraseblocks = { {1024, 512} },
7236 .block_erase = erase_sector_jedec,
7237 }, {
7238 .eraseblocks = { {512 * 1024, 1} },
7239 .block_erase = erase_chip_block_jedec,
7240 },
7241 },
7242 .write = write_jedec_1,
7243 .read = read_memmapped,
7244 },
7245
7246 {
7247 .vendor = "SyncMOS/MoselVitelic",
7248 .name = "{F,S,V}29C51004T",
7249 .bustype = CHIP_BUSTYPE_PARALLEL,
7250 .manufacture_id = SYNCMOS_MVC_ID,
7251 .model_id = SM_MVC_29C51004T,
7252 .total_size = 512,
7253 .page_size = 1024,
7254 .feature_bits = FEATURE_EITHER_RESET,
7255 .tested = TEST_UNTESTED,
7256 .probe = probe_jedec,
7257 .probe_timing = TIMING_ZERO,
7258 .block_erasers =
7259 {
7260 {
7261 .eraseblocks = { {1024, 512} },
7262 .block_erase = erase_sector_jedec,
7263 }, {
7264 .eraseblocks = { {512 * 1024, 1} },
7265 .block_erase = erase_chip_block_jedec,
7266 },
7267 },
7268 .write = write_jedec_1,
7269 .read = read_memmapped,
7270 },
7271
7272 {
7273 .vendor = "SyncMOS/MoselVitelic",
7274 .name = "{S,V}29C31004B",
7275 .bustype = CHIP_BUSTYPE_PARALLEL,
7276 .manufacture_id = SYNCMOS_MVC_ID,
7277 .model_id = SM_MVC_29C31004B,
7278 .total_size = 512,
7279 .page_size = 1024,
7280 .feature_bits = FEATURE_EITHER_RESET,
7281 .tested = TEST_UNTESTED,
7282 .probe = probe_jedec,
7283 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7284 .block_erasers =
7285 {
7286 {
7287 .eraseblocks = { {1024, 512} },
7288 .block_erase = erase_sector_jedec,
7289 }, {
7290 .eraseblocks = { {512 * 1024, 1} },
7291 .block_erase = erase_chip_block_jedec,
7292 },
7293 },
7294 .write = write_jedec_1,
7295 .read = read_memmapped,
7296 },
7297
7298 {
7299 .vendor = "SyncMOS/MoselVitelic",
7300 .name = "{S,V}29C31004T",
7301 .bustype = CHIP_BUSTYPE_PARALLEL,
7302 .manufacture_id = SYNCMOS_MVC_ID,
7303 .model_id = SM_MVC_29C31004T,
7304 .total_size = 512,
7305 .page_size = 1024,
7306 .feature_bits = FEATURE_EITHER_RESET,
7307 .tested = TEST_UNTESTED,
7308 .probe = probe_jedec,
7309 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7310 .block_erasers =
7311 {
7312 {
7313 .eraseblocks = { {1024, 512} },
Sean Nelson56358aa2010-01-19 16:08:51 +00007314 .block_erase = erase_sector_jedec,
7315 }, {
7316 .eraseblocks = { {512 * 1024, 1} },
7317 .block_erase = erase_chip_block_jedec,
7318 },
7319 },
Sean Nelson35727f72010-01-28 23:55:12 +00007320 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007321 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00007322 },
7323
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007324 {
Uwe Hermanna106d152009-05-27 23:17:40 +00007325 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00007326 .name = "TMS29F002RB",
Urja Rannikko038a3122009-06-28 19:19:25 +00007327 .bustype = CHIP_BUSTYPE_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00007328 .manufacture_id = TI_OLD_ID,
7329 .model_id = TI_TMS29F002RB,
7330 .total_size = 256,
7331 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +00007332 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00007333 .tested = TEST_UNTESTED,
7334 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007335 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007336 .block_erasers =
7337 {
7338 {
7339 .eraseblocks = {
7340 {16 * 1024, 1},
7341 {8 * 1024, 2},
7342 {32 * 1024, 1},
7343 {64 * 1024, 3},
7344 },
7345 .block_erase = erase_sector_jedec,
7346 }, {
7347 .eraseblocks = { {256 * 1024, 1} },
7348 .block_erase = erase_chip_block_jedec,
7349 },
7350 },
Sean Nelson35727f72010-01-28 23:55:12 +00007351 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00007352 .read = read_memmapped,
7353 },
7354
7355 {
Uwe Hermanna106d152009-05-27 23:17:40 +00007356 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00007357 .name = "TMS29F002RT",
Urja Rannikko038a3122009-06-28 19:19:25 +00007358 .bustype = CHIP_BUSTYPE_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00007359 .manufacture_id = TI_OLD_ID,
7360 .model_id = TI_TMS29F002RT,
7361 .total_size = 256,
7362 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +00007363 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00007364 .tested = TEST_UNTESTED,
7365 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007366 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007367 .block_erasers =
7368 {
7369 {
7370 .eraseblocks = {
7371 {64 * 1024, 3},
7372 {32 * 1024, 1},
7373 {8 * 1024, 2},
7374 {16 * 1024, 1},
7375 },
7376 .block_erase = erase_sector_jedec,
7377 }, {
7378 .eraseblocks = { {256 * 1024, 1} },
7379 .block_erase = erase_chip_block_jedec,
7380 },
7381 },
Sean Nelson35727f72010-01-28 23:55:12 +00007382 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00007383 .read = read_memmapped,
7384 },
7385
7386 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007387 .vendor = "Winbond",
Rudolf Marekce1c7982010-04-20 19:34:31 +00007388 .name = "W25Q80",
7389 .bustype = CHIP_BUSTYPE_SPI,
7390 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00007391 .model_id = WINBOND_NEX_W25Q80,
Rudolf Marekce1c7982010-04-20 19:34:31 +00007392 .total_size = 1024,
7393 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00007394 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00007395 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +00007396 .probe = probe_spi_rdid,
7397 .probe_timing = TIMING_ZERO,
7398 .block_erasers =
7399 {
7400 {
7401 .eraseblocks = { {4 * 1024, 256} },
7402 .block_erase = spi_block_erase_20,
7403 }, {
7404 .eraseblocks = { {32 * 1024, 32} },
7405 .block_erase = spi_block_erase_52,
7406 }, {
7407 .eraseblocks = { {64 * 1024, 16} },
7408 .block_erase = spi_block_erase_d8,
7409 }, {
7410 .eraseblocks = { {1024 * 1024, 1} },
7411 .block_erase = spi_block_erase_60,
7412 }, {
7413 .eraseblocks = { {1024 * 1024, 1} },
7414 .block_erase = spi_block_erase_c7,
7415 }
7416 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007417 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +00007418 .write = spi_chip_write_256,
7419 .read = spi_chip_read,
7420 },
7421
7422 {
7423 .vendor = "Winbond",
7424 .name = "W25Q16",
7425 .bustype = CHIP_BUSTYPE_SPI,
7426 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00007427 .model_id = WINBOND_NEX_W25Q16,
Rudolf Marekce1c7982010-04-20 19:34:31 +00007428 .total_size = 2048,
7429 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00007430 .feature_bits = FEATURE_WRSR_WREN,
Rudolf Marekce1c7982010-04-20 19:34:31 +00007431 .tested = TEST_UNTESTED,
7432 .probe = probe_spi_rdid,
7433 .probe_timing = TIMING_ZERO,
7434 .block_erasers =
7435 {
7436 {
7437 .eraseblocks = { {4 * 1024, 512} },
7438 .block_erase = spi_block_erase_20,
7439 }, {
7440 .eraseblocks = { {32 * 1024, 64} },
7441 .block_erase = spi_block_erase_52,
7442 }, {
7443 .eraseblocks = { {64 * 1024, 32} },
7444 .block_erase = spi_block_erase_d8,
7445 }, {
7446 .eraseblocks = { {2 * 1024 * 1024, 1} },
7447 .block_erase = spi_block_erase_60,
7448 }, {
7449 .eraseblocks = { {2 * 1024 * 1024, 1} },
7450 .block_erase = spi_block_erase_c7,
7451 }
7452 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007453 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +00007454 .write = spi_chip_write_256,
7455 .read = spi_chip_read,
7456 },
7457
7458 {
7459 .vendor = "Winbond",
7460 .name = "W25Q32",
7461 .bustype = CHIP_BUSTYPE_SPI,
7462 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00007463 .model_id = WINBOND_NEX_W25Q32,
Rudolf Marekce1c7982010-04-20 19:34:31 +00007464 .total_size = 4096,
7465 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00007466 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00007467 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +00007468 .probe = probe_spi_rdid,
7469 .probe_timing = TIMING_ZERO,
7470 .block_erasers =
7471 {
7472 {
7473 .eraseblocks = { {4 * 1024, 1024} },
7474 .block_erase = spi_block_erase_20,
7475 }, {
7476 .eraseblocks = { {32 * 1024, 128} },
7477 .block_erase = spi_block_erase_52,
7478 }, {
7479 .eraseblocks = { {64 * 1024, 64} },
7480 .block_erase = spi_block_erase_d8,
7481 }, {
7482 .eraseblocks = { {4 * 1024 * 1024, 1} },
7483 .block_erase = spi_block_erase_60,
7484 }, {
7485 .eraseblocks = { {4 * 1024 * 1024, 1} },
7486 .block_erase = spi_block_erase_c7,
7487 }
7488 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007489 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +00007490 .write = spi_chip_write_256,
7491 .read = spi_chip_read,
7492 },
7493
7494 {
7495 .vendor = "Winbond",
David Hendricksc4acec92010-06-24 11:39:57 +00007496 .name = "W25Q64",
7497 .bustype = CHIP_BUSTYPE_SPI,
7498 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00007499 .model_id = WINBOND_NEX_W25Q64,
David Hendricksc4acec92010-06-24 11:39:57 +00007500 .total_size = 8192,
7501 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00007502 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00007503 .tested = TEST_OK_PREW,
David Hendricksc4acec92010-06-24 11:39:57 +00007504 .probe = probe_spi_rdid,
7505 .probe_timing = TIMING_ZERO,
7506 .block_erasers =
7507 {
7508 {
7509 .eraseblocks = { {4 * 1024, 2048} },
7510 .block_erase = spi_block_erase_20,
7511 }, {
7512 .eraseblocks = { {32 * 1024, 256} },
7513 .block_erase = spi_block_erase_52,
7514 }, {
7515 .eraseblocks = { {64 * 1024, 128} },
7516 .block_erase = spi_block_erase_d8,
7517 }, {
7518 .eraseblocks = { {8 * 1024 * 1024, 1} },
7519 .block_erase = spi_block_erase_60,
7520 }, {
7521 .eraseblocks = { {8 * 1024 * 1024, 1} },
7522 .block_erase = spi_block_erase_c7,
7523 }
7524 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007525 .unlock = spi_disable_blockprotect,
David Hendricksc4acec92010-06-24 11:39:57 +00007526 .write = spi_chip_write_256,
7527 .read = spi_chip_read,
7528 },
7529
7530 {
7531 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007532 .name = "W25x10",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00007533 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007534 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00007535 .model_id = WINBOND_NEX_W25X10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007536 .total_size = 128,
7537 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00007538 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007539 .tested = TEST_UNTESTED,
7540 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007541 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007542 .block_erasers =
7543 {
7544 {
7545 .eraseblocks = { {4 * 1024, 32} },
7546 .block_erase = spi_block_erase_20,
7547 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007548 .eraseblocks = { {64 * 1024, 2} },
7549 .block_erase = spi_block_erase_d8,
7550 }, {
7551 .eraseblocks = { {128 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007552 .block_erase = spi_block_erase_c7,
7553 }
7554 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007555 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007556 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007557 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00007558 },
7559
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007560 {
7561 .vendor = "Winbond",
7562 .name = "W25x20",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00007563 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007564 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00007565 .model_id = WINBOND_NEX_W25X20,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007566 .total_size = 256,
7567 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00007568 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007569 .tested = TEST_UNTESTED,
7570 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007571 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007572 .block_erasers =
7573 {
7574 {
7575 .eraseblocks = { {4 * 1024, 64} },
7576 .block_erase = spi_block_erase_20,
7577 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007578 .eraseblocks = { {64 * 1024, 4} },
7579 .block_erase = spi_block_erase_d8,
7580 }, {
7581 .eraseblocks = { {256 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007582 .block_erase = spi_block_erase_c7,
7583 }
7584 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007585 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007586 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007587 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00007588 },
7589
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007590 {
7591 .vendor = "Winbond",
7592 .name = "W25x40",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00007593 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007594 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00007595 .model_id = WINBOND_NEX_W25X40,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007596 .total_size = 512,
7597 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00007598 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007599 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007600 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007601 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007602 .block_erasers =
7603 {
7604 {
7605 .eraseblocks = { {4 * 1024, 128} },
7606 .block_erase = spi_block_erase_20,
7607 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007608 .eraseblocks = { {64 * 1024, 8} },
7609 .block_erase = spi_block_erase_d8,
7610 }, {
7611 .eraseblocks = { {512 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007612 .block_erase = spi_block_erase_c7,
7613 }
7614 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007615 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007616 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007617 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00007618 },
7619
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007620 {
7621 .vendor = "Winbond",
7622 .name = "W25x80",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00007623 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007624 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00007625 .model_id = WINBOND_NEX_W25X80,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007626 .total_size = 1024,
7627 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00007628 .feature_bits = FEATURE_WRSR_WREN,
Yul Rottmann6d6ab742011-03-05 16:31:57 +00007629 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007630 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007631 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007632 .block_erasers =
7633 {
7634 {
7635 .eraseblocks = { {4 * 1024, 256} },
7636 .block_erase = spi_block_erase_20,
7637 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007638 .eraseblocks = { {64 * 1024, 16} },
7639 .block_erase = spi_block_erase_d8,
7640 }, {
7641 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007642 .block_erase = spi_block_erase_c7,
7643 }
7644 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007645 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007646 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007647 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00007648 },
7649
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007650 {
7651 .vendor = "Winbond",
Hector Martina721ae22009-07-11 19:39:11 +00007652 .name = "W25x16",
7653 .bustype = CHIP_BUSTYPE_SPI,
7654 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00007655 .model_id = WINBOND_NEX_W25X16,
Hector Martina721ae22009-07-11 19:39:11 +00007656 .total_size = 2048,
7657 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00007658 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007659 .tested = TEST_OK_PRE,
Hector Martina721ae22009-07-11 19:39:11 +00007660 .probe = probe_spi_rdid,
7661 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007662 .block_erasers =
7663 {
7664 {
7665 .eraseblocks = { {4 * 1024, 512} },
7666 .block_erase = spi_block_erase_20,
7667 }, {
7668 .eraseblocks = { {32 * 1024, 64} },
7669 .block_erase = spi_block_erase_52,
7670 }, {
7671 .eraseblocks = { {64 * 1024, 32} },
7672 .block_erase = spi_block_erase_d8,
7673 }, {
7674 .eraseblocks = { {2 * 1024 * 1024, 1} },
7675 .block_erase = spi_block_erase_60,
7676 }, {
7677 .eraseblocks = { {2 * 1024 * 1024, 1} },
7678 .block_erase = spi_block_erase_c7,
7679 }
7680 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007681 .unlock = spi_disable_blockprotect,
Hector Martina721ae22009-07-11 19:39:11 +00007682 .write = spi_chip_write_256,
7683 .read = spi_chip_read,
7684 },
7685
7686 {
7687 .vendor = "Winbond",
Zheng Bao1db2b752009-11-26 11:05:01 +00007688 .name = "W25x32",
7689 .bustype = CHIP_BUSTYPE_SPI,
7690 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00007691 .model_id = WINBOND_NEX_W25X32,
Zheng Bao1db2b752009-11-26 11:05:01 +00007692 .total_size = 4096,
7693 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00007694 .feature_bits = FEATURE_WRSR_WREN,
Zheng Bao1db2b752009-11-26 11:05:01 +00007695 .tested = TEST_OK_PROBE,
7696 .probe = probe_spi_rdid,
7697 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007698 .block_erasers =
7699 {
7700 {
7701 .eraseblocks = { {4 * 1024, 1024} },
7702 .block_erase = spi_block_erase_20,
7703 }, {
7704 .eraseblocks = { {32 * 1024, 128} },
7705 .block_erase = spi_block_erase_52,
7706 }, {
7707 .eraseblocks = { {64 * 1024, 64} },
7708 .block_erase = spi_block_erase_d8,
7709 }, {
7710 .eraseblocks = { {4 * 1024 * 1024, 1} },
7711 .block_erase = spi_block_erase_60,
7712 }, {
7713 .eraseblocks = { {4 * 1024 * 1024, 1} },
7714 .block_erase = spi_block_erase_c7,
7715 }
7716 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007717 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +00007718 .write = spi_chip_write_256,
7719 .read = spi_chip_read,
7720 },
7721
7722 {
7723 .vendor = "Winbond",
7724 .name = "W25x64",
7725 .bustype = CHIP_BUSTYPE_SPI,
7726 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00007727 .model_id = WINBOND_NEX_W25X64,
Zheng Bao1db2b752009-11-26 11:05:01 +00007728 .total_size = 8192,
7729 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00007730 .feature_bits = FEATURE_WRSR_WREN,
Zheng Bao1db2b752009-11-26 11:05:01 +00007731 .tested = TEST_UNTESTED,
7732 .probe = probe_spi_rdid,
7733 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007734 .block_erasers =
7735 {
7736 {
7737 .eraseblocks = { {4 * 1024, 2048} },
7738 .block_erase = spi_block_erase_20,
7739 }, {
7740 .eraseblocks = { {32 * 1024, 256} },
7741 .block_erase = spi_block_erase_52,
7742 }, {
7743 .eraseblocks = { {64 * 1024, 128} },
7744 .block_erase = spi_block_erase_d8,
7745 }, {
7746 .eraseblocks = { {8 * 1024 * 1024, 1} },
7747 .block_erase = spi_block_erase_60,
7748 }, {
7749 .eraseblocks = { {8 * 1024 * 1024, 1} },
7750 .block_erase = spi_block_erase_c7,
7751 }
7752 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007753 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +00007754 .write = spi_chip_write_256,
7755 .read = spi_chip_read,
7756 },
7757
7758 {
7759 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +00007760 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012",
Urja Rannikko038a3122009-06-28 19:19:25 +00007761 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007762 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00007763 .model_id = WINBOND_W29C010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007764 .total_size = 128,
7765 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00007766 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007767 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007768 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007769 .probe_timing = 10, /* used datasheet for the W29C011A */
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007770 .block_erasers =
7771 {
7772 {
7773 .eraseblocks = { {128 * 1024, 1} },
7774 .block_erase = erase_chip_block_jedec,
7775 }
7776 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007777 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007778 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00007779 },
7780
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007781 {
7782 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +00007783 .name = "W29C020(C)/W29C022",
Urja Rannikko161b8852009-06-05 08:47:37 +00007784 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007785 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00007786 .model_id = WINBOND_W29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007787 .total_size = 256,
7788 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00007789 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007790 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007791 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00007792 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007793 .block_erasers =
7794 {
7795 {
7796 .eraseblocks = { {256 * 1024, 1} },
7797 .block_erase = erase_chip_block_jedec,
7798 }
7799 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007800 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007801 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00007802 },
7803
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007804 {
7805 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +00007806 .name = "W29C040/P",
Urja Rannikko161b8852009-06-05 08:47:37 +00007807 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007808 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00007809 .model_id = WINBOND_W29C040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007810 .total_size = 512,
7811 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00007812 .feature_bits = FEATURE_LONG_RESET,
7813 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007814 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00007815 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007816 .block_erasers =
7817 {
7818 {
7819 .eraseblocks = { {512 * 1024, 1} },
7820 .block_erase = erase_chip_block_jedec,
7821 }
7822 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007823 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007824 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00007825 },
7826
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007827 {
7828 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +00007829 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012",
Urja Rannikko038a3122009-06-28 19:19:25 +00007830 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007831 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00007832 .model_id = WINBOND_W29C010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007833 .total_size = 128,
7834 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00007835 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007836 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007837 .probe = probe_w29ee011,
Maciej Pijankac6e11112009-06-03 14:46:22 +00007838 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (w29ee011.c) */
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007839 .block_erasers =
7840 {
7841 {
7842 .eraseblocks = { {128 * 1024, 1} },
7843 .block_erase = erase_chip_block_jedec,
7844 }
7845 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007846 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007847 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00007848 },
7849
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007850 {
7851 .vendor = "Winbond",
Michael Karcher19e0aac2011-03-06 17:58:05 +00007852 .name = "W39L040",
7853 .bustype = CHIP_BUSTYPE_PARALLEL,
7854 .manufacture_id = WINBOND_ID,
7855 .model_id = WINBOND_W39L040,
7856 .total_size = 512,
7857 .page_size = 64 * 1024,
7858 .feature_bits = FEATURE_EITHER_RESET,
7859 .tested = TEST_OK_PR,
7860 .probe = probe_jedec,
7861 .probe_timing = 10,
7862 .block_erasers =
7863 {
7864 {
7865 .eraseblocks = { {4 * 1024, 128} },
7866 .block_erase = erase_block_jedec,
7867 }, {
7868 .eraseblocks = { {64 * 1024, 8} },
7869 .block_erase = erase_sector_jedec,
7870 }, {
7871 .eraseblocks = { {512 * 1024, 1} },
7872 .block_erase = erase_chip_block_jedec,
7873 }
7874 },
7875 .printlock = printlock_w39l040,
7876 .write = write_jedec_1,
7877 .read = read_memmapped,
7878 },
7879
7880 {
7881 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007882 .name = "W39V040A",
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00007883 .bustype = CHIP_BUSTYPE_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007884 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00007885 .model_id = WINBOND_W39V040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007886 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00007887 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007888 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007889 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007890 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00007891 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007892 .block_erasers =
7893 {
7894 {
7895 .eraseblocks = { {64 * 1024, 8} },
7896 .block_erase = erase_sector_jedec,
7897 }, {
7898 .eraseblocks = { {512 * 1024, 1} },
7899 .block_erase = erase_chip_block_jedec,
7900 }
7901 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00007902 .printlock = printlock_w39v040a,
Sean Nelson35727f72010-01-28 23:55:12 +00007903 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007904 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00007905 },
7906
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007907 {
7908 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00007909 .name = "W39V040B",
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00007910 .bustype = CHIP_BUSTYPE_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007911 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00007912 .model_id = WINBOND_W39V040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007913 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00007914 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007915 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007916 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007917 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00007918 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007919 .block_erasers =
7920 {
7921 {
7922 .eraseblocks = { {64 * 1024, 8} },
7923 .block_erase = erase_sector_jedec,
7924 }, {
7925 .eraseblocks = { {512 * 1024, 1} },
7926 .block_erase = erase_chip_block_jedec,
7927 }
7928 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00007929 .printlock = printlock_w39v040b,
Sean Nelson35727f72010-01-28 23:55:12 +00007930 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007931 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00007932 },
7933
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007934 {
7935 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00007936 .name = "W39V040C",
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00007937 .bustype = CHIP_BUSTYPE_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007938 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00007939 .model_id = WINBOND_W39V040C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007940 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00007941 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007942 .feature_bits = FEATURE_EITHER_RESET,
7943 .tested = TEST_UNTESTED,
7944 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00007945 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007946 .block_erasers =
7947 {
7948 {
7949 .eraseblocks = { {64 * 1024, 8} },
7950 .block_erase = erase_sector_jedec,
7951 }, {
7952 .eraseblocks = { {512 * 1024, 1} },
7953 .block_erase = erase_chip_block_jedec,
7954 }
7955 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00007956 .printlock = printlock_w39v040c,
Sean Nelson35727f72010-01-28 23:55:12 +00007957 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007958 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00007959 },
7960
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007961 {
7962 .vendor = "Winbond",
7963 .name = "W39V040FA",
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00007964 .bustype = CHIP_BUSTYPE_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007965 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00007966 .model_id = WINBOND_W39V040FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007967 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00007968 .page_size = 64 * 1024,
Michael Karcherc9b63412010-05-30 16:55:18 +00007969 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007970 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007971 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00007972 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007973 .block_erasers =
7974 {
7975 {
7976 .eraseblocks = { {4 * 1024, 128} },
7977 .block_erase = erase_block_jedec,
7978 }, {
7979 .eraseblocks = { {64 * 1024, 8} },
7980 .block_erase = erase_sector_jedec,
7981 }, {
7982 .eraseblocks = { {512 * 1024, 1} },
7983 .block_erase = erase_chip_block_jedec,
7984 }
7985 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00007986 .printlock = printlock_w39v040fa,
Michael Karcherc9b63412010-05-30 16:55:18 +00007987 .unlock = unlock_sst_fwhub,
Sean Nelson35727f72010-01-28 23:55:12 +00007988 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007989 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00007990 },
7991
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007992 {
7993 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00007994 .name = "W39V040FB",
7995 .bustype = CHIP_BUSTYPE_FWH,
7996 .manufacture_id = WINBOND_ID,
7997 .model_id = WINBOND_W39V040B,
7998 .total_size = 512,
7999 .page_size = 64 * 1024,
8000 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00008001 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008002 .probe = probe_jedec,
8003 .probe_timing = 10,
8004 .block_erasers =
8005 {
8006 {
8007 .eraseblocks = { {64 * 1024, 8} },
8008 .block_erase = erase_sector_jedec,
8009 }, {
8010 .eraseblocks = { {512 * 1024, 1} },
8011 .block_erase = erase_chip_block_jedec,
8012 }
8013 },
8014 .printlock = printlock_w39v040fb,
Idwer Volleringecc67072010-12-26 23:55:12 +00008015 .unlock = unlock_w39v040fb,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008016 .write = write_jedec_1,
8017 .read = read_memmapped,
8018 },
8019
8020 {
8021 .vendor = "Winbond",
8022 .name = "W39V040FC",
8023 .bustype = CHIP_BUSTYPE_FWH,
8024 .manufacture_id = WINBOND_ID,
8025 .model_id = WINBOND_W39V040C,
8026 .total_size = 512,
8027 .page_size = 64 * 1024,
8028 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
8029 .tested = TEST_UNTESTED,
8030 .probe = probe_jedec,
8031 .probe_timing = 10,
8032 .block_erasers =
8033 {
8034 {
8035 .eraseblocks = { {64 * 1024, 8} },
8036 .block_erase = erase_sector_jedec,
8037 }, {
8038 .eraseblocks = { {512 * 1024, 1} },
8039 .block_erase = erase_chip_block_jedec,
8040 }
8041 },
8042 .printlock = printlock_w39v040fc,
8043 .write = write_jedec_1,
8044 .read = read_memmapped,
8045 },
8046
8047 {
8048 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008049 .name = "W39V080A",
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00008050 .bustype = CHIP_BUSTYPE_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008051 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008052 .model_id = WINBOND_W39V080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008053 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +00008054 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008055 .feature_bits = FEATURE_EITHER_RESET,
8056 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008057 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00008058 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008059 .block_erasers =
8060 {
8061 {
8062 .eraseblocks = { {64 * 1024, 16} },
8063 .block_erase = erase_sector_jedec,
8064 }, {
8065 .eraseblocks = { {1024 * 1024, 1} },
8066 .block_erase = erase_chip_block_jedec,
8067 }
8068 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008069 .printlock = printlock_w39v080a,
Sean Nelson35727f72010-01-28 23:55:12 +00008070 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008071 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00008072 },
8073
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008074 {
8075 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +00008076 .name = "W49F002U/N",
Urja Rannikko038a3122009-06-28 19:19:25 +00008077 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008078 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008079 .model_id = WINBOND_W49F002U,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008080 .total_size = 256,
8081 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00008082 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00008083 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008084 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008085 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008086 .block_erasers =
8087 {
8088 {
8089 .eraseblocks = {
8090 {128 * 1024, 1},
8091 {96 * 1024, 1},
8092 {8 * 1024, 2},
8093 {16 * 1024, 1},
8094 },
8095 .block_erase = erase_sector_jedec,
8096 }, {
8097 .eraseblocks = { {256 * 1024, 1} },
8098 .block_erase = erase_chip_block_jedec,
8099 }
8100 },
Sean Nelson35727f72010-01-28 23:55:12 +00008101 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008102 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00008103 },
8104
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008105 {
8106 .vendor = "Winbond",
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +00008107 .name = "W49F020",
8108 .bustype = CHIP_BUSTYPE_PARALLEL,
8109 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008110 .model_id = WINBOND_W49F020,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +00008111 .total_size = 256,
8112 .page_size = 128,
8113 .feature_bits = FEATURE_EITHER_RESET,
8114 .tested = TEST_OK_PROBE,
8115 .probe = probe_jedec,
8116 .probe_timing = 10,
8117 .block_erasers =
8118 {
8119 {
8120 .eraseblocks = { {256 * 1024, 1} },
8121 .block_erase = erase_chip_block_jedec,
8122 }
8123 },
8124 .write = write_jedec_1,
8125 .read = read_memmapped,
8126 },
8127
8128 {
8129 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008130 .name = "W49V002A",
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00008131 .bustype = CHIP_BUSTYPE_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008132 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008133 .model_id = WINBOND_W49V002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008134 .total_size = 256,
8135 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00008136 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00008137 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008138 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00008139 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008140 .block_erasers =
8141 {
8142 {
8143 .eraseblocks = {
8144 {64 * 1024, 3},
8145 {32 * 1024, 1},
8146 {8 * 1024, 2},
8147 {16 * 1024, 1},
8148 },
8149 .block_erase = erase_sector_jedec,
8150 }, {
8151 .eraseblocks = { {256 * 1024, 1} },
8152 .block_erase = erase_chip_block_jedec,
8153 }
8154 },
Sean Nelson35727f72010-01-28 23:55:12 +00008155 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008156 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00008157 },
8158
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008159 {
8160 .vendor = "Winbond",
8161 .name = "W49V002FA",
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00008162 .bustype = CHIP_BUSTYPE_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008163 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008164 .model_id = WINBOND_W49V002FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008165 .total_size = 256,
8166 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00008167 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00008168 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008169 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008170 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008171 .block_erasers =
8172 {
8173 {
8174 .eraseblocks = {
8175 {64 * 1024, 3},
8176 {32 * 1024, 1},
8177 {8 * 1024, 2},
8178 {16 * 1024, 1},
8179 },
8180 .block_erase = erase_sector_jedec,
8181 }, {
8182 .eraseblocks = { {256 * 1024, 1} },
8183 .block_erase = erase_chip_block_jedec,
8184 }
8185 },
Sean Nelson35727f72010-01-28 23:55:12 +00008186 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008187 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00008188 },
8189
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008190 {
8191 .vendor = "Winbond",
8192 .name = "W39V080FA",
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00008193 .bustype = CHIP_BUSTYPE_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008194 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008195 .model_id = WINBOND_W39V080FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008196 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +00008197 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008198 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00008199 .tested = TEST_OK_PRE,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00008200 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008201 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008202 .block_erasers =
8203 {
8204 {
8205 .eraseblocks = { {64 * 1024, 16}, },
8206 .block_erase = erase_sector_jedec,
8207 }, {
8208 .eraseblocks = { {1024 * 1024, 1} },
8209 .block_erase = erase_chip_block_jedec,
8210 }
8211 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008212 .printlock = printlock_w39v080fa,
8213 .unlock = unlock_w39v080fa,
Sean Nelson35727f72010-01-28 23:55:12 +00008214 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008215 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00008216 },
8217
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008218 {
8219 .vendor = "Winbond",
8220 .name = "W39V080FA (dual mode)",
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00008221 .bustype = CHIP_BUSTYPE_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008222 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008223 .model_id = WINBOND_W39V080FA_DM,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008224 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00008225 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008226 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008227 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00008228 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008229 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008230 .block_erasers =
8231 {
8232 {
8233 .eraseblocks = { {64 * 1024, 8}, },
8234 .block_erase = erase_sector_jedec,
8235 }, {
8236 .eraseblocks = { {512 * 1024, 1} },
8237 .block_erase = erase_chip_block_jedec,
8238 }
8239 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008240 .printlock = printlock_w39v080fa_dual,
Sean Nelson35727f72010-01-28 23:55:12 +00008241 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008242 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00008243 },
8244
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008245 {
Daniel Lenskidf90d3a2010-07-22 11:44:38 +00008246 .vendor = "AMIC",
8247 .name = "unknown AMIC SPI chip",
8248 .bustype = CHIP_BUSTYPE_SPI,
8249 .manufacture_id = AMIC_ID,
8250 .model_id = GENERIC_DEVICE_ID,
8251 .total_size = 0,
8252 .page_size = 256,
8253 .tested = TEST_BAD_PREW,
8254 .probe = probe_spi_rdid4,
8255 .probe_timing = TIMING_ZERO,
8256 .write = NULL,
8257 .read = NULL,
8258 },
8259
8260 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008261 .vendor = "Atmel",
8262 .name = "unknown Atmel SPI chip",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00008263 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008264 .manufacture_id = ATMEL_ID,
8265 .model_id = GENERIC_DEVICE_ID,
8266 .total_size = 0,
8267 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00008268 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008269 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008270 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008271 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008272 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00008273 },
8274
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008275 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00008276 .vendor = "Eon",
8277 .name = "unknown Eon SPI chip",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00008278 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008279 .manufacture_id = EON_ID_NOPREFIX,
8280 .model_id = GENERIC_DEVICE_ID,
8281 .total_size = 0,
8282 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00008283 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008284 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008285 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008286 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008287 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00008288 },
8289
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008290 {
8291 .vendor = "Macronix",
8292 .name = "unknown Macronix SPI chip",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00008293 .bustype = CHIP_BUSTYPE_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008294 .manufacture_id = MACRONIX_ID,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008295 .model_id = GENERIC_DEVICE_ID,
8296 .total_size = 0,
8297 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00008298 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008299 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008300 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008301 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008302 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00008303 },
8304
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008305 {
8306 .vendor = "PMC",
8307 .name = "unknown PMC SPI chip",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00008308 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008309 .manufacture_id = PMC_ID,
8310 .model_id = GENERIC_DEVICE_ID,
8311 .total_size = 0,
8312 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00008313 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008314 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008315 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008316 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008317 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00008318 },
8319
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008320 {
8321 .vendor = "SST",
8322 .name = "unknown SST SPI chip",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00008323 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008324 .manufacture_id = SST_ID,
8325 .model_id = GENERIC_DEVICE_ID,
8326 .total_size = 0,
8327 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00008328 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008329 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008330 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008331 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008332 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00008333 },
8334
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008335 {
8336 .vendor = "ST",
8337 .name = "unknown ST SPI chip",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00008338 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008339 .manufacture_id = ST_ID,
8340 .model_id = GENERIC_DEVICE_ID,
8341 .total_size = 0,
8342 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00008343 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008344 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008345 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008346 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008347 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00008348 },
Uwe Hermannfc425e82008-03-16 02:06:25 +00008349
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00008350 {
Sean Nelson118e1d62009-11-24 02:08:11 +00008351 .vendor = "Sanyo",
8352 .name = "unknown Sanyo SPI chip",
8353 .bustype = CHIP_BUSTYPE_SPI,
8354 .manufacture_id = SANYO_ID,
8355 .model_id = GENERIC_DEVICE_ID,
8356 .total_size = 0,
8357 .page_size = 256,
8358 .tested = TEST_BAD_PREW,
8359 .probe = probe_spi_rdid,
8360 .probe_timing = TIMING_ZERO,
Sean Nelson118e1d62009-11-24 02:08:11 +00008361 .write = NULL,
8362 .read = NULL,
8363 },
8364
8365 {
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00008366 .vendor = "Generic",
8367 .name = "unknown SPI chip (RDID)",
8368 .bustype = CHIP_BUSTYPE_SPI,
8369 .manufacture_id = GENERIC_MANUF_ID,
8370 .model_id = GENERIC_DEVICE_ID,
8371 .total_size = 0,
8372 .page_size = 256,
8373 .tested = TEST_BAD_PREW,
8374 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00008375 .write = NULL,
8376 },
8377 {
8378 .vendor = "Generic",
8379 .name = "unknown SPI chip (REMS)",
8380 .bustype = CHIP_BUSTYPE_SPI,
8381 .manufacture_id = GENERIC_MANUF_ID,
8382 .model_id = GENERIC_DEVICE_ID,
8383 .total_size = 0,
8384 .page_size = 256,
8385 .tested = TEST_BAD_PREW,
8386 .probe = probe_spi_rems,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00008387 .write = NULL,
8388 },
8389
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008390 { NULL }
Stephan Guilloux72cf5652009-04-21 01:46:07 +00008391};