blob: 873b8f2a4c9cfe0ca018bb6f5d29403e0dffd270 [file] [log] [blame]
Ollie Lho184a4042005-11-26 21:55:36 +00001/*
Uwe Hermannd1107642007-08-29 17:52:32 +00002 * This file is part of the flashrom project.
Ollie Lho184a4042005-11-26 21:55:36 +00003 *
Uwe Hermannd22a1d42007-09-09 20:21:05 +00004 * Copyright (C) 2000 Silicon Integrated System Corporation
5 * Copyright (C) 2004 Tyan Corp
Stefan Reinauer4c390c82008-07-02 13:33:09 +00006 * Copyright (C) 2005-2008 coresystems GmbH <stepan@openbios.org>
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00007 * Copyright (C) 2006-2009 Carl-Daniel Hailfinger
Sean Nelsonc57a9202010-01-04 17:15:23 +00008 * Copyright (C) 2009 Sean Nelson <audiohacked@gmail.com>
Uwe Hermannd1107642007-08-29 17:52:32 +00009 *
Stefan Reinauerce532972007-05-23 17:20:56 +000010 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
Ollie Lho184a4042005-11-26 21:55:36 +000014 *
Stefan Reinauerce532972007-05-23 17:20:56 +000015 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
Ollie Lho184a4042005-11-26 21:55:36 +000019 *
Stefan Reinauerce532972007-05-23 17:20:56 +000020 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
Uwe Hermannd1107642007-08-29 17:52:32 +000022 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Ollie Lho184a4042005-11-26 21:55:36 +000023 */
24
25#include "flash.h"
Carl-Daniel Hailfinger08454642009-06-15 14:14:48 +000026#include "flashchips.h"
Sean Nelson14ba6682010-02-26 05:48:29 +000027#include "chipdrivers.h"
Ollie Lho184a4042005-11-26 21:55:36 +000028
Uwe Hermannfc425e82008-03-16 02:06:25 +000029/**
Uwe Hermanna9720402009-05-21 15:55:46 +000030 * List of supported flash chips.
Uwe Hermannfc425e82008-03-16 02:06:25 +000031 *
32 * Please keep the list sorted by vendor name and chip name, so that
33 * the output of 'flashrom -L' is alphabetically sorted.
34 */
Ollie Lho184a4042005-11-26 21:55:36 +000035struct flashchip flashchips[] = {
Uwe Hermannfc425e82008-03-16 02:06:25 +000036
Carl-Daniel Hailfinger21eedec2009-07-23 12:42:01 +000037 /*
38 * .vendor = Vendor name
39 * .name = Chip name
40 * .bustype = Supported flash bus types (Parallel, LPC...)
41 * .manufacture_id = Manufacturer chip ID
42 * .model_id = Model chip ID
43 * .total_size = Total size in (binary) kbytes
44 * .page_size = Page or eraseblock(?) size in bytes
45 * .tested = Test status
46 * .probe = Probe function
47 * .probe_timing = Probe function delay
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +000048 * .block_erasers[] = Array of erase layouts and erase functions
49 * {
50 * .eraseblocks[] = Array of { blocksize, blockcount }
51 * .block_erase = Block erase function
52 * }
Sean Nelson6e0b9122010-02-19 00:52:10 +000053 * .printlock = Chip lock status function
54 * .unlock = Chip unlock function
Carl-Daniel Hailfinger21eedec2009-07-23 12:42:01 +000055 * .write = Chip write function
56 * .read = Chip read function
FENG yu ningff692fb2008-12-08 18:15:10 +000057 */
58
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000059 {
60 .vendor = "AMD",
Uwe Hermanna8b37272009-06-19 15:54:39 +000061 .name = "Am29F010A/B",
62 .bustype = CHIP_BUSTYPE_PARALLEL,
63 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000064 .model_id = AMD_AM29F010B, /* Same as Am29F010A */
Uwe Hermanna8b37272009-06-19 15:54:39 +000065 .total_size = 128,
66 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000067 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000068 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +000069 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000070 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +000071 .block_erasers =
72 {
73 {
74 .eraseblocks = { {16 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +000075 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000076 }, {
77 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000078 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000079 },
80 },
Sean Nelson35727f72010-01-28 23:55:12 +000081 .write = write_jedec_1,
Uwe Hermanna8b37272009-06-19 15:54:39 +000082 .read = read_memmapped,
83 },
84
85 {
86 .vendor = "AMD",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000087 .name = "Am29F002(N)BB",
Urja Rannikko038a3122009-06-28 19:19:25 +000088 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000089 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000090 .model_id = AMD_AM29F002BB,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000091 .total_size = 256,
92 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000093 .feature_bits = FEATURE_SHORT_RESET | FEATURE_ADDR_2AA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000094 .tested = TEST_UNTESTED,
95 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000096 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +000097 .block_erasers =
98 {
99 {
100 .eraseblocks = {
101 {16 * 1024, 1},
102 {8 * 1024, 2},
103 {32 * 1024, 1},
104 {64 * 1024, 3},
105 },
106 .block_erase = erase_sector_jedec,
107 }, {
108 .eraseblocks = { {256 * 1024, 1} },
109 .block_erase = erase_chip_block_jedec,
110 },
111 },
Michael Karcher1c296ca2009-11-27 17:49:42 +0000112 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000113 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +0000114 },
115
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000116 {
117 .vendor = "AMD",
118 .name = "Am29F002(N)BT",
Urja Rannikko038a3122009-06-28 19:19:25 +0000119 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000120 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000121 .model_id = AMD_AM29F002BT,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000122 .total_size = 256,
123 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +0000124 .feature_bits = FEATURE_EITHER_RESET | FEATURE_ADDR_2AA,
125 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000126 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +0000127 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000128 .block_erasers =
129 {
130 {
131 .eraseblocks = {
132 {64 * 1024, 3},
133 {32 * 1024, 1},
134 {8 * 1024, 2},
135 {16 * 1024, 1},
136 },
137 .block_erase = erase_sector_jedec,
138 }, {
139 .eraseblocks = { {256 * 1024, 1} },
140 .block_erase = erase_chip_block_jedec,
141 },
142 },
Michael Karcher1c296ca2009-11-27 17:49:42 +0000143 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000144 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +0000145 },
146
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000147 {
148 .vendor = "AMD",
149 .name = "Am29F016D",
Urja Rannikko038a3122009-06-28 19:19:25 +0000150 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000151 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000152 .model_id = AMD_AM29F016D,
Sean Nelson72a9a022009-12-22 22:15:33 +0000153 .total_size = 2 * 1024,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000154 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000155 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000156 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +0000157 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000158 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000159 .block_erasers =
160 {
161 {
162 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson35727f72010-01-28 23:55:12 +0000163 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000164 }, {
165 .eraseblocks = { {2048 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000166 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000167 },
168 },
Sean Nelson35727f72010-01-28 23:55:12 +0000169 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000170 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +0000171 },
172
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000173 {
174 .vendor = "AMD",
175 .name = "Am29F040B",
Urja Rannikko038a3122009-06-28 19:19:25 +0000176 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000177 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000178 .model_id = AMD_AM29F040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000179 .total_size = 512,
180 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000181 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
182 .tested = TEST_UNTESTED,
183 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000184 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000185 .block_erasers =
186 {
187 {
188 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +0000189 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000190 }, {
191 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000192 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000193 },
194 },
Sean Nelson35727f72010-01-28 23:55:12 +0000195 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000196 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +0000197 },
198
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000199 {
200 .vendor = "AMD",
Peter Stuge8440cc02009-01-25 23:55:12 +0000201 .name = "Am29F080B",
Urja Rannikko038a3122009-06-28 19:19:25 +0000202 .bustype = CHIP_BUSTYPE_PARALLEL,
Mateusz Murawski5bae4382009-06-02 00:38:14 +0000203 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000204 .model_id = AMD_AM29F080B,
Peter Stuge8440cc02009-01-25 23:55:12 +0000205 .total_size = 1024,
206 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000207 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +0000208 .tested = TEST_UNTESTED,
209 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +0000210 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000211 .block_erasers =
212 {
213 {
214 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson35727f72010-01-28 23:55:12 +0000215 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000216 }, {
217 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000218 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000219 },
220 },
Sean Nelson35727f72010-01-28 23:55:12 +0000221 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000222 .read = read_memmapped,
Peter Stuge8440cc02009-01-25 23:55:12 +0000223 },
224
225 {
226 .vendor = "AMD",
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,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000230 .model_id = AMD_AM29LV040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000231 .total_size = 512,
232 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000233 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000234 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +0000235 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000236 .probe_timing = TIMING_ZERO,
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,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000256 .model_id = AMD_AM29LV080B,
Peter Stuge8440cc02009-01-25 23:55:12 +0000257 .total_size = 1024,
258 .page_size = 64 * 1024,
David Borg204f4652010-12-04 03:26:40 +0000259 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, /* datasheet specifies address as don't care */
Peter Stuge8440cc02009-01-25 23:55:12 +0000260 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +0000261 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000262 .probe_timing = TIMING_ZERO,
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,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000480 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000481 .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,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000512 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000513 .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,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000544 .tested = TEST_OK_PRE,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000545 .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,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000611 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000612 .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,
David Borg204f4652010-12-04 03:26:40 +0000901 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000902 .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,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000930 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000931 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000932 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000933 .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,
David Borg204f4652010-12-04 03:26:40 +0000963 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000964 .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,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000987 .tested = TEST_OK_PRE,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000988 .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 = "Atmel",
1007 .name = "AT25DF021",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001008 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001009 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001010 .model_id = ATMEL_AT25DF021,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001011 .total_size = 256,
1012 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001013 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001014 .tested = TEST_UNTESTED,
1015 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001016 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001017 .block_erasers =
1018 {
1019 {
1020 .eraseblocks = { {4 * 1024, 64} },
1021 .block_erase = spi_block_erase_20,
1022 }, {
1023 .eraseblocks = { {32 * 1024, 8} },
1024 .block_erase = spi_block_erase_52,
1025 }, {
1026 .eraseblocks = { {64 * 1024, 4} },
1027 .block_erase = spi_block_erase_d8,
1028 }, {
1029 .eraseblocks = { {256 * 1024, 1} },
1030 .block_erase = spi_block_erase_60,
1031 }, {
1032 .eraseblocks = { {256 * 1024, 1} },
1033 .block_erase = spi_block_erase_c7,
1034 }
1035 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001036 .printlock = spi_prettyprint_status_register_at25df,
1037 .unlock = spi_disable_blockprotect_at25df,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001038 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001039 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00001040 },
1041
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001042 {
1043 .vendor = "Atmel",
1044 .name = "AT25DF041A",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001045 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001046 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001047 .model_id = ATMEL_AT25DF041A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001048 .total_size = 512,
1049 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001050 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001051 .tested = TEST_UNTESTED,
1052 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001053 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001054 .block_erasers =
1055 {
1056 {
1057 .eraseblocks = { {4 * 1024, 128} },
1058 .block_erase = spi_block_erase_20,
1059 }, {
1060 .eraseblocks = { {32 * 1024, 16} },
1061 .block_erase = spi_block_erase_52,
1062 }, {
1063 .eraseblocks = { {64 * 1024, 8} },
1064 .block_erase = spi_block_erase_d8,
1065 }, {
1066 .eraseblocks = { {512 * 1024, 1} },
1067 .block_erase = spi_block_erase_60,
1068 }, {
1069 .eraseblocks = { {512 * 1024, 1} },
1070 .block_erase = spi_block_erase_c7,
1071 }
1072 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001073 .printlock = spi_prettyprint_status_register_at25df,
1074 .unlock = spi_disable_blockprotect_at25df,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001075 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001076 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00001077 },
1078
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001079 {
1080 .vendor = "Atmel",
1081 .name = "AT25DF081",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001082 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001083 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001084 .model_id = ATMEL_AT25DF081,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001085 .total_size = 1024,
1086 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001087 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001088 .tested = TEST_UNTESTED,
1089 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001090 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001091 .block_erasers =
1092 {
1093 {
1094 .eraseblocks = { {4 * 1024, 256} },
1095 .block_erase = spi_block_erase_20,
1096 }, {
1097 .eraseblocks = { {32 * 1024, 32} },
1098 .block_erase = spi_block_erase_52,
1099 }, {
1100 .eraseblocks = { {64 * 1024, 16} },
1101 .block_erase = spi_block_erase_d8,
1102 }, {
1103 .eraseblocks = { {1024 * 1024, 1} },
1104 .block_erase = spi_block_erase_60,
1105 }, {
1106 .eraseblocks = { {1024 * 1024, 1} },
1107 .block_erase = spi_block_erase_c7,
1108 }
1109 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001110 .printlock = spi_prettyprint_status_register_at25df,
1111 .unlock = spi_disable_blockprotect_at25df,
1112 .write = spi_chip_write_256,
1113 .read = spi_chip_read,
1114 },
1115
1116 {
1117 .vendor = "Atmel",
1118 .name = "AT25DF081A",
1119 .bustype = CHIP_BUSTYPE_SPI,
1120 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001121 .model_id = ATMEL_AT25DF081A,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001122 .total_size = 1024,
1123 .page_size = 256,
1124 .feature_bits = FEATURE_WRSR_WREN,
1125 .tested = TEST_UNTESTED,
1126 .probe = probe_spi_rdid,
1127 .probe_timing = TIMING_ZERO,
1128 .block_erasers =
1129 {
1130 {
1131 .eraseblocks = { {4 * 1024, 256} },
1132 .block_erase = spi_block_erase_20,
1133 }, {
1134 .eraseblocks = { {32 * 1024, 32} },
1135 .block_erase = spi_block_erase_52,
1136 }, {
1137 .eraseblocks = { {64 * 1024, 16} },
1138 .block_erase = spi_block_erase_d8,
1139 }, {
1140 .eraseblocks = { {1024 * 1024, 1} },
1141 .block_erase = spi_block_erase_60,
1142 }, {
1143 .eraseblocks = { {1024 * 1024, 1} },
1144 .block_erase = spi_block_erase_c7,
1145 }
1146 },
1147 .printlock = spi_prettyprint_status_register_at25df_sec,
1148 .unlock = spi_disable_blockprotect_at25df_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001149 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001150 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00001151 },
1152
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001153 {
1154 .vendor = "Atmel",
1155 .name = "AT25DF161",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001156 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001157 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001158 .model_id = ATMEL_AT25DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001159 .total_size = 2048,
1160 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001161 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001162 .tested = TEST_UNTESTED,
1163 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001164 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001165 .block_erasers =
1166 {
1167 {
1168 .eraseblocks = { {4 * 1024, 512} },
1169 .block_erase = spi_block_erase_20,
1170 }, {
1171 .eraseblocks = { {32 * 1024, 64} },
1172 .block_erase = spi_block_erase_52,
1173 }, {
1174 .eraseblocks = { {64 * 1024, 32} },
1175 .block_erase = spi_block_erase_d8,
1176 }, {
1177 .eraseblocks = { {2 * 1024 * 1024, 1} },
1178 .block_erase = spi_block_erase_60,
1179 }, {
1180 .eraseblocks = { {2 * 1024 * 1024, 1} },
1181 .block_erase = spi_block_erase_c7,
1182 }
1183 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001184 .printlock = spi_prettyprint_status_register_at25df_sec,
1185 .unlock = spi_disable_blockprotect_at25df_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001186 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001187 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00001188 },
1189
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001190 {
1191 .vendor = "Atmel",
1192 .name = "AT25DF321",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001193 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001194 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001195 .model_id = ATMEL_AT25DF321,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001196 .total_size = 4096,
1197 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001198 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00001199 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001200 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001201 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001202 .block_erasers =
1203 {
1204 {
1205 .eraseblocks = { {4 * 1024, 1024} },
1206 .block_erase = spi_block_erase_20,
1207 }, {
1208 .eraseblocks = { {32 * 1024, 128} },
1209 .block_erase = spi_block_erase_52,
1210 }, {
1211 .eraseblocks = { {64 * 1024, 64} },
1212 .block_erase = spi_block_erase_d8,
1213 }, {
1214 .eraseblocks = { {4 * 1024 * 1024, 1} },
1215 .block_erase = spi_block_erase_60,
1216 }, {
1217 .eraseblocks = { {4 * 1024 * 1024, 1} },
1218 .block_erase = spi_block_erase_c7,
1219 }
1220 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001221 .printlock = spi_prettyprint_status_register_at25df,
1222 .unlock = spi_disable_blockprotect_at25df,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001223 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001224 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00001225 },
1226
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001227 {
1228 .vendor = "Atmel",
1229 .name = "AT25DF321A",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001230 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001231 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001232 .model_id = ATMEL_AT25DF321A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001233 .total_size = 4096,
1234 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001235 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001236 .tested = TEST_UNTESTED,
1237 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001238 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001239 .block_erasers =
1240 {
1241 {
1242 .eraseblocks = { {4 * 1024, 1024} },
1243 .block_erase = spi_block_erase_20,
1244 }, {
1245 .eraseblocks = { {32 * 1024, 128} },
1246 .block_erase = spi_block_erase_52,
1247 }, {
1248 .eraseblocks = { {64 * 1024, 64} },
1249 .block_erase = spi_block_erase_d8,
1250 }, {
1251 .eraseblocks = { {4 * 1024 * 1024, 1} },
1252 .block_erase = spi_block_erase_60,
1253 }, {
1254 .eraseblocks = { {4 * 1024 * 1024, 1} },
1255 .block_erase = spi_block_erase_c7,
1256 }
1257 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001258 .printlock = spi_prettyprint_status_register_at25df_sec,
1259 .unlock = spi_disable_blockprotect_at25df_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001260 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001261 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00001262 },
1263
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001264 {
1265 .vendor = "Atmel",
1266 .name = "AT25DF641",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001267 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001268 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001269 .model_id = ATMEL_AT25DF641,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001270 .total_size = 8192,
1271 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001272 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001273 .tested = TEST_UNTESTED,
1274 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001275 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001276 .block_erasers =
1277 {
1278 {
1279 .eraseblocks = { {4 * 1024, 2048} },
1280 .block_erase = spi_block_erase_20,
1281 }, {
1282 .eraseblocks = { {32 * 1024, 256} },
1283 .block_erase = spi_block_erase_52,
1284 }, {
1285 .eraseblocks = { {64 * 1024, 128} },
1286 .block_erase = spi_block_erase_d8,
1287 }, {
1288 .eraseblocks = { {8 * 1024 * 1024, 1} },
1289 .block_erase = spi_block_erase_60,
1290 }, {
1291 .eraseblocks = { {8 * 1024 * 1024, 1} },
1292 .block_erase = spi_block_erase_c7,
1293 }
1294 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001295 .printlock = spi_prettyprint_status_register_at25df_sec,
1296 .unlock = spi_disable_blockprotect_at25df_sec,
1297 .write = spi_chip_write_256,
1298 .read = spi_chip_read,
1299 },
1300
1301 {
1302 .vendor = "Atmel",
1303 .name = "AT25DQ161",
1304 .bustype = CHIP_BUSTYPE_SPI,
1305 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001306 .model_id = ATMEL_AT25DQ161,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001307 .total_size = 2048,
1308 .page_size = 256,
1309 .feature_bits = FEATURE_WRSR_WREN,
1310 .tested = TEST_UNTESTED,
1311 .probe = probe_spi_rdid,
1312 .probe_timing = TIMING_ZERO,
1313 .block_erasers =
1314 {
1315 {
1316 .eraseblocks = { {4 * 1024, 512} },
1317 .block_erase = spi_block_erase_20,
1318 }, {
1319 .eraseblocks = { {32 * 1024, 64} },
1320 .block_erase = spi_block_erase_52,
1321 }, {
1322 .eraseblocks = { {64 * 1024, 32} },
1323 .block_erase = spi_block_erase_d8,
1324 }, {
1325 .eraseblocks = { {2 * 1024 * 1024, 1} },
1326 .block_erase = spi_block_erase_60,
1327 }, {
1328 .eraseblocks = { {2 * 1024 * 1024, 1} },
1329 .block_erase = spi_block_erase_c7,
1330 }
1331 },
1332 .printlock = spi_prettyprint_status_register_at25df_sec,
1333 .unlock = spi_disable_blockprotect_at25df_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001334 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001335 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00001336 },
1337
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001338 {
1339 .vendor = "Atmel",
1340 .name = "AT25F512B",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001341 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001342 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001343 .model_id = ATMEL_AT25F512B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001344 .total_size = 64,
1345 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001346 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001347 .tested = TEST_UNTESTED,
1348 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001349 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001350 .block_erasers =
1351 {
1352 {
1353 .eraseblocks = { {4 * 1024, 16} },
1354 .block_erase = spi_block_erase_20,
1355 }, {
1356 .eraseblocks = { {32 * 1024, 2} },
1357 .block_erase = spi_block_erase_52,
1358 }, {
1359 .eraseblocks = { {32 * 1024, 2} },
1360 .block_erase = spi_block_erase_d8,
1361 }, {
1362 .eraseblocks = { {64 * 1024, 1} },
1363 .block_erase = spi_block_erase_60,
1364 }, {
1365 .eraseblocks = { {64 * 1024, 1} },
1366 .block_erase = spi_block_erase_c7,
1367 }
1368 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001369 .printlock = spi_prettyprint_status_register_at25f,
1370 .unlock = spi_disable_blockprotect_at25f,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001371 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001372 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00001373 },
1374
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001375 {
1376 .vendor = "Atmel",
1377 .name = "AT25FS010",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001378 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001379 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001380 .model_id = ATMEL_AT25FS010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001381 .total_size = 128,
1382 .page_size = 256,
1383 .tested = TEST_UNTESTED,
1384 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001385 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001386 .block_erasers =
1387 {
1388 {
1389 .eraseblocks = { {4 * 1024, 32} },
1390 .block_erase = spi_block_erase_20,
1391 }, {
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001392 .eraseblocks = { {4 * 1024, 32} },
1393 .block_erase = spi_block_erase_d7,
1394 }, {
Sean Nelson89187292009-12-23 12:02:55 +00001395 .eraseblocks = { {32 * 1024, 4} },
1396 .block_erase = spi_block_erase_52,
1397 }, {
1398 .eraseblocks = { {32 * 1024, 4} },
1399 .block_erase = spi_block_erase_d8,
1400 }, {
1401 .eraseblocks = { {128 * 1024, 1} },
1402 .block_erase = spi_block_erase_60,
1403 }, {
1404 .eraseblocks = { {128 * 1024, 1} },
1405 .block_erase = spi_block_erase_c7,
1406 }
1407 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001408 .printlock = spi_prettyprint_status_register_at25fs010,
1409 .unlock = spi_disable_blockprotect_at25fs010,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001410 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001411 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00001412 },
1413
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001414 {
1415 .vendor = "Atmel",
1416 .name = "AT25FS040",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001417 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001418 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001419 .model_id = ATMEL_AT25FS040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001420 .total_size = 512,
1421 .page_size = 256,
1422 .tested = TEST_UNTESTED,
1423 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001424 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001425 .block_erasers =
1426 {
1427 {
1428 .eraseblocks = { {4 * 1024, 128} },
1429 .block_erase = spi_block_erase_20,
1430 }, {
1431 .eraseblocks = { {64 * 1024, 8} },
1432 .block_erase = spi_block_erase_52,
1433 }, {
1434 .eraseblocks = { {64 * 1024, 8} },
1435 .block_erase = spi_block_erase_d8,
1436 }, {
1437 .eraseblocks = { {512 * 1024, 1} },
1438 .block_erase = spi_block_erase_60,
1439 }, {
1440 .eraseblocks = { {512 * 1024, 1} },
1441 .block_erase = spi_block_erase_c7,
1442 }
1443 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001444 .printlock = spi_prettyprint_status_register_at25fs040,
1445 .unlock = spi_disable_blockprotect_at25fs040,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001446 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001447 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00001448 },
1449
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001450 {
1451 .vendor = "Atmel",
1452 .name = "AT26DF041",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001453 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001454 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001455 .model_id = ATMEL_AT26DF041,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001456 .total_size = 512,
1457 .page_size = 256,
1458 .tested = TEST_UNTESTED,
1459 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001460 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001461 .block_erasers =
1462 {
1463 {
1464 .eraseblocks = { {4 * 1024, 128} },
1465 .block_erase = spi_block_erase_20,
1466 }
1467 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001468 .write = NULL /* Incompatible Page write */,
1469 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00001470 },
1471
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001472 {
1473 .vendor = "Atmel",
1474 .name = "AT26DF081A",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001475 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001476 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001477 .model_id = ATMEL_AT26DF081A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001478 .total_size = 1024,
1479 .page_size = 256,
Mathias Krause2c3afa32011-01-17 07:45:54 +00001480 .feature_bits = FEATURE_WRSR_WREN,
1481 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001482 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001483 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001484 .block_erasers =
1485 {
1486 {
1487 .eraseblocks = { {4 * 1024, 256} },
1488 .block_erase = spi_block_erase_20,
1489 }, {
1490 .eraseblocks = { {32 * 1024, 32} },
1491 .block_erase = spi_block_erase_52,
1492 }, {
1493 .eraseblocks = { {64 * 1024, 16} },
1494 .block_erase = spi_block_erase_d8,
1495 }, {
1496 .eraseblocks = { {1024 * 1024, 1} },
1497 .block_erase = spi_block_erase_60,
1498 }, {
1499 .eraseblocks = { {1024 * 1024, 1} },
1500 .block_erase = spi_block_erase_c7,
1501 }
1502 },
Mathias Krause2c3afa32011-01-17 07:45:54 +00001503 .unlock = spi_disable_blockprotect_at25df,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001504 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001505 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00001506 },
1507
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001508 {
1509 .vendor = "Atmel",
1510 .name = "AT26DF161",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001511 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001512 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001513 .model_id = ATMEL_AT26DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001514 .total_size = 2048,
1515 .page_size = 256,
1516 .tested = TEST_UNTESTED,
1517 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001518 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001519 .block_erasers =
1520 {
1521 {
1522 .eraseblocks = { {4 * 1024, 512} },
1523 .block_erase = spi_block_erase_20,
1524 }, {
1525 .eraseblocks = { {32 * 1024, 64} },
1526 .block_erase = spi_block_erase_52,
1527 }, {
1528 .eraseblocks = { {64 * 1024, 32} },
1529 .block_erase = spi_block_erase_d8,
1530 }, {
1531 .eraseblocks = { {2 * 1024 * 1024, 1} },
1532 .block_erase = spi_block_erase_60,
1533 }, {
1534 .eraseblocks = { {2 * 1024 * 1024, 1} },
1535 .block_erase = spi_block_erase_c7,
1536 }
1537 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00001538 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001539 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001540 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00001541 },
1542
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001543 {
1544 .vendor = "Atmel",
1545 .name = "AT26DF161A",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001546 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001547 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001548 .model_id = ATMEL_AT26DF161A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001549 .total_size = 2048,
1550 .page_size = 256,
1551 .tested = TEST_UNTESTED,
1552 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001553 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001554 .block_erasers =
1555 {
1556 {
1557 .eraseblocks = { {4 * 1024, 512} },
1558 .block_erase = spi_block_erase_20,
1559 }, {
1560 .eraseblocks = { {32 * 1024, 64} },
1561 .block_erase = spi_block_erase_52,
1562 }, {
1563 .eraseblocks = { {64 * 1024, 32} },
1564 .block_erase = spi_block_erase_d8,
1565 }, {
1566 .eraseblocks = { {2 * 1024 * 1024, 1} },
1567 .block_erase = spi_block_erase_60,
1568 }, {
1569 .eraseblocks = { {2 * 1024 * 1024, 1} },
1570 .block_erase = spi_block_erase_c7,
1571 }
1572 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00001573 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001574 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001575 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00001576 },
1577
1578 /*The AT26DF321 has the same ID as the AT25DF321. */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001579 /*{
1580 .vendor = "Atmel",
1581 .name = "AT26DF321",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001582 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001583 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001584 .model_id = ATMEL_AT26DF321,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001585 .total_size = 4096,
1586 .page_size = 256,
1587 .tested = TEST_UNTESTED,
1588 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001589 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00001590 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001591 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001592 .read = spi_chip_read,
1593 },*/
FENG yu ningff692fb2008-12-08 18:15:10 +00001594
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001595 {
1596 .vendor = "Atmel",
1597 .name = "AT26F004",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001598 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001599 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001600 .model_id = ATMEL_AT26F004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001601 .total_size = 512,
1602 .page_size = 256,
1603 .tested = TEST_UNTESTED,
1604 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001605 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001606 .block_erasers =
1607 {
1608 {
1609 .eraseblocks = { {4 * 1024, 128} },
1610 .block_erase = spi_block_erase_20,
1611 }, {
1612 .eraseblocks = { {32 * 1024, 16} },
1613 .block_erase = spi_block_erase_52,
1614 }, {
1615 .eraseblocks = { {64 * 1024, 8} },
1616 .block_erase = spi_block_erase_d8,
1617 }, {
1618 .eraseblocks = { {512 * 1024, 1} },
1619 .block_erase = spi_block_erase_60,
1620 }, {
1621 .eraseblocks = { {512 * 1024, 1} },
1622 .block_erase = spi_block_erase_c7,
1623 }
1624 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001625 .write = NULL /* Incompatible Page write */,
1626 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00001627 },
1628
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001629 {
1630 .vendor = "Atmel",
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00001631 .name = "AT29C512",
Urja Rannikko038a3122009-06-28 19:19:25 +00001632 .bustype = CHIP_BUSTYPE_PARALLEL,
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00001633 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001634 .model_id = ATMEL_AT29C512,
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00001635 .total_size = 64,
1636 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00001637 .feature_bits = FEATURE_LONG_RESET,
1638 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00001639 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00001640 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00001641 .block_erasers =
1642 {
1643 {
1644 .eraseblocks = { {64 * 1024, 1} },
1645 .block_erase = erase_chip_block_jedec,
1646 }
1647 },
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00001648 .write = write_jedec,
1649 .read = read_memmapped,
1650
1651 },
1652
1653 {
1654 .vendor = "Atmel",
Uwe Hermann8403ccb2009-05-16 21:39:19 +00001655 .name = "AT29C010A",
Urja Rannikko161b8852009-06-05 08:47:37 +00001656 .bustype = CHIP_BUSTYPE_PARALLEL,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00001657 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001658 .model_id = ATMEL_AT29C010A,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00001659 .total_size = 128,
1660 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00001661 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00001662 .tested = TEST_OK_PRE,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00001663 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00001664 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00001665 .block_erasers =
1666 {
1667 {
1668 .eraseblocks = { {128 * 1024, 1} },
1669 .block_erase = erase_chip_block_jedec,
1670 }
1671 },
Uwe Hermann8403ccb2009-05-16 21:39:19 +00001672 .write = write_jedec, /* FIXME */
1673 .read = read_memmapped,
1674 },
1675
1676 {
1677 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001678 .name = "AT29C020",
Urja Rannikko161b8852009-06-05 08:47:37 +00001679 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001680 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001681 .model_id = ATMEL_AT29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001682 .total_size = 256,
1683 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00001684 .feature_bits = FEATURE_LONG_RESET,
1685 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001686 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00001687 .probe_timing = 10000, /* 10ms */
Sean Nelson89187292009-12-23 12:02:55 +00001688 .block_erasers =
1689 {
1690 {
1691 .eraseblocks = { {256 * 1024, 1} },
1692 .block_erase = erase_chip_block_jedec,
1693 }
1694 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001695 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00001696 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00001697 },
1698
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001699 {
1700 .vendor = "Atmel",
1701 .name = "AT29C040A",
Urja Rannikko161b8852009-06-05 08:47:37 +00001702 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001703 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001704 .model_id = ATMEL_AT29C040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001705 .total_size = 512,
1706 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00001707 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001708 .tested = TEST_UNTESTED,
1709 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00001710 .probe_timing = 10000, /* 10 ms */
Sean Nelson89187292009-12-23 12:02:55 +00001711 .block_erasers =
1712 {
1713 {
1714 .eraseblocks = { {512 * 1024, 1} },
1715 .block_erase = erase_chip_block_jedec,
1716 }
1717 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001718 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00001719 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00001720 },
1721
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001722 {
1723 .vendor = "Atmel",
1724 .name = "AT45CS1282",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001725 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001726 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001727 .model_id = ATMEL_AT45CS1282,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00001728 .total_size = 16896 /* No power of two sizes */,
1729 .page_size = 1056 /* No power of two sizes */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001730 .tested = TEST_BAD_READ,
1731 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001732 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001733 .write = NULL /* Incompatible Page write */,
1734 .read = NULL /* Incompatible read */,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00001735 },
FENG yu ningff692fb2008-12-08 18:15:10 +00001736
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001737 {
1738 .vendor = "Atmel",
1739 .name = "AT45DB011D",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001740 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001741 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001742 .model_id = ATMEL_AT45DB011D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00001743 .total_size = 128 /* Size can only be determined from status register */,
1744 .page_size = 256 /* Size can only be determined from status register */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001745 .tested = TEST_BAD_READ,
1746 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001747 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001748 .write = NULL,
1749 .read = NULL,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00001750 },
FENG yu ningff692fb2008-12-08 18:15:10 +00001751
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001752 {
1753 .vendor = "Atmel",
1754 .name = "AT45DB021D",
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,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001757 .model_id = ATMEL_AT45DB021D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00001758 .total_size = 256 /* Size can only be determined from status register */,
1759 .page_size = 256 /* Size can only be determined from status register */,
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,
1764 .read = NULL,
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 = "AT45DB041D",
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,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001772 .model_id = ATMEL_AT45DB041D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00001773 .total_size = 512 /* 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 = "AT45DB081D",
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,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001787 .model_id = ATMEL_AT45DB081D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00001788 .total_size = 1024 /* 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 = "AT45DB161D",
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,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001802 .model_id = ATMEL_AT45DB161D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00001803 .total_size = 2048 /* Size can only be determined from status register */,
1804 .page_size = 512 /* 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 = "AT45DB321C",
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,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001817 .model_id = ATMEL_AT45DB321C,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00001818 .total_size = 4224 /* No power of two sizes */,
1819 .page_size = 528 /* No power of two sizes */,
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 /* Incompatible read */,
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 = "AT45DB321D",
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,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001832 .model_id = ATMEL_AT45DB321D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00001833 .total_size = 4096 /* 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 = "AT45DB642D",
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,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001847 .model_id = ATMEL_AT45DB642D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00001848 .total_size = 8192 /* Size can only be determined from status register */,
1849 .page_size = 1024 /* Size can only be determined from status register */,
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,
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",
Uwe Hermannb4dcb712009-05-13 11:36:06 +00001859 .name = "AT49BV512",
Urja Rannikko161b8852009-06-05 08:47:37 +00001860 .bustype = CHIP_BUSTYPE_PARALLEL,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00001861 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001862 .model_id = ATMEL_AT49BV512,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00001863 .total_size = 64,
1864 .page_size = 64,
Sean Nelson35727f72010-01-28 23:55:12 +00001865 .feature_bits = FEATURE_EITHER_RESET,
1866 .tested = TEST_UNTESTED,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00001867 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00001868 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00001869 .block_erasers =
1870 {
1871 {
1872 .eraseblocks = { {64 * 1024, 1} },
1873 .block_erase = erase_chip_block_jedec,
1874 }
1875 },
Sean Nelson35727f72010-01-28 23:55:12 +00001876 .write = write_jedec_1,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00001877 .read = read_memmapped,
1878 },
1879
1880 {
1881 .vendor = "Atmel",
Andrew Morgan1a5eaa12010-06-07 14:10:55 +00001882 .name = "AT49F020",
1883 .bustype = CHIP_BUSTYPE_PARALLEL,
1884 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001885 .model_id = ATMEL_AT49F020,
Andrew Morgan1a5eaa12010-06-07 14:10:55 +00001886 .total_size = 256,
1887 .page_size = 256,
1888 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00001889 .tested = TEST_OK_PRE,
Andrew Morgan1a5eaa12010-06-07 14:10:55 +00001890 .probe = probe_jedec,
1891 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
1892 .block_erasers =
1893 {
1894 {
1895 .eraseblocks = { {256 * 1024, 1} },
1896 .block_erase = erase_chip_block_jedec,
1897 }
1898 },
1899 .write = write_jedec_1,
1900 .read = read_memmapped,
1901 },
1902
1903 {
1904 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001905 .name = "AT49F002(N)",
Urja Rannikko161b8852009-06-05 08:47:37 +00001906 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001907 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001908 .model_id = ATMEL_AT49F002N,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001909 .total_size = 256,
1910 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00001911 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001912 .tested = TEST_UNTESTED,
1913 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00001914 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00001915 .block_erasers =
1916 {
1917 {
1918 .eraseblocks = {
1919 {16 * 1024, 1},
1920 {8 * 1024, 2},
1921 {96 * 1024, 1},
1922 {128 * 1024, 1},
1923 },
1924 .block_erase = erase_sector_jedec,
1925 }, {
1926 .eraseblocks = { {256 * 1024, 1} },
1927 .block_erase = erase_chip_block_jedec,
1928 }
1929 },
Sean Nelson35727f72010-01-28 23:55:12 +00001930 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00001931 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00001932 },
1933
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001934 {
1935 .vendor = "Atmel",
1936 .name = "AT49F002(N)T",
Urja Rannikko161b8852009-06-05 08:47:37 +00001937 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001938 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001939 .model_id = ATMEL_AT49F002NT,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001940 .total_size = 256,
1941 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00001942 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00001943 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001944 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00001945 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00001946 .block_erasers =
1947 {
1948 {
1949 .eraseblocks = {
1950 {128 * 1024, 1},
1951 {96 * 1024, 1},
1952 {8 * 1024, 2},
1953 {16 * 1024, 1},
1954 },
1955 .block_erase = erase_sector_jedec,
1956 }, {
1957 .eraseblocks = { {256 * 1024, 1} },
1958 .block_erase = erase_chip_block_jedec,
1959 }
1960 },
Sean Nelson35727f72010-01-28 23:55:12 +00001961 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00001962 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00001963 },
1964
Daniel Lenskidf90d3a2010-07-22 11:44:38 +00001965 {
Joshua Roysf1324e02010-09-16 00:51:51 +00001966 .vendor = "Bright",
1967 .name = "BM29F040",
1968 .bustype = CHIP_BUSTYPE_PARALLEL,
1969 .manufacture_id = BRIGHT_ID,
1970 .model_id = BRIGHT_BM29F040,
1971 .total_size = 512,
1972 .page_size = 64 * 1024,
1973 .feature_bits = FEATURE_EITHER_RESET,
1974 .tested = TEST_OK_PR,
1975 .probe = probe_jedec,
1976 .probe_timing = TIMING_ZERO,
1977 .block_erasers =
1978 {
1979 {
1980 .eraseblocks = { {64 * 1024, 8} },
1981 .block_erase = erase_sector_jedec,
1982 }, {
1983 .eraseblocks = { {512 * 1024, 1} },
1984 .block_erase = erase_chip_block_jedec,
1985 },
1986 },
1987 .write = write_jedec_1,
1988 .read = read_memmapped,
1989 },
1990
1991 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001992 .vendor = "EMST",
1993 .name = "F49B002UA",
Urja Rannikko161b8852009-06-05 08:47:37 +00001994 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001995 .manufacture_id = EMST_ID,
1996 .model_id = EMST_F49B002UA,
1997 .total_size = 256,
1998 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00001999 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002000 .tested = TEST_UNTESTED,
2001 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002002 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00002003 .block_erasers =
2004 {
2005 {
2006 .eraseblocks = {
2007 {128 * 1024, 1},
2008 {96 * 1024, 1},
2009 {8 * 1024, 2},
2010 {16 * 1024, 1},
2011 },
2012 .block_erase = erase_sector_jedec,
2013 }, {
2014 .eraseblocks = { {256 * 1024, 1} },
2015 .block_erase = erase_chip_block_jedec,
2016 }
2017 },
Sean Nelson35727f72010-01-28 23:55:12 +00002018 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002019 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00002020 },
2021
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002022 {
Michael Karcher80a59ea2010-06-19 22:06:35 +00002023 .vendor = "EMST",
2024 .name = "F25L008A",
2025 .bustype = CHIP_BUSTYPE_SPI,
2026 .manufacture_id = EMST_ID,
2027 .model_id = EMST_F25L008A,
2028 .total_size = 1024,
2029 .page_size = 256,
2030 .tested = TEST_UNTESTED,
2031 .probe = probe_spi_rdid,
2032 .probe_timing = TIMING_ZERO,
2033 .block_erasers =
2034 {
2035 {
2036 .eraseblocks = { {4 * 1024, 256} },
2037 .block_erase = spi_block_erase_20,
2038 }, {
2039 .eraseblocks = { {64 * 1024, 16} },
2040 .block_erase = spi_block_erase_d8,
2041 }, {
2042 .eraseblocks = { {1024 * 1024, 1} },
2043 .block_erase = spi_block_erase_60,
2044 }, {
2045 .eraseblocks = { {1024 * 1024, 1} },
2046 .block_erase = spi_block_erase_c7,
2047 }
2048 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002049 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger9a795d82010-07-14 16:19:05 +00002050 .write = spi_chip_write_1,
Michael Karcher4497e862010-07-10 19:34:15 +00002051 .read = spi_chip_read,
Michael Karcher80a59ea2010-06-19 22:06:35 +00002052 },
2053
2054 {
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002055 .vendor = "Eon",
2056 .name = "EN25B05",
2057 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002058 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002059 .model_id = EON_EN25B05,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002060 .total_size = 64,
2061 .page_size = 256,
2062 .tested = TEST_UNTESTED,
2063 .probe = probe_spi_rdid,
2064 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002065 .block_erasers =
2066 {
2067 {
2068 .eraseblocks = {
2069 {4 * 1024, 2},
2070 {8 * 1024, 1},
2071 {16 * 1024, 1},
2072 {32 * 1024, 1},
2073 },
2074 .block_erase = spi_block_erase_d8,
2075 }, {
2076 .eraseblocks = { {64 * 1024, 1} },
2077 .block_erase = spi_block_erase_c7,
2078 }
2079 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002080 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002081 .write = spi_chip_write_256,
2082 .read = spi_chip_read,
2083 },
2084
2085 {
2086 .vendor = "Eon",
2087 .name = "EN25B05T",
2088 .bustype = CHIP_BUSTYPE_SPI,
2089 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002090 .model_id = EON_EN25B05,
Sean Nelson54596372010-01-09 05:30:14 +00002091 .total_size = 64,
2092 .page_size = 256,
2093 .tested = TEST_UNTESTED,
2094 .probe = probe_spi_rdid,
2095 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002096 .block_erasers =
2097 {
2098 {
2099 .eraseblocks = {
2100 {32 * 1024, 1},
2101 {16 * 1024, 1},
2102 {8 * 1024, 1},
2103 {4 * 1024, 2},
2104 },
2105 .block_erase = spi_block_erase_d8,
2106 }, {
2107 .eraseblocks = { {64 * 1024, 1} },
2108 .block_erase = spi_block_erase_c7,
2109 }
2110 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002111 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002112 .write = spi_chip_write_256,
2113 .read = spi_chip_read,
2114 },
2115
2116 {
2117 .vendor = "Eon",
2118 .name = "EN25B10",
2119 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002120 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002121 .model_id = EON_EN25B10,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002122 .total_size = 128,
2123 .page_size = 256,
2124 .tested = TEST_UNTESTED,
2125 .probe = probe_spi_rdid,
2126 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002127 .block_erasers =
2128 {
2129 {
2130 .eraseblocks = {
2131 {4 * 1024, 2},
2132 {8 * 1024, 1},
2133 {16 * 1024, 1},
2134 {32 * 1024, 3},
2135 },
2136 .block_erase = spi_block_erase_d8,
2137 }, {
2138 .eraseblocks = { {128 * 1024, 1} },
2139 .block_erase = spi_block_erase_c7,
2140 }
2141 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002142 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002143 .write = spi_chip_write_256,
2144 .read = spi_chip_read,
2145 },
2146
2147 {
2148 .vendor = "Eon",
2149 .name = "EN25B10T",
2150 .bustype = CHIP_BUSTYPE_SPI,
2151 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002152 .model_id = EON_EN25B10,
Sean Nelson54596372010-01-09 05:30:14 +00002153 .total_size = 128,
2154 .page_size = 256,
2155 .tested = TEST_UNTESTED,
2156 .probe = probe_spi_rdid,
2157 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002158 .block_erasers =
2159 {
2160 {
2161 .eraseblocks = {
2162 {32 * 1024, 3},
2163 {16 * 1024, 1},
2164 {8 * 1024, 1},
2165 {4 * 1024, 2},
2166 },
2167 .block_erase = spi_block_erase_d8,
2168 }, {
2169 .eraseblocks = { {128 * 1024, 1} },
2170 .block_erase = spi_block_erase_c7,
2171 }
2172 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002173 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002174 .write = spi_chip_write_256,
2175 .read = spi_chip_read,
2176 },
2177
2178 {
2179 .vendor = "Eon",
2180 .name = "EN25B20",
2181 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002182 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002183 .model_id = EON_EN25B20,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002184 .total_size = 256,
2185 .page_size = 256,
2186 .tested = TEST_UNTESTED,
2187 .probe = probe_spi_rdid,
2188 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002189 .block_erasers =
2190 {
2191 {
2192 .eraseblocks = {
2193 {4 * 1024, 2},
2194 {8 * 1024, 1},
2195 {16 * 1024, 1},
2196 {32 * 1024, 1},
2197 {64 * 1024, 3}
2198 },
2199 .block_erase = spi_block_erase_d8,
2200 }, {
2201 .eraseblocks = { {256 * 1024, 1} },
2202 .block_erase = spi_block_erase_c7,
2203 }
2204 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002205 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002206 .write = spi_chip_write_256,
2207 .read = spi_chip_read,
2208 },
2209
2210 {
2211 .vendor = "Eon",
2212 .name = "EN25B20T",
2213 .bustype = CHIP_BUSTYPE_SPI,
2214 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002215 .model_id = EON_EN25B20,
Sean Nelson54596372010-01-09 05:30:14 +00002216 .total_size = 256,
2217 .page_size = 256,
2218 .tested = TEST_UNTESTED,
2219 .probe = probe_spi_rdid,
2220 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002221 .block_erasers =
2222 {
2223 {
2224 .eraseblocks = {
2225 {64 * 1024, 3},
2226 {32 * 1024, 1},
2227 {16 * 1024, 1},
2228 {8 * 1024, 1},
2229 {4 * 1024, 2},
2230 },
2231 .block_erase = spi_block_erase_d8,
2232 }, {
2233 .eraseblocks = { {256 * 1024, 1} },
2234 .block_erase = spi_block_erase_c7,
2235 }
2236 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002237 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002238 .write = spi_chip_write_256,
2239 .read = spi_chip_read,
2240 },
2241
2242 {
2243 .vendor = "Eon",
2244 .name = "EN25B40",
2245 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002246 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002247 .model_id = EON_EN25B40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002248 .total_size = 512,
2249 .page_size = 256,
2250 .tested = TEST_UNTESTED,
2251 .probe = probe_spi_rdid,
2252 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002253 .block_erasers =
2254 {
2255 {
2256 .eraseblocks = {
2257 {4 * 1024, 2},
2258 {8 * 1024, 1},
2259 {16 * 1024, 1},
2260 {32 * 1024, 1},
2261 {64 * 1024, 7}
2262 },
2263 .block_erase = spi_block_erase_d8,
2264 }, {
2265 .eraseblocks = { {512 * 1024, 1} },
2266 .block_erase = spi_block_erase_c7,
2267 }
2268 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002269 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002270 .write = spi_chip_write_256,
2271 .read = spi_chip_read,
2272 },
2273
2274 {
2275 .vendor = "Eon",
2276 .name = "EN25B40T",
2277 .bustype = CHIP_BUSTYPE_SPI,
2278 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002279 .model_id = EON_EN25B40,
Sean Nelson54596372010-01-09 05:30:14 +00002280 .total_size = 512,
2281 .page_size = 256,
2282 .tested = TEST_UNTESTED,
2283 .probe = probe_spi_rdid,
2284 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002285 .block_erasers =
2286 {
2287 {
2288 .eraseblocks = {
2289 {64 * 1024, 7},
2290 {32 * 1024, 1},
2291 {16 * 1024, 1},
2292 {8 * 1024, 1},
2293 {4 * 1024, 2},
2294 },
2295 .block_erase = spi_block_erase_d8,
2296 }, {
2297 .eraseblocks = { {512 * 1024, 1} },
2298 .block_erase = spi_block_erase_c7,
2299 }
2300 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002301 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002302 .write = spi_chip_write_256,
2303 .read = spi_chip_read,
2304 },
2305
2306 {
2307 .vendor = "Eon",
2308 .name = "EN25B80",
2309 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002310 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002311 .model_id = EON_EN25B80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002312 .total_size = 1024,
2313 .page_size = 256,
2314 .tested = TEST_UNTESTED,
2315 .probe = probe_spi_rdid,
2316 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002317 .block_erasers =
2318 {
2319 {
2320 .eraseblocks = {
2321 {4 * 1024, 2},
2322 {8 * 1024, 1},
2323 {16 * 1024, 1},
2324 {32 * 1024, 1},
2325 {64 * 1024, 15}
2326 },
2327 .block_erase = spi_block_erase_d8,
2328 }, {
2329 .eraseblocks = { {1024 * 1024, 1} },
2330 .block_erase = spi_block_erase_c7,
2331 }
2332 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002333 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002334 .write = spi_chip_write_256,
2335 .read = spi_chip_read,
2336 },
2337
2338 {
2339 .vendor = "Eon",
2340 .name = "EN25B80T",
2341 .bustype = CHIP_BUSTYPE_SPI,
2342 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002343 .model_id = EON_EN25B80,
Sean Nelson54596372010-01-09 05:30:14 +00002344 .total_size = 1024,
2345 .page_size = 256,
2346 .tested = TEST_UNTESTED,
2347 .probe = probe_spi_rdid,
2348 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002349 .block_erasers =
2350 {
2351 {
2352 .eraseblocks = {
2353 {64 * 1024, 15},
2354 {32 * 1024, 1},
2355 {16 * 1024, 1},
2356 {8 * 1024, 1},
2357 {4 * 1024, 2},
2358 },
2359 .block_erase = spi_block_erase_d8,
2360 }, {
2361 .eraseblocks = { {1024 * 1024, 1} },
2362 .block_erase = spi_block_erase_c7,
2363 }
2364 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002365 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002366 .write = spi_chip_write_256,
2367 .read = spi_chip_read,
2368 },
2369
2370 {
2371 .vendor = "Eon",
2372 .name = "EN25B16",
2373 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002374 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002375 .model_id = EON_EN25B16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002376 .total_size = 2048,
2377 .page_size = 256,
2378 .tested = TEST_UNTESTED,
2379 .probe = probe_spi_rdid,
2380 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002381 .block_erasers =
2382 {
2383 {
2384 .eraseblocks = {
2385 {4 * 1024, 2},
2386 {8 * 1024, 1},
2387 {16 * 1024, 1},
2388 {32 * 1024, 1},
2389 {64 * 1024, 31},
2390 },
2391 .block_erase = spi_block_erase_d8,
2392 }, {
2393 .eraseblocks = { {2 * 1024 * 1024, 1} },
2394 .block_erase = spi_block_erase_c7,
2395 }
2396 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002397 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002398 .write = spi_chip_write_256,
2399 .read = spi_chip_read,
2400 },
2401
2402 {
2403 .vendor = "Eon",
2404 .name = "EN25B16T",
2405 .bustype = CHIP_BUSTYPE_SPI,
2406 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002407 .model_id = EON_EN25B16,
Sean Nelson54596372010-01-09 05:30:14 +00002408 .total_size = 2048,
2409 .page_size = 256,
2410 .tested = TEST_UNTESTED,
2411 .probe = probe_spi_rdid,
2412 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002413 .block_erasers =
2414 {
2415 {
2416 .eraseblocks = {
2417 {64 * 1024, 31},
2418 {32 * 1024, 1},
2419 {16 * 1024, 1},
2420 {8 * 1024, 1},
2421 {4 * 1024, 2},
2422 },
2423 .block_erase = spi_block_erase_d8,
2424 }, {
2425 .eraseblocks = { {2 * 1024 * 1024, 1} },
2426 .block_erase = spi_block_erase_c7,
2427 }
2428 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002429 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002430 .write = spi_chip_write_256,
2431 .read = spi_chip_read,
2432 },
2433
2434 {
2435 .vendor = "Eon",
2436 .name = "EN25B32",
2437 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002438 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002439 .model_id = EON_EN25B32,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002440 .total_size = 4096,
2441 .page_size = 256,
2442 .tested = TEST_UNTESTED,
2443 .probe = probe_spi_rdid,
2444 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002445 .block_erasers =
2446 {
2447 {
2448 .eraseblocks = {
2449 {4 * 1024, 2},
2450 {8 * 1024, 1},
2451 {16 * 1024, 1},
2452 {32 * 1024, 1},
2453 {64 * 1024, 63},
2454 },
2455 .block_erase = spi_block_erase_d8,
2456 }, {
2457 .eraseblocks = { {4 * 1024 * 1024, 1} },
2458 .block_erase = spi_block_erase_c7,
2459 }
2460 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002461 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002462 .write = spi_chip_write_256,
2463 .read = spi_chip_read,
2464 },
2465
2466 {
2467 .vendor = "Eon",
2468 .name = "EN25B32T",
2469 .bustype = CHIP_BUSTYPE_SPI,
2470 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002471 .model_id = EON_EN25B32,
Sean Nelson54596372010-01-09 05:30:14 +00002472 .total_size = 4096,
2473 .page_size = 256,
2474 .tested = TEST_UNTESTED,
2475 .probe = probe_spi_rdid,
2476 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002477 .block_erasers =
2478 {
2479 {
2480 .eraseblocks = {
2481 {64 * 1024, 63},
2482 {32 * 1024, 1},
2483 {16 * 1024, 1},
2484 {8 * 1024, 1},
2485 {4 * 1024, 2},
2486 },
2487 .block_erase = spi_block_erase_d8,
2488 }, {
2489 .eraseblocks = { {4 * 1024 * 1024, 1} },
2490 .block_erase = spi_block_erase_c7,
2491 }
2492 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002493 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002494 .write = spi_chip_write_256,
2495 .read = spi_chip_read,
2496 },
2497
2498 {
2499 .vendor = "Eon",
2500 .name = "EN25B64",
2501 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002502 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002503 .model_id = EON_EN25B64,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002504 .total_size = 8192,
2505 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00002506 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002507 .tested = TEST_UNTESTED,
2508 .probe = probe_spi_rdid,
2509 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002510 .block_erasers =
2511 {
2512 {
2513 .eraseblocks = {
2514 {4 * 1024, 2},
2515 {8 * 1024, 1},
2516 {16 * 1024, 1},
2517 {32 * 1024, 1},
2518 {64 * 1024, 127},
2519 },
2520 .block_erase = spi_block_erase_d8,
2521 }, {
2522 .eraseblocks = { {8 * 1024 * 1024, 1} },
2523 .block_erase = spi_block_erase_c7,
2524 }
2525 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002526 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002527 .write = spi_chip_write_256,
2528 .read = spi_chip_read,
2529 },
2530
2531 {
2532 .vendor = "Eon",
2533 .name = "EN25B64T",
2534 .bustype = CHIP_BUSTYPE_SPI,
2535 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002536 .model_id = EON_EN25B64,
Sean Nelson54596372010-01-09 05:30:14 +00002537 .total_size = 8192,
2538 .page_size = 256,
2539 .tested = TEST_UNTESTED,
2540 .probe = probe_spi_rdid,
2541 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002542 .block_erasers =
2543 {
2544 {
2545 .eraseblocks = {
2546 {64 * 1024, 127},
2547 {32 * 1024, 1},
2548 {16 * 1024, 1},
2549 {8 * 1024, 1},
2550 {4 * 1024, 2},
2551 },
2552 .block_erase = spi_block_erase_d8,
2553 }, {
2554 .eraseblocks = { {8 * 1024 * 1024, 1} },
2555 .block_erase = spi_block_erase_c7,
2556 }
2557 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002558 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002559 .write = spi_chip_write_256,
2560 .read = spi_chip_read,
2561 },
2562
2563 {
2564 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002565 .name = "EN25D16",
2566 .bustype = CHIP_BUSTYPE_SPI,
2567 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002568 .model_id = EON_EN25D16,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002569 .total_size = 2048,
2570 .page_size = 256,
2571 .tested = TEST_UNTESTED,
2572 .probe = probe_spi_rdid,
2573 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002574 .block_erasers =
2575 {
2576 {
2577 .eraseblocks = { {4 * 1024, 512} },
2578 .block_erase = spi_block_erase_20,
2579 }, {
2580 .eraseblocks = { {64 * 1024, 32} },
2581 .block_erase = spi_block_erase_d8,
2582 }, {
2583 .eraseblocks = { {64 * 1024, 32} },
2584 .block_erase = spi_block_erase_52,
2585 }, {
2586 .eraseblocks = { {2 * 1024 * 1024, 1} },
2587 .block_erase = spi_block_erase_60,
2588 }, {
2589 .eraseblocks = { {2 * 1024 * 1024, 1} },
2590 .block_erase = spi_block_erase_c7,
2591 }
2592 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002593 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002594 .write = spi_chip_write_256,
2595 .read = spi_chip_read,
2596 },
2597
2598 {
2599 .vendor = "Eon",
2600 .name = "EN25F05",
2601 .bustype = CHIP_BUSTYPE_SPI,
2602 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002603 .model_id = EON_EN25F05,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002604 .total_size = 64,
2605 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00002606 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002607 .tested = TEST_UNTESTED,
2608 .probe = probe_spi_rdid,
2609 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002610 .block_erasers =
2611 {
2612 {
2613 .eraseblocks = { {4 * 1024, 16} },
2614 .block_erase = spi_block_erase_20,
2615 }, {
2616 .eraseblocks = { {32 * 1024, 2} },
2617 .block_erase = spi_block_erase_d8,
2618 }, {
2619 .eraseblocks = { {32 * 1024, 2} },
2620 .block_erase = spi_block_erase_52,
2621 }, {
2622 .eraseblocks = { {64 * 1024, 1} },
2623 .block_erase = spi_block_erase_60,
2624 }, {
2625 .eraseblocks = { {64 * 1024, 1} },
2626 .block_erase = spi_block_erase_c7,
2627 }
2628 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002629 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002630 .write = spi_chip_write_256,
2631 .read = spi_chip_read,
2632 },
2633
2634 {
2635 .vendor = "Eon",
2636 .name = "EN25F10",
2637 .bustype = CHIP_BUSTYPE_SPI,
2638 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002639 .model_id = EON_EN25F10,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002640 .total_size = 128,
2641 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00002642 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002643 .tested = TEST_UNTESTED,
2644 .probe = probe_spi_rdid,
2645 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002646 .block_erasers =
2647 {
2648 {
2649 .eraseblocks = { {4 * 1024, 32} },
2650 .block_erase = spi_block_erase_20,
2651 }, {
2652 .eraseblocks = { {32 * 1024, 4} },
2653 .block_erase = spi_block_erase_d8,
2654 }, {
2655 .eraseblocks = { {32 * 1024, 4} },
2656 .block_erase = spi_block_erase_52,
2657 }, {
2658 .eraseblocks = { {128 * 1024, 1} },
2659 .block_erase = spi_block_erase_60,
2660 }, {
2661 .eraseblocks = { {128 * 1024, 1} },
2662 .block_erase = spi_block_erase_c7,
2663 }
2664 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002665 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002666 .write = spi_chip_write_256,
2667 .read = spi_chip_read,
2668 },
2669
2670 {
2671 .vendor = "Eon",
2672 .name = "EN25F20",
2673 .bustype = CHIP_BUSTYPE_SPI,
2674 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002675 .model_id = EON_EN25F20,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002676 .total_size = 256,
2677 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00002678 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002679 .tested = TEST_UNTESTED,
2680 .probe = probe_spi_rdid,
2681 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002682 .block_erasers =
2683 {
2684 {
2685 .eraseblocks = { {4 * 1024, 64} },
2686 .block_erase = spi_block_erase_20,
2687 }, {
2688 .eraseblocks = { {64 * 1024, 4} },
2689 .block_erase = spi_block_erase_d8,
2690 }, {
2691 .eraseblocks = { {64 * 1024, 4} },
2692 .block_erase = spi_block_erase_52,
2693 }, {
2694 .eraseblocks = { {256 * 1024, 1} },
2695 .block_erase = spi_block_erase_60,
2696 }, {
2697 .eraseblocks = { {256 * 1024, 1} },
2698 .block_erase = spi_block_erase_c7,
2699 }
2700 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002701 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002702 .write = spi_chip_write_256,
2703 .read = spi_chip_read,
2704 },
2705
2706 {
2707 .vendor = "Eon",
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002708 .name = "EN25F40",
2709 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002710 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002711 .model_id = EON_EN25F40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002712 .total_size = 512,
2713 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00002714 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerfaaa2b22009-06-22 10:06:28 +00002715 .tested = TEST_OK_PROBE,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002716 .probe = probe_spi_rdid,
2717 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00002718 .block_erasers =
2719 {
2720 {
Sean Nelson54596372010-01-09 05:30:14 +00002721 .eraseblocks = { {4 * 1024, 128} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00002722 .block_erase = spi_block_erase_20,
2723 }, {
Sean Nelson54596372010-01-09 05:30:14 +00002724 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00002725 .block_erase = spi_block_erase_d8,
2726 }, {
Sean Nelson54596372010-01-09 05:30:14 +00002727 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00002728 .block_erase = spi_block_erase_60,
2729 }, {
Sean Nelson54596372010-01-09 05:30:14 +00002730 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00002731 .block_erase = spi_block_erase_c7,
2732 },
2733 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002734 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002735 .write = spi_chip_write_256,
2736 .read = spi_chip_read,
2737 },
2738
2739 {
2740 .vendor = "Eon",
2741 .name = "EN25F80",
2742 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002743 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002744 .model_id = EON_EN25F80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002745 .total_size = 1024,
2746 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00002747 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002748 .tested = TEST_OK_PRE,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002749 .probe = probe_spi_rdid,
2750 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002751 .block_erasers =
2752 {
2753 {
2754 .eraseblocks = { {4 * 1024, 256} },
2755 .block_erase = spi_block_erase_20,
2756 }, {
2757 .eraseblocks = { {64 * 1024, 16} },
2758 .block_erase = spi_block_erase_d8,
2759 }, {
2760 .eraseblocks = { {1024 * 1024, 1} },
2761 .block_erase = spi_block_erase_60,
2762 }, {
2763 .eraseblocks = { {1024 * 1024, 1} },
2764 .block_erase = spi_block_erase_c7,
2765 }
2766 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002767 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002768 .write = spi_chip_write_256,
2769 .read = spi_chip_read,
2770 },
2771
2772 {
2773 .vendor = "Eon",
2774 .name = "EN25F16",
2775 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002776 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002777 .model_id = EON_EN25F16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002778 .total_size = 2048,
2779 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00002780 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002781 .tested = TEST_UNTESTED,
2782 .probe = probe_spi_rdid,
2783 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002784 .block_erasers =
2785 {
2786 {
2787 .eraseblocks = { {4 * 1024, 512} },
2788 .block_erase = spi_block_erase_20,
2789 }, {
2790 .eraseblocks = { {64 * 1024, 32} },
2791 .block_erase = spi_block_erase_d8,
2792 }, {
2793 .eraseblocks = { {2 * 1024 * 1024, 1} },
2794 .block_erase = spi_block_erase_60,
2795 }, {
2796 .eraseblocks = { {2 * 1024 * 1024, 1} },
2797 .block_erase = spi_block_erase_c7,
2798 }
2799 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002800 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002801 .write = spi_chip_write_256,
2802 .read = spi_chip_read,
2803 },
2804
2805 {
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002806 .vendor = "Eon",
2807 .name = "EN25F32",
2808 .bustype = CHIP_BUSTYPE_SPI,
2809 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002810 .model_id = EON_EN25F32,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002811 .total_size = 4096,
2812 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00002813 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002814 .tested = TEST_UNTESTED,
2815 .probe = probe_spi_rdid,
2816 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002817 .block_erasers =
2818 {
2819 {
2820 .eraseblocks = { {4 * 1024, 1024} },
2821 .block_erase = spi_block_erase_20,
2822 }, {
2823 .eraseblocks = { {64 * 1024, 64} },
2824 .block_erase = spi_block_erase_d8,
2825 }, {
2826 .eraseblocks = { {4 * 1024 * 1024, 1} },
2827 .block_erase = spi_block_erase_60,
2828 }, {
2829 .eraseblocks = { {4 * 1024 * 1024, 1} },
2830 .block_erase = spi_block_erase_c7,
2831 }
2832 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002833 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002834 .write = spi_chip_write_256,
2835 .read = spi_chip_read,
2836 },
2837
2838 {
Russ Dill3cd5a122010-03-05 08:44:11 +00002839 .vendor = "Eon",
2840 .name = "EN29F010",
2841 .bustype = CHIP_BUSTYPE_PARALLEL,
2842 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002843 .model_id = EON_EN29F010,
Russ Dill3cd5a122010-03-05 08:44:11 +00002844 .total_size = 128,
2845 .page_size = 128,
2846 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002847 .tested = TEST_OK_PRE,
Russ Dill3cd5a122010-03-05 08:44:11 +00002848 .probe = probe_jedec,
2849 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2850 .block_erasers =
2851 {
2852 {
2853 .eraseblocks = { {16 * 1024, 8} },
2854 .block_erase = erase_sector_jedec,
2855 },
2856 {
2857 .eraseblocks = { {128 * 1024, 1} },
2858 .block_erase = erase_chip_block_jedec,
2859 },
2860 },
2861 .write = write_jedec_1,
2862 .read = read_memmapped,
2863 },
2864
2865 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00002866 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002867 .name = "EN29F002(A)(N)B",
Urja Rannikko161b8852009-06-05 08:47:37 +00002868 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002869 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002870 .model_id = EON_EN29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002871 .total_size = 256,
2872 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002873 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002874 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002875 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002876 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00002877 .block_erasers =
2878 {
2879 {
2880 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00002881 {16 * 1024, 1},
Michael Karchere3cb0a12010-03-13 23:47:09 +00002882 {8 * 1024, 2},
2883 {32 * 1024, 1},
2884 {64 * 1024, 3},
Sean Nelson6b11ad22009-12-23 17:05:59 +00002885 },
2886 .block_erase = erase_sector_jedec,
2887 }, {
2888 .eraseblocks = { {256 * 1024, 1} },
2889 .block_erase = erase_chip_block_jedec,
2890 },
2891 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00002892 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002893 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00002894 },
2895
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002896 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00002897 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002898 .name = "EN29F002(A)(N)T",
Urja Rannikko161b8852009-06-05 08:47:37 +00002899 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002900 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002901 .model_id = EON_EN29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002902 .total_size = 256,
2903 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002904 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002905 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002906 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002907 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00002908 .block_erasers =
2909 {
2910 {
2911 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00002912 {64 * 1024, 3},
Michael Karchere3cb0a12010-03-13 23:47:09 +00002913 {32 * 1024, 1},
2914 {8 * 1024, 2},
2915 {16 * 1024, 1},
Sean Nelson6b11ad22009-12-23 17:05:59 +00002916 },
2917 .block_erase = erase_sector_jedec,
2918 }, {
2919 .eraseblocks = { {256 * 1024, 1} },
2920 .block_erase = erase_chip_block_jedec,
2921 },
2922 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00002923 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002924 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00002925 },
2926
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002927 {
2928 .vendor = "Fujitsu",
2929 .name = "MBM29F004BC",
Urja Rannikko038a3122009-06-28 19:19:25 +00002930 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002931 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002932 .model_id = FUJITSU_MBM29F004BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002933 .total_size = 512,
2934 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00002935 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002936 .tested = TEST_UNTESTED,
2937 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002938 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00002939 .block_erasers =
2940 {
2941 {
2942 .eraseblocks = {
2943 {16 * 1024, 1},
2944 {8 * 1024, 2},
2945 {32 * 1024, 1},
2946 {64 * 1024, 7},
2947 },
Sean Nelson35727f72010-01-28 23:55:12 +00002948 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00002949 }, {
2950 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00002951 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00002952 },
2953 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002954 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002955 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00002956 },
2957
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002958 {
2959 .vendor = "Fujitsu",
2960 .name = "MBM29F004TC",
Urja Rannikko038a3122009-06-28 19:19:25 +00002961 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002962 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002963 .model_id = FUJITSU_MBM29F004TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002964 .total_size = 512,
2965 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00002966 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002967 .tested = TEST_UNTESTED,
2968 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002969 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00002970 .block_erasers =
2971 {
2972 {
2973 .eraseblocks = {
2974 {64 * 1024, 7},
2975 {32 * 1024, 1},
2976 {8 * 1024, 2},
2977 {16 * 1024, 1},
2978 },
Sean Nelson35727f72010-01-28 23:55:12 +00002979 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00002980 }, {
2981 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00002982 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00002983 },
2984 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002985 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002986 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00002987 },
2988
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002989 {
Sean Nelson35727f72010-01-28 23:55:12 +00002990 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002991 .vendor = "Fujitsu",
2992 .name = "MBM29F400BC",
Urja Rannikko038a3122009-06-28 19:19:25 +00002993 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002994 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002995 .model_id = FUJITSU_MBM29F400BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002996 .total_size = 512,
2997 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00002998 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00002999 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003000 .probe = probe_m29f400bt,
Maciej Pijankac6e11112009-06-03 14:46:22 +00003001 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (m29f400bt.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003002 .block_erasers =
3003 {
3004 {
3005 .eraseblocks = {
3006 {16 * 1024, 1},
3007 {8 * 1024, 2},
3008 {32 * 1024, 1},
3009 {64 * 1024, 7},
3010 },
3011 .block_erase = block_erase_m29f400bt,
3012 }, {
3013 .eraseblocks = { {512 * 1024, 1} },
3014 .block_erase = block_erase_chip_m29f400bt,
3015 },
3016 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00003017 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003018 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00003019 },
3020
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003021 {
3022 .vendor = "Fujitsu",
3023 .name = "MBM29F400TC",
Urja Rannikko038a3122009-06-28 19:19:25 +00003024 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003025 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003026 .model_id = FUJITSU_MBM29F400TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003027 .total_size = 512,
3028 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003029 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003030 .tested = TEST_UNTESTED,
3031 .probe = probe_m29f400bt,
Maciej Pijankac6e11112009-06-03 14:46:22 +00003032 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (m29f400bt.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003033 .block_erasers =
3034 {
3035 {
3036 .eraseblocks = {
3037 {64 * 1024, 7},
3038 {32 * 1024, 1},
3039 {8 * 1024, 2},
3040 {16 * 1024, 1},
3041 },
3042 .block_erase = block_erase_m29f400bt,
3043 }, {
3044 .eraseblocks = { {512 * 1024, 1} },
3045 .block_erase = block_erase_chip_m29f400bt,
3046 },
3047 },
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00003048 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003049 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00003050 },
3051
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003052 {
David Borgc96a8bd2010-06-21 16:12:22 +00003053 .vendor = "Hyundai",
3054 .name = "HY29F002T",
3055 .bustype = CHIP_BUSTYPE_PARALLEL,
3056 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003057 .model_id = HYUNDAI_HY29F002T,
David Borgc96a8bd2010-06-21 16:12:22 +00003058 .total_size = 256,
3059 .page_size = 256 * 1024,
3060 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003061 .tested = TEST_OK_PRE,
David Borgc96a8bd2010-06-21 16:12:22 +00003062 .probe = probe_jedec,
3063 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3064 .block_erasers =
3065 {
3066 {
3067 .eraseblocks = {
3068 {64 * 1024, 3},
3069 {32 * 1024, 1},
3070 {8 * 1024, 2},
3071 {16 * 1024, 1},
3072 },
3073 .block_erase = erase_sector_jedec,
3074 }, {
3075 .eraseblocks = { {256 * 1024, 1} },
3076 .block_erase = erase_chip_block_jedec,
3077 },
3078 },
3079 .write = write_jedec_1,
3080 .read = read_memmapped,
3081 },
3082
3083 {
3084 .vendor = "Hyundai",
3085 .name = "HY29F002B",
3086 .bustype = CHIP_BUSTYPE_PARALLEL,
3087 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003088 .model_id = HYUNDAI_HY29F002B,
David Borgc96a8bd2010-06-21 16:12:22 +00003089 .total_size = 256,
3090 .page_size = 256 * 1024,
3091 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
3092 .tested = TEST_UNTESTED,
3093 .probe = probe_jedec,
3094 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3095 .block_erasers =
3096 {
3097 {
3098 .eraseblocks = {
3099 {16 * 1024, 1},
3100 {8 * 1024, 2},
3101 {32 * 1024, 1},
3102 {64 * 1024, 3},
3103 },
3104 .block_erase = erase_sector_jedec,
3105 }, {
3106 .eraseblocks = { {256 * 1024, 1} },
3107 .block_erase = erase_chip_block_jedec,
3108 },
3109 },
3110 .write = write_jedec_1,
3111 .read = read_memmapped,
3112 },
3113
3114 {
Joshua Roysf1324e02010-09-16 00:51:51 +00003115 .vendor = "Hyundai",
3116 .name = "HY29F040A",
3117 .bustype = CHIP_BUSTYPE_PARALLEL,
3118 .manufacture_id = HYUNDAI_ID,
3119 .model_id = HYUNDAI_HY29F040A,
3120 .total_size = 512,
3121 .page_size = 64 * 1024,
3122 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
3123 .tested = TEST_UNTESTED,
3124 .probe = probe_jedec,
3125 .probe_timing = TIMING_ZERO,
3126 .block_erasers =
3127 {
3128 {
3129 .eraseblocks = { {64 * 1024, 8} },
3130 .block_erase = erase_sector_jedec,
3131 }, {
3132 .eraseblocks = { {512 * 1024, 1} },
3133 .block_erase = erase_chip_block_jedec,
3134 },
3135 },
3136 .write = write_jedec_1,
3137 .read = read_memmapped,
3138 },
3139
3140 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003141 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003142 .name = "28F001BN/BX-B",
Urja Rannikko161b8852009-06-05 08:47:37 +00003143 .bustype = CHIP_BUSTYPE_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00003144 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003145 .model_id = INTEL_28F001B,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00003146 .total_size = 128,
3147 .page_size = 128 * 1024, /* 8k + 2x4k + 112k */
Sean Nelsondee4a832010-03-22 04:39:31 +00003148 .tested = TEST_UNTESTED,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00003149 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003150 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00003151 .block_erasers =
3152 {
3153 {
3154 .eraseblocks = {
3155 {8 * 1024, 1},
3156 {4 * 1024, 2},
3157 {112 * 1024, 1},
3158 },
Sean Nelson28accc22010-03-19 18:47:06 +00003159 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00003160 },
3161 },
Sean Nelsondee4a832010-03-22 04:39:31 +00003162 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00003163 .read = read_memmapped,
3164 },
3165
3166 {
3167 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003168 .name = "28F001BN/BX-T",
Urja Rannikko161b8852009-06-05 08:47:37 +00003169 .bustype = CHIP_BUSTYPE_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00003170 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003171 .model_id = INTEL_28F001T,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00003172 .total_size = 128,
3173 .page_size = 128 * 1024, /* 112k + 2x4k + 8k */
Sean Nelsondee4a832010-03-22 04:39:31 +00003174 .tested = TEST_UNTESTED,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00003175 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003176 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00003177 .block_erasers =
3178 {
3179 {
3180 .eraseblocks = {
3181 {112 * 1024, 1},
3182 {4 * 1024, 2},
3183 {8 * 1024, 1},
3184 },
Sean Nelson28accc22010-03-19 18:47:06 +00003185 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00003186 },
3187 },
Sean Nelsondee4a832010-03-22 04:39:31 +00003188 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00003189 .read = read_memmapped,
3190 },
3191
3192 {
3193 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003194 .name = "28F002BC/BL/BV/BX-T",
Joshua Roysd97c0e02010-07-22 15:20:43 +00003195 .bustype = CHIP_BUSTYPE_PARALLEL,
3196 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003197 .model_id = INTEL_28F002T,
Joshua Roysd97c0e02010-07-22 15:20:43 +00003198 .total_size = 256,
3199 .page_size = 256 * 1024,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003200 .tested = TEST_OK_PRE,
Joshua Roysd97c0e02010-07-22 15:20:43 +00003201 .probe = probe_82802ab,
3202 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3203 .block_erasers =
3204 {
3205 {
3206 .eraseblocks = {
3207 {128 * 1024, 1},
3208 {96 * 1024, 1},
3209 {8 * 1024, 2},
3210 {16 * 1024, 1},
3211 },
3212 .block_erase = erase_block_82802ab,
3213 },
3214 },
3215 .write = write_82802ab,
3216 .read = read_memmapped,
3217 },
3218
3219 {
3220 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003221 .name = "28F008S3/S5/SC",
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00003222 .bustype = CHIP_BUSTYPE_PARALLEL,
3223 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003224 .model_id = INTEL_28F004S3,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00003225 .total_size = 512,
3226 .page_size = 256,
3227 .tested = TEST_UNTESTED,
3228 .probe = probe_82802ab,
3229 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00003230 .block_erasers =
3231 {
3232 {
3233 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00003234 .block_erase = erase_block_82802ab,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00003235 },
3236 },
Sean Nelsondee4a832010-03-22 04:39:31 +00003237 .unlock = unlock_28f004s5,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00003238 .write = write_82802ab,
3239 .read = read_memmapped,
3240 },
3241
3242 {
3243 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003244 .name = "28F004B5/BE/BV/BX-B",
Michael Karcherad0010a2010-04-03 10:27:08 +00003245 .bustype = CHIP_BUSTYPE_PARALLEL,
3246 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003247 .model_id = INTEL_28F004B,
Michael Karcherad0010a2010-04-03 10:27:08 +00003248 .total_size = 512,
3249 .page_size = 128 * 1024, /* maximal block size */
3250 .tested = TEST_UNTESTED,
3251 .probe = probe_82802ab,
3252 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3253 .block_erasers =
3254 {
3255 {
3256 .eraseblocks = {
3257 {16 * 1024, 1},
3258 {8 * 1024, 2},
3259 {96 * 1024, 1},
3260 {128 * 1024, 3},
3261 },
3262 .block_erase = erase_block_82802ab,
3263 },
3264 },
3265 .write = write_82802ab,
3266 .read = read_memmapped,
3267 },
3268
3269 {
3270 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003271 .name = "28F004B5/BE/BV/BX-T",
Michael Karcherad0010a2010-04-03 10:27:08 +00003272 .bustype = CHIP_BUSTYPE_PARALLEL,
3273 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003274 .model_id = INTEL_28F004T,
Michael Karcherad0010a2010-04-03 10:27:08 +00003275 .total_size = 512,
3276 .page_size = 128 * 1024, /* maximal block size */
3277 .tested = TEST_UNTESTED,
3278 .probe = probe_82802ab,
3279 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3280 .block_erasers =
3281 {
3282 {
3283 .eraseblocks = {
3284 {128 * 1024, 3},
3285 {96 * 1024, 1},
3286 {8 * 1024, 2},
3287 {16 * 1024, 1},
3288 },
3289 .block_erase = erase_block_82802ab,
3290 },
3291 },
3292 .write = write_82802ab,
3293 .read = read_memmapped,
3294 },
3295
3296 {
3297 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003298 .name = "28F400BV/BX/CE/CV-B",
Michael Karcherad0010a2010-04-03 10:27:08 +00003299 .bustype = CHIP_BUSTYPE_PARALLEL,
3300 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003301 .model_id = INTEL_28F400B,
Michael Karcherad0010a2010-04-03 10:27:08 +00003302 .total_size = 512,
3303 .page_size = 128 * 1024, /* maximal block size */
3304 .feature_bits = FEATURE_ADDR_SHIFTED,
3305 .tested = TEST_UNTESTED,
3306 .probe = probe_82802ab,
3307 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3308 .block_erasers =
3309 {
3310 {
3311 .eraseblocks = {
3312 {16 * 1024, 1},
3313 {8 * 1024, 2},
3314 {96 * 1024, 1},
3315 {128 * 1024, 3},
3316 },
3317 .block_erase = erase_block_82802ab,
3318 },
3319 },
3320 .write = write_82802ab,
3321 .read = read_memmapped,
3322 },
3323
3324 {
3325 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003326 .name = "28F400BV/BX/CE/CV-T",
Michael Karcherad0010a2010-04-03 10:27:08 +00003327 .bustype = CHIP_BUSTYPE_PARALLEL,
3328 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003329 .model_id = INTEL_28F400T,
Michael Karcherad0010a2010-04-03 10:27:08 +00003330 .total_size = 512,
3331 .page_size = 128 * 1024, /* maximal block size */
3332 .feature_bits = FEATURE_ADDR_SHIFTED,
3333 .tested = TEST_UNTESTED,
3334 .probe = probe_82802ab,
3335 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3336 .block_erasers =
3337 {
3338 {
3339 .eraseblocks = {
3340 {128 * 1024, 3},
3341 {96 * 1024, 1},
3342 {8 * 1024, 2},
3343 {16 * 1024, 1},
3344 },
3345 .block_erase = erase_block_82802ab,
3346 },
3347 },
3348 .write = write_82802ab,
3349 .read = read_memmapped,
3350 },
3351
3352 {
3353 .vendor = "Intel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003354 .name = "82802AB",
Mateusz Murawskie33890d2009-06-12 11:45:10 +00003355 .bustype = CHIP_BUSTYPE_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003356 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003357 .model_id = INTEL_82802AB,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003358 .total_size = 512,
3359 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00003360 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +00003361 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003362 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003363 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00003364 .block_erasers =
3365 {
3366 {
3367 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00003368 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00003369 },
3370 },
Sean Nelson28accc22010-03-19 18:47:06 +00003371 .unlock = unlock_82802ab,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003372 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003373 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00003374 },
3375
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003376 {
3377 .vendor = "Intel",
3378 .name = "82802AC",
Mateusz Murawskie33890d2009-06-12 11:45:10 +00003379 .bustype = CHIP_BUSTYPE_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003380 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003381 .model_id = INTEL_82802AC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003382 .total_size = 1024,
3383 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00003384 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +00003385 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003386 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003387 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00003388 .block_erasers =
3389 {
3390 {
3391 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +00003392 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00003393 },
3394 },
Sean Nelson28accc22010-03-19 18:47:06 +00003395 .unlock = unlock_82802ab,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003396 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003397 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00003398 },
3399
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003400 {
3401 .vendor = "Macronix",
3402 .name = "MX25L512",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00003403 .bustype = CHIP_BUSTYPE_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003404 .manufacture_id = MACRONIX_ID,
3405 .model_id = MACRONIX_MX25L512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003406 .total_size = 64,
3407 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00003408 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003409 .tested = TEST_UNTESTED,
3410 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003411 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00003412 .block_erasers =
3413 {
3414 {
3415 .eraseblocks = { {4 * 1024, 16} },
3416 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00003417 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00003418 .eraseblocks = { {64 * 1024, 1} },
3419 .block_erase = spi_block_erase_52,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00003420 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00003421 .eraseblocks = { {64 * 1024, 1} },
3422 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00003423 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00003424 .eraseblocks = { {64 * 1024, 1} },
3425 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00003426 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00003427 .eraseblocks = { {64 * 1024, 1} },
3428 .block_erase = spi_block_erase_c7,
3429 },
3430 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003431 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00003432 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003433 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00003434 },
3435
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003436 {
3437 .vendor = "Macronix",
3438 .name = "MX25L1005",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00003439 .bustype = CHIP_BUSTYPE_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003440 .manufacture_id = MACRONIX_ID,
3441 .model_id = MACRONIX_MX25L1005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003442 .total_size = 128,
3443 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00003444 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003445 .tested = TEST_UNTESTED,
3446 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003447 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00003448 .block_erasers =
3449 {
3450 {
3451 .eraseblocks = { {4 * 1024, 32} },
3452 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00003453 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00003454 .eraseblocks = { {64 * 1024, 2} },
3455 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00003456 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00003457 .eraseblocks = { {128 * 1024, 1} },
3458 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00003459 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00003460 .eraseblocks = { {128 * 1024, 1} },
3461 .block_erase = spi_block_erase_c7,
3462 },
3463 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003464 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00003465 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003466 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00003467 },
3468
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003469 {
3470 .vendor = "Macronix",
3471 .name = "MX25L2005",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00003472 .bustype = CHIP_BUSTYPE_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003473 .manufacture_id = MACRONIX_ID,
3474 .model_id = MACRONIX_MX25L2005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003475 .total_size = 256,
3476 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00003477 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003478 .tested = TEST_UNTESTED,
3479 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003480 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00003481 .block_erasers =
3482 {
3483 {
3484 .eraseblocks = { {4 * 1024, 64} },
3485 .block_erase = spi_block_erase_20,
3486 }, {
3487 .eraseblocks = { {64 * 1024, 4} },
3488 .block_erase = spi_block_erase_52,
3489 }, {
3490 .eraseblocks = { {64 * 1024, 4} },
3491 .block_erase = spi_block_erase_d8,
3492 }, {
3493 .eraseblocks = { {256 * 1024, 1} },
3494 .block_erase = spi_block_erase_60,
3495 }, {
3496 .eraseblocks = { {256 * 1024, 1} },
3497 .block_erase = spi_block_erase_c7,
3498 },
3499 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003500 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00003501 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003502 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00003503 },
3504
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003505 {
3506 .vendor = "Macronix",
3507 .name = "MX25L4005",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00003508 .bustype = CHIP_BUSTYPE_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003509 .manufacture_id = MACRONIX_ID,
3510 .model_id = MACRONIX_MX25L4005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003511 .total_size = 512,
3512 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00003513 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003514 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003515 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003516 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00003517 .block_erasers =
3518 {
3519 {
3520 .eraseblocks = { {4 * 1024, 128} },
3521 .block_erase = spi_block_erase_20,
3522 }, {
3523 .eraseblocks = { {64 * 1024, 8} },
3524 .block_erase = spi_block_erase_52,
3525 }, {
3526 .eraseblocks = { {64 * 1024, 8} },
3527 .block_erase = spi_block_erase_d8,
3528 }, {
3529 .eraseblocks = { {512 * 1024, 1} },
3530 .block_erase = spi_block_erase_60,
3531 }, {
3532 .eraseblocks = { {512 * 1024, 1} },
3533 .block_erase = spi_block_erase_c7,
3534 },
3535 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003536 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00003537 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003538 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00003539 },
3540
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003541 {
3542 .vendor = "Macronix",
3543 .name = "MX25L8005",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00003544 .bustype = CHIP_BUSTYPE_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003545 .manufacture_id = MACRONIX_ID,
3546 .model_id = MACRONIX_MX25L8005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003547 .total_size = 1024,
3548 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00003549 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003550 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003551 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003552 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00003553 .block_erasers =
3554 {
3555 {
3556 .eraseblocks = { {4 * 1024, 256} },
3557 .block_erase = spi_block_erase_20,
3558 }, {
3559 .eraseblocks = { {64 * 1024, 16} },
3560 .block_erase = spi_block_erase_52,
3561 }, {
3562 .eraseblocks = { {64 * 1024, 16} },
3563 .block_erase = spi_block_erase_d8,
3564 }, {
3565 .eraseblocks = { {1024 * 1024, 1} },
3566 .block_erase = spi_block_erase_60,
3567 }, {
3568 .eraseblocks = { {1024 * 1024, 1} },
3569 .block_erase = spi_block_erase_c7,
3570 },
3571 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003572 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00003573 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003574 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00003575 },
3576
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003577 {
3578 .vendor = "Macronix",
3579 .name = "MX25L1605",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00003580 .bustype = CHIP_BUSTYPE_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003581 .manufacture_id = MACRONIX_ID,
3582 .model_id = MACRONIX_MX25L1605,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003583 .total_size = 2048,
3584 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00003585 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003586 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003587 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003588 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00003589 .block_erasers =
3590 {
3591 {
3592 .eraseblocks = { {4 * 1024, 512} },
3593 .block_erase = spi_block_erase_20, /* This erase function has 64k blocksize for eLiteFlash */
3594 }, {
3595 .eraseblocks = { {64 * 1024, 32} }, /* Not supported in MX25L1605 (eLiteFlash) and MX25L1605D */
3596 .block_erase = spi_block_erase_52,
3597 }, {
3598 .eraseblocks = { {64 * 1024, 32} },
3599 .block_erase = spi_block_erase_d8,
3600 }, {
3601 .eraseblocks = { {2 * 1024 * 1024, 1} },
3602 .block_erase = spi_block_erase_60,
3603 }, {
3604 .eraseblocks = { {2 * 1024 * 1024, 1} },
3605 .block_erase = spi_block_erase_c7,
3606 },
3607 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003608 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00003609 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003610 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00003611 },
3612
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003613 {
3614 .vendor = "Macronix",
Stephan Guillouxf5c70902009-04-19 23:04:00 +00003615 .name = "MX25L1635D",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00003616 .bustype = CHIP_BUSTYPE_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003617 .manufacture_id = MACRONIX_ID,
3618 .model_id = MACRONIX_MX25L1635D,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00003619 .total_size = 2048,
3620 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00003621 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00003622 .tested = TEST_UNTESTED,
3623 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003624 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003625 .block_erasers =
3626 {
3627 {
3628 .eraseblocks = { {4 * 1024, 512} },
3629 .block_erase = spi_block_erase_20,
3630 }, {
3631 .eraseblocks = { {64 * 1024, 32} },
3632 .block_erase = spi_block_erase_d8,
3633 }, {
3634 .eraseblocks = { {2 * 1024 * 1024, 1} },
3635 .block_erase = spi_block_erase_60,
3636 }, {
3637 .eraseblocks = { {2 * 1024 * 1024, 1} },
3638 .block_erase = spi_block_erase_c7,
3639 }
3640 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003641 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00003642 .write = spi_chip_write_256,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00003643 .read = spi_chip_read,
3644 },
Stephan Guillouxfd315502009-04-20 22:54:13 +00003645
Stephan Guillouxf5c70902009-04-19 23:04:00 +00003646 {
3647 .vendor = "Macronix",
Stephan Guilloux3611b802010-09-13 19:59:28 +00003648 .name = "MX25L1635E",
3649 .bustype = CHIP_BUSTYPE_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003650 .manufacture_id = MACRONIX_ID,
3651 .model_id = MACRONIX_MX25L1635E,
Stephan Guilloux3611b802010-09-13 19:59:28 +00003652 .total_size = 2048,
3653 .page_size = 256,
3654 .feature_bits = FEATURE_WRSR_WREN,
3655 .tested = TEST_UNTESTED,
3656 .probe = probe_spi_rdid,
3657 .probe_timing = TIMING_ZERO,
3658 .block_erasers =
3659 {
3660 {
3661 .eraseblocks = { {4 * 1024, 512} },
3662 .block_erase = spi_block_erase_20,
3663 }, {
3664 .eraseblocks = { {64 * 1024, 32} },
3665 .block_erase = spi_block_erase_d8,
3666 }, {
3667 .eraseblocks = { {2 * 1024 * 1024, 1} },
3668 .block_erase = spi_block_erase_60,
3669 }, {
3670 .eraseblocks = { {2 * 1024 * 1024, 1} },
3671 .block_erase = spi_block_erase_c7,
3672 }
3673 },
3674 .unlock = spi_disable_blockprotect,
3675 .write = spi_chip_write_256,
3676 .read = spi_chip_read,
3677 },
3678
3679 {
3680 .vendor = "Macronix",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003681 .name = "MX25L3205",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00003682 .bustype = CHIP_BUSTYPE_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003683 .manufacture_id = MACRONIX_ID,
3684 .model_id = MACRONIX_MX25L3205,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003685 .total_size = 4096,
3686 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00003687 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00003688 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003689 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003690 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003691 .block_erasers =
3692 {
3693 {
3694 .eraseblocks = { {4 * 1024, 1024} },
3695 .block_erase = spi_block_erase_20,
3696 }, {
3697 .eraseblocks = { {4 * 1024, 1024} },
3698 .block_erase = spi_block_erase_d8,
3699 }, {
3700 .eraseblocks = { {4 * 1024 * 1024, 1} },
3701 .block_erase = spi_block_erase_60,
3702 }, {
3703 .eraseblocks = { {4 * 1024 * 1024, 1} },
3704 .block_erase = spi_block_erase_c7,
3705 },
3706 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003707 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00003708 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003709 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00003710 },
3711
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003712 {
3713 .vendor = "Macronix",
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00003714 .name = "MX25L3235D",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00003715 .bustype = CHIP_BUSTYPE_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003716 .manufacture_id = MACRONIX_ID,
3717 .model_id = MACRONIX_MX25L3235D,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00003718 .total_size = 4096,
3719 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00003720 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00003721 .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, 1024} },
3728 .block_erase = spi_block_erase_20,
3729 }, {
3730 .eraseblocks = { {64 * 1024, 64} },
3731 .block_erase = spi_block_erase_d8,
3732 }, {
3733 .eraseblocks = { {4 * 1024 * 1024, 1} },
3734 .block_erase = spi_block_erase_60,
3735 }, {
3736 .eraseblocks = { {4 * 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 Guilloux70ea9a32009-04-23 22:51:56 +00003742 .read = spi_chip_read,
3743 },
3744
3745 {
3746 .vendor = "Macronix",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003747 .name = "MX25L6405",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00003748 .bustype = CHIP_BUSTYPE_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003749 .manufacture_id = MACRONIX_ID,
3750 .model_id = MACRONIX_MX25L6405,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003751 .total_size = 8192,
3752 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00003753 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger452b3e32009-06-22 11:14:43 +00003754 .tested = TEST_OK_PROBE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003755 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003756 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003757 .block_erasers =
3758 {
3759 {
3760 .eraseblocks = { {64 * 1024, 128} },
3761 .block_erase = spi_block_erase_20,
3762 }, {
3763 .eraseblocks = { {64 * 1024, 128} },
3764 .block_erase = spi_block_erase_d8,
3765 }, {
3766 .eraseblocks = { {8 * 1024 * 1024, 1} },
3767 .block_erase = spi_block_erase_60,
3768 }, {
3769 .eraseblocks = { {8 * 1024 * 1024, 1} },
3770 .block_erase = spi_block_erase_c7,
3771 }
3772 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003773 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00003774 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003775 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00003776 },
3777
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003778 {
3779 .vendor = "Macronix",
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00003780 .name = "MX25L12805",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00003781 .bustype = CHIP_BUSTYPE_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003782 .manufacture_id = MACRONIX_ID,
3783 .model_id = MACRONIX_MX25L12805,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00003784 .total_size = 16384,
3785 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00003786 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00003787 .tested = TEST_UNTESTED,
3788 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003789 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003790 .block_erasers =
3791 {
3792 {
3793 .eraseblocks = { {4 * 1024, 4096} },
3794 .block_erase = spi_block_erase_20,
3795 }, {
3796 .eraseblocks = { {64 * 1024, 256} },
3797 .block_erase = spi_block_erase_d8,
3798 }, {
3799 .eraseblocks = { {16 * 1024 * 1024, 1} },
3800 .block_erase = spi_block_erase_60,
3801 }, {
3802 .eraseblocks = { {16 * 1024 * 1024, 1} },
3803 .block_erase = spi_block_erase_c7,
3804 }
3805 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003806 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00003807 .write = spi_chip_write_256,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00003808 .read = spi_chip_read,
3809 },
3810
3811 {
3812 .vendor = "Macronix",
Mark Panajotovic502a9132009-08-24 01:42:24 +00003813 .name = "MX29F001B",
3814 .bustype = CHIP_BUSTYPE_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003815 .manufacture_id = MACRONIX_ID,
3816 .model_id = MACRONIX_MX29F001B,
Mark Panajotovic502a9132009-08-24 01:42:24 +00003817 .total_size = 128,
3818 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003819 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
3820 .tested = TEST_UNTESTED,
3821 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00003822 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003823 .block_erasers =
3824 {
3825 {
3826 .eraseblocks = {
3827 {8 * 1024, 1},
3828 {4 * 1024, 2},
3829 {8 * 1024, 2},
3830 {32 * 1024, 1},
3831 {64 * 1024, 1},
3832 },
Sean Nelson35727f72010-01-28 23:55:12 +00003833 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00003834 }, {
3835 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00003836 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00003837 }
3838 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00003839 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00003840 .read = read_memmapped,
3841 },
3842
3843 {
3844 .vendor = "Macronix",
3845 .name = "MX29F001T",
3846 .bustype = CHIP_BUSTYPE_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003847 .manufacture_id = MACRONIX_ID,
3848 .model_id = MACRONIX_MX29F001T,
Mark Panajotovic502a9132009-08-24 01:42:24 +00003849 .total_size = 128,
3850 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003851 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
3852 .tested = TEST_UNTESTED,
3853 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00003854 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003855 .block_erasers =
3856 {
3857 {
3858 .eraseblocks = {
3859 {64 * 1024, 1},
3860 {32 * 1024, 1},
3861 {8 * 1024, 2},
3862 {4 * 1024, 2},
3863 {8 * 1024, 1},
3864 },
Sean Nelson35727f72010-01-28 23:55:12 +00003865 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00003866 }, {
3867 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00003868 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00003869 }
3870 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00003871 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00003872 .read = read_memmapped,
3873 },
3874
3875 {
3876 .vendor = "Macronix",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003877 .name = "MX29F002B",
Urja Rannikko038a3122009-06-28 19:19:25 +00003878 .bustype = CHIP_BUSTYPE_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003879 .manufacture_id = MACRONIX_ID,
3880 .model_id = MACRONIX_MX29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003881 .total_size = 256,
3882 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003883 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003884 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00003885 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00003886 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003887 .block_erasers =
3888 {
3889 {
3890 .eraseblocks = {
3891 {16 * 1024, 1},
3892 {8 * 1024, 2},
3893 {32 * 1024, 1},
3894 {64 * 1024, 3},
3895 },
Sean Nelson35727f72010-01-28 23:55:12 +00003896 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003897 }, {
3898 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00003899 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003900 },
3901 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00003902 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003903 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00003904 },
3905
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003906 {
3907 .vendor = "Macronix",
3908 .name = "MX29F002T",
Urja Rannikko038a3122009-06-28 19:19:25 +00003909 .bustype = CHIP_BUSTYPE_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003910 .manufacture_id = MACRONIX_ID,
3911 .model_id = MACRONIX_MX29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003912 .total_size = 256,
3913 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003914 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003915 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +00003916 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00003917 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003918 .block_erasers =
3919 {
3920 {
3921 .eraseblocks = {
3922 {64 * 1024, 3},
3923 {32 * 1024, 1},
3924 {8 * 1024, 2},
3925 {16 * 1024, 1},
3926 },
Sean Nelson35727f72010-01-28 23:55:12 +00003927 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003928 }, {
3929 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00003930 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003931 },
3932 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00003933 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003934 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00003935 },
3936
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003937 {
3938 .vendor = "Macronix",
Joshua Roysf1324e02010-09-16 00:51:51 +00003939 .name = "MX29F040",
3940 .bustype = CHIP_BUSTYPE_PARALLEL,
3941 .manufacture_id = MACRONIX_ID,
3942 .model_id = MACRONIX_MX29F040,
3943 .total_size = 512,
3944 .page_size = 64 * 1024,
3945 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
3946 .tested = TEST_UNTESTED,
3947 .probe = probe_jedec,
3948 .probe_timing = TIMING_ZERO,
3949 .block_erasers =
3950 {
3951 {
3952 .eraseblocks = { {64 * 1024, 8} },
3953 .block_erase = erase_sector_jedec,
3954 }, {
3955 .eraseblocks = { {512 * 1024, 1} },
3956 .block_erase = erase_chip_block_jedec,
3957 },
3958 },
3959 .write = write_jedec_1,
3960 .read = read_memmapped,
3961 },
3962
3963 {
3964 .vendor = "Macronix",
Carl-Daniel Hailfinger350a0c32009-07-24 13:59:27 +00003965 .name = "MX29LV040",
Urja Rannikko038a3122009-06-28 19:19:25 +00003966 .bustype = CHIP_BUSTYPE_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003967 .manufacture_id = MACRONIX_ID,
3968 .model_id = MACRONIX_MX29LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003969 .total_size = 512,
3970 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003971 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
3972 .tested = TEST_UNTESTED,
3973 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00003974 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003975 .block_erasers =
3976 {
3977 {
3978 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson35727f72010-01-28 23:55:12 +00003979 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00003980 }, {
3981 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00003982 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00003983 },
3984 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00003985 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003986 .read = read_memmapped,
Carl-Daniel Hailfinger7de86392008-12-10 10:32:05 +00003987 },
3988
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003989 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00003990 .vendor = "MoselVitelic",
3991 .name = "V29C51000B",
3992 .bustype = CHIP_BUSTYPE_PARALLEL,
3993 .manufacture_id = SYNCMOS_MVC_ID,
3994 .model_id = MVC_V29C51000B,
3995 .total_size = 64,
3996 .page_size = 512,
3997 .feature_bits = FEATURE_EITHER_RESET,
3998 .tested = TEST_UNTESTED,
3999 .probe = probe_jedec,
4000 .probe_timing = TIMING_ZERO,
4001 .block_erasers =
4002 {
4003 {
4004 .eraseblocks = { {512, 128} },
4005 .block_erase = erase_sector_jedec,
4006 }, {
4007 .eraseblocks = { {64 * 1024, 1} },
4008 .block_erase = erase_chip_block_jedec,
4009 },
4010 },
4011 .write = write_jedec_1,
4012 .read = read_memmapped,
4013 },
4014
4015 {
4016 .vendor = "MoselVitelic",
4017 .name = "V29C51000T",
4018 .bustype = CHIP_BUSTYPE_PARALLEL,
4019 .manufacture_id = SYNCMOS_MVC_ID,
4020 .model_id = MVC_V29C51000T,
4021 .total_size = 64,
4022 .page_size = 512,
4023 .feature_bits = FEATURE_EITHER_RESET,
4024 .tested = TEST_UNTESTED,
4025 .probe = probe_jedec,
4026 .probe_timing = TIMING_ZERO,
4027 .block_erasers =
4028 {
4029 {
4030 .eraseblocks = { {512, 128} },
4031 .block_erase = erase_sector_jedec,
4032 }, {
4033 .eraseblocks = { {64 * 1024, 1} },
4034 .block_erase = erase_chip_block_jedec,
4035 },
4036 },
4037 .write = write_jedec_1,
4038 .read = read_memmapped,
4039 },
4040
4041 {
4042 .vendor = "MoselVitelic",
4043 .name = "V29C51400B",
4044 .bustype = CHIP_BUSTYPE_PARALLEL,
4045 .manufacture_id = SYNCMOS_MVC_ID,
4046 .model_id = MVC_V29C51400B,
4047 .total_size = 512,
4048 .page_size = 1024,
4049 .feature_bits = FEATURE_EITHER_RESET,
4050 .tested = TEST_UNTESTED,
4051 .probe = probe_jedec,
4052 .probe_timing = TIMING_ZERO,
4053 .block_erasers =
4054 {
4055 {
4056 .eraseblocks = { {1024, 512} },
4057 .block_erase = erase_sector_jedec,
4058 }, {
4059 .eraseblocks = { {512 * 1024, 1} },
4060 .block_erase = erase_chip_block_jedec,
4061 },
4062 },
4063 .write = write_jedec_1,
4064 .read = read_memmapped,
4065 },
4066
4067 {
4068 .vendor = "MoselVitelic",
4069 .name = "V29C51400T",
4070 .bustype = CHIP_BUSTYPE_PARALLEL,
4071 .manufacture_id = SYNCMOS_MVC_ID,
4072 .model_id = MVC_V29C51400T,
4073 .total_size = 512,
4074 .page_size = 1024,
4075 .feature_bits = FEATURE_EITHER_RESET,
4076 .tested = TEST_UNTESTED,
4077 .probe = probe_jedec,
4078 .probe_timing = TIMING_ZERO,
4079 .block_erasers =
4080 {
4081 {
4082 .eraseblocks = { {1024, 512} },
4083 .block_erase = erase_sector_jedec,
4084 }, {
4085 .eraseblocks = { {512 * 1024, 1} },
4086 .block_erase = erase_chip_block_jedec,
4087 },
4088 },
4089 .write = write_jedec_1,
4090 .read = read_memmapped,
4091 },
4092
4093 {
4094 .vendor = "MoselVitelic",
4095 .name = "V29LC51000",
4096 .bustype = CHIP_BUSTYPE_PARALLEL,
4097 .manufacture_id = SYNCMOS_MVC_ID,
4098 .model_id = MVC_V29LC51000,
4099 .total_size = 64,
4100 .page_size = 512,
4101 .feature_bits = FEATURE_EITHER_RESET,
4102 .tested = TEST_UNTESTED,
4103 .probe = probe_jedec,
4104 .probe_timing = TIMING_ZERO,
4105 .block_erasers =
4106 {
4107 {
4108 .eraseblocks = { {512, 128} },
4109 .block_erase = erase_sector_jedec,
4110 }, {
4111 .eraseblocks = { {64 * 1024, 1} },
4112 .block_erase = erase_chip_block_jedec,
4113 },
4114 },
4115 .write = write_jedec_1,
4116 .read = read_memmapped,
4117 },
4118
4119 {
4120 .vendor = "MoselVitelic",
4121 .name = "V29LC51001",
4122 .bustype = CHIP_BUSTYPE_PARALLEL,
4123 .manufacture_id = SYNCMOS_MVC_ID,
4124 .model_id = MVC_V29LC51001,
4125 .total_size = 128,
4126 .page_size = 512,
4127 .feature_bits = FEATURE_EITHER_RESET,
4128 .tested = TEST_UNTESTED,
4129 .probe = probe_jedec,
4130 .probe_timing = TIMING_ZERO,
4131 .block_erasers =
4132 {
4133 {
4134 .eraseblocks = { {512, 256} },
4135 .block_erase = erase_sector_jedec,
4136 }, {
4137 .eraseblocks = { {128 * 1024, 1} },
4138 .block_erase = erase_chip_block_jedec,
4139 },
4140 },
4141 .write = write_jedec_1,
4142 .read = read_memmapped,
4143 },
4144
4145 {
4146 .vendor = "MoselVitelic",
4147 .name = "V29LC51002",
4148 .bustype = CHIP_BUSTYPE_PARALLEL,
4149 .manufacture_id = SYNCMOS_MVC_ID,
4150 .model_id = MVC_V29LC51002,
4151 .total_size = 256,
4152 .page_size = 512,
4153 .feature_bits = FEATURE_EITHER_RESET,
4154 .tested = TEST_UNTESTED,
4155 .probe = probe_jedec,
4156 .probe_timing = TIMING_ZERO,
4157 .block_erasers =
4158 {
4159 {
4160 .eraseblocks = { {512, 512} },
4161 .block_erase = erase_sector_jedec,
4162 }, {
4163 .eraseblocks = { {256 * 1024, 1} },
4164 .block_erase = erase_chip_block_jedec,
4165 },
4166 },
4167 .write = write_jedec_1,
4168 .read = read_memmapped,
4169 },
4170
4171 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004172 .vendor = "Numonyx",
4173 .name = "M25PE10",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004174 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004175 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00004176 .model_id = ST_M25PE10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004177 .total_size = 128,
4178 .page_size = 256,
4179 .tested = TEST_UNTESTED,
4180 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004181 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00004182 .block_erasers =
4183 {
4184 {
4185 .eraseblocks = { {4 * 1024, 32} },
4186 .block_erase = spi_block_erase_20,
4187 }, {
4188 .eraseblocks = { {64 * 1024, 2} },
4189 .block_erase = spi_block_erase_d8,
4190 }, {
4191 .eraseblocks = { {128 * 1024, 1} },
4192 .block_erase = spi_block_erase_c7,
4193 }
4194 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004195 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004196 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004197 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00004198 },
4199
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004200 {
4201 .vendor = "Numonyx",
4202 .name = "M25PE20",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004203 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004204 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00004205 .model_id = ST_M25PE20,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004206 .total_size = 256,
4207 .page_size = 256,
4208 .tested = TEST_UNTESTED,
4209 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004210 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00004211 .block_erasers =
4212 {
4213 {
4214 .eraseblocks = { {4 * 1024, 64} },
4215 .block_erase = spi_block_erase_20,
4216 }, {
4217 .eraseblocks = { {64 * 1024, 4} },
4218 .block_erase = spi_block_erase_d8,
4219 }, {
4220 .eraseblocks = { {256 * 1024, 1} },
4221 .block_erase = spi_block_erase_c7,
4222 }
4223 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004224 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004225 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004226 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00004227 },
4228
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004229 {
4230 .vendor = "Numonyx",
4231 .name = "M25PE40",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004232 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004233 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00004234 .model_id = ST_M25PE40,
Sean Nelson5643c072010-01-19 03:23:07 +00004235 .total_size = 512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004236 .page_size = 256,
4237 .tested = TEST_UNTESTED,
4238 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004239 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00004240 .block_erasers =
4241 {
4242 {
4243 .eraseblocks = { {4 * 1024, 128} },
4244 .block_erase = spi_block_erase_20,
4245 }, {
4246 .eraseblocks = { {64 * 1024, 8} },
4247 .block_erase = spi_block_erase_d8,
4248 }, {
4249 .eraseblocks = { {512 * 1024, 1} },
4250 .block_erase = spi_block_erase_c7,
4251 }
4252 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004253 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004254 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004255 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00004256 },
4257
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004258 {
4259 .vendor = "Numonyx",
4260 .name = "M25PE80",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004261 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004262 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00004263 .model_id = ST_M25PE80,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004264 .total_size = 1024,
4265 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004266 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004267 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004268 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00004269 .block_erasers =
4270 {
4271 {
4272 .eraseblocks = { {4 * 1024, 256} },
4273 .block_erase = spi_block_erase_20,
4274 }, {
4275 .eraseblocks = { {64 * 1024, 16} },
4276 .block_erase = spi_block_erase_d8,
4277 }, {
4278 .eraseblocks = { {1024 * 1024, 1} },
4279 .block_erase = spi_block_erase_c7,
4280 }
4281 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004282 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004283 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004284 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00004285 },
4286
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004287 {
4288 .vendor = "Numonyx",
4289 .name = "M25PE16",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004290 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004291 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00004292 .model_id = ST_M25PE16,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004293 .total_size = 2048,
4294 .page_size = 256,
4295 .tested = TEST_UNTESTED,
4296 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004297 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00004298 .block_erasers =
4299 {
4300 {
4301 .eraseblocks = { {4 * 1024, 512} },
4302 .block_erase = spi_block_erase_20,
4303 }, {
4304 .eraseblocks = { {64 * 1024, 32} },
4305 .block_erase = spi_block_erase_d8,
4306 }, {
4307 .eraseblocks = { {2 * 1024 * 1024, 1} },
4308 .block_erase = spi_block_erase_c7,
4309 }
4310 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004311 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004312 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004313 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00004314 },
4315
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004316 {
4317 .vendor = "PMC",
4318 .name = "Pm25LV010",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004319 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004320 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004321 .model_id = PMC_PM25LV010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004322 .total_size = 128,
4323 .page_size = 256,
4324 .tested = TEST_UNTESTED,
4325 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004326 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00004327 .block_erasers =
4328 {
4329 {
4330 .eraseblocks = { {4 * 1024, 32} },
4331 .block_erase = spi_block_erase_d7,
4332 }, {
4333 .eraseblocks = { {32 * 1024, 4} },
4334 .block_erase = spi_block_erase_d8,
4335 }, {
4336 .eraseblocks = { {128 * 1024, 1} },
4337 .block_erase = spi_block_erase_c7,
4338 }
4339 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004340 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004341 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004342 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00004343 },
4344
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004345 {
4346 .vendor = "PMC",
4347 .name = "Pm25LV016B",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004348 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004349 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004350 .model_id = PMC_PM25LV016B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004351 .total_size = 2048,
4352 .page_size = 256,
4353 .tested = TEST_UNTESTED,
4354 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004355 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00004356 .block_erasers =
4357 {
4358 {
4359 .eraseblocks = { {4 * 1024, 512} },
4360 .block_erase = spi_block_erase_d7,
4361 }, {
4362 .eraseblocks = { {4 * 1024, 512} },
4363 .block_erase = spi_block_erase_20,
4364 }, {
4365 .eraseblocks = { {64 * 1024, 32} },
4366 .block_erase = spi_block_erase_d8,
4367 }, {
4368 .eraseblocks = { {2 * 1024 * 1024, 1} },
4369 .block_erase = spi_block_erase_60,
4370 }, {
4371 .eraseblocks = { {2 * 1024 * 1024, 1} },
4372 .block_erase = spi_block_erase_c7,
4373 }
4374 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004375 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004376 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004377 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00004378 },
4379
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004380 {
4381 .vendor = "PMC",
4382 .name = "Pm25LV020",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004383 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004384 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004385 .model_id = PMC_PM25LV020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004386 .total_size = 256,
4387 .page_size = 256,
4388 .tested = TEST_UNTESTED,
4389 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004390 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00004391 .block_erasers =
4392 {
4393 {
4394 .eraseblocks = { {4 * 1024, 64} },
4395 .block_erase = spi_block_erase_d7,
4396 }, {
4397 .eraseblocks = { {64 * 1024, 4} },
4398 .block_erase = spi_block_erase_d8,
4399 }, {
4400 .eraseblocks = { {256 * 1024, 1} },
4401 .block_erase = spi_block_erase_c7,
4402 }
4403 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004404 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004405 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004406 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00004407 },
4408
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004409 {
4410 .vendor = "PMC",
4411 .name = "Pm25LV040",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004412 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004413 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004414 .model_id = PMC_PM25LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004415 .total_size = 512,
4416 .page_size = 256,
4417 .tested = TEST_UNTESTED,
4418 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004419 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00004420 .block_erasers =
4421 {
4422 {
4423 .eraseblocks = { {4 * 1024, 128} },
4424 .block_erase = spi_block_erase_d7,
4425 }, {
4426 .eraseblocks = { {64 * 1024, 8} },
4427 .block_erase = spi_block_erase_d8,
4428 }, {
4429 .eraseblocks = { {512 * 1024, 1} },
4430 .block_erase = spi_block_erase_c7,
4431 }
4432 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004433 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004434 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004435 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00004436 },
4437
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004438 {
4439 .vendor = "PMC",
4440 .name = "Pm25LV080B",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004441 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004442 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004443 .model_id = PMC_PM25LV080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004444 .total_size = 1024,
4445 .page_size = 256,
4446 .tested = TEST_UNTESTED,
4447 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004448 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00004449 .block_erasers =
4450 {
4451 {
4452 .eraseblocks = { {4 * 1024, 256} },
4453 .block_erase = spi_block_erase_d7,
4454 }, {
4455 .eraseblocks = { {4 * 1024, 256} },
4456 .block_erase = spi_block_erase_20,
4457 }, {
4458 .eraseblocks = { {64 * 1024, 16} },
4459 .block_erase = spi_block_erase_d8,
4460 }, {
4461 .eraseblocks = { {1024 * 1024, 1} },
4462 .block_erase = spi_block_erase_60,
4463 }, {
4464 .eraseblocks = { {1024 * 1024, 1} },
4465 .block_erase = spi_block_erase_c7,
4466 }
4467 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004468 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004469 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004470 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00004471 },
4472
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004473 {
4474 .vendor = "PMC",
4475 .name = "Pm25LV512",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004476 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004477 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004478 .model_id = PMC_PM25LV512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004479 .total_size = 64,
4480 .page_size = 256,
4481 .tested = TEST_UNTESTED,
4482 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004483 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00004484 .block_erasers =
4485 {
4486 {
4487 .eraseblocks = { {4 * 1024, 16} },
4488 .block_erase = spi_block_erase_d7,
4489 }, {
4490 .eraseblocks = { {32 * 1024, 2} },
4491 .block_erase = spi_block_erase_d8,
4492 }, {
4493 .eraseblocks = { {64 * 1024, 1} },
4494 .block_erase = spi_block_erase_c7,
4495 }
4496 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004497 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004498 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004499 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00004500 },
4501
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004502 {
4503 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00004504 .name = "Pm29F002T",
Uwe Hermannf983d9f2009-06-14 21:53:26 +00004505 .bustype = CHIP_BUSTYPE_PARALLEL,
4506 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004507 .model_id = PMC_PM29F002T,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00004508 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00004509 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004510 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004511 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +00004512 .probe = probe_jedec,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00004513 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00004514 .block_erasers =
4515 {
4516 {
4517 .eraseblocks = {
4518 {128 * 1024, 1},
4519 {96 * 1024, 1},
4520 {8 * 1024, 2},
4521 {16 * 1024, 1},
4522 },
Sean Nelson35727f72010-01-28 23:55:12 +00004523 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00004524 }, {
4525 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004526 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00004527 },
4528 },
Sean Nelson35727f72010-01-28 23:55:12 +00004529 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00004530 .read = read_memmapped,
4531 },
4532
4533 {
4534 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00004535 .name = "Pm29F002B",
Uwe Hermannf983d9f2009-06-14 21:53:26 +00004536 .bustype = CHIP_BUSTYPE_PARALLEL,
4537 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004538 .model_id = PMC_PM29F002B,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00004539 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00004540 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004541 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00004542 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00004543 .probe = probe_jedec,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00004544 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00004545 .block_erasers =
4546 {
4547 {
4548 .eraseblocks = {
4549 {16 * 1024, 1},
4550 {8 * 1024, 2},
4551 {96 * 1024, 1},
4552 {128 * 1024, 1},
4553 },
Sean Nelson35727f72010-01-28 23:55:12 +00004554 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00004555 }, {
4556 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004557 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00004558 },
4559 },
Sean Nelson35727f72010-01-28 23:55:12 +00004560 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00004561 .read = read_memmapped,
4562 },
4563
4564 {
4565 .vendor = "PMC",
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00004566 .name = "Pm39LV010",
Urja Rannikko038a3122009-06-28 19:19:25 +00004567 .bustype = CHIP_BUSTYPE_PARALLEL,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00004568 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004569 .model_id = PMC_PM39F010, /* Pm39LV010 and Pm39F010 have identical IDs but different voltage */
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00004570 .total_size = 128,
4571 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00004572 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004573 .tested = TEST_OK_PRE,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00004574 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004575 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson5643c072010-01-19 03:23:07 +00004576 .block_erasers =
4577 {
4578 {
4579 .eraseblocks = { {4 * 1024, 32} },
4580 .block_erase = erase_sector_jedec,
4581 }, {
4582 .eraseblocks = { {64 * 1024, 2} },
4583 .block_erase = erase_block_jedec,
4584 }, {
4585 .eraseblocks = { {128 * 1024, 1} },
4586 .block_erase = erase_chip_block_jedec,
4587 }
4588 },
Sean Nelson35727f72010-01-28 23:55:12 +00004589 .write = write_jedec_1,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00004590 .read = read_memmapped,
4591 },
4592
4593 {
4594 .vendor = "PMC",
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00004595 .name = "Pm39LV020",
4596 .bustype = CHIP_BUSTYPE_PARALLEL,
4597 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004598 .model_id = PMC_PM39LV020,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00004599 .total_size = 256,
4600 .page_size = 4096,
4601 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
4602 .tested = TEST_UNTESTED,
4603 .probe = probe_jedec,
4604 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4605 .block_erasers =
4606 {
4607 {
4608 .eraseblocks = { {4 * 1024, 64} },
4609 .block_erase = erase_sector_jedec,
4610 }, {
4611 .eraseblocks = { {64 * 1024, 4} },
4612 .block_erase = erase_block_jedec,
4613 }, {
4614 .eraseblocks = { {256 * 1024, 1} },
4615 .block_erase = erase_chip_block_jedec,
4616 }
4617 },
4618 .write = write_jedec_1,
4619 .read = read_memmapped,
4620 },
4621
4622 {
4623 .vendor = "PMC",
4624 .name = "Pm39LV040",
4625 .bustype = CHIP_BUSTYPE_PARALLEL,
4626 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004627 .model_id = PMC_PM39LV040,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00004628 .total_size = 512,
4629 .page_size = 4096,
4630 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
4631 .tested = TEST_UNTESTED,
4632 .probe = probe_jedec,
4633 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4634 .block_erasers =
4635 {
4636 {
4637 .eraseblocks = { {4 * 1024, 128} },
4638 .block_erase = erase_sector_jedec,
4639 }, {
4640 .eraseblocks = { {64 * 1024, 8} },
4641 .block_erase = erase_block_jedec,
4642 }, {
4643 .eraseblocks = { {512 * 1024, 1} },
4644 .block_erase = erase_chip_block_jedec,
4645 }
4646 },
4647 .write = write_jedec_1,
4648 .read = read_memmapped,
4649 },
4650
4651 {
4652 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004653 .name = "Pm49FL002",
Uwe Hermann431f4f72010-09-05 12:41:25 +00004654 .bustype = CHIP_BUSTYPE_LPC | CHIP_BUSTYPE_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004655 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004656 .model_id = PMC_PM49FL002,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004657 .total_size = 256,
4658 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004659 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004660 .tested = TEST_OK_PRE,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00004661 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004662 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00004663 .block_erasers =
4664 {
4665 {
4666 .eraseblocks = { {4 * 1024, 64} },
4667 .block_erase = erase_sector_jedec,
4668 }, {
4669 .eraseblocks = { {16 * 1024, 16} },
4670 .block_erase = erase_block_jedec,
4671 }, {
4672 .eraseblocks = { {256 * 1024, 1} },
4673 .block_erase = erase_chip_block_jedec,
4674 }
4675 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00004676 .unlock = unlock_49fl00x,
Sean Nelson36172342010-02-27 18:01:15 +00004677 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004678 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00004679 },
4680
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004681 {
4682 .vendor = "PMC",
4683 .name = "Pm49FL004",
Uwe Hermann431f4f72010-09-05 12:41:25 +00004684 .bustype = CHIP_BUSTYPE_LPC | CHIP_BUSTYPE_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004685 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004686 .model_id = PMC_PM49FL004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004687 .total_size = 512,
4688 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004689 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004690 .tested = TEST_OK_PRE,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00004691 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004692 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00004693 .block_erasers =
4694 {
4695 {
4696 .eraseblocks = { {4 * 1024, 128} },
4697 .block_erase = erase_sector_jedec,
4698 }, {
4699 .eraseblocks = { {64 * 1024, 8} },
4700 .block_erase = erase_block_jedec,
4701 }, {
4702 .eraseblocks = { {512 * 1024, 1} },
4703 .block_erase = erase_chip_block_jedec,
4704 }
4705 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00004706 .unlock = unlock_49fl00x,
Sean Nelson36172342010-02-27 18:01:15 +00004707 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004708 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00004709 },
4710
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004711 {
Sean Nelsond70b09c2009-11-24 02:11:08 +00004712 .vendor = "Sanyo",
4713 .name = "LF25FW203A",
4714 .bustype = CHIP_BUSTYPE_SPI,
4715 .manufacture_id = SANYO_ID,
4716 .model_id = SANYO_LE25FW203A,
4717 .total_size = 2048,
4718 .page_size = 256,
4719 .tested = TEST_UNTESTED,
4720 .probe = probe_spi_rdid,
4721 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00004722 .block_erasers =
4723 {
4724 {
4725 .eraseblocks = { {64 * 1024, 32} },
4726 .block_erase = spi_block_erase_d8,
4727 }, {
4728 .eraseblocks = { {2 * 1024 * 1024, 1} },
4729 .block_erase = spi_block_erase_c7,
4730 }
4731 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004732 .unlock = spi_disable_blockprotect,
Sean Nelsond70b09c2009-11-24 02:11:08 +00004733 .write = spi_chip_write_256,
4734 .read = spi_chip_read,
4735 },
4736
4737 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004738 .vendor = "Sharp",
4739 .name = "LHF00L04",
Urja Rannikko038a3122009-06-28 19:19:25 +00004740 .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004741 .manufacture_id = SHARP_ID,
4742 .model_id = SHARP_LHF00L04,
4743 .total_size = 1024,
4744 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00004745 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004746 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00004747 .probe = probe_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00004748 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00004749 .block_erasers =
4750 {
4751 {
4752 .eraseblocks = {
4753 {64 * 1024, 15},
4754 {8 * 1024, 8}
4755 },
Sean Nelson28accc22010-03-19 18:47:06 +00004756 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00004757 }, {
4758 .eraseblocks = {
4759 {1024 * 1024, 1}
4760 },
Sean Nelson51c83fb2010-01-20 20:55:53 +00004761 .block_erase = NULL, /* 30 D0, only in A/A mux mode */
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00004762 },
4763 },
Sean Nelson28accc22010-03-19 18:47:06 +00004764 .unlock = unlock_82802ab,
4765 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004766 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00004767 },
4768
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004769 {
4770 .vendor = "Spansion",
Rudy Hostf4e57772010-11-29 00:37:49 +00004771 .name = "S25FL004A",
4772 .bustype = CHIP_BUSTYPE_SPI,
4773 .manufacture_id = SPANSION_ID,
4774 .model_id = SPANSION_S25FL004A,
4775 .total_size = 512,
4776 .page_size = 256,
4777 .tested = TEST_UNTESTED,
4778 .probe = probe_spi_rdid,
4779 .probe_timing = TIMING_ZERO,
4780 .block_erasers =
4781 {
4782 {
4783 .eraseblocks = { {64 * 1024, 8} },
4784 .block_erase = spi_block_erase_d8,
4785 }, {
4786 .eraseblocks = { {512 * 1024, 1} },
4787 .block_erase = spi_block_erase_c7,
4788 }
4789 },
4790 .unlock = spi_disable_blockprotect,
4791 .write = spi_chip_write_256,
4792 .read = spi_chip_read,
4793 },
4794
4795 {
4796 .vendor = "Spansion",
Michael Karcher23ff4602010-01-12 23:29:30 +00004797 .name = "S25FL008A",
4798 .bustype = CHIP_BUSTYPE_SPI,
4799 .manufacture_id = SPANSION_ID,
4800 .model_id = SPANSION_S25FL008A,
4801 .total_size = 1024,
4802 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004803 .tested = TEST_OK_PRE,
Michael Karcher23ff4602010-01-12 23:29:30 +00004804 .probe = probe_spi_rdid,
4805 .probe_timing = TIMING_ZERO,
Michael Karcher23ff4602010-01-12 23:29:30 +00004806 .block_erasers =
4807 {
4808 {
4809 .eraseblocks = { {64 * 1024, 16} },
4810 .block_erase = spi_block_erase_d8,
4811 }, {
4812 .eraseblocks = { {1024 * 1024, 1} },
4813 .block_erase = spi_block_erase_c7,
4814 }
4815 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004816 .unlock = spi_disable_blockprotect,
Michael Karcher23ff4602010-01-12 23:29:30 +00004817 .write = spi_chip_write_256,
4818 .read = spi_chip_read,
4819 },
4820
4821 {
4822 .vendor = "Spansion",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004823 .name = "S25FL016A",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004824 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004825 .manufacture_id = SPANSION_ID,
4826 .model_id = SPANSION_S25FL016A,
4827 .total_size = 2048,
4828 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004829 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004830 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004831 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00004832 .block_erasers =
4833 {
4834 {
4835 .eraseblocks = { {64 * 1024, 32} },
4836 .block_erase = spi_block_erase_d8,
4837 }, {
4838 .eraseblocks = { {2 * 1024 * 1024, 1} },
4839 .block_erase = spi_block_erase_c7,
4840 }
4841 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004842 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004843 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004844 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00004845 },
4846
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004847 {
Rudy Hostf4e57772010-11-29 00:37:49 +00004848 .vendor = "Spansion",
4849 .name = "S25FL032A",
4850 .bustype = CHIP_BUSTYPE_SPI,
4851 .manufacture_id = SPANSION_ID,
4852 .model_id = SPANSION_S25FL032A,
4853 .total_size = 4096,
4854 .page_size = 256,
4855 .tested = TEST_UNTESTED,
4856 .probe = probe_spi_rdid,
4857 .probe_timing = TIMING_ZERO,
4858 .block_erasers =
4859 {
4860 {
4861 .eraseblocks = { {64 * 1024, 64} },
4862 .block_erase = spi_block_erase_d8,
4863 }, {
4864 .eraseblocks = { {4 * 1024 * 1024, 1} },
4865 .block_erase = spi_block_erase_c7,
4866 }
4867 },
4868 .unlock = spi_disable_blockprotect,
4869 .write = spi_chip_write_256,
4870 .read = spi_chip_read,
4871 },
4872
4873 {
4874 .vendor = "Spansion",
4875 .name = "S25FL064A",
4876 .bustype = CHIP_BUSTYPE_SPI,
4877 .manufacture_id = SPANSION_ID,
4878 .model_id = SPANSION_S25FL064A,
4879 .total_size = 8192,
4880 .page_size = 256,
4881 .tested = TEST_OK_PREW,
4882 .probe = probe_spi_rdid,
4883 .probe_timing = TIMING_ZERO,
4884 .block_erasers =
4885 {
4886 {
4887 .eraseblocks = { {64 * 1024, 128} },
4888 .block_erase = spi_block_erase_d8,
4889 }, {
4890 .eraseblocks = { {8 * 1024 * 1024, 1} },
4891 .block_erase = spi_block_erase_c7,
4892 }
4893 },
4894 .unlock = spi_disable_blockprotect,
4895 .write = spi_chip_write_256,
4896 .read = spi_chip_read,
4897 },
4898
4899 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004900 .vendor = "SST",
Mark Marshall90021f22010-12-03 14:48:11 +00004901 .name = "SST25VF010.REMS",
4902 .bustype = CHIP_BUSTYPE_SPI,
4903 .manufacture_id = SST_ID,
4904 .model_id = SST_SST25VF010_REMS,
4905 .total_size = 128,
4906 .page_size = 256,
4907 .tested = TEST_OK_PREW,
4908 .probe = probe_spi_rems,
4909 .probe_timing = TIMING_ZERO,
4910 .block_erasers =
4911 {
4912 {
4913 .eraseblocks = { {4 * 1024, 32} },
4914 .block_erase = spi_block_erase_20,
4915 }, {
4916 .eraseblocks = { {32 * 1024, 4} },
4917 .block_erase = spi_block_erase_52,
4918 }, {
4919 .eraseblocks = { {128 * 1024, 1} },
4920 .block_erase = spi_block_erase_60,
4921 },
4922 },
4923 .unlock = spi_disable_blockprotect,
4924 .write = spi_chip_write_1,
4925 .read = spi_chip_read,
4926 },
4927
4928 {
4929 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004930 .name = "SST25VF016B",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004931 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004932 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004933 .model_id = SST_SST25VF016B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004934 .total_size = 2048,
4935 .page_size = 256,
Mark Marshall90021f22010-12-03 14:48:11 +00004936 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004937 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004938 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00004939 .block_erasers =
4940 {
4941 {
4942 .eraseblocks = { {4 * 1024, 512} },
4943 .block_erase = spi_block_erase_20,
4944 }, {
4945 .eraseblocks = { {32 * 1024, 64} },
4946 .block_erase = spi_block_erase_52,
4947 }, {
4948 .eraseblocks = { {64 * 1024, 32} },
4949 .block_erase = spi_block_erase_d8,
4950 }, {
4951 .eraseblocks = { {2 * 1024 * 1024, 1} },
4952 .block_erase = spi_block_erase_60,
4953 }, {
4954 .eraseblocks = { {2 * 1024 * 1024, 1} },
4955 .block_erase = spi_block_erase_c7,
4956 },
4957 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004958 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger93bb3752009-05-13 22:19:12 +00004959 .write = spi_chip_write_1,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004960 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00004961 },
4962
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004963 {
4964 .vendor = "SST",
4965 .name = "SST25VF032B",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004966 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004967 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004968 .model_id = SST_SST25VF032B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004969 .total_size = 4096,
4970 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004971 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004972 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004973 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00004974 .block_erasers =
4975 {
4976 {
4977 .eraseblocks = { {4 * 1024, 1024} },
4978 .block_erase = spi_block_erase_20,
4979 }, {
4980 .eraseblocks = { {32 * 1024, 128} },
4981 .block_erase = spi_block_erase_52,
4982 }, {
4983 .eraseblocks = { {64 * 1024, 64} },
4984 .block_erase = spi_block_erase_d8,
4985 }, {
4986 .eraseblocks = { {4 * 1024 * 1024, 1} },
4987 .block_erase = spi_block_erase_60,
4988 }, {
4989 .eraseblocks = { {4 * 1024 * 1024, 1} },
4990 .block_erase = spi_block_erase_c7,
4991 },
4992 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004993 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +00004994 .write = spi_aai_write,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00004995 .read = spi_chip_read,
4996 },
4997
4998 {
4999 .vendor = "SST",
Ed Swierk86f4e6d2010-07-21 15:02:22 +00005000 .name = "SST25VF064C",
5001 .bustype = CHIP_BUSTYPE_SPI,
5002 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005003 .model_id = SST_SST25VF064C,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00005004 .total_size = 8192,
5005 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005006 .tested = TEST_OK_PRE,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00005007 .probe = probe_spi_rdid,
5008 .probe_timing = TIMING_ZERO,
5009 .block_erasers =
5010 {
5011 {
5012 .eraseblocks = { {4 * 1024, 2048} },
5013 .block_erase = spi_block_erase_20,
5014 }, {
5015 .eraseblocks = { {32 * 1024, 256} },
5016 .block_erase = spi_block_erase_52,
5017 }, {
5018 .eraseblocks = { {64 * 1024, 128} },
5019 .block_erase = spi_block_erase_d8,
5020 }, {
5021 .eraseblocks = { {8 * 1024 * 1024, 1} },
5022 .block_erase = spi_block_erase_60,
5023 }, {
5024 .eraseblocks = { {8 * 1024 * 1024, 1} },
5025 .block_erase = spi_block_erase_c7,
5026 },
5027 },
5028 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +00005029 .write = spi_chip_write_256,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00005030 .read = spi_chip_read,
5031 },
5032
5033 {
5034 .vendor = "SST",
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00005035 .name = "SST25VF040.REMS",
5036 .bustype = CHIP_BUSTYPE_SPI,
5037 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005038 .model_id = SST_SST25VF040_REMS,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00005039 .total_size = 512,
5040 .page_size = 256,
5041 .tested = TEST_OK_PR,
5042 .probe = probe_spi_rems,
5043 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00005044 .block_erasers =
5045 {
5046 {
5047 .eraseblocks = { {4 * 1024, 128} },
5048 .block_erase = spi_block_erase_20,
5049 }, {
5050 .eraseblocks = { {32 * 1024, 16} },
5051 .block_erase = spi_block_erase_52,
5052 }, {
5053 .eraseblocks = { {512 * 1024, 1} },
5054 .block_erase = spi_block_erase_60,
5055 },
5056 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005057 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger93bb3752009-05-13 22:19:12 +00005058 .write = spi_chip_write_1,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005059 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00005060 },
5061
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005062 {
5063 .vendor = "SST",
5064 .name = "SST25VF040B",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00005065 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005066 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005067 .model_id = SST_SST25VF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005068 .total_size = 512,
5069 .page_size = 256,
5070 .tested = TEST_UNTESTED,
5071 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005072 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00005073 .block_erasers =
5074 {
5075 {
5076 .eraseblocks = { {4 * 1024, 128} },
5077 .block_erase = spi_block_erase_20,
5078 }, {
5079 .eraseblocks = { {32 * 1024, 16} },
5080 .block_erase = spi_block_erase_52,
5081 }, {
5082 .eraseblocks = { {64 * 1024, 8} },
5083 .block_erase = spi_block_erase_d8,
5084 }, {
5085 .eraseblocks = { {512 * 1024, 1} },
5086 .block_erase = spi_block_erase_60,
5087 }, {
5088 .eraseblocks = { {512 * 1024, 1} },
5089 .block_erase = spi_block_erase_c7,
5090 },
5091 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005092 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger93bb3752009-05-13 22:19:12 +00005093 .write = spi_chip_write_1,
Zheng Bao0677dff2009-02-25 08:07:33 +00005094 .read = spi_chip_read,
5095 },
5096
5097 {
5098 .vendor = "SST",
Stefan Reinauer5cacf8c2010-06-14 12:58:06 +00005099 .name = "SST25LF040A.RES",
5100 .bustype = CHIP_BUSTYPE_SPI,
5101 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005102 .model_id = SST_SST25VF040_REMS,
Stefan Reinauer5cacf8c2010-06-14 12:58:06 +00005103 .total_size = 512,
5104 .page_size = 256,
5105 .tested = TEST_OK_PROBE,
5106 .probe = probe_spi_res2,
5107 .probe_timing = TIMING_ZERO,
5108 .block_erasers =
5109 {
5110 {
5111 .eraseblocks = { {4 * 1024, 128} },
5112 .block_erase = spi_block_erase_20,
5113 }, {
5114 .eraseblocks = { {32 * 1024, 16} },
5115 .block_erase = spi_block_erase_52,
5116 }, {
5117 .eraseblocks = { {512 * 1024, 1} },
5118 .block_erase = spi_block_erase_60,
5119 },
5120 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005121 .unlock = spi_disable_blockprotect,
Stefan Reinauer5cacf8c2010-06-14 12:58:06 +00005122 .write = spi_chip_write_1,
5123 .read = spi_chip_read,
5124 },
5125
5126 {
5127 .vendor = "SST",
Peter Stugefd9217d2009-01-26 03:37:40 +00005128 .name = "SST25VF040B.REMS",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00005129 .bustype = CHIP_BUSTYPE_SPI,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005130 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005131 .model_id = SST_SST25VF040B_REMS,
Peter Stugefd9217d2009-01-26 03:37:40 +00005132 .total_size = 512,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00005133 .page_size = 256,
Peter Stugefd9217d2009-01-26 03:37:40 +00005134 .tested = TEST_OK_PR,
5135 .probe = probe_spi_rems,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005136 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00005137 .block_erasers =
5138 {
5139 {
5140 .eraseblocks = { {4 * 1024, 128} },
5141 .block_erase = spi_block_erase_20,
5142 }, {
5143 .eraseblocks = { {32 * 1024, 16} },
5144 .block_erase = spi_block_erase_52,
5145 }, {
5146 .eraseblocks = { {64 * 1024, 8} },
5147 .block_erase = spi_block_erase_d8,
5148 }, {
5149 .eraseblocks = { {512 * 1024, 1} },
5150 .block_erase = spi_block_erase_60,
5151 }, {
5152 .eraseblocks = { {512 * 1024, 1} },
5153 .block_erase = spi_block_erase_c7,
5154 },
5155 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005156 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger93bb3752009-05-13 22:19:12 +00005157 .write = spi_chip_write_1,
Peter Stugefd9217d2009-01-26 03:37:40 +00005158 .read = spi_chip_read,
5159 },
5160
5161 {
5162 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005163 .name = "SST25VF080B",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00005164 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005165 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005166 .model_id = SST_SST25VF080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005167 .total_size = 1024,
5168 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005169 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005170 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005171 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00005172 .block_erasers =
5173 {
5174 {
5175 .eraseblocks = { {4 * 1024, 256} },
5176 .block_erase = spi_block_erase_20,
5177 }, {
5178 .eraseblocks = { {32 * 1024, 32} },
5179 .block_erase = spi_block_erase_52,
5180 }, {
5181 .eraseblocks = { {64 * 1024, 16} },
5182 .block_erase = spi_block_erase_d8,
5183 }, {
5184 .eraseblocks = { {1024 * 1024, 1} },
5185 .block_erase = spi_block_erase_60,
5186 }, {
5187 .eraseblocks = { {1024 * 1024, 1} },
5188 .block_erase = spi_block_erase_c7,
5189 },
5190 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005191 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005192 .write = spi_chip_write_1,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005193 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00005194 },
5195
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005196 {
5197 .vendor = "SST",
5198 .name = "SST28SF040A",
Urja Rannikko038a3122009-06-28 19:19:25 +00005199 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005200 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005201 .model_id = SST_SST28SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005202 .total_size = 512,
5203 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00005204 .feature_bits = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005205 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005206 .probe = probe_82802ab,
Maciej Pijankac6e11112009-06-03 14:46:22 +00005207 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (sst28sf040.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00005208 .block_erasers =
5209 {
5210 {
5211 .eraseblocks = { {128, 4096} },
5212 .block_erase = erase_sector_28sf040,
5213 }, {
5214 .eraseblocks = { {512 * 1024, 1} },
5215 .block_erase = erase_chip_28sf040,
5216 }
5217 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00005218 .unlock = unprotect_28sf040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005219 .write = write_28sf040,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005220 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00005221 },
5222
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005223 {
5224 .vendor = "SST",
5225 .name = "SST29EE010",
Urja Rannikko038a3122009-06-28 19:19:25 +00005226 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005227 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005228 .model_id = SST_SST29EE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005229 .total_size = 128,
5230 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00005231 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005232 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005233 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005234 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00005235 .block_erasers =
5236 {
5237 {
5238 .eraseblocks = { {128 * 1024, 1} },
5239 .block_erase = erase_chip_block_jedec,
5240 }
5241 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005242 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005243 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00005244 },
5245
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005246 {
5247 .vendor = "SST",
5248 .name = "SST29LE010",
Urja Rannikko038a3122009-06-28 19:19:25 +00005249 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005250 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005251 .model_id = SST_SST29LE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005252 .total_size = 128,
5253 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00005254 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005255 .tested = TEST_UNTESTED,
5256 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005257 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00005258 .block_erasers =
5259 {
5260 {
5261 .eraseblocks = { {128 * 1024, 1} },
5262 .block_erase = erase_chip_block_jedec,
5263 }
5264 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005265 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005266 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00005267 },
5268
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005269 {
5270 .vendor = "SST",
5271 .name = "SST29EE020A",
Urja Rannikko038a3122009-06-28 19:19:25 +00005272 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005273 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005274 .model_id = SST_SST29EE020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005275 .total_size = 256,
5276 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00005277 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005278 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005279 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005280 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00005281 .block_erasers =
5282 {
5283 {
5284 .eraseblocks = { {256 * 1024, 1} },
5285 .block_erase = erase_chip_block_jedec,
5286 }
5287 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005288 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005289 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00005290 },
5291
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005292 {
5293 .vendor = "SST",
5294 .name = "SST29LE020",
Urja Rannikko038a3122009-06-28 19:19:25 +00005295 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005296 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005297 .model_id = SST_SST29LE020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005298 .total_size = 256,
5299 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00005300 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005301 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005302 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005303 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00005304 .block_erasers =
5305 {
5306 {
5307 .eraseblocks = { {256 * 1024, 1} },
5308 .block_erase = erase_chip_block_jedec,
5309 }
5310 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005311 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005312 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00005313 },
5314
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005315 {
5316 .vendor = "SST",
Uwe Hermann48da3f92010-01-23 15:15:19 +00005317 .name = "SST39SF512",
5318 .bustype = CHIP_BUSTYPE_PARALLEL,
5319 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005320 .model_id = SST_SST39SF512,
Uwe Hermann48da3f92010-01-23 15:15:19 +00005321 .total_size = 64,
5322 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00005323 .feature_bits = FEATURE_EITHER_RESET,
5324 .tested = TEST_UNTESTED,
Uwe Hermann48da3f92010-01-23 15:15:19 +00005325 .probe = probe_jedec,
5326 .probe_timing = 1, /* 150 ns */
Uwe Hermann48da3f92010-01-23 15:15:19 +00005327 .block_erasers =
5328 {
5329 {
5330 .eraseblocks = { {4 * 1024, 16} },
5331 .block_erase = erase_sector_jedec,
5332 }, {
5333 .eraseblocks = { {64 * 1024, 1} },
5334 .block_erase = erase_chip_block_jedec,
5335 }
5336 },
Sean Nelson35727f72010-01-28 23:55:12 +00005337 .write = write_jedec_1,
Uwe Hermann48da3f92010-01-23 15:15:19 +00005338 .read = read_memmapped,
5339 },
5340
5341 {
5342 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005343 .name = "SST39SF010A",
Urja Rannikko038a3122009-06-28 19:19:25 +00005344 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005345 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005346 .model_id = SST_SST39SF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005347 .total_size = 128,
5348 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00005349 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005350 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005351 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005352 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00005353 .block_erasers =
5354 {
5355 {
5356 .eraseblocks = { {4 * 1024, 32} },
5357 .block_erase = erase_sector_jedec,
5358 }, {
5359 .eraseblocks = { {128 * 1024, 1} },
5360 .block_erase = erase_chip_block_jedec,
5361 }
5362 },
Sean Nelson35727f72010-01-28 23:55:12 +00005363 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005364 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00005365 },
5366
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005367 {
5368 .vendor = "SST",
5369 .name = "SST39SF020A",
Urja Rannikko038a3122009-06-28 19:19:25 +00005370 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005371 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005372 .model_id = SST_SST39SF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005373 .total_size = 256,
5374 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00005375 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005376 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005377 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00005378 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00005379 .block_erasers =
5380 {
5381 {
5382 .eraseblocks = { {4 * 1024, 64} },
5383 .block_erase = erase_sector_jedec,
5384 }, {
5385 .eraseblocks = { {256 * 1024, 1} },
5386 .block_erase = erase_chip_block_jedec,
5387 }
5388 },
Sean Nelson35727f72010-01-28 23:55:12 +00005389 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005390 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00005391 },
5392
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005393 {
5394 .vendor = "SST",
5395 .name = "SST39SF040",
Urja Rannikko038a3122009-06-28 19:19:25 +00005396 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005397 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005398 .model_id = SST_SST39SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005399 .total_size = 512,
5400 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00005401 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005402 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005403 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00005404 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00005405 .block_erasers =
5406 {
5407 {
5408 .eraseblocks = { {4 * 1024, 128} },
5409 .block_erase = erase_sector_jedec,
5410 }, {
5411 .eraseblocks = { {512 * 1024, 1} },
5412 .block_erase = erase_chip_block_jedec,
5413 }
5414 },
Sean Nelson35727f72010-01-28 23:55:12 +00005415 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005416 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00005417 },
5418
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005419 {
5420 .vendor = "SST",
5421 .name = "SST39VF512",
Urja Rannikko038a3122009-06-28 19:19:25 +00005422 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005423 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005424 .model_id = SST_SST39VF512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005425 .total_size = 64,
5426 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00005427 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005428 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005429 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00005430 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00005431 .block_erasers =
5432 {
5433 {
5434 .eraseblocks = { {4 * 1024, 16} },
5435 .block_erase = erase_sector_jedec,
5436 }, {
5437 .eraseblocks = { {64 * 1024, 1} },
5438 .block_erase = erase_chip_block_jedec,
5439 }
5440 },
Sean Nelson35727f72010-01-28 23:55:12 +00005441 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005442 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00005443 },
5444
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005445 {
5446 .vendor = "SST",
5447 .name = "SST39VF010",
Urja Rannikko038a3122009-06-28 19:19:25 +00005448 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005449 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005450 .model_id = SST_SST39VF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005451 .total_size = 128,
5452 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00005453 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005454 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005455 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00005456 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00005457 .block_erasers =
5458 {
5459 {
5460 .eraseblocks = { {4 * 1024, 32} },
5461 .block_erase = erase_sector_jedec,
5462 }, {
5463 .eraseblocks = { {128 * 1024, 1} },
5464 .block_erase = erase_chip_block_jedec,
5465 }
5466 },
Sean Nelson35727f72010-01-28 23:55:12 +00005467 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005468 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00005469 },
5470
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005471 {
5472 .vendor = "SST",
5473 .name = "SST39VF020",
Urja Rannikko038a3122009-06-28 19:19:25 +00005474 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005475 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005476 .model_id = SST_SST39VF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005477 .total_size = 256,
5478 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00005479 .feature_bits = FEATURE_EITHER_RESET,
5480 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005481 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00005482 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00005483 .block_erasers =
5484 {
5485 {
5486 .eraseblocks = { {4 * 1024, 64} },
5487 .block_erase = erase_sector_jedec,
5488 }, {
5489 .eraseblocks = { {256 * 1024, 1} },
5490 .block_erase = erase_chip_block_jedec,
5491 }
5492 },
Sean Nelson35727f72010-01-28 23:55:12 +00005493 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005494 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00005495 },
5496
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005497 {
5498 .vendor = "SST",
5499 .name = "SST39VF040",
Urja Rannikko038a3122009-06-28 19:19:25 +00005500 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005501 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005502 .model_id = SST_SST39VF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005503 .total_size = 512,
5504 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00005505 .feature_bits = FEATURE_EITHER_RESET,
5506 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005507 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00005508 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00005509 .block_erasers =
5510 {
5511 {
5512 .eraseblocks = { {4 * 1024, 128} },
5513 .block_erase = erase_sector_jedec,
5514 }, {
5515 .eraseblocks = { {512 * 1024, 1} },
5516 .block_erase = erase_chip_block_jedec,
5517 }
5518 },
Sean Nelson35727f72010-01-28 23:55:12 +00005519 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005520 .read = read_memmapped,
Carl-Daniel Hailfinger90eff152008-12-08 23:51:45 +00005521 },
FENG yu ningff692fb2008-12-08 18:15:10 +00005522
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005523 {
5524 .vendor = "SST",
Peter Stuge8440cc02009-01-25 23:55:12 +00005525 .name = "SST39VF080",
Urja Rannikko038a3122009-06-28 19:19:25 +00005526 .bustype = CHIP_BUSTYPE_PARALLEL,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005527 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005528 .model_id = SST_SST39VF080,
Peter Stuge8440cc02009-01-25 23:55:12 +00005529 .total_size = 1024,
5530 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00005531 .feature_bits = FEATURE_EITHER_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +00005532 .tested = TEST_UNTESTED,
5533 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00005534 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00005535 .block_erasers =
5536 {
5537 {
5538 .eraseblocks = { {4 * 1024, 256} },
5539 .block_erase = erase_sector_jedec,
5540 }, {
5541 .eraseblocks = { {64 * 1024, 16} },
5542 .block_erase = erase_block_jedec,
5543 }, {
5544 .eraseblocks = { {1024 * 1024, 1} },
5545 .block_erase = erase_chip_block_jedec,
5546 }
5547 },
Sean Nelson35727f72010-01-28 23:55:12 +00005548 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005549 .read = read_memmapped,
Peter Stuge8440cc02009-01-25 23:55:12 +00005550 },
5551
5552 {
5553 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005554 .name = "SST49LF002A/B",
Urja Rannikko038a3122009-06-28 19:19:25 +00005555 .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005556 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005557 .model_id = SST_SST49LF002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005558 .total_size = 256,
5559 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005560 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005561 .tested = TEST_OK_PRE,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005562 .probe = probe_jedec,
5563 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00005564 .block_erasers =
5565 {
5566 {
5567 .eraseblocks = { {4 * 1024, 64} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00005568 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00005569 }, {
5570 .eraseblocks = { {16 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00005571 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00005572 }, {
5573 .eraseblocks = { {256 * 1024, 1} },
5574 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
5575 }
5576 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005577 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00005578 .unlock = unlock_sst_fwhub,
5579 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005580 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00005581 },
5582
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005583 {
5584 .vendor = "SST",
5585 .name = "SST49LF003A/B",
Urja Rannikko038a3122009-06-28 19:19:25 +00005586 .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005587 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005588 .model_id = SST_SST49LF003A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005589 .total_size = 384,
5590 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005591 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Peter Lemenkov45835c42009-09-25 01:09:18 +00005592 .tested = TEST_OK_PR,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005593 .probe = probe_jedec,
5594 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00005595 .block_erasers =
5596 {
5597 {
5598 .eraseblocks = { {4 * 1024, 96} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00005599 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00005600 }, {
5601 .eraseblocks = { {64 * 1024, 6} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00005602 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00005603 }, {
5604 .eraseblocks = { {384 * 1024, 1} },
5605 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
5606 }
5607 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005608 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00005609 .unlock = unlock_sst_fwhub,
5610 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005611 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00005612 },
5613
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005614 {
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00005615 /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB)
5616 * and is only honored for 64k block erase, but not 4k sector erase.
5617 */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005618 .vendor = "SST",
5619 .name = "SST49LF004A/B",
Urja Rannikko038a3122009-06-28 19:19:25 +00005620 .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005621 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005622 .model_id = SST_SST49LF004A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005623 .total_size = 512,
5624 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005625 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005626 .tested = TEST_OK_PRE,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005627 .probe = probe_jedec,
5628 .probe_timing = 1, /* 150 ns */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00005629 .block_erasers =
5630 {
5631 {
5632 .eraseblocks = { {4 * 1024, 128} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00005633 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00005634 }, {
5635 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00005636 .block_erase = erase_block_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00005637 }, {
5638 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson51c83fb2010-01-20 20:55:53 +00005639 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00005640 },
5641 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005642 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00005643 .unlock = unlock_sst_fwhub,
5644 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005645 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00005646 },
5647
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005648 {
5649 .vendor = "SST",
5650 .name = "SST49LF004C",
Urja Rannikko038a3122009-06-28 19:19:25 +00005651 .bustype = CHIP_BUSTYPE_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005652 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005653 .model_id = SST_SST49LF004C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005654 .total_size = 512,
5655 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005656 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005657 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005658 .probe = probe_82802ab,
Maciej Pijankac6e11112009-06-03 14:46:22 +00005659 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00005660 .block_erasers =
5661 {
5662 {
5663 .eraseblocks = { {4 * 1024, 128} },
5664 .block_erase = erase_sector_49lfxxxc,
5665 }, {
5666 .eraseblocks = {
5667 {64 * 1024, 7},
5668 {32 * 1024, 1},
5669 {8 * 1024, 2},
5670 {16 * 1024, 1},
5671 },
Sean Nelson69e58112010-03-23 17:10:28 +00005672 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00005673 }
5674 },
Sean Nelson69e58112010-03-23 17:10:28 +00005675 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00005676 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005677 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00005678 },
5679
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005680 {
5681 .vendor = "SST",
5682 .name = "SST49LF008A",
Urja Rannikko038a3122009-06-28 19:19:25 +00005683 .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005684 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005685 .model_id = SST_SST49LF008A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005686 .total_size = 1024,
5687 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005688 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005689 .tested = TEST_OK_PRE,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005690 .probe = probe_jedec,
5691 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00005692 .block_erasers =
5693 {
5694 {
5695 .eraseblocks = { {4 * 1024, 256} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00005696 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00005697 }, {
5698 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00005699 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00005700 }, {
5701 .eraseblocks = { {1024 * 1024, 1} },
5702 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
5703 }
5704 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005705 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00005706 .unlock = unlock_sst_fwhub,
5707 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005708 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00005709 },
5710
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005711 {
5712 .vendor = "SST",
5713 .name = "SST49LF008C",
Urja Rannikko038a3122009-06-28 19:19:25 +00005714 .bustype = CHIP_BUSTYPE_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005715 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005716 .model_id = SST_SST49LF008C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005717 .total_size = 1024,
5718 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005719 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005720 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005721 .probe = probe_82802ab,
Maciej Pijankac6e11112009-06-03 14:46:22 +00005722 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00005723 .block_erasers =
5724 {
5725 {
5726 .eraseblocks = { {4 * 1024, 256} },
5727 .block_erase = erase_sector_49lfxxxc,
5728 }, {
5729 .eraseblocks = {
5730 {64 * 1024, 15},
5731 {32 * 1024, 1},
5732 {8 * 1024, 2},
5733 {16 * 1024, 1},
5734 },
Sean Nelson69e58112010-03-23 17:10:28 +00005735 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00005736 }
5737 },
Sean Nelson69e58112010-03-23 17:10:28 +00005738 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00005739 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005740 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00005741 },
5742
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005743 {
5744 .vendor = "SST",
5745 .name = "SST49LF016C",
Urja Rannikko038a3122009-06-28 19:19:25 +00005746 .bustype = CHIP_BUSTYPE_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005747 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005748 .model_id = SST_SST49LF016C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005749 .total_size = 2048,
5750 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005751 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005752 .tested = TEST_OK_PR,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005753 .probe = probe_82802ab,
Maciej Pijankac6e11112009-06-03 14:46:22 +00005754 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00005755 .block_erasers =
5756 {
5757 {
5758 .eraseblocks = { {4 * 1024, 512} },
5759 .block_erase = erase_sector_49lfxxxc,
5760 }, {
5761 .eraseblocks = {
5762 {64 * 1024, 31},
5763 {32 * 1024, 1},
5764 {8 * 1024, 2},
5765 {16 * 1024, 1},
5766 },
Sean Nelson69e58112010-03-23 17:10:28 +00005767 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00005768 }
5769 },
Sean Nelson69e58112010-03-23 17:10:28 +00005770 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00005771 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005772 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00005773 },
5774
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005775 {
5776 .vendor = "SST",
5777 .name = "SST49LF020",
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005778 .bustype = CHIP_BUSTYPE_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005779 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005780 .model_id = SST_SST49LF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005781 .total_size = 256,
5782 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005783 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005784 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005785 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00005786 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00005787 .block_erasers =
5788 {
5789 {
5790 .eraseblocks = { {4 * 1024, 64} },
5791 .block_erase = erase_sector_jedec,
5792 }, {
5793 .eraseblocks = { {16 * 1024, 16} },
5794 .block_erase = erase_block_jedec,
5795 }, {
5796 .eraseblocks = { {256 * 1024, 1} },
5797 .block_erase = NULL,
5798 }
5799 },
Sean Nelson35727f72010-01-28 23:55:12 +00005800 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005801 .read = read_memmapped,
Sven Schnellec208dfb2009-01-07 12:35:09 +00005802 },
5803
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005804 {
5805 .vendor = "SST",
5806 .name = "SST49LF020A",
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005807 .bustype = CHIP_BUSTYPE_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005808 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005809 .model_id = SST_SST49LF020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005810 .total_size = 256,
Carl-Daniel Hailfingerda654322009-07-23 01:44:38 +00005811 .page_size = 4 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005812 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005813 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005814 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00005815 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00005816 .block_erasers =
5817 {
5818 {
5819 .eraseblocks = { {4 * 1024, 64} },
5820 .block_erase = erase_sector_jedec,
5821 }, {
5822 .eraseblocks = { {16 * 1024, 16} },
5823 .block_erase = erase_block_jedec,
5824 }, {
5825 .eraseblocks = { {256 * 1024, 1} },
5826 .block_erase = NULL,
5827 }
5828 },
Sean Nelson35727f72010-01-28 23:55:12 +00005829 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005830 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00005831 },
5832
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005833 {
5834 .vendor = "SST",
5835 .name = "SST49LF040",
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005836 .bustype = CHIP_BUSTYPE_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005837 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005838 .model_id = SST_SST49LF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005839 .total_size = 512,
5840 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00005841 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005842 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005843 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00005844 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00005845 .block_erasers =
5846 {
5847 {
5848 .eraseblocks = { {4 * 1024, 128} },
5849 .block_erase = erase_sector_jedec,
5850 }, {
5851 .eraseblocks = { {64 * 1024, 8} },
5852 .block_erase = erase_block_jedec,
5853 }, {
5854 .eraseblocks = { {512 * 1024, 1} },
5855 .block_erase = NULL,
5856 }
5857 },
Sean Nelson35727f72010-01-28 23:55:12 +00005858 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005859 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00005860 },
5861
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005862 {
5863 .vendor = "SST",
5864 .name = "SST49LF040B",
Urja Rannikko038a3122009-06-28 19:19:25 +00005865 .bustype = CHIP_BUSTYPE_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005866 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005867 .model_id = SST_SST49LF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005868 .total_size = 512,
5869 .page_size = 64 * 1024,
Joshua Roysa84b0bd2010-08-16 22:12:39 +00005870 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005871 .tested = TEST_OK_PRE,
Sean Nelson51c83fb2010-01-20 20:55:53 +00005872 .probe = probe_jedec,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005873 .probe_timing = 1, /* 150ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00005874 .block_erasers =
5875 {
5876 {
5877 .eraseblocks = { {4 * 1024, 128} },
5878 .block_erase = erase_sector_jedec,
5879 }, {
5880 .eraseblocks = { {64 * 1024, 8} },
5881 .block_erase = erase_block_jedec,
5882 }, {
5883 .eraseblocks = { {512 * 1024, 1} },
5884 .block_erase = NULL,
5885 }
5886 },
Joshua Roysa84b0bd2010-08-16 22:12:39 +00005887 .unlock = unlock_82802ab,
Sean Nelson35727f72010-01-28 23:55:12 +00005888 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005889 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00005890 },
5891
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005892 {
5893 .vendor = "SST",
5894 .name = "SST49LF080A",
Urja Rannikko038a3122009-06-28 19:19:25 +00005895 .bustype = CHIP_BUSTYPE_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005896 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005897 .model_id = SST_SST49LF080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005898 .total_size = 1024,
5899 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00005900 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005901 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005902 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00005903 .probe_timing = TIMING_FIXME,
Sean Nelson51c83fb2010-01-20 20:55:53 +00005904 .block_erasers =
5905 {
5906 {
5907 .eraseblocks = { {4 * 1024, 256} },
5908 .block_erase = erase_sector_jedec,
5909 }, {
5910 .eraseblocks = { {64 * 1024, 16} },
5911 .block_erase = erase_block_jedec,
5912 }, {
5913 .eraseblocks = { {1024 * 1024, 1} },
5914 .block_erase = NULL,
5915 }
5916 },
Sean Nelson35727f72010-01-28 23:55:12 +00005917 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005918 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00005919 },
5920
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005921 {
5922 .vendor = "SST",
5923 .name = "SST49LF160C",
Urja Rannikko038a3122009-06-28 19:19:25 +00005924 .bustype = CHIP_BUSTYPE_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005925 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005926 .model_id = SST_SST49LF160C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005927 .total_size = 2048,
5928 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005929 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005930 .tested = TEST_OK_PRE,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005931 .probe = probe_82802ab,
Maciej Pijankac6e11112009-06-03 14:46:22 +00005932 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00005933 .block_erasers =
5934 {
5935 {
5936 .eraseblocks = { {4 * 1024, 512} },
5937 .block_erase = erase_sector_49lfxxxc,
5938 }, {
5939 .eraseblocks = {
5940 {64 * 1024, 31},
5941 {32 * 1024, 1},
5942 {8 * 1024, 2},
5943 {16 * 1024, 1},
5944 },
Sean Nelson69e58112010-03-23 17:10:28 +00005945 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00005946 }
5947 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00005948 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00005949 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005950 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00005951 },
5952
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005953 {
5954 .vendor = "ST",
5955 .name = "M25P05-A",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00005956 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005957 .manufacture_id = ST_ID,
5958 .model_id = ST_M25P05A,
5959 .total_size = 64,
5960 .page_size = 256,
5961 .tested = TEST_UNTESTED,
5962 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005963 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00005964 .block_erasers =
5965 {
5966 {
5967 .eraseblocks = { {32 * 1024, 2} },
5968 .block_erase = spi_block_erase_d8,
5969 }, {
5970 .eraseblocks = { {64 * 1024, 1} },
5971 .block_erase = spi_block_erase_c7,
5972 }
5973 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005974 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005975 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005976 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00005977 },
5978
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00005979 /* The ST M25P05 is a bit of a problem. It has the same ID as the
5980 * ST M25P05-A in RES mode, but supports only 128 byte writes instead
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00005981 * of 256 byte writes. We rely heavily on the fact that probe_spi_res1
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00005982 * only is successful if RDID does not work.
5983 */
5984 {
5985 .vendor = "ST",
5986 .name = "M25P05.RES",
5987 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00005988 .manufacture_id = 0, /* Not used. */
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00005989 .model_id = ST_M25P05_RES,
5990 .total_size = 64,
5991 .page_size = 256,
5992 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00005993 .probe = probe_spi_res1,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00005994 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00005995 .block_erasers =
5996 {
5997 {
5998 .eraseblocks = { {32 * 1024, 2} },
5999 .block_erase = spi_block_erase_d8,
6000 }, {
6001 .eraseblocks = { {64 * 1024, 1} },
6002 .block_erase = spi_block_erase_c7,
6003 }
6004 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006005 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00006006 .write = spi_chip_write_1, /* 128 */
6007 .read = spi_chip_read,
6008 },
6009
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006010 {
6011 .vendor = "ST",
6012 .name = "M25P10-A",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00006013 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006014 .manufacture_id = ST_ID,
6015 .model_id = ST_M25P10A,
6016 .total_size = 128,
6017 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006018 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006019 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006020 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006021 .block_erasers =
6022 {
6023 {
6024 .eraseblocks = { {32 * 1024, 4} },
6025 .block_erase = spi_block_erase_d8,
6026 }, {
6027 .eraseblocks = { {128 * 1024, 1} },
6028 .block_erase = spi_block_erase_c7,
6029 }
6030 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006031 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006032 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006033 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00006034 },
6035
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00006036 /* The ST M25P10 has the same problem as the M25P05. */
6037 {
6038 .vendor = "ST",
6039 .name = "M25P10.RES",
6040 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00006041 .manufacture_id = 0, /* Not used. */
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00006042 .model_id = ST_M25P10_RES,
6043 .total_size = 128,
6044 .page_size = 256,
6045 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00006046 .probe = probe_spi_res1,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00006047 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006048 .block_erasers =
6049 {
6050 {
6051 .eraseblocks = { {32 * 1024, 4} },
6052 .block_erase = spi_block_erase_d8,
6053 }, {
6054 .eraseblocks = { {128 * 1024, 1} },
6055 .block_erase = spi_block_erase_c7,
6056 }
6057 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006058 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00006059 .write = spi_chip_write_1, /* 128 */
6060 .read = spi_chip_read,
6061 },
6062
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006063 {
6064 .vendor = "ST",
6065 .name = "M25P20",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00006066 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006067 .manufacture_id = ST_ID,
6068 .model_id = ST_M25P20,
6069 .total_size = 256,
6070 .page_size = 256,
6071 .tested = TEST_UNTESTED,
6072 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006073 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006074 .block_erasers =
6075 {
6076 {
6077 .eraseblocks = { {64 * 1024, 4} },
6078 .block_erase = spi_block_erase_d8,
6079 }, {
6080 .eraseblocks = { {256 * 1024, 1} },
6081 .block_erase = spi_block_erase_c7,
6082 }
6083 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006084 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006085 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006086 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00006087 },
6088
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006089 {
6090 .vendor = "ST",
6091 .name = "M25P40",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00006092 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006093 .manufacture_id = ST_ID,
6094 .model_id = ST_M25P40,
6095 .total_size = 512,
6096 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006097 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006098 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006099 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006100 .block_erasers =
6101 {
6102 {
6103 .eraseblocks = { {64 * 1024, 8} },
6104 .block_erase = spi_block_erase_d8,
6105 }, {
6106 .eraseblocks = { {512 * 1024, 1} },
6107 .block_erase = spi_block_erase_c7,
6108 }
6109 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006110 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006111 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006112 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00006113 },
6114
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006115 {
6116 .vendor = "ST",
6117 .name = "M25P40-old",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00006118 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00006119 .manufacture_id = 0, /* Not used. */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006120 .model_id = ST_M25P40_RES,
6121 .total_size = 512,
6122 .page_size = 256,
6123 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00006124 .probe = probe_spi_res1,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006125 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006126 .block_erasers =
6127 {
6128 {
6129 .eraseblocks = { {64 * 1024, 8} },
6130 .block_erase = spi_block_erase_d8,
6131 }, {
6132 .eraseblocks = { {512 * 1024, 1} },
6133 .block_erase = spi_block_erase_c7,
6134 }
6135 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006136 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006137 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006138 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00006139 },
6140
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006141 {
6142 .vendor = "ST",
6143 .name = "M25P80",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00006144 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006145 .manufacture_id = ST_ID,
6146 .model_id = ST_M25P80,
6147 .total_size = 1024,
6148 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006149 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006150 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006151 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006152 .block_erasers =
6153 {
6154 {
6155 .eraseblocks = { {64 * 1024, 16} },
6156 .block_erase = spi_block_erase_d8,
6157 }, {
6158 .eraseblocks = { {1024 * 1024, 1} },
6159 .block_erase = spi_block_erase_c7,
6160 }
6161 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006162 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006163 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006164 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00006165 },
6166
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006167 {
6168 .vendor = "ST",
6169 .name = "M25P16",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00006170 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006171 .manufacture_id = ST_ID,
6172 .model_id = ST_M25P16,
6173 .total_size = 2048,
6174 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006175 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006176 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006177 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006178 .block_erasers =
6179 {
6180 {
6181 .eraseblocks = { {64 * 1024, 32} },
6182 .block_erase = spi_block_erase_d8,
6183 }, {
6184 .eraseblocks = { {2 * 1024 * 1024, 1} },
6185 .block_erase = spi_block_erase_c7,
6186 }
6187 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006188 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006189 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006190 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00006191 },
6192
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006193 {
6194 .vendor = "ST",
6195 .name = "M25P32",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00006196 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006197 .manufacture_id = ST_ID,
6198 .model_id = ST_M25P32,
6199 .total_size = 4096,
6200 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006201 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006202 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006203 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006204 .block_erasers =
6205 {
6206 {
6207 .eraseblocks = { {64 * 1024, 64} },
6208 .block_erase = spi_block_erase_d8,
6209 }, {
6210 .eraseblocks = { {4 * 1024 * 1024, 1} },
6211 .block_erase = spi_block_erase_c7,
6212 }
6213 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006214 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006215 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006216 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00006217 },
6218
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006219 {
6220 .vendor = "ST",
6221 .name = "M25P64",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00006222 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006223 .manufacture_id = ST_ID,
6224 .model_id = ST_M25P64,
6225 .total_size = 8192,
6226 .page_size = 256,
6227 .tested = TEST_UNTESTED,
6228 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006229 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006230 .block_erasers =
6231 {
6232 {
6233 .eraseblocks = { {64 * 1024, 128} },
6234 .block_erase = spi_block_erase_d8,
6235 }, {
6236 .eraseblocks = { {8 * 1024 * 1024, 1} },
6237 .block_erase = spi_block_erase_c7,
6238 }
6239 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006240 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006241 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006242 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00006243 },
6244
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006245 {
6246 .vendor = "ST",
6247 .name = "M25P128",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00006248 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006249 .manufacture_id = ST_ID,
6250 .model_id = ST_M25P128,
6251 .total_size = 16384,
6252 .page_size = 256,
6253 .tested = TEST_UNTESTED,
6254 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006255 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006256 .block_erasers =
6257 {
6258 {
6259 .eraseblocks = { {256 * 1024, 64} },
6260 .block_erase = spi_block_erase_d8,
6261 }, {
6262 .eraseblocks = { {16 * 1024 * 1024, 1} },
6263 .block_erase = spi_block_erase_c7,
6264 }
6265 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006266 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006267 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006268 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00006269 },
6270
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006271 {
6272 .vendor = "ST",
Jason Shriver4119e9b2010-09-14 13:16:01 +00006273 .name = "M25PX32",
6274 .bustype = CHIP_BUSTYPE_SPI,
6275 .manufacture_id = ST_ID,
6276 .model_id = ST_M25PX32,
6277 .total_size = 4096,
6278 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006279 .tested = TEST_OK_PRE,
Jason Shriver4119e9b2010-09-14 13:16:01 +00006280 .probe = probe_spi_rdid,
6281 .probe_timing = TIMING_ZERO,
6282 .block_erasers =
6283 {
6284 {
6285 .eraseblocks = { { 4 * 1024, 1024 } },
6286 .block_erase = spi_block_erase_20,
6287 }, {
6288 .eraseblocks = { {64 * 1024, 64} },
6289 .block_erase = spi_block_erase_d8,
6290 }, {
6291 .eraseblocks = { {4 * 1024 * 1024, 1} },
6292 .block_erase = spi_block_erase_c7,
6293 }
6294 },
6295 .unlock = spi_disable_blockprotect,
6296 .write = spi_chip_write_256,
6297 .read = spi_chip_read,
6298 },
6299
6300 {
6301 .vendor = "ST",
6302 .name = "M25PX64",
6303 .bustype = CHIP_BUSTYPE_SPI,
6304 .manufacture_id = ST_ID,
6305 .model_id = ST_M25PX64,
6306 .total_size = 8192,
6307 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006308 .tested = TEST_OK_PRE,
Jason Shriver4119e9b2010-09-14 13:16:01 +00006309 .probe = probe_spi_rdid,
6310 .probe_timing = TIMING_ZERO,
6311 .block_erasers =
6312 {
6313 {
6314 .eraseblocks = { { 4 * 1024, 2048 } },
6315 .block_erase = spi_block_erase_20,
6316 }, {
6317 .eraseblocks = { {64 * 1024, 128} },
6318 .block_erase = spi_block_erase_d8,
6319 }, {
6320 .eraseblocks = { {8 * 1024 * 1024, 1} },
6321 .block_erase = spi_block_erase_c7,
6322 }
6323 },
6324 .unlock = spi_disable_blockprotect,
6325 .write = spi_chip_write_256,
6326 .read = spi_chip_read,
6327 },
6328
6329 {
6330 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006331 .name = "M29F002B",
Urja Rannikko038a3122009-06-28 19:19:25 +00006332 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006333 .manufacture_id = ST_ID,
6334 .model_id = ST_M29F002B,
6335 .total_size = 256,
6336 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006337 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006338 .tested = TEST_UNTESTED,
6339 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006340 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00006341 .block_erasers =
6342 {
6343 {
6344 .eraseblocks = {
6345 {16 * 1024, 1},
6346 {8 * 1024, 2},
6347 {32 * 1024, 1},
6348 {64 * 1024, 3},
6349 },
6350 .block_erase = erase_sector_jedec,
6351 }, {
6352 .eraseblocks = { {256 * 1024, 1} },
6353 .block_erase = erase_chip_block_jedec,
6354 }
6355 },
Sean Nelson35727f72010-01-28 23:55:12 +00006356 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006357 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00006358 },
6359
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006360 {
6361 .vendor = "ST",
6362 .name = "M29F002T/NT",
Urja Rannikko038a3122009-06-28 19:19:25 +00006363 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006364 .manufacture_id = ST_ID,
6365 .model_id = ST_M29F002T,
6366 .total_size = 256,
6367 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006368 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
6369 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006370 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006371 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00006372 .block_erasers =
6373 {
6374 {
6375 .eraseblocks = {
6376 {64 * 1024, 3},
6377 {32 * 1024, 1},
6378 {8 * 1024, 2},
6379 {16 * 1024, 1},
6380 },
6381 .block_erase = erase_sector_jedec,
6382 }, {
6383 .eraseblocks = { {256 * 1024, 1} },
6384 .block_erase = erase_chip_block_jedec,
6385 }
6386 },
Sean Nelson35727f72010-01-28 23:55:12 +00006387 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006388 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00006389 },
6390
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006391 {
6392 .vendor = "ST",
6393 .name = "M29F040B",
Urja Rannikko038a3122009-06-28 19:19:25 +00006394 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006395 .manufacture_id = ST_ID,
6396 .model_id = ST_M29F040B,
6397 .total_size = 512,
6398 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006399 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
6400 .tested = TEST_UNTESTED,
6401 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00006402 .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */
Sean Nelson56358aa2010-01-19 16:08:51 +00006403 .block_erasers =
6404 {
6405 {
6406 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson35727f72010-01-28 23:55:12 +00006407 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +00006408 }, {
6409 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006410 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +00006411 }
6412 },
Sean Nelson35727f72010-01-28 23:55:12 +00006413 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006414 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00006415 },
6416
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006417 {
Sean Nelson35727f72010-01-28 23:55:12 +00006418 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006419 .vendor = "ST",
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00006420 .name = "M29F400BB",
6421 .bustype = CHIP_BUSTYPE_PARALLEL,
6422 .manufacture_id = ST_ID,
6423 .model_id = ST_M29F400BB,
6424 .total_size = 512,
6425 .page_size = 64 * 1024,
6426 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00006427 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00006428 .probe = probe_m29f400bt,
6429 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
6430 .block_erasers =
6431 {
6432 {
6433 .eraseblocks = {
6434 {16 * 1024, 1},
6435 {8 * 1024, 2},
6436 {32 * 1024, 1},
6437 {64 * 1024, 7},
6438 },
6439 .block_erase = block_erase_m29f400bt,
6440 }, {
6441 .eraseblocks = { {512 * 1024, 1} },
6442 .block_erase = block_erase_chip_m29f400bt,
6443 }
6444 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00006445 .write = write_m29f400bt,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00006446 .read = read_memmapped,
6447 },
6448 {
6449 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
6450 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006451 .name = "M29F400BT",
Urja Rannikko038a3122009-06-28 19:19:25 +00006452 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006453 .manufacture_id = ST_ID,
6454 .model_id = ST_M29F400BT,
6455 .total_size = 512,
6456 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006457 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006458 .tested = TEST_UNTESTED,
6459 .probe = probe_m29f400bt,
Maciej Pijankac6e11112009-06-03 14:46:22 +00006460 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (m29f400bt.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00006461 .block_erasers =
6462 {
6463 {
6464 .eraseblocks = {
6465 {64 * 1024, 7},
6466 {32 * 1024, 1},
6467 {8 * 1024, 2},
6468 {16 * 1024, 1},
6469 },
6470 .block_erase = block_erase_m29f400bt,
6471 }, {
6472 .eraseblocks = { {512 * 1024, 1} },
6473 .block_erase = block_erase_chip_m29f400bt,
6474 }
6475 },
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00006476 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006477 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00006478 },
6479
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006480 {
6481 .vendor = "ST",
6482 .name = "M29W010B",
Urja Rannikko038a3122009-06-28 19:19:25 +00006483 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006484 .manufacture_id = ST_ID,
6485 .model_id = ST_M29W010B,
6486 .total_size = 128,
6487 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006488 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006489 .tested = TEST_UNTESTED,
6490 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006491 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00006492 .block_erasers =
6493 {
6494 {
6495 .eraseblocks = { {16 * 1024, 8}, },
6496 .block_erase = erase_sector_jedec,
6497 }, {
6498 .eraseblocks = { {128 * 1024, 1} },
6499 .block_erase = erase_chip_block_jedec,
6500 }
6501 },
Sean Nelson35727f72010-01-28 23:55:12 +00006502 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006503 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00006504 },
6505
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006506 {
6507 .vendor = "ST",
6508 .name = "M29W040B",
Urja Rannikko038a3122009-06-28 19:19:25 +00006509 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006510 .manufacture_id = ST_ID,
6511 .model_id = ST_M29W040B,
6512 .total_size = 512,
6513 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006514 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006515 .tested = TEST_UNTESTED,
6516 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006517 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00006518 .block_erasers =
6519 {
6520 {
6521 .eraseblocks = { {64 * 1024, 8}, },
6522 .block_erase = erase_sector_jedec,
6523 }, {
6524 .eraseblocks = { {512 * 1024, 1} },
6525 .block_erase = erase_chip_block_jedec,
6526 }
6527 },
Sean Nelson35727f72010-01-28 23:55:12 +00006528 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006529 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00006530 },
6531
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +00006532 {
6533 .vendor = "ST",
6534 .name = "M29W512B",
6535 .bustype = CHIP_BUSTYPE_PARALLEL,
6536 .manufacture_id = ST_ID,
6537 .model_id = ST_M29W512B,
6538 .total_size = 64,
6539 .page_size = 64 * 1024,
6540 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006541 .tested = TEST_OK_PRE,
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +00006542 .probe = probe_jedec,
6543 .probe_timing = TIMING_ZERO,
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +00006544 .block_erasers =
6545 {
6546 {
6547 .eraseblocks = { {64 * 1024, 1} },
6548 .block_erase = erase_chip_block_jedec,
6549 }
6550 },
6551 .write = write_jedec_1,
6552 .read = read_memmapped,
6553 },
6554
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006555 {
6556 .vendor = "ST",
6557 .name = "M50FLW040A",
Sean Nelson35727f72010-01-28 23:55:12 +00006558 .bustype = CHIP_BUSTYPE_FWH | CHIP_BUSTYPE_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006559 .manufacture_id = ST_ID,
6560 .model_id = ST_M50FLW040A,
6561 .total_size = 512,
6562 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006563 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006564 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00006565 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00006566 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00006567 .block_erasers =
6568 {
6569 {
Sean Nelson329bde72010-01-19 16:39:19 +00006570 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00006571 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00006572 {64 * 1024, 5}, /* block */
6573 {4 * 1024, 16}, /* sector */
6574 {4 * 1024, 16}, /* sector */
6575 },
6576 .block_erase = NULL,
6577 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00006578 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +00006579 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00006580 }, {
6581 .eraseblocks = { {512 * 1024, 1} },
6582 .block_erase = erase_chip_stm50flw0x0x,
6583 }
6584 },
Sean Nelson28accc22010-03-19 18:47:06 +00006585 .unlock = unlock_stm50flw0x0x,
6586 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006587 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00006588 },
6589
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006590 {
6591 .vendor = "ST",
6592 .name = "M50FLW040B",
Sean Nelson35727f72010-01-28 23:55:12 +00006593 .bustype = CHIP_BUSTYPE_FWH | CHIP_BUSTYPE_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006594 .manufacture_id = ST_ID,
6595 .model_id = ST_M50FLW040B,
6596 .total_size = 512,
6597 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006598 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006599 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00006600 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00006601 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00006602 .block_erasers =
6603 {
6604 {
Sean Nelson329bde72010-01-19 16:39:19 +00006605 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00006606 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00006607 {4 * 1024, 16}, /* sector */
6608 {64 * 1024, 5}, /* block */
6609 {4 * 1024, 16}, /* sector */
6610 },
6611 .block_erase = NULL,
6612 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00006613 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +00006614 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00006615 }, {
6616 .eraseblocks = { {512 * 1024, 1} },
6617 .block_erase = erase_chip_stm50flw0x0x,
6618 }
6619 },
Sean Nelson28accc22010-03-19 18:47:06 +00006620 .unlock = unlock_stm50flw0x0x,
6621 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006622 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00006623 },
6624
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006625 {
6626 .vendor = "ST",
6627 .name = "M50FLW080A",
Sean Nelson35727f72010-01-28 23:55:12 +00006628 .bustype = CHIP_BUSTYPE_FWH | CHIP_BUSTYPE_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006629 .manufacture_id = ST_ID,
6630 .model_id = ST_M50FLW080A,
6631 .total_size = 1024,
6632 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006633 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006634 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +00006635 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00006636 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00006637 .block_erasers =
6638 {
6639 {
Sean Nelson329bde72010-01-19 16:39:19 +00006640 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00006641 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00006642 {64 * 1024, 13}, /* block */
6643 {4 * 1024, 16}, /* sector */
6644 {4 * 1024, 16}, /* sector */
6645 },
6646 .block_erase = NULL,
6647 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00006648 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +00006649 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00006650 }, {
6651 .eraseblocks = { {1024 * 1024, 1} },
6652 .block_erase = erase_chip_stm50flw0x0x,
6653 }
6654 },
Sean Nelson28accc22010-03-19 18:47:06 +00006655 .unlock = unlock_stm50flw0x0x,
6656 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006657 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00006658 },
6659
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006660 {
6661 .vendor = "ST",
6662 .name = "M50FLW080B",
Sean Nelson35727f72010-01-28 23:55:12 +00006663 .bustype = CHIP_BUSTYPE_FWH | CHIP_BUSTYPE_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006664 .manufacture_id = ST_ID,
6665 .model_id = ST_M50FLW080B,
6666 .total_size = 1024,
6667 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006668 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006669 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00006670 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00006671 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00006672 .block_erasers =
6673 {
6674 {
Sean Nelson329bde72010-01-19 16:39:19 +00006675 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00006676 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00006677 {4 * 1024, 16}, /* sector */
6678 {64 * 1024, 13}, /* block */
6679 {4 * 1024, 16}, /* sector */
6680 },
6681 .block_erase = NULL,
6682 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00006683 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +00006684 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00006685 }, {
6686 .eraseblocks = { {1024 * 1024, 1} },
6687 .block_erase = erase_chip_stm50flw0x0x,
6688 }
6689 },
Sean Nelson28accc22010-03-19 18:47:06 +00006690 .unlock = unlock_stm50flw0x0x,
6691 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006692 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00006693 },
6694
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006695 {
6696 .vendor = "ST",
6697 .name = "M50FW002",
Urja Rannikko038a3122009-06-28 19:19:25 +00006698 .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006699 .manufacture_id = ST_ID,
6700 .model_id = ST_M50FW002,
6701 .total_size = 256,
6702 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006703 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006704 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00006705 .probe = probe_82802ab,
Maciej Pijankac6e11112009-06-03 14:46:22 +00006706 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (sst49lfxxxc.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00006707 .block_erasers =
6708 {
6709 {
6710 .eraseblocks = {
6711 {64 * 1024, 3},
6712 {32 * 1024, 1},
6713 {8 * 1024, 2},
6714 {16 * 1024, 1},
6715 },
Sean Nelson28accc22010-03-19 18:47:06 +00006716 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00006717 }, {
6718 .eraseblocks = { {256 * 1024, 1} },
6719 .block_erase = erase_chip_stm50flw0x0x,
6720 }
6721 },
Sean Nelson28accc22010-03-19 18:47:06 +00006722 .unlock = unlock_stm50flw0x0x,
6723 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006724 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00006725 },
6726
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006727 {
6728 .vendor = "ST",
6729 .name = "M50FW016",
Urja Rannikko038a3122009-06-28 19:19:25 +00006730 .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006731 .manufacture_id = ST_ID,
6732 .model_id = ST_M50FW016,
6733 .total_size = 2048,
6734 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006735 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006736 .tested = TEST_UNTESTED,
6737 .probe = probe_82802ab,
Maciej Pijankac6e11112009-06-03 14:46:22 +00006738 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00006739 .block_erasers =
6740 {
6741 {
6742 .eraseblocks = { {64 * 1024, 32}, },
Sean Nelson28accc22010-03-19 18:47:06 +00006743 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00006744 }, {
6745 .eraseblocks = { {2 * 1024 * 1024, 1} },
6746 .block_erase = erase_chip_stm50flw0x0x,
6747 }
6748 },
Sean Nelson28accc22010-03-19 18:47:06 +00006749 .unlock = unlock_stm50flw0x0x,
6750 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006751 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00006752 },
6753
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006754 {
6755 .vendor = "ST",
6756 .name = "M50FW040",
Urja Rannikko038a3122009-06-28 19:19:25 +00006757 .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006758 .manufacture_id = ST_ID,
6759 .model_id = ST_M50FW040,
6760 .total_size = 512,
6761 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006762 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +00006763 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006764 .probe = probe_82802ab,
Maciej Pijankac6e11112009-06-03 14:46:22 +00006765 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00006766 .block_erasers =
6767 {
6768 {
6769 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +00006770 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00006771 }, {
6772 .eraseblocks = { {512 * 1024, 1} },
6773 .block_erase = erase_chip_stm50flw0x0x,
6774 }
6775 },
Sean Nelson28accc22010-03-19 18:47:06 +00006776 .unlock = unlock_stm50flw0x0x,
6777 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006778 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00006779 },
6780
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006781 {
6782 .vendor = "ST",
6783 .name = "M50FW080",
Urja Rannikko038a3122009-06-28 19:19:25 +00006784 .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006785 .manufacture_id = ST_ID,
6786 .model_id = ST_M50FW080,
6787 .total_size = 1024,
6788 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006789 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +00006790 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006791 .probe = probe_82802ab,
Maciej Pijankac6e11112009-06-03 14:46:22 +00006792 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00006793 .block_erasers =
6794 {
6795 {
6796 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +00006797 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00006798 }, {
6799 .eraseblocks = { {1024 * 1024, 1} },
6800 .block_erase = erase_chip_stm50flw0x0x,
6801 }
6802 },
Sean Nelson28accc22010-03-19 18:47:06 +00006803 .unlock = unlock_stm50flw0x0x,
6804 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006805 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00006806 },
6807
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006808 {
6809 .vendor = "ST",
6810 .name = "M50LPW116",
Urja Rannikko038a3122009-06-28 19:19:25 +00006811 .bustype = CHIP_BUSTYPE_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006812 .manufacture_id = ST_ID,
6813 .model_id = ST_M50LPW116,
6814 .total_size = 2048,
6815 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006816 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006817 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00006818 .probe = probe_82802ab,
Udu Ogahc04ee222009-09-05 01:31:32 +00006819 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00006820 .block_erasers =
6821 {
6822 {
6823 .eraseblocks = {
6824 {4 * 1024, 16},
6825 {64 * 1024, 30},
6826 {32 * 1024, 1},
6827 {8 * 1024, 2},
6828 {16 * 1024, 1},
6829 },
Sean Nelson28accc22010-03-19 18:47:06 +00006830 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00006831 }, {
6832 .eraseblocks = { {2 * 1024 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006833 .block_erase = erase_chip_stm50flw0x0x,
Sean Nelson56358aa2010-01-19 16:08:51 +00006834 }
6835 },
Sean Nelson28accc22010-03-19 18:47:06 +00006836 .unlock = unlock_stm50flw0x0x,
6837 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006838 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00006839 },
6840
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006841 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00006842 .vendor = "SyncMOS/MoselVitelic",
6843 .name = "{F,S,V}29C51001B",
Urja Rannikko038a3122009-06-28 19:19:25 +00006844 .bustype = CHIP_BUSTYPE_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00006845 .manufacture_id = SYNCMOS_MVC_ID,
6846 .model_id = SM_MVC_29C51001B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006847 .total_size = 128,
Mattias Mattsson4c066502010-07-29 20:01:13 +00006848 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +00006849 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006850 .tested = TEST_UNTESTED,
6851 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006852 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00006853 .block_erasers =
6854 {
6855 {
6856 .eraseblocks = { {512, 256} },
6857 .block_erase = erase_sector_jedec,
6858 }, {
6859 .eraseblocks = { {128 * 1024, 1} },
6860 .block_erase = erase_chip_block_jedec,
6861 },
6862 },
Sean Nelson35727f72010-01-28 23:55:12 +00006863 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006864 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00006865 },
6866
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006867 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00006868 .vendor = "SyncMOS/MoselVitelic",
6869 .name = "{F,S,V}29C51001T",
Urja Rannikko038a3122009-06-28 19:19:25 +00006870 .bustype = CHIP_BUSTYPE_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00006871 .manufacture_id = SYNCMOS_MVC_ID,
6872 .model_id = SM_MVC_29C51001T,
6873 .total_size = 128,
6874 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +00006875 .feature_bits = FEATURE_EITHER_RESET,
Mattias Mattsson4c066502010-07-29 20:01:13 +00006876 .tested = TEST_UNTESTED,
6877 .probe = probe_jedec,
6878 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6879 .block_erasers =
6880 {
6881 {
6882 .eraseblocks = { {512, 256} },
6883 .block_erase = erase_sector_jedec,
6884 }, {
6885 .eraseblocks = { {128 * 1024, 1} },
6886 .block_erase = erase_chip_block_jedec,
6887 },
6888 },
6889 .write = write_jedec_1,
6890 .read = read_memmapped,
6891 },
6892
6893 {
6894 .vendor = "SyncMOS/MoselVitelic",
6895 .name = "{F,S,V}29C51002B",
6896 .bustype = CHIP_BUSTYPE_PARALLEL,
6897 .manufacture_id = SYNCMOS_MVC_ID,
6898 .model_id = SM_MVC_29C51002B,
6899 .total_size = 256,
6900 .page_size = 512,
6901 .feature_bits = FEATURE_EITHER_RESET,
6902 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006903 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006904 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00006905 .block_erasers =
6906 {
6907 {
6908 .eraseblocks = { {512, 512} },
6909 .block_erase = erase_sector_jedec,
6910 }, {
6911 .eraseblocks = { {256 * 1024, 1} },
6912 .block_erase = erase_chip_block_jedec,
6913 },
6914 },
Sean Nelson35727f72010-01-28 23:55:12 +00006915 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006916 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00006917 },
6918
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006919 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00006920 .vendor = "SyncMOS/MoselVitelic",
6921 .name = "{F,S,V}29C51002T",
Urja Rannikko038a3122009-06-28 19:19:25 +00006922 .bustype = CHIP_BUSTYPE_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00006923 .manufacture_id = SYNCMOS_MVC_ID,
6924 .model_id = SM_MVC_29C51002T,
6925 .total_size = 256,
6926 .page_size = 512,
6927 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006928 .tested = TEST_OK_PRE,
Mattias Mattsson4c066502010-07-29 20:01:13 +00006929 .probe = probe_jedec,
6930 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6931 .block_erasers =
6932 {
6933 {
6934 .eraseblocks = { {512, 512} },
6935 .block_erase = erase_sector_jedec,
6936 }, {
6937 .eraseblocks = { {256 * 1024, 1} },
6938 .block_erase = erase_chip_block_jedec,
6939 },
6940 },
6941 .write = write_jedec_1,
6942 .read = read_memmapped,
6943 },
6944
6945 {
6946 .vendor = "SyncMOS/MoselVitelic",
6947 .name = "{F,S,V}29C51004B",
6948 .bustype = CHIP_BUSTYPE_PARALLEL,
6949 .manufacture_id = SYNCMOS_MVC_ID,
6950 .model_id = SM_MVC_29C51004B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006951 .total_size = 512,
Mattias Mattsson4c066502010-07-29 20:01:13 +00006952 .page_size = 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006953 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006954 .tested = TEST_UNTESTED,
6955 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006956 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006957 .block_erasers =
6958 {
6959 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00006960 .eraseblocks = { {1024, 512} },
6961 .block_erase = erase_sector_jedec,
6962 }, {
6963 .eraseblocks = { {512 * 1024, 1} },
6964 .block_erase = erase_chip_block_jedec,
6965 },
6966 },
6967 .write = write_jedec_1,
6968 .read = read_memmapped,
6969 },
6970
6971 {
6972 .vendor = "SyncMOS/MoselVitelic",
6973 .name = "{F,S,V}29C51004T",
6974 .bustype = CHIP_BUSTYPE_PARALLEL,
6975 .manufacture_id = SYNCMOS_MVC_ID,
6976 .model_id = SM_MVC_29C51004T,
6977 .total_size = 512,
6978 .page_size = 1024,
6979 .feature_bits = FEATURE_EITHER_RESET,
6980 .tested = TEST_UNTESTED,
6981 .probe = probe_jedec,
6982 .probe_timing = TIMING_ZERO,
6983 .block_erasers =
6984 {
6985 {
6986 .eraseblocks = { {1024, 512} },
6987 .block_erase = erase_sector_jedec,
6988 }, {
6989 .eraseblocks = { {512 * 1024, 1} },
6990 .block_erase = erase_chip_block_jedec,
6991 },
6992 },
6993 .write = write_jedec_1,
6994 .read = read_memmapped,
6995 },
6996
6997 {
6998 .vendor = "SyncMOS/MoselVitelic",
6999 .name = "{S,V}29C31004B",
7000 .bustype = CHIP_BUSTYPE_PARALLEL,
7001 .manufacture_id = SYNCMOS_MVC_ID,
7002 .model_id = SM_MVC_29C31004B,
7003 .total_size = 512,
7004 .page_size = 1024,
7005 .feature_bits = FEATURE_EITHER_RESET,
7006 .tested = TEST_UNTESTED,
7007 .probe = probe_jedec,
7008 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7009 .block_erasers =
7010 {
7011 {
7012 .eraseblocks = { {1024, 512} },
7013 .block_erase = erase_sector_jedec,
7014 }, {
7015 .eraseblocks = { {512 * 1024, 1} },
7016 .block_erase = erase_chip_block_jedec,
7017 },
7018 },
7019 .write = write_jedec_1,
7020 .read = read_memmapped,
7021 },
7022
7023 {
7024 .vendor = "SyncMOS/MoselVitelic",
7025 .name = "{S,V}29C31004T",
7026 .bustype = CHIP_BUSTYPE_PARALLEL,
7027 .manufacture_id = SYNCMOS_MVC_ID,
7028 .model_id = SM_MVC_29C31004T,
7029 .total_size = 512,
7030 .page_size = 1024,
7031 .feature_bits = FEATURE_EITHER_RESET,
7032 .tested = TEST_UNTESTED,
7033 .probe = probe_jedec,
7034 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7035 .block_erasers =
7036 {
7037 {
7038 .eraseblocks = { {1024, 512} },
Sean Nelson56358aa2010-01-19 16:08:51 +00007039 .block_erase = erase_sector_jedec,
7040 }, {
7041 .eraseblocks = { {512 * 1024, 1} },
7042 .block_erase = erase_chip_block_jedec,
7043 },
7044 },
Sean Nelson35727f72010-01-28 23:55:12 +00007045 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007046 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00007047 },
7048
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007049 {
Uwe Hermanna106d152009-05-27 23:17:40 +00007050 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00007051 .name = "TMS29F002RB",
Urja Rannikko038a3122009-06-28 19:19:25 +00007052 .bustype = CHIP_BUSTYPE_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00007053 .manufacture_id = TI_OLD_ID,
7054 .model_id = TI_TMS29F002RB,
7055 .total_size = 256,
7056 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +00007057 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00007058 .tested = TEST_UNTESTED,
7059 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007060 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007061 .block_erasers =
7062 {
7063 {
7064 .eraseblocks = {
7065 {16 * 1024, 1},
7066 {8 * 1024, 2},
7067 {32 * 1024, 1},
7068 {64 * 1024, 3},
7069 },
7070 .block_erase = erase_sector_jedec,
7071 }, {
7072 .eraseblocks = { {256 * 1024, 1} },
7073 .block_erase = erase_chip_block_jedec,
7074 },
7075 },
Sean Nelson35727f72010-01-28 23:55:12 +00007076 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00007077 .read = read_memmapped,
7078 },
7079
7080 {
Uwe Hermanna106d152009-05-27 23:17:40 +00007081 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00007082 .name = "TMS29F002RT",
Urja Rannikko038a3122009-06-28 19:19:25 +00007083 .bustype = CHIP_BUSTYPE_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00007084 .manufacture_id = TI_OLD_ID,
7085 .model_id = TI_TMS29F002RT,
7086 .total_size = 256,
7087 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +00007088 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00007089 .tested = TEST_UNTESTED,
7090 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007091 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007092 .block_erasers =
7093 {
7094 {
7095 .eraseblocks = {
7096 {64 * 1024, 3},
7097 {32 * 1024, 1},
7098 {8 * 1024, 2},
7099 {16 * 1024, 1},
7100 },
7101 .block_erase = erase_sector_jedec,
7102 }, {
7103 .eraseblocks = { {256 * 1024, 1} },
7104 .block_erase = erase_chip_block_jedec,
7105 },
7106 },
Sean Nelson35727f72010-01-28 23:55:12 +00007107 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00007108 .read = read_memmapped,
7109 },
7110
7111 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007112 .vendor = "Winbond",
Rudolf Marekce1c7982010-04-20 19:34:31 +00007113 .name = "W25Q80",
7114 .bustype = CHIP_BUSTYPE_SPI,
7115 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00007116 .model_id = WINBOND_NEX_W25Q80,
Rudolf Marekce1c7982010-04-20 19:34:31 +00007117 .total_size = 1024,
7118 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00007119 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00007120 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +00007121 .probe = probe_spi_rdid,
7122 .probe_timing = TIMING_ZERO,
7123 .block_erasers =
7124 {
7125 {
7126 .eraseblocks = { {4 * 1024, 256} },
7127 .block_erase = spi_block_erase_20,
7128 }, {
7129 .eraseblocks = { {32 * 1024, 32} },
7130 .block_erase = spi_block_erase_52,
7131 }, {
7132 .eraseblocks = { {64 * 1024, 16} },
7133 .block_erase = spi_block_erase_d8,
7134 }, {
7135 .eraseblocks = { {1024 * 1024, 1} },
7136 .block_erase = spi_block_erase_60,
7137 }, {
7138 .eraseblocks = { {1024 * 1024, 1} },
7139 .block_erase = spi_block_erase_c7,
7140 }
7141 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007142 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +00007143 .write = spi_chip_write_256,
7144 .read = spi_chip_read,
7145 },
7146
7147 {
7148 .vendor = "Winbond",
7149 .name = "W25Q16",
7150 .bustype = CHIP_BUSTYPE_SPI,
7151 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00007152 .model_id = WINBOND_NEX_W25Q16,
Rudolf Marekce1c7982010-04-20 19:34:31 +00007153 .total_size = 2048,
7154 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00007155 .feature_bits = FEATURE_WRSR_WREN,
Rudolf Marekce1c7982010-04-20 19:34:31 +00007156 .tested = TEST_UNTESTED,
7157 .probe = probe_spi_rdid,
7158 .probe_timing = TIMING_ZERO,
7159 .block_erasers =
7160 {
7161 {
7162 .eraseblocks = { {4 * 1024, 512} },
7163 .block_erase = spi_block_erase_20,
7164 }, {
7165 .eraseblocks = { {32 * 1024, 64} },
7166 .block_erase = spi_block_erase_52,
7167 }, {
7168 .eraseblocks = { {64 * 1024, 32} },
7169 .block_erase = spi_block_erase_d8,
7170 }, {
7171 .eraseblocks = { {2 * 1024 * 1024, 1} },
7172 .block_erase = spi_block_erase_60,
7173 }, {
7174 .eraseblocks = { {2 * 1024 * 1024, 1} },
7175 .block_erase = spi_block_erase_c7,
7176 }
7177 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007178 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +00007179 .write = spi_chip_write_256,
7180 .read = spi_chip_read,
7181 },
7182
7183 {
7184 .vendor = "Winbond",
7185 .name = "W25Q32",
7186 .bustype = CHIP_BUSTYPE_SPI,
7187 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00007188 .model_id = WINBOND_NEX_W25Q32,
Rudolf Marekce1c7982010-04-20 19:34:31 +00007189 .total_size = 4096,
7190 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00007191 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00007192 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +00007193 .probe = probe_spi_rdid,
7194 .probe_timing = TIMING_ZERO,
7195 .block_erasers =
7196 {
7197 {
7198 .eraseblocks = { {4 * 1024, 1024} },
7199 .block_erase = spi_block_erase_20,
7200 }, {
7201 .eraseblocks = { {32 * 1024, 128} },
7202 .block_erase = spi_block_erase_52,
7203 }, {
7204 .eraseblocks = { {64 * 1024, 64} },
7205 .block_erase = spi_block_erase_d8,
7206 }, {
7207 .eraseblocks = { {4 * 1024 * 1024, 1} },
7208 .block_erase = spi_block_erase_60,
7209 }, {
7210 .eraseblocks = { {4 * 1024 * 1024, 1} },
7211 .block_erase = spi_block_erase_c7,
7212 }
7213 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007214 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +00007215 .write = spi_chip_write_256,
7216 .read = spi_chip_read,
7217 },
7218
7219 {
7220 .vendor = "Winbond",
David Hendricksc4acec92010-06-24 11:39:57 +00007221 .name = "W25Q64",
7222 .bustype = CHIP_BUSTYPE_SPI,
7223 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00007224 .model_id = WINBOND_NEX_W25Q64,
David Hendricksc4acec92010-06-24 11:39:57 +00007225 .total_size = 8192,
7226 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00007227 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00007228 .tested = TEST_OK_PREW,
David Hendricksc4acec92010-06-24 11:39:57 +00007229 .probe = probe_spi_rdid,
7230 .probe_timing = TIMING_ZERO,
7231 .block_erasers =
7232 {
7233 {
7234 .eraseblocks = { {4 * 1024, 2048} },
7235 .block_erase = spi_block_erase_20,
7236 }, {
7237 .eraseblocks = { {32 * 1024, 256} },
7238 .block_erase = spi_block_erase_52,
7239 }, {
7240 .eraseblocks = { {64 * 1024, 128} },
7241 .block_erase = spi_block_erase_d8,
7242 }, {
7243 .eraseblocks = { {8 * 1024 * 1024, 1} },
7244 .block_erase = spi_block_erase_60,
7245 }, {
7246 .eraseblocks = { {8 * 1024 * 1024, 1} },
7247 .block_erase = spi_block_erase_c7,
7248 }
7249 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007250 .unlock = spi_disable_blockprotect,
David Hendricksc4acec92010-06-24 11:39:57 +00007251 .write = spi_chip_write_256,
7252 .read = spi_chip_read,
7253 },
7254
7255 {
7256 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007257 .name = "W25x10",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00007258 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007259 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00007260 .model_id = WINBOND_NEX_W25X10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007261 .total_size = 128,
7262 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00007263 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007264 .tested = TEST_UNTESTED,
7265 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007266 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007267 .block_erasers =
7268 {
7269 {
7270 .eraseblocks = { {4 * 1024, 32} },
7271 .block_erase = spi_block_erase_20,
7272 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007273 .eraseblocks = { {64 * 1024, 2} },
7274 .block_erase = spi_block_erase_d8,
7275 }, {
7276 .eraseblocks = { {128 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007277 .block_erase = spi_block_erase_c7,
7278 }
7279 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007280 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007281 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007282 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00007283 },
7284
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007285 {
7286 .vendor = "Winbond",
7287 .name = "W25x20",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00007288 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007289 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00007290 .model_id = WINBOND_NEX_W25X20,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007291 .total_size = 256,
7292 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00007293 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007294 .tested = TEST_UNTESTED,
7295 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007296 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007297 .block_erasers =
7298 {
7299 {
7300 .eraseblocks = { {4 * 1024, 64} },
7301 .block_erase = spi_block_erase_20,
7302 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007303 .eraseblocks = { {64 * 1024, 4} },
7304 .block_erase = spi_block_erase_d8,
7305 }, {
7306 .eraseblocks = { {256 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007307 .block_erase = spi_block_erase_c7,
7308 }
7309 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007310 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007311 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007312 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00007313 },
7314
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007315 {
7316 .vendor = "Winbond",
7317 .name = "W25x40",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00007318 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007319 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00007320 .model_id = WINBOND_NEX_W25X40,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007321 .total_size = 512,
7322 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00007323 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007324 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007325 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007326 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007327 .block_erasers =
7328 {
7329 {
7330 .eraseblocks = { {4 * 1024, 128} },
7331 .block_erase = spi_block_erase_20,
7332 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007333 .eraseblocks = { {64 * 1024, 8} },
7334 .block_erase = spi_block_erase_d8,
7335 }, {
7336 .eraseblocks = { {512 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007337 .block_erase = spi_block_erase_c7,
7338 }
7339 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007340 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007341 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007342 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00007343 },
7344
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007345 {
7346 .vendor = "Winbond",
7347 .name = "W25x80",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00007348 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007349 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00007350 .model_id = WINBOND_NEX_W25X80,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007351 .total_size = 1024,
7352 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00007353 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007354 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007355 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007356 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007357 .block_erasers =
7358 {
7359 {
7360 .eraseblocks = { {4 * 1024, 256} },
7361 .block_erase = spi_block_erase_20,
7362 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007363 .eraseblocks = { {64 * 1024, 16} },
7364 .block_erase = spi_block_erase_d8,
7365 }, {
7366 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007367 .block_erase = spi_block_erase_c7,
7368 }
7369 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007370 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007371 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007372 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00007373 },
7374
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007375 {
7376 .vendor = "Winbond",
Hector Martina721ae22009-07-11 19:39:11 +00007377 .name = "W25x16",
7378 .bustype = CHIP_BUSTYPE_SPI,
7379 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00007380 .model_id = WINBOND_NEX_W25X16,
Hector Martina721ae22009-07-11 19:39:11 +00007381 .total_size = 2048,
7382 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00007383 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007384 .tested = TEST_OK_PRE,
Hector Martina721ae22009-07-11 19:39:11 +00007385 .probe = probe_spi_rdid,
7386 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007387 .block_erasers =
7388 {
7389 {
7390 .eraseblocks = { {4 * 1024, 512} },
7391 .block_erase = spi_block_erase_20,
7392 }, {
7393 .eraseblocks = { {32 * 1024, 64} },
7394 .block_erase = spi_block_erase_52,
7395 }, {
7396 .eraseblocks = { {64 * 1024, 32} },
7397 .block_erase = spi_block_erase_d8,
7398 }, {
7399 .eraseblocks = { {2 * 1024 * 1024, 1} },
7400 .block_erase = spi_block_erase_60,
7401 }, {
7402 .eraseblocks = { {2 * 1024 * 1024, 1} },
7403 .block_erase = spi_block_erase_c7,
7404 }
7405 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007406 .unlock = spi_disable_blockprotect,
Hector Martina721ae22009-07-11 19:39:11 +00007407 .write = spi_chip_write_256,
7408 .read = spi_chip_read,
7409 },
7410
7411 {
7412 .vendor = "Winbond",
Zheng Bao1db2b752009-11-26 11:05:01 +00007413 .name = "W25x32",
7414 .bustype = CHIP_BUSTYPE_SPI,
7415 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00007416 .model_id = WINBOND_NEX_W25X32,
Zheng Bao1db2b752009-11-26 11:05:01 +00007417 .total_size = 4096,
7418 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00007419 .feature_bits = FEATURE_WRSR_WREN,
Zheng Bao1db2b752009-11-26 11:05:01 +00007420 .tested = TEST_OK_PROBE,
7421 .probe = probe_spi_rdid,
7422 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007423 .block_erasers =
7424 {
7425 {
7426 .eraseblocks = { {4 * 1024, 1024} },
7427 .block_erase = spi_block_erase_20,
7428 }, {
7429 .eraseblocks = { {32 * 1024, 128} },
7430 .block_erase = spi_block_erase_52,
7431 }, {
7432 .eraseblocks = { {64 * 1024, 64} },
7433 .block_erase = spi_block_erase_d8,
7434 }, {
7435 .eraseblocks = { {4 * 1024 * 1024, 1} },
7436 .block_erase = spi_block_erase_60,
7437 }, {
7438 .eraseblocks = { {4 * 1024 * 1024, 1} },
7439 .block_erase = spi_block_erase_c7,
7440 }
7441 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007442 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +00007443 .write = spi_chip_write_256,
7444 .read = spi_chip_read,
7445 },
7446
7447 {
7448 .vendor = "Winbond",
7449 .name = "W25x64",
7450 .bustype = CHIP_BUSTYPE_SPI,
7451 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00007452 .model_id = WINBOND_NEX_W25X64,
Zheng Bao1db2b752009-11-26 11:05:01 +00007453 .total_size = 8192,
7454 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00007455 .feature_bits = FEATURE_WRSR_WREN,
Zheng Bao1db2b752009-11-26 11:05:01 +00007456 .tested = TEST_UNTESTED,
7457 .probe = probe_spi_rdid,
7458 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007459 .block_erasers =
7460 {
7461 {
7462 .eraseblocks = { {4 * 1024, 2048} },
7463 .block_erase = spi_block_erase_20,
7464 }, {
7465 .eraseblocks = { {32 * 1024, 256} },
7466 .block_erase = spi_block_erase_52,
7467 }, {
7468 .eraseblocks = { {64 * 1024, 128} },
7469 .block_erase = spi_block_erase_d8,
7470 }, {
7471 .eraseblocks = { {8 * 1024 * 1024, 1} },
7472 .block_erase = spi_block_erase_60,
7473 }, {
7474 .eraseblocks = { {8 * 1024 * 1024, 1} },
7475 .block_erase = spi_block_erase_c7,
7476 }
7477 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007478 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +00007479 .write = spi_chip_write_256,
7480 .read = spi_chip_read,
7481 },
7482
7483 {
7484 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +00007485 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012",
Urja Rannikko038a3122009-06-28 19:19:25 +00007486 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007487 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00007488 .model_id = WINBOND_W29C010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007489 .total_size = 128,
7490 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00007491 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007492 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007493 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007494 .probe_timing = 10, /* used datasheet for the W29C011A */
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007495 .block_erasers =
7496 {
7497 {
7498 .eraseblocks = { {128 * 1024, 1} },
7499 .block_erase = erase_chip_block_jedec,
7500 }
7501 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007502 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007503 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00007504 },
7505
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007506 {
7507 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +00007508 .name = "W29C020(C)/W29C022",
Urja Rannikko161b8852009-06-05 08:47:37 +00007509 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007510 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00007511 .model_id = WINBOND_W29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007512 .total_size = 256,
7513 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00007514 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007515 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007516 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00007517 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007518 .block_erasers =
7519 {
7520 {
7521 .eraseblocks = { {256 * 1024, 1} },
7522 .block_erase = erase_chip_block_jedec,
7523 }
7524 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007525 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007526 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00007527 },
7528
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007529 {
7530 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +00007531 .name = "W29C040/P",
Urja Rannikko161b8852009-06-05 08:47:37 +00007532 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007533 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00007534 .model_id = WINBOND_W29C040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007535 .total_size = 512,
7536 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00007537 .feature_bits = FEATURE_LONG_RESET,
7538 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007539 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00007540 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007541 .block_erasers =
7542 {
7543 {
7544 .eraseblocks = { {512 * 1024, 1} },
7545 .block_erase = erase_chip_block_jedec,
7546 }
7547 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007548 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007549 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00007550 },
7551
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007552 {
7553 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +00007554 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012",
Urja Rannikko038a3122009-06-28 19:19:25 +00007555 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007556 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00007557 .model_id = WINBOND_W29C010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007558 .total_size = 128,
7559 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00007560 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007561 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007562 .probe = probe_w29ee011,
Maciej Pijankac6e11112009-06-03 14:46:22 +00007563 .probe_timing = TIMING_IGNORED, /* routine don't use probe_timing (w29ee011.c) */
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007564 .block_erasers =
7565 {
7566 {
7567 .eraseblocks = { {128 * 1024, 1} },
7568 .block_erase = erase_chip_block_jedec,
7569 }
7570 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007571 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007572 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00007573 },
7574
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007575 {
7576 .vendor = "Winbond",
7577 .name = "W39V040A",
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00007578 .bustype = CHIP_BUSTYPE_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007579 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00007580 .model_id = WINBOND_W39V040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007581 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00007582 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007583 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007584 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007585 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00007586 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007587 .block_erasers =
7588 {
7589 {
7590 .eraseblocks = { {64 * 1024, 8} },
7591 .block_erase = erase_sector_jedec,
7592 }, {
7593 .eraseblocks = { {512 * 1024, 1} },
7594 .block_erase = erase_chip_block_jedec,
7595 }
7596 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00007597 .printlock = printlock_w39v040a,
Sean Nelson35727f72010-01-28 23:55:12 +00007598 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007599 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00007600 },
7601
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007602 {
7603 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00007604 .name = "W39V040B",
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00007605 .bustype = CHIP_BUSTYPE_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007606 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00007607 .model_id = WINBOND_W39V040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007608 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00007609 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007610 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007611 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007612 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00007613 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007614 .block_erasers =
7615 {
7616 {
7617 .eraseblocks = { {64 * 1024, 8} },
7618 .block_erase = erase_sector_jedec,
7619 }, {
7620 .eraseblocks = { {512 * 1024, 1} },
7621 .block_erase = erase_chip_block_jedec,
7622 }
7623 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00007624 .printlock = printlock_w39v040b,
Sean Nelson35727f72010-01-28 23:55:12 +00007625 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007626 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00007627 },
7628
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007629 {
7630 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00007631 .name = "W39V040C",
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00007632 .bustype = CHIP_BUSTYPE_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007633 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00007634 .model_id = WINBOND_W39V040C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007635 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00007636 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007637 .feature_bits = FEATURE_EITHER_RESET,
7638 .tested = TEST_UNTESTED,
7639 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00007640 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007641 .block_erasers =
7642 {
7643 {
7644 .eraseblocks = { {64 * 1024, 8} },
7645 .block_erase = erase_sector_jedec,
7646 }, {
7647 .eraseblocks = { {512 * 1024, 1} },
7648 .block_erase = erase_chip_block_jedec,
7649 }
7650 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00007651 .printlock = printlock_w39v040c,
Sean Nelson35727f72010-01-28 23:55:12 +00007652 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007653 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00007654 },
7655
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007656 {
7657 .vendor = "Winbond",
7658 .name = "W39V040FA",
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00007659 .bustype = CHIP_BUSTYPE_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007660 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00007661 .model_id = WINBOND_W39V040FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007662 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00007663 .page_size = 64 * 1024,
Michael Karcherc9b63412010-05-30 16:55:18 +00007664 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007665 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007666 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00007667 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007668 .block_erasers =
7669 {
7670 {
7671 .eraseblocks = { {4 * 1024, 128} },
7672 .block_erase = erase_block_jedec,
7673 }, {
7674 .eraseblocks = { {64 * 1024, 8} },
7675 .block_erase = erase_sector_jedec,
7676 }, {
7677 .eraseblocks = { {512 * 1024, 1} },
7678 .block_erase = erase_chip_block_jedec,
7679 }
7680 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00007681 .printlock = printlock_w39v040fa,
Michael Karcherc9b63412010-05-30 16:55:18 +00007682 .unlock = unlock_sst_fwhub,
Sean Nelson35727f72010-01-28 23:55:12 +00007683 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007684 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00007685 },
7686
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007687 {
7688 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00007689 .name = "W39V040FB",
7690 .bustype = CHIP_BUSTYPE_FWH,
7691 .manufacture_id = WINBOND_ID,
7692 .model_id = WINBOND_W39V040B,
7693 .total_size = 512,
7694 .page_size = 64 * 1024,
7695 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
7696 .tested = TEST_OK_PRE,
7697 .probe = probe_jedec,
7698 .probe_timing = 10,
7699 .block_erasers =
7700 {
7701 {
7702 .eraseblocks = { {64 * 1024, 8} },
7703 .block_erase = erase_sector_jedec,
7704 }, {
7705 .eraseblocks = { {512 * 1024, 1} },
7706 .block_erase = erase_chip_block_jedec,
7707 }
7708 },
7709 .printlock = printlock_w39v040fb,
Idwer Volleringecc67072010-12-26 23:55:12 +00007710 .unlock = unlock_w39v040fb,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00007711 .write = write_jedec_1,
7712 .read = read_memmapped,
7713 },
7714
7715 {
7716 .vendor = "Winbond",
7717 .name = "W39V040FC",
7718 .bustype = CHIP_BUSTYPE_FWH,
7719 .manufacture_id = WINBOND_ID,
7720 .model_id = WINBOND_W39V040C,
7721 .total_size = 512,
7722 .page_size = 64 * 1024,
7723 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
7724 .tested = TEST_UNTESTED,
7725 .probe = probe_jedec,
7726 .probe_timing = 10,
7727 .block_erasers =
7728 {
7729 {
7730 .eraseblocks = { {64 * 1024, 8} },
7731 .block_erase = erase_sector_jedec,
7732 }, {
7733 .eraseblocks = { {512 * 1024, 1} },
7734 .block_erase = erase_chip_block_jedec,
7735 }
7736 },
7737 .printlock = printlock_w39v040fc,
7738 .write = write_jedec_1,
7739 .read = read_memmapped,
7740 },
7741
7742 {
7743 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007744 .name = "W39V080A",
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00007745 .bustype = CHIP_BUSTYPE_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007746 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00007747 .model_id = WINBOND_W39V080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007748 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +00007749 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007750 .feature_bits = FEATURE_EITHER_RESET,
7751 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007752 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00007753 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007754 .block_erasers =
7755 {
7756 {
7757 .eraseblocks = { {64 * 1024, 16} },
7758 .block_erase = erase_sector_jedec,
7759 }, {
7760 .eraseblocks = { {1024 * 1024, 1} },
7761 .block_erase = erase_chip_block_jedec,
7762 }
7763 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00007764 .printlock = printlock_w39v080a,
Sean Nelson35727f72010-01-28 23:55:12 +00007765 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007766 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00007767 },
7768
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007769 {
7770 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +00007771 .name = "W49F002U/N",
Urja Rannikko038a3122009-06-28 19:19:25 +00007772 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007773 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00007774 .model_id = WINBOND_W49F002U,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007775 .total_size = 256,
7776 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00007777 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007778 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007779 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007780 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007781 .block_erasers =
7782 {
7783 {
7784 .eraseblocks = {
7785 {128 * 1024, 1},
7786 {96 * 1024, 1},
7787 {8 * 1024, 2},
7788 {16 * 1024, 1},
7789 },
7790 .block_erase = erase_sector_jedec,
7791 }, {
7792 .eraseblocks = { {256 * 1024, 1} },
7793 .block_erase = erase_chip_block_jedec,
7794 }
7795 },
Sean Nelson35727f72010-01-28 23:55:12 +00007796 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007797 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00007798 },
7799
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007800 {
7801 .vendor = "Winbond",
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +00007802 .name = "W49F020",
7803 .bustype = CHIP_BUSTYPE_PARALLEL,
7804 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00007805 .model_id = WINBOND_W49F020,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +00007806 .total_size = 256,
7807 .page_size = 128,
7808 .feature_bits = FEATURE_EITHER_RESET,
7809 .tested = TEST_OK_PROBE,
7810 .probe = probe_jedec,
7811 .probe_timing = 10,
7812 .block_erasers =
7813 {
7814 {
7815 .eraseblocks = { {256 * 1024, 1} },
7816 .block_erase = erase_chip_block_jedec,
7817 }
7818 },
7819 .write = write_jedec_1,
7820 .read = read_memmapped,
7821 },
7822
7823 {
7824 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007825 .name = "W49V002A",
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00007826 .bustype = CHIP_BUSTYPE_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007827 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00007828 .model_id = WINBOND_W49V002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007829 .total_size = 256,
7830 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00007831 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007832 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007833 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00007834 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007835 .block_erasers =
7836 {
7837 {
7838 .eraseblocks = {
7839 {64 * 1024, 3},
7840 {32 * 1024, 1},
7841 {8 * 1024, 2},
7842 {16 * 1024, 1},
7843 },
7844 .block_erase = erase_sector_jedec,
7845 }, {
7846 .eraseblocks = { {256 * 1024, 1} },
7847 .block_erase = erase_chip_block_jedec,
7848 }
7849 },
Sean Nelson35727f72010-01-28 23:55:12 +00007850 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007851 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00007852 },
7853
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007854 {
7855 .vendor = "Winbond",
7856 .name = "W49V002FA",
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00007857 .bustype = CHIP_BUSTYPE_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007858 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00007859 .model_id = WINBOND_W49V002FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007860 .total_size = 256,
7861 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00007862 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007863 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007864 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007865 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007866 .block_erasers =
7867 {
7868 {
7869 .eraseblocks = {
7870 {64 * 1024, 3},
7871 {32 * 1024, 1},
7872 {8 * 1024, 2},
7873 {16 * 1024, 1},
7874 },
7875 .block_erase = erase_sector_jedec,
7876 }, {
7877 .eraseblocks = { {256 * 1024, 1} },
7878 .block_erase = erase_chip_block_jedec,
7879 }
7880 },
Sean Nelson35727f72010-01-28 23:55:12 +00007881 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007882 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00007883 },
7884
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007885 {
7886 .vendor = "Winbond",
7887 .name = "W39V080FA",
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00007888 .bustype = CHIP_BUSTYPE_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007889 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00007890 .model_id = WINBOND_W39V080FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007891 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +00007892 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007893 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007894 .tested = TEST_OK_PRE,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00007895 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00007896 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007897 .block_erasers =
7898 {
7899 {
7900 .eraseblocks = { {64 * 1024, 16}, },
7901 .block_erase = erase_sector_jedec,
7902 }, {
7903 .eraseblocks = { {1024 * 1024, 1} },
7904 .block_erase = erase_chip_block_jedec,
7905 }
7906 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00007907 .printlock = printlock_w39v080fa,
7908 .unlock = unlock_w39v080fa,
Sean Nelson35727f72010-01-28 23:55:12 +00007909 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007910 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00007911 },
7912
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007913 {
7914 .vendor = "Winbond",
7915 .name = "W39V080FA (dual mode)",
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00007916 .bustype = CHIP_BUSTYPE_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007917 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00007918 .model_id = WINBOND_W39V080FA_DM,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007919 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00007920 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007921 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007922 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00007923 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00007924 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007925 .block_erasers =
7926 {
7927 {
7928 .eraseblocks = { {64 * 1024, 8}, },
7929 .block_erase = erase_sector_jedec,
7930 }, {
7931 .eraseblocks = { {512 * 1024, 1} },
7932 .block_erase = erase_chip_block_jedec,
7933 }
7934 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00007935 .printlock = printlock_w39v080fa_dual,
Sean Nelson35727f72010-01-28 23:55:12 +00007936 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007937 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00007938 },
7939
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007940 {
Daniel Lenskidf90d3a2010-07-22 11:44:38 +00007941 .vendor = "AMIC",
7942 .name = "unknown AMIC SPI chip",
7943 .bustype = CHIP_BUSTYPE_SPI,
7944 .manufacture_id = AMIC_ID,
7945 .model_id = GENERIC_DEVICE_ID,
7946 .total_size = 0,
7947 .page_size = 256,
7948 .tested = TEST_BAD_PREW,
7949 .probe = probe_spi_rdid4,
7950 .probe_timing = TIMING_ZERO,
7951 .write = NULL,
7952 .read = NULL,
7953 },
7954
7955 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007956 .vendor = "Atmel",
7957 .name = "unknown Atmel SPI chip",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00007958 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007959 .manufacture_id = ATMEL_ID,
7960 .model_id = GENERIC_DEVICE_ID,
7961 .total_size = 0,
7962 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00007963 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007964 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007965 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007966 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007967 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00007968 },
7969
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007970 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00007971 .vendor = "Eon",
7972 .name = "unknown Eon SPI chip",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00007973 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007974 .manufacture_id = EON_ID_NOPREFIX,
7975 .model_id = GENERIC_DEVICE_ID,
7976 .total_size = 0,
7977 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00007978 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007979 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007980 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007981 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007982 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00007983 },
7984
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007985 {
7986 .vendor = "Macronix",
7987 .name = "unknown Macronix SPI chip",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00007988 .bustype = CHIP_BUSTYPE_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007989 .manufacture_id = MACRONIX_ID,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007990 .model_id = GENERIC_DEVICE_ID,
7991 .total_size = 0,
7992 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00007993 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007994 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007995 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007996 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007997 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00007998 },
7999
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008000 {
8001 .vendor = "PMC",
8002 .name = "unknown PMC SPI chip",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00008003 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008004 .manufacture_id = PMC_ID,
8005 .model_id = GENERIC_DEVICE_ID,
8006 .total_size = 0,
8007 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00008008 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008009 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008010 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008011 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008012 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00008013 },
8014
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008015 {
8016 .vendor = "SST",
8017 .name = "unknown SST SPI chip",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00008018 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008019 .manufacture_id = SST_ID,
8020 .model_id = GENERIC_DEVICE_ID,
8021 .total_size = 0,
8022 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00008023 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008024 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008025 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008026 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008027 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00008028 },
8029
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008030 {
8031 .vendor = "ST",
8032 .name = "unknown ST SPI chip",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00008033 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008034 .manufacture_id = ST_ID,
8035 .model_id = GENERIC_DEVICE_ID,
8036 .total_size = 0,
8037 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00008038 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008039 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008040 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008041 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008042 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00008043 },
Uwe Hermannfc425e82008-03-16 02:06:25 +00008044
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00008045 {
Sean Nelson118e1d62009-11-24 02:08:11 +00008046 .vendor = "Sanyo",
8047 .name = "unknown Sanyo SPI chip",
8048 .bustype = CHIP_BUSTYPE_SPI,
8049 .manufacture_id = SANYO_ID,
8050 .model_id = GENERIC_DEVICE_ID,
8051 .total_size = 0,
8052 .page_size = 256,
8053 .tested = TEST_BAD_PREW,
8054 .probe = probe_spi_rdid,
8055 .probe_timing = TIMING_ZERO,
Sean Nelson118e1d62009-11-24 02:08:11 +00008056 .write = NULL,
8057 .read = NULL,
8058 },
8059
8060 {
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00008061 .vendor = "Generic",
8062 .name = "unknown SPI chip (RDID)",
8063 .bustype = CHIP_BUSTYPE_SPI,
8064 .manufacture_id = GENERIC_MANUF_ID,
8065 .model_id = GENERIC_DEVICE_ID,
8066 .total_size = 0,
8067 .page_size = 256,
8068 .tested = TEST_BAD_PREW,
8069 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00008070 .write = NULL,
8071 },
8072 {
8073 .vendor = "Generic",
8074 .name = "unknown SPI chip (REMS)",
8075 .bustype = CHIP_BUSTYPE_SPI,
8076 .manufacture_id = GENERIC_MANUF_ID,
8077 .model_id = GENERIC_DEVICE_ID,
8078 .total_size = 0,
8079 .page_size = 256,
8080 .tested = TEST_BAD_PREW,
8081 .probe = probe_spi_rems,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00008082 .write = NULL,
8083 },
8084
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008085 { NULL }
Stephan Guilloux72cf5652009-04-21 01:46:07 +00008086};