blob: 35e9d1b4e53671306313c7173ce389c64427aaa4 [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,
64 .model_id = AM_29F010B, /* Same as Am29F010A */
65 .total_size = 128,
66 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000067 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Uwe Hermann51afebb2010-08-01 00:13:49 +000068 .tested = TEST_OK_PREW,
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,
90 .model_id = AM_29F002BB,
91 .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,
121 .model_id = AM_29F002BT,
122 .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,
152 .model_id = AM_29F016D,
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,
Maciej Pijankac6e11112009-06-03 14:46:22 +0000158 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (am29f040b.c) */
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,
178 .model_id = AM_29F040B,
179 .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,
Maciej Pijankac6e11112009-06-03 14:46:22 +0000184 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (am29f040b.c) */
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,
204 .model_id = AM_29F080B,
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",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000227 .name = "Am29LV040B",
Urja Rannikko038a3122009-06-28 19:19:25 +0000228 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000229 .manufacture_id = AMD_ID,
230 .model_id = AM_29LV040B,
231 .total_size = 512,
232 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000233 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000234 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +0000235 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +0000236 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (am29f040b.c) */
Sean Nelson72a9a022009-12-22 22:15:33 +0000237 .block_erasers =
238 {
239 {
240 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +0000241 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000242 }, {
243 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000244 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000245 },
246 },
Sean Nelson35727f72010-01-28 23:55:12 +0000247 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000248 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +0000249 },
250
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000251 {
Peter Stuge8440cc02009-01-25 23:55:12 +0000252 .vendor = "AMD",
253 .name = "Am29LV081B",
Urja Rannikko038a3122009-06-28 19:19:25 +0000254 .bustype = CHIP_BUSTYPE_PARALLEL,
Mateusz Murawski5bae4382009-06-02 00:38:14 +0000255 .manufacture_id = AMD_ID,
Carl-Daniel Hailfinger6d5d2532009-08-10 10:14:23 +0000256 .model_id = AM_29LV080B,
Peter Stuge8440cc02009-01-25 23:55:12 +0000257 .total_size = 1024,
258 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000259 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +0000260 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +0000261 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +0000262 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (am29f040b.c) */
Sean Nelson72a9a022009-12-22 22:15:33 +0000263 .block_erasers =
264 {
265 {
266 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson35727f72010-01-28 23:55:12 +0000267 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000268 }, {
269 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000270 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000271 },
272 },
Sean Nelson35727f72010-01-28 23:55:12 +0000273 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000274 .read = read_memmapped,
Peter Stuge8440cc02009-01-25 23:55:12 +0000275 },
276
277 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000278 .vendor = "AMIC",
279 .name = "A25L05PT",
280 .bustype = CHIP_BUSTYPE_SPI,
281 .manufacture_id = AMIC_ID,
282 .model_id = AMIC_A25L05PT,
283 .total_size = 64,
284 .page_size = 256,
285 .tested = TEST_UNTESTED,
286 .probe = probe_spi_rdid4,
287 .probe_timing = TIMING_ZERO,
288 .block_erasers =
289 {
290 {
291 .eraseblocks = {
292 {32 * 1024, 1},
293 {16 * 1024, 1},
294 {8 * 1024, 1},
295 {4 * 1024, 2},
296 },
297 .block_erase = spi_block_erase_d8,
298 }, {
299 .eraseblocks = { {64 * 1024, 1} },
300 .block_erase = spi_block_erase_c7,
301 }
302 },
303 .unlock = spi_disable_blockprotect,
304 .write = spi_chip_write_256,
305 .read = spi_chip_read,
306 },
307
308 {
309 .vendor = "AMIC",
310 .name = "A25L05PU",
311 .bustype = CHIP_BUSTYPE_SPI,
312 .manufacture_id = AMIC_ID,
313 .model_id = AMIC_A25L05PU,
314 .total_size = 64,
315 .page_size = 256,
316 .tested = TEST_UNTESTED,
317 .probe = probe_spi_rdid4,
318 .probe_timing = TIMING_ZERO,
319 .block_erasers =
320 {
321 {
322 .eraseblocks = {
323 {4 * 1024, 2},
324 {8 * 1024, 1},
325 {16 * 1024, 1},
326 {32 * 1024, 1},
327 },
328 .block_erase = spi_block_erase_d8,
329 }, {
330 .eraseblocks = { {64 * 1024, 1} },
331 .block_erase = spi_block_erase_c7,
332 }
333 },
334 .unlock = spi_disable_blockprotect,
335 .write = spi_chip_write_256,
336 .read = spi_chip_read,
337 },
338
339 {
340 .vendor = "AMIC",
341 .name = "A25L10PT",
342 .bustype = CHIP_BUSTYPE_SPI,
343 .manufacture_id = AMIC_ID,
344 .model_id = AMIC_A25L10PT,
345 .total_size = 128,
346 .page_size = 256,
347 .tested = TEST_UNTESTED,
348 .probe = probe_spi_rdid4,
349 .probe_timing = TIMING_ZERO,
350 .block_erasers =
351 {
352 {
353 .eraseblocks = {
354 {64 * 1024, 1},
355 {32 * 1024, 1},
356 {16 * 1024, 1},
357 {8 * 1024, 1},
358 {4 * 1024, 2},
359 },
360 .block_erase = spi_block_erase_d8,
361 }, {
362 .eraseblocks = { {128 * 1024, 1} },
363 .block_erase = spi_block_erase_c7,
364 }
365 },
366 .unlock = spi_disable_blockprotect,
367 .write = spi_chip_write_256,
368 .read = spi_chip_read,
369 },
370
371 {
372 .vendor = "AMIC",
373 .name = "A25L10PU",
374 .bustype = CHIP_BUSTYPE_SPI,
375 .manufacture_id = AMIC_ID,
376 .model_id = AMIC_A25L10PU,
377 .total_size = 128,
378 .page_size = 256,
379 .tested = TEST_UNTESTED,
380 .probe = probe_spi_rdid4,
381 .probe_timing = TIMING_ZERO,
382 .block_erasers =
383 {
384 {
385 .eraseblocks = {
386 {4 * 1024, 2},
387 {8 * 1024, 1},
388 {16 * 1024, 1},
389 {32 * 1024, 1},
390 {64 * 1024, 1},
391 },
392 .block_erase = spi_block_erase_d8,
393 }, {
394 .eraseblocks = { {128 * 1024, 1} },
395 .block_erase = spi_block_erase_c7,
396 }
397 },
398 .unlock = spi_disable_blockprotect,
399 .write = spi_chip_write_256,
400 .read = spi_chip_read,
401 },
402
403 {
404 .vendor = "AMIC",
405 .name = "A25L20PT",
406 .bustype = CHIP_BUSTYPE_SPI,
407 .manufacture_id = AMIC_ID,
408 .model_id = AMIC_A25L20PT,
409 .total_size = 256,
410 .page_size = 256,
411 .tested = TEST_UNTESTED,
412 .probe = probe_spi_rdid4,
413 .probe_timing = TIMING_ZERO,
414 .block_erasers =
415 {
416 {
417 .eraseblocks = {
418 {64 * 1024, 3},
419 {32 * 1024, 1},
420 {16 * 1024, 1},
421 {8 * 1024, 1},
422 {4 * 1024, 2},
423 },
424 .block_erase = spi_block_erase_d8,
425 }, {
426 .eraseblocks = { {256 * 1024, 1} },
427 .block_erase = spi_block_erase_c7,
428 }
429 },
430 .unlock = spi_disable_blockprotect,
431 .write = spi_chip_write_256,
432 .read = spi_chip_read,
433 },
434
435 {
436 .vendor = "AMIC",
437 .name = "A25L20PU",
438 .bustype = CHIP_BUSTYPE_SPI,
439 .manufacture_id = AMIC_ID,
440 .model_id = AMIC_A25L20PU,
441 .total_size = 256,
442 .page_size = 256,
443 .tested = TEST_UNTESTED,
444 .probe = probe_spi_rdid4,
445 .probe_timing = TIMING_ZERO,
446 .block_erasers =
447 {
448 {
449 .eraseblocks = {
450 {4 * 1024, 2},
451 {8 * 1024, 1},
452 {16 * 1024, 1},
453 {32 * 1024, 1},
454 {64 * 1024, 3},
455 },
456 .block_erase = spi_block_erase_d8,
457 }, {
458 .eraseblocks = { {256 * 1024, 1} },
459 .block_erase = spi_block_erase_c7,
460 }
461 },
462 .unlock = spi_disable_blockprotect,
463 .write = spi_chip_write_256,
464 .read = spi_chip_read,
465 },
466
467 /* The A25L40P{T,U} chips are distinguished by their
468 * erase block layouts, but without any distinction in RDID.
469 * This inexplicable quirk was verified by Rudolf Marek
470 * and discussed on the flashrom mailing list on 2010-07-12.
471 */
472 {
473 .vendor = "AMIC",
474 .name = "A25L40PT",
475 .bustype = CHIP_BUSTYPE_SPI,
476 .manufacture_id = AMIC_ID,
477 .model_id = AMIC_A25L40PT,
478 .total_size = 512,
479 .page_size = 256,
480 .tested = TEST_OK_PRW,
481 .probe = probe_spi_rdid4,
482 .probe_timing = TIMING_ZERO,
483 .block_erasers =
484 {
485 {
486 .eraseblocks = {
487 {64 * 1024, 7},
488 {32 * 1024, 1},
489 {16 * 1024, 1},
490 {8 * 1024, 1},
491 {4 * 1024, 2},
492 },
493 .block_erase = spi_block_erase_d8,
494 }, {
495 .eraseblocks = { {512 * 1024, 1} },
496 .block_erase = spi_block_erase_c7,
497 }
498 },
499 .unlock = spi_disable_blockprotect,
500 .write = spi_chip_write_256,
501 .read = spi_chip_read,
502 },
503
504 {
505 .vendor = "AMIC",
506 .name = "A25L40PU",
507 .bustype = CHIP_BUSTYPE_SPI,
508 .manufacture_id = AMIC_ID,
509 .model_id = AMIC_A25L40PU,
510 .total_size = 512,
511 .page_size = 256,
512 .tested = TEST_OK_PRW,
513 .probe = probe_spi_rdid4,
514 .probe_timing = TIMING_ZERO,
515 .block_erasers =
516 {
517 {
518 .eraseblocks = {
519 {4 * 1024, 2},
520 {8 * 1024, 1},
521 {16 * 1024, 1},
522 {32 * 1024, 1},
523 {64 * 1024, 7},
524 },
525 .block_erase = spi_block_erase_d8,
526 }, {
527 .eraseblocks = { {512 * 1024, 1} },
528 .block_erase = spi_block_erase_c7,
529 }
530 },
531 .unlock = spi_disable_blockprotect,
532 .write = spi_chip_write_256,
533 .read = spi_chip_read,
534 },
535
536 {
537 .vendor = "AMIC",
538 .name = "A25L80P",
539 .bustype = CHIP_BUSTYPE_SPI,
540 .manufacture_id = AMIC_ID,
541 .model_id = AMIC_A25L80P,
542 .total_size = 1024,
543 .page_size = 256,
544 .tested = TEST_OK_PREW,
545 .probe = probe_spi_rdid4,
546 .probe_timing = TIMING_ZERO,
547 .block_erasers =
548 {
549 {
550 .eraseblocks = {
551 {4 * 1024, 2},
552 {8 * 1024, 1},
553 {16 * 1024, 1},
554 {32 * 1024, 1},
555 {64 * 1024, 15},
556 },
557 .block_erase = spi_block_erase_d8,
558 }, {
559 .eraseblocks = { {1024 * 1024, 1} },
560 .block_erase = spi_block_erase_c7,
561 }
562 },
563 .unlock = spi_disable_blockprotect,
564 .write = spi_chip_write_256,
565 .read = spi_chip_read,
566 },
567
568 {
569 .vendor = "AMIC",
570 .name = "A25L16PT",
571 .bustype = CHIP_BUSTYPE_SPI,
572 .manufacture_id = AMIC_ID,
573 .model_id = AMIC_A25L16PT,
574 .total_size = 2048,
575 .page_size = 256,
576 .tested = TEST_UNTESTED,
577 .probe = probe_spi_rdid4,
578 .probe_timing = TIMING_ZERO,
579 .block_erasers =
580 {
581 {
582 .eraseblocks = {
583 {64 * 1024, 31},
584 {32 * 1024, 1},
585 {16 * 1024, 1},
586 {8 * 1024, 1},
587 {4 * 1024, 2},
588 },
589 .block_erase = spi_block_erase_d8,
590 }, {
591 .eraseblocks = { {2048 * 1024, 1} },
592 .block_erase = spi_block_erase_60,
593 }, {
594 .eraseblocks = { {2048 * 1024, 1} },
595 .block_erase = spi_block_erase_c7,
596 }
597 },
598 .unlock = spi_disable_blockprotect,
599 .write = spi_chip_write_256,
600 .read = spi_chip_read,
601 },
602
603 {
604 .vendor = "AMIC",
605 .name = "A25L16PU",
606 .bustype = CHIP_BUSTYPE_SPI,
607 .manufacture_id = AMIC_ID,
608 .model_id = AMIC_A25L16PU,
609 .total_size = 2048,
610 .page_size = 256,
611 .tested = TEST_OK_PRW,
612 .probe = probe_spi_rdid4,
613 .probe_timing = TIMING_ZERO,
614 .block_erasers =
615 {
616 {
617 .eraseblocks = {
618 {4 * 1024, 2},
619 {8 * 1024, 1},
620 {16 * 1024, 1},
621 {32 * 1024, 1},
622 {64 * 1024, 31},
623 },
624 .block_erase = spi_block_erase_d8,
625 }, {
626 .eraseblocks = { {2048 * 1024, 1} },
627 .block_erase = spi_block_erase_60,
628 }, {
629 .eraseblocks = { {2048 * 1024, 1} },
630 .block_erase = spi_block_erase_c7,
631 }
632 },
633 .unlock = spi_disable_blockprotect,
634 .write = spi_chip_write_256,
635 .read = spi_chip_read,
636 },
637
638 {
639 .vendor = "AMIC",
Dan Lenski11617122010-07-29 15:00:40 +0000640 .name = "A25L512",
641 .bustype = CHIP_BUSTYPE_SPI,
642 .manufacture_id = AMIC_ID_NOPREFIX,
643 .model_id = AMIC_A25L512,
644 .total_size = 64,
645 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +0000646 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +0000647 .tested = TEST_UNTESTED,
648 .probe = probe_spi_rdid,
649 .probe_timing = TIMING_ZERO,
650 .block_erasers =
651 {
652 {
653 .eraseblocks = { { 4 * 1024, 16 } },
654 .block_erase = spi_block_erase_20,
655 }, {
656 .eraseblocks = { { 64 * 1024, 1 } },
657 .block_erase = spi_block_erase_d8,
658 }, {
659 .eraseblocks = { { 64 * 1024, 1 } },
660 .block_erase = spi_block_erase_c7,
661 }
662 },
663 .unlock = spi_disable_blockprotect,
664 .write = spi_chip_write_256,
665 .read = spi_chip_read,
666 },
667
668 {
669 .vendor = "AMIC",
670 .name = "A25L010",
671 .bustype = CHIP_BUSTYPE_SPI,
672 .manufacture_id = AMIC_ID_NOPREFIX,
673 .model_id = AMIC_A25L010,
674 .total_size = 128,
675 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +0000676 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +0000677 .tested = TEST_UNTESTED,
678 .probe = probe_spi_rdid,
679 .probe_timing = TIMING_ZERO,
680 .block_erasers =
681 {
682 {
683 .eraseblocks = { { 4 * 1024, 32 } },
684 .block_erase = spi_block_erase_20,
685 }, {
686 .eraseblocks = { { 64 * 1024, 2 } },
687 .block_erase = spi_block_erase_d8,
688 }, {
689 .eraseblocks = { { 128 * 1024, 1 } },
690 .block_erase = spi_block_erase_c7,
691 }
692 },
693 .unlock = spi_disable_blockprotect,
694 .write = spi_chip_write_256,
695 .read = spi_chip_read,
696 },
697
698 {
699 .vendor = "AMIC",
700 .name = "A25L020",
701 .bustype = CHIP_BUSTYPE_SPI,
702 .manufacture_id = AMIC_ID_NOPREFIX,
703 .model_id = AMIC_A25L020,
704 .total_size = 256,
705 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +0000706 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +0000707 .tested = TEST_UNTESTED,
708 .probe = probe_spi_rdid,
709 .probe_timing = TIMING_ZERO,
710 .block_erasers =
711 {
712 {
713 .eraseblocks = { { 4 * 1024, 64 } },
714 .block_erase = spi_block_erase_20,
715 }, {
716 .eraseblocks = { { 64 * 1024, 4 } },
717 .block_erase = spi_block_erase_d8,
718 }, {
719 .eraseblocks = { { 256 * 1024, 1 } },
720 .block_erase = spi_block_erase_c7,
721 }
722 },
723 .unlock = spi_disable_blockprotect,
724 .write = spi_chip_write_256,
725 .read = spi_chip_read,
726 },
727
728 {
729 .vendor = "AMIC",
730 .name = "A25L040",
731 .bustype = CHIP_BUSTYPE_SPI,
732 .manufacture_id = AMIC_ID_NOPREFIX,
733 .model_id = AMIC_A25L040,
734 .total_size = 512,
735 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +0000736 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +0000737 .tested = TEST_UNTESTED,
738 .probe = probe_spi_rdid,
739 .probe_timing = TIMING_ZERO,
740 .block_erasers =
741 {
742 {
743 .eraseblocks = { { 4 * 1024, 128 } },
744 .block_erase = spi_block_erase_20,
745 }, {
746 .eraseblocks = { { 64 * 1024, 8 } },
747 .block_erase = spi_block_erase_d8,
748 }, {
749 .eraseblocks = { { 512 * 1024, 1 } },
750 .block_erase = spi_block_erase_c7,
751 }
752 },
753 .unlock = spi_disable_blockprotect,
754 .write = spi_chip_write_256,
755 .read = spi_chip_read,
756 },
757
758 {
759 .vendor = "AMIC",
760 .name = "A25L080",
761 .bustype = CHIP_BUSTYPE_SPI,
762 .manufacture_id = AMIC_ID_NOPREFIX,
763 .model_id = AMIC_A25L080,
764 .total_size = 1024,
765 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +0000766 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +0000767 .tested = TEST_UNTESTED,
768 .probe = probe_spi_rdid,
769 .probe_timing = TIMING_ZERO,
770 .block_erasers =
771 {
772 {
773 .eraseblocks = { { 4 * 1024, 256 } },
774 .block_erase = spi_block_erase_20,
775 }, {
776 .eraseblocks = { { 64 * 1024, 16 } },
777 .block_erase = spi_block_erase_d8,
778 }, {
779 .eraseblocks = { { 1024 * 1024, 1 } },
780 .block_erase = spi_block_erase_c7,
781 }
782 },
783 .unlock = spi_disable_blockprotect,
784 .write = spi_chip_write_256,
785 .read = spi_chip_read,
786 },
787
788 {
789 .vendor = "AMIC",
790 .name = "A25L016",
791 .bustype = CHIP_BUSTYPE_SPI,
792 .manufacture_id = AMIC_ID_NOPREFIX,
793 .model_id = AMIC_A25L016,
794 .total_size = 2048,
795 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +0000796 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +0000797 .tested = TEST_UNTESTED,
798 .probe = probe_spi_rdid,
799 .probe_timing = TIMING_ZERO,
800 .block_erasers =
801 {
802 {
803 .eraseblocks = { { 4 * 1024, 512 } },
804 .block_erase = spi_block_erase_20,
805 }, {
806 .eraseblocks = { { 64 * 1024, 32 } },
807 .block_erase = spi_block_erase_d8,
808 }, {
809 .eraseblocks = { { 2048 * 1024, 1 } },
810 .block_erase = spi_block_erase_c7,
811 }
812 },
813 .unlock = spi_disable_blockprotect,
814 .write = spi_chip_write_256,
815 .read = spi_chip_read,
816 },
817
818 {
819 .vendor = "AMIC",
820 .name = "A25L032",
821 .bustype = CHIP_BUSTYPE_SPI,
822 .manufacture_id = AMIC_ID_NOPREFIX,
823 .model_id = AMIC_A25L032,
824 .total_size = 4096,
825 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +0000826 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +0000827 .tested = TEST_UNTESTED,
828 .probe = probe_spi_rdid,
829 .probe_timing = TIMING_ZERO,
830 .block_erasers =
831 {
832 {
833 .eraseblocks = { { 4 * 1024, 1024 } },
834 .block_erase = spi_block_erase_20,
835 }, {
836 .eraseblocks = { { 64 * 1024, 64 } },
837 .block_erase = spi_block_erase_52,
838 }, {
839 .eraseblocks = { { 64 * 1024, 64 } },
840 .block_erase = spi_block_erase_d8,
841 }, {
842 .eraseblocks = { { 4096 * 1024, 1 } },
843 .block_erase = spi_block_erase_60,
844 }, {
845 .eraseblocks = { { 4096 * 1024, 1 } },
846 .block_erase = spi_block_erase_c7,
847 }
848 },
849 .unlock = NULL, /* Two status reg bytes (read with 0x35 and 0x05) */
850 .write = spi_chip_write_256,
851 .read = spi_chip_read,
852 },
853
854 {
855 .vendor = "AMIC",
856 .name = "A25LQ032",
857 .bustype = CHIP_BUSTYPE_SPI,
858 .manufacture_id = AMIC_ID_NOPREFIX,
859 .model_id = AMIC_A25LQ032,
860 .total_size = 4096,
861 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +0000862 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +0000863 .tested = TEST_UNTESTED,
864 .probe = probe_spi_rdid,
865 .probe_timing = TIMING_ZERO,
866 .block_erasers =
867 {
868 {
869 .eraseblocks = { { 4 * 1024, 1024 } },
870 .block_erase = spi_block_erase_20,
871 }, {
872 .eraseblocks = { { 64 * 1024, 64 } },
873 .block_erase = spi_block_erase_52,
874 }, {
875 .eraseblocks = { { 64 * 1024, 64 } },
876 .block_erase = spi_block_erase_d8,
877 }, {
878 .eraseblocks = { { 4096 * 1024, 1 } },
879 .block_erase = spi_block_erase_60,
880 }, {
881 .eraseblocks = { { 4096 * 1024, 1 } },
882 .block_erase = spi_block_erase_c7,
883 }
884 },
885 .unlock = NULL, /* Two status reg bytes (read with 0x35 and 0x05) */
886 .write = spi_chip_write_256,
887 .read = spi_chip_read,
888 },
889
890 {
891 .vendor = "AMIC",
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000892 .name = "A29002B",
893 .bustype = CHIP_BUSTYPE_PARALLEL,
894 .manufacture_id = AMIC_ID_NOPREFIX,
895 .model_id = AMIC_A29002B,
896 .total_size = 256,
897 .page_size = 64 * 1024,
898 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
899 .tested = TEST_UNTESTED,
900 .probe = probe_jedec,
901 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (mx29f002.c) */
902 .block_erasers =
903 {
904 {
905 .eraseblocks = {
906 {16 * 1024, 1},
907 {8 * 1024, 2},
908 {32 * 1024, 1},
909 {64 * 1024, 3},
910 },
911 .block_erase = erase_sector_jedec,
912 }, {
913 .eraseblocks = { {256 * 1024, 1} },
914 .block_erase = erase_chip_block_jedec,
915 },
916 },
917 .write = write_jedec_1,
918 .read = read_memmapped,
919 },
920
921 {
922 .vendor = "AMIC",
923 .name = "A29002T",
924 .bustype = CHIP_BUSTYPE_PARALLEL,
925 .manufacture_id = AMIC_ID_NOPREFIX,
926 .model_id = AMIC_A29002T,
927 .total_size = 256,
928 .page_size = 64 * 1024,
929 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
930 .tested = TEST_OK_PRW,
931 .probe = probe_jedec,
932 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (mx29f002.c) */
933 .block_erasers =
934 {
935 {
936 .eraseblocks = {
937 {64 * 1024, 3},
938 {32 * 1024, 1},
939 {8 * 1024, 2},
940 {16 * 1024, 1},
941 },
942 .block_erase = erase_sector_jedec,
943 }, {
944 .eraseblocks = { {256 * 1024, 1} },
945 .block_erase = erase_chip_block_jedec,
946 },
947 },
948 .write = write_jedec_1,
949 .read = read_memmapped,
950 },
951
952 {
953 .vendor = "AMIC",
954 .name = "A29040B",
955 .bustype = CHIP_BUSTYPE_PARALLEL,
956 .manufacture_id = AMIC_ID_NOPREFIX,
957 .model_id = AMIC_A29040B,
958 .total_size = 512,
959 .page_size = 64 * 1024,
960 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
961 .tested = TEST_UNTESTED,
962 .probe = probe_jedec,
963 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (am29f040b.c) */
964 .block_erasers =
965 {
966 {
967 .eraseblocks = { {64 * 1024, 8} },
968 .block_erase = erase_sector_jedec,
969 }, {
970 .eraseblocks = { {512 * 1024, 1} },
971 .block_erase = erase_chip_block_jedec,
972 },
973 },
974 .write = write_jedec_1,
975 .read = read_memmapped,
976 },
977
978 {
979 .vendor = "AMIC",
980 .name = "A49LF040A",
981 .bustype = CHIP_BUSTYPE_LPC,
982 .manufacture_id = AMIC_ID_NOPREFIX,
983 .model_id = AMIC_A49LF040A,
984 .total_size = 512,
985 .page_size = 64 * 1024,
986 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
987 .tested = TEST_OK_PREW,
988 .probe = probe_jedec,
989 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
990 .block_erasers =
991 {
992 {
993 .eraseblocks = { {64 * 1024, 8} },
994 .block_erase = erase_block_jedec,
995 }, {
996 .eraseblocks = { {512 * 1024, 1} },
997 .block_erase = erase_chip_block_jedec,
998 }
999 },
1000 .unlock = unlock_49fl00x,
1001 .write = write_jedec_1,
1002 .read = read_memmapped,
1003 },
1004
1005 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001006 .vendor = "ASD",
1007 .name = "AE49F2008",
Urja Rannikko038a3122009-06-28 19:19:25 +00001008 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001009 .manufacture_id = ASD_ID,
1010 .model_id = ASD_AE49F2008,
1011 .total_size = 256,
1012 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00001013 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001014 .tested = TEST_UNTESTED,
1015 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00001016 .probe_timing = TIMING_FIXME,
Sean Nelson54596372010-01-09 05:30:14 +00001017 .block_erasers =
1018 {
1019 {
1020 .eraseblocks = {
1021 {128 * 1024, 1},
1022 {96 * 1024, 1},
1023 {8 * 1024, 2},
1024 {16 * 1024, 1},
1025 },
1026 .block_erase = erase_sector_jedec,
1027 }, {
1028 .eraseblocks = { {256 * 1024, 1} },
1029 .block_erase = erase_chip_block_jedec,
1030 }
1031 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001032 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00001033 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00001034 },
1035
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001036 {
1037 .vendor = "Atmel",
1038 .name = "AT25DF021",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001039 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001040 .manufacture_id = ATMEL_ID,
1041 .model_id = AT_25DF021,
1042 .total_size = 256,
1043 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001044 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001045 .tested = TEST_UNTESTED,
1046 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001047 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001048 .block_erasers =
1049 {
1050 {
1051 .eraseblocks = { {4 * 1024, 64} },
1052 .block_erase = spi_block_erase_20,
1053 }, {
1054 .eraseblocks = { {32 * 1024, 8} },
1055 .block_erase = spi_block_erase_52,
1056 }, {
1057 .eraseblocks = { {64 * 1024, 4} },
1058 .block_erase = spi_block_erase_d8,
1059 }, {
1060 .eraseblocks = { {256 * 1024, 1} },
1061 .block_erase = spi_block_erase_60,
1062 }, {
1063 .eraseblocks = { {256 * 1024, 1} },
1064 .block_erase = spi_block_erase_c7,
1065 }
1066 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001067 .printlock = spi_prettyprint_status_register_at25df,
1068 .unlock = spi_disable_blockprotect_at25df,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001069 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001070 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00001071 },
1072
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001073 {
1074 .vendor = "Atmel",
1075 .name = "AT25DF041A",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001076 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001077 .manufacture_id = ATMEL_ID,
1078 .model_id = AT_25DF041A,
1079 .total_size = 512,
1080 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001081 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001082 .tested = TEST_UNTESTED,
1083 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001084 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001085 .block_erasers =
1086 {
1087 {
1088 .eraseblocks = { {4 * 1024, 128} },
1089 .block_erase = spi_block_erase_20,
1090 }, {
1091 .eraseblocks = { {32 * 1024, 16} },
1092 .block_erase = spi_block_erase_52,
1093 }, {
1094 .eraseblocks = { {64 * 1024, 8} },
1095 .block_erase = spi_block_erase_d8,
1096 }, {
1097 .eraseblocks = { {512 * 1024, 1} },
1098 .block_erase = spi_block_erase_60,
1099 }, {
1100 .eraseblocks = { {512 * 1024, 1} },
1101 .block_erase = spi_block_erase_c7,
1102 }
1103 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001104 .printlock = spi_prettyprint_status_register_at25df,
1105 .unlock = spi_disable_blockprotect_at25df,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001106 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001107 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00001108 },
1109
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001110 {
1111 .vendor = "Atmel",
1112 .name = "AT25DF081",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001113 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001114 .manufacture_id = ATMEL_ID,
1115 .model_id = AT_25DF081,
1116 .total_size = 1024,
1117 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001118 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001119 .tested = TEST_UNTESTED,
1120 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001121 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001122 .block_erasers =
1123 {
1124 {
1125 .eraseblocks = { {4 * 1024, 256} },
1126 .block_erase = spi_block_erase_20,
1127 }, {
1128 .eraseblocks = { {32 * 1024, 32} },
1129 .block_erase = spi_block_erase_52,
1130 }, {
1131 .eraseblocks = { {64 * 1024, 16} },
1132 .block_erase = spi_block_erase_d8,
1133 }, {
1134 .eraseblocks = { {1024 * 1024, 1} },
1135 .block_erase = spi_block_erase_60,
1136 }, {
1137 .eraseblocks = { {1024 * 1024, 1} },
1138 .block_erase = spi_block_erase_c7,
1139 }
1140 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001141 .printlock = spi_prettyprint_status_register_at25df,
1142 .unlock = spi_disable_blockprotect_at25df,
1143 .write = spi_chip_write_256,
1144 .read = spi_chip_read,
1145 },
1146
1147 {
1148 .vendor = "Atmel",
1149 .name = "AT25DF081A",
1150 .bustype = CHIP_BUSTYPE_SPI,
1151 .manufacture_id = ATMEL_ID,
1152 .model_id = AT_25DF081A,
1153 .total_size = 1024,
1154 .page_size = 256,
1155 .feature_bits = FEATURE_WRSR_WREN,
1156 .tested = TEST_UNTESTED,
1157 .probe = probe_spi_rdid,
1158 .probe_timing = TIMING_ZERO,
1159 .block_erasers =
1160 {
1161 {
1162 .eraseblocks = { {4 * 1024, 256} },
1163 .block_erase = spi_block_erase_20,
1164 }, {
1165 .eraseblocks = { {32 * 1024, 32} },
1166 .block_erase = spi_block_erase_52,
1167 }, {
1168 .eraseblocks = { {64 * 1024, 16} },
1169 .block_erase = spi_block_erase_d8,
1170 }, {
1171 .eraseblocks = { {1024 * 1024, 1} },
1172 .block_erase = spi_block_erase_60,
1173 }, {
1174 .eraseblocks = { {1024 * 1024, 1} },
1175 .block_erase = spi_block_erase_c7,
1176 }
1177 },
1178 .printlock = spi_prettyprint_status_register_at25df_sec,
1179 .unlock = spi_disable_blockprotect_at25df_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001180 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001181 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00001182 },
1183
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001184 {
1185 .vendor = "Atmel",
1186 .name = "AT25DF161",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001187 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001188 .manufacture_id = ATMEL_ID,
1189 .model_id = AT_25DF161,
1190 .total_size = 2048,
1191 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001192 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001193 .tested = TEST_UNTESTED,
1194 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001195 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001196 .block_erasers =
1197 {
1198 {
1199 .eraseblocks = { {4 * 1024, 512} },
1200 .block_erase = spi_block_erase_20,
1201 }, {
1202 .eraseblocks = { {32 * 1024, 64} },
1203 .block_erase = spi_block_erase_52,
1204 }, {
1205 .eraseblocks = { {64 * 1024, 32} },
1206 .block_erase = spi_block_erase_d8,
1207 }, {
1208 .eraseblocks = { {2 * 1024 * 1024, 1} },
1209 .block_erase = spi_block_erase_60,
1210 }, {
1211 .eraseblocks = { {2 * 1024 * 1024, 1} },
1212 .block_erase = spi_block_erase_c7,
1213 }
1214 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001215 .printlock = spi_prettyprint_status_register_at25df_sec,
1216 .unlock = spi_disable_blockprotect_at25df_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001217 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001218 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00001219 },
1220
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001221 {
1222 .vendor = "Atmel",
1223 .name = "AT25DF321",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001224 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001225 .manufacture_id = ATMEL_ID,
1226 .model_id = AT_25DF321,
1227 .total_size = 4096,
1228 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001229 .feature_bits = FEATURE_WRSR_WREN,
Uwe Hermannc2521ab2010-07-29 22:39:47 +00001230 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001231 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001232 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001233 .block_erasers =
1234 {
1235 {
1236 .eraseblocks = { {4 * 1024, 1024} },
1237 .block_erase = spi_block_erase_20,
1238 }, {
1239 .eraseblocks = { {32 * 1024, 128} },
1240 .block_erase = spi_block_erase_52,
1241 }, {
1242 .eraseblocks = { {64 * 1024, 64} },
1243 .block_erase = spi_block_erase_d8,
1244 }, {
1245 .eraseblocks = { {4 * 1024 * 1024, 1} },
1246 .block_erase = spi_block_erase_60,
1247 }, {
1248 .eraseblocks = { {4 * 1024 * 1024, 1} },
1249 .block_erase = spi_block_erase_c7,
1250 }
1251 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001252 .printlock = spi_prettyprint_status_register_at25df,
1253 .unlock = spi_disable_blockprotect_at25df,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001254 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001255 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00001256 },
1257
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001258 {
1259 .vendor = "Atmel",
1260 .name = "AT25DF321A",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001261 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001262 .manufacture_id = ATMEL_ID,
1263 .model_id = AT_25DF321A,
1264 .total_size = 4096,
1265 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001266 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001267 .tested = TEST_UNTESTED,
1268 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001269 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001270 .block_erasers =
1271 {
1272 {
1273 .eraseblocks = { {4 * 1024, 1024} },
1274 .block_erase = spi_block_erase_20,
1275 }, {
1276 .eraseblocks = { {32 * 1024, 128} },
1277 .block_erase = spi_block_erase_52,
1278 }, {
1279 .eraseblocks = { {64 * 1024, 64} },
1280 .block_erase = spi_block_erase_d8,
1281 }, {
1282 .eraseblocks = { {4 * 1024 * 1024, 1} },
1283 .block_erase = spi_block_erase_60,
1284 }, {
1285 .eraseblocks = { {4 * 1024 * 1024, 1} },
1286 .block_erase = spi_block_erase_c7,
1287 }
1288 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001289 .printlock = spi_prettyprint_status_register_at25df_sec,
1290 .unlock = spi_disable_blockprotect_at25df_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001291 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001292 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00001293 },
1294
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001295 {
1296 .vendor = "Atmel",
1297 .name = "AT25DF641",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001298 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001299 .manufacture_id = ATMEL_ID,
1300 .model_id = AT_25DF641,
1301 .total_size = 8192,
1302 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001303 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001304 .tested = TEST_UNTESTED,
1305 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001306 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001307 .block_erasers =
1308 {
1309 {
1310 .eraseblocks = { {4 * 1024, 2048} },
1311 .block_erase = spi_block_erase_20,
1312 }, {
1313 .eraseblocks = { {32 * 1024, 256} },
1314 .block_erase = spi_block_erase_52,
1315 }, {
1316 .eraseblocks = { {64 * 1024, 128} },
1317 .block_erase = spi_block_erase_d8,
1318 }, {
1319 .eraseblocks = { {8 * 1024 * 1024, 1} },
1320 .block_erase = spi_block_erase_60,
1321 }, {
1322 .eraseblocks = { {8 * 1024 * 1024, 1} },
1323 .block_erase = spi_block_erase_c7,
1324 }
1325 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001326 .printlock = spi_prettyprint_status_register_at25df_sec,
1327 .unlock = spi_disable_blockprotect_at25df_sec,
1328 .write = spi_chip_write_256,
1329 .read = spi_chip_read,
1330 },
1331
1332 {
1333 .vendor = "Atmel",
1334 .name = "AT25DQ161",
1335 .bustype = CHIP_BUSTYPE_SPI,
1336 .manufacture_id = ATMEL_ID,
1337 .model_id = AT_25DQ161,
1338 .total_size = 2048,
1339 .page_size = 256,
1340 .feature_bits = FEATURE_WRSR_WREN,
1341 .tested = TEST_UNTESTED,
1342 .probe = probe_spi_rdid,
1343 .probe_timing = TIMING_ZERO,
1344 .block_erasers =
1345 {
1346 {
1347 .eraseblocks = { {4 * 1024, 512} },
1348 .block_erase = spi_block_erase_20,
1349 }, {
1350 .eraseblocks = { {32 * 1024, 64} },
1351 .block_erase = spi_block_erase_52,
1352 }, {
1353 .eraseblocks = { {64 * 1024, 32} },
1354 .block_erase = spi_block_erase_d8,
1355 }, {
1356 .eraseblocks = { {2 * 1024 * 1024, 1} },
1357 .block_erase = spi_block_erase_60,
1358 }, {
1359 .eraseblocks = { {2 * 1024 * 1024, 1} },
1360 .block_erase = spi_block_erase_c7,
1361 }
1362 },
1363 .printlock = spi_prettyprint_status_register_at25df_sec,
1364 .unlock = spi_disable_blockprotect_at25df_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001365 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001366 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00001367 },
1368
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001369 {
1370 .vendor = "Atmel",
1371 .name = "AT25F512B",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001372 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001373 .manufacture_id = ATMEL_ID,
1374 .model_id = AT_25F512B,
1375 .total_size = 64,
1376 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001377 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001378 .tested = TEST_UNTESTED,
1379 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001380 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001381 .block_erasers =
1382 {
1383 {
1384 .eraseblocks = { {4 * 1024, 16} },
1385 .block_erase = spi_block_erase_20,
1386 }, {
1387 .eraseblocks = { {32 * 1024, 2} },
1388 .block_erase = spi_block_erase_52,
1389 }, {
1390 .eraseblocks = { {32 * 1024, 2} },
1391 .block_erase = spi_block_erase_d8,
1392 }, {
1393 .eraseblocks = { {64 * 1024, 1} },
1394 .block_erase = spi_block_erase_60,
1395 }, {
1396 .eraseblocks = { {64 * 1024, 1} },
1397 .block_erase = spi_block_erase_c7,
1398 }
1399 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001400 .printlock = spi_prettyprint_status_register_at25f,
1401 .unlock = spi_disable_blockprotect_at25f,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001402 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001403 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00001404 },
1405
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001406 {
1407 .vendor = "Atmel",
1408 .name = "AT25FS010",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001409 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001410 .manufacture_id = ATMEL_ID,
1411 .model_id = AT_25FS010,
1412 .total_size = 128,
1413 .page_size = 256,
1414 .tested = TEST_UNTESTED,
1415 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001416 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001417 .block_erasers =
1418 {
1419 {
1420 .eraseblocks = { {4 * 1024, 32} },
1421 .block_erase = spi_block_erase_20,
1422 }, {
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001423 .eraseblocks = { {4 * 1024, 32} },
1424 .block_erase = spi_block_erase_d7,
1425 }, {
Sean Nelson89187292009-12-23 12:02:55 +00001426 .eraseblocks = { {32 * 1024, 4} },
1427 .block_erase = spi_block_erase_52,
1428 }, {
1429 .eraseblocks = { {32 * 1024, 4} },
1430 .block_erase = spi_block_erase_d8,
1431 }, {
1432 .eraseblocks = { {128 * 1024, 1} },
1433 .block_erase = spi_block_erase_60,
1434 }, {
1435 .eraseblocks = { {128 * 1024, 1} },
1436 .block_erase = spi_block_erase_c7,
1437 }
1438 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001439 .printlock = spi_prettyprint_status_register_at25fs010,
1440 .unlock = spi_disable_blockprotect_at25fs010,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001441 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001442 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00001443 },
1444
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001445 {
1446 .vendor = "Atmel",
1447 .name = "AT25FS040",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001448 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001449 .manufacture_id = ATMEL_ID,
1450 .model_id = AT_25FS040,
1451 .total_size = 512,
1452 .page_size = 256,
1453 .tested = TEST_UNTESTED,
1454 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001455 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001456 .block_erasers =
1457 {
1458 {
1459 .eraseblocks = { {4 * 1024, 128} },
1460 .block_erase = spi_block_erase_20,
1461 }, {
1462 .eraseblocks = { {64 * 1024, 8} },
1463 .block_erase = spi_block_erase_52,
1464 }, {
1465 .eraseblocks = { {64 * 1024, 8} },
1466 .block_erase = spi_block_erase_d8,
1467 }, {
1468 .eraseblocks = { {512 * 1024, 1} },
1469 .block_erase = spi_block_erase_60,
1470 }, {
1471 .eraseblocks = { {512 * 1024, 1} },
1472 .block_erase = spi_block_erase_c7,
1473 }
1474 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001475 .printlock = spi_prettyprint_status_register_at25fs040,
1476 .unlock = spi_disable_blockprotect_at25fs040,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001477 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001478 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00001479 },
1480
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001481 {
1482 .vendor = "Atmel",
1483 .name = "AT26DF041",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001484 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001485 .manufacture_id = ATMEL_ID,
1486 .model_id = AT_26DF041,
1487 .total_size = 512,
1488 .page_size = 256,
1489 .tested = TEST_UNTESTED,
1490 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001491 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001492 .block_erasers =
1493 {
1494 {
1495 .eraseblocks = { {4 * 1024, 128} },
1496 .block_erase = spi_block_erase_20,
1497 }
1498 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001499 .write = NULL /* Incompatible Page write */,
1500 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00001501 },
1502
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001503 {
1504 .vendor = "Atmel",
1505 .name = "AT26DF081A",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001506 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001507 .manufacture_id = ATMEL_ID,
1508 .model_id = AT_26DF081A,
1509 .total_size = 1024,
1510 .page_size = 256,
1511 .tested = TEST_UNTESTED,
1512 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001513 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001514 .block_erasers =
1515 {
1516 {
1517 .eraseblocks = { {4 * 1024, 256} },
1518 .block_erase = spi_block_erase_20,
1519 }, {
1520 .eraseblocks = { {32 * 1024, 32} },
1521 .block_erase = spi_block_erase_52,
1522 }, {
1523 .eraseblocks = { {64 * 1024, 16} },
1524 .block_erase = spi_block_erase_d8,
1525 }, {
1526 .eraseblocks = { {1024 * 1024, 1} },
1527 .block_erase = spi_block_erase_60,
1528 }, {
1529 .eraseblocks = { {1024 * 1024, 1} },
1530 .block_erase = spi_block_erase_c7,
1531 }
1532 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00001533 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001534 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001535 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00001536 },
1537
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001538 {
1539 .vendor = "Atmel",
1540 .name = "AT26DF161",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001541 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001542 .manufacture_id = ATMEL_ID,
1543 .model_id = AT_26DF161,
1544 .total_size = 2048,
1545 .page_size = 256,
1546 .tested = TEST_UNTESTED,
1547 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001548 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001549 .block_erasers =
1550 {
1551 {
1552 .eraseblocks = { {4 * 1024, 512} },
1553 .block_erase = spi_block_erase_20,
1554 }, {
1555 .eraseblocks = { {32 * 1024, 64} },
1556 .block_erase = spi_block_erase_52,
1557 }, {
1558 .eraseblocks = { {64 * 1024, 32} },
1559 .block_erase = spi_block_erase_d8,
1560 }, {
1561 .eraseblocks = { {2 * 1024 * 1024, 1} },
1562 .block_erase = spi_block_erase_60,
1563 }, {
1564 .eraseblocks = { {2 * 1024 * 1024, 1} },
1565 .block_erase = spi_block_erase_c7,
1566 }
1567 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00001568 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001569 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001570 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00001571 },
1572
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001573 {
1574 .vendor = "Atmel",
1575 .name = "AT26DF161A",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001576 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001577 .manufacture_id = ATMEL_ID,
1578 .model_id = AT_26DF161A,
1579 .total_size = 2048,
1580 .page_size = 256,
1581 .tested = TEST_UNTESTED,
1582 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001583 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001584 .block_erasers =
1585 {
1586 {
1587 .eraseblocks = { {4 * 1024, 512} },
1588 .block_erase = spi_block_erase_20,
1589 }, {
1590 .eraseblocks = { {32 * 1024, 64} },
1591 .block_erase = spi_block_erase_52,
1592 }, {
1593 .eraseblocks = { {64 * 1024, 32} },
1594 .block_erase = spi_block_erase_d8,
1595 }, {
1596 .eraseblocks = { {2 * 1024 * 1024, 1} },
1597 .block_erase = spi_block_erase_60,
1598 }, {
1599 .eraseblocks = { {2 * 1024 * 1024, 1} },
1600 .block_erase = spi_block_erase_c7,
1601 }
1602 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00001603 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001604 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001605 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00001606 },
1607
1608 /*The AT26DF321 has the same ID as the AT25DF321. */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001609 /*{
1610 .vendor = "Atmel",
1611 .name = "AT26DF321",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001612 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001613 .manufacture_id = ATMEL_ID,
1614 .model_id = AT_26DF321,
1615 .total_size = 4096,
1616 .page_size = 256,
1617 .tested = TEST_UNTESTED,
1618 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001619 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00001620 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001621 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001622 .read = spi_chip_read,
1623 },*/
FENG yu ningff692fb2008-12-08 18:15:10 +00001624
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001625 {
1626 .vendor = "Atmel",
1627 .name = "AT26F004",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001628 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001629 .manufacture_id = ATMEL_ID,
1630 .model_id = AT_26F004,
1631 .total_size = 512,
1632 .page_size = 256,
1633 .tested = TEST_UNTESTED,
1634 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001635 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001636 .block_erasers =
1637 {
1638 {
1639 .eraseblocks = { {4 * 1024, 128} },
1640 .block_erase = spi_block_erase_20,
1641 }, {
1642 .eraseblocks = { {32 * 1024, 16} },
1643 .block_erase = spi_block_erase_52,
1644 }, {
1645 .eraseblocks = { {64 * 1024, 8} },
1646 .block_erase = spi_block_erase_d8,
1647 }, {
1648 .eraseblocks = { {512 * 1024, 1} },
1649 .block_erase = spi_block_erase_60,
1650 }, {
1651 .eraseblocks = { {512 * 1024, 1} },
1652 .block_erase = spi_block_erase_c7,
1653 }
1654 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001655 .write = NULL /* Incompatible Page write */,
1656 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00001657 },
1658
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001659 {
1660 .vendor = "Atmel",
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00001661 .name = "AT29C512",
Urja Rannikko038a3122009-06-28 19:19:25 +00001662 .bustype = CHIP_BUSTYPE_PARALLEL,
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00001663 .manufacture_id = ATMEL_ID,
1664 .model_id = AT_29C512,
1665 .total_size = 64,
1666 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00001667 .feature_bits = FEATURE_LONG_RESET,
1668 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00001669 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00001670 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00001671 .block_erasers =
1672 {
1673 {
1674 .eraseblocks = { {64 * 1024, 1} },
1675 .block_erase = erase_chip_block_jedec,
1676 }
1677 },
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00001678 .write = write_jedec,
1679 .read = read_memmapped,
1680
1681 },
1682
1683 {
1684 .vendor = "Atmel",
Uwe Hermann8403ccb2009-05-16 21:39:19 +00001685 .name = "AT29C010A",
Urja Rannikko161b8852009-06-05 08:47:37 +00001686 .bustype = CHIP_BUSTYPE_PARALLEL,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00001687 .manufacture_id = ATMEL_ID,
1688 .model_id = AT_29C010A,
1689 .total_size = 128,
1690 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00001691 .feature_bits = FEATURE_LONG_RESET,
Michael Karcher98eff462010-03-24 22:55:56 +00001692 .tested = TEST_OK_PREW,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00001693 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00001694 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00001695 .block_erasers =
1696 {
1697 {
1698 .eraseblocks = { {128 * 1024, 1} },
1699 .block_erase = erase_chip_block_jedec,
1700 }
1701 },
Uwe Hermann8403ccb2009-05-16 21:39:19 +00001702 .write = write_jedec, /* FIXME */
1703 .read = read_memmapped,
1704 },
1705
1706 {
1707 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001708 .name = "AT29C020",
Urja Rannikko161b8852009-06-05 08:47:37 +00001709 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001710 .manufacture_id = ATMEL_ID,
1711 .model_id = AT_29C020,
1712 .total_size = 256,
1713 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00001714 .feature_bits = FEATURE_LONG_RESET,
1715 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001716 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00001717 .probe_timing = 10000, /* 10ms */
Sean Nelson89187292009-12-23 12:02:55 +00001718 .block_erasers =
1719 {
1720 {
1721 .eraseblocks = { {256 * 1024, 1} },
1722 .block_erase = erase_chip_block_jedec,
1723 }
1724 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001725 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00001726 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00001727 },
1728
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001729 {
1730 .vendor = "Atmel",
1731 .name = "AT29C040A",
Urja Rannikko161b8852009-06-05 08:47:37 +00001732 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001733 .manufacture_id = ATMEL_ID,
1734 .model_id = AT_29C040A,
1735 .total_size = 512,
1736 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00001737 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001738 .tested = TEST_UNTESTED,
1739 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00001740 .probe_timing = 10000, /* 10 ms */
Sean Nelson89187292009-12-23 12:02:55 +00001741 .block_erasers =
1742 {
1743 {
1744 .eraseblocks = { {512 * 1024, 1} },
1745 .block_erase = erase_chip_block_jedec,
1746 }
1747 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001748 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00001749 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00001750 },
1751
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001752 {
1753 .vendor = "Atmel",
1754 .name = "AT45CS1282",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001755 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001756 .manufacture_id = ATMEL_ID,
1757 .model_id = AT_45CS1282,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00001758 .total_size = 16896 /* No power of two sizes */,
1759 .page_size = 1056 /* No power of two sizes */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001760 .tested = TEST_BAD_READ,
1761 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001762 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001763 .write = NULL /* Incompatible Page write */,
1764 .read = NULL /* Incompatible read */,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00001765 },
FENG yu ningff692fb2008-12-08 18:15:10 +00001766
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001767 {
1768 .vendor = "Atmel",
1769 .name = "AT45DB011D",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001770 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001771 .manufacture_id = ATMEL_ID,
1772 .model_id = AT_45DB011D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00001773 .total_size = 128 /* Size can only be determined from status register */,
1774 .page_size = 256 /* Size can only be determined from status register */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001775 .tested = TEST_BAD_READ,
1776 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001777 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001778 .write = NULL,
1779 .read = NULL,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00001780 },
FENG yu ningff692fb2008-12-08 18:15:10 +00001781
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001782 {
1783 .vendor = "Atmel",
1784 .name = "AT45DB021D",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001785 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001786 .manufacture_id = ATMEL_ID,
1787 .model_id = AT_45DB021D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00001788 .total_size = 256 /* Size can only be determined from status register */,
1789 .page_size = 256 /* Size can only be determined from status register */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001790 .tested = TEST_BAD_READ,
1791 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001792 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001793 .write = NULL,
1794 .read = NULL,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00001795 },
FENG yu ningff692fb2008-12-08 18:15:10 +00001796
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001797 {
1798 .vendor = "Atmel",
1799 .name = "AT45DB041D",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001800 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001801 .manufacture_id = ATMEL_ID,
1802 .model_id = AT_45DB041D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00001803 .total_size = 512 /* Size can only be determined from status register */,
1804 .page_size = 256 /* Size can only be determined from status register */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001805 .tested = TEST_BAD_READ,
1806 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001807 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001808 .write = NULL,
1809 .read = NULL,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00001810 },
FENG yu ningff692fb2008-12-08 18:15:10 +00001811
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001812 {
1813 .vendor = "Atmel",
1814 .name = "AT45DB081D",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001815 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001816 .manufacture_id = ATMEL_ID,
1817 .model_id = AT_45DB081D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00001818 .total_size = 1024 /* Size can only be determined from status register */,
1819 .page_size = 256 /* Size can only be determined from status register */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001820 .tested = TEST_BAD_READ,
1821 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001822 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001823 .write = NULL,
1824 .read = NULL,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00001825 },
FENG yu ningff692fb2008-12-08 18:15:10 +00001826
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001827 {
1828 .vendor = "Atmel",
1829 .name = "AT45DB161D",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001830 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001831 .manufacture_id = ATMEL_ID,
1832 .model_id = AT_45DB161D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00001833 .total_size = 2048 /* Size can only be determined from status register */,
1834 .page_size = 512 /* Size can only be determined from status register */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001835 .tested = TEST_BAD_READ,
1836 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001837 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001838 .write = NULL,
1839 .read = NULL,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00001840 },
FENG yu ningff692fb2008-12-08 18:15:10 +00001841
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001842 {
1843 .vendor = "Atmel",
1844 .name = "AT45DB321C",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001845 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001846 .manufacture_id = ATMEL_ID,
1847 .model_id = AT_45DB321C,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00001848 .total_size = 4224 /* No power of two sizes */,
1849 .page_size = 528 /* No power of two sizes */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001850 .tested = TEST_BAD_READ,
1851 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001852 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001853 .write = NULL,
1854 .read = NULL /* Incompatible read */,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00001855 },
FENG yu ningff692fb2008-12-08 18:15:10 +00001856
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001857 {
1858 .vendor = "Atmel",
1859 .name = "AT45DB321D",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001860 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001861 .manufacture_id = ATMEL_ID,
1862 .model_id = AT_45DB321D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00001863 .total_size = 4096 /* Size can only be determined from status register */,
1864 .page_size = 512 /* Size can only be determined from status register */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001865 .tested = TEST_BAD_READ,
1866 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001867 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001868 .write = NULL,
1869 .read = NULL,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00001870 },
FENG yu ningff692fb2008-12-08 18:15:10 +00001871
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001872 {
1873 .vendor = "Atmel",
1874 .name = "AT45DB642D",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001875 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001876 .manufacture_id = ATMEL_ID,
1877 .model_id = AT_45DB642D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00001878 .total_size = 8192 /* Size can only be determined from status register */,
1879 .page_size = 1024 /* Size can only be determined from status register */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001880 .tested = TEST_BAD_READ,
1881 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001882 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001883 .write = NULL,
1884 .read = NULL,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00001885 },
FENG yu ningff692fb2008-12-08 18:15:10 +00001886
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001887 {
1888 .vendor = "Atmel",
Uwe Hermannb4dcb712009-05-13 11:36:06 +00001889 .name = "AT49BV512",
Urja Rannikko161b8852009-06-05 08:47:37 +00001890 .bustype = CHIP_BUSTYPE_PARALLEL,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00001891 .manufacture_id = ATMEL_ID,
1892 .model_id = AT_49BV512,
1893 .total_size = 64,
1894 .page_size = 64,
Sean Nelson35727f72010-01-28 23:55:12 +00001895 .feature_bits = FEATURE_EITHER_RESET,
1896 .tested = TEST_UNTESTED,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00001897 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00001898 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00001899 .block_erasers =
1900 {
1901 {
1902 .eraseblocks = { {64 * 1024, 1} },
1903 .block_erase = erase_chip_block_jedec,
1904 }
1905 },
Sean Nelson35727f72010-01-28 23:55:12 +00001906 .write = write_jedec_1,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00001907 .read = read_memmapped,
1908 },
1909
1910 {
1911 .vendor = "Atmel",
Andrew Morgan1a5eaa12010-06-07 14:10:55 +00001912 .name = "AT49F020",
1913 .bustype = CHIP_BUSTYPE_PARALLEL,
1914 .manufacture_id = ATMEL_ID,
1915 .model_id = AT_49F020,
1916 .total_size = 256,
1917 .page_size = 256,
1918 .feature_bits = FEATURE_EITHER_RESET,
1919 .tested = TEST_OK_PREW,
1920 .probe = probe_jedec,
1921 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
1922 .block_erasers =
1923 {
1924 {
1925 .eraseblocks = { {256 * 1024, 1} },
1926 .block_erase = erase_chip_block_jedec,
1927 }
1928 },
1929 .write = write_jedec_1,
1930 .read = read_memmapped,
1931 },
1932
1933 {
1934 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001935 .name = "AT49F002(N)",
Urja Rannikko161b8852009-06-05 08:47:37 +00001936 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001937 .manufacture_id = ATMEL_ID,
1938 .model_id = AT_49F002N,
1939 .total_size = 256,
1940 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00001941 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001942 .tested = TEST_UNTESTED,
1943 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00001944 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00001945 .block_erasers =
1946 {
1947 {
1948 .eraseblocks = {
1949 {16 * 1024, 1},
1950 {8 * 1024, 2},
1951 {96 * 1024, 1},
1952 {128 * 1024, 1},
1953 },
1954 .block_erase = erase_sector_jedec,
1955 }, {
1956 .eraseblocks = { {256 * 1024, 1} },
1957 .block_erase = erase_chip_block_jedec,
1958 }
1959 },
Sean Nelson35727f72010-01-28 23:55:12 +00001960 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00001961 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00001962 },
1963
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001964 {
1965 .vendor = "Atmel",
1966 .name = "AT49F002(N)T",
Urja Rannikko161b8852009-06-05 08:47:37 +00001967 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001968 .manufacture_id = ATMEL_ID,
1969 .model_id = AT_49F002NT,
1970 .total_size = 256,
1971 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00001972 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann60939692010-03-17 00:05:59 +00001973 .tested = TEST_OK_PRW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001974 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00001975 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00001976 .block_erasers =
1977 {
1978 {
1979 .eraseblocks = {
1980 {128 * 1024, 1},
1981 {96 * 1024, 1},
1982 {8 * 1024, 2},
1983 {16 * 1024, 1},
1984 },
1985 .block_erase = erase_sector_jedec,
1986 }, {
1987 .eraseblocks = { {256 * 1024, 1} },
1988 .block_erase = erase_chip_block_jedec,
1989 }
1990 },
Sean Nelson35727f72010-01-28 23:55:12 +00001991 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00001992 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00001993 },
1994
Daniel Lenskidf90d3a2010-07-22 11:44:38 +00001995 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001996 .vendor = "EMST",
1997 .name = "F49B002UA",
Urja Rannikko161b8852009-06-05 08:47:37 +00001998 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001999 .manufacture_id = EMST_ID,
2000 .model_id = EMST_F49B002UA,
2001 .total_size = 256,
2002 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00002003 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002004 .tested = TEST_UNTESTED,
2005 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002006 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00002007 .block_erasers =
2008 {
2009 {
2010 .eraseblocks = {
2011 {128 * 1024, 1},
2012 {96 * 1024, 1},
2013 {8 * 1024, 2},
2014 {16 * 1024, 1},
2015 },
2016 .block_erase = erase_sector_jedec,
2017 }, {
2018 .eraseblocks = { {256 * 1024, 1} },
2019 .block_erase = erase_chip_block_jedec,
2020 }
2021 },
Sean Nelson35727f72010-01-28 23:55:12 +00002022 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002023 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00002024 },
2025
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002026 {
Michael Karcher80a59ea2010-06-19 22:06:35 +00002027 .vendor = "EMST",
2028 .name = "F25L008A",
2029 .bustype = CHIP_BUSTYPE_SPI,
2030 .manufacture_id = EMST_ID,
2031 .model_id = EMST_F25L008A,
2032 .total_size = 1024,
2033 .page_size = 256,
2034 .tested = TEST_UNTESTED,
2035 .probe = probe_spi_rdid,
2036 .probe_timing = TIMING_ZERO,
2037 .block_erasers =
2038 {
2039 {
2040 .eraseblocks = { {4 * 1024, 256} },
2041 .block_erase = spi_block_erase_20,
2042 }, {
2043 .eraseblocks = { {64 * 1024, 16} },
2044 .block_erase = spi_block_erase_d8,
2045 }, {
2046 .eraseblocks = { {1024 * 1024, 1} },
2047 .block_erase = spi_block_erase_60,
2048 }, {
2049 .eraseblocks = { {1024 * 1024, 1} },
2050 .block_erase = spi_block_erase_c7,
2051 }
2052 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002053 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger9a795d82010-07-14 16:19:05 +00002054 .write = spi_chip_write_1,
Michael Karcher4497e862010-07-10 19:34:15 +00002055 .read = spi_chip_read,
Michael Karcher80a59ea2010-06-19 22:06:35 +00002056 },
2057
2058 {
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002059 .vendor = "Eon",
2060 .name = "EN25B05",
2061 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002062 .manufacture_id = EON_ID_NOPREFIX,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002063 .model_id = EN_25B05,
2064 .total_size = 64,
2065 .page_size = 256,
2066 .tested = TEST_UNTESTED,
2067 .probe = probe_spi_rdid,
2068 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002069 .block_erasers =
2070 {
2071 {
2072 .eraseblocks = {
2073 {4 * 1024, 2},
2074 {8 * 1024, 1},
2075 {16 * 1024, 1},
2076 {32 * 1024, 1},
2077 },
2078 .block_erase = spi_block_erase_d8,
2079 }, {
2080 .eraseblocks = { {64 * 1024, 1} },
2081 .block_erase = spi_block_erase_c7,
2082 }
2083 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002084 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002085 .write = spi_chip_write_256,
2086 .read = spi_chip_read,
2087 },
2088
2089 {
2090 .vendor = "Eon",
2091 .name = "EN25B05T",
2092 .bustype = CHIP_BUSTYPE_SPI,
2093 .manufacture_id = EON_ID_NOPREFIX,
2094 .model_id = EN_25B05,
2095 .total_size = 64,
2096 .page_size = 256,
2097 .tested = TEST_UNTESTED,
2098 .probe = probe_spi_rdid,
2099 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002100 .block_erasers =
2101 {
2102 {
2103 .eraseblocks = {
2104 {32 * 1024, 1},
2105 {16 * 1024, 1},
2106 {8 * 1024, 1},
2107 {4 * 1024, 2},
2108 },
2109 .block_erase = spi_block_erase_d8,
2110 }, {
2111 .eraseblocks = { {64 * 1024, 1} },
2112 .block_erase = spi_block_erase_c7,
2113 }
2114 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002115 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002116 .write = spi_chip_write_256,
2117 .read = spi_chip_read,
2118 },
2119
2120 {
2121 .vendor = "Eon",
2122 .name = "EN25B10",
2123 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002124 .manufacture_id = EON_ID_NOPREFIX,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002125 .model_id = EN_25B10,
2126 .total_size = 128,
2127 .page_size = 256,
2128 .tested = TEST_UNTESTED,
2129 .probe = probe_spi_rdid,
2130 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002131 .block_erasers =
2132 {
2133 {
2134 .eraseblocks = {
2135 {4 * 1024, 2},
2136 {8 * 1024, 1},
2137 {16 * 1024, 1},
2138 {32 * 1024, 3},
2139 },
2140 .block_erase = spi_block_erase_d8,
2141 }, {
2142 .eraseblocks = { {128 * 1024, 1} },
2143 .block_erase = spi_block_erase_c7,
2144 }
2145 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002146 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002147 .write = spi_chip_write_256,
2148 .read = spi_chip_read,
2149 },
2150
2151 {
2152 .vendor = "Eon",
2153 .name = "EN25B10T",
2154 .bustype = CHIP_BUSTYPE_SPI,
2155 .manufacture_id = EON_ID_NOPREFIX,
2156 .model_id = EN_25B10,
2157 .total_size = 128,
2158 .page_size = 256,
2159 .tested = TEST_UNTESTED,
2160 .probe = probe_spi_rdid,
2161 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002162 .block_erasers =
2163 {
2164 {
2165 .eraseblocks = {
2166 {32 * 1024, 3},
2167 {16 * 1024, 1},
2168 {8 * 1024, 1},
2169 {4 * 1024, 2},
2170 },
2171 .block_erase = spi_block_erase_d8,
2172 }, {
2173 .eraseblocks = { {128 * 1024, 1} },
2174 .block_erase = spi_block_erase_c7,
2175 }
2176 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002177 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002178 .write = spi_chip_write_256,
2179 .read = spi_chip_read,
2180 },
2181
2182 {
2183 .vendor = "Eon",
2184 .name = "EN25B20",
2185 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002186 .manufacture_id = EON_ID_NOPREFIX,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002187 .model_id = EN_25B20,
2188 .total_size = 256,
2189 .page_size = 256,
2190 .tested = TEST_UNTESTED,
2191 .probe = probe_spi_rdid,
2192 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002193 .block_erasers =
2194 {
2195 {
2196 .eraseblocks = {
2197 {4 * 1024, 2},
2198 {8 * 1024, 1},
2199 {16 * 1024, 1},
2200 {32 * 1024, 1},
2201 {64 * 1024, 3}
2202 },
2203 .block_erase = spi_block_erase_d8,
2204 }, {
2205 .eraseblocks = { {256 * 1024, 1} },
2206 .block_erase = spi_block_erase_c7,
2207 }
2208 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002209 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002210 .write = spi_chip_write_256,
2211 .read = spi_chip_read,
2212 },
2213
2214 {
2215 .vendor = "Eon",
2216 .name = "EN25B20T",
2217 .bustype = CHIP_BUSTYPE_SPI,
2218 .manufacture_id = EON_ID_NOPREFIX,
2219 .model_id = EN_25B20,
2220 .total_size = 256,
2221 .page_size = 256,
2222 .tested = TEST_UNTESTED,
2223 .probe = probe_spi_rdid,
2224 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002225 .block_erasers =
2226 {
2227 {
2228 .eraseblocks = {
2229 {64 * 1024, 3},
2230 {32 * 1024, 1},
2231 {16 * 1024, 1},
2232 {8 * 1024, 1},
2233 {4 * 1024, 2},
2234 },
2235 .block_erase = spi_block_erase_d8,
2236 }, {
2237 .eraseblocks = { {256 * 1024, 1} },
2238 .block_erase = spi_block_erase_c7,
2239 }
2240 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002241 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002242 .write = spi_chip_write_256,
2243 .read = spi_chip_read,
2244 },
2245
2246 {
2247 .vendor = "Eon",
2248 .name = "EN25B40",
2249 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002250 .manufacture_id = EON_ID_NOPREFIX,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002251 .model_id = EN_25B40,
2252 .total_size = 512,
2253 .page_size = 256,
2254 .tested = TEST_UNTESTED,
2255 .probe = probe_spi_rdid,
2256 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002257 .block_erasers =
2258 {
2259 {
2260 .eraseblocks = {
2261 {4 * 1024, 2},
2262 {8 * 1024, 1},
2263 {16 * 1024, 1},
2264 {32 * 1024, 1},
2265 {64 * 1024, 7}
2266 },
2267 .block_erase = spi_block_erase_d8,
2268 }, {
2269 .eraseblocks = { {512 * 1024, 1} },
2270 .block_erase = spi_block_erase_c7,
2271 }
2272 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002273 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002274 .write = spi_chip_write_256,
2275 .read = spi_chip_read,
2276 },
2277
2278 {
2279 .vendor = "Eon",
2280 .name = "EN25B40T",
2281 .bustype = CHIP_BUSTYPE_SPI,
2282 .manufacture_id = EON_ID_NOPREFIX,
2283 .model_id = EN_25B40,
2284 .total_size = 512,
2285 .page_size = 256,
2286 .tested = TEST_UNTESTED,
2287 .probe = probe_spi_rdid,
2288 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002289 .block_erasers =
2290 {
2291 {
2292 .eraseblocks = {
2293 {64 * 1024, 7},
2294 {32 * 1024, 1},
2295 {16 * 1024, 1},
2296 {8 * 1024, 1},
2297 {4 * 1024, 2},
2298 },
2299 .block_erase = spi_block_erase_d8,
2300 }, {
2301 .eraseblocks = { {512 * 1024, 1} },
2302 .block_erase = spi_block_erase_c7,
2303 }
2304 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002305 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002306 .write = spi_chip_write_256,
2307 .read = spi_chip_read,
2308 },
2309
2310 {
2311 .vendor = "Eon",
2312 .name = "EN25B80",
2313 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002314 .manufacture_id = EON_ID_NOPREFIX,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002315 .model_id = EN_25B80,
2316 .total_size = 1024,
2317 .page_size = 256,
2318 .tested = TEST_UNTESTED,
2319 .probe = probe_spi_rdid,
2320 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002321 .block_erasers =
2322 {
2323 {
2324 .eraseblocks = {
2325 {4 * 1024, 2},
2326 {8 * 1024, 1},
2327 {16 * 1024, 1},
2328 {32 * 1024, 1},
2329 {64 * 1024, 15}
2330 },
2331 .block_erase = spi_block_erase_d8,
2332 }, {
2333 .eraseblocks = { {1024 * 1024, 1} },
2334 .block_erase = spi_block_erase_c7,
2335 }
2336 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002337 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002338 .write = spi_chip_write_256,
2339 .read = spi_chip_read,
2340 },
2341
2342 {
2343 .vendor = "Eon",
2344 .name = "EN25B80T",
2345 .bustype = CHIP_BUSTYPE_SPI,
2346 .manufacture_id = EON_ID_NOPREFIX,
2347 .model_id = EN_25B80,
2348 .total_size = 1024,
2349 .page_size = 256,
2350 .tested = TEST_UNTESTED,
2351 .probe = probe_spi_rdid,
2352 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002353 .block_erasers =
2354 {
2355 {
2356 .eraseblocks = {
2357 {64 * 1024, 15},
2358 {32 * 1024, 1},
2359 {16 * 1024, 1},
2360 {8 * 1024, 1},
2361 {4 * 1024, 2},
2362 },
2363 .block_erase = spi_block_erase_d8,
2364 }, {
2365 .eraseblocks = { {1024 * 1024, 1} },
2366 .block_erase = spi_block_erase_c7,
2367 }
2368 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002369 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002370 .write = spi_chip_write_256,
2371 .read = spi_chip_read,
2372 },
2373
2374 {
2375 .vendor = "Eon",
2376 .name = "EN25B16",
2377 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002378 .manufacture_id = EON_ID_NOPREFIX,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002379 .model_id = EN_25B16,
2380 .total_size = 2048,
2381 .page_size = 256,
2382 .tested = TEST_UNTESTED,
2383 .probe = probe_spi_rdid,
2384 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002385 .block_erasers =
2386 {
2387 {
2388 .eraseblocks = {
2389 {4 * 1024, 2},
2390 {8 * 1024, 1},
2391 {16 * 1024, 1},
2392 {32 * 1024, 1},
2393 {64 * 1024, 31},
2394 },
2395 .block_erase = spi_block_erase_d8,
2396 }, {
2397 .eraseblocks = { {2 * 1024 * 1024, 1} },
2398 .block_erase = spi_block_erase_c7,
2399 }
2400 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002401 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002402 .write = spi_chip_write_256,
2403 .read = spi_chip_read,
2404 },
2405
2406 {
2407 .vendor = "Eon",
2408 .name = "EN25B16T",
2409 .bustype = CHIP_BUSTYPE_SPI,
2410 .manufacture_id = EON_ID_NOPREFIX,
2411 .model_id = EN_25B16,
2412 .total_size = 2048,
2413 .page_size = 256,
2414 .tested = TEST_UNTESTED,
2415 .probe = probe_spi_rdid,
2416 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002417 .block_erasers =
2418 {
2419 {
2420 .eraseblocks = {
2421 {64 * 1024, 31},
2422 {32 * 1024, 1},
2423 {16 * 1024, 1},
2424 {8 * 1024, 1},
2425 {4 * 1024, 2},
2426 },
2427 .block_erase = spi_block_erase_d8,
2428 }, {
2429 .eraseblocks = { {2 * 1024 * 1024, 1} },
2430 .block_erase = spi_block_erase_c7,
2431 }
2432 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002433 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002434 .write = spi_chip_write_256,
2435 .read = spi_chip_read,
2436 },
2437
2438 {
2439 .vendor = "Eon",
2440 .name = "EN25B32",
2441 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002442 .manufacture_id = EON_ID_NOPREFIX,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002443 .model_id = EN_25B32,
2444 .total_size = 4096,
2445 .page_size = 256,
2446 .tested = TEST_UNTESTED,
2447 .probe = probe_spi_rdid,
2448 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002449 .block_erasers =
2450 {
2451 {
2452 .eraseblocks = {
2453 {4 * 1024, 2},
2454 {8 * 1024, 1},
2455 {16 * 1024, 1},
2456 {32 * 1024, 1},
2457 {64 * 1024, 63},
2458 },
2459 .block_erase = spi_block_erase_d8,
2460 }, {
2461 .eraseblocks = { {4 * 1024 * 1024, 1} },
2462 .block_erase = spi_block_erase_c7,
2463 }
2464 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002465 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002466 .write = spi_chip_write_256,
2467 .read = spi_chip_read,
2468 },
2469
2470 {
2471 .vendor = "Eon",
2472 .name = "EN25B32T",
2473 .bustype = CHIP_BUSTYPE_SPI,
2474 .manufacture_id = EON_ID_NOPREFIX,
2475 .model_id = EN_25B32,
2476 .total_size = 4096,
2477 .page_size = 256,
2478 .tested = TEST_UNTESTED,
2479 .probe = probe_spi_rdid,
2480 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002481 .block_erasers =
2482 {
2483 {
2484 .eraseblocks = {
2485 {64 * 1024, 63},
2486 {32 * 1024, 1},
2487 {16 * 1024, 1},
2488 {8 * 1024, 1},
2489 {4 * 1024, 2},
2490 },
2491 .block_erase = spi_block_erase_d8,
2492 }, {
2493 .eraseblocks = { {4 * 1024 * 1024, 1} },
2494 .block_erase = spi_block_erase_c7,
2495 }
2496 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002497 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002498 .write = spi_chip_write_256,
2499 .read = spi_chip_read,
2500 },
2501
2502 {
2503 .vendor = "Eon",
2504 .name = "EN25B64",
2505 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002506 .manufacture_id = EON_ID_NOPREFIX,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002507 .model_id = EN_25B64,
2508 .total_size = 8192,
2509 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00002510 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002511 .tested = TEST_UNTESTED,
2512 .probe = probe_spi_rdid,
2513 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002514 .block_erasers =
2515 {
2516 {
2517 .eraseblocks = {
2518 {4 * 1024, 2},
2519 {8 * 1024, 1},
2520 {16 * 1024, 1},
2521 {32 * 1024, 1},
2522 {64 * 1024, 127},
2523 },
2524 .block_erase = spi_block_erase_d8,
2525 }, {
2526 .eraseblocks = { {8 * 1024 * 1024, 1} },
2527 .block_erase = spi_block_erase_c7,
2528 }
2529 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002530 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002531 .write = spi_chip_write_256,
2532 .read = spi_chip_read,
2533 },
2534
2535 {
2536 .vendor = "Eon",
2537 .name = "EN25B64T",
2538 .bustype = CHIP_BUSTYPE_SPI,
2539 .manufacture_id = EON_ID_NOPREFIX,
2540 .model_id = EN_25B64,
2541 .total_size = 8192,
2542 .page_size = 256,
2543 .tested = TEST_UNTESTED,
2544 .probe = probe_spi_rdid,
2545 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002546 .block_erasers =
2547 {
2548 {
2549 .eraseblocks = {
2550 {64 * 1024, 127},
2551 {32 * 1024, 1},
2552 {16 * 1024, 1},
2553 {8 * 1024, 1},
2554 {4 * 1024, 2},
2555 },
2556 .block_erase = spi_block_erase_d8,
2557 }, {
2558 .eraseblocks = { {8 * 1024 * 1024, 1} },
2559 .block_erase = spi_block_erase_c7,
2560 }
2561 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002562 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002563 .write = spi_chip_write_256,
2564 .read = spi_chip_read,
2565 },
2566
2567 {
2568 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002569 .name = "EN25D16",
2570 .bustype = CHIP_BUSTYPE_SPI,
2571 .manufacture_id = EON_ID_NOPREFIX,
2572 .model_id = EN_25D16,
2573 .total_size = 2048,
2574 .page_size = 256,
2575 .tested = TEST_UNTESTED,
2576 .probe = probe_spi_rdid,
2577 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002578 .block_erasers =
2579 {
2580 {
2581 .eraseblocks = { {4 * 1024, 512} },
2582 .block_erase = spi_block_erase_20,
2583 }, {
2584 .eraseblocks = { {64 * 1024, 32} },
2585 .block_erase = spi_block_erase_d8,
2586 }, {
2587 .eraseblocks = { {64 * 1024, 32} },
2588 .block_erase = spi_block_erase_52,
2589 }, {
2590 .eraseblocks = { {2 * 1024 * 1024, 1} },
2591 .block_erase = spi_block_erase_60,
2592 }, {
2593 .eraseblocks = { {2 * 1024 * 1024, 1} },
2594 .block_erase = spi_block_erase_c7,
2595 }
2596 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002597 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002598 .write = spi_chip_write_256,
2599 .read = spi_chip_read,
2600 },
2601
2602 {
2603 .vendor = "Eon",
2604 .name = "EN25F05",
2605 .bustype = CHIP_BUSTYPE_SPI,
2606 .manufacture_id = EON_ID_NOPREFIX,
2607 .model_id = EN_25F05,
2608 .total_size = 64,
2609 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00002610 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002611 .tested = TEST_UNTESTED,
2612 .probe = probe_spi_rdid,
2613 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002614 .block_erasers =
2615 {
2616 {
2617 .eraseblocks = { {4 * 1024, 16} },
2618 .block_erase = spi_block_erase_20,
2619 }, {
2620 .eraseblocks = { {32 * 1024, 2} },
2621 .block_erase = spi_block_erase_d8,
2622 }, {
2623 .eraseblocks = { {32 * 1024, 2} },
2624 .block_erase = spi_block_erase_52,
2625 }, {
2626 .eraseblocks = { {64 * 1024, 1} },
2627 .block_erase = spi_block_erase_60,
2628 }, {
2629 .eraseblocks = { {64 * 1024, 1} },
2630 .block_erase = spi_block_erase_c7,
2631 }
2632 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002633 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002634 .write = spi_chip_write_256,
2635 .read = spi_chip_read,
2636 },
2637
2638 {
2639 .vendor = "Eon",
2640 .name = "EN25F10",
2641 .bustype = CHIP_BUSTYPE_SPI,
2642 .manufacture_id = EON_ID_NOPREFIX,
2643 .model_id = EN_25F10,
2644 .total_size = 128,
2645 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00002646 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002647 .tested = TEST_UNTESTED,
2648 .probe = probe_spi_rdid,
2649 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002650 .block_erasers =
2651 {
2652 {
2653 .eraseblocks = { {4 * 1024, 32} },
2654 .block_erase = spi_block_erase_20,
2655 }, {
2656 .eraseblocks = { {32 * 1024, 4} },
2657 .block_erase = spi_block_erase_d8,
2658 }, {
2659 .eraseblocks = { {32 * 1024, 4} },
2660 .block_erase = spi_block_erase_52,
2661 }, {
2662 .eraseblocks = { {128 * 1024, 1} },
2663 .block_erase = spi_block_erase_60,
2664 }, {
2665 .eraseblocks = { {128 * 1024, 1} },
2666 .block_erase = spi_block_erase_c7,
2667 }
2668 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002669 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002670 .write = spi_chip_write_256,
2671 .read = spi_chip_read,
2672 },
2673
2674 {
2675 .vendor = "Eon",
2676 .name = "EN25F20",
2677 .bustype = CHIP_BUSTYPE_SPI,
2678 .manufacture_id = EON_ID_NOPREFIX,
2679 .model_id = EN_25F20,
2680 .total_size = 256,
2681 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00002682 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002683 .tested = TEST_UNTESTED,
2684 .probe = probe_spi_rdid,
2685 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002686 .block_erasers =
2687 {
2688 {
2689 .eraseblocks = { {4 * 1024, 64} },
2690 .block_erase = spi_block_erase_20,
2691 }, {
2692 .eraseblocks = { {64 * 1024, 4} },
2693 .block_erase = spi_block_erase_d8,
2694 }, {
2695 .eraseblocks = { {64 * 1024, 4} },
2696 .block_erase = spi_block_erase_52,
2697 }, {
2698 .eraseblocks = { {256 * 1024, 1} },
2699 .block_erase = spi_block_erase_60,
2700 }, {
2701 .eraseblocks = { {256 * 1024, 1} },
2702 .block_erase = spi_block_erase_c7,
2703 }
2704 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002705 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002706 .write = spi_chip_write_256,
2707 .read = spi_chip_read,
2708 },
2709
2710 {
2711 .vendor = "Eon",
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002712 .name = "EN25F40",
2713 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002714 .manufacture_id = EON_ID_NOPREFIX,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002715 .model_id = EN_25F40,
2716 .total_size = 512,
2717 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00002718 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerfaaa2b22009-06-22 10:06:28 +00002719 .tested = TEST_OK_PROBE,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002720 .probe = probe_spi_rdid,
2721 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00002722 .block_erasers =
2723 {
2724 {
Sean Nelson54596372010-01-09 05:30:14 +00002725 .eraseblocks = { {4 * 1024, 128} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00002726 .block_erase = spi_block_erase_20,
2727 }, {
Sean Nelson54596372010-01-09 05:30:14 +00002728 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00002729 .block_erase = spi_block_erase_d8,
2730 }, {
Sean Nelson54596372010-01-09 05:30:14 +00002731 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00002732 .block_erase = spi_block_erase_60,
2733 }, {
Sean Nelson54596372010-01-09 05:30:14 +00002734 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00002735 .block_erase = spi_block_erase_c7,
2736 },
2737 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002738 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002739 .write = spi_chip_write_256,
2740 .read = spi_chip_read,
2741 },
2742
2743 {
2744 .vendor = "Eon",
2745 .name = "EN25F80",
2746 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002747 .manufacture_id = EON_ID_NOPREFIX,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002748 .model_id = EN_25F80,
2749 .total_size = 1024,
2750 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00002751 .feature_bits = FEATURE_WRSR_WREN,
Uwe Hermannea5425b2010-05-30 17:00:19 +00002752 .tested = TEST_OK_PR,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002753 .probe = probe_spi_rdid,
2754 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002755 .block_erasers =
2756 {
2757 {
2758 .eraseblocks = { {4 * 1024, 256} },
2759 .block_erase = spi_block_erase_20,
2760 }, {
2761 .eraseblocks = { {64 * 1024, 16} },
2762 .block_erase = spi_block_erase_d8,
2763 }, {
2764 .eraseblocks = { {1024 * 1024, 1} },
2765 .block_erase = spi_block_erase_60,
2766 }, {
2767 .eraseblocks = { {1024 * 1024, 1} },
2768 .block_erase = spi_block_erase_c7,
2769 }
2770 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002771 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002772 .write = spi_chip_write_256,
2773 .read = spi_chip_read,
2774 },
2775
2776 {
2777 .vendor = "Eon",
2778 .name = "EN25F16",
2779 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002780 .manufacture_id = EON_ID_NOPREFIX,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002781 .model_id = EN_25F16,
2782 .total_size = 2048,
2783 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00002784 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002785 .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 = { {4 * 1024, 512} },
2792 .block_erase = spi_block_erase_20,
2793 }, {
2794 .eraseblocks = { {64 * 1024, 32} },
2795 .block_erase = spi_block_erase_d8,
2796 }, {
2797 .eraseblocks = { {2 * 1024 * 1024, 1} },
2798 .block_erase = spi_block_erase_60,
2799 }, {
2800 .eraseblocks = { {2 * 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 {
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002810 .vendor = "Eon",
2811 .name = "EN25F32",
2812 .bustype = CHIP_BUSTYPE_SPI,
2813 .manufacture_id = EON_ID_NOPREFIX,
2814 .model_id = EN_25F32,
2815 .total_size = 4096,
2816 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00002817 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002818 .tested = TEST_UNTESTED,
2819 .probe = probe_spi_rdid,
2820 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002821 .block_erasers =
2822 {
2823 {
2824 .eraseblocks = { {4 * 1024, 1024} },
2825 .block_erase = spi_block_erase_20,
2826 }, {
2827 .eraseblocks = { {64 * 1024, 64} },
2828 .block_erase = spi_block_erase_d8,
2829 }, {
2830 .eraseblocks = { {4 * 1024 * 1024, 1} },
2831 .block_erase = spi_block_erase_60,
2832 }, {
2833 .eraseblocks = { {4 * 1024 * 1024, 1} },
2834 .block_erase = spi_block_erase_c7,
2835 }
2836 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002837 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002838 .write = spi_chip_write_256,
2839 .read = spi_chip_read,
2840 },
2841
2842 {
Russ Dill3cd5a122010-03-05 08:44:11 +00002843 .vendor = "Eon",
2844 .name = "EN29F010",
2845 .bustype = CHIP_BUSTYPE_PARALLEL,
2846 .manufacture_id = EON_ID,
2847 .model_id = EN_29F010,
2848 .total_size = 128,
2849 .page_size = 128,
2850 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
2851 .tested = TEST_OK_PREW,
2852 .probe = probe_jedec,
2853 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2854 .block_erasers =
2855 {
2856 {
2857 .eraseblocks = { {16 * 1024, 8} },
2858 .block_erase = erase_sector_jedec,
2859 },
2860 {
2861 .eraseblocks = { {128 * 1024, 1} },
2862 .block_erase = erase_chip_block_jedec,
2863 },
2864 },
2865 .write = write_jedec_1,
2866 .read = read_memmapped,
2867 },
2868
2869 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00002870 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002871 .name = "EN29F002(A)(N)B",
Urja Rannikko161b8852009-06-05 08:47:37 +00002872 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002873 .manufacture_id = EON_ID,
2874 .model_id = EN_29F002B,
2875 .total_size = 256,
2876 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002877 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Michael Karcherb90c2212010-03-24 22:56:14 +00002878 .tested = TEST_OK_PRW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002879 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002880 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00002881 .block_erasers =
2882 {
2883 {
2884 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00002885 {16 * 1024, 1},
Michael Karchere3cb0a12010-03-13 23:47:09 +00002886 {8 * 1024, 2},
2887 {32 * 1024, 1},
2888 {64 * 1024, 3},
Sean Nelson6b11ad22009-12-23 17:05:59 +00002889 },
2890 .block_erase = erase_sector_jedec,
2891 }, {
2892 .eraseblocks = { {256 * 1024, 1} },
2893 .block_erase = erase_chip_block_jedec,
2894 },
2895 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00002896 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002897 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00002898 },
2899
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002900 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00002901 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002902 .name = "EN29F002(A)(N)T",
Urja Rannikko161b8852009-06-05 08:47:37 +00002903 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002904 .manufacture_id = EON_ID,
2905 .model_id = EN_29F002T,
2906 .total_size = 256,
2907 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002908 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Uwe Hermann60939692010-03-17 00:05:59 +00002909 .tested = TEST_OK_PRW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002910 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002911 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00002912 .block_erasers =
2913 {
2914 {
2915 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00002916 {64 * 1024, 3},
Michael Karchere3cb0a12010-03-13 23:47:09 +00002917 {32 * 1024, 1},
2918 {8 * 1024, 2},
2919 {16 * 1024, 1},
Sean Nelson6b11ad22009-12-23 17:05:59 +00002920 },
2921 .block_erase = erase_sector_jedec,
2922 }, {
2923 .eraseblocks = { {256 * 1024, 1} },
2924 .block_erase = erase_chip_block_jedec,
2925 },
2926 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00002927 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002928 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00002929 },
2930
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002931 {
2932 .vendor = "Fujitsu",
2933 .name = "MBM29F004BC",
Urja Rannikko038a3122009-06-28 19:19:25 +00002934 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002935 .manufacture_id = FUJITSU_ID,
2936 .model_id = MBM29F004BC,
2937 .total_size = 512,
2938 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00002939 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002940 .tested = TEST_UNTESTED,
2941 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002942 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00002943 .block_erasers =
2944 {
2945 {
2946 .eraseblocks = {
2947 {16 * 1024, 1},
2948 {8 * 1024, 2},
2949 {32 * 1024, 1},
2950 {64 * 1024, 7},
2951 },
Sean Nelson35727f72010-01-28 23:55:12 +00002952 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00002953 }, {
2954 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00002955 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00002956 },
2957 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002958 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002959 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00002960 },
2961
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002962 {
2963 .vendor = "Fujitsu",
2964 .name = "MBM29F004TC",
Urja Rannikko038a3122009-06-28 19:19:25 +00002965 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002966 .manufacture_id = FUJITSU_ID,
2967 .model_id = MBM29F004TC,
2968 .total_size = 512,
2969 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00002970 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002971 .tested = TEST_UNTESTED,
2972 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002973 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00002974 .block_erasers =
2975 {
2976 {
2977 .eraseblocks = {
2978 {64 * 1024, 7},
2979 {32 * 1024, 1},
2980 {8 * 1024, 2},
2981 {16 * 1024, 1},
2982 },
Sean Nelson35727f72010-01-28 23:55:12 +00002983 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00002984 }, {
2985 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00002986 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00002987 },
2988 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002989 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002990 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00002991 },
2992
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002993 {
Sean Nelson35727f72010-01-28 23:55:12 +00002994 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002995 .vendor = "Fujitsu",
2996 .name = "MBM29F400BC",
Urja Rannikko038a3122009-06-28 19:19:25 +00002997 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002998 .manufacture_id = FUJITSU_ID,
2999 .model_id = MBM29F400BC,
3000 .total_size = 512,
3001 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003002 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00003003 .tested = TEST_BAD_WRITE, /* Implicit eraseblock layout in write_m29f400bt is broken. */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003004 .probe = probe_m29f400bt,
Maciej Pijankac6e11112009-06-03 14:46:22 +00003005 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (m29f400bt.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003006 .block_erasers =
3007 {
3008 {
3009 .eraseblocks = {
3010 {16 * 1024, 1},
3011 {8 * 1024, 2},
3012 {32 * 1024, 1},
3013 {64 * 1024, 7},
3014 },
3015 .block_erase = block_erase_m29f400bt,
3016 }, {
3017 .eraseblocks = { {512 * 1024, 1} },
3018 .block_erase = block_erase_chip_m29f400bt,
3019 },
3020 },
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00003021 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003022 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00003023 },
3024
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003025 {
3026 .vendor = "Fujitsu",
3027 .name = "MBM29F400TC",
Urja Rannikko038a3122009-06-28 19:19:25 +00003028 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003029 .manufacture_id = FUJITSU_ID,
3030 .model_id = MBM29F400TC,
3031 .total_size = 512,
3032 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003033 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003034 .tested = TEST_UNTESTED,
3035 .probe = probe_m29f400bt,
Maciej Pijankac6e11112009-06-03 14:46:22 +00003036 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (m29f400bt.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003037 .block_erasers =
3038 {
3039 {
3040 .eraseblocks = {
3041 {64 * 1024, 7},
3042 {32 * 1024, 1},
3043 {8 * 1024, 2},
3044 {16 * 1024, 1},
3045 },
3046 .block_erase = block_erase_m29f400bt,
3047 }, {
3048 .eraseblocks = { {512 * 1024, 1} },
3049 .block_erase = block_erase_chip_m29f400bt,
3050 },
3051 },
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00003052 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003053 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00003054 },
3055
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003056 {
David Borgc96a8bd2010-06-21 16:12:22 +00003057 .vendor = "Hyundai",
3058 .name = "HY29F002T",
3059 .bustype = CHIP_BUSTYPE_PARALLEL,
3060 .manufacture_id = HYUNDAI_ID,
3061 .model_id = HY_29F002T,
3062 .total_size = 256,
3063 .page_size = 256 * 1024,
3064 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
3065 .tested = TEST_OK_PREW,
3066 .probe = probe_jedec,
3067 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3068 .block_erasers =
3069 {
3070 {
3071 .eraseblocks = {
3072 {64 * 1024, 3},
3073 {32 * 1024, 1},
3074 {8 * 1024, 2},
3075 {16 * 1024, 1},
3076 },
3077 .block_erase = erase_sector_jedec,
3078 }, {
3079 .eraseblocks = { {256 * 1024, 1} },
3080 .block_erase = erase_chip_block_jedec,
3081 },
3082 },
3083 .write = write_jedec_1,
3084 .read = read_memmapped,
3085 },
3086
3087 {
3088 .vendor = "Hyundai",
3089 .name = "HY29F002B",
3090 .bustype = CHIP_BUSTYPE_PARALLEL,
3091 .manufacture_id = HYUNDAI_ID,
3092 .model_id = HY_29F002B,
3093 .total_size = 256,
3094 .page_size = 256 * 1024,
3095 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
3096 .tested = TEST_UNTESTED,
3097 .probe = probe_jedec,
3098 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3099 .block_erasers =
3100 {
3101 {
3102 .eraseblocks = {
3103 {16 * 1024, 1},
3104 {8 * 1024, 2},
3105 {32 * 1024, 1},
3106 {64 * 1024, 3},
3107 },
3108 .block_erase = erase_sector_jedec,
3109 }, {
3110 .eraseblocks = { {256 * 1024, 1} },
3111 .block_erase = erase_chip_block_jedec,
3112 },
3113 },
3114 .write = write_jedec_1,
3115 .read = read_memmapped,
3116 },
3117
3118 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003119 .vendor = "Intel",
Urja Rannikkoebd7b832009-05-29 12:55:31 +00003120 .name = "28F001BX-B",
Urja Rannikko161b8852009-06-05 08:47:37 +00003121 .bustype = CHIP_BUSTYPE_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00003122 .manufacture_id = INTEL_ID,
3123 .model_id = P28F001BXB,
3124 .total_size = 128,
3125 .page_size = 128 * 1024, /* 8k + 2x4k + 112k */
Sean Nelsondee4a832010-03-22 04:39:31 +00003126 .tested = TEST_UNTESTED,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00003127 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003128 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00003129 .block_erasers =
3130 {
3131 {
3132 .eraseblocks = {
3133 {8 * 1024, 1},
3134 {4 * 1024, 2},
3135 {112 * 1024, 1},
3136 },
Sean Nelson28accc22010-03-19 18:47:06 +00003137 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00003138 },
3139 },
Sean Nelsondee4a832010-03-22 04:39:31 +00003140 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00003141 .read = read_memmapped,
3142 },
3143
3144 {
3145 .vendor = "Intel",
3146 .name = "28F001BX-T",
Urja Rannikko161b8852009-06-05 08:47:37 +00003147 .bustype = CHIP_BUSTYPE_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00003148 .manufacture_id = INTEL_ID,
3149 .model_id = P28F001BXT,
3150 .total_size = 128,
3151 .page_size = 128 * 1024, /* 112k + 2x4k + 8k */
Sean Nelsondee4a832010-03-22 04:39:31 +00003152 .tested = TEST_UNTESTED,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00003153 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003154 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00003155 .block_erasers =
3156 {
3157 {
3158 .eraseblocks = {
3159 {112 * 1024, 1},
3160 {4 * 1024, 2},
3161 {8 * 1024, 1},
3162 },
Sean Nelson28accc22010-03-19 18:47:06 +00003163 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00003164 },
3165 },
Sean Nelsondee4a832010-03-22 04:39:31 +00003166 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00003167 .read = read_memmapped,
3168 },
3169
3170 {
3171 .vendor = "Intel",
Joshua Roysd97c0e02010-07-22 15:20:43 +00003172 .name = "28F002BC-T",
3173 .bustype = CHIP_BUSTYPE_PARALLEL,
3174 .manufacture_id = INTEL_ID,
3175 .model_id = P28F002BC,
3176 .total_size = 256,
3177 .page_size = 256 * 1024,
3178 .tested = TEST_UNTESTED,
3179 .probe = probe_82802ab,
3180 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3181 .block_erasers =
3182 {
3183 {
3184 .eraseblocks = {
3185 {128 * 1024, 1},
3186 {96 * 1024, 1},
3187 {8 * 1024, 2},
3188 {16 * 1024, 1},
3189 },
3190 .block_erase = erase_block_82802ab,
3191 },
3192 },
3193 .write = write_82802ab,
3194 .read = read_memmapped,
3195 },
3196
3197 {
3198 .vendor = "Intel",
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00003199 .name = "28F004S5",
3200 .bustype = CHIP_BUSTYPE_PARALLEL,
3201 .manufacture_id = INTEL_ID,
3202 .model_id = E_28F004S5,
3203 .total_size = 512,
3204 .page_size = 256,
3205 .tested = TEST_UNTESTED,
3206 .probe = probe_82802ab,
3207 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00003208 .block_erasers =
3209 {
3210 {
3211 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00003212 .block_erase = erase_block_82802ab,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00003213 },
3214 },
Sean Nelsondee4a832010-03-22 04:39:31 +00003215 .unlock = unlock_28f004s5,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00003216 .write = write_82802ab,
3217 .read = read_memmapped,
3218 },
3219
3220 {
3221 .vendor = "Intel",
Michael Karcherad0010a2010-04-03 10:27:08 +00003222 .name = "28F004BV/BE-B",
3223 .bustype = CHIP_BUSTYPE_PARALLEL,
3224 .manufacture_id = INTEL_ID,
3225 .model_id = P28F004BB,
3226 .total_size = 512,
3227 .page_size = 128 * 1024, /* maximal block size */
3228 .tested = TEST_UNTESTED,
3229 .probe = probe_82802ab,
3230 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3231 .block_erasers =
3232 {
3233 {
3234 .eraseblocks = {
3235 {16 * 1024, 1},
3236 {8 * 1024, 2},
3237 {96 * 1024, 1},
3238 {128 * 1024, 3},
3239 },
3240 .block_erase = erase_block_82802ab,
3241 },
3242 },
3243 .write = write_82802ab,
3244 .read = read_memmapped,
3245 },
3246
3247 {
3248 .vendor = "Intel",
3249 .name = "28F004BV/BE-T",
3250 .bustype = CHIP_BUSTYPE_PARALLEL,
3251 .manufacture_id = INTEL_ID,
3252 .model_id = P28F004BT,
3253 .total_size = 512,
3254 .page_size = 128 * 1024, /* maximal block size */
3255 .tested = TEST_UNTESTED,
3256 .probe = probe_82802ab,
3257 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3258 .block_erasers =
3259 {
3260 {
3261 .eraseblocks = {
3262 {128 * 1024, 3},
3263 {96 * 1024, 1},
3264 {8 * 1024, 2},
3265 {16 * 1024, 1},
3266 },
3267 .block_erase = erase_block_82802ab,
3268 },
3269 },
3270 .write = write_82802ab,
3271 .read = read_memmapped,
3272 },
3273
3274 {
3275 .vendor = "Intel",
3276 .name = "28F400BV/CV/CE-B",
3277 .bustype = CHIP_BUSTYPE_PARALLEL,
3278 .manufacture_id = INTEL_ID,
3279 .model_id = P28F400BB,
3280 .total_size = 512,
3281 .page_size = 128 * 1024, /* maximal block size */
3282 .feature_bits = FEATURE_ADDR_SHIFTED,
3283 .tested = TEST_UNTESTED,
3284 .probe = probe_82802ab,
3285 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3286 .block_erasers =
3287 {
3288 {
3289 .eraseblocks = {
3290 {16 * 1024, 1},
3291 {8 * 1024, 2},
3292 {96 * 1024, 1},
3293 {128 * 1024, 3},
3294 },
3295 .block_erase = erase_block_82802ab,
3296 },
3297 },
3298 .write = write_82802ab,
3299 .read = read_memmapped,
3300 },
3301
3302 {
3303 .vendor = "Intel",
3304 .name = "28F400BV/CV/CE-T",
3305 .bustype = CHIP_BUSTYPE_PARALLEL,
3306 .manufacture_id = INTEL_ID,
3307 .model_id = P28F400BT,
3308 .total_size = 512,
3309 .page_size = 128 * 1024, /* maximal block size */
3310 .feature_bits = FEATURE_ADDR_SHIFTED,
3311 .tested = TEST_UNTESTED,
3312 .probe = probe_82802ab,
3313 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3314 .block_erasers =
3315 {
3316 {
3317 .eraseblocks = {
3318 {128 * 1024, 3},
3319 {96 * 1024, 1},
3320 {8 * 1024, 2},
3321 {16 * 1024, 1},
3322 },
3323 .block_erase = erase_block_82802ab,
3324 },
3325 },
3326 .write = write_82802ab,
3327 .read = read_memmapped,
3328 },
3329
3330 {
3331 .vendor = "Intel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003332 .name = "82802AB",
Mateusz Murawskie33890d2009-06-12 11:45:10 +00003333 .bustype = CHIP_BUSTYPE_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003334 .manufacture_id = INTEL_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00003335 .model_id = I_82802AB,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003336 .total_size = 512,
3337 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00003338 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +00003339 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003340 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003341 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00003342 .block_erasers =
3343 {
3344 {
3345 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00003346 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00003347 },
3348 },
Sean Nelson28accc22010-03-19 18:47:06 +00003349 .unlock = unlock_82802ab,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003350 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003351 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00003352 },
3353
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003354 {
3355 .vendor = "Intel",
3356 .name = "82802AC",
Mateusz Murawskie33890d2009-06-12 11:45:10 +00003357 .bustype = CHIP_BUSTYPE_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003358 .manufacture_id = INTEL_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00003359 .model_id = I_82802AC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003360 .total_size = 1024,
3361 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00003362 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +00003363 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003364 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003365 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00003366 .block_erasers =
3367 {
3368 {
3369 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +00003370 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00003371 },
3372 },
Sean Nelson28accc22010-03-19 18:47:06 +00003373 .unlock = unlock_82802ab,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003374 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003375 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00003376 },
3377
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003378 {
3379 .vendor = "Macronix",
3380 .name = "MX25L512",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00003381 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003382 .manufacture_id = MX_ID,
3383 .model_id = MX_25L512,
3384 .total_size = 64,
3385 .page_size = 256,
3386 .tested = TEST_UNTESTED,
3387 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003388 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00003389 .block_erasers =
3390 {
3391 {
3392 .eraseblocks = { {4 * 1024, 16} },
3393 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00003394 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00003395 .eraseblocks = { {64 * 1024, 1} },
3396 .block_erase = spi_block_erase_52,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00003397 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00003398 .eraseblocks = { {64 * 1024, 1} },
3399 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00003400 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00003401 .eraseblocks = { {64 * 1024, 1} },
3402 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00003403 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00003404 .eraseblocks = { {64 * 1024, 1} },
3405 .block_erase = spi_block_erase_c7,
3406 },
3407 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003408 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00003409 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003410 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00003411 },
3412
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003413 {
3414 .vendor = "Macronix",
3415 .name = "MX25L1005",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00003416 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003417 .manufacture_id = MX_ID,
3418 .model_id = MX_25L1005,
3419 .total_size = 128,
3420 .page_size = 256,
3421 .tested = TEST_UNTESTED,
3422 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003423 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00003424 .block_erasers =
3425 {
3426 {
3427 .eraseblocks = { {4 * 1024, 32} },
3428 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00003429 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00003430 .eraseblocks = { {64 * 1024, 2} },
3431 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00003432 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00003433 .eraseblocks = { {128 * 1024, 1} },
3434 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00003435 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00003436 .eraseblocks = { {128 * 1024, 1} },
3437 .block_erase = spi_block_erase_c7,
3438 },
3439 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003440 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00003441 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003442 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00003443 },
3444
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003445 {
3446 .vendor = "Macronix",
3447 .name = "MX25L2005",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00003448 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003449 .manufacture_id = MX_ID,
3450 .model_id = MX_25L2005,
3451 .total_size = 256,
3452 .page_size = 256,
3453 .tested = TEST_UNTESTED,
3454 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003455 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00003456 .block_erasers =
3457 {
3458 {
3459 .eraseblocks = { {4 * 1024, 64} },
3460 .block_erase = spi_block_erase_20,
3461 }, {
3462 .eraseblocks = { {64 * 1024, 4} },
3463 .block_erase = spi_block_erase_52,
3464 }, {
3465 .eraseblocks = { {64 * 1024, 4} },
3466 .block_erase = spi_block_erase_d8,
3467 }, {
3468 .eraseblocks = { {256 * 1024, 1} },
3469 .block_erase = spi_block_erase_60,
3470 }, {
3471 .eraseblocks = { {256 * 1024, 1} },
3472 .block_erase = spi_block_erase_c7,
3473 },
3474 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003475 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00003476 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003477 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00003478 },
3479
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003480 {
3481 .vendor = "Macronix",
3482 .name = "MX25L4005",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00003483 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003484 .manufacture_id = MX_ID,
3485 .model_id = MX_25L4005,
3486 .total_size = 512,
3487 .page_size = 256,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00003488 .tested = TEST_OK_PRW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003489 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003490 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00003491 .block_erasers =
3492 {
3493 {
3494 .eraseblocks = { {4 * 1024, 128} },
3495 .block_erase = spi_block_erase_20,
3496 }, {
3497 .eraseblocks = { {64 * 1024, 8} },
3498 .block_erase = spi_block_erase_52,
3499 }, {
3500 .eraseblocks = { {64 * 1024, 8} },
3501 .block_erase = spi_block_erase_d8,
3502 }, {
3503 .eraseblocks = { {512 * 1024, 1} },
3504 .block_erase = spi_block_erase_60,
3505 }, {
3506 .eraseblocks = { {512 * 1024, 1} },
3507 .block_erase = spi_block_erase_c7,
3508 },
3509 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003510 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00003511 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003512 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00003513 },
3514
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003515 {
3516 .vendor = "Macronix",
3517 .name = "MX25L8005",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00003518 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003519 .manufacture_id = MX_ID,
3520 .model_id = MX_25L8005,
3521 .total_size = 1024,
3522 .page_size = 256,
Uwe Hermannc2521ab2010-07-29 22:39:47 +00003523 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003524 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003525 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00003526 .block_erasers =
3527 {
3528 {
3529 .eraseblocks = { {4 * 1024, 256} },
3530 .block_erase = spi_block_erase_20,
3531 }, {
3532 .eraseblocks = { {64 * 1024, 16} },
3533 .block_erase = spi_block_erase_52,
3534 }, {
3535 .eraseblocks = { {64 * 1024, 16} },
3536 .block_erase = spi_block_erase_d8,
3537 }, {
3538 .eraseblocks = { {1024 * 1024, 1} },
3539 .block_erase = spi_block_erase_60,
3540 }, {
3541 .eraseblocks = { {1024 * 1024, 1} },
3542 .block_erase = spi_block_erase_c7,
3543 },
3544 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003545 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00003546 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003547 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00003548 },
3549
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003550 {
3551 .vendor = "Macronix",
3552 .name = "MX25L1605",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00003553 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003554 .manufacture_id = MX_ID,
3555 .model_id = MX_25L1605,
3556 .total_size = 2048,
3557 .page_size = 256,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00003558 .tested = TEST_OK_PRW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003559 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003560 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00003561 .block_erasers =
3562 {
3563 {
3564 .eraseblocks = { {4 * 1024, 512} },
3565 .block_erase = spi_block_erase_20, /* This erase function has 64k blocksize for eLiteFlash */
3566 }, {
3567 .eraseblocks = { {64 * 1024, 32} }, /* Not supported in MX25L1605 (eLiteFlash) and MX25L1605D */
3568 .block_erase = spi_block_erase_52,
3569 }, {
3570 .eraseblocks = { {64 * 1024, 32} },
3571 .block_erase = spi_block_erase_d8,
3572 }, {
3573 .eraseblocks = { {2 * 1024 * 1024, 1} },
3574 .block_erase = spi_block_erase_60,
3575 }, {
3576 .eraseblocks = { {2 * 1024 * 1024, 1} },
3577 .block_erase = spi_block_erase_c7,
3578 },
3579 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003580 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00003581 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003582 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00003583 },
3584
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003585 {
3586 .vendor = "Macronix",
Stephan Guillouxf5c70902009-04-19 23:04:00 +00003587 .name = "MX25L1635D",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00003588 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00003589 .manufacture_id = MX_ID,
3590 .model_id = MX_25L1635D,
3591 .total_size = 2048,
3592 .page_size = 256,
3593 .tested = TEST_UNTESTED,
3594 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003595 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003596 .block_erasers =
3597 {
3598 {
3599 .eraseblocks = { {4 * 1024, 512} },
3600 .block_erase = spi_block_erase_20,
3601 }, {
3602 .eraseblocks = { {64 * 1024, 32} },
3603 .block_erase = spi_block_erase_d8,
3604 }, {
3605 .eraseblocks = { {2 * 1024 * 1024, 1} },
3606 .block_erase = spi_block_erase_60,
3607 }, {
3608 .eraseblocks = { {2 * 1024 * 1024, 1} },
3609 .block_erase = spi_block_erase_c7,
3610 }
3611 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003612 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00003613 .write = spi_chip_write_256,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00003614 .read = spi_chip_read,
3615 },
Stephan Guillouxfd315502009-04-20 22:54:13 +00003616
Stephan Guillouxf5c70902009-04-19 23:04:00 +00003617 {
3618 .vendor = "Macronix",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003619 .name = "MX25L3205",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00003620 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003621 .manufacture_id = MX_ID,
3622 .model_id = MX_25L3205,
3623 .total_size = 4096,
3624 .page_size = 256,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003625 .tested = TEST_OK_PRW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003626 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003627 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003628 .block_erasers =
3629 {
3630 {
3631 .eraseblocks = { {4 * 1024, 1024} },
3632 .block_erase = spi_block_erase_20,
3633 }, {
3634 .eraseblocks = { {4 * 1024, 1024} },
3635 .block_erase = spi_block_erase_d8,
3636 }, {
3637 .eraseblocks = { {4 * 1024 * 1024, 1} },
3638 .block_erase = spi_block_erase_60,
3639 }, {
3640 .eraseblocks = { {4 * 1024 * 1024, 1} },
3641 .block_erase = spi_block_erase_c7,
3642 },
3643 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003644 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00003645 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003646 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00003647 },
3648
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003649 {
3650 .vendor = "Macronix",
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00003651 .name = "MX25L3235D",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00003652 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00003653 .manufacture_id = MX_ID,
3654 .model_id = MX_25L3235D,
3655 .total_size = 4096,
3656 .page_size = 256,
3657 .tested = TEST_UNTESTED,
3658 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003659 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003660 .block_erasers =
3661 {
3662 {
3663 .eraseblocks = { {4 * 1024, 1024} },
3664 .block_erase = spi_block_erase_20,
3665 }, {
3666 .eraseblocks = { {64 * 1024, 64} },
3667 .block_erase = spi_block_erase_d8,
3668 }, {
3669 .eraseblocks = { {4 * 1024 * 1024, 1} },
3670 .block_erase = spi_block_erase_60,
3671 }, {
3672 .eraseblocks = { {4 * 1024 * 1024, 1} },
3673 .block_erase = spi_block_erase_c7,
3674 }
3675 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003676 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00003677 .write = spi_chip_write_256,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00003678 .read = spi_chip_read,
3679 },
3680
3681 {
3682 .vendor = "Macronix",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003683 .name = "MX25L6405",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00003684 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003685 .manufacture_id = MX_ID,
3686 .model_id = MX_25L6405,
3687 .total_size = 8192,
3688 .page_size = 256,
Carl-Daniel Hailfinger452b3e32009-06-22 11:14:43 +00003689 .tested = TEST_OK_PROBE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003690 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003691 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003692 .block_erasers =
3693 {
3694 {
3695 .eraseblocks = { {64 * 1024, 128} },
3696 .block_erase = spi_block_erase_20,
3697 }, {
3698 .eraseblocks = { {64 * 1024, 128} },
3699 .block_erase = spi_block_erase_d8,
3700 }, {
3701 .eraseblocks = { {8 * 1024 * 1024, 1} },
3702 .block_erase = spi_block_erase_60,
3703 }, {
3704 .eraseblocks = { {8 * 1024 * 1024, 1} },
3705 .block_erase = spi_block_erase_c7,
3706 }
3707 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003708 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00003709 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003710 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00003711 },
3712
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003713 {
3714 .vendor = "Macronix",
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00003715 .name = "MX25L12805",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00003716 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00003717 .manufacture_id = MX_ID,
3718 .model_id = MX_25L12805,
3719 .total_size = 16384,
3720 .page_size = 256,
3721 .tested = TEST_UNTESTED,
3722 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003723 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003724 .block_erasers =
3725 {
3726 {
3727 .eraseblocks = { {4 * 1024, 4096} },
3728 .block_erase = spi_block_erase_20,
3729 }, {
3730 .eraseblocks = { {64 * 1024, 256} },
3731 .block_erase = spi_block_erase_d8,
3732 }, {
3733 .eraseblocks = { {16 * 1024 * 1024, 1} },
3734 .block_erase = spi_block_erase_60,
3735 }, {
3736 .eraseblocks = { {16 * 1024 * 1024, 1} },
3737 .block_erase = spi_block_erase_c7,
3738 }
3739 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003740 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00003741 .write = spi_chip_write_256,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00003742 .read = spi_chip_read,
3743 },
3744
3745 {
3746 .vendor = "Macronix",
Mark Panajotovic502a9132009-08-24 01:42:24 +00003747 .name = "MX29F001B",
3748 .bustype = CHIP_BUSTYPE_PARALLEL,
3749 .manufacture_id = MX_ID,
3750 .model_id = MX_29F001B,
3751 .total_size = 128,
3752 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003753 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
3754 .tested = TEST_UNTESTED,
3755 .probe = probe_jedec,
Mark Panajotovic502a9132009-08-24 01:42:24 +00003756 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (mx29f002.c) */
Sean Nelson54596372010-01-09 05:30:14 +00003757 .block_erasers =
3758 {
3759 {
3760 .eraseblocks = {
3761 {8 * 1024, 1},
3762 {4 * 1024, 2},
3763 {8 * 1024, 2},
3764 {32 * 1024, 1},
3765 {64 * 1024, 1},
3766 },
Sean Nelson35727f72010-01-28 23:55:12 +00003767 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00003768 }, {
3769 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00003770 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00003771 }
3772 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00003773 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00003774 .read = read_memmapped,
3775 },
3776
3777 {
3778 .vendor = "Macronix",
3779 .name = "MX29F001T",
3780 .bustype = CHIP_BUSTYPE_PARALLEL,
3781 .manufacture_id = MX_ID,
3782 .model_id = MX_29F001T,
3783 .total_size = 128,
3784 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003785 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
3786 .tested = TEST_UNTESTED,
3787 .probe = probe_jedec,
Mark Panajotovic502a9132009-08-24 01:42:24 +00003788 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (mx29f002.c) */
Sean Nelson54596372010-01-09 05:30:14 +00003789 .block_erasers =
3790 {
3791 {
3792 .eraseblocks = {
3793 {64 * 1024, 1},
3794 {32 * 1024, 1},
3795 {8 * 1024, 2},
3796 {4 * 1024, 2},
3797 {8 * 1024, 1},
3798 },
Sean Nelson35727f72010-01-28 23:55:12 +00003799 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00003800 }, {
3801 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00003802 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00003803 }
3804 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00003805 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00003806 .read = read_memmapped,
3807 },
3808
3809 {
3810 .vendor = "Macronix",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003811 .name = "MX29F002B",
Urja Rannikko038a3122009-06-28 19:19:25 +00003812 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003813 .manufacture_id = MX_ID,
3814 .model_id = MX_29F002B,
3815 .total_size = 256,
3816 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003817 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003818 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00003819 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00003820 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (mx29f002.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003821 .block_erasers =
3822 {
3823 {
3824 .eraseblocks = {
3825 {16 * 1024, 1},
3826 {8 * 1024, 2},
3827 {32 * 1024, 1},
3828 {64 * 1024, 3},
3829 },
Sean Nelson35727f72010-01-28 23:55:12 +00003830 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003831 }, {
3832 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00003833 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003834 },
3835 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00003836 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003837 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00003838 },
3839
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003840 {
3841 .vendor = "Macronix",
3842 .name = "MX29F002T",
Urja Rannikko038a3122009-06-28 19:19:25 +00003843 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003844 .manufacture_id = MX_ID,
3845 .model_id = MX_29F002T,
3846 .total_size = 256,
3847 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003848 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Uwe Hermann60939692010-03-17 00:05:59 +00003849 .tested = TEST_OK_PRW,
Sean Nelson35727f72010-01-28 23:55:12 +00003850 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00003851 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (mx29f002.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003852 .block_erasers =
3853 {
3854 {
3855 .eraseblocks = {
3856 {64 * 1024, 3},
3857 {32 * 1024, 1},
3858 {8 * 1024, 2},
3859 {16 * 1024, 1},
3860 },
Sean Nelson35727f72010-01-28 23:55:12 +00003861 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003862 }, {
3863 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00003864 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003865 },
3866 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00003867 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003868 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00003869 },
3870
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003871 {
3872 .vendor = "Macronix",
Carl-Daniel Hailfinger350a0c32009-07-24 13:59:27 +00003873 .name = "MX29LV040",
Urja Rannikko038a3122009-06-28 19:19:25 +00003874 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003875 .manufacture_id = MX_ID,
Carl-Daniel Hailfinger350a0c32009-07-24 13:59:27 +00003876 .model_id = MX_29LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003877 .total_size = 512,
3878 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003879 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
3880 .tested = TEST_UNTESTED,
3881 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00003882 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (mx29f002.c) */
Sean Nelson54596372010-01-09 05:30:14 +00003883 .block_erasers =
3884 {
3885 {
3886 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson35727f72010-01-28 23:55:12 +00003887 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00003888 }, {
3889 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00003890 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00003891 },
3892 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00003893 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003894 .read = read_memmapped,
Carl-Daniel Hailfinger7de86392008-12-10 10:32:05 +00003895 },
3896
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003897 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00003898 .vendor = "MoselVitelic",
3899 .name = "V29C51000B",
3900 .bustype = CHIP_BUSTYPE_PARALLEL,
3901 .manufacture_id = SYNCMOS_MVC_ID,
3902 .model_id = MVC_V29C51000B,
3903 .total_size = 64,
3904 .page_size = 512,
3905 .feature_bits = FEATURE_EITHER_RESET,
3906 .tested = TEST_UNTESTED,
3907 .probe = probe_jedec,
3908 .probe_timing = TIMING_ZERO,
3909 .block_erasers =
3910 {
3911 {
3912 .eraseblocks = { {512, 128} },
3913 .block_erase = erase_sector_jedec,
3914 }, {
3915 .eraseblocks = { {64 * 1024, 1} },
3916 .block_erase = erase_chip_block_jedec,
3917 },
3918 },
3919 .write = write_jedec_1,
3920 .read = read_memmapped,
3921 },
3922
3923 {
3924 .vendor = "MoselVitelic",
3925 .name = "V29C51000T",
3926 .bustype = CHIP_BUSTYPE_PARALLEL,
3927 .manufacture_id = SYNCMOS_MVC_ID,
3928 .model_id = MVC_V29C51000T,
3929 .total_size = 64,
3930 .page_size = 512,
3931 .feature_bits = FEATURE_EITHER_RESET,
3932 .tested = TEST_UNTESTED,
3933 .probe = probe_jedec,
3934 .probe_timing = TIMING_ZERO,
3935 .block_erasers =
3936 {
3937 {
3938 .eraseblocks = { {512, 128} },
3939 .block_erase = erase_sector_jedec,
3940 }, {
3941 .eraseblocks = { {64 * 1024, 1} },
3942 .block_erase = erase_chip_block_jedec,
3943 },
3944 },
3945 .write = write_jedec_1,
3946 .read = read_memmapped,
3947 },
3948
3949 {
3950 .vendor = "MoselVitelic",
3951 .name = "V29C51400B",
3952 .bustype = CHIP_BUSTYPE_PARALLEL,
3953 .manufacture_id = SYNCMOS_MVC_ID,
3954 .model_id = MVC_V29C51400B,
3955 .total_size = 512,
3956 .page_size = 1024,
3957 .feature_bits = FEATURE_EITHER_RESET,
3958 .tested = TEST_UNTESTED,
3959 .probe = probe_jedec,
3960 .probe_timing = TIMING_ZERO,
3961 .block_erasers =
3962 {
3963 {
3964 .eraseblocks = { {1024, 512} },
3965 .block_erase = erase_sector_jedec,
3966 }, {
3967 .eraseblocks = { {512 * 1024, 1} },
3968 .block_erase = erase_chip_block_jedec,
3969 },
3970 },
3971 .write = write_jedec_1,
3972 .read = read_memmapped,
3973 },
3974
3975 {
3976 .vendor = "MoselVitelic",
3977 .name = "V29C51400T",
3978 .bustype = CHIP_BUSTYPE_PARALLEL,
3979 .manufacture_id = SYNCMOS_MVC_ID,
3980 .model_id = MVC_V29C51400T,
3981 .total_size = 512,
3982 .page_size = 1024,
3983 .feature_bits = FEATURE_EITHER_RESET,
3984 .tested = TEST_UNTESTED,
3985 .probe = probe_jedec,
3986 .probe_timing = TIMING_ZERO,
3987 .block_erasers =
3988 {
3989 {
3990 .eraseblocks = { {1024, 512} },
3991 .block_erase = erase_sector_jedec,
3992 }, {
3993 .eraseblocks = { {512 * 1024, 1} },
3994 .block_erase = erase_chip_block_jedec,
3995 },
3996 },
3997 .write = write_jedec_1,
3998 .read = read_memmapped,
3999 },
4000
4001 {
4002 .vendor = "MoselVitelic",
4003 .name = "V29LC51000",
4004 .bustype = CHIP_BUSTYPE_PARALLEL,
4005 .manufacture_id = SYNCMOS_MVC_ID,
4006 .model_id = MVC_V29LC51000,
4007 .total_size = 64,
4008 .page_size = 512,
4009 .feature_bits = FEATURE_EITHER_RESET,
4010 .tested = TEST_UNTESTED,
4011 .probe = probe_jedec,
4012 .probe_timing = TIMING_ZERO,
4013 .block_erasers =
4014 {
4015 {
4016 .eraseblocks = { {512, 128} },
4017 .block_erase = erase_sector_jedec,
4018 }, {
4019 .eraseblocks = { {64 * 1024, 1} },
4020 .block_erase = erase_chip_block_jedec,
4021 },
4022 },
4023 .write = write_jedec_1,
4024 .read = read_memmapped,
4025 },
4026
4027 {
4028 .vendor = "MoselVitelic",
4029 .name = "V29LC51001",
4030 .bustype = CHIP_BUSTYPE_PARALLEL,
4031 .manufacture_id = SYNCMOS_MVC_ID,
4032 .model_id = MVC_V29LC51001,
4033 .total_size = 128,
4034 .page_size = 512,
4035 .feature_bits = FEATURE_EITHER_RESET,
4036 .tested = TEST_UNTESTED,
4037 .probe = probe_jedec,
4038 .probe_timing = TIMING_ZERO,
4039 .block_erasers =
4040 {
4041 {
4042 .eraseblocks = { {512, 256} },
4043 .block_erase = erase_sector_jedec,
4044 }, {
4045 .eraseblocks = { {128 * 1024, 1} },
4046 .block_erase = erase_chip_block_jedec,
4047 },
4048 },
4049 .write = write_jedec_1,
4050 .read = read_memmapped,
4051 },
4052
4053 {
4054 .vendor = "MoselVitelic",
4055 .name = "V29LC51002",
4056 .bustype = CHIP_BUSTYPE_PARALLEL,
4057 .manufacture_id = SYNCMOS_MVC_ID,
4058 .model_id = MVC_V29LC51002,
4059 .total_size = 256,
4060 .page_size = 512,
4061 .feature_bits = FEATURE_EITHER_RESET,
4062 .tested = TEST_UNTESTED,
4063 .probe = probe_jedec,
4064 .probe_timing = TIMING_ZERO,
4065 .block_erasers =
4066 {
4067 {
4068 .eraseblocks = { {512, 512} },
4069 .block_erase = erase_sector_jedec,
4070 }, {
4071 .eraseblocks = { {256 * 1024, 1} },
4072 .block_erase = erase_chip_block_jedec,
4073 },
4074 },
4075 .write = write_jedec_1,
4076 .read = read_memmapped,
4077 },
4078
4079 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004080 .vendor = "Numonyx",
4081 .name = "M25PE10",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004082 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004083 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00004084 .model_id = ST_M25PE10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004085 .total_size = 128,
4086 .page_size = 256,
4087 .tested = TEST_UNTESTED,
4088 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004089 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00004090 .block_erasers =
4091 {
4092 {
4093 .eraseblocks = { {4 * 1024, 32} },
4094 .block_erase = spi_block_erase_20,
4095 }, {
4096 .eraseblocks = { {64 * 1024, 2} },
4097 .block_erase = spi_block_erase_d8,
4098 }, {
4099 .eraseblocks = { {128 * 1024, 1} },
4100 .block_erase = spi_block_erase_c7,
4101 }
4102 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004103 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004104 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004105 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00004106 },
4107
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004108 {
4109 .vendor = "Numonyx",
4110 .name = "M25PE20",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004111 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004112 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00004113 .model_id = ST_M25PE20,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004114 .total_size = 256,
4115 .page_size = 256,
4116 .tested = TEST_UNTESTED,
4117 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004118 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00004119 .block_erasers =
4120 {
4121 {
4122 .eraseblocks = { {4 * 1024, 64} },
4123 .block_erase = spi_block_erase_20,
4124 }, {
4125 .eraseblocks = { {64 * 1024, 4} },
4126 .block_erase = spi_block_erase_d8,
4127 }, {
4128 .eraseblocks = { {256 * 1024, 1} },
4129 .block_erase = spi_block_erase_c7,
4130 }
4131 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004132 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004133 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004134 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00004135 },
4136
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004137 {
4138 .vendor = "Numonyx",
4139 .name = "M25PE40",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004140 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004141 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00004142 .model_id = ST_M25PE40,
Sean Nelson5643c072010-01-19 03:23:07 +00004143 .total_size = 512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004144 .page_size = 256,
4145 .tested = TEST_UNTESTED,
4146 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004147 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00004148 .block_erasers =
4149 {
4150 {
4151 .eraseblocks = { {4 * 1024, 128} },
4152 .block_erase = spi_block_erase_20,
4153 }, {
4154 .eraseblocks = { {64 * 1024, 8} },
4155 .block_erase = spi_block_erase_d8,
4156 }, {
4157 .eraseblocks = { {512 * 1024, 1} },
4158 .block_erase = spi_block_erase_c7,
4159 }
4160 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004161 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004162 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004163 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00004164 },
4165
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004166 {
4167 .vendor = "Numonyx",
4168 .name = "M25PE80",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004169 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004170 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00004171 .model_id = ST_M25PE80,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004172 .total_size = 1024,
4173 .page_size = 256,
4174 .tested = TEST_OK_PREW,
4175 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004176 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00004177 .block_erasers =
4178 {
4179 {
4180 .eraseblocks = { {4 * 1024, 256} },
4181 .block_erase = spi_block_erase_20,
4182 }, {
4183 .eraseblocks = { {64 * 1024, 16} },
4184 .block_erase = spi_block_erase_d8,
4185 }, {
4186 .eraseblocks = { {1024 * 1024, 1} },
4187 .block_erase = spi_block_erase_c7,
4188 }
4189 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004190 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004191 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004192 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00004193 },
4194
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004195 {
4196 .vendor = "Numonyx",
4197 .name = "M25PE16",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004198 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004199 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00004200 .model_id = ST_M25PE16,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004201 .total_size = 2048,
4202 .page_size = 256,
4203 .tested = TEST_UNTESTED,
4204 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004205 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00004206 .block_erasers =
4207 {
4208 {
4209 .eraseblocks = { {4 * 1024, 512} },
4210 .block_erase = spi_block_erase_20,
4211 }, {
4212 .eraseblocks = { {64 * 1024, 32} },
4213 .block_erase = spi_block_erase_d8,
4214 }, {
4215 .eraseblocks = { {2 * 1024 * 1024, 1} },
4216 .block_erase = spi_block_erase_c7,
4217 }
4218 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004219 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004220 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004221 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00004222 },
4223
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004224 {
4225 .vendor = "PMC",
4226 .name = "Pm25LV010",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004227 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004228 .manufacture_id = PMC_ID,
4229 .model_id = PMC_25LV010,
4230 .total_size = 128,
4231 .page_size = 256,
4232 .tested = TEST_UNTESTED,
4233 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004234 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00004235 .block_erasers =
4236 {
4237 {
4238 .eraseblocks = { {4 * 1024, 32} },
4239 .block_erase = spi_block_erase_d7,
4240 }, {
4241 .eraseblocks = { {32 * 1024, 4} },
4242 .block_erase = spi_block_erase_d8,
4243 }, {
4244 .eraseblocks = { {128 * 1024, 1} },
4245 .block_erase = spi_block_erase_c7,
4246 }
4247 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004248 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004249 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004250 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00004251 },
4252
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004253 {
4254 .vendor = "PMC",
4255 .name = "Pm25LV016B",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004256 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004257 .manufacture_id = PMC_ID,
4258 .model_id = PMC_25LV016B,
4259 .total_size = 2048,
4260 .page_size = 256,
4261 .tested = TEST_UNTESTED,
4262 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004263 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00004264 .block_erasers =
4265 {
4266 {
4267 .eraseblocks = { {4 * 1024, 512} },
4268 .block_erase = spi_block_erase_d7,
4269 }, {
4270 .eraseblocks = { {4 * 1024, 512} },
4271 .block_erase = spi_block_erase_20,
4272 }, {
4273 .eraseblocks = { {64 * 1024, 32} },
4274 .block_erase = spi_block_erase_d8,
4275 }, {
4276 .eraseblocks = { {2 * 1024 * 1024, 1} },
4277 .block_erase = spi_block_erase_60,
4278 }, {
4279 .eraseblocks = { {2 * 1024 * 1024, 1} },
4280 .block_erase = spi_block_erase_c7,
4281 }
4282 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004283 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004284 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004285 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00004286 },
4287
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004288 {
4289 .vendor = "PMC",
4290 .name = "Pm25LV020",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004291 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004292 .manufacture_id = PMC_ID,
4293 .model_id = PMC_25LV020,
4294 .total_size = 256,
4295 .page_size = 256,
4296 .tested = TEST_UNTESTED,
4297 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004298 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00004299 .block_erasers =
4300 {
4301 {
4302 .eraseblocks = { {4 * 1024, 64} },
4303 .block_erase = spi_block_erase_d7,
4304 }, {
4305 .eraseblocks = { {64 * 1024, 4} },
4306 .block_erase = spi_block_erase_d8,
4307 }, {
4308 .eraseblocks = { {256 * 1024, 1} },
4309 .block_erase = spi_block_erase_c7,
4310 }
4311 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004312 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004313 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004314 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00004315 },
4316
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004317 {
4318 .vendor = "PMC",
4319 .name = "Pm25LV040",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004320 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004321 .manufacture_id = PMC_ID,
4322 .model_id = PMC_25LV040,
4323 .total_size = 512,
4324 .page_size = 256,
4325 .tested = TEST_UNTESTED,
4326 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004327 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00004328 .block_erasers =
4329 {
4330 {
4331 .eraseblocks = { {4 * 1024, 128} },
4332 .block_erase = spi_block_erase_d7,
4333 }, {
4334 .eraseblocks = { {64 * 1024, 8} },
4335 .block_erase = spi_block_erase_d8,
4336 }, {
4337 .eraseblocks = { {512 * 1024, 1} },
4338 .block_erase = spi_block_erase_c7,
4339 }
4340 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004341 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004342 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004343 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00004344 },
4345
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004346 {
4347 .vendor = "PMC",
4348 .name = "Pm25LV080B",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004349 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004350 .manufacture_id = PMC_ID,
4351 .model_id = PMC_25LV080B,
4352 .total_size = 1024,
4353 .page_size = 256,
4354 .tested = TEST_UNTESTED,
4355 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004356 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00004357 .block_erasers =
4358 {
4359 {
4360 .eraseblocks = { {4 * 1024, 256} },
4361 .block_erase = spi_block_erase_d7,
4362 }, {
4363 .eraseblocks = { {4 * 1024, 256} },
4364 .block_erase = spi_block_erase_20,
4365 }, {
4366 .eraseblocks = { {64 * 1024, 16} },
4367 .block_erase = spi_block_erase_d8,
4368 }, {
4369 .eraseblocks = { {1024 * 1024, 1} },
4370 .block_erase = spi_block_erase_60,
4371 }, {
4372 .eraseblocks = { {1024 * 1024, 1} },
4373 .block_erase = spi_block_erase_c7,
4374 }
4375 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004376 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004377 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004378 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00004379 },
4380
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004381 {
4382 .vendor = "PMC",
4383 .name = "Pm25LV512",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004384 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004385 .manufacture_id = PMC_ID,
4386 .model_id = PMC_25LV512,
4387 .total_size = 64,
4388 .page_size = 256,
4389 .tested = TEST_UNTESTED,
4390 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004391 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00004392 .block_erasers =
4393 {
4394 {
4395 .eraseblocks = { {4 * 1024, 16} },
4396 .block_erase = spi_block_erase_d7,
4397 }, {
4398 .eraseblocks = { {32 * 1024, 2} },
4399 .block_erase = spi_block_erase_d8,
4400 }, {
4401 .eraseblocks = { {64 * 1024, 1} },
4402 .block_erase = spi_block_erase_c7,
4403 }
4404 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004405 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004406 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004407 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00004408 },
4409
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004410 {
4411 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00004412 .name = "Pm29F002T",
Uwe Hermannf983d9f2009-06-14 21:53:26 +00004413 .bustype = CHIP_BUSTYPE_PARALLEL,
4414 .manufacture_id = PMC_ID_NOPREFIX,
4415 .model_id = PMC_29F002T,
4416 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00004417 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004418 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
4419 .tested = TEST_UNTESTED,
4420 .probe = probe_jedec,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00004421 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00004422 .block_erasers =
4423 {
4424 {
4425 .eraseblocks = {
4426 {128 * 1024, 1},
4427 {96 * 1024, 1},
4428 {8 * 1024, 2},
4429 {16 * 1024, 1},
4430 },
Sean Nelson35727f72010-01-28 23:55:12 +00004431 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00004432 }, {
4433 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004434 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00004435 },
4436 },
Sean Nelson35727f72010-01-28 23:55:12 +00004437 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00004438 .read = read_memmapped,
4439 },
4440
4441 {
4442 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00004443 .name = "Pm29F002B",
Uwe Hermannf983d9f2009-06-14 21:53:26 +00004444 .bustype = CHIP_BUSTYPE_PARALLEL,
4445 .manufacture_id = PMC_ID_NOPREFIX,
4446 .model_id = PMC_29F002B,
4447 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00004448 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004449 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00004450 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00004451 .probe = probe_jedec,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00004452 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00004453 .block_erasers =
4454 {
4455 {
4456 .eraseblocks = {
4457 {16 * 1024, 1},
4458 {8 * 1024, 2},
4459 {96 * 1024, 1},
4460 {128 * 1024, 1},
4461 },
Sean Nelson35727f72010-01-28 23:55:12 +00004462 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00004463 }, {
4464 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004465 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00004466 },
4467 },
Sean Nelson35727f72010-01-28 23:55:12 +00004468 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00004469 .read = read_memmapped,
4470 },
4471
4472 {
4473 .vendor = "PMC",
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00004474 .name = "Pm39LV010",
Urja Rannikko038a3122009-06-28 19:19:25 +00004475 .bustype = CHIP_BUSTYPE_PARALLEL,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00004476 .manufacture_id = PMC_ID_NOPREFIX,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00004477 .model_id = PMC_39F010, /* Pm39LV010 and Pm39F010 have identical IDs but different voltage */
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00004478 .total_size = 128,
4479 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00004480 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Uwe Hermannea5425b2010-05-30 17:00:19 +00004481 .tested = TEST_OK_PREW,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00004482 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004483 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson5643c072010-01-19 03:23:07 +00004484 .block_erasers =
4485 {
4486 {
4487 .eraseblocks = { {4 * 1024, 32} },
4488 .block_erase = erase_sector_jedec,
4489 }, {
4490 .eraseblocks = { {64 * 1024, 2} },
4491 .block_erase = erase_block_jedec,
4492 }, {
4493 .eraseblocks = { {128 * 1024, 1} },
4494 .block_erase = erase_chip_block_jedec,
4495 }
4496 },
Sean Nelson35727f72010-01-28 23:55:12 +00004497 .write = write_jedec_1,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00004498 .read = read_memmapped,
4499 },
4500
4501 {
4502 .vendor = "PMC",
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00004503 .name = "Pm39LV020",
4504 .bustype = CHIP_BUSTYPE_PARALLEL,
4505 .manufacture_id = PMC_ID_NOPREFIX,
4506 .model_id = PMC_39LV020,
4507 .total_size = 256,
4508 .page_size = 4096,
4509 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
4510 .tested = TEST_UNTESTED,
4511 .probe = probe_jedec,
4512 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4513 .block_erasers =
4514 {
4515 {
4516 .eraseblocks = { {4 * 1024, 64} },
4517 .block_erase = erase_sector_jedec,
4518 }, {
4519 .eraseblocks = { {64 * 1024, 4} },
4520 .block_erase = erase_block_jedec,
4521 }, {
4522 .eraseblocks = { {256 * 1024, 1} },
4523 .block_erase = erase_chip_block_jedec,
4524 }
4525 },
4526 .write = write_jedec_1,
4527 .read = read_memmapped,
4528 },
4529
4530 {
4531 .vendor = "PMC",
4532 .name = "Pm39LV040",
4533 .bustype = CHIP_BUSTYPE_PARALLEL,
4534 .manufacture_id = PMC_ID_NOPREFIX,
4535 .model_id = PMC_39LV040,
4536 .total_size = 512,
4537 .page_size = 4096,
4538 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
4539 .tested = TEST_UNTESTED,
4540 .probe = probe_jedec,
4541 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4542 .block_erasers =
4543 {
4544 {
4545 .eraseblocks = { {4 * 1024, 128} },
4546 .block_erase = erase_sector_jedec,
4547 }, {
4548 .eraseblocks = { {64 * 1024, 8} },
4549 .block_erase = erase_block_jedec,
4550 }, {
4551 .eraseblocks = { {512 * 1024, 1} },
4552 .block_erase = erase_chip_block_jedec,
4553 }
4554 },
4555 .write = write_jedec_1,
4556 .read = read_memmapped,
4557 },
4558
4559 {
4560 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004561 .name = "Pm49FL002",
Sean Nelson35727f72010-01-28 23:55:12 +00004562 .bustype = CHIP_BUSTYPE_LPC | CHIP_BUSTYPE_FWH, /* A/A Mux*/
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004563 .manufacture_id = PMC_ID_NOPREFIX,
4564 .model_id = PMC_49FL002,
4565 .total_size = 256,
4566 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004567 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Russ Dill8c7c4682010-03-09 16:53:06 +00004568 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00004569 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004570 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00004571 .block_erasers =
4572 {
4573 {
4574 .eraseblocks = { {4 * 1024, 64} },
4575 .block_erase = erase_sector_jedec,
4576 }, {
4577 .eraseblocks = { {16 * 1024, 16} },
4578 .block_erase = erase_block_jedec,
4579 }, {
4580 .eraseblocks = { {256 * 1024, 1} },
4581 .block_erase = erase_chip_block_jedec,
4582 }
4583 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00004584 .unlock = unlock_49fl00x,
Sean Nelson36172342010-02-27 18:01:15 +00004585 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004586 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00004587 },
4588
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004589 {
4590 .vendor = "PMC",
4591 .name = "Pm49FL004",
Sean Nelson35727f72010-01-28 23:55:12 +00004592 .bustype = CHIP_BUSTYPE_LPC | CHIP_BUSTYPE_FWH, /* A/A Mux*/
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004593 .manufacture_id = PMC_ID_NOPREFIX,
4594 .model_id = PMC_49FL004,
4595 .total_size = 512,
4596 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004597 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Uwe Hermann8d341b52010-05-25 23:27:44 +00004598 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00004599 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004600 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00004601 .block_erasers =
4602 {
4603 {
4604 .eraseblocks = { {4 * 1024, 128} },
4605 .block_erase = erase_sector_jedec,
4606 }, {
4607 .eraseblocks = { {64 * 1024, 8} },
4608 .block_erase = erase_block_jedec,
4609 }, {
4610 .eraseblocks = { {512 * 1024, 1} },
4611 .block_erase = erase_chip_block_jedec,
4612 }
4613 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00004614 .unlock = unlock_49fl00x,
Sean Nelson36172342010-02-27 18:01:15 +00004615 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004616 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00004617 },
4618
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004619 {
Sean Nelsond70b09c2009-11-24 02:11:08 +00004620 .vendor = "Sanyo",
4621 .name = "LF25FW203A",
4622 .bustype = CHIP_BUSTYPE_SPI,
4623 .manufacture_id = SANYO_ID,
4624 .model_id = SANYO_LE25FW203A,
4625 .total_size = 2048,
4626 .page_size = 256,
4627 .tested = TEST_UNTESTED,
4628 .probe = probe_spi_rdid,
4629 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00004630 .block_erasers =
4631 {
4632 {
4633 .eraseblocks = { {64 * 1024, 32} },
4634 .block_erase = spi_block_erase_d8,
4635 }, {
4636 .eraseblocks = { {2 * 1024 * 1024, 1} },
4637 .block_erase = spi_block_erase_c7,
4638 }
4639 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004640 .unlock = spi_disable_blockprotect,
Sean Nelsond70b09c2009-11-24 02:11:08 +00004641 .write = spi_chip_write_256,
4642 .read = spi_chip_read,
4643 },
4644
4645 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004646 .vendor = "Sharp",
4647 .name = "LHF00L04",
Urja Rannikko038a3122009-06-28 19:19:25 +00004648 .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004649 .manufacture_id = SHARP_ID,
4650 .model_id = SHARP_LHF00L04,
4651 .total_size = 1024,
4652 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00004653 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004654 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00004655 .probe = probe_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00004656 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00004657 .block_erasers =
4658 {
4659 {
4660 .eraseblocks = {
4661 {64 * 1024, 15},
4662 {8 * 1024, 8}
4663 },
Sean Nelson28accc22010-03-19 18:47:06 +00004664 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00004665 }, {
4666 .eraseblocks = {
4667 {1024 * 1024, 1}
4668 },
Sean Nelson51c83fb2010-01-20 20:55:53 +00004669 .block_erase = NULL, /* 30 D0, only in A/A mux mode */
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00004670 },
4671 },
Sean Nelson28accc22010-03-19 18:47:06 +00004672 .unlock = unlock_82802ab,
4673 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004674 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00004675 },
4676
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004677 {
4678 .vendor = "Spansion",
Michael Karcher23ff4602010-01-12 23:29:30 +00004679 .name = "S25FL008A",
4680 .bustype = CHIP_BUSTYPE_SPI,
4681 .manufacture_id = SPANSION_ID,
4682 .model_id = SPANSION_S25FL008A,
4683 .total_size = 1024,
4684 .page_size = 256,
4685 .tested = TEST_OK_PREW,
4686 .probe = probe_spi_rdid,
4687 .probe_timing = TIMING_ZERO,
Michael Karcher23ff4602010-01-12 23:29:30 +00004688 .block_erasers =
4689 {
4690 {
4691 .eraseblocks = { {64 * 1024, 16} },
4692 .block_erase = spi_block_erase_d8,
4693 }, {
4694 .eraseblocks = { {1024 * 1024, 1} },
4695 .block_erase = spi_block_erase_c7,
4696 }
4697 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004698 .unlock = spi_disable_blockprotect,
Michael Karcher23ff4602010-01-12 23:29:30 +00004699 .write = spi_chip_write_256,
4700 .read = spi_chip_read,
4701 },
4702
4703 {
4704 .vendor = "Spansion",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004705 .name = "S25FL016A",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004706 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004707 .manufacture_id = SPANSION_ID,
4708 .model_id = SPANSION_S25FL016A,
4709 .total_size = 2048,
4710 .page_size = 256,
Sean Nelson5643c072010-01-19 03:23:07 +00004711 .tested = TEST_OK_PRW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004712 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004713 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00004714 .block_erasers =
4715 {
4716 {
4717 .eraseblocks = { {64 * 1024, 32} },
4718 .block_erase = spi_block_erase_d8,
4719 }, {
4720 .eraseblocks = { {2 * 1024 * 1024, 1} },
4721 .block_erase = spi_block_erase_c7,
4722 }
4723 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004724 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004725 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004726 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00004727 },
4728
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004729 {
4730 .vendor = "SST",
4731 .name = "SST25VF016B",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004732 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004733 .manufacture_id = SST_ID,
4734 .model_id = SST_25VF016B,
4735 .total_size = 2048,
4736 .page_size = 256,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00004737 .tested = TEST_OK_PRW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004738 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004739 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00004740 .block_erasers =
4741 {
4742 {
4743 .eraseblocks = { {4 * 1024, 512} },
4744 .block_erase = spi_block_erase_20,
4745 }, {
4746 .eraseblocks = { {32 * 1024, 64} },
4747 .block_erase = spi_block_erase_52,
4748 }, {
4749 .eraseblocks = { {64 * 1024, 32} },
4750 .block_erase = spi_block_erase_d8,
4751 }, {
4752 .eraseblocks = { {2 * 1024 * 1024, 1} },
4753 .block_erase = spi_block_erase_60,
4754 }, {
4755 .eraseblocks = { {2 * 1024 * 1024, 1} },
4756 .block_erase = spi_block_erase_c7,
4757 },
4758 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004759 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger93bb3752009-05-13 22:19:12 +00004760 .write = spi_chip_write_1,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004761 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00004762 },
4763
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004764 {
4765 .vendor = "SST",
4766 .name = "SST25VF032B",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004767 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004768 .manufacture_id = SST_ID,
4769 .model_id = SST_25VF032B,
4770 .total_size = 4096,
4771 .page_size = 256,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00004772 .tested = TEST_OK_PRW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004773 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004774 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00004775 .block_erasers =
4776 {
4777 {
4778 .eraseblocks = { {4 * 1024, 1024} },
4779 .block_erase = spi_block_erase_20,
4780 }, {
4781 .eraseblocks = { {32 * 1024, 128} },
4782 .block_erase = spi_block_erase_52,
4783 }, {
4784 .eraseblocks = { {64 * 1024, 64} },
4785 .block_erase = spi_block_erase_d8,
4786 }, {
4787 .eraseblocks = { {4 * 1024 * 1024, 1} },
4788 .block_erase = spi_block_erase_60,
4789 }, {
4790 .eraseblocks = { {4 * 1024 * 1024, 1} },
4791 .block_erase = spi_block_erase_c7,
4792 },
4793 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004794 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00004795 .write = spi_chip_write_1,
4796 .read = spi_chip_read,
4797 },
4798
4799 {
4800 .vendor = "SST",
Ed Swierk86f4e6d2010-07-21 15:02:22 +00004801 .name = "SST25VF064C",
4802 .bustype = CHIP_BUSTYPE_SPI,
4803 .manufacture_id = SST_ID,
4804 .model_id = SST_25VF064C,
4805 .total_size = 8192,
4806 .page_size = 256,
4807 .tested = TEST_OK_PREW,
4808 .probe = probe_spi_rdid,
4809 .probe_timing = TIMING_ZERO,
4810 .block_erasers =
4811 {
4812 {
4813 .eraseblocks = { {4 * 1024, 2048} },
4814 .block_erase = spi_block_erase_20,
4815 }, {
4816 .eraseblocks = { {32 * 1024, 256} },
4817 .block_erase = spi_block_erase_52,
4818 }, {
4819 .eraseblocks = { {64 * 1024, 128} },
4820 .block_erase = spi_block_erase_d8,
4821 }, {
4822 .eraseblocks = { {8 * 1024 * 1024, 1} },
4823 .block_erase = spi_block_erase_60,
4824 }, {
4825 .eraseblocks = { {8 * 1024 * 1024, 1} },
4826 .block_erase = spi_block_erase_c7,
4827 },
4828 },
4829 .unlock = spi_disable_blockprotect,
4830 .write = spi_chip_write_1,
4831 .read = spi_chip_read,
4832 },
4833
4834 {
4835 .vendor = "SST",
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00004836 .name = "SST25VF040.REMS",
4837 .bustype = CHIP_BUSTYPE_SPI,
4838 .manufacture_id = SST_ID,
4839 .model_id = SST_25VF040_REMS,
4840 .total_size = 512,
4841 .page_size = 256,
4842 .tested = TEST_OK_PR,
4843 .probe = probe_spi_rems,
4844 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00004845 .block_erasers =
4846 {
4847 {
4848 .eraseblocks = { {4 * 1024, 128} },
4849 .block_erase = spi_block_erase_20,
4850 }, {
4851 .eraseblocks = { {32 * 1024, 16} },
4852 .block_erase = spi_block_erase_52,
4853 }, {
4854 .eraseblocks = { {512 * 1024, 1} },
4855 .block_erase = spi_block_erase_60,
4856 },
4857 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004858 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger93bb3752009-05-13 22:19:12 +00004859 .write = spi_chip_write_1,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004860 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00004861 },
4862
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004863 {
4864 .vendor = "SST",
4865 .name = "SST25VF040B",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004866 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004867 .manufacture_id = SST_ID,
4868 .model_id = SST_25VF040B,
4869 .total_size = 512,
4870 .page_size = 256,
4871 .tested = TEST_UNTESTED,
4872 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004873 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00004874 .block_erasers =
4875 {
4876 {
4877 .eraseblocks = { {4 * 1024, 128} },
4878 .block_erase = spi_block_erase_20,
4879 }, {
4880 .eraseblocks = { {32 * 1024, 16} },
4881 .block_erase = spi_block_erase_52,
4882 }, {
4883 .eraseblocks = { {64 * 1024, 8} },
4884 .block_erase = spi_block_erase_d8,
4885 }, {
4886 .eraseblocks = { {512 * 1024, 1} },
4887 .block_erase = spi_block_erase_60,
4888 }, {
4889 .eraseblocks = { {512 * 1024, 1} },
4890 .block_erase = spi_block_erase_c7,
4891 },
4892 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004893 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger93bb3752009-05-13 22:19:12 +00004894 .write = spi_chip_write_1,
Zheng Bao0677dff2009-02-25 08:07:33 +00004895 .read = spi_chip_read,
4896 },
4897
4898 {
4899 .vendor = "SST",
Stefan Reinauer5cacf8c2010-06-14 12:58:06 +00004900 .name = "SST25LF040A.RES",
4901 .bustype = CHIP_BUSTYPE_SPI,
4902 .manufacture_id = SST_ID,
4903 .model_id = SST_25VF040_REMS,
4904 .total_size = 512,
4905 .page_size = 256,
4906 .tested = TEST_OK_PROBE,
4907 .probe = probe_spi_res2,
4908 .probe_timing = TIMING_ZERO,
4909 .block_erasers =
4910 {
4911 {
4912 .eraseblocks = { {4 * 1024, 128} },
4913 .block_erase = spi_block_erase_20,
4914 }, {
4915 .eraseblocks = { {32 * 1024, 16} },
4916 .block_erase = spi_block_erase_52,
4917 }, {
4918 .eraseblocks = { {512 * 1024, 1} },
4919 .block_erase = spi_block_erase_60,
4920 },
4921 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004922 .unlock = spi_disable_blockprotect,
Stefan Reinauer5cacf8c2010-06-14 12:58:06 +00004923 .write = spi_chip_write_1,
4924 .read = spi_chip_read,
4925 },
4926
4927 {
4928 .vendor = "SST",
Peter Stugefd9217d2009-01-26 03:37:40 +00004929 .name = "SST25VF040B.REMS",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004930 .bustype = CHIP_BUSTYPE_SPI,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00004931 .manufacture_id = SST_ID,
4932 .model_id = SST_25VF040B_REMS,
Peter Stugefd9217d2009-01-26 03:37:40 +00004933 .total_size = 512,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00004934 .page_size = 256,
Peter Stugefd9217d2009-01-26 03:37:40 +00004935 .tested = TEST_OK_PR,
4936 .probe = probe_spi_rems,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004937 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00004938 .block_erasers =
4939 {
4940 {
4941 .eraseblocks = { {4 * 1024, 128} },
4942 .block_erase = spi_block_erase_20,
4943 }, {
4944 .eraseblocks = { {32 * 1024, 16} },
4945 .block_erase = spi_block_erase_52,
4946 }, {
4947 .eraseblocks = { {64 * 1024, 8} },
4948 .block_erase = spi_block_erase_d8,
4949 }, {
4950 .eraseblocks = { {512 * 1024, 1} },
4951 .block_erase = spi_block_erase_60,
4952 }, {
4953 .eraseblocks = { {512 * 1024, 1} },
4954 .block_erase = spi_block_erase_c7,
4955 },
4956 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004957 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger93bb3752009-05-13 22:19:12 +00004958 .write = spi_chip_write_1,
Peter Stugefd9217d2009-01-26 03:37:40 +00004959 .read = spi_chip_read,
4960 },
4961
4962 {
4963 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004964 .name = "SST25VF080B",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004965 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004966 .manufacture_id = SST_ID,
4967 .model_id = SST_25VF080B,
4968 .total_size = 1024,
4969 .page_size = 256,
Uwe Hermannc2521ab2010-07-29 22:39:47 +00004970 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004971 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004972 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00004973 .block_erasers =
4974 {
4975 {
4976 .eraseblocks = { {4 * 1024, 256} },
4977 .block_erase = spi_block_erase_20,
4978 }, {
4979 .eraseblocks = { {32 * 1024, 32} },
4980 .block_erase = spi_block_erase_52,
4981 }, {
4982 .eraseblocks = { {64 * 1024, 16} },
4983 .block_erase = spi_block_erase_d8,
4984 }, {
4985 .eraseblocks = { {1024 * 1024, 1} },
4986 .block_erase = spi_block_erase_60,
4987 }, {
4988 .eraseblocks = { {1024 * 1024, 1} },
4989 .block_erase = spi_block_erase_c7,
4990 },
4991 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004992 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004993 .write = spi_chip_write_1,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004994 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00004995 },
4996
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004997 {
4998 .vendor = "SST",
4999 .name = "SST28SF040A",
Urja Rannikko038a3122009-06-28 19:19:25 +00005000 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005001 .manufacture_id = SST_ID,
5002 .model_id = SST_28SF040,
5003 .total_size = 512,
5004 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00005005 .feature_bits = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005006 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005007 .probe = probe_82802ab,
Maciej Pijankac6e11112009-06-03 14:46:22 +00005008 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (sst28sf040.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00005009 .block_erasers =
5010 {
5011 {
5012 .eraseblocks = { {128, 4096} },
5013 .block_erase = erase_sector_28sf040,
5014 }, {
5015 .eraseblocks = { {512 * 1024, 1} },
5016 .block_erase = erase_chip_28sf040,
5017 }
5018 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005019 .write = write_28sf040,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005020 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00005021 },
5022
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005023 {
5024 .vendor = "SST",
5025 .name = "SST29EE010",
Urja Rannikko038a3122009-06-28 19:19:25 +00005026 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005027 .manufacture_id = SST_ID,
5028 .model_id = SST_29EE010,
5029 .total_size = 128,
5030 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00005031 .feature_bits = FEATURE_LONG_RESET,
Uwe Hermann60939692010-03-17 00:05:59 +00005032 .tested = TEST_OK_PRW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005033 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005034 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00005035 .block_erasers =
5036 {
5037 {
5038 .eraseblocks = { {128 * 1024, 1} },
5039 .block_erase = erase_chip_block_jedec,
5040 }
5041 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005042 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005043 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00005044 },
5045
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005046 {
5047 .vendor = "SST",
5048 .name = "SST29LE010",
Urja Rannikko038a3122009-06-28 19:19:25 +00005049 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005050 .manufacture_id = SST_ID,
5051 .model_id = SST_29LE010,
5052 .total_size = 128,
5053 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00005054 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005055 .tested = TEST_UNTESTED,
5056 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005057 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00005058 .block_erasers =
5059 {
5060 {
5061 .eraseblocks = { {128 * 1024, 1} },
5062 .block_erase = erase_chip_block_jedec,
5063 }
5064 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005065 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005066 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00005067 },
5068
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005069 {
5070 .vendor = "SST",
5071 .name = "SST29EE020A",
Urja Rannikko038a3122009-06-28 19:19:25 +00005072 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005073 .manufacture_id = SST_ID,
5074 .model_id = SST_29EE020A,
5075 .total_size = 256,
5076 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00005077 .feature_bits = FEATURE_LONG_RESET,
Uwe Hermannea5425b2010-05-30 17:00:19 +00005078 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005079 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005080 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00005081 .block_erasers =
5082 {
5083 {
5084 .eraseblocks = { {256 * 1024, 1} },
5085 .block_erase = erase_chip_block_jedec,
5086 }
5087 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005088 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005089 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00005090 },
5091
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005092 {
5093 .vendor = "SST",
5094 .name = "SST29LE020",
Urja Rannikko038a3122009-06-28 19:19:25 +00005095 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005096 .manufacture_id = SST_ID,
5097 .model_id = SST_29LE020,
5098 .total_size = 256,
5099 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00005100 .feature_bits = FEATURE_LONG_RESET,
Michael Karcher98eff462010-03-24 22:55:56 +00005101 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005102 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005103 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00005104 .block_erasers =
5105 {
5106 {
5107 .eraseblocks = { {256 * 1024, 1} },
5108 .block_erase = erase_chip_block_jedec,
5109 }
5110 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005111 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005112 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00005113 },
5114
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005115 {
5116 .vendor = "SST",
Uwe Hermann48da3f92010-01-23 15:15:19 +00005117 .name = "SST39SF512",
5118 .bustype = CHIP_BUSTYPE_PARALLEL,
5119 .manufacture_id = SST_ID,
5120 .model_id = SST_39SF512,
5121 .total_size = 64,
5122 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00005123 .feature_bits = FEATURE_EITHER_RESET,
5124 .tested = TEST_UNTESTED,
Uwe Hermann48da3f92010-01-23 15:15:19 +00005125 .probe = probe_jedec,
5126 .probe_timing = 1, /* 150 ns */
Uwe Hermann48da3f92010-01-23 15:15:19 +00005127 .block_erasers =
5128 {
5129 {
5130 .eraseblocks = { {4 * 1024, 16} },
5131 .block_erase = erase_sector_jedec,
5132 }, {
5133 .eraseblocks = { {64 * 1024, 1} },
5134 .block_erase = erase_chip_block_jedec,
5135 }
5136 },
Sean Nelson35727f72010-01-28 23:55:12 +00005137 .write = write_jedec_1,
Uwe Hermann48da3f92010-01-23 15:15:19 +00005138 .read = read_memmapped,
5139 },
5140
5141 {
5142 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005143 .name = "SST39SF010A",
Urja Rannikko038a3122009-06-28 19:19:25 +00005144 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005145 .manufacture_id = SST_ID,
5146 .model_id = SST_39SF010,
5147 .total_size = 128,
5148 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00005149 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann60939692010-03-17 00:05:59 +00005150 .tested = TEST_OK_PRW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005151 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005152 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00005153 .block_erasers =
5154 {
5155 {
5156 .eraseblocks = { {4 * 1024, 32} },
5157 .block_erase = erase_sector_jedec,
5158 }, {
5159 .eraseblocks = { {128 * 1024, 1} },
5160 .block_erase = erase_chip_block_jedec,
5161 }
5162 },
Sean Nelson35727f72010-01-28 23:55:12 +00005163 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005164 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00005165 },
5166
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005167 {
5168 .vendor = "SST",
5169 .name = "SST39SF020A",
Urja Rannikko038a3122009-06-28 19:19:25 +00005170 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005171 .manufacture_id = SST_ID,
5172 .model_id = SST_39SF020,
5173 .total_size = 256,
5174 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00005175 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann51afebb2010-08-01 00:13:49 +00005176 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005177 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005178 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00005179 .block_erasers =
5180 {
5181 {
5182 .eraseblocks = { {4 * 1024, 64} },
5183 .block_erase = erase_sector_jedec,
5184 }, {
5185 .eraseblocks = { {256 * 1024, 1} },
5186 .block_erase = erase_chip_block_jedec,
5187 }
5188 },
Sean Nelson35727f72010-01-28 23:55:12 +00005189 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005190 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00005191 },
5192
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005193 {
5194 .vendor = "SST",
5195 .name = "SST39SF040",
Urja Rannikko038a3122009-06-28 19:19:25 +00005196 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005197 .manufacture_id = SST_ID,
5198 .model_id = SST_39SF040,
5199 .total_size = 512,
5200 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00005201 .feature_bits = FEATURE_EITHER_RESET,
5202 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005203 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005204 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00005205 .block_erasers =
5206 {
5207 {
5208 .eraseblocks = { {4 * 1024, 128} },
5209 .block_erase = erase_sector_jedec,
5210 }, {
5211 .eraseblocks = { {512 * 1024, 1} },
5212 .block_erase = erase_chip_block_jedec,
5213 }
5214 },
Sean Nelson35727f72010-01-28 23:55:12 +00005215 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005216 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00005217 },
5218
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005219 {
5220 .vendor = "SST",
5221 .name = "SST39VF512",
Urja Rannikko038a3122009-06-28 19:19:25 +00005222 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005223 .manufacture_id = SST_ID,
5224 .model_id = SST_39VF512,
5225 .total_size = 64,
5226 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00005227 .feature_bits = FEATURE_EITHER_RESET,
5228 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005229 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005230 .probe_timing = 1, /* 150 ns*/
Sean Nelson51c83fb2010-01-20 20:55:53 +00005231 .block_erasers =
5232 {
5233 {
5234 .eraseblocks = { {4 * 1024, 16} },
5235 .block_erase = erase_sector_jedec,
5236 }, {
5237 .eraseblocks = { {64 * 1024, 1} },
5238 .block_erase = erase_chip_block_jedec,
5239 }
5240 },
Sean Nelson35727f72010-01-28 23:55:12 +00005241 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005242 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00005243 },
5244
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005245 {
5246 .vendor = "SST",
5247 .name = "SST39VF010",
Urja Rannikko038a3122009-06-28 19:19:25 +00005248 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005249 .manufacture_id = SST_ID,
5250 .model_id = SST_39VF010,
5251 .total_size = 128,
5252 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00005253 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann51afebb2010-08-01 00:13:49 +00005254 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005255 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005256 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00005257 .block_erasers =
5258 {
5259 {
5260 .eraseblocks = { {4 * 1024, 32} },
5261 .block_erase = erase_sector_jedec,
5262 }, {
5263 .eraseblocks = { {128 * 1024, 1} },
5264 .block_erase = erase_chip_block_jedec,
5265 }
5266 },
Sean Nelson35727f72010-01-28 23:55:12 +00005267 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005268 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00005269 },
5270
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005271 {
5272 .vendor = "SST",
5273 .name = "SST39VF020",
Urja Rannikko038a3122009-06-28 19:19:25 +00005274 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005275 .manufacture_id = SST_ID,
5276 .model_id = SST_39VF020,
5277 .total_size = 256,
5278 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00005279 .feature_bits = FEATURE_EITHER_RESET,
5280 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005281 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005282 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00005283 .block_erasers =
5284 {
5285 {
5286 .eraseblocks = { {4 * 1024, 64} },
5287 .block_erase = erase_sector_jedec,
5288 }, {
5289 .eraseblocks = { {256 * 1024, 1} },
5290 .block_erase = erase_chip_block_jedec,
5291 }
5292 },
Sean Nelson35727f72010-01-28 23:55:12 +00005293 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005294 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00005295 },
5296
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005297 {
5298 .vendor = "SST",
5299 .name = "SST39VF040",
Urja Rannikko038a3122009-06-28 19:19:25 +00005300 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005301 .manufacture_id = SST_ID,
5302 .model_id = SST_39VF040,
5303 .total_size = 512,
5304 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00005305 .feature_bits = FEATURE_EITHER_RESET,
5306 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005307 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005308 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00005309 .block_erasers =
5310 {
5311 {
5312 .eraseblocks = { {4 * 1024, 128} },
5313 .block_erase = erase_sector_jedec,
5314 }, {
5315 .eraseblocks = { {512 * 1024, 1} },
5316 .block_erase = erase_chip_block_jedec,
5317 }
5318 },
Sean Nelson35727f72010-01-28 23:55:12 +00005319 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005320 .read = read_memmapped,
Carl-Daniel Hailfinger90eff152008-12-08 23:51:45 +00005321 },
FENG yu ningff692fb2008-12-08 18:15:10 +00005322
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005323 {
5324 .vendor = "SST",
Peter Stuge8440cc02009-01-25 23:55:12 +00005325 .name = "SST39VF080",
Urja Rannikko038a3122009-06-28 19:19:25 +00005326 .bustype = CHIP_BUSTYPE_PARALLEL,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005327 .manufacture_id = SST_ID,
5328 .model_id = SST_39VF080,
Peter Stuge8440cc02009-01-25 23:55:12 +00005329 .total_size = 1024,
5330 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00005331 .feature_bits = FEATURE_EITHER_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +00005332 .tested = TEST_UNTESTED,
5333 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005334 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00005335 .block_erasers =
5336 {
5337 {
5338 .eraseblocks = { {4 * 1024, 256} },
5339 .block_erase = erase_sector_jedec,
5340 }, {
5341 .eraseblocks = { {64 * 1024, 16} },
5342 .block_erase = erase_block_jedec,
5343 }, {
5344 .eraseblocks = { {1024 * 1024, 1} },
5345 .block_erase = erase_chip_block_jedec,
5346 }
5347 },
Sean Nelson35727f72010-01-28 23:55:12 +00005348 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005349 .read = read_memmapped,
Peter Stuge8440cc02009-01-25 23:55:12 +00005350 },
5351
5352 {
5353 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005354 .name = "SST49LF002A/B",
Urja Rannikko038a3122009-06-28 19:19:25 +00005355 .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005356 .manufacture_id = SST_ID,
5357 .model_id = SST_49LF002A,
5358 .total_size = 256,
5359 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005360 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Uwe Hermannc2521ab2010-07-29 22:39:47 +00005361 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005362 .probe = probe_jedec,
5363 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00005364 .block_erasers =
5365 {
5366 {
5367 .eraseblocks = { {4 * 1024, 64} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00005368 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00005369 }, {
5370 .eraseblocks = { {16 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00005371 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00005372 }, {
5373 .eraseblocks = { {256 * 1024, 1} },
5374 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
5375 }
5376 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005377 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00005378 .unlock = unlock_sst_fwhub,
5379 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005380 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00005381 },
5382
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005383 {
5384 .vendor = "SST",
5385 .name = "SST49LF003A/B",
Urja Rannikko038a3122009-06-28 19:19:25 +00005386 .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005387 .manufacture_id = SST_ID,
5388 .model_id = SST_49LF003A,
5389 .total_size = 384,
5390 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005391 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Peter Lemenkov45835c42009-09-25 01:09:18 +00005392 .tested = TEST_OK_PR,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005393 .probe = probe_jedec,
5394 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00005395 .block_erasers =
5396 {
5397 {
5398 .eraseblocks = { {4 * 1024, 96} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00005399 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00005400 }, {
5401 .eraseblocks = { {64 * 1024, 6} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00005402 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00005403 }, {
5404 .eraseblocks = { {384 * 1024, 1} },
5405 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
5406 }
5407 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005408 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00005409 .unlock = unlock_sst_fwhub,
5410 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005411 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00005412 },
5413
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005414 {
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00005415 /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB)
5416 * and is only honored for 64k block erase, but not 4k sector erase.
5417 */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005418 .vendor = "SST",
5419 .name = "SST49LF004A/B",
Urja Rannikko038a3122009-06-28 19:19:25 +00005420 .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005421 .manufacture_id = SST_ID,
5422 .model_id = SST_49LF004A,
5423 .total_size = 512,
5424 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005425 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005426 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005427 .probe = probe_jedec,
5428 .probe_timing = 1, /* 150 ns */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00005429 .block_erasers =
5430 {
5431 {
5432 .eraseblocks = { {4 * 1024, 128} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00005433 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00005434 }, {
5435 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00005436 .block_erase = erase_block_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00005437 }, {
5438 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson51c83fb2010-01-20 20:55:53 +00005439 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00005440 },
5441 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005442 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00005443 .unlock = unlock_sst_fwhub,
5444 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005445 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00005446 },
5447
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005448 {
5449 .vendor = "SST",
5450 .name = "SST49LF004C",
Urja Rannikko038a3122009-06-28 19:19:25 +00005451 .bustype = CHIP_BUSTYPE_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005452 .manufacture_id = SST_ID,
5453 .model_id = SST_49LF004C,
5454 .total_size = 512,
5455 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005456 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005457 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005458 .probe = probe_82802ab,
Maciej Pijankac6e11112009-06-03 14:46:22 +00005459 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00005460 .block_erasers =
5461 {
5462 {
5463 .eraseblocks = { {4 * 1024, 128} },
5464 .block_erase = erase_sector_49lfxxxc,
5465 }, {
5466 .eraseblocks = {
5467 {64 * 1024, 7},
5468 {32 * 1024, 1},
5469 {8 * 1024, 2},
5470 {16 * 1024, 1},
5471 },
Sean Nelson69e58112010-03-23 17:10:28 +00005472 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00005473 }
5474 },
Sean Nelson69e58112010-03-23 17:10:28 +00005475 .unlock = unlock_49lfxxxc,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005476 .write = write_49lfxxxc,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005477 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00005478 },
5479
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005480 {
5481 .vendor = "SST",
5482 .name = "SST49LF008A",
Urja Rannikko038a3122009-06-28 19:19:25 +00005483 .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005484 .manufacture_id = SST_ID,
5485 .model_id = SST_49LF008A,
5486 .total_size = 1024,
5487 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005488 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Uwe Hermannea5425b2010-05-30 17:00:19 +00005489 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005490 .probe = probe_jedec,
5491 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00005492 .block_erasers =
5493 {
5494 {
5495 .eraseblocks = { {4 * 1024, 256} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00005496 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00005497 }, {
5498 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00005499 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00005500 }, {
5501 .eraseblocks = { {1024 * 1024, 1} },
5502 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
5503 }
5504 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005505 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00005506 .unlock = unlock_sst_fwhub,
5507 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005508 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00005509 },
5510
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005511 {
5512 .vendor = "SST",
5513 .name = "SST49LF008C",
Urja Rannikko038a3122009-06-28 19:19:25 +00005514 .bustype = CHIP_BUSTYPE_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005515 .manufacture_id = SST_ID,
5516 .model_id = SST_49LF008C,
5517 .total_size = 1024,
5518 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005519 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005520 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005521 .probe = probe_82802ab,
Maciej Pijankac6e11112009-06-03 14:46:22 +00005522 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00005523 .block_erasers =
5524 {
5525 {
5526 .eraseblocks = { {4 * 1024, 256} },
5527 .block_erase = erase_sector_49lfxxxc,
5528 }, {
5529 .eraseblocks = {
5530 {64 * 1024, 15},
5531 {32 * 1024, 1},
5532 {8 * 1024, 2},
5533 {16 * 1024, 1},
5534 },
Sean Nelson69e58112010-03-23 17:10:28 +00005535 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00005536 }
5537 },
Sean Nelson69e58112010-03-23 17:10:28 +00005538 .unlock = unlock_49lfxxxc,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005539 .write = write_49lfxxxc,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005540 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00005541 },
5542
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005543 {
5544 .vendor = "SST",
5545 .name = "SST49LF016C",
Urja Rannikko038a3122009-06-28 19:19:25 +00005546 .bustype = CHIP_BUSTYPE_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005547 .manufacture_id = SST_ID,
5548 .model_id = SST_49LF016C,
5549 .total_size = 2048,
5550 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005551 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson51c83fb2010-01-20 20:55:53 +00005552 .tested = TEST_OK_PRW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005553 .probe = probe_82802ab,
Maciej Pijankac6e11112009-06-03 14:46:22 +00005554 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00005555 .block_erasers =
5556 {
5557 {
5558 .eraseblocks = { {4 * 1024, 512} },
5559 .block_erase = erase_sector_49lfxxxc,
5560 }, {
5561 .eraseblocks = {
5562 {64 * 1024, 31},
5563 {32 * 1024, 1},
5564 {8 * 1024, 2},
5565 {16 * 1024, 1},
5566 },
Sean Nelson69e58112010-03-23 17:10:28 +00005567 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00005568 }
5569 },
Sean Nelson69e58112010-03-23 17:10:28 +00005570 .unlock = unlock_49lfxxxc,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005571 .write = write_49lfxxxc,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005572 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00005573 },
5574
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005575 {
5576 .vendor = "SST",
5577 .name = "SST49LF020",
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005578 .bustype = CHIP_BUSTYPE_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005579 .manufacture_id = SST_ID,
5580 .model_id = SST_49LF020,
5581 .total_size = 256,
5582 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005583 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann8d341b52010-05-25 23:27:44 +00005584 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005585 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005586 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00005587 .block_erasers =
5588 {
5589 {
5590 .eraseblocks = { {4 * 1024, 64} },
5591 .block_erase = erase_sector_jedec,
5592 }, {
5593 .eraseblocks = { {16 * 1024, 16} },
5594 .block_erase = erase_block_jedec,
5595 }, {
5596 .eraseblocks = { {256 * 1024, 1} },
5597 .block_erase = NULL,
5598 }
5599 },
Sean Nelson35727f72010-01-28 23:55:12 +00005600 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005601 .read = read_memmapped,
Sven Schnellec208dfb2009-01-07 12:35:09 +00005602 },
5603
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005604 {
5605 .vendor = "SST",
5606 .name = "SST49LF020A",
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005607 .bustype = CHIP_BUSTYPE_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005608 .manufacture_id = SST_ID,
5609 .model_id = SST_49LF020A,
5610 .total_size = 256,
Carl-Daniel Hailfingerda654322009-07-23 01:44:38 +00005611 .page_size = 4 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005612 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann8d341b52010-05-25 23:27:44 +00005613 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005614 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005615 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00005616 .block_erasers =
5617 {
5618 {
5619 .eraseblocks = { {4 * 1024, 64} },
5620 .block_erase = erase_sector_jedec,
5621 }, {
5622 .eraseblocks = { {16 * 1024, 16} },
5623 .block_erase = erase_block_jedec,
5624 }, {
5625 .eraseblocks = { {256 * 1024, 1} },
5626 .block_erase = NULL,
5627 }
5628 },
Sean Nelson35727f72010-01-28 23:55:12 +00005629 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005630 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00005631 },
5632
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005633 {
5634 .vendor = "SST",
5635 .name = "SST49LF040",
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005636 .bustype = CHIP_BUSTYPE_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005637 .manufacture_id = SST_ID,
5638 .model_id = SST_49LF040,
5639 .total_size = 512,
5640 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00005641 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann1e94fa62010-08-08 15:52:07 +00005642 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005643 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005644 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00005645 .block_erasers =
5646 {
5647 {
5648 .eraseblocks = { {4 * 1024, 128} },
5649 .block_erase = erase_sector_jedec,
5650 }, {
5651 .eraseblocks = { {64 * 1024, 8} },
5652 .block_erase = erase_block_jedec,
5653 }, {
5654 .eraseblocks = { {512 * 1024, 1} },
5655 .block_erase = NULL,
5656 }
5657 },
Sean Nelson35727f72010-01-28 23:55:12 +00005658 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005659 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00005660 },
5661
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005662 {
5663 .vendor = "SST",
5664 .name = "SST49LF040B",
Urja Rannikko038a3122009-06-28 19:19:25 +00005665 .bustype = CHIP_BUSTYPE_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005666 .manufacture_id = SST_ID,
5667 .model_id = SST_49LF040B,
5668 .total_size = 512,
5669 .page_size = 64 * 1024,
Joshua Roysa84b0bd2010-08-16 22:12:39 +00005670 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
5671 .tested = TEST_OK_PREW,
Sean Nelson51c83fb2010-01-20 20:55:53 +00005672 .probe = probe_jedec,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005673 .probe_timing = 1, /* 150ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00005674 .block_erasers =
5675 {
5676 {
5677 .eraseblocks = { {4 * 1024, 128} },
5678 .block_erase = erase_sector_jedec,
5679 }, {
5680 .eraseblocks = { {64 * 1024, 8} },
5681 .block_erase = erase_block_jedec,
5682 }, {
5683 .eraseblocks = { {512 * 1024, 1} },
5684 .block_erase = NULL,
5685 }
5686 },
Joshua Roysa84b0bd2010-08-16 22:12:39 +00005687 .unlock = unlock_82802ab,
Sean Nelson35727f72010-01-28 23:55:12 +00005688 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005689 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00005690 },
5691
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005692 {
5693 .vendor = "SST",
5694 .name = "SST49LF080A",
Urja Rannikko038a3122009-06-28 19:19:25 +00005695 .bustype = CHIP_BUSTYPE_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005696 .manufacture_id = SST_ID,
Urja Rannikko038a3122009-06-28 19:19:25 +00005697 .model_id = SST_49LF080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005698 .total_size = 1024,
5699 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00005700 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann8d341b52010-05-25 23:27:44 +00005701 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005702 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00005703 .probe_timing = TIMING_FIXME,
Sean Nelson51c83fb2010-01-20 20:55:53 +00005704 .block_erasers =
5705 {
5706 {
5707 .eraseblocks = { {4 * 1024, 256} },
5708 .block_erase = erase_sector_jedec,
5709 }, {
5710 .eraseblocks = { {64 * 1024, 16} },
5711 .block_erase = erase_block_jedec,
5712 }, {
5713 .eraseblocks = { {1024 * 1024, 1} },
5714 .block_erase = NULL,
5715 }
5716 },
Sean Nelson35727f72010-01-28 23:55:12 +00005717 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005718 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00005719 },
5720
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005721 {
5722 .vendor = "SST",
5723 .name = "SST49LF160C",
Urja Rannikko038a3122009-06-28 19:19:25 +00005724 .bustype = CHIP_BUSTYPE_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005725 .manufacture_id = SST_ID,
5726 .model_id = SST_49LF160C,
5727 .total_size = 2048,
5728 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005729 .feature_bits = FEATURE_REGISTERMAP,
Uwe Hermannc2521ab2010-07-29 22:39:47 +00005730 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005731 .probe = probe_82802ab,
Maciej Pijankac6e11112009-06-03 14:46:22 +00005732 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00005733 .block_erasers =
5734 {
5735 {
5736 .eraseblocks = { {4 * 1024, 512} },
5737 .block_erase = erase_sector_49lfxxxc,
5738 }, {
5739 .eraseblocks = {
5740 {64 * 1024, 31},
5741 {32 * 1024, 1},
5742 {8 * 1024, 2},
5743 {16 * 1024, 1},
5744 },
Sean Nelson69e58112010-03-23 17:10:28 +00005745 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00005746 }
5747 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00005748 .unlock = unlock_49lfxxxc,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005749 .write = write_49lfxxxc,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005750 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00005751 },
5752
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005753 {
5754 .vendor = "ST",
5755 .name = "M25P05-A",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00005756 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005757 .manufacture_id = ST_ID,
5758 .model_id = ST_M25P05A,
5759 .total_size = 64,
5760 .page_size = 256,
5761 .tested = TEST_UNTESTED,
5762 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005763 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00005764 .block_erasers =
5765 {
5766 {
5767 .eraseblocks = { {32 * 1024, 2} },
5768 .block_erase = spi_block_erase_d8,
5769 }, {
5770 .eraseblocks = { {64 * 1024, 1} },
5771 .block_erase = spi_block_erase_c7,
5772 }
5773 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005774 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005775 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005776 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00005777 },
5778
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00005779 /* The ST M25P05 is a bit of a problem. It has the same ID as the
5780 * ST M25P05-A in RES mode, but supports only 128 byte writes instead
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00005781 * of 256 byte writes. We rely heavily on the fact that probe_spi_res1
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00005782 * only is successful if RDID does not work.
5783 */
5784 {
5785 .vendor = "ST",
5786 .name = "M25P05.RES",
5787 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00005788 .manufacture_id = 0, /* Not used. */
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00005789 .model_id = ST_M25P05_RES,
5790 .total_size = 64,
5791 .page_size = 256,
5792 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00005793 .probe = probe_spi_res1,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00005794 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00005795 .block_erasers =
5796 {
5797 {
5798 .eraseblocks = { {32 * 1024, 2} },
5799 .block_erase = spi_block_erase_d8,
5800 }, {
5801 .eraseblocks = { {64 * 1024, 1} },
5802 .block_erase = spi_block_erase_c7,
5803 }
5804 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005805 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00005806 .write = spi_chip_write_1, /* 128 */
5807 .read = spi_chip_read,
5808 },
5809
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005810 {
5811 .vendor = "ST",
5812 .name = "M25P10-A",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00005813 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005814 .manufacture_id = ST_ID,
5815 .model_id = ST_M25P10A,
5816 .total_size = 128,
5817 .page_size = 256,
Uwe Hermann51afebb2010-08-01 00:13:49 +00005818 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005819 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005820 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00005821 .block_erasers =
5822 {
5823 {
5824 .eraseblocks = { {32 * 1024, 4} },
5825 .block_erase = spi_block_erase_d8,
5826 }, {
5827 .eraseblocks = { {128 * 1024, 1} },
5828 .block_erase = spi_block_erase_c7,
5829 }
5830 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005831 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005832 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005833 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00005834 },
5835
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00005836 /* The ST M25P10 has the same problem as the M25P05. */
5837 {
5838 .vendor = "ST",
5839 .name = "M25P10.RES",
5840 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00005841 .manufacture_id = 0, /* Not used. */
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00005842 .model_id = ST_M25P10_RES,
5843 .total_size = 128,
5844 .page_size = 256,
5845 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00005846 .probe = probe_spi_res1,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00005847 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00005848 .block_erasers =
5849 {
5850 {
5851 .eraseblocks = { {32 * 1024, 4} },
5852 .block_erase = spi_block_erase_d8,
5853 }, {
5854 .eraseblocks = { {128 * 1024, 1} },
5855 .block_erase = spi_block_erase_c7,
5856 }
5857 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005858 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00005859 .write = spi_chip_write_1, /* 128 */
5860 .read = spi_chip_read,
5861 },
5862
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005863 {
5864 .vendor = "ST",
5865 .name = "M25P20",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00005866 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005867 .manufacture_id = ST_ID,
5868 .model_id = ST_M25P20,
5869 .total_size = 256,
5870 .page_size = 256,
5871 .tested = TEST_UNTESTED,
5872 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005873 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00005874 .block_erasers =
5875 {
5876 {
5877 .eraseblocks = { {64 * 1024, 4} },
5878 .block_erase = spi_block_erase_d8,
5879 }, {
5880 .eraseblocks = { {256 * 1024, 1} },
5881 .block_erase = spi_block_erase_c7,
5882 }
5883 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005884 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005885 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005886 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00005887 },
5888
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005889 {
5890 .vendor = "ST",
5891 .name = "M25P40",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00005892 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005893 .manufacture_id = ST_ID,
5894 .model_id = ST_M25P40,
5895 .total_size = 512,
5896 .page_size = 256,
Sean Nelson56358aa2010-01-19 16:08:51 +00005897 .tested = TEST_OK_PRW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005898 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005899 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00005900 .block_erasers =
5901 {
5902 {
5903 .eraseblocks = { {64 * 1024, 8} },
5904 .block_erase = spi_block_erase_d8,
5905 }, {
5906 .eraseblocks = { {512 * 1024, 1} },
5907 .block_erase = spi_block_erase_c7,
5908 }
5909 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005910 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005911 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005912 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00005913 },
5914
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005915 {
5916 .vendor = "ST",
5917 .name = "M25P40-old",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00005918 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00005919 .manufacture_id = 0, /* Not used. */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005920 .model_id = ST_M25P40_RES,
5921 .total_size = 512,
5922 .page_size = 256,
5923 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00005924 .probe = probe_spi_res1,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005925 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00005926 .block_erasers =
5927 {
5928 {
5929 .eraseblocks = { {64 * 1024, 8} },
5930 .block_erase = spi_block_erase_d8,
5931 }, {
5932 .eraseblocks = { {512 * 1024, 1} },
5933 .block_erase = spi_block_erase_c7,
5934 }
5935 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005936 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005937 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005938 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00005939 },
5940
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005941 {
5942 .vendor = "ST",
5943 .name = "M25P80",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00005944 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005945 .manufacture_id = ST_ID,
5946 .model_id = ST_M25P80,
5947 .total_size = 1024,
5948 .page_size = 256,
Sean Nelson56358aa2010-01-19 16:08:51 +00005949 .tested = TEST_OK_PRW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005950 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005951 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00005952 .block_erasers =
5953 {
5954 {
5955 .eraseblocks = { {64 * 1024, 16} },
5956 .block_erase = spi_block_erase_d8,
5957 }, {
5958 .eraseblocks = { {1024 * 1024, 1} },
5959 .block_erase = spi_block_erase_c7,
5960 }
5961 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005962 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005963 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005964 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00005965 },
5966
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005967 {
5968 .vendor = "ST",
5969 .name = "M25P16",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00005970 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005971 .manufacture_id = ST_ID,
5972 .model_id = ST_M25P16,
5973 .total_size = 2048,
5974 .page_size = 256,
Sean Nelson56358aa2010-01-19 16:08:51 +00005975 .tested = TEST_OK_PRW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005976 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005977 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00005978 .block_erasers =
5979 {
5980 {
5981 .eraseblocks = { {64 * 1024, 32} },
5982 .block_erase = spi_block_erase_d8,
5983 }, {
5984 .eraseblocks = { {2 * 1024 * 1024, 1} },
5985 .block_erase = spi_block_erase_c7,
5986 }
5987 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005988 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005989 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005990 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00005991 },
5992
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005993 {
5994 .vendor = "ST",
5995 .name = "M25P32",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00005996 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005997 .manufacture_id = ST_ID,
5998 .model_id = ST_M25P32,
5999 .total_size = 4096,
6000 .page_size = 256,
Sean Nelson56358aa2010-01-19 16:08:51 +00006001 .tested = TEST_OK_PRW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006002 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006003 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006004 .block_erasers =
6005 {
6006 {
6007 .eraseblocks = { {64 * 1024, 64} },
6008 .block_erase = spi_block_erase_d8,
6009 }, {
6010 .eraseblocks = { {4 * 1024 * 1024, 1} },
6011 .block_erase = spi_block_erase_c7,
6012 }
6013 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006014 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006015 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006016 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00006017 },
6018
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006019 {
6020 .vendor = "ST",
6021 .name = "M25P64",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00006022 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006023 .manufacture_id = ST_ID,
6024 .model_id = ST_M25P64,
6025 .total_size = 8192,
6026 .page_size = 256,
6027 .tested = TEST_UNTESTED,
6028 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006029 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006030 .block_erasers =
6031 {
6032 {
6033 .eraseblocks = { {64 * 1024, 128} },
6034 .block_erase = spi_block_erase_d8,
6035 }, {
6036 .eraseblocks = { {8 * 1024 * 1024, 1} },
6037 .block_erase = spi_block_erase_c7,
6038 }
6039 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006040 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006041 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006042 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00006043 },
6044
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006045 {
6046 .vendor = "ST",
6047 .name = "M25P128",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00006048 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006049 .manufacture_id = ST_ID,
6050 .model_id = ST_M25P128,
6051 .total_size = 16384,
6052 .page_size = 256,
6053 .tested = TEST_UNTESTED,
6054 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006055 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006056 .block_erasers =
6057 {
6058 {
6059 .eraseblocks = { {256 * 1024, 64} },
6060 .block_erase = spi_block_erase_d8,
6061 }, {
6062 .eraseblocks = { {16 * 1024 * 1024, 1} },
6063 .block_erase = spi_block_erase_c7,
6064 }
6065 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006066 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006067 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006068 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00006069 },
6070
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006071 {
6072 .vendor = "ST",
6073 .name = "M29F002B",
Urja Rannikko038a3122009-06-28 19:19:25 +00006074 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006075 .manufacture_id = ST_ID,
6076 .model_id = ST_M29F002B,
6077 .total_size = 256,
6078 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006079 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006080 .tested = TEST_UNTESTED,
6081 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006082 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00006083 .block_erasers =
6084 {
6085 {
6086 .eraseblocks = {
6087 {16 * 1024, 1},
6088 {8 * 1024, 2},
6089 {32 * 1024, 1},
6090 {64 * 1024, 3},
6091 },
6092 .block_erase = erase_sector_jedec,
6093 }, {
6094 .eraseblocks = { {256 * 1024, 1} },
6095 .block_erase = erase_chip_block_jedec,
6096 }
6097 },
Sean Nelson35727f72010-01-28 23:55:12 +00006098 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006099 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00006100 },
6101
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006102 {
6103 .vendor = "ST",
6104 .name = "M29F002T/NT",
Urja Rannikko038a3122009-06-28 19:19:25 +00006105 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006106 .manufacture_id = ST_ID,
6107 .model_id = ST_M29F002T,
6108 .total_size = 256,
6109 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006110 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
6111 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006112 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006113 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00006114 .block_erasers =
6115 {
6116 {
6117 .eraseblocks = {
6118 {64 * 1024, 3},
6119 {32 * 1024, 1},
6120 {8 * 1024, 2},
6121 {16 * 1024, 1},
6122 },
6123 .block_erase = erase_sector_jedec,
6124 }, {
6125 .eraseblocks = { {256 * 1024, 1} },
6126 .block_erase = erase_chip_block_jedec,
6127 }
6128 },
Sean Nelson35727f72010-01-28 23:55:12 +00006129 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006130 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00006131 },
6132
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006133 {
6134 .vendor = "ST",
6135 .name = "M29F040B",
Urja Rannikko038a3122009-06-28 19:19:25 +00006136 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006137 .manufacture_id = ST_ID,
6138 .model_id = ST_M29F040B,
6139 .total_size = 512,
6140 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006141 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
6142 .tested = TEST_UNTESTED,
6143 .probe = probe_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00006144 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (am29f040b.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00006145 .block_erasers =
6146 {
6147 {
6148 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson35727f72010-01-28 23:55:12 +00006149 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +00006150 }, {
6151 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006152 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +00006153 }
6154 },
Sean Nelson35727f72010-01-28 23:55:12 +00006155 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006156 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00006157 },
6158
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006159 {
Sean Nelson35727f72010-01-28 23:55:12 +00006160 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006161 .vendor = "ST",
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00006162 .name = "M29F400BB",
6163 .bustype = CHIP_BUSTYPE_PARALLEL,
6164 .manufacture_id = ST_ID,
6165 .model_id = ST_M29F400BB,
6166 .total_size = 512,
6167 .page_size = 64 * 1024,
6168 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
6169 .tested = TEST_BAD_WRITE, /* Implicit eraseblock layout in write_m29f400bt is broken. */
6170 .probe = probe_m29f400bt,
6171 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
6172 .block_erasers =
6173 {
6174 {
6175 .eraseblocks = {
6176 {16 * 1024, 1},
6177 {8 * 1024, 2},
6178 {32 * 1024, 1},
6179 {64 * 1024, 7},
6180 },
6181 .block_erase = block_erase_m29f400bt,
6182 }, {
6183 .eraseblocks = { {512 * 1024, 1} },
6184 .block_erase = block_erase_chip_m29f400bt,
6185 }
6186 },
6187 .write = NULL,
6188 .read = read_memmapped,
6189 },
6190 {
6191 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
6192 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006193 .name = "M29F400BT",
Urja Rannikko038a3122009-06-28 19:19:25 +00006194 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006195 .manufacture_id = ST_ID,
6196 .model_id = ST_M29F400BT,
6197 .total_size = 512,
6198 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006199 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006200 .tested = TEST_UNTESTED,
6201 .probe = probe_m29f400bt,
Maciej Pijankac6e11112009-06-03 14:46:22 +00006202 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (m29f400bt.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00006203 .block_erasers =
6204 {
6205 {
6206 .eraseblocks = {
6207 {64 * 1024, 7},
6208 {32 * 1024, 1},
6209 {8 * 1024, 2},
6210 {16 * 1024, 1},
6211 },
6212 .block_erase = block_erase_m29f400bt,
6213 }, {
6214 .eraseblocks = { {512 * 1024, 1} },
6215 .block_erase = block_erase_chip_m29f400bt,
6216 }
6217 },
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00006218 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006219 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00006220 },
6221
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006222 {
6223 .vendor = "ST",
6224 .name = "M29W010B",
Urja Rannikko038a3122009-06-28 19:19:25 +00006225 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006226 .manufacture_id = ST_ID,
6227 .model_id = ST_M29W010B,
6228 .total_size = 128,
6229 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006230 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006231 .tested = TEST_UNTESTED,
6232 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006233 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00006234 .block_erasers =
6235 {
6236 {
6237 .eraseblocks = { {16 * 1024, 8}, },
6238 .block_erase = erase_sector_jedec,
6239 }, {
6240 .eraseblocks = { {128 * 1024, 1} },
6241 .block_erase = erase_chip_block_jedec,
6242 }
6243 },
Sean Nelson35727f72010-01-28 23:55:12 +00006244 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006245 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00006246 },
6247
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006248 {
6249 .vendor = "ST",
6250 .name = "M29W040B",
Urja Rannikko038a3122009-06-28 19:19:25 +00006251 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006252 .manufacture_id = ST_ID,
6253 .model_id = ST_M29W040B,
6254 .total_size = 512,
6255 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006256 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006257 .tested = TEST_UNTESTED,
6258 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006259 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00006260 .block_erasers =
6261 {
6262 {
6263 .eraseblocks = { {64 * 1024, 8}, },
6264 .block_erase = erase_sector_jedec,
6265 }, {
6266 .eraseblocks = { {512 * 1024, 1} },
6267 .block_erase = erase_chip_block_jedec,
6268 }
6269 },
Sean Nelson35727f72010-01-28 23:55:12 +00006270 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006271 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00006272 },
6273
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +00006274 {
6275 .vendor = "ST",
6276 .name = "M29W512B",
6277 .bustype = CHIP_BUSTYPE_PARALLEL,
6278 .manufacture_id = ST_ID,
6279 .model_id = ST_M29W512B,
6280 .total_size = 64,
6281 .page_size = 64 * 1024,
6282 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
6283 .tested = TEST_OK_PREW,
6284 .probe = probe_jedec,
6285 .probe_timing = TIMING_ZERO,
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +00006286 .block_erasers =
6287 {
6288 {
6289 .eraseblocks = { {64 * 1024, 1} },
6290 .block_erase = erase_chip_block_jedec,
6291 }
6292 },
6293 .write = write_jedec_1,
6294 .read = read_memmapped,
6295 },
6296
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006297 {
6298 .vendor = "ST",
6299 .name = "M50FLW040A",
Sean Nelson35727f72010-01-28 23:55:12 +00006300 .bustype = CHIP_BUSTYPE_FWH | CHIP_BUSTYPE_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006301 .manufacture_id = ST_ID,
6302 .model_id = ST_M50FLW040A,
6303 .total_size = 512,
6304 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006305 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006306 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00006307 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00006308 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00006309 .block_erasers =
6310 {
6311 {
Sean Nelson329bde72010-01-19 16:39:19 +00006312 .eraseblocks = {
6313 {4 * 1024, 16}, /* sector */
6314 {64 * 1024, 5}, /* block */
6315 {4 * 1024, 16}, /* sector */
6316 {4 * 1024, 16}, /* sector */
6317 },
6318 .block_erase = NULL,
6319 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00006320 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +00006321 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00006322 }, {
6323 .eraseblocks = { {512 * 1024, 1} },
6324 .block_erase = erase_chip_stm50flw0x0x,
6325 }
6326 },
Sean Nelson28accc22010-03-19 18:47:06 +00006327 .unlock = unlock_stm50flw0x0x,
6328 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006329 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00006330 },
6331
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006332 {
6333 .vendor = "ST",
6334 .name = "M50FLW040B",
Sean Nelson35727f72010-01-28 23:55:12 +00006335 .bustype = CHIP_BUSTYPE_FWH | CHIP_BUSTYPE_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006336 .manufacture_id = ST_ID,
6337 .model_id = ST_M50FLW040B,
6338 .total_size = 512,
6339 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006340 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006341 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00006342 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00006343 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00006344 .block_erasers =
6345 {
6346 {
Sean Nelson329bde72010-01-19 16:39:19 +00006347 .eraseblocks = {
6348 {4 * 1024, 16}, /* sector */
6349 {4 * 1024, 16}, /* sector */
6350 {64 * 1024, 5}, /* block */
6351 {4 * 1024, 16}, /* sector */
6352 },
6353 .block_erase = NULL,
6354 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00006355 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +00006356 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00006357 }, {
6358 .eraseblocks = { {512 * 1024, 1} },
6359 .block_erase = erase_chip_stm50flw0x0x,
6360 }
6361 },
Sean Nelson28accc22010-03-19 18:47:06 +00006362 .unlock = unlock_stm50flw0x0x,
6363 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006364 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00006365 },
6366
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006367 {
6368 .vendor = "ST",
6369 .name = "M50FLW080A",
Sean Nelson35727f72010-01-28 23:55:12 +00006370 .bustype = CHIP_BUSTYPE_FWH | CHIP_BUSTYPE_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006371 .manufacture_id = ST_ID,
6372 .model_id = ST_M50FLW080A,
6373 .total_size = 1024,
6374 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006375 .feature_bits = FEATURE_REGISTERMAP,
Uwe Hermann1e94fa62010-08-08 15:52:07 +00006376 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00006377 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00006378 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00006379 .block_erasers =
6380 {
6381 {
Sean Nelson329bde72010-01-19 16:39:19 +00006382 .eraseblocks = {
6383 {4 * 1024, 16}, /* sector */
6384 {64 * 1024, 13}, /* block */
6385 {4 * 1024, 16}, /* sector */
6386 {4 * 1024, 16}, /* sector */
6387 },
6388 .block_erase = NULL,
6389 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00006390 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +00006391 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00006392 }, {
6393 .eraseblocks = { {1024 * 1024, 1} },
6394 .block_erase = erase_chip_stm50flw0x0x,
6395 }
6396 },
Sean Nelson28accc22010-03-19 18:47:06 +00006397 .unlock = unlock_stm50flw0x0x,
6398 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006399 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00006400 },
6401
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006402 {
6403 .vendor = "ST",
6404 .name = "M50FLW080B",
Sean Nelson35727f72010-01-28 23:55:12 +00006405 .bustype = CHIP_BUSTYPE_FWH | CHIP_BUSTYPE_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006406 .manufacture_id = ST_ID,
6407 .model_id = ST_M50FLW080B,
6408 .total_size = 1024,
6409 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006410 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006411 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00006412 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00006413 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00006414 .block_erasers =
6415 {
6416 {
Sean Nelson329bde72010-01-19 16:39:19 +00006417 .eraseblocks = {
6418 {4 * 1024, 16}, /* sector */
6419 {4 * 1024, 16}, /* sector */
6420 {64 * 1024, 13}, /* block */
6421 {4 * 1024, 16}, /* sector */
6422 },
6423 .block_erase = NULL,
6424 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00006425 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +00006426 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00006427 }, {
6428 .eraseblocks = { {1024 * 1024, 1} },
6429 .block_erase = erase_chip_stm50flw0x0x,
6430 }
6431 },
Sean Nelson28accc22010-03-19 18:47:06 +00006432 .unlock = unlock_stm50flw0x0x,
6433 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006434 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00006435 },
6436
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006437 {
6438 .vendor = "ST",
6439 .name = "M50FW002",
Urja Rannikko038a3122009-06-28 19:19:25 +00006440 .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006441 .manufacture_id = ST_ID,
6442 .model_id = ST_M50FW002,
6443 .total_size = 256,
6444 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006445 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006446 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00006447 .probe = probe_82802ab,
Maciej Pijankac6e11112009-06-03 14:46:22 +00006448 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (sst49lfxxxc.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00006449 .block_erasers =
6450 {
6451 {
6452 .eraseblocks = {
6453 {64 * 1024, 3},
6454 {32 * 1024, 1},
6455 {8 * 1024, 2},
6456 {16 * 1024, 1},
6457 },
Sean Nelson28accc22010-03-19 18:47:06 +00006458 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00006459 }, {
6460 .eraseblocks = { {256 * 1024, 1} },
6461 .block_erase = erase_chip_stm50flw0x0x,
6462 }
6463 },
Sean Nelson28accc22010-03-19 18:47:06 +00006464 .unlock = unlock_stm50flw0x0x,
6465 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006466 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00006467 },
6468
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006469 {
6470 .vendor = "ST",
6471 .name = "M50FW016",
Urja Rannikko038a3122009-06-28 19:19:25 +00006472 .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006473 .manufacture_id = ST_ID,
6474 .model_id = ST_M50FW016,
6475 .total_size = 2048,
6476 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006477 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006478 .tested = TEST_UNTESTED,
6479 .probe = probe_82802ab,
Maciej Pijankac6e11112009-06-03 14:46:22 +00006480 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00006481 .block_erasers =
6482 {
6483 {
6484 .eraseblocks = { {64 * 1024, 32}, },
Sean Nelson28accc22010-03-19 18:47:06 +00006485 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00006486 }, {
6487 .eraseblocks = { {2 * 1024 * 1024, 1} },
6488 .block_erase = erase_chip_stm50flw0x0x,
6489 }
6490 },
Sean Nelson28accc22010-03-19 18:47:06 +00006491 .unlock = unlock_stm50flw0x0x,
6492 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006493 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00006494 },
6495
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006496 {
6497 .vendor = "ST",
6498 .name = "M50FW040",
Urja Rannikko038a3122009-06-28 19:19:25 +00006499 .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006500 .manufacture_id = ST_ID,
6501 .model_id = ST_M50FW040,
6502 .total_size = 512,
6503 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006504 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +00006505 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006506 .probe = probe_82802ab,
Maciej Pijankac6e11112009-06-03 14:46:22 +00006507 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00006508 .block_erasers =
6509 {
6510 {
6511 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +00006512 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00006513 }, {
6514 .eraseblocks = { {512 * 1024, 1} },
6515 .block_erase = erase_chip_stm50flw0x0x,
6516 }
6517 },
Sean Nelson28accc22010-03-19 18:47:06 +00006518 .unlock = unlock_stm50flw0x0x,
6519 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006520 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00006521 },
6522
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006523 {
6524 .vendor = "ST",
6525 .name = "M50FW080",
Urja Rannikko038a3122009-06-28 19:19:25 +00006526 .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006527 .manufacture_id = ST_ID,
6528 .model_id = ST_M50FW080,
6529 .total_size = 1024,
6530 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006531 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +00006532 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006533 .probe = probe_82802ab,
Maciej Pijankac6e11112009-06-03 14:46:22 +00006534 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00006535 .block_erasers =
6536 {
6537 {
6538 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +00006539 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00006540 }, {
6541 .eraseblocks = { {1024 * 1024, 1} },
6542 .block_erase = erase_chip_stm50flw0x0x,
6543 }
6544 },
Sean Nelson28accc22010-03-19 18:47:06 +00006545 .unlock = unlock_stm50flw0x0x,
6546 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006547 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00006548 },
6549
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006550 {
6551 .vendor = "ST",
6552 .name = "M50LPW116",
Urja Rannikko038a3122009-06-28 19:19:25 +00006553 .bustype = CHIP_BUSTYPE_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006554 .manufacture_id = ST_ID,
6555 .model_id = ST_M50LPW116,
6556 .total_size = 2048,
6557 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006558 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006559 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00006560 .probe = probe_82802ab,
Udu Ogahc04ee222009-09-05 01:31:32 +00006561 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00006562 .block_erasers =
6563 {
6564 {
6565 .eraseblocks = {
6566 {4 * 1024, 16},
6567 {64 * 1024, 30},
6568 {32 * 1024, 1},
6569 {8 * 1024, 2},
6570 {16 * 1024, 1},
6571 },
Sean Nelson28accc22010-03-19 18:47:06 +00006572 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00006573 }, {
6574 .eraseblocks = { {2 * 1024 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006575 .block_erase = erase_chip_stm50flw0x0x,
Sean Nelson56358aa2010-01-19 16:08:51 +00006576 }
6577 },
Sean Nelson28accc22010-03-19 18:47:06 +00006578 .unlock = unlock_stm50flw0x0x,
6579 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006580 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00006581 },
6582
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006583 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00006584 .vendor = "SyncMOS/MoselVitelic",
6585 .name = "{F,S,V}29C51001B",
Urja Rannikko038a3122009-06-28 19:19:25 +00006586 .bustype = CHIP_BUSTYPE_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00006587 .manufacture_id = SYNCMOS_MVC_ID,
6588 .model_id = SM_MVC_29C51001B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006589 .total_size = 128,
Mattias Mattsson4c066502010-07-29 20:01:13 +00006590 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +00006591 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006592 .tested = TEST_UNTESTED,
6593 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006594 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00006595 .block_erasers =
6596 {
6597 {
6598 .eraseblocks = { {512, 256} },
6599 .block_erase = erase_sector_jedec,
6600 }, {
6601 .eraseblocks = { {128 * 1024, 1} },
6602 .block_erase = erase_chip_block_jedec,
6603 },
6604 },
Sean Nelson35727f72010-01-28 23:55:12 +00006605 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006606 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00006607 },
6608
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006609 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00006610 .vendor = "SyncMOS/MoselVitelic",
6611 .name = "{F,S,V}29C51001T",
Urja Rannikko038a3122009-06-28 19:19:25 +00006612 .bustype = CHIP_BUSTYPE_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00006613 .manufacture_id = SYNCMOS_MVC_ID,
6614 .model_id = SM_MVC_29C51001T,
6615 .total_size = 128,
6616 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +00006617 .feature_bits = FEATURE_EITHER_RESET,
Mattias Mattsson4c066502010-07-29 20:01:13 +00006618 .tested = TEST_UNTESTED,
6619 .probe = probe_jedec,
6620 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6621 .block_erasers =
6622 {
6623 {
6624 .eraseblocks = { {512, 256} },
6625 .block_erase = erase_sector_jedec,
6626 }, {
6627 .eraseblocks = { {128 * 1024, 1} },
6628 .block_erase = erase_chip_block_jedec,
6629 },
6630 },
6631 .write = write_jedec_1,
6632 .read = read_memmapped,
6633 },
6634
6635 {
6636 .vendor = "SyncMOS/MoselVitelic",
6637 .name = "{F,S,V}29C51002B",
6638 .bustype = CHIP_BUSTYPE_PARALLEL,
6639 .manufacture_id = SYNCMOS_MVC_ID,
6640 .model_id = SM_MVC_29C51002B,
6641 .total_size = 256,
6642 .page_size = 512,
6643 .feature_bits = 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 = { {512, 512} },
6651 .block_erase = erase_sector_jedec,
6652 }, {
6653 .eraseblocks = { {256 * 1024, 1} },
6654 .block_erase = erase_chip_block_jedec,
6655 },
6656 },
Sean Nelson35727f72010-01-28 23:55:12 +00006657 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006658 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00006659 },
6660
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006661 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00006662 .vendor = "SyncMOS/MoselVitelic",
6663 .name = "{F,S,V}29C51002T",
Urja Rannikko038a3122009-06-28 19:19:25 +00006664 .bustype = CHIP_BUSTYPE_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00006665 .manufacture_id = SYNCMOS_MVC_ID,
6666 .model_id = SM_MVC_29C51002T,
6667 .total_size = 256,
6668 .page_size = 512,
6669 .feature_bits = FEATURE_EITHER_RESET,
6670 .tested = TEST_OK_PR,
6671 .probe = probe_jedec,
6672 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6673 .block_erasers =
6674 {
6675 {
6676 .eraseblocks = { {512, 512} },
6677 .block_erase = erase_sector_jedec,
6678 }, {
6679 .eraseblocks = { {256 * 1024, 1} },
6680 .block_erase = erase_chip_block_jedec,
6681 },
6682 },
6683 .write = write_jedec_1,
6684 .read = read_memmapped,
6685 },
6686
6687 {
6688 .vendor = "SyncMOS/MoselVitelic",
6689 .name = "{F,S,V}29C51004B",
6690 .bustype = CHIP_BUSTYPE_PARALLEL,
6691 .manufacture_id = SYNCMOS_MVC_ID,
6692 .model_id = SM_MVC_29C51004B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006693 .total_size = 512,
Mattias Mattsson4c066502010-07-29 20:01:13 +00006694 .page_size = 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006695 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006696 .tested = TEST_UNTESTED,
6697 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006698 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006699 .block_erasers =
6700 {
6701 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00006702 .eraseblocks = { {1024, 512} },
6703 .block_erase = erase_sector_jedec,
6704 }, {
6705 .eraseblocks = { {512 * 1024, 1} },
6706 .block_erase = erase_chip_block_jedec,
6707 },
6708 },
6709 .write = write_jedec_1,
6710 .read = read_memmapped,
6711 },
6712
6713 {
6714 .vendor = "SyncMOS/MoselVitelic",
6715 .name = "{F,S,V}29C51004T",
6716 .bustype = CHIP_BUSTYPE_PARALLEL,
6717 .manufacture_id = SYNCMOS_MVC_ID,
6718 .model_id = SM_MVC_29C51004T,
6719 .total_size = 512,
6720 .page_size = 1024,
6721 .feature_bits = FEATURE_EITHER_RESET,
6722 .tested = TEST_UNTESTED,
6723 .probe = probe_jedec,
6724 .probe_timing = TIMING_ZERO,
6725 .block_erasers =
6726 {
6727 {
6728 .eraseblocks = { {1024, 512} },
6729 .block_erase = erase_sector_jedec,
6730 }, {
6731 .eraseblocks = { {512 * 1024, 1} },
6732 .block_erase = erase_chip_block_jedec,
6733 },
6734 },
6735 .write = write_jedec_1,
6736 .read = read_memmapped,
6737 },
6738
6739 {
6740 .vendor = "SyncMOS/MoselVitelic",
6741 .name = "{S,V}29C31004B",
6742 .bustype = CHIP_BUSTYPE_PARALLEL,
6743 .manufacture_id = SYNCMOS_MVC_ID,
6744 .model_id = SM_MVC_29C31004B,
6745 .total_size = 512,
6746 .page_size = 1024,
6747 .feature_bits = FEATURE_EITHER_RESET,
6748 .tested = TEST_UNTESTED,
6749 .probe = probe_jedec,
6750 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6751 .block_erasers =
6752 {
6753 {
6754 .eraseblocks = { {1024, 512} },
6755 .block_erase = erase_sector_jedec,
6756 }, {
6757 .eraseblocks = { {512 * 1024, 1} },
6758 .block_erase = erase_chip_block_jedec,
6759 },
6760 },
6761 .write = write_jedec_1,
6762 .read = read_memmapped,
6763 },
6764
6765 {
6766 .vendor = "SyncMOS/MoselVitelic",
6767 .name = "{S,V}29C31004T",
6768 .bustype = CHIP_BUSTYPE_PARALLEL,
6769 .manufacture_id = SYNCMOS_MVC_ID,
6770 .model_id = SM_MVC_29C31004T,
6771 .total_size = 512,
6772 .page_size = 1024,
6773 .feature_bits = FEATURE_EITHER_RESET,
6774 .tested = TEST_UNTESTED,
6775 .probe = probe_jedec,
6776 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6777 .block_erasers =
6778 {
6779 {
6780 .eraseblocks = { {1024, 512} },
Sean Nelson56358aa2010-01-19 16:08:51 +00006781 .block_erase = erase_sector_jedec,
6782 }, {
6783 .eraseblocks = { {512 * 1024, 1} },
6784 .block_erase = erase_chip_block_jedec,
6785 },
6786 },
Sean Nelson35727f72010-01-28 23:55:12 +00006787 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006788 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00006789 },
6790
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006791 {
Uwe Hermanna106d152009-05-27 23:17:40 +00006792 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00006793 .name = "TMS29F002RB",
Urja Rannikko038a3122009-06-28 19:19:25 +00006794 .bustype = CHIP_BUSTYPE_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00006795 .manufacture_id = TI_OLD_ID,
6796 .model_id = TI_TMS29F002RB,
6797 .total_size = 256,
6798 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +00006799 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00006800 .tested = TEST_UNTESTED,
6801 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006802 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00006803 .block_erasers =
6804 {
6805 {
6806 .eraseblocks = {
6807 {16 * 1024, 1},
6808 {8 * 1024, 2},
6809 {32 * 1024, 1},
6810 {64 * 1024, 3},
6811 },
6812 .block_erase = erase_sector_jedec,
6813 }, {
6814 .eraseblocks = { {256 * 1024, 1} },
6815 .block_erase = erase_chip_block_jedec,
6816 },
6817 },
Sean Nelson35727f72010-01-28 23:55:12 +00006818 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00006819 .read = read_memmapped,
6820 },
6821
6822 {
Uwe Hermanna106d152009-05-27 23:17:40 +00006823 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00006824 .name = "TMS29F002RT",
Urja Rannikko038a3122009-06-28 19:19:25 +00006825 .bustype = CHIP_BUSTYPE_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00006826 .manufacture_id = TI_OLD_ID,
6827 .model_id = TI_TMS29F002RT,
6828 .total_size = 256,
6829 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +00006830 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00006831 .tested = TEST_UNTESTED,
6832 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006833 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00006834 .block_erasers =
6835 {
6836 {
6837 .eraseblocks = {
6838 {64 * 1024, 3},
6839 {32 * 1024, 1},
6840 {8 * 1024, 2},
6841 {16 * 1024, 1},
6842 },
6843 .block_erase = erase_sector_jedec,
6844 }, {
6845 .eraseblocks = { {256 * 1024, 1} },
6846 .block_erase = erase_chip_block_jedec,
6847 },
6848 },
Sean Nelson35727f72010-01-28 23:55:12 +00006849 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00006850 .read = read_memmapped,
6851 },
6852
6853 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006854 .vendor = "Winbond",
Rudolf Marekce1c7982010-04-20 19:34:31 +00006855 .name = "W25Q80",
6856 .bustype = CHIP_BUSTYPE_SPI,
6857 .manufacture_id = WINBOND_NEX_ID,
6858 .model_id = W_25Q80,
6859 .total_size = 1024,
6860 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00006861 .feature_bits = FEATURE_WRSR_WREN,
Uwe Hermannc2521ab2010-07-29 22:39:47 +00006862 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +00006863 .probe = probe_spi_rdid,
6864 .probe_timing = TIMING_ZERO,
6865 .block_erasers =
6866 {
6867 {
6868 .eraseblocks = { {4 * 1024, 256} },
6869 .block_erase = spi_block_erase_20,
6870 }, {
6871 .eraseblocks = { {32 * 1024, 32} },
6872 .block_erase = spi_block_erase_52,
6873 }, {
6874 .eraseblocks = { {64 * 1024, 16} },
6875 .block_erase = spi_block_erase_d8,
6876 }, {
6877 .eraseblocks = { {1024 * 1024, 1} },
6878 .block_erase = spi_block_erase_60,
6879 }, {
6880 .eraseblocks = { {1024 * 1024, 1} },
6881 .block_erase = spi_block_erase_c7,
6882 }
6883 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006884 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +00006885 .write = spi_chip_write_256,
6886 .read = spi_chip_read,
6887 },
6888
6889 {
6890 .vendor = "Winbond",
6891 .name = "W25Q16",
6892 .bustype = CHIP_BUSTYPE_SPI,
6893 .manufacture_id = WINBOND_NEX_ID,
6894 .model_id = W_25Q16,
6895 .total_size = 2048,
6896 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00006897 .feature_bits = FEATURE_WRSR_WREN,
Rudolf Marekce1c7982010-04-20 19:34:31 +00006898 .tested = TEST_UNTESTED,
6899 .probe = probe_spi_rdid,
6900 .probe_timing = TIMING_ZERO,
6901 .block_erasers =
6902 {
6903 {
6904 .eraseblocks = { {4 * 1024, 512} },
6905 .block_erase = spi_block_erase_20,
6906 }, {
6907 .eraseblocks = { {32 * 1024, 64} },
6908 .block_erase = spi_block_erase_52,
6909 }, {
6910 .eraseblocks = { {64 * 1024, 32} },
6911 .block_erase = spi_block_erase_d8,
6912 }, {
6913 .eraseblocks = { {2 * 1024 * 1024, 1} },
6914 .block_erase = spi_block_erase_60,
6915 }, {
6916 .eraseblocks = { {2 * 1024 * 1024, 1} },
6917 .block_erase = spi_block_erase_c7,
6918 }
6919 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006920 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +00006921 .write = spi_chip_write_256,
6922 .read = spi_chip_read,
6923 },
6924
6925 {
6926 .vendor = "Winbond",
6927 .name = "W25Q32",
6928 .bustype = CHIP_BUSTYPE_SPI,
6929 .manufacture_id = WINBOND_NEX_ID,
6930 .model_id = W_25Q32,
6931 .total_size = 4096,
6932 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00006933 .feature_bits = FEATURE_WRSR_WREN,
Rudolf Marekce1c7982010-04-20 19:34:31 +00006934 .tested = TEST_UNTESTED,
6935 .probe = probe_spi_rdid,
6936 .probe_timing = TIMING_ZERO,
6937 .block_erasers =
6938 {
6939 {
6940 .eraseblocks = { {4 * 1024, 1024} },
6941 .block_erase = spi_block_erase_20,
6942 }, {
6943 .eraseblocks = { {32 * 1024, 128} },
6944 .block_erase = spi_block_erase_52,
6945 }, {
6946 .eraseblocks = { {64 * 1024, 64} },
6947 .block_erase = spi_block_erase_d8,
6948 }, {
6949 .eraseblocks = { {4 * 1024 * 1024, 1} },
6950 .block_erase = spi_block_erase_60,
6951 }, {
6952 .eraseblocks = { {4 * 1024 * 1024, 1} },
6953 .block_erase = spi_block_erase_c7,
6954 }
6955 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006956 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +00006957 .write = spi_chip_write_256,
6958 .read = spi_chip_read,
6959 },
6960
6961 {
6962 .vendor = "Winbond",
David Hendricksc4acec92010-06-24 11:39:57 +00006963 .name = "W25Q64",
6964 .bustype = CHIP_BUSTYPE_SPI,
6965 .manufacture_id = WINBOND_NEX_ID,
6966 .model_id = W_25Q64,
6967 .total_size = 8192,
6968 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00006969 .feature_bits = FEATURE_WRSR_WREN,
David Hendricksc4acec92010-06-24 11:39:57 +00006970 .tested = TEST_OK_PRW,
6971 .probe = probe_spi_rdid,
6972 .probe_timing = TIMING_ZERO,
6973 .block_erasers =
6974 {
6975 {
6976 .eraseblocks = { {4 * 1024, 2048} },
6977 .block_erase = spi_block_erase_20,
6978 }, {
6979 .eraseblocks = { {32 * 1024, 256} },
6980 .block_erase = spi_block_erase_52,
6981 }, {
6982 .eraseblocks = { {64 * 1024, 128} },
6983 .block_erase = spi_block_erase_d8,
6984 }, {
6985 .eraseblocks = { {8 * 1024 * 1024, 1} },
6986 .block_erase = spi_block_erase_60,
6987 }, {
6988 .eraseblocks = { {8 * 1024 * 1024, 1} },
6989 .block_erase = spi_block_erase_c7,
6990 }
6991 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006992 .unlock = spi_disable_blockprotect,
David Hendricksc4acec92010-06-24 11:39:57 +00006993 .write = spi_chip_write_256,
6994 .read = spi_chip_read,
6995 },
6996
6997 {
6998 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006999 .name = "W25x10",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00007000 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007001 .manufacture_id = WINBOND_NEX_ID,
7002 .model_id = W_25X10,
7003 .total_size = 128,
7004 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00007005 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007006 .tested = TEST_UNTESTED,
7007 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007008 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007009 .block_erasers =
7010 {
7011 {
7012 .eraseblocks = { {4 * 1024, 32} },
7013 .block_erase = spi_block_erase_20,
7014 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007015 .eraseblocks = { {64 * 1024, 2} },
7016 .block_erase = spi_block_erase_d8,
7017 }, {
7018 .eraseblocks = { {128 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007019 .block_erase = spi_block_erase_c7,
7020 }
7021 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007022 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007023 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007024 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00007025 },
7026
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007027 {
7028 .vendor = "Winbond",
7029 .name = "W25x20",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00007030 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007031 .manufacture_id = WINBOND_NEX_ID,
7032 .model_id = W_25X20,
7033 .total_size = 256,
7034 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00007035 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007036 .tested = TEST_UNTESTED,
7037 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007038 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007039 .block_erasers =
7040 {
7041 {
7042 .eraseblocks = { {4 * 1024, 64} },
7043 .block_erase = spi_block_erase_20,
7044 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007045 .eraseblocks = { {64 * 1024, 4} },
7046 .block_erase = spi_block_erase_d8,
7047 }, {
7048 .eraseblocks = { {256 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007049 .block_erase = spi_block_erase_c7,
7050 }
7051 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007052 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007053 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007054 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00007055 },
7056
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007057 {
7058 .vendor = "Winbond",
7059 .name = "W25x40",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00007060 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007061 .manufacture_id = WINBOND_NEX_ID,
7062 .model_id = W_25X40,
7063 .total_size = 512,
7064 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00007065 .feature_bits = FEATURE_WRSR_WREN,
Uwe Hermannc2521ab2010-07-29 22:39:47 +00007066 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007067 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007068 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007069 .block_erasers =
7070 {
7071 {
7072 .eraseblocks = { {4 * 1024, 128} },
7073 .block_erase = spi_block_erase_20,
7074 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007075 .eraseblocks = { {64 * 1024, 8} },
7076 .block_erase = spi_block_erase_d8,
7077 }, {
7078 .eraseblocks = { {512 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007079 .block_erase = spi_block_erase_c7,
7080 }
7081 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007082 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007083 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007084 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00007085 },
7086
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007087 {
7088 .vendor = "Winbond",
7089 .name = "W25x80",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00007090 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007091 .manufacture_id = WINBOND_NEX_ID,
7092 .model_id = W_25X80,
7093 .total_size = 1024,
7094 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00007095 .feature_bits = FEATURE_WRSR_WREN,
Uwe Hermannc2521ab2010-07-29 22:39:47 +00007096 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007097 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007098 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007099 .block_erasers =
7100 {
7101 {
7102 .eraseblocks = { {4 * 1024, 256} },
7103 .block_erase = spi_block_erase_20,
7104 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007105 .eraseblocks = { {64 * 1024, 16} },
7106 .block_erase = spi_block_erase_d8,
7107 }, {
7108 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007109 .block_erase = spi_block_erase_c7,
7110 }
7111 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007112 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007113 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007114 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00007115 },
7116
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007117 {
7118 .vendor = "Winbond",
Hector Martina721ae22009-07-11 19:39:11 +00007119 .name = "W25x16",
7120 .bustype = CHIP_BUSTYPE_SPI,
7121 .manufacture_id = WINBOND_NEX_ID,
7122 .model_id = W_25X16,
7123 .total_size = 2048,
7124 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00007125 .feature_bits = FEATURE_WRSR_WREN,
Uwe Hermannc2521ab2010-07-29 22:39:47 +00007126 .tested = TEST_OK_PREW,
Hector Martina721ae22009-07-11 19:39:11 +00007127 .probe = probe_spi_rdid,
7128 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007129 .block_erasers =
7130 {
7131 {
7132 .eraseblocks = { {4 * 1024, 512} },
7133 .block_erase = spi_block_erase_20,
7134 }, {
7135 .eraseblocks = { {32 * 1024, 64} },
7136 .block_erase = spi_block_erase_52,
7137 }, {
7138 .eraseblocks = { {64 * 1024, 32} },
7139 .block_erase = spi_block_erase_d8,
7140 }, {
7141 .eraseblocks = { {2 * 1024 * 1024, 1} },
7142 .block_erase = spi_block_erase_60,
7143 }, {
7144 .eraseblocks = { {2 * 1024 * 1024, 1} },
7145 .block_erase = spi_block_erase_c7,
7146 }
7147 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007148 .unlock = spi_disable_blockprotect,
Hector Martina721ae22009-07-11 19:39:11 +00007149 .write = spi_chip_write_256,
7150 .read = spi_chip_read,
7151 },
7152
7153 {
7154 .vendor = "Winbond",
Zheng Bao1db2b752009-11-26 11:05:01 +00007155 .name = "W25x32",
7156 .bustype = CHIP_BUSTYPE_SPI,
7157 .manufacture_id = WINBOND_NEX_ID,
7158 .model_id = W_25X32,
7159 .total_size = 4096,
7160 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00007161 .feature_bits = FEATURE_WRSR_WREN,
Zheng Bao1db2b752009-11-26 11:05:01 +00007162 .tested = TEST_OK_PROBE,
7163 .probe = probe_spi_rdid,
7164 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007165 .block_erasers =
7166 {
7167 {
7168 .eraseblocks = { {4 * 1024, 1024} },
7169 .block_erase = spi_block_erase_20,
7170 }, {
7171 .eraseblocks = { {32 * 1024, 128} },
7172 .block_erase = spi_block_erase_52,
7173 }, {
7174 .eraseblocks = { {64 * 1024, 64} },
7175 .block_erase = spi_block_erase_d8,
7176 }, {
7177 .eraseblocks = { {4 * 1024 * 1024, 1} },
7178 .block_erase = spi_block_erase_60,
7179 }, {
7180 .eraseblocks = { {4 * 1024 * 1024, 1} },
7181 .block_erase = spi_block_erase_c7,
7182 }
7183 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007184 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +00007185 .write = spi_chip_write_256,
7186 .read = spi_chip_read,
7187 },
7188
7189 {
7190 .vendor = "Winbond",
7191 .name = "W25x64",
7192 .bustype = CHIP_BUSTYPE_SPI,
7193 .manufacture_id = WINBOND_NEX_ID,
7194 .model_id = W_25X64,
7195 .total_size = 8192,
7196 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00007197 .feature_bits = FEATURE_WRSR_WREN,
Zheng Bao1db2b752009-11-26 11:05:01 +00007198 .tested = TEST_UNTESTED,
7199 .probe = probe_spi_rdid,
7200 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007201 .block_erasers =
7202 {
7203 {
7204 .eraseblocks = { {4 * 1024, 2048} },
7205 .block_erase = spi_block_erase_20,
7206 }, {
7207 .eraseblocks = { {32 * 1024, 256} },
7208 .block_erase = spi_block_erase_52,
7209 }, {
7210 .eraseblocks = { {64 * 1024, 128} },
7211 .block_erase = spi_block_erase_d8,
7212 }, {
7213 .eraseblocks = { {8 * 1024 * 1024, 1} },
7214 .block_erase = spi_block_erase_60,
7215 }, {
7216 .eraseblocks = { {8 * 1024 * 1024, 1} },
7217 .block_erase = spi_block_erase_c7,
7218 }
7219 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007220 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +00007221 .write = spi_chip_write_256,
7222 .read = spi_chip_read,
7223 },
7224
7225 {
7226 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007227 .name = "W29C011",
Urja Rannikko038a3122009-06-28 19:19:25 +00007228 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007229 .manufacture_id = WINBOND_ID,
7230 .model_id = W_29C011,
7231 .total_size = 128,
7232 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00007233 .feature_bits = FEATURE_LONG_RESET,
Uwe Hermann60939692010-03-17 00:05:59 +00007234 .tested = TEST_OK_PRW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007235 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007236 .probe_timing = 10, /* used datasheet for the W29C011A */
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007237 .block_erasers =
7238 {
7239 {
7240 .eraseblocks = { {128 * 1024, 1} },
7241 .block_erase = erase_chip_block_jedec,
7242 }
7243 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007244 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007245 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00007246 },
7247
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007248 {
7249 .vendor = "Winbond",
7250 .name = "W29C020C",
Urja Rannikko161b8852009-06-05 08:47:37 +00007251 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007252 .manufacture_id = WINBOND_ID,
7253 .model_id = W_29C020C,
7254 .total_size = 256,
7255 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00007256 .feature_bits = FEATURE_LONG_RESET,
Uwe Hermannea5425b2010-05-30 17:00:19 +00007257 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007258 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00007259 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007260 .block_erasers =
7261 {
7262 {
7263 .eraseblocks = { {256 * 1024, 1} },
7264 .block_erase = erase_chip_block_jedec,
7265 }
7266 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007267 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007268 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00007269 },
7270
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007271 {
7272 .vendor = "Winbond",
7273 .name = "W29C040P",
Urja Rannikko161b8852009-06-05 08:47:37 +00007274 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007275 .manufacture_id = WINBOND_ID,
7276 .model_id = W_29C040P,
7277 .total_size = 512,
7278 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00007279 .feature_bits = FEATURE_LONG_RESET,
7280 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007281 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00007282 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007283 .block_erasers =
7284 {
7285 {
7286 .eraseblocks = { {512 * 1024, 1} },
7287 .block_erase = erase_chip_block_jedec,
7288 }
7289 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007290 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007291 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00007292 },
7293
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007294 {
7295 .vendor = "Winbond",
7296 .name = "W29EE011",
Urja Rannikko038a3122009-06-28 19:19:25 +00007297 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007298 .manufacture_id = WINBOND_ID,
7299 .model_id = W_29C011,
7300 .total_size = 128,
7301 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00007302 .feature_bits = FEATURE_LONG_RESET,
Uwe Hermann1e94fa62010-08-08 15:52:07 +00007303 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007304 .probe = probe_w29ee011,
Maciej Pijankac6e11112009-06-03 14:46:22 +00007305 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (w29ee011.c) */
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007306 .block_erasers =
7307 {
7308 {
7309 .eraseblocks = { {128 * 1024, 1} },
7310 .block_erase = erase_chip_block_jedec,
7311 }
7312 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007313 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007314 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00007315 },
7316
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007317 {
7318 .vendor = "Winbond",
7319 .name = "W39V040A",
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00007320 .bustype = CHIP_BUSTYPE_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007321 .manufacture_id = WINBOND_ID,
7322 .model_id = W_39V040A,
7323 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00007324 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007325 .feature_bits = FEATURE_EITHER_RESET,
Michael Karcher3355f062010-03-24 22:56:23 +00007326 .tested = TEST_OK_PRW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007327 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00007328 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007329 .block_erasers =
7330 {
7331 {
7332 .eraseblocks = { {64 * 1024, 8} },
7333 .block_erase = erase_sector_jedec,
7334 }, {
7335 .eraseblocks = { {512 * 1024, 1} },
7336 .block_erase = erase_chip_block_jedec,
7337 }
7338 },
Sean Nelson35727f72010-01-28 23:55:12 +00007339 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007340 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00007341 },
7342
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007343 {
7344 .vendor = "Winbond",
7345 .name = "W39V040B",
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00007346 .bustype = CHIP_BUSTYPE_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007347 .manufacture_id = WINBOND_ID,
7348 .model_id = W_39V040B,
7349 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00007350 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007351 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann8d341b52010-05-25 23:27:44 +00007352 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007353 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00007354 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007355 .block_erasers =
7356 {
7357 {
7358 .eraseblocks = { {64 * 1024, 8} },
7359 .block_erase = erase_sector_jedec,
7360 }, {
7361 .eraseblocks = { {512 * 1024, 1} },
7362 .block_erase = erase_chip_block_jedec,
7363 }
7364 },
Sean Nelson35727f72010-01-28 23:55:12 +00007365 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007366 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00007367 },
7368
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007369 {
7370 .vendor = "Winbond",
7371 .name = "W39V040C",
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00007372 .bustype = CHIP_BUSTYPE_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007373 .manufacture_id = WINBOND_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00007374 .model_id = W_39V040C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007375 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00007376 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007377 .feature_bits = FEATURE_EITHER_RESET,
7378 .tested = TEST_UNTESTED,
7379 .probe = probe_jedec,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00007380 .probe_timing = TIMING_FIXME,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007381 .block_erasers =
7382 {
7383 {
7384 .eraseblocks = { {64 * 1024, 8} },
7385 .block_erase = erase_sector_jedec,
7386 }, {
7387 .eraseblocks = { {512 * 1024, 1} },
7388 .block_erase = erase_chip_block_jedec,
7389 }
7390 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00007391 .printlock = printlock_w39v040c,
Sean Nelson35727f72010-01-28 23:55:12 +00007392 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007393 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00007394 },
7395
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007396 {
7397 .vendor = "Winbond",
7398 .name = "W39V040FA",
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00007399 .bustype = CHIP_BUSTYPE_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007400 .manufacture_id = WINBOND_ID,
7401 .model_id = W_39V040FA,
7402 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00007403 .page_size = 64 * 1024,
Michael Karcherc9b63412010-05-30 16:55:18 +00007404 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Uwe Hermann41787602010-05-30 17:50:16 +00007405 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007406 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00007407 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007408 .block_erasers =
7409 {
7410 {
7411 .eraseblocks = { {4 * 1024, 128} },
7412 .block_erase = erase_block_jedec,
7413 }, {
7414 .eraseblocks = { {64 * 1024, 8} },
7415 .block_erase = erase_sector_jedec,
7416 }, {
7417 .eraseblocks = { {512 * 1024, 1} },
7418 .block_erase = erase_chip_block_jedec,
7419 }
7420 },
Michael Karcherc9b63412010-05-30 16:55:18 +00007421 .printlock = printlock_sst_fwhub,
7422 .unlock = unlock_sst_fwhub,
Sean Nelson35727f72010-01-28 23:55:12 +00007423 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007424 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00007425 },
7426
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007427 {
7428 .vendor = "Winbond",
7429 .name = "W39V080A",
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00007430 .bustype = CHIP_BUSTYPE_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007431 .manufacture_id = WINBOND_ID,
7432 .model_id = W_39V080A,
7433 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +00007434 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007435 .feature_bits = FEATURE_EITHER_RESET,
7436 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007437 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00007438 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007439 .block_erasers =
7440 {
7441 {
7442 .eraseblocks = { {64 * 1024, 16} },
7443 .block_erase = erase_sector_jedec,
7444 }, {
7445 .eraseblocks = { {1024 * 1024, 1} },
7446 .block_erase = erase_chip_block_jedec,
7447 }
7448 },
Sean Nelson35727f72010-01-28 23:55:12 +00007449 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007450 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00007451 },
7452
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007453 {
7454 .vendor = "Winbond",
7455 .name = "W49F002U",
Urja Rannikko038a3122009-06-28 19:19:25 +00007456 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007457 .manufacture_id = WINBOND_ID,
7458 .model_id = W_49F002U,
7459 .total_size = 256,
7460 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00007461 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann51afebb2010-08-01 00:13:49 +00007462 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007463 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007464 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007465 .block_erasers =
7466 {
7467 {
7468 .eraseblocks = {
7469 {128 * 1024, 1},
7470 {96 * 1024, 1},
7471 {8 * 1024, 2},
7472 {16 * 1024, 1},
7473 },
7474 .block_erase = erase_sector_jedec,
7475 }, {
7476 .eraseblocks = { {256 * 1024, 1} },
7477 .block_erase = erase_chip_block_jedec,
7478 }
7479 },
Sean Nelson35727f72010-01-28 23:55:12 +00007480 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007481 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00007482 },
7483
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007484 {
7485 .vendor = "Winbond",
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +00007486 .name = "W49F020",
7487 .bustype = CHIP_BUSTYPE_PARALLEL,
7488 .manufacture_id = WINBOND_ID,
7489 .model_id = W_49F020,
7490 .total_size = 256,
7491 .page_size = 128,
7492 .feature_bits = FEATURE_EITHER_RESET,
7493 .tested = TEST_OK_PROBE,
7494 .probe = probe_jedec,
7495 .probe_timing = 10,
7496 .block_erasers =
7497 {
7498 {
7499 .eraseblocks = { {256 * 1024, 1} },
7500 .block_erase = erase_chip_block_jedec,
7501 }
7502 },
7503 .write = write_jedec_1,
7504 .read = read_memmapped,
7505 },
7506
7507 {
7508 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007509 .name = "W49V002A",
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00007510 .bustype = CHIP_BUSTYPE_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007511 .manufacture_id = WINBOND_ID,
7512 .model_id = W_49V002A,
7513 .total_size = 256,
7514 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00007515 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermannc2521ab2010-07-29 22:39:47 +00007516 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007517 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00007518 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007519 .block_erasers =
7520 {
7521 {
7522 .eraseblocks = {
7523 {64 * 1024, 3},
7524 {32 * 1024, 1},
7525 {8 * 1024, 2},
7526 {16 * 1024, 1},
7527 },
7528 .block_erase = erase_sector_jedec,
7529 }, {
7530 .eraseblocks = { {256 * 1024, 1} },
7531 .block_erase = erase_chip_block_jedec,
7532 }
7533 },
Sean Nelson35727f72010-01-28 23:55:12 +00007534 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007535 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00007536 },
7537
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007538 {
7539 .vendor = "Winbond",
7540 .name = "W49V002FA",
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00007541 .bustype = CHIP_BUSTYPE_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007542 .manufacture_id = WINBOND_ID,
7543 .model_id = W_49V002FA,
7544 .total_size = 256,
7545 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00007546 .feature_bits = FEATURE_EITHER_RESET,
Michael Karcherb90c2212010-03-24 22:56:14 +00007547 .tested = TEST_OK_PRW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007548 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007549 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007550 .block_erasers =
7551 {
7552 {
7553 .eraseblocks = {
7554 {64 * 1024, 3},
7555 {32 * 1024, 1},
7556 {8 * 1024, 2},
7557 {16 * 1024, 1},
7558 },
7559 .block_erase = erase_sector_jedec,
7560 }, {
7561 .eraseblocks = { {256 * 1024, 1} },
7562 .block_erase = erase_chip_block_jedec,
7563 }
7564 },
Sean Nelson35727f72010-01-28 23:55:12 +00007565 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007566 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00007567 },
7568
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007569 {
7570 .vendor = "Winbond",
7571 .name = "W39V080FA",
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00007572 .bustype = CHIP_BUSTYPE_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007573 .manufacture_id = WINBOND_ID,
7574 .model_id = W_39V080FA,
7575 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +00007576 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007577 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Uwe Hermannea5425b2010-05-30 17:00:19 +00007578 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00007579 .probe = probe_jedec,
7580 .probe_timing = TIMING_FIXME,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007581 .block_erasers =
7582 {
7583 {
7584 .eraseblocks = { {64 * 1024, 16}, },
7585 .block_erase = erase_sector_jedec,
7586 }, {
7587 .eraseblocks = { {1024 * 1024, 1} },
7588 .block_erase = erase_chip_block_jedec,
7589 }
7590 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00007591 .unlock = unlock_winbond_fwhub,
Sean Nelson35727f72010-01-28 23:55:12 +00007592 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007593 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00007594 },
7595
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007596 {
7597 .vendor = "Winbond",
7598 .name = "W39V080FA (dual mode)",
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00007599 .bustype = CHIP_BUSTYPE_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007600 .manufacture_id = WINBOND_ID,
7601 .model_id = W_39V080FA_DM,
7602 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00007603 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007604 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007605 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00007606 .probe = probe_jedec,
7607 .probe_timing = TIMING_FIXME,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007608 .block_erasers =
7609 {
7610 {
7611 .eraseblocks = { {64 * 1024, 8}, },
7612 .block_erase = erase_sector_jedec,
7613 }, {
7614 .eraseblocks = { {512 * 1024, 1} },
7615 .block_erase = erase_chip_block_jedec,
7616 }
7617 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00007618 .unlock = unlock_winbond_fwhub,
Sean Nelson35727f72010-01-28 23:55:12 +00007619 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007620 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00007621 },
7622
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007623 {
Daniel Lenskidf90d3a2010-07-22 11:44:38 +00007624 .vendor = "AMIC",
7625 .name = "unknown AMIC SPI chip",
7626 .bustype = CHIP_BUSTYPE_SPI,
7627 .manufacture_id = AMIC_ID,
7628 .model_id = GENERIC_DEVICE_ID,
7629 .total_size = 0,
7630 .page_size = 256,
7631 .tested = TEST_BAD_PREW,
7632 .probe = probe_spi_rdid4,
7633 .probe_timing = TIMING_ZERO,
7634 .write = NULL,
7635 .read = NULL,
7636 },
7637
7638 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007639 .vendor = "Atmel",
7640 .name = "unknown Atmel SPI chip",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00007641 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007642 .manufacture_id = ATMEL_ID,
7643 .model_id = GENERIC_DEVICE_ID,
7644 .total_size = 0,
7645 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00007646 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007647 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007648 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007649 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007650 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00007651 },
7652
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007653 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00007654 .vendor = "Eon",
7655 .name = "unknown Eon SPI chip",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00007656 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007657 .manufacture_id = EON_ID_NOPREFIX,
7658 .model_id = GENERIC_DEVICE_ID,
7659 .total_size = 0,
7660 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00007661 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007662 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007663 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007664 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007665 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00007666 },
7667
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007668 {
7669 .vendor = "Macronix",
7670 .name = "unknown Macronix SPI chip",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00007671 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007672 .manufacture_id = MX_ID,
7673 .model_id = GENERIC_DEVICE_ID,
7674 .total_size = 0,
7675 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00007676 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007677 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007678 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007679 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007680 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00007681 },
7682
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007683 {
7684 .vendor = "PMC",
7685 .name = "unknown PMC SPI chip",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00007686 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007687 .manufacture_id = PMC_ID,
7688 .model_id = GENERIC_DEVICE_ID,
7689 .total_size = 0,
7690 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00007691 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007692 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007693 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007694 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007695 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00007696 },
7697
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007698 {
7699 .vendor = "SST",
7700 .name = "unknown SST SPI chip",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00007701 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007702 .manufacture_id = SST_ID,
7703 .model_id = GENERIC_DEVICE_ID,
7704 .total_size = 0,
7705 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00007706 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007707 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007708 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007709 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007710 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00007711 },
7712
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007713 {
7714 .vendor = "ST",
7715 .name = "unknown ST SPI chip",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00007716 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007717 .manufacture_id = ST_ID,
7718 .model_id = GENERIC_DEVICE_ID,
7719 .total_size = 0,
7720 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00007721 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007722 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007723 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007724 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007725 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00007726 },
Uwe Hermannfc425e82008-03-16 02:06:25 +00007727
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00007728 {
Sean Nelson118e1d62009-11-24 02:08:11 +00007729 .vendor = "Sanyo",
7730 .name = "unknown Sanyo SPI chip",
7731 .bustype = CHIP_BUSTYPE_SPI,
7732 .manufacture_id = SANYO_ID,
7733 .model_id = GENERIC_DEVICE_ID,
7734 .total_size = 0,
7735 .page_size = 256,
7736 .tested = TEST_BAD_PREW,
7737 .probe = probe_spi_rdid,
7738 .probe_timing = TIMING_ZERO,
Sean Nelson118e1d62009-11-24 02:08:11 +00007739 .write = NULL,
7740 .read = NULL,
7741 },
7742
7743 {
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00007744 .vendor = "Generic",
7745 .name = "unknown SPI chip (RDID)",
7746 .bustype = CHIP_BUSTYPE_SPI,
7747 .manufacture_id = GENERIC_MANUF_ID,
7748 .model_id = GENERIC_DEVICE_ID,
7749 .total_size = 0,
7750 .page_size = 256,
7751 .tested = TEST_BAD_PREW,
7752 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00007753 .write = NULL,
7754 },
7755 {
7756 .vendor = "Generic",
7757 .name = "unknown SPI chip (REMS)",
7758 .bustype = CHIP_BUSTYPE_SPI,
7759 .manufacture_id = GENERIC_MANUF_ID,
7760 .model_id = GENERIC_DEVICE_ID,
7761 .total_size = 0,
7762 .page_size = 256,
7763 .tested = TEST_BAD_PREW,
7764 .probe = probe_spi_rems,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00007765 .write = NULL,
7766 },
7767
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007768 { NULL }
Stephan Guilloux72cf5652009-04-21 01:46:07 +00007769};