blob: b4b762f5f047d56d2177ff012f6b03a3b4d56b3e [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 */
Carl-Daniel Hailfinger4c823182011-05-04 00:39:50 +000035const struct flashchip flashchips[] = {
Uwe Hermannfc425e82008-03-16 02:06:25 +000036
Carl-Daniel Hailfinger21eedec2009-07-23 12:42:01 +000037 /*
38 * .vendor = Vendor name
39 * .name = Chip name
40 * .bustype = Supported flash bus types (Parallel, LPC...)
41 * .manufacture_id = Manufacturer chip ID
42 * .model_id = Model chip ID
43 * .total_size = Total size in (binary) kbytes
44 * .page_size = Page or eraseblock(?) size in bytes
45 * .tested = Test status
46 * .probe = Probe function
47 * .probe_timing = Probe function delay
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +000048 * .block_erasers[] = Array of erase layouts and erase functions
49 * {
50 * .eraseblocks[] = Array of { blocksize, blockcount }
51 * .block_erase = Block erase function
52 * }
Sean Nelson6e0b9122010-02-19 00:52:10 +000053 * .printlock = Chip lock status function
54 * .unlock = Chip unlock function
Carl-Daniel Hailfinger21eedec2009-07-23 12:42:01 +000055 * .write = Chip write function
56 * .read = Chip read function
Steven Zakuleccbe370e2011-06-03 07:26:31 +000057 * .voltage = Voltage range in millivolt
FENG yu ningff692fb2008-12-08 18:15:10 +000058 */
59
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000060 {
61 .vendor = "AMD",
Uwe Hermanna8b37272009-06-19 15:54:39 +000062 .name = "Am29F010A/B",
63 .bustype = CHIP_BUSTYPE_PARALLEL,
64 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000065 .model_id = AMD_AM29F010B, /* Same as Am29F010A */
Uwe Hermanna8b37272009-06-19 15:54:39 +000066 .total_size = 128,
67 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000068 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000069 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +000070 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000071 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +000072 .block_erasers =
73 {
74 {
75 .eraseblocks = { {16 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +000076 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000077 }, {
78 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000079 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000080 },
81 },
Sean Nelson35727f72010-01-28 23:55:12 +000082 .write = write_jedec_1,
Uwe Hermanna8b37272009-06-19 15:54:39 +000083 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000084 .voltage = {4500, 5500},
Uwe Hermanna8b37272009-06-19 15:54:39 +000085 },
86
87 {
88 .vendor = "AMD",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000089 .name = "Am29F002(N)BB",
Urja Rannikko038a3122009-06-28 19:19:25 +000090 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000091 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000092 .model_id = AMD_AM29F002BB,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000093 .total_size = 256,
94 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000095 .feature_bits = FEATURE_SHORT_RESET | FEATURE_ADDR_2AA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000096 .tested = TEST_UNTESTED,
97 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000098 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +000099 .block_erasers =
100 {
101 {
102 .eraseblocks = {
103 {16 * 1024, 1},
104 {8 * 1024, 2},
105 {32 * 1024, 1},
106 {64 * 1024, 3},
107 },
108 .block_erase = erase_sector_jedec,
109 }, {
110 .eraseblocks = { {256 * 1024, 1} },
111 .block_erase = erase_chip_block_jedec,
112 },
113 },
Michael Karcher1c296ca2009-11-27 17:49:42 +0000114 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000115 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000116 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +0000117 },
118
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000119 {
120 .vendor = "AMD",
121 .name = "Am29F002(N)BT",
Urja Rannikko038a3122009-06-28 19:19:25 +0000122 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000123 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000124 .model_id = AMD_AM29F002BT,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000125 .total_size = 256,
126 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +0000127 .feature_bits = FEATURE_EITHER_RESET | FEATURE_ADDR_2AA,
128 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000129 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +0000130 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000131 .block_erasers =
132 {
133 {
134 .eraseblocks = {
135 {64 * 1024, 3},
136 {32 * 1024, 1},
137 {8 * 1024, 2},
138 {16 * 1024, 1},
139 },
140 .block_erase = erase_sector_jedec,
141 }, {
142 .eraseblocks = { {256 * 1024, 1} },
143 .block_erase = erase_chip_block_jedec,
144 },
145 },
Michael Karcher1c296ca2009-11-27 17:49:42 +0000146 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000147 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000148 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +0000149 },
150
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000151 {
152 .vendor = "AMD",
153 .name = "Am29F016D",
Urja Rannikko038a3122009-06-28 19:19:25 +0000154 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000155 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000156 .model_id = AMD_AM29F016D,
Sean Nelson72a9a022009-12-22 22:15:33 +0000157 .total_size = 2 * 1024,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000158 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000159 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000160 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +0000161 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000162 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000163 .block_erasers =
164 {
165 {
166 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson35727f72010-01-28 23:55:12 +0000167 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000168 }, {
169 .eraseblocks = { {2048 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000170 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000171 },
172 },
Sean Nelson35727f72010-01-28 23:55:12 +0000173 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000174 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000175 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +0000176 },
177
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000178 {
179 .vendor = "AMD",
180 .name = "Am29F040B",
Urja Rannikko038a3122009-06-28 19:19:25 +0000181 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000182 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000183 .model_id = AMD_AM29F040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000184 .total_size = 512,
185 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000186 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
187 .tested = TEST_UNTESTED,
188 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000189 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000190 .block_erasers =
191 {
192 {
193 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +0000194 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000195 }, {
196 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000197 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000198 },
199 },
Sean Nelson35727f72010-01-28 23:55:12 +0000200 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000201 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000202 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +0000203 },
204
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000205 {
206 .vendor = "AMD",
Peter Stuge8440cc02009-01-25 23:55:12 +0000207 .name = "Am29F080B",
Urja Rannikko038a3122009-06-28 19:19:25 +0000208 .bustype = CHIP_BUSTYPE_PARALLEL,
Mateusz Murawski5bae4382009-06-02 00:38:14 +0000209 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000210 .model_id = AMD_AM29F080B,
Peter Stuge8440cc02009-01-25 23:55:12 +0000211 .total_size = 1024,
212 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000213 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +0000214 .tested = TEST_UNTESTED,
215 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +0000216 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000217 .block_erasers =
218 {
219 {
220 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson35727f72010-01-28 23:55:12 +0000221 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000222 }, {
223 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000224 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000225 },
226 },
Sean Nelson35727f72010-01-28 23:55:12 +0000227 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000228 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000229 .voltage = {4500, 5500},
Peter Stuge8440cc02009-01-25 23:55:12 +0000230 },
231
232 {
233 .vendor = "AMD",
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000234 .name = "Am29LV001BB",
235 .bustype = CHIP_BUSTYPE_PARALLEL,
236 .manufacture_id = AMD_ID,
237 .model_id = AMD_AM29LV001BB,
238 .total_size = 128,
239 .page_size = 64 * 1024, /* unused */
240 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
241 .tested = TEST_OK_PREW,
242 .probe = probe_jedec,
243 .probe_timing = TIMING_ZERO,
244 .block_erasers =
245 {
246 {
247 .eraseblocks = {
248 {8 * 1024, 1},
249 {4 * 1024, 2},
250 {16 * 1024, 7},
251 },
252 .block_erase = erase_sector_jedec,
253 }, {
254 .eraseblocks = { {128 * 1024, 1} },
255 .block_erase = erase_chip_block_jedec,
256 },
257 },
258 .write = write_jedec_1,
259 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000260 .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000261 },
262
263 {
264 .vendor = "AMD",
265 .name = "Am29LV001BT",
266 .bustype = CHIP_BUSTYPE_PARALLEL,
267 .manufacture_id = AMD_ID,
268 .model_id = AMD_AM29LV001BT,
269 .total_size = 128,
270 .page_size = 64 * 1024, /* unused */
271 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
272 .tested = TEST_UNTESTED,
273 .probe = probe_jedec,
274 .probe_timing = TIMING_ZERO,
275 .block_erasers =
276 {
277 {
278 .eraseblocks = {
279 {16 * 1024, 7},
280 {4 * 1024, 2},
281 {8 * 1024, 1},
282 },
283 .block_erase = erase_sector_jedec,
284 }, {
285 .eraseblocks = { {128 * 1024, 1} },
286 .block_erase = erase_chip_block_jedec,
287 },
288 },
289 .write = write_jedec_1,
290 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000291 .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000292 },
293
294 {
295 .vendor = "AMD",
296 .name = "Am29LV002BB",
297 .bustype = CHIP_BUSTYPE_PARALLEL,
298 .manufacture_id = AMD_ID,
299 .model_id = AMD_AM29LV002BB,
300 .total_size = 256,
301 .page_size = 64 * 1024, /* unused */
302 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
303 .tested = TEST_UNTESTED,
304 .probe = probe_jedec,
305 .probe_timing = TIMING_ZERO,
306 .block_erasers =
307 {
308 {
309 .eraseblocks = {
310 {16 * 1024, 1},
311 {8 * 1024, 2},
312 {32 * 1024, 1},
313 {64 * 1024, 3},
314 },
315 .block_erase = erase_sector_jedec,
316 }, {
317 .eraseblocks = { {256 * 1024, 1} },
318 .block_erase = erase_chip_block_jedec,
319 },
320 },
321 .write = write_jedec_1,
322 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000323 .voltage = {3000, 3600}, /* 3.0-3.6V for type -55, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000324 },
325
326 {
327 .vendor = "AMD",
328 .name = "Am29LV002BT",
329 .bustype = CHIP_BUSTYPE_PARALLEL,
330 .manufacture_id = AMD_ID,
331 .model_id = AMD_AM29LV002BT,
332 .total_size = 256,
333 .page_size = 64 * 1024, /* unused */
334 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
335 .tested = TEST_UNTESTED,
336 .probe = probe_jedec,
337 .probe_timing = TIMING_ZERO,
338 .block_erasers =
339 {
340 {
341 .eraseblocks = {
342 {64 * 1024, 3},
343 {32 * 1024, 1},
344 {8 * 1024, 2},
345 {16 * 1024, 1},
346 },
347 .block_erase = erase_sector_jedec,
348 }, {
349 .eraseblocks = { {256 * 1024, 1} },
350 .block_erase = erase_chip_block_jedec,
351 },
352 },
353 .write = write_jedec_1,
354 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000355 .voltage = {3000, 3600}, /* 3.0-3.6V for type -55, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000356 },
357
358 {
359 .vendor = "AMD",
360 .name = "Am29LV004BB",
361 .bustype = CHIP_BUSTYPE_PARALLEL,
362 .manufacture_id = AMD_ID,
363 .model_id = AMD_AM29LV004BB,
364 .total_size = 512,
365 .page_size = 64 * 1024, /* unused */
366 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
367 .tested = TEST_UNTESTED,
368 .probe = probe_jedec,
369 .probe_timing = TIMING_ZERO,
370 .block_erasers =
371 {
372 {
373 .eraseblocks = {
374 {16 * 1024, 1},
375 {8 * 1024, 2},
376 {32 * 1024, 1},
377 {64 * 1024, 7},
378 },
379 .block_erase = erase_sector_jedec,
380 }, {
381 .eraseblocks = { {512 * 1024, 1} },
382 .block_erase = erase_chip_block_jedec,
383 },
384 },
385 .write = write_jedec_1,
386 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000387 .voltage = {2700, 3600},
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000388 },
389
390 {
391 .vendor = "AMD",
392 .name = "Am29LV004BT",
393 .bustype = CHIP_BUSTYPE_PARALLEL,
394 .manufacture_id = AMD_ID,
395 .model_id = AMD_AM29LV004BT,
396 .total_size = 512,
397 .page_size = 64 * 1024, /* unused */
398 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
399 .tested = TEST_UNTESTED,
400 .probe = probe_jedec,
401 .probe_timing = TIMING_ZERO,
402 .block_erasers =
403 {
404 {
405 .eraseblocks = {
406 {64 * 1024, 7},
407 {32 * 1024, 1},
408 {8 * 1024, 2},
409 {16 * 1024, 1},
410 },
411 .block_erase = erase_sector_jedec,
412 }, {
413 .eraseblocks = { {512 * 1024, 1} },
414 .block_erase = erase_chip_block_jedec,
415 },
416 },
417 .write = write_jedec_1,
418 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000419 .voltage = {2700, 3600},
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000420 },
421
422 {
423 .vendor = "AMD",
424 .name = "Am29LV008BB",
425 .bustype = CHIP_BUSTYPE_PARALLEL,
426 .manufacture_id = AMD_ID,
427 .model_id = AMD_AM29LV008BB,
428 .total_size = 1024,
429 .page_size = 64 * 1024, /* unused */
430 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
431 .tested = TEST_UNTESTED,
432 .probe = probe_jedec,
433 .probe_timing = TIMING_ZERO,
434 .block_erasers =
435 {
436 {
437 .eraseblocks = {
438 {16 * 1024, 1},
439 {8 * 1024, 2},
440 {32 * 1024, 1},
441 {64 * 1024, 15},
442 },
443 .block_erase = erase_sector_jedec,
444 }, {
445 .eraseblocks = { {1024 * 1024, 1} },
446 .block_erase = erase_chip_block_jedec,
447 },
448 },
449 .write = write_jedec_1,
450 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000451 .voltage = {3000, 3600} /* 3.0-3.6V for type -70R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000452 },
453
454 {
455 .vendor = "AMD",
456 .name = "Am29LV008BT",
457 .bustype = CHIP_BUSTYPE_PARALLEL,
458 .manufacture_id = AMD_ID,
459 .model_id = AMD_AM29LV008BT,
460 .total_size = 1024,
461 .page_size = 64 * 1024, /* unused */
462 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
463 .tested = TEST_UNTESTED,
464 .probe = probe_jedec,
465 .probe_timing = TIMING_ZERO,
466 .block_erasers =
467 {
468 {
469 .eraseblocks = {
470 {64 * 1024, 15},
471 {32 * 1024, 1},
472 {8 * 1024, 2},
473 {16 * 1024, 1},
474 },
475 .block_erase = erase_sector_jedec,
476 }, {
477 .eraseblocks = { {1024 * 1024, 1} },
478 .block_erase = erase_chip_block_jedec,
479 },
480 },
481 .write = write_jedec_1,
482 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000483 .voltage = {3000, 3600} /* 3.0-3.6V for type -70R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000484 },
485
486 {
487 .vendor = "AMD",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000488 .name = "Am29LV040B",
Urja Rannikko038a3122009-06-28 19:19:25 +0000489 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000490 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000491 .model_id = AMD_AM29LV040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000492 .total_size = 512,
493 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000494 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000495 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +0000496 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000497 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000498 .block_erasers =
499 {
500 {
501 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +0000502 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000503 }, {
504 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000505 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000506 },
507 },
Sean Nelson35727f72010-01-28 23:55:12 +0000508 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000509 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000510 .voltage = {3000, 3600}, /* 3.0-3.6V for type -60R, others 2.7-3.6V*/
FENG yu ningff692fb2008-12-08 18:15:10 +0000511 },
512
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000513 {
Peter Stuge8440cc02009-01-25 23:55:12 +0000514 .vendor = "AMD",
515 .name = "Am29LV081B",
Urja Rannikko038a3122009-06-28 19:19:25 +0000516 .bustype = CHIP_BUSTYPE_PARALLEL,
Mateusz Murawski5bae4382009-06-02 00:38:14 +0000517 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000518 .model_id = AMD_AM29LV080B,
Peter Stuge8440cc02009-01-25 23:55:12 +0000519 .total_size = 1024,
520 .page_size = 64 * 1024,
David Borg204f4652010-12-04 03:26:40 +0000521 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, /* datasheet specifies address as don't care */
Peter Stuge8440cc02009-01-25 23:55:12 +0000522 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +0000523 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000524 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000525 .block_erasers =
526 {
527 {
528 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson35727f72010-01-28 23:55:12 +0000529 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000530 }, {
531 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000532 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000533 },
534 },
Sean Nelson35727f72010-01-28 23:55:12 +0000535 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000536 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000537 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70R, others 2.7-3.6V */
Peter Stuge8440cc02009-01-25 23:55:12 +0000538 },
539
540 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000541 .vendor = "AMIC",
542 .name = "A25L05PT",
543 .bustype = CHIP_BUSTYPE_SPI,
544 .manufacture_id = AMIC_ID,
545 .model_id = AMIC_A25L05PT,
546 .total_size = 64,
547 .page_size = 256,
548 .tested = TEST_UNTESTED,
549 .probe = probe_spi_rdid4,
550 .probe_timing = TIMING_ZERO,
551 .block_erasers =
552 {
553 {
554 .eraseblocks = {
555 {32 * 1024, 1},
556 {16 * 1024, 1},
557 {8 * 1024, 1},
558 {4 * 1024, 2},
559 },
560 .block_erase = spi_block_erase_d8,
561 }, {
562 .eraseblocks = { {64 * 1024, 1} },
563 .block_erase = spi_block_erase_c7,
564 }
565 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +0000566 .printlock = spi_prettyprint_status_register_amic_a25l05p,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000567 .unlock = spi_disable_blockprotect,
568 .write = spi_chip_write_256,
569 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000570 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000571 },
572
573 {
574 .vendor = "AMIC",
575 .name = "A25L05PU",
576 .bustype = CHIP_BUSTYPE_SPI,
577 .manufacture_id = AMIC_ID,
578 .model_id = AMIC_A25L05PU,
579 .total_size = 64,
580 .page_size = 256,
581 .tested = TEST_UNTESTED,
582 .probe = probe_spi_rdid4,
583 .probe_timing = TIMING_ZERO,
584 .block_erasers =
585 {
586 {
587 .eraseblocks = {
588 {4 * 1024, 2},
589 {8 * 1024, 1},
590 {16 * 1024, 1},
591 {32 * 1024, 1},
592 },
593 .block_erase = spi_block_erase_d8,
594 }, {
595 .eraseblocks = { {64 * 1024, 1} },
596 .block_erase = spi_block_erase_c7,
597 }
598 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +0000599 .printlock = spi_prettyprint_status_register_amic_a25l05p,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000600 .unlock = spi_disable_blockprotect,
601 .write = spi_chip_write_256,
602 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000603 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000604 },
605
606 {
607 .vendor = "AMIC",
608 .name = "A25L10PT",
609 .bustype = CHIP_BUSTYPE_SPI,
610 .manufacture_id = AMIC_ID,
611 .model_id = AMIC_A25L10PT,
612 .total_size = 128,
613 .page_size = 256,
614 .tested = TEST_UNTESTED,
615 .probe = probe_spi_rdid4,
616 .probe_timing = TIMING_ZERO,
617 .block_erasers =
618 {
619 {
620 .eraseblocks = {
621 {64 * 1024, 1},
622 {32 * 1024, 1},
623 {16 * 1024, 1},
624 {8 * 1024, 1},
625 {4 * 1024, 2},
626 },
627 .block_erase = spi_block_erase_d8,
628 }, {
629 .eraseblocks = { {128 * 1024, 1} },
630 .block_erase = spi_block_erase_c7,
631 }
632 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +0000633 .printlock = spi_prettyprint_status_register_amic_a25l05p,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000634 .unlock = spi_disable_blockprotect,
635 .write = spi_chip_write_256,
636 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000637 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000638 },
639
640 {
641 .vendor = "AMIC",
642 .name = "A25L10PU",
643 .bustype = CHIP_BUSTYPE_SPI,
644 .manufacture_id = AMIC_ID,
645 .model_id = AMIC_A25L10PU,
646 .total_size = 128,
647 .page_size = 256,
648 .tested = TEST_UNTESTED,
649 .probe = probe_spi_rdid4,
650 .probe_timing = TIMING_ZERO,
651 .block_erasers =
652 {
653 {
654 .eraseblocks = {
655 {4 * 1024, 2},
656 {8 * 1024, 1},
657 {16 * 1024, 1},
658 {32 * 1024, 1},
659 {64 * 1024, 1},
660 },
661 .block_erase = spi_block_erase_d8,
662 }, {
663 .eraseblocks = { {128 * 1024, 1} },
664 .block_erase = spi_block_erase_c7,
665 }
666 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +0000667 .printlock = spi_prettyprint_status_register_amic_a25l05p,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000668 .unlock = spi_disable_blockprotect,
669 .write = spi_chip_write_256,
670 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000671 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000672 },
673
674 {
675 .vendor = "AMIC",
676 .name = "A25L20PT",
677 .bustype = CHIP_BUSTYPE_SPI,
678 .manufacture_id = AMIC_ID,
679 .model_id = AMIC_A25L20PT,
680 .total_size = 256,
681 .page_size = 256,
682 .tested = TEST_UNTESTED,
683 .probe = probe_spi_rdid4,
684 .probe_timing = TIMING_ZERO,
685 .block_erasers =
686 {
687 {
688 .eraseblocks = {
689 {64 * 1024, 3},
690 {32 * 1024, 1},
691 {16 * 1024, 1},
692 {8 * 1024, 1},
693 {4 * 1024, 2},
694 },
695 .block_erase = spi_block_erase_d8,
696 }, {
697 .eraseblocks = { {256 * 1024, 1} },
698 .block_erase = spi_block_erase_c7,
699 }
700 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +0000701 .printlock = spi_prettyprint_status_register_amic_a25l05p,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000702 .unlock = spi_disable_blockprotect,
703 .write = spi_chip_write_256,
704 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000705 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000706 },
707
708 {
709 .vendor = "AMIC",
710 .name = "A25L20PU",
711 .bustype = CHIP_BUSTYPE_SPI,
712 .manufacture_id = AMIC_ID,
713 .model_id = AMIC_A25L20PU,
714 .total_size = 256,
715 .page_size = 256,
716 .tested = TEST_UNTESTED,
717 .probe = probe_spi_rdid4,
718 .probe_timing = TIMING_ZERO,
719 .block_erasers =
720 {
721 {
722 .eraseblocks = {
723 {4 * 1024, 2},
724 {8 * 1024, 1},
725 {16 * 1024, 1},
726 {32 * 1024, 1},
727 {64 * 1024, 3},
728 },
729 .block_erase = spi_block_erase_d8,
730 }, {
731 .eraseblocks = { {256 * 1024, 1} },
732 .block_erase = spi_block_erase_c7,
733 }
734 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +0000735 .printlock = spi_prettyprint_status_register_amic_a25l05p,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000736 .unlock = spi_disable_blockprotect,
737 .write = spi_chip_write_256,
738 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000739 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000740 },
741
742 /* The A25L40P{T,U} chips are distinguished by their
743 * erase block layouts, but without any distinction in RDID.
744 * This inexplicable quirk was verified by Rudolf Marek
745 * and discussed on the flashrom mailing list on 2010-07-12.
746 */
747 {
748 .vendor = "AMIC",
749 .name = "A25L40PT",
750 .bustype = CHIP_BUSTYPE_SPI,
751 .manufacture_id = AMIC_ID,
752 .model_id = AMIC_A25L40PT,
753 .total_size = 512,
754 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000755 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000756 .probe = probe_spi_rdid4,
757 .probe_timing = TIMING_ZERO,
758 .block_erasers =
759 {
760 {
761 .eraseblocks = {
762 {64 * 1024, 7},
763 {32 * 1024, 1},
764 {16 * 1024, 1},
765 {8 * 1024, 1},
766 {4 * 1024, 2},
767 },
768 .block_erase = spi_block_erase_d8,
769 }, {
770 .eraseblocks = { {512 * 1024, 1} },
771 .block_erase = spi_block_erase_c7,
772 }
773 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +0000774 .printlock = spi_prettyprint_status_register_amic_a25l40p,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000775 .unlock = spi_disable_blockprotect,
776 .write = spi_chip_write_256,
777 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000778 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000779 },
780
781 {
782 .vendor = "AMIC",
783 .name = "A25L40PU",
784 .bustype = CHIP_BUSTYPE_SPI,
785 .manufacture_id = AMIC_ID,
786 .model_id = AMIC_A25L40PU,
787 .total_size = 512,
788 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000789 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000790 .probe = probe_spi_rdid4,
791 .probe_timing = TIMING_ZERO,
792 .block_erasers =
793 {
794 {
795 .eraseblocks = {
796 {4 * 1024, 2},
797 {8 * 1024, 1},
798 {16 * 1024, 1},
799 {32 * 1024, 1},
800 {64 * 1024, 7},
801 },
802 .block_erase = spi_block_erase_d8,
803 }, {
804 .eraseblocks = { {512 * 1024, 1} },
805 .block_erase = spi_block_erase_c7,
806 }
807 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +0000808 .printlock = spi_prettyprint_status_register_amic_a25l40p,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000809 .unlock = spi_disable_blockprotect,
810 .write = spi_chip_write_256,
811 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000812 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000813 },
814
815 {
816 .vendor = "AMIC",
817 .name = "A25L80P",
818 .bustype = CHIP_BUSTYPE_SPI,
819 .manufacture_id = AMIC_ID,
820 .model_id = AMIC_A25L80P,
821 .total_size = 1024,
822 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000823 .tested = TEST_OK_PRE,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000824 .probe = probe_spi_rdid4,
825 .probe_timing = TIMING_ZERO,
826 .block_erasers =
827 {
828 {
829 .eraseblocks = {
830 {4 * 1024, 2},
831 {8 * 1024, 1},
832 {16 * 1024, 1},
833 {32 * 1024, 1},
834 {64 * 1024, 15},
835 },
836 .block_erase = spi_block_erase_d8,
837 }, {
838 .eraseblocks = { {1024 * 1024, 1} },
839 .block_erase = spi_block_erase_c7,
840 }
841 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +0000842 .printlock = spi_prettyprint_status_register_amic_a25l40p,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000843 .unlock = spi_disable_blockprotect,
844 .write = spi_chip_write_256,
845 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000846 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000847 },
848
849 {
850 .vendor = "AMIC",
851 .name = "A25L16PT",
852 .bustype = CHIP_BUSTYPE_SPI,
853 .manufacture_id = AMIC_ID,
854 .model_id = AMIC_A25L16PT,
855 .total_size = 2048,
856 .page_size = 256,
857 .tested = TEST_UNTESTED,
858 .probe = probe_spi_rdid4,
859 .probe_timing = TIMING_ZERO,
860 .block_erasers =
861 {
862 {
863 .eraseblocks = {
864 {64 * 1024, 31},
865 {32 * 1024, 1},
866 {16 * 1024, 1},
867 {8 * 1024, 1},
868 {4 * 1024, 2},
869 },
870 .block_erase = spi_block_erase_d8,
871 }, {
872 .eraseblocks = { {2048 * 1024, 1} },
873 .block_erase = spi_block_erase_60,
874 }, {
875 .eraseblocks = { {2048 * 1024, 1} },
876 .block_erase = spi_block_erase_c7,
877 }
878 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +0000879 .printlock = spi_prettyprint_status_register_amic_a25l40p,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000880 .unlock = spi_disable_blockprotect,
881 .write = spi_chip_write_256,
882 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000883 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000884 },
885
886 {
887 .vendor = "AMIC",
888 .name = "A25L16PU",
889 .bustype = CHIP_BUSTYPE_SPI,
890 .manufacture_id = AMIC_ID,
891 .model_id = AMIC_A25L16PU,
892 .total_size = 2048,
893 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000894 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000895 .probe = probe_spi_rdid4,
896 .probe_timing = TIMING_ZERO,
897 .block_erasers =
898 {
899 {
900 .eraseblocks = {
901 {4 * 1024, 2},
902 {8 * 1024, 1},
903 {16 * 1024, 1},
904 {32 * 1024, 1},
905 {64 * 1024, 31},
906 },
907 .block_erase = spi_block_erase_d8,
908 }, {
909 .eraseblocks = { {2048 * 1024, 1} },
910 .block_erase = spi_block_erase_60,
911 }, {
912 .eraseblocks = { {2048 * 1024, 1} },
913 .block_erase = spi_block_erase_c7,
914 }
915 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +0000916 .printlock = spi_prettyprint_status_register_amic_a25l40p,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000917 .unlock = spi_disable_blockprotect,
918 .write = spi_chip_write_256,
919 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000920 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000921 },
922
923 {
924 .vendor = "AMIC",
Dan Lenski11617122010-07-29 15:00:40 +0000925 .name = "A25L512",
926 .bustype = CHIP_BUSTYPE_SPI,
927 .manufacture_id = AMIC_ID_NOPREFIX,
928 .model_id = AMIC_A25L512,
929 .total_size = 64,
930 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +0000931 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +0000932 .tested = TEST_UNTESTED,
933 .probe = probe_spi_rdid,
934 .probe_timing = TIMING_ZERO,
935 .block_erasers =
936 {
937 {
938 .eraseblocks = { { 4 * 1024, 16 } },
939 .block_erase = spi_block_erase_20,
940 }, {
941 .eraseblocks = { { 64 * 1024, 1 } },
942 .block_erase = spi_block_erase_d8,
943 }, {
944 .eraseblocks = { { 64 * 1024, 1 } },
945 .block_erase = spi_block_erase_c7,
946 }
947 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +0000948 .printlock = spi_prettyprint_status_register_amic_a25l40p,
Dan Lenski11617122010-07-29 15:00:40 +0000949 .unlock = spi_disable_blockprotect,
950 .write = spi_chip_write_256,
951 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000952 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +0000953 },
954
955 {
956 .vendor = "AMIC",
957 .name = "A25L010",
958 .bustype = CHIP_BUSTYPE_SPI,
959 .manufacture_id = AMIC_ID_NOPREFIX,
960 .model_id = AMIC_A25L010,
961 .total_size = 128,
962 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +0000963 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +0000964 .tested = TEST_UNTESTED,
965 .probe = probe_spi_rdid,
966 .probe_timing = TIMING_ZERO,
967 .block_erasers =
968 {
969 {
970 .eraseblocks = { { 4 * 1024, 32 } },
971 .block_erase = spi_block_erase_20,
972 }, {
973 .eraseblocks = { { 64 * 1024, 2 } },
974 .block_erase = spi_block_erase_d8,
975 }, {
976 .eraseblocks = { { 128 * 1024, 1 } },
977 .block_erase = spi_block_erase_c7,
978 }
979 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +0000980 .printlock = spi_prettyprint_status_register_amic_a25l40p,
Dan Lenski11617122010-07-29 15:00:40 +0000981 .unlock = spi_disable_blockprotect,
982 .write = spi_chip_write_256,
983 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000984 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +0000985 },
986
987 {
988 .vendor = "AMIC",
989 .name = "A25L020",
990 .bustype = CHIP_BUSTYPE_SPI,
991 .manufacture_id = AMIC_ID_NOPREFIX,
992 .model_id = AMIC_A25L020,
993 .total_size = 256,
994 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +0000995 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +0000996 .tested = TEST_UNTESTED,
997 .probe = probe_spi_rdid,
998 .probe_timing = TIMING_ZERO,
999 .block_erasers =
1000 {
1001 {
1002 .eraseblocks = { { 4 * 1024, 64 } },
1003 .block_erase = spi_block_erase_20,
1004 }, {
1005 .eraseblocks = { { 64 * 1024, 4 } },
1006 .block_erase = spi_block_erase_d8,
1007 }, {
1008 .eraseblocks = { { 256 * 1024, 1 } },
1009 .block_erase = spi_block_erase_c7,
1010 }
1011 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001012 .printlock = spi_prettyprint_status_register_amic_a25l40p,
Dan Lenski11617122010-07-29 15:00:40 +00001013 .unlock = spi_disable_blockprotect,
1014 .write = spi_chip_write_256,
1015 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001016 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001017 },
1018
1019 {
1020 .vendor = "AMIC",
1021 .name = "A25L040",
1022 .bustype = CHIP_BUSTYPE_SPI,
1023 .manufacture_id = AMIC_ID_NOPREFIX,
1024 .model_id = AMIC_A25L040,
1025 .total_size = 512,
1026 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001027 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001028 .tested = TEST_UNTESTED,
1029 .probe = probe_spi_rdid,
1030 .probe_timing = TIMING_ZERO,
1031 .block_erasers =
1032 {
1033 {
1034 .eraseblocks = { { 4 * 1024, 128 } },
1035 .block_erase = spi_block_erase_20,
1036 }, {
1037 .eraseblocks = { { 64 * 1024, 8 } },
1038 .block_erase = spi_block_erase_d8,
1039 }, {
1040 .eraseblocks = { { 512 * 1024, 1 } },
1041 .block_erase = spi_block_erase_c7,
1042 }
1043 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001044 .printlock = spi_prettyprint_status_register_amic_a25l40p,
Dan Lenski11617122010-07-29 15:00:40 +00001045 .unlock = spi_disable_blockprotect,
1046 .write = spi_chip_write_256,
1047 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001048 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001049 },
1050
1051 {
1052 .vendor = "AMIC",
1053 .name = "A25L080",
1054 .bustype = CHIP_BUSTYPE_SPI,
1055 .manufacture_id = AMIC_ID_NOPREFIX,
1056 .model_id = AMIC_A25L080,
1057 .total_size = 1024,
1058 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001059 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001060 .tested = TEST_UNTESTED,
1061 .probe = probe_spi_rdid,
1062 .probe_timing = TIMING_ZERO,
1063 .block_erasers =
1064 {
1065 {
1066 .eraseblocks = { { 4 * 1024, 256 } },
1067 .block_erase = spi_block_erase_20,
1068 }, {
1069 .eraseblocks = { { 64 * 1024, 16 } },
1070 .block_erase = spi_block_erase_d8,
1071 }, {
1072 .eraseblocks = { { 1024 * 1024, 1 } },
1073 .block_erase = spi_block_erase_c7,
1074 }
1075 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001076 .printlock = spi_prettyprint_status_register_amic_a25l40p,
Dan Lenski11617122010-07-29 15:00:40 +00001077 .unlock = spi_disable_blockprotect,
1078 .write = spi_chip_write_256,
1079 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001080 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001081 },
1082
1083 {
1084 .vendor = "AMIC",
1085 .name = "A25L016",
1086 .bustype = CHIP_BUSTYPE_SPI,
1087 .manufacture_id = AMIC_ID_NOPREFIX,
1088 .model_id = AMIC_A25L016,
1089 .total_size = 2048,
1090 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001091 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001092 .tested = TEST_UNTESTED,
1093 .probe = probe_spi_rdid,
1094 .probe_timing = TIMING_ZERO,
1095 .block_erasers =
1096 {
1097 {
1098 .eraseblocks = { { 4 * 1024, 512 } },
1099 .block_erase = spi_block_erase_20,
1100 }, {
1101 .eraseblocks = { { 64 * 1024, 32 } },
1102 .block_erase = spi_block_erase_d8,
1103 }, {
1104 .eraseblocks = { { 2048 * 1024, 1 } },
1105 .block_erase = spi_block_erase_c7,
1106 }
1107 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001108 .printlock = spi_prettyprint_status_register_amic_a25l40p,
Dan Lenski11617122010-07-29 15:00:40 +00001109 .unlock = spi_disable_blockprotect,
1110 .write = spi_chip_write_256,
1111 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001112 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001113 },
1114
1115 {
1116 .vendor = "AMIC",
1117 .name = "A25L032",
1118 .bustype = CHIP_BUSTYPE_SPI,
1119 .manufacture_id = AMIC_ID_NOPREFIX,
1120 .model_id = AMIC_A25L032,
1121 .total_size = 4096,
1122 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001123 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001124 .tested = TEST_UNTESTED,
1125 .probe = probe_spi_rdid,
1126 .probe_timing = TIMING_ZERO,
1127 .block_erasers =
1128 {
1129 {
1130 .eraseblocks = { { 4 * 1024, 1024 } },
1131 .block_erase = spi_block_erase_20,
1132 }, {
1133 .eraseblocks = { { 64 * 1024, 64 } },
1134 .block_erase = spi_block_erase_52,
1135 }, {
1136 .eraseblocks = { { 64 * 1024, 64 } },
1137 .block_erase = spi_block_erase_d8,
1138 }, {
1139 .eraseblocks = { { 4096 * 1024, 1 } },
1140 .block_erase = spi_block_erase_60,
1141 }, {
1142 .eraseblocks = { { 4096 * 1024, 1 } },
1143 .block_erase = spi_block_erase_c7,
1144 }
1145 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001146 .printlock = spi_prettyprint_status_register_amic_a25l032,
Dan Lenski11617122010-07-29 15:00:40 +00001147 .unlock = NULL, /* Two status reg bytes (read with 0x35 and 0x05) */
1148 .write = spi_chip_write_256,
1149 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001150 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001151 },
1152
1153 {
1154 .vendor = "AMIC",
1155 .name = "A25LQ032",
1156 .bustype = CHIP_BUSTYPE_SPI,
1157 .manufacture_id = AMIC_ID_NOPREFIX,
1158 .model_id = AMIC_A25LQ032,
1159 .total_size = 4096,
1160 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001161 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001162 .tested = TEST_UNTESTED,
1163 .probe = probe_spi_rdid,
1164 .probe_timing = TIMING_ZERO,
1165 .block_erasers =
1166 {
1167 {
1168 .eraseblocks = { { 4 * 1024, 1024 } },
1169 .block_erase = spi_block_erase_20,
1170 }, {
1171 .eraseblocks = { { 64 * 1024, 64 } },
1172 .block_erase = spi_block_erase_52,
1173 }, {
1174 .eraseblocks = { { 64 * 1024, 64 } },
1175 .block_erase = spi_block_erase_d8,
1176 }, {
1177 .eraseblocks = { { 4096 * 1024, 1 } },
1178 .block_erase = spi_block_erase_60,
1179 }, {
1180 .eraseblocks = { { 4096 * 1024, 1 } },
1181 .block_erase = spi_block_erase_c7,
1182 }
1183 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001184 .printlock = spi_prettyprint_status_register_amic_a25lq032,
Dan Lenski11617122010-07-29 15:00:40 +00001185 .unlock = NULL, /* Two status reg bytes (read with 0x35 and 0x05) */
1186 .write = spi_chip_write_256,
1187 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001188 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001189 },
1190
1191 {
1192 .vendor = "AMIC",
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001193 .name = "A29002B",
1194 .bustype = CHIP_BUSTYPE_PARALLEL,
1195 .manufacture_id = AMIC_ID_NOPREFIX,
1196 .model_id = AMIC_A29002B,
1197 .total_size = 256,
1198 .page_size = 64 * 1024,
1199 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
1200 .tested = TEST_UNTESTED,
1201 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001202 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001203 .block_erasers =
1204 {
1205 {
1206 .eraseblocks = {
1207 {16 * 1024, 1},
1208 {8 * 1024, 2},
1209 {32 * 1024, 1},
1210 {64 * 1024, 3},
1211 },
1212 .block_erase = erase_sector_jedec,
1213 }, {
1214 .eraseblocks = { {256 * 1024, 1} },
1215 .block_erase = erase_chip_block_jedec,
1216 },
1217 },
1218 .write = write_jedec_1,
1219 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001220 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001221 },
1222
1223 {
1224 .vendor = "AMIC",
1225 .name = "A29002T",
1226 .bustype = CHIP_BUSTYPE_PARALLEL,
1227 .manufacture_id = AMIC_ID_NOPREFIX,
1228 .model_id = AMIC_A29002T,
1229 .total_size = 256,
1230 .page_size = 64 * 1024,
1231 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00001232 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001233 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001234 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001235 .block_erasers =
1236 {
1237 {
1238 .eraseblocks = {
1239 {64 * 1024, 3},
1240 {32 * 1024, 1},
1241 {8 * 1024, 2},
1242 {16 * 1024, 1},
1243 },
1244 .block_erase = erase_sector_jedec,
1245 }, {
1246 .eraseblocks = { {256 * 1024, 1} },
1247 .block_erase = erase_chip_block_jedec,
1248 },
1249 },
1250 .write = write_jedec_1,
1251 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001252 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001253 },
1254
1255 {
1256 .vendor = "AMIC",
1257 .name = "A29040B",
1258 .bustype = CHIP_BUSTYPE_PARALLEL,
1259 .manufacture_id = AMIC_ID_NOPREFIX,
1260 .model_id = AMIC_A29040B,
1261 .total_size = 512,
1262 .page_size = 64 * 1024,
1263 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
1264 .tested = TEST_UNTESTED,
1265 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001266 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001267 .block_erasers =
1268 {
1269 {
1270 .eraseblocks = { {64 * 1024, 8} },
1271 .block_erase = erase_sector_jedec,
1272 }, {
1273 .eraseblocks = { {512 * 1024, 1} },
1274 .block_erase = erase_chip_block_jedec,
1275 },
1276 },
1277 .write = write_jedec_1,
1278 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001279 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001280 },
1281
1282 {
1283 .vendor = "AMIC",
1284 .name = "A49LF040A",
1285 .bustype = CHIP_BUSTYPE_LPC,
1286 .manufacture_id = AMIC_ID_NOPREFIX,
1287 .model_id = AMIC_A49LF040A,
1288 .total_size = 512,
1289 .page_size = 64 * 1024,
1290 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00001291 .tested = TEST_OK_PRE,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001292 .probe = probe_jedec,
1293 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
1294 .block_erasers =
1295 {
1296 {
1297 .eraseblocks = { {64 * 1024, 8} },
1298 .block_erase = erase_block_jedec,
1299 }, {
1300 .eraseblocks = { {512 * 1024, 1} },
1301 .block_erase = erase_chip_block_jedec,
1302 }
1303 },
1304 .unlock = unlock_49fl00x,
1305 .write = write_jedec_1,
1306 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001307 .voltage = {3000, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001308 },
1309
1310 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001311 .vendor = "Atmel",
1312 .name = "AT25DF021",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001313 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001314 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001315 .model_id = ATMEL_AT25DF021,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001316 .total_size = 256,
1317 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001318 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001319 .tested = TEST_UNTESTED,
1320 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001321 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001322 .block_erasers =
1323 {
1324 {
1325 .eraseblocks = { {4 * 1024, 64} },
1326 .block_erase = spi_block_erase_20,
1327 }, {
1328 .eraseblocks = { {32 * 1024, 8} },
1329 .block_erase = spi_block_erase_52,
1330 }, {
1331 .eraseblocks = { {64 * 1024, 4} },
1332 .block_erase = spi_block_erase_d8,
1333 }, {
1334 .eraseblocks = { {256 * 1024, 1} },
1335 .block_erase = spi_block_erase_60,
1336 }, {
1337 .eraseblocks = { {256 * 1024, 1} },
1338 .block_erase = spi_block_erase_c7,
1339 }
1340 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001341 .printlock = spi_prettyprint_status_register_at25df,
1342 .unlock = spi_disable_blockprotect_at25df,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001343 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001344 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001345 .voltage = {2700, 3600}, /* 2.3-3.6V & 2.7-3.6V models available */
FENG yu ningff692fb2008-12-08 18:15:10 +00001346 },
1347
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001348 {
1349 .vendor = "Atmel",
1350 .name = "AT25DF041A",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001351 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001352 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001353 .model_id = ATMEL_AT25DF041A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001354 .total_size = 512,
1355 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001356 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001357 .tested = TEST_UNTESTED,
1358 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001359 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001360 .block_erasers =
1361 {
1362 {
1363 .eraseblocks = { {4 * 1024, 128} },
1364 .block_erase = spi_block_erase_20,
1365 }, {
1366 .eraseblocks = { {32 * 1024, 16} },
1367 .block_erase = spi_block_erase_52,
1368 }, {
1369 .eraseblocks = { {64 * 1024, 8} },
1370 .block_erase = spi_block_erase_d8,
1371 }, {
1372 .eraseblocks = { {512 * 1024, 1} },
1373 .block_erase = spi_block_erase_60,
1374 }, {
1375 .eraseblocks = { {512 * 1024, 1} },
1376 .block_erase = spi_block_erase_c7,
1377 }
1378 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001379 .printlock = spi_prettyprint_status_register_at25df,
1380 .unlock = spi_disable_blockprotect_at25df,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001381 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001382 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001383 .voltage = {2700, 3600}, /* 2.3-3.6V & 2.7-3.6V models available */
FENG yu ningff692fb2008-12-08 18:15:10 +00001384 },
1385
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001386 {
1387 .vendor = "Atmel",
1388 .name = "AT25DF081",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001389 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001390 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001391 .model_id = ATMEL_AT25DF081,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001392 .total_size = 1024,
1393 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001394 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001395 .tested = TEST_UNTESTED,
1396 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001397 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001398 .block_erasers =
1399 {
1400 {
1401 .eraseblocks = { {4 * 1024, 256} },
1402 .block_erase = spi_block_erase_20,
1403 }, {
1404 .eraseblocks = { {32 * 1024, 32} },
1405 .block_erase = spi_block_erase_52,
1406 }, {
1407 .eraseblocks = { {64 * 1024, 16} },
1408 .block_erase = spi_block_erase_d8,
1409 }, {
1410 .eraseblocks = { {1024 * 1024, 1} },
1411 .block_erase = spi_block_erase_60,
1412 }, {
1413 .eraseblocks = { {1024 * 1024, 1} },
1414 .block_erase = spi_block_erase_c7,
1415 }
1416 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001417 .printlock = spi_prettyprint_status_register_at25df,
1418 .unlock = spi_disable_blockprotect_at25df,
1419 .write = spi_chip_write_256,
1420 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001421 .voltage = {1600, 2000}, /* Datasheet says range is 1.65-1.95 V */
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001422 },
1423
1424 {
1425 .vendor = "Atmel",
1426 .name = "AT25DF081A",
1427 .bustype = CHIP_BUSTYPE_SPI,
1428 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001429 .model_id = ATMEL_AT25DF081A,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001430 .total_size = 1024,
1431 .page_size = 256,
1432 .feature_bits = FEATURE_WRSR_WREN,
1433 .tested = TEST_UNTESTED,
1434 .probe = probe_spi_rdid,
1435 .probe_timing = TIMING_ZERO,
1436 .block_erasers =
1437 {
1438 {
1439 .eraseblocks = { {4 * 1024, 256} },
1440 .block_erase = spi_block_erase_20,
1441 }, {
1442 .eraseblocks = { {32 * 1024, 32} },
1443 .block_erase = spi_block_erase_52,
1444 }, {
1445 .eraseblocks = { {64 * 1024, 16} },
1446 .block_erase = spi_block_erase_d8,
1447 }, {
1448 .eraseblocks = { {1024 * 1024, 1} },
1449 .block_erase = spi_block_erase_60,
1450 }, {
1451 .eraseblocks = { {1024 * 1024, 1} },
1452 .block_erase = spi_block_erase_c7,
1453 }
1454 },
1455 .printlock = spi_prettyprint_status_register_at25df_sec,
1456 .unlock = spi_disable_blockprotect_at25df_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001457 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001458 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001459 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001460 },
1461
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001462 {
1463 .vendor = "Atmel",
1464 .name = "AT25DF161",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001465 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001466 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001467 .model_id = ATMEL_AT25DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001468 .total_size = 2048,
1469 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001470 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001471 .tested = TEST_UNTESTED,
1472 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001473 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001474 .block_erasers =
1475 {
1476 {
1477 .eraseblocks = { {4 * 1024, 512} },
1478 .block_erase = spi_block_erase_20,
1479 }, {
1480 .eraseblocks = { {32 * 1024, 64} },
1481 .block_erase = spi_block_erase_52,
1482 }, {
1483 .eraseblocks = { {64 * 1024, 32} },
1484 .block_erase = spi_block_erase_d8,
1485 }, {
1486 .eraseblocks = { {2 * 1024 * 1024, 1} },
1487 .block_erase = spi_block_erase_60,
1488 }, {
1489 .eraseblocks = { {2 * 1024 * 1024, 1} },
1490 .block_erase = spi_block_erase_c7,
1491 }
1492 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001493 .printlock = spi_prettyprint_status_register_at25df_sec,
1494 .unlock = spi_disable_blockprotect_at25df_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001495 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001496 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001497 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001498 },
1499
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001500 {
1501 .vendor = "Atmel",
1502 .name = "AT25DF321",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001503 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001504 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001505 .model_id = ATMEL_AT25DF321,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001506 .total_size = 4096,
1507 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001508 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd06d9412011-06-12 19:47:55 +00001509 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001510 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001511 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001512 .block_erasers =
1513 {
1514 {
1515 .eraseblocks = { {4 * 1024, 1024} },
1516 .block_erase = spi_block_erase_20,
1517 }, {
1518 .eraseblocks = { {32 * 1024, 128} },
1519 .block_erase = spi_block_erase_52,
1520 }, {
1521 .eraseblocks = { {64 * 1024, 64} },
1522 .block_erase = spi_block_erase_d8,
1523 }, {
1524 .eraseblocks = { {4 * 1024 * 1024, 1} },
1525 .block_erase = spi_block_erase_60,
1526 }, {
1527 .eraseblocks = { {4 * 1024 * 1024, 1} },
1528 .block_erase = spi_block_erase_c7,
1529 }
1530 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001531 .printlock = spi_prettyprint_status_register_at25df,
1532 .unlock = spi_disable_blockprotect_at25df,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001533 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001534 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001535 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001536 },
1537
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001538 {
1539 .vendor = "Atmel",
1540 .name = "AT25DF321A",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001541 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001542 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001543 .model_id = ATMEL_AT25DF321A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001544 .total_size = 4096,
1545 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001546 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001547 .tested = TEST_UNTESTED,
1548 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001549 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001550 .block_erasers =
1551 {
1552 {
1553 .eraseblocks = { {4 * 1024, 1024} },
1554 .block_erase = spi_block_erase_20,
1555 }, {
1556 .eraseblocks = { {32 * 1024, 128} },
1557 .block_erase = spi_block_erase_52,
1558 }, {
1559 .eraseblocks = { {64 * 1024, 64} },
1560 .block_erase = spi_block_erase_d8,
1561 }, {
1562 .eraseblocks = { {4 * 1024 * 1024, 1} },
1563 .block_erase = spi_block_erase_60,
1564 }, {
1565 .eraseblocks = { {4 * 1024 * 1024, 1} },
1566 .block_erase = spi_block_erase_c7,
1567 }
1568 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001569 .printlock = spi_prettyprint_status_register_at25df_sec,
1570 .unlock = spi_disable_blockprotect_at25df_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001571 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001572 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001573 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001574 },
1575
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001576 {
1577 .vendor = "Atmel",
1578 .name = "AT25DF641",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001579 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001580 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001581 .model_id = ATMEL_AT25DF641,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001582 .total_size = 8192,
1583 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001584 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001585 .tested = TEST_UNTESTED,
1586 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001587 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001588 .block_erasers =
1589 {
1590 {
1591 .eraseblocks = { {4 * 1024, 2048} },
1592 .block_erase = spi_block_erase_20,
1593 }, {
1594 .eraseblocks = { {32 * 1024, 256} },
1595 .block_erase = spi_block_erase_52,
1596 }, {
1597 .eraseblocks = { {64 * 1024, 128} },
1598 .block_erase = spi_block_erase_d8,
1599 }, {
1600 .eraseblocks = { {8 * 1024 * 1024, 1} },
1601 .block_erase = spi_block_erase_60,
1602 }, {
1603 .eraseblocks = { {8 * 1024 * 1024, 1} },
1604 .block_erase = spi_block_erase_c7,
1605 }
1606 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001607 .printlock = spi_prettyprint_status_register_at25df_sec,
1608 .unlock = spi_disable_blockprotect_at25df_sec,
1609 .write = spi_chip_write_256,
1610 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001611 .voltage = {2700, 3600},
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001612 },
1613
1614 {
1615 .vendor = "Atmel",
1616 .name = "AT25DQ161",
1617 .bustype = CHIP_BUSTYPE_SPI,
1618 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001619 .model_id = ATMEL_AT25DQ161,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001620 .total_size = 2048,
1621 .page_size = 256,
1622 .feature_bits = FEATURE_WRSR_WREN,
1623 .tested = TEST_UNTESTED,
1624 .probe = probe_spi_rdid,
1625 .probe_timing = TIMING_ZERO,
1626 .block_erasers =
1627 {
1628 {
1629 .eraseblocks = { {4 * 1024, 512} },
1630 .block_erase = spi_block_erase_20,
1631 }, {
1632 .eraseblocks = { {32 * 1024, 64} },
1633 .block_erase = spi_block_erase_52,
1634 }, {
1635 .eraseblocks = { {64 * 1024, 32} },
1636 .block_erase = spi_block_erase_d8,
1637 }, {
1638 .eraseblocks = { {2 * 1024 * 1024, 1} },
1639 .block_erase = spi_block_erase_60,
1640 }, {
1641 .eraseblocks = { {2 * 1024 * 1024, 1} },
1642 .block_erase = spi_block_erase_c7,
1643 }
1644 },
1645 .printlock = spi_prettyprint_status_register_at25df_sec,
1646 .unlock = spi_disable_blockprotect_at25df_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001647 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001648 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001649 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001650 },
1651
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001652 {
1653 .vendor = "Atmel",
1654 .name = "AT25F512B",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001655 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001656 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001657 .model_id = ATMEL_AT25F512B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001658 .total_size = 64,
1659 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001660 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001661 .tested = TEST_UNTESTED,
1662 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001663 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001664 .block_erasers =
1665 {
1666 {
1667 .eraseblocks = { {4 * 1024, 16} },
1668 .block_erase = spi_block_erase_20,
1669 }, {
1670 .eraseblocks = { {32 * 1024, 2} },
1671 .block_erase = spi_block_erase_52,
1672 }, {
1673 .eraseblocks = { {32 * 1024, 2} },
1674 .block_erase = spi_block_erase_d8,
1675 }, {
1676 .eraseblocks = { {64 * 1024, 1} },
1677 .block_erase = spi_block_erase_60,
1678 }, {
1679 .eraseblocks = { {64 * 1024, 1} },
1680 .block_erase = spi_block_erase_c7,
1681 }
1682 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001683 .printlock = spi_prettyprint_status_register_at25f,
1684 .unlock = spi_disable_blockprotect_at25f,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001685 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001686 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001687 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001688 },
1689
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001690 {
1691 .vendor = "Atmel",
1692 .name = "AT25FS010",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001693 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001694 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001695 .model_id = ATMEL_AT25FS010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001696 .total_size = 128,
1697 .page_size = 256,
1698 .tested = TEST_UNTESTED,
1699 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001700 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001701 .block_erasers =
1702 {
1703 {
1704 .eraseblocks = { {4 * 1024, 32} },
1705 .block_erase = spi_block_erase_20,
1706 }, {
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001707 .eraseblocks = { {4 * 1024, 32} },
1708 .block_erase = spi_block_erase_d7,
1709 }, {
Sean Nelson89187292009-12-23 12:02:55 +00001710 .eraseblocks = { {32 * 1024, 4} },
1711 .block_erase = spi_block_erase_52,
1712 }, {
1713 .eraseblocks = { {32 * 1024, 4} },
1714 .block_erase = spi_block_erase_d8,
1715 }, {
1716 .eraseblocks = { {128 * 1024, 1} },
1717 .block_erase = spi_block_erase_60,
1718 }, {
1719 .eraseblocks = { {128 * 1024, 1} },
1720 .block_erase = spi_block_erase_c7,
1721 }
1722 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001723 .printlock = spi_prettyprint_status_register_at25fs010,
1724 .unlock = spi_disable_blockprotect_at25fs010,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001725 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001726 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001727 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001728 },
1729
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001730 {
1731 .vendor = "Atmel",
1732 .name = "AT25FS040",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001733 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001734 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001735 .model_id = ATMEL_AT25FS040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001736 .total_size = 512,
1737 .page_size = 256,
1738 .tested = TEST_UNTESTED,
1739 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001740 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001741 .block_erasers =
1742 {
1743 {
1744 .eraseblocks = { {4 * 1024, 128} },
1745 .block_erase = spi_block_erase_20,
1746 }, {
1747 .eraseblocks = { {64 * 1024, 8} },
1748 .block_erase = spi_block_erase_52,
1749 }, {
1750 .eraseblocks = { {64 * 1024, 8} },
1751 .block_erase = spi_block_erase_d8,
1752 }, {
1753 .eraseblocks = { {512 * 1024, 1} },
1754 .block_erase = spi_block_erase_60,
1755 }, {
1756 .eraseblocks = { {512 * 1024, 1} },
1757 .block_erase = spi_block_erase_c7,
1758 }
1759 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001760 .printlock = spi_prettyprint_status_register_at25fs040,
1761 .unlock = spi_disable_blockprotect_at25fs040,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001762 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001763 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001764 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001765 },
1766
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001767 {
1768 .vendor = "Atmel",
1769 .name = "AT26DF041",
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_AT26DF041,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001773 .total_size = 512,
1774 .page_size = 256,
1775 .tested = TEST_UNTESTED,
1776 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001777 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001778 .block_erasers =
1779 {
1780 {
1781 .eraseblocks = { {4 * 1024, 128} },
1782 .block_erase = spi_block_erase_20,
1783 }
1784 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001785 .write = NULL /* Incompatible Page write */,
1786 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001787 .voltage = {2700, 3600}, /* 3.0-3.6V for higher speed, 2.7-3.6V normal */
FENG yu ningff692fb2008-12-08 18:15:10 +00001788 },
1789
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001790 {
1791 .vendor = "Atmel",
1792 .name = "AT26DF081A",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001793 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001794 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001795 .model_id = ATMEL_AT26DF081A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001796 .total_size = 1024,
1797 .page_size = 256,
Mathias Krause2c3afa32011-01-17 07:45:54 +00001798 .feature_bits = FEATURE_WRSR_WREN,
1799 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001800 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001801 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001802 .block_erasers =
1803 {
1804 {
1805 .eraseblocks = { {4 * 1024, 256} },
1806 .block_erase = spi_block_erase_20,
1807 }, {
1808 .eraseblocks = { {32 * 1024, 32} },
1809 .block_erase = spi_block_erase_52,
1810 }, {
1811 .eraseblocks = { {64 * 1024, 16} },
1812 .block_erase = spi_block_erase_d8,
1813 }, {
1814 .eraseblocks = { {1024 * 1024, 1} },
1815 .block_erase = spi_block_erase_60,
1816 }, {
1817 .eraseblocks = { {1024 * 1024, 1} },
1818 .block_erase = spi_block_erase_c7,
1819 }
1820 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001821 .printlock = spi_prettyprint_status_register_atmel_at26df081a,
Mathias Krause2c3afa32011-01-17 07:45:54 +00001822 .unlock = spi_disable_blockprotect_at25df,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001823 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001824 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001825 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001826 },
1827
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001828 {
1829 .vendor = "Atmel",
1830 .name = "AT26DF161",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001831 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001832 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001833 .model_id = ATMEL_AT26DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001834 .total_size = 2048,
1835 .page_size = 256,
1836 .tested = TEST_UNTESTED,
1837 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001838 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001839 .block_erasers =
1840 {
1841 {
1842 .eraseblocks = { {4 * 1024, 512} },
1843 .block_erase = spi_block_erase_20,
1844 }, {
1845 .eraseblocks = { {32 * 1024, 64} },
1846 .block_erase = spi_block_erase_52,
1847 }, {
1848 .eraseblocks = { {64 * 1024, 32} },
1849 .block_erase = spi_block_erase_d8,
1850 }, {
1851 .eraseblocks = { {2 * 1024 * 1024, 1} },
1852 .block_erase = spi_block_erase_60,
1853 }, {
1854 .eraseblocks = { {2 * 1024 * 1024, 1} },
1855 .block_erase = spi_block_erase_c7,
1856 }
1857 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001858 .printlock = spi_prettyprint_status_register_at25df,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00001859 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001860 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001861 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001862 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001863 },
1864
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001865 {
1866 .vendor = "Atmel",
1867 .name = "AT26DF161A",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001868 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001869 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001870 .model_id = ATMEL_AT26DF161A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001871 .total_size = 2048,
1872 .page_size = 256,
1873 .tested = TEST_UNTESTED,
1874 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001875 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001876 .block_erasers =
1877 {
1878 {
1879 .eraseblocks = { {4 * 1024, 512} },
1880 .block_erase = spi_block_erase_20,
1881 }, {
1882 .eraseblocks = { {32 * 1024, 64} },
1883 .block_erase = spi_block_erase_52,
1884 }, {
1885 .eraseblocks = { {64 * 1024, 32} },
1886 .block_erase = spi_block_erase_d8,
1887 }, {
1888 .eraseblocks = { {2 * 1024 * 1024, 1} },
1889 .block_erase = spi_block_erase_60,
1890 }, {
1891 .eraseblocks = { {2 * 1024 * 1024, 1} },
1892 .block_erase = spi_block_erase_c7,
1893 }
1894 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001895 .printlock = spi_prettyprint_status_register_atmel_at26df081a,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00001896 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001897 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001898 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001899 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001900 },
1901
1902 /*The AT26DF321 has the same ID as the AT25DF321. */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001903 /*{
1904 .vendor = "Atmel",
1905 .name = "AT26DF321",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001906 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001907 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001908 .model_id = ATMEL_AT26DF321,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001909 .total_size = 4096,
1910 .page_size = 256,
1911 .tested = TEST_UNTESTED,
1912 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001913 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001914 .printlock = spi_prettyprint_status_register_atmel_at26df081a,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00001915 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001916 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001917 .read = spi_chip_read,
1918 },*/
FENG yu ningff692fb2008-12-08 18:15:10 +00001919
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001920 {
1921 .vendor = "Atmel",
1922 .name = "AT26F004",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00001923 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001924 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001925 .model_id = ATMEL_AT26F004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001926 .total_size = 512,
1927 .page_size = 256,
1928 .tested = TEST_UNTESTED,
1929 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001930 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001931 .block_erasers =
1932 {
1933 {
1934 .eraseblocks = { {4 * 1024, 128} },
1935 .block_erase = spi_block_erase_20,
1936 }, {
1937 .eraseblocks = { {32 * 1024, 16} },
1938 .block_erase = spi_block_erase_52,
1939 }, {
1940 .eraseblocks = { {64 * 1024, 8} },
1941 .block_erase = spi_block_erase_d8,
1942 }, {
1943 .eraseblocks = { {512 * 1024, 1} },
1944 .block_erase = spi_block_erase_60,
1945 }, {
1946 .eraseblocks = { {512 * 1024, 1} },
1947 .block_erase = spi_block_erase_c7,
1948 }
1949 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001950 .write = NULL /* Incompatible Page write */,
1951 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001952 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001953 },
1954
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001955 {
1956 .vendor = "Atmel",
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00001957 .name = "AT29C512",
Urja Rannikko038a3122009-06-28 19:19:25 +00001958 .bustype = CHIP_BUSTYPE_PARALLEL,
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00001959 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001960 .model_id = ATMEL_AT29C512,
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00001961 .total_size = 64,
1962 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00001963 .feature_bits = FEATURE_LONG_RESET,
1964 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00001965 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00001966 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00001967 .block_erasers =
1968 {
1969 {
1970 .eraseblocks = { {64 * 1024, 1} },
1971 .block_erase = erase_chip_block_jedec,
1972 }
1973 },
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00001974 .write = write_jedec,
1975 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001976 .voltage = {4500, 5500},
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00001977 },
1978
1979 {
1980 .vendor = "Atmel",
Uwe Hermann8403ccb2009-05-16 21:39:19 +00001981 .name = "AT29C010A",
Urja Rannikko161b8852009-06-05 08:47:37 +00001982 .bustype = CHIP_BUSTYPE_PARALLEL,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00001983 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001984 .model_id = ATMEL_AT29C010A,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00001985 .total_size = 128,
1986 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00001987 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00001988 .tested = TEST_OK_PRE,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00001989 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00001990 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00001991 .block_erasers =
1992 {
1993 {
1994 .eraseblocks = { {128 * 1024, 1} },
1995 .block_erase = erase_chip_block_jedec,
1996 }
1997 },
Uwe Hermann8403ccb2009-05-16 21:39:19 +00001998 .write = write_jedec, /* FIXME */
1999 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002000 .voltage = {4500, 5500},
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002001 },
2002
2003 {
2004 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002005 .name = "AT29C020",
Urja Rannikko161b8852009-06-05 08:47:37 +00002006 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002007 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002008 .model_id = ATMEL_AT29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002009 .total_size = 256,
2010 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002011 .feature_bits = FEATURE_LONG_RESET,
2012 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002013 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00002014 .probe_timing = 10000, /* 10ms */
Sean Nelson89187292009-12-23 12:02:55 +00002015 .block_erasers =
2016 {
2017 {
2018 .eraseblocks = { {256 * 1024, 1} },
2019 .block_erase = erase_chip_block_jedec,
2020 }
2021 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002022 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002023 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002024 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002025 },
2026
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002027 {
2028 .vendor = "Atmel",
2029 .name = "AT29C040A",
Urja Rannikko161b8852009-06-05 08:47:37 +00002030 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002031 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002032 .model_id = ATMEL_AT29C040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002033 .total_size = 512,
2034 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002035 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002036 .tested = TEST_UNTESTED,
2037 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00002038 .probe_timing = 10000, /* 10 ms */
Sean Nelson89187292009-12-23 12:02:55 +00002039 .block_erasers =
2040 {
2041 {
2042 .eraseblocks = { {512 * 1024, 1} },
2043 .block_erase = erase_chip_block_jedec,
2044 }
2045 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002046 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002047 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002048 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002049 },
2050
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002051 {
2052 .vendor = "Atmel",
2053 .name = "AT45CS1282",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00002054 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002055 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002056 .model_id = ATMEL_AT45CS1282,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002057 .total_size = 16896 /* No power of two sizes */,
2058 .page_size = 1056 /* No power of two sizes */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002059 .tested = TEST_BAD_READ,
2060 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002061 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002062 .write = NULL /* Incompatible Page write */,
2063 .read = NULL /* Incompatible read */,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002064 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002065 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002066
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002067 {
2068 .vendor = "Atmel",
2069 .name = "AT45DB011D",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00002070 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002071 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002072 .model_id = ATMEL_AT45DB011D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002073 .total_size = 128 /* Size can only be determined from status register */,
2074 .page_size = 256 /* Size can only be determined from status register */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002075 .tested = TEST_BAD_READ,
2076 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002077 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002078 .write = NULL,
2079 .read = NULL,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002080 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002081 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002082
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002083 {
2084 .vendor = "Atmel",
2085 .name = "AT45DB021D",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00002086 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002087 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002088 .model_id = ATMEL_AT45DB021D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002089 .total_size = 256 /* Size can only be determined from status register */,
2090 .page_size = 256 /* Size can only be determined from status register */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002091 .tested = TEST_BAD_READ,
2092 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002093 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002094 .write = NULL,
2095 .read = NULL,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002096 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002097 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002098
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002099 {
2100 .vendor = "Atmel",
2101 .name = "AT45DB041D",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00002102 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002103 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002104 .model_id = ATMEL_AT45DB041D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002105 .total_size = 512 /* Size can only be determined from status register */,
2106 .page_size = 256 /* Size can only be determined from status register */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002107 .tested = TEST_BAD_READ,
2108 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002109 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002110 .write = NULL,
2111 .read = NULL,
Steven Zakulec7d257b42011-07-19 08:50:18 +00002112 .voltage = {2500, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002113 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002114
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002115 {
2116 .vendor = "Atmel",
2117 .name = "AT45DB081D",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00002118 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002119 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002120 .model_id = ATMEL_AT45DB081D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002121 .total_size = 1024 /* Size can only be determined from status register */,
2122 .page_size = 256 /* Size can only be determined from status register */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002123 .tested = TEST_BAD_READ,
2124 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002125 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002126 .write = NULL,
2127 .read = NULL,
Steven Zakulec7d257b42011-07-19 08:50:18 +00002128 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002129 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002130
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002131 {
2132 .vendor = "Atmel",
2133 .name = "AT45DB161D",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00002134 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002135 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002136 .model_id = ATMEL_AT45DB161D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002137 .total_size = 2048 /* Size can only be determined from status register */,
2138 .page_size = 512 /* Size can only be determined from status register */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002139 .tested = TEST_BAD_READ,
2140 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002141 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002142 .write = NULL,
2143 .read = NULL,
Steven Zakulec7d257b42011-07-19 08:50:18 +00002144 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002145 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002146
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002147 {
2148 .vendor = "Atmel",
2149 .name = "AT45DB321C",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00002150 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002151 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002152 .model_id = ATMEL_AT45DB321C,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002153 .total_size = 4224 /* No power of two sizes */,
2154 .page_size = 528 /* No power of two sizes */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002155 .tested = TEST_BAD_READ,
2156 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002157 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002158 .write = NULL,
2159 .read = NULL /* Incompatible read */,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002160 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002161 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002162
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002163 {
2164 .vendor = "Atmel",
2165 .name = "AT45DB321D",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00002166 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002167 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002168 .model_id = ATMEL_AT45DB321D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002169 .total_size = 4096 /* Size can only be determined from status register */,
2170 .page_size = 512 /* Size can only be determined from status register */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002171 .tested = TEST_BAD_READ,
2172 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002173 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002174 .write = NULL,
2175 .read = NULL,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002176 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002177 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002178
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002179 {
2180 .vendor = "Atmel",
2181 .name = "AT45DB642D",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00002182 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002183 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002184 .model_id = ATMEL_AT45DB642D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002185 .total_size = 8192 /* Size can only be determined from status register */,
2186 .page_size = 1024 /* Size can only be determined from status register */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002187 .tested = TEST_BAD_READ,
2188 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002189 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002190 .write = NULL,
2191 .read = NULL,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002192 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002193 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002194
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002195 {
2196 .vendor = "Atmel",
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002197 .name = "AT49BV512",
Urja Rannikko161b8852009-06-05 08:47:37 +00002198 .bustype = CHIP_BUSTYPE_PARALLEL,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002199 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002200 .model_id = ATMEL_AT49BV512,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002201 .total_size = 64,
2202 .page_size = 64,
Sean Nelson35727f72010-01-28 23:55:12 +00002203 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +00002204 .tested = TEST_OK_PREW,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002205 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002206 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002207 .block_erasers =
2208 {
2209 {
2210 .eraseblocks = { {64 * 1024, 1} },
2211 .block_erase = erase_chip_block_jedec,
2212 }
2213 },
Sean Nelson35727f72010-01-28 23:55:12 +00002214 .write = write_jedec_1,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002215 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002216 .voltage = {2700, 3600},
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002217 },
2218
2219 {
2220 .vendor = "Atmel",
Andrew Morgan1a5eaa12010-06-07 14:10:55 +00002221 .name = "AT49F020",
2222 .bustype = CHIP_BUSTYPE_PARALLEL,
2223 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002224 .model_id = ATMEL_AT49F020,
Andrew Morgan1a5eaa12010-06-07 14:10:55 +00002225 .total_size = 256,
2226 .page_size = 256,
2227 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002228 .tested = TEST_OK_PRE,
Andrew Morgan1a5eaa12010-06-07 14:10:55 +00002229 .probe = probe_jedec,
2230 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2231 .block_erasers =
2232 {
2233 {
2234 .eraseblocks = { {256 * 1024, 1} },
2235 .block_erase = erase_chip_block_jedec,
2236 }
2237 },
2238 .write = write_jedec_1,
2239 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002240 .voltage = {4500, 5500},
Andrew Morgan1a5eaa12010-06-07 14:10:55 +00002241 },
2242
2243 {
2244 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002245 .name = "AT49F002(N)",
Urja Rannikko161b8852009-06-05 08:47:37 +00002246 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002247 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002248 .model_id = ATMEL_AT49F002N,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002249 .total_size = 256,
2250 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002251 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002252 .tested = TEST_UNTESTED,
2253 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002254 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002255 .block_erasers =
2256 {
2257 {
2258 .eraseblocks = {
2259 {16 * 1024, 1},
2260 {8 * 1024, 2},
2261 {96 * 1024, 1},
2262 {128 * 1024, 1},
2263 },
2264 .block_erase = erase_sector_jedec,
2265 }, {
2266 .eraseblocks = { {256 * 1024, 1} },
2267 .block_erase = erase_chip_block_jedec,
2268 }
2269 },
Sean Nelson35727f72010-01-28 23:55:12 +00002270 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002271 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002272 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002273 },
2274
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002275 {
2276 .vendor = "Atmel",
2277 .name = "AT49F002(N)T",
Urja Rannikko161b8852009-06-05 08:47:37 +00002278 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002279 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002280 .model_id = ATMEL_AT49F002NT,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002281 .total_size = 256,
2282 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002283 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002284 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002285 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002286 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002287 .block_erasers =
2288 {
2289 {
2290 .eraseblocks = {
2291 {128 * 1024, 1},
2292 {96 * 1024, 1},
2293 {8 * 1024, 2},
2294 {16 * 1024, 1},
2295 },
2296 .block_erase = erase_sector_jedec,
2297 }, {
2298 .eraseblocks = { {256 * 1024, 1} },
2299 .block_erase = erase_chip_block_jedec,
2300 }
2301 },
Sean Nelson35727f72010-01-28 23:55:12 +00002302 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002303 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002304 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002305 },
2306
Daniel Lenskidf90d3a2010-07-22 11:44:38 +00002307 {
Joshua Roysf1324e02010-09-16 00:51:51 +00002308 .vendor = "Bright",
2309 .name = "BM29F040",
2310 .bustype = CHIP_BUSTYPE_PARALLEL,
2311 .manufacture_id = BRIGHT_ID,
2312 .model_id = BRIGHT_BM29F040,
2313 .total_size = 512,
2314 .page_size = 64 * 1024,
2315 .feature_bits = FEATURE_EITHER_RESET,
2316 .tested = TEST_OK_PR,
2317 .probe = probe_jedec,
2318 .probe_timing = TIMING_ZERO,
2319 .block_erasers =
2320 {
2321 {
2322 .eraseblocks = { {64 * 1024, 8} },
2323 .block_erase = erase_sector_jedec,
2324 }, {
2325 .eraseblocks = { {512 * 1024, 1} },
2326 .block_erase = erase_chip_block_jedec,
2327 },
2328 },
2329 .write = write_jedec_1,
2330 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00002331 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00002332 },
2333
2334 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002335 .vendor = "EMST",
2336 .name = "F49B002UA",
Urja Rannikko161b8852009-06-05 08:47:37 +00002337 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002338 .manufacture_id = EMST_ID,
2339 .model_id = EMST_F49B002UA,
2340 .total_size = 256,
2341 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00002342 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002343 .tested = TEST_UNTESTED,
2344 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002345 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00002346 .block_erasers =
2347 {
2348 {
2349 .eraseblocks = {
2350 {128 * 1024, 1},
2351 {96 * 1024, 1},
2352 {8 * 1024, 2},
2353 {16 * 1024, 1},
2354 },
2355 .block_erase = erase_sector_jedec,
2356 }, {
2357 .eraseblocks = { {256 * 1024, 1} },
2358 .block_erase = erase_chip_block_jedec,
2359 }
2360 },
Sean Nelson35727f72010-01-28 23:55:12 +00002361 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002362 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002363 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002364 },
2365
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002366 {
Michael Karcher80a59ea2010-06-19 22:06:35 +00002367 .vendor = "EMST",
2368 .name = "F25L008A",
2369 .bustype = CHIP_BUSTYPE_SPI,
2370 .manufacture_id = EMST_ID,
2371 .model_id = EMST_F25L008A,
2372 .total_size = 1024,
2373 .page_size = 256,
2374 .tested = TEST_UNTESTED,
2375 .probe = probe_spi_rdid,
2376 .probe_timing = TIMING_ZERO,
2377 .block_erasers =
2378 {
2379 {
2380 .eraseblocks = { {4 * 1024, 256} },
2381 .block_erase = spi_block_erase_20,
2382 }, {
2383 .eraseblocks = { {64 * 1024, 16} },
2384 .block_erase = spi_block_erase_d8,
2385 }, {
2386 .eraseblocks = { {1024 * 1024, 1} },
2387 .block_erase = spi_block_erase_60,
2388 }, {
2389 .eraseblocks = { {1024 * 1024, 1} },
2390 .block_erase = spi_block_erase_c7,
2391 }
2392 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002393 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger9a795d82010-07-14 16:19:05 +00002394 .write = spi_chip_write_1,
Michael Karcher4497e862010-07-10 19:34:15 +00002395 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002396 .voltage = {2700, 3600},
Michael Karcher80a59ea2010-06-19 22:06:35 +00002397 },
2398
2399 {
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002400 .vendor = "Eon",
2401 .name = "EN25B05",
2402 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002403 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002404 .model_id = EON_EN25B05,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002405 .total_size = 64,
2406 .page_size = 256,
2407 .tested = TEST_UNTESTED,
2408 .probe = probe_spi_rdid,
2409 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002410 .block_erasers =
2411 {
2412 {
2413 .eraseblocks = {
2414 {4 * 1024, 2},
2415 {8 * 1024, 1},
2416 {16 * 1024, 1},
2417 {32 * 1024, 1},
2418 },
2419 .block_erase = spi_block_erase_d8,
2420 }, {
2421 .eraseblocks = { {64 * 1024, 1} },
2422 .block_erase = spi_block_erase_c7,
2423 }
2424 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002425 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002426 .write = spi_chip_write_256,
2427 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002428 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002429 },
2430
2431 {
2432 .vendor = "Eon",
2433 .name = "EN25B05T",
2434 .bustype = CHIP_BUSTYPE_SPI,
2435 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002436 .model_id = EON_EN25B05,
Sean Nelson54596372010-01-09 05:30:14 +00002437 .total_size = 64,
2438 .page_size = 256,
2439 .tested = TEST_UNTESTED,
2440 .probe = probe_spi_rdid,
2441 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002442 .block_erasers =
2443 {
2444 {
2445 .eraseblocks = {
2446 {32 * 1024, 1},
2447 {16 * 1024, 1},
2448 {8 * 1024, 1},
2449 {4 * 1024, 2},
2450 },
2451 .block_erase = spi_block_erase_d8,
2452 }, {
2453 .eraseblocks = { {64 * 1024, 1} },
2454 .block_erase = spi_block_erase_c7,
2455 }
2456 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002457 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002458 .write = spi_chip_write_256,
2459 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002460 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002461 },
2462
2463 {
2464 .vendor = "Eon",
2465 .name = "EN25B10",
2466 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002467 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002468 .model_id = EON_EN25B10,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002469 .total_size = 128,
2470 .page_size = 256,
2471 .tested = TEST_UNTESTED,
2472 .probe = probe_spi_rdid,
2473 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002474 .block_erasers =
2475 {
2476 {
2477 .eraseblocks = {
2478 {4 * 1024, 2},
2479 {8 * 1024, 1},
2480 {16 * 1024, 1},
2481 {32 * 1024, 3},
2482 },
2483 .block_erase = spi_block_erase_d8,
2484 }, {
2485 .eraseblocks = { {128 * 1024, 1} },
2486 .block_erase = spi_block_erase_c7,
2487 }
2488 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002489 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002490 .write = spi_chip_write_256,
2491 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002492 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002493 },
2494
2495 {
2496 .vendor = "Eon",
2497 .name = "EN25B10T",
2498 .bustype = CHIP_BUSTYPE_SPI,
2499 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002500 .model_id = EON_EN25B10,
Sean Nelson54596372010-01-09 05:30:14 +00002501 .total_size = 128,
2502 .page_size = 256,
2503 .tested = TEST_UNTESTED,
2504 .probe = probe_spi_rdid,
2505 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002506 .block_erasers =
2507 {
2508 {
2509 .eraseblocks = {
2510 {32 * 1024, 3},
2511 {16 * 1024, 1},
2512 {8 * 1024, 1},
2513 {4 * 1024, 2},
2514 },
2515 .block_erase = spi_block_erase_d8,
2516 }, {
2517 .eraseblocks = { {128 * 1024, 1} },
2518 .block_erase = spi_block_erase_c7,
2519 }
2520 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002521 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002522 .write = spi_chip_write_256,
2523 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002524 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002525 },
2526
2527 {
2528 .vendor = "Eon",
2529 .name = "EN25B20",
2530 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002531 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002532 .model_id = EON_EN25B20,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002533 .total_size = 256,
2534 .page_size = 256,
2535 .tested = TEST_UNTESTED,
2536 .probe = probe_spi_rdid,
2537 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002538 .block_erasers =
2539 {
2540 {
2541 .eraseblocks = {
2542 {4 * 1024, 2},
2543 {8 * 1024, 1},
2544 {16 * 1024, 1},
2545 {32 * 1024, 1},
2546 {64 * 1024, 3}
2547 },
2548 .block_erase = spi_block_erase_d8,
2549 }, {
2550 .eraseblocks = { {256 * 1024, 1} },
2551 .block_erase = spi_block_erase_c7,
2552 }
2553 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002554 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002555 .write = spi_chip_write_256,
2556 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002557 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002558 },
2559
2560 {
2561 .vendor = "Eon",
2562 .name = "EN25B20T",
2563 .bustype = CHIP_BUSTYPE_SPI,
2564 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002565 .model_id = EON_EN25B20,
Sean Nelson54596372010-01-09 05:30:14 +00002566 .total_size = 256,
2567 .page_size = 256,
2568 .tested = TEST_UNTESTED,
2569 .probe = probe_spi_rdid,
2570 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002571 .block_erasers =
2572 {
2573 {
2574 .eraseblocks = {
2575 {64 * 1024, 3},
2576 {32 * 1024, 1},
2577 {16 * 1024, 1},
2578 {8 * 1024, 1},
2579 {4 * 1024, 2},
2580 },
2581 .block_erase = spi_block_erase_d8,
2582 }, {
2583 .eraseblocks = { {256 * 1024, 1} },
2584 .block_erase = spi_block_erase_c7,
2585 }
2586 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002587 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002588 .write = spi_chip_write_256,
2589 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002590 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002591 },
2592
2593 {
2594 .vendor = "Eon",
2595 .name = "EN25B40",
2596 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002597 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002598 .model_id = EON_EN25B40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002599 .total_size = 512,
2600 .page_size = 256,
2601 .tested = TEST_UNTESTED,
2602 .probe = probe_spi_rdid,
2603 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002604 .block_erasers =
2605 {
2606 {
2607 .eraseblocks = {
2608 {4 * 1024, 2},
2609 {8 * 1024, 1},
2610 {16 * 1024, 1},
2611 {32 * 1024, 1},
2612 {64 * 1024, 7}
2613 },
2614 .block_erase = spi_block_erase_d8,
2615 }, {
2616 .eraseblocks = { {512 * 1024, 1} },
2617 .block_erase = spi_block_erase_c7,
2618 }
2619 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002620 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002621 .write = spi_chip_write_256,
2622 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002623 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002624 },
2625
2626 {
2627 .vendor = "Eon",
2628 .name = "EN25B40T",
2629 .bustype = CHIP_BUSTYPE_SPI,
2630 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002631 .model_id = EON_EN25B40,
Sean Nelson54596372010-01-09 05:30:14 +00002632 .total_size = 512,
2633 .page_size = 256,
2634 .tested = TEST_UNTESTED,
2635 .probe = probe_spi_rdid,
2636 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002637 .block_erasers =
2638 {
2639 {
2640 .eraseblocks = {
2641 {64 * 1024, 7},
2642 {32 * 1024, 1},
2643 {16 * 1024, 1},
2644 {8 * 1024, 1},
2645 {4 * 1024, 2},
2646 },
2647 .block_erase = spi_block_erase_d8,
2648 }, {
2649 .eraseblocks = { {512 * 1024, 1} },
2650 .block_erase = spi_block_erase_c7,
2651 }
2652 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002653 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002654 .write = spi_chip_write_256,
2655 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002656 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002657 },
2658
2659 {
2660 .vendor = "Eon",
2661 .name = "EN25B80",
2662 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002663 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002664 .model_id = EON_EN25B80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002665 .total_size = 1024,
2666 .page_size = 256,
2667 .tested = TEST_UNTESTED,
2668 .probe = probe_spi_rdid,
2669 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002670 .block_erasers =
2671 {
2672 {
2673 .eraseblocks = {
2674 {4 * 1024, 2},
2675 {8 * 1024, 1},
2676 {16 * 1024, 1},
2677 {32 * 1024, 1},
2678 {64 * 1024, 15}
2679 },
2680 .block_erase = spi_block_erase_d8,
2681 }, {
2682 .eraseblocks = { {1024 * 1024, 1} },
2683 .block_erase = spi_block_erase_c7,
2684 }
2685 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002686 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002687 .write = spi_chip_write_256,
2688 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002689 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002690 },
2691
2692 {
2693 .vendor = "Eon",
2694 .name = "EN25B80T",
2695 .bustype = CHIP_BUSTYPE_SPI,
2696 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002697 .model_id = EON_EN25B80,
Sean Nelson54596372010-01-09 05:30:14 +00002698 .total_size = 1024,
2699 .page_size = 256,
2700 .tested = TEST_UNTESTED,
2701 .probe = probe_spi_rdid,
2702 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002703 .block_erasers =
2704 {
2705 {
2706 .eraseblocks = {
2707 {64 * 1024, 15},
2708 {32 * 1024, 1},
2709 {16 * 1024, 1},
2710 {8 * 1024, 1},
2711 {4 * 1024, 2},
2712 },
2713 .block_erase = spi_block_erase_d8,
2714 }, {
2715 .eraseblocks = { {1024 * 1024, 1} },
2716 .block_erase = spi_block_erase_c7,
2717 }
2718 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002719 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002720 .write = spi_chip_write_256,
2721 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002722 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002723 },
2724
2725 {
2726 .vendor = "Eon",
2727 .name = "EN25B16",
2728 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002729 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002730 .model_id = EON_EN25B16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002731 .total_size = 2048,
2732 .page_size = 256,
2733 .tested = TEST_UNTESTED,
2734 .probe = probe_spi_rdid,
2735 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002736 .block_erasers =
2737 {
2738 {
2739 .eraseblocks = {
2740 {4 * 1024, 2},
2741 {8 * 1024, 1},
2742 {16 * 1024, 1},
2743 {32 * 1024, 1},
2744 {64 * 1024, 31},
2745 },
2746 .block_erase = spi_block_erase_d8,
2747 }, {
2748 .eraseblocks = { {2 * 1024 * 1024, 1} },
2749 .block_erase = spi_block_erase_c7,
2750 }
2751 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002752 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002753 .write = spi_chip_write_256,
2754 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002755 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002756 },
2757
2758 {
2759 .vendor = "Eon",
2760 .name = "EN25B16T",
2761 .bustype = CHIP_BUSTYPE_SPI,
2762 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002763 .model_id = EON_EN25B16,
Sean Nelson54596372010-01-09 05:30:14 +00002764 .total_size = 2048,
2765 .page_size = 256,
2766 .tested = TEST_UNTESTED,
2767 .probe = probe_spi_rdid,
2768 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002769 .block_erasers =
2770 {
2771 {
2772 .eraseblocks = {
2773 {64 * 1024, 31},
2774 {32 * 1024, 1},
2775 {16 * 1024, 1},
2776 {8 * 1024, 1},
2777 {4 * 1024, 2},
2778 },
2779 .block_erase = spi_block_erase_d8,
2780 }, {
2781 .eraseblocks = { {2 * 1024 * 1024, 1} },
2782 .block_erase = spi_block_erase_c7,
2783 }
2784 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002785 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002786 .write = spi_chip_write_256,
2787 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002788 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002789 },
2790
2791 {
2792 .vendor = "Eon",
2793 .name = "EN25B32",
2794 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002795 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002796 .model_id = EON_EN25B32,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002797 .total_size = 4096,
2798 .page_size = 256,
2799 .tested = TEST_UNTESTED,
2800 .probe = probe_spi_rdid,
2801 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002802 .block_erasers =
2803 {
2804 {
2805 .eraseblocks = {
2806 {4 * 1024, 2},
2807 {8 * 1024, 1},
2808 {16 * 1024, 1},
2809 {32 * 1024, 1},
2810 {64 * 1024, 63},
2811 },
2812 .block_erase = spi_block_erase_d8,
2813 }, {
2814 .eraseblocks = { {4 * 1024 * 1024, 1} },
2815 .block_erase = spi_block_erase_c7,
2816 }
2817 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002818 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002819 .write = spi_chip_write_256,
2820 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002821 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002822 },
2823
2824 {
2825 .vendor = "Eon",
2826 .name = "EN25B32T",
2827 .bustype = CHIP_BUSTYPE_SPI,
2828 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002829 .model_id = EON_EN25B32,
Sean Nelson54596372010-01-09 05:30:14 +00002830 .total_size = 4096,
2831 .page_size = 256,
2832 .tested = TEST_UNTESTED,
2833 .probe = probe_spi_rdid,
2834 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002835 .block_erasers =
2836 {
2837 {
2838 .eraseblocks = {
2839 {64 * 1024, 63},
2840 {32 * 1024, 1},
2841 {16 * 1024, 1},
2842 {8 * 1024, 1},
2843 {4 * 1024, 2},
2844 },
2845 .block_erase = spi_block_erase_d8,
2846 }, {
2847 .eraseblocks = { {4 * 1024 * 1024, 1} },
2848 .block_erase = spi_block_erase_c7,
2849 }
2850 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002851 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002852 .write = spi_chip_write_256,
2853 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002854 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002855 },
2856
2857 {
2858 .vendor = "Eon",
2859 .name = "EN25B64",
2860 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002861 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002862 .model_id = EON_EN25B64,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002863 .total_size = 8192,
2864 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00002865 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002866 .tested = TEST_UNTESTED,
2867 .probe = probe_spi_rdid,
2868 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002869 .block_erasers =
2870 {
2871 {
2872 .eraseblocks = {
2873 {4 * 1024, 2},
2874 {8 * 1024, 1},
2875 {16 * 1024, 1},
2876 {32 * 1024, 1},
2877 {64 * 1024, 127},
2878 },
2879 .block_erase = spi_block_erase_d8,
2880 }, {
2881 .eraseblocks = { {8 * 1024 * 1024, 1} },
2882 .block_erase = spi_block_erase_c7,
2883 }
2884 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002885 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002886 .write = spi_chip_write_256,
2887 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002888 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002889 },
2890
2891 {
2892 .vendor = "Eon",
2893 .name = "EN25B64T",
2894 .bustype = CHIP_BUSTYPE_SPI,
2895 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002896 .model_id = EON_EN25B64,
Sean Nelson54596372010-01-09 05:30:14 +00002897 .total_size = 8192,
2898 .page_size = 256,
2899 .tested = TEST_UNTESTED,
2900 .probe = probe_spi_rdid,
2901 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002902 .block_erasers =
2903 {
2904 {
2905 .eraseblocks = {
2906 {64 * 1024, 127},
2907 {32 * 1024, 1},
2908 {16 * 1024, 1},
2909 {8 * 1024, 1},
2910 {4 * 1024, 2},
2911 },
2912 .block_erase = spi_block_erase_d8,
2913 }, {
2914 .eraseblocks = { {8 * 1024 * 1024, 1} },
2915 .block_erase = spi_block_erase_c7,
2916 }
2917 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002918 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002919 .write = spi_chip_write_256,
2920 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002921 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002922 },
2923
2924 {
2925 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002926 .name = "EN25F05",
2927 .bustype = CHIP_BUSTYPE_SPI,
2928 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002929 .model_id = EON_EN25F05,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002930 .total_size = 64,
2931 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00002932 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002933 .tested = TEST_UNTESTED,
2934 .probe = probe_spi_rdid,
2935 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002936 .block_erasers =
2937 {
2938 {
2939 .eraseblocks = { {4 * 1024, 16} },
2940 .block_erase = spi_block_erase_20,
2941 }, {
2942 .eraseblocks = { {32 * 1024, 2} },
2943 .block_erase = spi_block_erase_d8,
2944 }, {
2945 .eraseblocks = { {32 * 1024, 2} },
2946 .block_erase = spi_block_erase_52,
2947 }, {
2948 .eraseblocks = { {64 * 1024, 1} },
2949 .block_erase = spi_block_erase_60,
2950 }, {
2951 .eraseblocks = { {64 * 1024, 1} },
2952 .block_erase = spi_block_erase_c7,
2953 }
2954 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002955 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002956 .write = spi_chip_write_256,
2957 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002958 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002959 },
2960
2961 {
2962 .vendor = "Eon",
2963 .name = "EN25F10",
2964 .bustype = CHIP_BUSTYPE_SPI,
2965 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002966 .model_id = EON_EN25F10,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002967 .total_size = 128,
2968 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00002969 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002970 .tested = TEST_UNTESTED,
2971 .probe = probe_spi_rdid,
2972 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002973 .block_erasers =
2974 {
2975 {
2976 .eraseblocks = { {4 * 1024, 32} },
2977 .block_erase = spi_block_erase_20,
2978 }, {
2979 .eraseblocks = { {32 * 1024, 4} },
2980 .block_erase = spi_block_erase_d8,
2981 }, {
2982 .eraseblocks = { {32 * 1024, 4} },
2983 .block_erase = spi_block_erase_52,
2984 }, {
2985 .eraseblocks = { {128 * 1024, 1} },
2986 .block_erase = spi_block_erase_60,
2987 }, {
2988 .eraseblocks = { {128 * 1024, 1} },
2989 .block_erase = spi_block_erase_c7,
2990 }
2991 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002992 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002993 .write = spi_chip_write_256,
2994 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002995 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002996 },
2997
2998 {
2999 .vendor = "Eon",
3000 .name = "EN25F20",
3001 .bustype = CHIP_BUSTYPE_SPI,
3002 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003003 .model_id = EON_EN25F20,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003004 .total_size = 256,
3005 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003006 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003007 .tested = TEST_UNTESTED,
3008 .probe = probe_spi_rdid,
3009 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003010 .block_erasers =
3011 {
3012 {
3013 .eraseblocks = { {4 * 1024, 64} },
3014 .block_erase = spi_block_erase_20,
3015 }, {
3016 .eraseblocks = { {64 * 1024, 4} },
3017 .block_erase = spi_block_erase_d8,
3018 }, {
3019 .eraseblocks = { {64 * 1024, 4} },
3020 .block_erase = spi_block_erase_52,
3021 }, {
3022 .eraseblocks = { {256 * 1024, 1} },
3023 .block_erase = spi_block_erase_60,
3024 }, {
3025 .eraseblocks = { {256 * 1024, 1} },
3026 .block_erase = spi_block_erase_c7,
3027 }
3028 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003029 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003030 .write = spi_chip_write_256,
3031 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003032 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003033 },
3034
3035 {
3036 .vendor = "Eon",
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003037 .name = "EN25F40",
3038 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003039 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003040 .model_id = EON_EN25F40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003041 .total_size = 512,
3042 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003043 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerfaaa2b22009-06-22 10:06:28 +00003044 .tested = TEST_OK_PROBE,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003045 .probe = probe_spi_rdid,
3046 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003047 .block_erasers =
3048 {
3049 {
Sean Nelson54596372010-01-09 05:30:14 +00003050 .eraseblocks = { {4 * 1024, 128} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003051 .block_erase = spi_block_erase_20,
3052 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003053 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003054 .block_erase = spi_block_erase_d8,
3055 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003056 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003057 .block_erase = spi_block_erase_60,
3058 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003059 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003060 .block_erase = spi_block_erase_c7,
3061 },
3062 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003063 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003064 .write = spi_chip_write_256,
3065 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003066 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003067 },
3068
3069 {
3070 .vendor = "Eon",
3071 .name = "EN25F80",
3072 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003073 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003074 .model_id = EON_EN25F80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003075 .total_size = 1024,
3076 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003077 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003078 .tested = TEST_OK_PRE,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003079 .probe = probe_spi_rdid,
3080 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003081 .block_erasers =
3082 {
3083 {
3084 .eraseblocks = { {4 * 1024, 256} },
3085 .block_erase = spi_block_erase_20,
3086 }, {
3087 .eraseblocks = { {64 * 1024, 16} },
3088 .block_erase = spi_block_erase_d8,
3089 }, {
3090 .eraseblocks = { {1024 * 1024, 1} },
3091 .block_erase = spi_block_erase_60,
3092 }, {
3093 .eraseblocks = { {1024 * 1024, 1} },
3094 .block_erase = spi_block_erase_c7,
3095 }
3096 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003097 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003098 .write = spi_chip_write_256,
3099 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003100 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003101 },
3102
3103 {
3104 .vendor = "Eon",
3105 .name = "EN25F16",
3106 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003107 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003108 .model_id = EON_EN25F16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003109 .total_size = 2048,
3110 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003111 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003112 .tested = TEST_UNTESTED,
3113 .probe = probe_spi_rdid,
3114 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003115 .block_erasers =
3116 {
3117 {
3118 .eraseblocks = { {4 * 1024, 512} },
3119 .block_erase = spi_block_erase_20,
3120 }, {
3121 .eraseblocks = { {64 * 1024, 32} },
3122 .block_erase = spi_block_erase_d8,
3123 }, {
3124 .eraseblocks = { {2 * 1024 * 1024, 1} },
3125 .block_erase = spi_block_erase_60,
3126 }, {
3127 .eraseblocks = { {2 * 1024 * 1024, 1} },
3128 .block_erase = spi_block_erase_c7,
3129 }
3130 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003131 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003132 .write = spi_chip_write_256,
3133 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003134 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003135 },
3136
3137 {
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003138 .vendor = "Eon",
3139 .name = "EN25F32",
3140 .bustype = CHIP_BUSTYPE_SPI,
3141 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003142 .model_id = EON_EN25F32,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003143 .total_size = 4096,
3144 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003145 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003146 .tested = TEST_UNTESTED,
3147 .probe = probe_spi_rdid,
3148 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003149 .block_erasers =
3150 {
3151 {
3152 .eraseblocks = { {4 * 1024, 1024} },
3153 .block_erase = spi_block_erase_20,
3154 }, {
3155 .eraseblocks = { {64 * 1024, 64} },
3156 .block_erase = spi_block_erase_d8,
3157 }, {
3158 .eraseblocks = { {4 * 1024 * 1024, 1} },
3159 .block_erase = spi_block_erase_60,
3160 }, {
3161 .eraseblocks = { {4 * 1024 * 1024, 1} },
3162 .block_erase = spi_block_erase_c7,
3163 }
3164 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003165 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003166 .write = spi_chip_write_256,
3167 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003168 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003169 },
3170
3171 {
Russ Dill3cd5a122010-03-05 08:44:11 +00003172 .vendor = "Eon",
David Hendricks6d715302011-07-24 22:21:57 +00003173 .name = "EN25Q40",
3174 .bustype = CHIP_BUSTYPE_SPI,
3175 .manufacture_id = EON_ID_NOPREFIX,
3176 .model_id = EON_EN25Q40,
3177 .total_size = 512,
3178 .page_size = 256,
3179 /* TODO: chip features 256-byte one-time programmable region */
3180 .feature_bits = FEATURE_WRSR_WREN,
3181 .tested = TEST_UNTESTED,
3182 .probe = probe_spi_rdid,
3183 .probe_timing = TIMING_ZERO,
3184 .block_erasers =
3185 {
3186 {
3187 .eraseblocks = { {4 * 1024, 128} },
3188 .block_erase = spi_block_erase_20,
3189 }, {
3190 .eraseblocks = { {64 * 1024, 8} },
3191 .block_erase = spi_block_erase_d8,
3192 }, {
3193 .eraseblocks = { {512 * 1024, 1} },
3194 .block_erase = spi_block_erase_60,
3195 }, {
3196 .eraseblocks = { {512 * 1024, 1} },
3197 .block_erase = spi_block_erase_c7,
3198 }
3199 },
3200 .unlock = spi_disable_blockprotect,
3201 .write = spi_chip_write_256,
3202 .read = spi_chip_read,
3203 .voltage = {2700, 3600},
3204 },
3205
3206 {
3207 .vendor = "Eon",
3208 .name = "EN25Q80(A)",
3209 .bustype = CHIP_BUSTYPE_SPI,
3210 .manufacture_id = EON_ID_NOPREFIX,
3211 .model_id = EON_EN25Q80,
3212 .total_size = 1024,
3213 .page_size = 256,
3214 /* TODO: chip features 256-byte one-time programmable region */
3215 .feature_bits = FEATURE_WRSR_WREN,
3216 .tested = TEST_UNTESTED,
3217 .probe = probe_spi_rdid,
3218 .probe_timing = TIMING_ZERO,
3219 .block_erasers =
3220 {
3221 {
3222 .eraseblocks = { {4 * 1024, 256} },
3223 .block_erase = spi_block_erase_20,
3224 }, {
3225 .eraseblocks = { {64 * 1024, 16} },
3226 .block_erase = spi_block_erase_d8,
3227 }, {
3228 .eraseblocks = { {1024 * 1024, 1} },
3229 .block_erase = spi_block_erase_60,
3230 }, {
3231 .eraseblocks = { {1024 * 1024, 1} },
3232 .block_erase = spi_block_erase_c7,
3233 }
3234 },
3235 .unlock = spi_disable_blockprotect,
3236 .write = spi_chip_write_256,
3237 .read = spi_chip_read,
3238 .voltage = {2700, 3600},
3239 },
3240
3241 {
3242 /* Note: EN25D16 is an evil twin which shares the model ID
3243 but has different write protection capabilities */
3244 .vendor = "Eon",
3245 .name = "EN25Q16",
3246 .bustype = CHIP_BUSTYPE_SPI,
3247 .manufacture_id = EON_ID_NOPREFIX,
3248 .model_id = EON_EN25Q16,
3249 .total_size = 2048,
3250 .page_size = 256,
3251 /* TODO: EN25D16 features 512-byte one-time programmable region,
3252 * EN25Q16 features a 128-byte one-time programmable region */
3253 .feature_bits = FEATURE_WRSR_WREN,
3254 .tested = TEST_UNTESTED,
3255 .probe = probe_spi_rdid,
3256 .probe_timing = TIMING_ZERO,
3257 .block_erasers =
3258 {
3259 {
3260 .eraseblocks = { {4 * 1024, 512} },
3261 .block_erase = spi_block_erase_20,
3262 }, {
3263 .eraseblocks = { {64 * 1024, 32} },
3264 .block_erase = spi_block_erase_d8,
3265 }, {
3266 /* not supported by Q16 version */
3267 .eraseblocks = { {64 * 1024, 32} },
3268 .block_erase = spi_block_erase_52,
3269 }, {
3270 .eraseblocks = { {2 * 1024 * 1024, 1} },
3271 .block_erase = spi_block_erase_60,
3272 }, {
3273 .eraseblocks = { {2 * 1024 * 1024, 1} },
3274 .block_erase = spi_block_erase_c7,
3275 }
3276 },
3277 .unlock = spi_disable_blockprotect,
3278 .write = spi_chip_write_256,
3279 .read = spi_chip_read,
3280 .voltage = {2700, 3600},
3281 },
3282
3283 {
3284 .vendor = "Eon",
3285 .name = "EN25Q32(A/B)",
3286 .bustype = CHIP_BUSTYPE_SPI,
3287 .manufacture_id = EON_ID_NOPREFIX,
3288 .model_id = EON_EN25Q32,
3289 .total_size = 4096,
3290 .page_size = 256,
3291 /* TODO: chip features 512-byte one-time programmable region */
3292 .feature_bits = FEATURE_WRSR_WREN,
3293 .tested = TEST_UNTESTED,
3294 .probe = probe_spi_rdid,
3295 .probe_timing = TIMING_ZERO,
3296 .block_erasers =
3297 {
3298 {
3299 .eraseblocks = { {4 * 1024, 1024} },
3300 .block_erase = spi_block_erase_20,
3301 }, {
3302 .eraseblocks = { {64 * 1024, 64} },
3303 .block_erase = spi_block_erase_d8,
3304 }, {
3305 .eraseblocks = { {4 * 1024 * 1024, 1} },
3306 .block_erase = spi_block_erase_60,
3307 }, {
3308 .eraseblocks = { {4 * 1024 * 1024, 1} },
3309 .block_erase = spi_block_erase_c7,
3310 }
3311 },
3312 .unlock = spi_disable_blockprotect,
3313 .write = spi_chip_write_256,
3314 .read = spi_chip_read,
3315 .voltage = {2700, 3600},
3316 },
3317
3318 {
3319 .vendor = "Eon",
3320 .name = "EN25Q64",
3321 .bustype = CHIP_BUSTYPE_SPI,
3322 .manufacture_id = EON_ID_NOPREFIX,
3323 .model_id = EON_EN25Q64,
3324 .total_size = 8192,
3325 .page_size = 256,
3326 /* TODO: chip features 512-byte one-time programmable region */
3327 .feature_bits = FEATURE_WRSR_WREN,
3328 .tested = TEST_UNTESTED,
3329 .probe = probe_spi_rdid,
3330 .probe_timing = TIMING_ZERO,
3331 .block_erasers =
3332 {
3333 {
3334 .eraseblocks = { {4 * 1024, 2048} },
3335 .block_erase = spi_block_erase_20,
3336 }, {
3337 .eraseblocks = { {64 * 1024, 128} },
3338 .block_erase = spi_block_erase_d8,
3339 }, {
3340 .eraseblocks = { {8 * 1024 * 1024, 1} },
3341 .block_erase = spi_block_erase_60,
3342 }, {
3343 .eraseblocks = { {8 * 1024 * 1024, 1} },
3344 .block_erase = spi_block_erase_c7,
3345 }
3346 },
3347 .unlock = spi_disable_blockprotect,
3348 .write = spi_chip_write_256,
3349 .read = spi_chip_read,
3350 .voltage = {2700, 3600},
3351 },
3352
3353 {
3354 .vendor = "Eon",
3355 .name = "EN25Q128",
3356 .bustype = CHIP_BUSTYPE_SPI,
3357 .manufacture_id = EON_ID_NOPREFIX,
3358 .model_id = EON_EN25Q128,
3359 .total_size = 16384,
3360 .page_size = 256,
3361 /* TODO: chip features 512-byte one-time programmable region */
3362 .feature_bits = FEATURE_WRSR_WREN,
3363 .tested = TEST_UNTESTED,
3364 .probe = probe_spi_rdid,
3365 .probe_timing = TIMING_ZERO,
3366 .block_erasers =
3367 {
3368 {
3369 .eraseblocks = { {4 * 1024, 4096} },
3370 .block_erase = spi_block_erase_20,
3371 }, {
3372 .eraseblocks = { {64 * 1024, 256} },
3373 .block_erase = spi_block_erase_d8,
3374 }, {
3375 .eraseblocks = { {16 * 1024 * 1024, 1} },
3376 .block_erase = spi_block_erase_60,
3377 }, {
3378 .eraseblocks = { {16 * 1024 * 1024, 1} },
3379 .block_erase = spi_block_erase_c7,
3380 }
3381 },
3382 .unlock = spi_disable_blockprotect,
3383 .write = spi_chip_write_256,
3384 .read = spi_chip_read,
3385 },
3386
3387 {
3388 .vendor = "Eon",
3389 .name = "EN25QH16",
3390 .bustype = CHIP_BUSTYPE_SPI,
3391 .manufacture_id = EON_ID_NOPREFIX,
3392 .model_id = EON_EN25QH16,
3393 .total_size = 2048,
3394 .page_size = 256,
3395 /* TODO: chip features 512-byte one-time programmable region
3396 * and supports SFDP.
3397 */
3398 .feature_bits = FEATURE_WRSR_WREN,
3399 .tested = TEST_UNTESTED,
3400 .probe = probe_spi_rdid,
3401 .probe_timing = TIMING_ZERO,
3402 .block_erasers =
3403 {
3404 {
3405 .eraseblocks = { {4 * 1024, 512} },
3406 .block_erase = spi_block_erase_20,
3407 }, {
3408 .eraseblocks = { {64 * 1024, 32} },
3409 .block_erase = spi_block_erase_d8,
3410 }, {
3411 .eraseblocks = { {1024 * 2048, 1} },
3412 .block_erase = spi_block_erase_60,
3413 }, {
3414 .eraseblocks = { {1024 * 2048, 1} },
3415 .block_erase = spi_block_erase_c7,
3416 }
3417 },
3418 .unlock = spi_disable_blockprotect,
3419 .write = spi_chip_write_256,
3420 .read = spi_chip_read,
3421 .voltage = {2700, 3600},
3422 },
3423
3424 {
3425 .vendor = "Eon",
Russ Dill3cd5a122010-03-05 08:44:11 +00003426 .name = "EN29F010",
3427 .bustype = CHIP_BUSTYPE_PARALLEL,
3428 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003429 .model_id = EON_EN29F010,
Russ Dill3cd5a122010-03-05 08:44:11 +00003430 .total_size = 128,
3431 .page_size = 128,
3432 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003433 .tested = TEST_OK_PRE,
Russ Dill3cd5a122010-03-05 08:44:11 +00003434 .probe = probe_jedec,
3435 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3436 .block_erasers =
3437 {
3438 {
3439 .eraseblocks = { {16 * 1024, 8} },
3440 .block_erase = erase_sector_jedec,
3441 },
3442 {
3443 .eraseblocks = { {128 * 1024, 1} },
3444 .block_erase = erase_chip_block_jedec,
3445 },
3446 },
3447 .write = write_jedec_1,
3448 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003449 .voltage = {4500, 5500},
Russ Dill3cd5a122010-03-05 08:44:11 +00003450 },
3451
3452 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00003453 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003454 .name = "EN29F002(A)(N)B",
Urja Rannikko161b8852009-06-05 08:47:37 +00003455 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003456 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003457 .model_id = EON_EN29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003458 .total_size = 256,
3459 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00003460 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003461 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003462 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003463 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003464 .block_erasers =
3465 {
3466 {
3467 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00003468 {16 * 1024, 1},
Michael Karchere3cb0a12010-03-13 23:47:09 +00003469 {8 * 1024, 2},
3470 {32 * 1024, 1},
3471 {64 * 1024, 3},
Sean Nelson6b11ad22009-12-23 17:05:59 +00003472 },
3473 .block_erase = erase_sector_jedec,
3474 }, {
3475 .eraseblocks = { {256 * 1024, 1} },
3476 .block_erase = erase_chip_block_jedec,
3477 },
3478 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00003479 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003480 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003481 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003482 },
3483
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003484 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00003485 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003486 .name = "EN29F002(A)(N)T",
Urja Rannikko161b8852009-06-05 08:47:37 +00003487 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003488 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003489 .model_id = EON_EN29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003490 .total_size = 256,
3491 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00003492 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003493 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003494 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003495 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003496 .block_erasers =
3497 {
3498 {
3499 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00003500 {64 * 1024, 3},
Michael Karchere3cb0a12010-03-13 23:47:09 +00003501 {32 * 1024, 1},
3502 {8 * 1024, 2},
3503 {16 * 1024, 1},
Sean Nelson6b11ad22009-12-23 17:05:59 +00003504 },
3505 .block_erase = erase_sector_jedec,
3506 }, {
3507 .eraseblocks = { {256 * 1024, 1} },
3508 .block_erase = erase_chip_block_jedec,
3509 },
3510 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00003511 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003512 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003513 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003514 },
3515
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003516 {
3517 .vendor = "Fujitsu",
3518 .name = "MBM29F004BC",
Urja Rannikko038a3122009-06-28 19:19:25 +00003519 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003520 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003521 .model_id = FUJITSU_MBM29F004BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003522 .total_size = 512,
3523 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003524 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003525 .tested = TEST_UNTESTED,
3526 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003527 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003528 .block_erasers =
3529 {
3530 {
3531 .eraseblocks = {
3532 {16 * 1024, 1},
3533 {8 * 1024, 2},
3534 {32 * 1024, 1},
3535 {64 * 1024, 7},
3536 },
Sean Nelson35727f72010-01-28 23:55:12 +00003537 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003538 }, {
3539 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00003540 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003541 },
3542 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003543 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003544 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003545 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003546 },
3547
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003548 {
3549 .vendor = "Fujitsu",
3550 .name = "MBM29F004TC",
Urja Rannikko038a3122009-06-28 19:19:25 +00003551 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003552 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003553 .model_id = FUJITSU_MBM29F004TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003554 .total_size = 512,
3555 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003556 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003557 .tested = TEST_UNTESTED,
3558 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003559 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003560 .block_erasers =
3561 {
3562 {
3563 .eraseblocks = {
3564 {64 * 1024, 7},
3565 {32 * 1024, 1},
3566 {8 * 1024, 2},
3567 {16 * 1024, 1},
3568 },
Sean Nelson35727f72010-01-28 23:55:12 +00003569 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003570 }, {
3571 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00003572 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003573 },
3574 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003575 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003576 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003577 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003578 },
3579
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003580 {
Sean Nelson35727f72010-01-28 23:55:12 +00003581 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003582 .vendor = "Fujitsu",
3583 .name = "MBM29F400BC",
Urja Rannikko038a3122009-06-28 19:19:25 +00003584 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003585 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003586 .model_id = FUJITSU_MBM29F400BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003587 .total_size = 512,
3588 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003589 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00003590 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003591 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00003592 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003593 .block_erasers =
3594 {
3595 {
3596 .eraseblocks = {
3597 {16 * 1024, 1},
3598 {8 * 1024, 2},
3599 {32 * 1024, 1},
3600 {64 * 1024, 7},
3601 },
3602 .block_erase = block_erase_m29f400bt,
3603 }, {
3604 .eraseblocks = { {512 * 1024, 1} },
3605 .block_erase = block_erase_chip_m29f400bt,
3606 },
3607 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00003608 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003609 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003610 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00003611 },
3612
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003613 {
3614 .vendor = "Fujitsu",
3615 .name = "MBM29F400TC",
Urja Rannikko038a3122009-06-28 19:19:25 +00003616 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003617 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003618 .model_id = FUJITSU_MBM29F400TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003619 .total_size = 512,
3620 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003621 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003622 .tested = TEST_UNTESTED,
3623 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00003624 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003625 .block_erasers =
3626 {
3627 {
3628 .eraseblocks = {
3629 {64 * 1024, 7},
3630 {32 * 1024, 1},
3631 {8 * 1024, 2},
3632 {16 * 1024, 1},
3633 },
3634 .block_erase = block_erase_m29f400bt,
3635 }, {
3636 .eraseblocks = { {512 * 1024, 1} },
3637 .block_erase = block_erase_chip_m29f400bt,
3638 },
3639 },
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00003640 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003641 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003642 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00003643 },
3644
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003645 {
David Borgc96a8bd2010-06-21 16:12:22 +00003646 .vendor = "Hyundai",
3647 .name = "HY29F002T",
3648 .bustype = CHIP_BUSTYPE_PARALLEL,
3649 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003650 .model_id = HYUNDAI_HY29F002T,
David Borgc96a8bd2010-06-21 16:12:22 +00003651 .total_size = 256,
3652 .page_size = 256 * 1024,
3653 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003654 .tested = TEST_OK_PRE,
David Borgc96a8bd2010-06-21 16:12:22 +00003655 .probe = probe_jedec,
3656 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3657 .block_erasers =
3658 {
3659 {
3660 .eraseblocks = {
3661 {64 * 1024, 3},
3662 {32 * 1024, 1},
3663 {8 * 1024, 2},
3664 {16 * 1024, 1},
3665 },
3666 .block_erase = erase_sector_jedec,
3667 }, {
3668 .eraseblocks = { {256 * 1024, 1} },
3669 .block_erase = erase_chip_block_jedec,
3670 },
3671 },
3672 .write = write_jedec_1,
3673 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003674 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00003675 },
3676
3677 {
3678 .vendor = "Hyundai",
3679 .name = "HY29F002B",
3680 .bustype = CHIP_BUSTYPE_PARALLEL,
3681 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003682 .model_id = HYUNDAI_HY29F002B,
David Borgc96a8bd2010-06-21 16:12:22 +00003683 .total_size = 256,
3684 .page_size = 256 * 1024,
3685 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
3686 .tested = TEST_UNTESTED,
3687 .probe = probe_jedec,
3688 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3689 .block_erasers =
3690 {
3691 {
3692 .eraseblocks = {
3693 {16 * 1024, 1},
3694 {8 * 1024, 2},
3695 {32 * 1024, 1},
3696 {64 * 1024, 3},
3697 },
3698 .block_erase = erase_sector_jedec,
3699 }, {
3700 .eraseblocks = { {256 * 1024, 1} },
3701 .block_erase = erase_chip_block_jedec,
3702 },
3703 },
3704 .write = write_jedec_1,
3705 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003706 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00003707 },
3708
3709 {
Joshua Roysf1324e02010-09-16 00:51:51 +00003710 .vendor = "Hyundai",
3711 .name = "HY29F040A",
3712 .bustype = CHIP_BUSTYPE_PARALLEL,
3713 .manufacture_id = HYUNDAI_ID,
3714 .model_id = HYUNDAI_HY29F040A,
3715 .total_size = 512,
3716 .page_size = 64 * 1024,
3717 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
3718 .tested = TEST_UNTESTED,
3719 .probe = probe_jedec,
3720 .probe_timing = TIMING_ZERO,
3721 .block_erasers =
3722 {
3723 {
3724 .eraseblocks = { {64 * 1024, 8} },
3725 .block_erase = erase_sector_jedec,
3726 }, {
3727 .eraseblocks = { {512 * 1024, 1} },
3728 .block_erase = erase_chip_block_jedec,
3729 },
3730 },
3731 .write = write_jedec_1,
3732 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003733 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00003734 },
3735
3736 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003737 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003738 .name = "28F001BN/BX-B",
Urja Rannikko161b8852009-06-05 08:47:37 +00003739 .bustype = CHIP_BUSTYPE_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00003740 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003741 .model_id = INTEL_28F001B,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00003742 .total_size = 128,
3743 .page_size = 128 * 1024, /* 8k + 2x4k + 112k */
Sean Nelsondee4a832010-03-22 04:39:31 +00003744 .tested = TEST_UNTESTED,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00003745 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003746 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00003747 .block_erasers =
3748 {
3749 {
3750 .eraseblocks = {
3751 {8 * 1024, 1},
3752 {4 * 1024, 2},
3753 {112 * 1024, 1},
3754 },
Sean Nelson28accc22010-03-19 18:47:06 +00003755 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00003756 },
3757 },
Sean Nelsondee4a832010-03-22 04:39:31 +00003758 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00003759 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003760 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00003761 },
3762
3763 {
3764 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003765 .name = "28F001BN/BX-T",
Urja Rannikko161b8852009-06-05 08:47:37 +00003766 .bustype = CHIP_BUSTYPE_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00003767 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003768 .model_id = INTEL_28F001T,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00003769 .total_size = 128,
3770 .page_size = 128 * 1024, /* 112k + 2x4k + 8k */
Sean Nelsondee4a832010-03-22 04:39:31 +00003771 .tested = TEST_UNTESTED,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00003772 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003773 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00003774 .block_erasers =
3775 {
3776 {
3777 .eraseblocks = {
3778 {112 * 1024, 1},
3779 {4 * 1024, 2},
3780 {8 * 1024, 1},
3781 },
Sean Nelson28accc22010-03-19 18:47:06 +00003782 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00003783 },
3784 },
Sean Nelsondee4a832010-03-22 04:39:31 +00003785 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00003786 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003787 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00003788 },
3789
3790 {
3791 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003792 .name = "28F002BC/BL/BV/BX-T",
Joshua Roysd97c0e02010-07-22 15:20:43 +00003793 .bustype = CHIP_BUSTYPE_PARALLEL,
3794 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003795 .model_id = INTEL_28F002T,
Joshua Roysd97c0e02010-07-22 15:20:43 +00003796 .total_size = 256,
3797 .page_size = 256 * 1024,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003798 .tested = TEST_OK_PRE,
Joshua Roysd97c0e02010-07-22 15:20:43 +00003799 .probe = probe_82802ab,
3800 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3801 .block_erasers =
3802 {
3803 {
3804 .eraseblocks = {
3805 {128 * 1024, 1},
3806 {96 * 1024, 1},
3807 {8 * 1024, 2},
3808 {16 * 1024, 1},
3809 },
3810 .block_erase = erase_block_82802ab,
3811 },
3812 },
3813 .write = write_82802ab,
3814 .read = read_memmapped,
3815 },
3816
3817 {
3818 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003819 .name = "28F008S3/S5/SC",
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00003820 .bustype = CHIP_BUSTYPE_PARALLEL,
3821 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003822 .model_id = INTEL_28F004S3,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00003823 .total_size = 512,
3824 .page_size = 256,
3825 .tested = TEST_UNTESTED,
3826 .probe = probe_82802ab,
3827 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00003828 .block_erasers =
3829 {
3830 {
3831 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00003832 .block_erase = erase_block_82802ab,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00003833 },
3834 },
Sean Nelsondee4a832010-03-22 04:39:31 +00003835 .unlock = unlock_28f004s5,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00003836 .write = write_82802ab,
3837 .read = read_memmapped,
3838 },
3839
3840 {
3841 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003842 .name = "28F004B5/BE/BV/BX-B",
Michael Karcherad0010a2010-04-03 10:27:08 +00003843 .bustype = CHIP_BUSTYPE_PARALLEL,
3844 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003845 .model_id = INTEL_28F004B,
Michael Karcherad0010a2010-04-03 10:27:08 +00003846 .total_size = 512,
3847 .page_size = 128 * 1024, /* maximal block size */
3848 .tested = TEST_UNTESTED,
3849 .probe = probe_82802ab,
3850 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3851 .block_erasers =
3852 {
3853 {
3854 .eraseblocks = {
3855 {16 * 1024, 1},
3856 {8 * 1024, 2},
3857 {96 * 1024, 1},
3858 {128 * 1024, 3},
3859 },
3860 .block_erase = erase_block_82802ab,
3861 },
3862 },
3863 .write = write_82802ab,
3864 .read = read_memmapped,
3865 },
3866
3867 {
3868 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003869 .name = "28F004B5/BE/BV/BX-T",
Michael Karcherad0010a2010-04-03 10:27:08 +00003870 .bustype = CHIP_BUSTYPE_PARALLEL,
3871 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003872 .model_id = INTEL_28F004T,
Michael Karcherad0010a2010-04-03 10:27:08 +00003873 .total_size = 512,
3874 .page_size = 128 * 1024, /* maximal block size */
3875 .tested = TEST_UNTESTED,
3876 .probe = probe_82802ab,
3877 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3878 .block_erasers =
3879 {
3880 {
3881 .eraseblocks = {
3882 {128 * 1024, 3},
3883 {96 * 1024, 1},
3884 {8 * 1024, 2},
3885 {16 * 1024, 1},
3886 },
3887 .block_erase = erase_block_82802ab,
3888 },
3889 },
3890 .write = write_82802ab,
3891 .read = read_memmapped,
3892 },
3893
3894 {
3895 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003896 .name = "28F400BV/BX/CE/CV-B",
Michael Karcherad0010a2010-04-03 10:27:08 +00003897 .bustype = CHIP_BUSTYPE_PARALLEL,
3898 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003899 .model_id = INTEL_28F400B,
Michael Karcherad0010a2010-04-03 10:27:08 +00003900 .total_size = 512,
3901 .page_size = 128 * 1024, /* maximal block size */
3902 .feature_bits = FEATURE_ADDR_SHIFTED,
3903 .tested = TEST_UNTESTED,
3904 .probe = probe_82802ab,
3905 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3906 .block_erasers =
3907 {
3908 {
3909 .eraseblocks = {
3910 {16 * 1024, 1},
3911 {8 * 1024, 2},
3912 {96 * 1024, 1},
3913 {128 * 1024, 3},
3914 },
3915 .block_erase = erase_block_82802ab,
3916 },
3917 },
3918 .write = write_82802ab,
3919 .read = read_memmapped,
3920 },
3921
3922 {
3923 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003924 .name = "28F400BV/BX/CE/CV-T",
Michael Karcherad0010a2010-04-03 10:27:08 +00003925 .bustype = CHIP_BUSTYPE_PARALLEL,
3926 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003927 .model_id = INTEL_28F400T,
Michael Karcherad0010a2010-04-03 10:27:08 +00003928 .total_size = 512,
3929 .page_size = 128 * 1024, /* maximal block size */
3930 .feature_bits = FEATURE_ADDR_SHIFTED,
3931 .tested = TEST_UNTESTED,
3932 .probe = probe_82802ab,
3933 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3934 .block_erasers =
3935 {
3936 {
3937 .eraseblocks = {
3938 {128 * 1024, 3},
3939 {96 * 1024, 1},
3940 {8 * 1024, 2},
3941 {16 * 1024, 1},
3942 },
3943 .block_erase = erase_block_82802ab,
3944 },
3945 },
3946 .write = write_82802ab,
3947 .read = read_memmapped,
3948 },
3949
3950 {
3951 .vendor = "Intel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003952 .name = "82802AB",
Mateusz Murawskie33890d2009-06-12 11:45:10 +00003953 .bustype = CHIP_BUSTYPE_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003954 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003955 .model_id = INTEL_82802AB,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003956 .total_size = 512,
3957 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00003958 .feature_bits = FEATURE_REGISTERMAP,
Stefan Taunerd06d9412011-06-12 19:47:55 +00003959 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003960 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003961 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00003962 .block_erasers =
3963 {
3964 {
3965 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00003966 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00003967 },
3968 },
Sean Nelson28accc22010-03-19 18:47:06 +00003969 .unlock = unlock_82802ab,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003970 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003971 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003972 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00003973 },
3974
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003975 {
3976 .vendor = "Intel",
3977 .name = "82802AC",
Mateusz Murawskie33890d2009-06-12 11:45:10 +00003978 .bustype = CHIP_BUSTYPE_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003979 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003980 .model_id = INTEL_82802AC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003981 .total_size = 1024,
3982 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00003983 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +00003984 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003985 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003986 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00003987 .block_erasers =
3988 {
3989 {
3990 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +00003991 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00003992 },
3993 },
Sean Nelson28accc22010-03-19 18:47:06 +00003994 .unlock = unlock_82802ab,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003995 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003996 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003997 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00003998 },
3999
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004000 {
4001 .vendor = "Macronix",
4002 .name = "MX25L512",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004003 .bustype = CHIP_BUSTYPE_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004004 .manufacture_id = MACRONIX_ID,
4005 .model_id = MACRONIX_MX25L512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004006 .total_size = 64,
4007 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004008 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004009 .tested = TEST_UNTESTED,
4010 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004011 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004012 .block_erasers =
4013 {
4014 {
4015 .eraseblocks = { {4 * 1024, 16} },
4016 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004017 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004018 .eraseblocks = { {64 * 1024, 1} },
4019 .block_erase = spi_block_erase_52,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004020 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004021 .eraseblocks = { {64 * 1024, 1} },
4022 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004023 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004024 .eraseblocks = { {64 * 1024, 1} },
4025 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004026 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004027 .eraseblocks = { {64 * 1024, 1} },
4028 .block_erase = spi_block_erase_c7,
4029 },
4030 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004031 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004032 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004033 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004034 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004035 },
4036
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004037 {
4038 .vendor = "Macronix",
4039 .name = "MX25L1005",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004040 .bustype = CHIP_BUSTYPE_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004041 .manufacture_id = MACRONIX_ID,
4042 .model_id = MACRONIX_MX25L1005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004043 .total_size = 128,
4044 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004045 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004046 .tested = TEST_UNTESTED,
4047 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004048 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004049 .block_erasers =
4050 {
4051 {
4052 .eraseblocks = { {4 * 1024, 32} },
4053 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004054 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004055 .eraseblocks = { {64 * 1024, 2} },
4056 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004057 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004058 .eraseblocks = { {128 * 1024, 1} },
4059 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004060 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004061 .eraseblocks = { {128 * 1024, 1} },
4062 .block_erase = spi_block_erase_c7,
4063 },
4064 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004065 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004066 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004067 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004068 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004069 },
4070
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004071 {
4072 .vendor = "Macronix",
4073 .name = "MX25L2005",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004074 .bustype = CHIP_BUSTYPE_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004075 .manufacture_id = MACRONIX_ID,
4076 .model_id = MACRONIX_MX25L2005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004077 .total_size = 256,
4078 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004079 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004080 .tested = TEST_UNTESTED,
4081 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004082 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004083 .block_erasers =
4084 {
4085 {
4086 .eraseblocks = { {4 * 1024, 64} },
4087 .block_erase = spi_block_erase_20,
4088 }, {
4089 .eraseblocks = { {64 * 1024, 4} },
4090 .block_erase = spi_block_erase_52,
4091 }, {
4092 .eraseblocks = { {64 * 1024, 4} },
4093 .block_erase = spi_block_erase_d8,
4094 }, {
4095 .eraseblocks = { {256 * 1024, 1} },
4096 .block_erase = spi_block_erase_60,
4097 }, {
4098 .eraseblocks = { {256 * 1024, 1} },
4099 .block_erase = spi_block_erase_c7,
4100 },
4101 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004102 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004103 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004104 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004105 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004106 },
4107
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004108 {
4109 .vendor = "Macronix",
4110 .name = "MX25L4005",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004111 .bustype = CHIP_BUSTYPE_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004112 .manufacture_id = MACRONIX_ID,
4113 .model_id = MACRONIX_MX25L4005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004114 .total_size = 512,
4115 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004116 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +00004117 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004118 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004119 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004120 .block_erasers =
4121 {
4122 {
4123 .eraseblocks = { {4 * 1024, 128} },
4124 .block_erase = spi_block_erase_20,
4125 }, {
4126 .eraseblocks = { {64 * 1024, 8} },
4127 .block_erase = spi_block_erase_52,
4128 }, {
4129 .eraseblocks = { {64 * 1024, 8} },
4130 .block_erase = spi_block_erase_d8,
4131 }, {
4132 .eraseblocks = { {512 * 1024, 1} },
4133 .block_erase = spi_block_erase_60,
4134 }, {
4135 .eraseblocks = { {512 * 1024, 1} },
4136 .block_erase = spi_block_erase_c7,
4137 },
4138 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004139 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004140 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004141 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004142 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004143 },
4144
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004145 {
4146 .vendor = "Macronix",
4147 .name = "MX25L8005",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004148 .bustype = CHIP_BUSTYPE_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004149 .manufacture_id = MACRONIX_ID,
4150 .model_id = MACRONIX_MX25L8005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004151 .total_size = 1024,
4152 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004153 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +00004154 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004155 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004156 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004157 .block_erasers =
4158 {
4159 {
4160 .eraseblocks = { {4 * 1024, 256} },
4161 .block_erase = spi_block_erase_20,
4162 }, {
4163 .eraseblocks = { {64 * 1024, 16} },
4164 .block_erase = spi_block_erase_52,
4165 }, {
4166 .eraseblocks = { {64 * 1024, 16} },
4167 .block_erase = spi_block_erase_d8,
4168 }, {
4169 .eraseblocks = { {1024 * 1024, 1} },
4170 .block_erase = spi_block_erase_60,
4171 }, {
4172 .eraseblocks = { {1024 * 1024, 1} },
4173 .block_erase = spi_block_erase_c7,
4174 },
4175 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004176 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004177 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004178 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004179 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004180 },
4181
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004182 {
4183 .vendor = "Macronix",
4184 .name = "MX25L1605",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004185 .bustype = CHIP_BUSTYPE_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004186 .manufacture_id = MACRONIX_ID,
4187 .model_id = MACRONIX_MX25L1605,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004188 .total_size = 2048,
4189 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004190 .feature_bits = FEATURE_WRSR_WREN,
Sven Schnelle4bd8a402011-03-07 10:59:06 +00004191 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004192 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004193 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004194 .block_erasers =
4195 {
4196 {
4197 .eraseblocks = { {4 * 1024, 512} },
4198 .block_erase = spi_block_erase_20, /* This erase function has 64k blocksize for eLiteFlash */
4199 }, {
4200 .eraseblocks = { {64 * 1024, 32} }, /* Not supported in MX25L1605 (eLiteFlash) and MX25L1605D */
4201 .block_erase = spi_block_erase_52,
4202 }, {
4203 .eraseblocks = { {64 * 1024, 32} },
4204 .block_erase = spi_block_erase_d8,
4205 }, {
4206 .eraseblocks = { {2 * 1024 * 1024, 1} },
4207 .block_erase = spi_block_erase_60,
4208 }, {
4209 .eraseblocks = { {2 * 1024 * 1024, 1} },
4210 .block_erase = spi_block_erase_c7,
4211 },
4212 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004213 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004214 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004215 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004216 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004217 },
4218
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004219 {
4220 .vendor = "Macronix",
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004221 .name = "MX25L1635D",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004222 .bustype = CHIP_BUSTYPE_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004223 .manufacture_id = MACRONIX_ID,
4224 .model_id = MACRONIX_MX25L1635D,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004225 .total_size = 2048,
4226 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004227 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004228 .tested = TEST_UNTESTED,
4229 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004230 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004231 .block_erasers =
4232 {
4233 {
4234 .eraseblocks = { {4 * 1024, 512} },
4235 .block_erase = spi_block_erase_20,
4236 }, {
4237 .eraseblocks = { {64 * 1024, 32} },
4238 .block_erase = spi_block_erase_d8,
4239 }, {
4240 .eraseblocks = { {2 * 1024 * 1024, 1} },
4241 .block_erase = spi_block_erase_60,
4242 }, {
4243 .eraseblocks = { {2 * 1024 * 1024, 1} },
4244 .block_erase = spi_block_erase_c7,
4245 }
4246 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004247 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004248 .write = spi_chip_write_256,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004249 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004250 .voltage = {2700, 3600},
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004251 },
Stephan Guillouxfd315502009-04-20 22:54:13 +00004252
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004253 {
4254 .vendor = "Macronix",
Stephan Guilloux3611b802010-09-13 19:59:28 +00004255 .name = "MX25L1635E",
4256 .bustype = CHIP_BUSTYPE_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004257 .manufacture_id = MACRONIX_ID,
4258 .model_id = MACRONIX_MX25L1635E,
Stephan Guilloux3611b802010-09-13 19:59:28 +00004259 .total_size = 2048,
4260 .page_size = 256,
4261 .feature_bits = FEATURE_WRSR_WREN,
4262 .tested = TEST_UNTESTED,
4263 .probe = probe_spi_rdid,
4264 .probe_timing = TIMING_ZERO,
4265 .block_erasers =
4266 {
4267 {
4268 .eraseblocks = { {4 * 1024, 512} },
4269 .block_erase = spi_block_erase_20,
4270 }, {
4271 .eraseblocks = { {64 * 1024, 32} },
4272 .block_erase = spi_block_erase_d8,
4273 }, {
4274 .eraseblocks = { {2 * 1024 * 1024, 1} },
4275 .block_erase = spi_block_erase_60,
4276 }, {
4277 .eraseblocks = { {2 * 1024 * 1024, 1} },
4278 .block_erase = spi_block_erase_c7,
4279 }
4280 },
4281 .unlock = spi_disable_blockprotect,
4282 .write = spi_chip_write_256,
4283 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004284 .voltage = {2700, 3600},
Stephan Guilloux3611b802010-09-13 19:59:28 +00004285 },
4286
4287 {
4288 .vendor = "Macronix",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004289 .name = "MX25L3205",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004290 .bustype = CHIP_BUSTYPE_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004291 .manufacture_id = MACRONIX_ID,
4292 .model_id = MACRONIX_MX25L3205,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004293 .total_size = 4096,
4294 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004295 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00004296 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004297 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004298 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004299 .block_erasers =
4300 {
4301 {
4302 .eraseblocks = { {4 * 1024, 1024} },
4303 .block_erase = spi_block_erase_20,
4304 }, {
4305 .eraseblocks = { {4 * 1024, 1024} },
4306 .block_erase = spi_block_erase_d8,
4307 }, {
4308 .eraseblocks = { {4 * 1024 * 1024, 1} },
4309 .block_erase = spi_block_erase_60,
4310 }, {
4311 .eraseblocks = { {4 * 1024 * 1024, 1} },
4312 .block_erase = spi_block_erase_c7,
4313 },
4314 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004315 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004316 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004317 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004318 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004319 },
4320
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004321 {
4322 .vendor = "Macronix",
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00004323 .name = "MX25L3235D",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004324 .bustype = CHIP_BUSTYPE_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004325 .manufacture_id = MACRONIX_ID,
4326 .model_id = MACRONIX_MX25L3235D,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00004327 .total_size = 4096,
4328 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004329 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00004330 .tested = TEST_UNTESTED,
4331 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004332 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004333 .block_erasers =
4334 {
4335 {
4336 .eraseblocks = { {4 * 1024, 1024} },
4337 .block_erase = spi_block_erase_20,
4338 }, {
4339 .eraseblocks = { {64 * 1024, 64} },
4340 .block_erase = spi_block_erase_d8,
4341 }, {
4342 .eraseblocks = { {4 * 1024 * 1024, 1} },
4343 .block_erase = spi_block_erase_60,
4344 }, {
4345 .eraseblocks = { {4 * 1024 * 1024, 1} },
4346 .block_erase = spi_block_erase_c7,
4347 }
4348 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004349 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004350 .write = spi_chip_write_256,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00004351 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004352 .voltage = {2700, 3600},
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00004353 },
4354
4355 {
4356 .vendor = "Macronix",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004357 .name = "MX25L6405",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004358 .bustype = CHIP_BUSTYPE_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004359 .manufacture_id = MACRONIX_ID,
4360 .model_id = MACRONIX_MX25L6405,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004361 .total_size = 8192,
4362 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004363 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger452b3e32009-06-22 11:14:43 +00004364 .tested = TEST_OK_PROBE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004365 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004366 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004367 .block_erasers =
4368 {
4369 {
4370 .eraseblocks = { {64 * 1024, 128} },
4371 .block_erase = spi_block_erase_20,
4372 }, {
4373 .eraseblocks = { {64 * 1024, 128} },
4374 .block_erase = spi_block_erase_d8,
4375 }, {
4376 .eraseblocks = { {8 * 1024 * 1024, 1} },
4377 .block_erase = spi_block_erase_60,
4378 }, {
4379 .eraseblocks = { {8 * 1024 * 1024, 1} },
4380 .block_erase = spi_block_erase_c7,
4381 }
4382 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004383 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004384 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004385 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004386 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004387 },
4388
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004389 {
4390 .vendor = "Macronix",
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00004391 .name = "MX25L12805",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004392 .bustype = CHIP_BUSTYPE_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004393 .manufacture_id = MACRONIX_ID,
4394 .model_id = MACRONIX_MX25L12805,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00004395 .total_size = 16384,
4396 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004397 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00004398 .tested = TEST_UNTESTED,
4399 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004400 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004401 .block_erasers =
4402 {
4403 {
4404 .eraseblocks = { {4 * 1024, 4096} },
4405 .block_erase = spi_block_erase_20,
4406 }, {
4407 .eraseblocks = { {64 * 1024, 256} },
4408 .block_erase = spi_block_erase_d8,
4409 }, {
4410 .eraseblocks = { {16 * 1024 * 1024, 1} },
4411 .block_erase = spi_block_erase_60,
4412 }, {
4413 .eraseblocks = { {16 * 1024 * 1024, 1} },
4414 .block_erase = spi_block_erase_c7,
4415 }
4416 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004417 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004418 .write = spi_chip_write_256,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00004419 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004420 .voltage = {2700, 3600},
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00004421 },
4422
4423 {
4424 .vendor = "Macronix",
Mark Panajotovic502a9132009-08-24 01:42:24 +00004425 .name = "MX29F001B",
4426 .bustype = CHIP_BUSTYPE_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004427 .manufacture_id = MACRONIX_ID,
4428 .model_id = MACRONIX_MX29F001B,
Mark Panajotovic502a9132009-08-24 01:42:24 +00004429 .total_size = 128,
4430 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004431 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
4432 .tested = TEST_UNTESTED,
4433 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00004434 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004435 .block_erasers =
4436 {
4437 {
4438 .eraseblocks = {
4439 {8 * 1024, 1},
4440 {4 * 1024, 2},
4441 {8 * 1024, 2},
4442 {32 * 1024, 1},
4443 {64 * 1024, 1},
4444 },
Sean Nelson35727f72010-01-28 23:55:12 +00004445 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00004446 }, {
4447 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004448 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00004449 }
4450 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004451 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00004452 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004453 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00004454 },
4455
4456 {
4457 .vendor = "Macronix",
4458 .name = "MX29F001T",
4459 .bustype = CHIP_BUSTYPE_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004460 .manufacture_id = MACRONIX_ID,
4461 .model_id = MACRONIX_MX29F001T,
Mark Panajotovic502a9132009-08-24 01:42:24 +00004462 .total_size = 128,
4463 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004464 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stefan Tauner74c6ec62011-05-18 01:31:46 +00004465 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00004466 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00004467 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004468 .block_erasers =
4469 {
4470 {
4471 .eraseblocks = {
4472 {64 * 1024, 1},
4473 {32 * 1024, 1},
4474 {8 * 1024, 2},
4475 {4 * 1024, 2},
4476 {8 * 1024, 1},
4477 },
Sean Nelson35727f72010-01-28 23:55:12 +00004478 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00004479 }, {
4480 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004481 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00004482 }
4483 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004484 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00004485 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004486 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00004487 },
4488
4489 {
4490 .vendor = "Macronix",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004491 .name = "MX29F002B",
Urja Rannikko038a3122009-06-28 19:19:25 +00004492 .bustype = CHIP_BUSTYPE_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004493 .manufacture_id = MACRONIX_ID,
4494 .model_id = MACRONIX_MX29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004495 .total_size = 256,
4496 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004497 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004498 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00004499 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00004500 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004501 .block_erasers =
4502 {
4503 {
4504 .eraseblocks = {
4505 {16 * 1024, 1},
4506 {8 * 1024, 2},
4507 {32 * 1024, 1},
4508 {64 * 1024, 3},
4509 },
Sean Nelson35727f72010-01-28 23:55:12 +00004510 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004511 }, {
4512 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004513 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004514 },
4515 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004516 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004517 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004518 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004519 },
4520
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004521 {
4522 .vendor = "Macronix",
4523 .name = "MX29F002T",
Urja Rannikko038a3122009-06-28 19:19:25 +00004524 .bustype = CHIP_BUSTYPE_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004525 .manufacture_id = MACRONIX_ID,
4526 .model_id = MACRONIX_MX29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004527 .total_size = 256,
4528 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004529 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004530 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +00004531 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00004532 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004533 .block_erasers =
4534 {
4535 {
4536 .eraseblocks = {
4537 {64 * 1024, 3},
4538 {32 * 1024, 1},
4539 {8 * 1024, 2},
4540 {16 * 1024, 1},
4541 },
Sean Nelson35727f72010-01-28 23:55:12 +00004542 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004543 }, {
4544 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004545 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004546 },
4547 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004548 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004549 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004550 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004551 },
4552
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004553 {
4554 .vendor = "Macronix",
Joshua Roysf1324e02010-09-16 00:51:51 +00004555 .name = "MX29F040",
4556 .bustype = CHIP_BUSTYPE_PARALLEL,
4557 .manufacture_id = MACRONIX_ID,
4558 .model_id = MACRONIX_MX29F040,
4559 .total_size = 512,
4560 .page_size = 64 * 1024,
4561 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
4562 .tested = TEST_UNTESTED,
4563 .probe = probe_jedec,
4564 .probe_timing = TIMING_ZERO,
4565 .block_erasers =
4566 {
4567 {
4568 .eraseblocks = { {64 * 1024, 8} },
4569 .block_erase = erase_sector_jedec,
4570 }, {
4571 .eraseblocks = { {512 * 1024, 1} },
4572 .block_erase = erase_chip_block_jedec,
4573 },
4574 },
4575 .write = write_jedec_1,
4576 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004577 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00004578 },
4579
4580 {
4581 .vendor = "Macronix",
Carl-Daniel Hailfinger350a0c32009-07-24 13:59:27 +00004582 .name = "MX29LV040",
Urja Rannikko038a3122009-06-28 19:19:25 +00004583 .bustype = CHIP_BUSTYPE_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004584 .manufacture_id = MACRONIX_ID,
4585 .model_id = MACRONIX_MX29LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004586 .total_size = 512,
4587 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004588 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
4589 .tested = TEST_UNTESTED,
4590 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00004591 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004592 .block_erasers =
4593 {
4594 {
4595 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson35727f72010-01-28 23:55:12 +00004596 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00004597 }, {
4598 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004599 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00004600 },
4601 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004602 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004603 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004604 .voltage = {2700, 3600},
Carl-Daniel Hailfinger7de86392008-12-10 10:32:05 +00004605 },
4606
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004607 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00004608 .vendor = "MoselVitelic",
4609 .name = "V29C51000B",
4610 .bustype = CHIP_BUSTYPE_PARALLEL,
4611 .manufacture_id = SYNCMOS_MVC_ID,
4612 .model_id = MVC_V29C51000B,
4613 .total_size = 64,
4614 .page_size = 512,
4615 .feature_bits = FEATURE_EITHER_RESET,
4616 .tested = TEST_UNTESTED,
4617 .probe = probe_jedec,
4618 .probe_timing = TIMING_ZERO,
4619 .block_erasers =
4620 {
4621 {
4622 .eraseblocks = { {512, 128} },
4623 .block_erase = erase_sector_jedec,
4624 }, {
4625 .eraseblocks = { {64 * 1024, 1} },
4626 .block_erase = erase_chip_block_jedec,
4627 },
4628 },
4629 .write = write_jedec_1,
4630 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004631 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00004632 },
4633
4634 {
4635 .vendor = "MoselVitelic",
4636 .name = "V29C51000T",
4637 .bustype = CHIP_BUSTYPE_PARALLEL,
4638 .manufacture_id = SYNCMOS_MVC_ID,
4639 .model_id = MVC_V29C51000T,
4640 .total_size = 64,
4641 .page_size = 512,
4642 .feature_bits = FEATURE_EITHER_RESET,
4643 .tested = TEST_UNTESTED,
4644 .probe = probe_jedec,
4645 .probe_timing = TIMING_ZERO,
4646 .block_erasers =
4647 {
4648 {
4649 .eraseblocks = { {512, 128} },
4650 .block_erase = erase_sector_jedec,
4651 }, {
4652 .eraseblocks = { {64 * 1024, 1} },
4653 .block_erase = erase_chip_block_jedec,
4654 },
4655 },
4656 .write = write_jedec_1,
4657 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004658 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00004659 },
4660
4661 {
4662 .vendor = "MoselVitelic",
4663 .name = "V29C51400B",
4664 .bustype = CHIP_BUSTYPE_PARALLEL,
4665 .manufacture_id = SYNCMOS_MVC_ID,
4666 .model_id = MVC_V29C51400B,
4667 .total_size = 512,
4668 .page_size = 1024,
4669 .feature_bits = FEATURE_EITHER_RESET,
4670 .tested = TEST_UNTESTED,
4671 .probe = probe_jedec,
4672 .probe_timing = TIMING_ZERO,
4673 .block_erasers =
4674 {
4675 {
4676 .eraseblocks = { {1024, 512} },
4677 .block_erase = erase_sector_jedec,
4678 }, {
4679 .eraseblocks = { {512 * 1024, 1} },
4680 .block_erase = erase_chip_block_jedec,
4681 },
4682 },
4683 .write = write_jedec_1,
4684 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004685 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00004686 },
4687
4688 {
4689 .vendor = "MoselVitelic",
4690 .name = "V29C51400T",
4691 .bustype = CHIP_BUSTYPE_PARALLEL,
4692 .manufacture_id = SYNCMOS_MVC_ID,
4693 .model_id = MVC_V29C51400T,
4694 .total_size = 512,
4695 .page_size = 1024,
4696 .feature_bits = FEATURE_EITHER_RESET,
4697 .tested = TEST_UNTESTED,
4698 .probe = probe_jedec,
4699 .probe_timing = TIMING_ZERO,
4700 .block_erasers =
4701 {
4702 {
4703 .eraseblocks = { {1024, 512} },
4704 .block_erase = erase_sector_jedec,
4705 }, {
4706 .eraseblocks = { {512 * 1024, 1} },
4707 .block_erase = erase_chip_block_jedec,
4708 },
4709 },
4710 .write = write_jedec_1,
4711 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004712 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00004713 },
4714
4715 {
4716 .vendor = "MoselVitelic",
4717 .name = "V29LC51000",
4718 .bustype = CHIP_BUSTYPE_PARALLEL,
4719 .manufacture_id = SYNCMOS_MVC_ID,
4720 .model_id = MVC_V29LC51000,
4721 .total_size = 64,
4722 .page_size = 512,
4723 .feature_bits = FEATURE_EITHER_RESET,
4724 .tested = TEST_UNTESTED,
4725 .probe = probe_jedec,
4726 .probe_timing = TIMING_ZERO,
4727 .block_erasers =
4728 {
4729 {
4730 .eraseblocks = { {512, 128} },
4731 .block_erase = erase_sector_jedec,
4732 }, {
4733 .eraseblocks = { {64 * 1024, 1} },
4734 .block_erase = erase_chip_block_jedec,
4735 },
4736 },
4737 .write = write_jedec_1,
4738 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004739 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00004740 },
4741
4742 {
4743 .vendor = "MoselVitelic",
4744 .name = "V29LC51001",
4745 .bustype = CHIP_BUSTYPE_PARALLEL,
4746 .manufacture_id = SYNCMOS_MVC_ID,
4747 .model_id = MVC_V29LC51001,
4748 .total_size = 128,
4749 .page_size = 512,
4750 .feature_bits = FEATURE_EITHER_RESET,
4751 .tested = TEST_UNTESTED,
4752 .probe = probe_jedec,
4753 .probe_timing = TIMING_ZERO,
4754 .block_erasers =
4755 {
4756 {
4757 .eraseblocks = { {512, 256} },
4758 .block_erase = erase_sector_jedec,
4759 }, {
4760 .eraseblocks = { {128 * 1024, 1} },
4761 .block_erase = erase_chip_block_jedec,
4762 },
4763 },
4764 .write = write_jedec_1,
4765 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004766 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00004767 },
4768
4769 {
4770 .vendor = "MoselVitelic",
4771 .name = "V29LC51002",
4772 .bustype = CHIP_BUSTYPE_PARALLEL,
4773 .manufacture_id = SYNCMOS_MVC_ID,
4774 .model_id = MVC_V29LC51002,
4775 .total_size = 256,
4776 .page_size = 512,
4777 .feature_bits = FEATURE_EITHER_RESET,
4778 .tested = TEST_UNTESTED,
4779 .probe = probe_jedec,
4780 .probe_timing = TIMING_ZERO,
4781 .block_erasers =
4782 {
4783 {
4784 .eraseblocks = { {512, 512} },
4785 .block_erase = erase_sector_jedec,
4786 }, {
4787 .eraseblocks = { {256 * 1024, 1} },
4788 .block_erase = erase_chip_block_jedec,
4789 },
4790 },
4791 .write = write_jedec_1,
4792 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004793 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00004794 },
4795
4796 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004797 .vendor = "Numonyx",
4798 .name = "M25PE10",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004799 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004800 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00004801 .model_id = ST_M25PE10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004802 .total_size = 128,
4803 .page_size = 256,
4804 .tested = TEST_UNTESTED,
4805 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004806 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00004807 .block_erasers =
4808 {
4809 {
4810 .eraseblocks = { {4 * 1024, 32} },
4811 .block_erase = spi_block_erase_20,
4812 }, {
4813 .eraseblocks = { {64 * 1024, 2} },
4814 .block_erase = spi_block_erase_d8,
4815 }, {
4816 .eraseblocks = { {128 * 1024, 1} },
4817 .block_erase = spi_block_erase_c7,
4818 }
4819 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004820 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004821 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004822 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004823 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004824 },
4825
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004826 {
4827 .vendor = "Numonyx",
4828 .name = "M25PE20",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004829 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004830 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00004831 .model_id = ST_M25PE20,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004832 .total_size = 256,
4833 .page_size = 256,
4834 .tested = TEST_UNTESTED,
4835 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004836 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00004837 .block_erasers =
4838 {
4839 {
4840 .eraseblocks = { {4 * 1024, 64} },
4841 .block_erase = spi_block_erase_20,
4842 }, {
4843 .eraseblocks = { {64 * 1024, 4} },
4844 .block_erase = spi_block_erase_d8,
4845 }, {
4846 .eraseblocks = { {256 * 1024, 1} },
4847 .block_erase = spi_block_erase_c7,
4848 }
4849 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004850 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004851 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004852 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004853 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004854 },
4855
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004856 {
4857 .vendor = "Numonyx",
4858 .name = "M25PE40",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004859 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004860 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00004861 .model_id = ST_M25PE40,
Sean Nelson5643c072010-01-19 03:23:07 +00004862 .total_size = 512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004863 .page_size = 256,
4864 .tested = TEST_UNTESTED,
4865 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004866 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00004867 .block_erasers =
4868 {
4869 {
4870 .eraseblocks = { {4 * 1024, 128} },
4871 .block_erase = spi_block_erase_20,
4872 }, {
4873 .eraseblocks = { {64 * 1024, 8} },
4874 .block_erase = spi_block_erase_d8,
4875 }, {
4876 .eraseblocks = { {512 * 1024, 1} },
4877 .block_erase = spi_block_erase_c7,
4878 }
4879 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004880 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004881 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004882 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004883 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004884 },
4885
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004886 {
4887 .vendor = "Numonyx",
4888 .name = "M25PE80",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004889 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004890 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00004891 .model_id = ST_M25PE80,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004892 .total_size = 1024,
4893 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004894 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004895 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004896 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00004897 .block_erasers =
4898 {
4899 {
4900 .eraseblocks = { {4 * 1024, 256} },
4901 .block_erase = spi_block_erase_20,
4902 }, {
4903 .eraseblocks = { {64 * 1024, 16} },
4904 .block_erase = spi_block_erase_d8,
4905 }, {
4906 .eraseblocks = { {1024 * 1024, 1} },
4907 .block_erase = spi_block_erase_c7,
4908 }
4909 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004910 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004911 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004912 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004913 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004914 },
4915
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004916 {
4917 .vendor = "Numonyx",
4918 .name = "M25PE16",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004919 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004920 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00004921 .model_id = ST_M25PE16,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004922 .total_size = 2048,
4923 .page_size = 256,
4924 .tested = TEST_UNTESTED,
4925 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004926 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00004927 .block_erasers =
4928 {
4929 {
4930 .eraseblocks = { {4 * 1024, 512} },
4931 .block_erase = spi_block_erase_20,
4932 }, {
4933 .eraseblocks = { {64 * 1024, 32} },
4934 .block_erase = spi_block_erase_d8,
4935 }, {
4936 .eraseblocks = { {2 * 1024 * 1024, 1} },
4937 .block_erase = spi_block_erase_c7,
4938 }
4939 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004940 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004941 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004942 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004943 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004944 },
4945
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004946 {
4947 .vendor = "PMC",
4948 .name = "Pm25LV010",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004949 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004950 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004951 .model_id = PMC_PM25LV010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004952 .total_size = 128,
4953 .page_size = 256,
4954 .tested = TEST_UNTESTED,
4955 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004956 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00004957 .block_erasers =
4958 {
4959 {
4960 .eraseblocks = { {4 * 1024, 32} },
4961 .block_erase = spi_block_erase_d7,
4962 }, {
4963 .eraseblocks = { {32 * 1024, 4} },
4964 .block_erase = spi_block_erase_d8,
4965 }, {
4966 .eraseblocks = { {128 * 1024, 1} },
4967 .block_erase = spi_block_erase_c7,
4968 }
4969 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004970 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004971 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004972 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004973 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004974 },
4975
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004976 {
4977 .vendor = "PMC",
4978 .name = "Pm25LV016B",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004979 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004980 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004981 .model_id = PMC_PM25LV016B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004982 .total_size = 2048,
4983 .page_size = 256,
4984 .tested = TEST_UNTESTED,
4985 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004986 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00004987 .block_erasers =
4988 {
4989 {
4990 .eraseblocks = { {4 * 1024, 512} },
4991 .block_erase = spi_block_erase_d7,
4992 }, {
4993 .eraseblocks = { {4 * 1024, 512} },
4994 .block_erase = spi_block_erase_20,
4995 }, {
4996 .eraseblocks = { {64 * 1024, 32} },
4997 .block_erase = spi_block_erase_d8,
4998 }, {
4999 .eraseblocks = { {2 * 1024 * 1024, 1} },
5000 .block_erase = spi_block_erase_60,
5001 }, {
5002 .eraseblocks = { {2 * 1024 * 1024, 1} },
5003 .block_erase = spi_block_erase_c7,
5004 }
5005 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005006 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005007 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005008 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005009 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005010 },
5011
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005012 {
5013 .vendor = "PMC",
5014 .name = "Pm25LV020",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00005015 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005016 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005017 .model_id = PMC_PM25LV020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005018 .total_size = 256,
5019 .page_size = 256,
5020 .tested = TEST_UNTESTED,
5021 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005022 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005023 .block_erasers =
5024 {
5025 {
5026 .eraseblocks = { {4 * 1024, 64} },
5027 .block_erase = spi_block_erase_d7,
5028 }, {
5029 .eraseblocks = { {64 * 1024, 4} },
5030 .block_erase = spi_block_erase_d8,
5031 }, {
5032 .eraseblocks = { {256 * 1024, 1} },
5033 .block_erase = spi_block_erase_c7,
5034 }
5035 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005036 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005037 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005038 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005039 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005040 },
5041
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005042 {
5043 .vendor = "PMC",
5044 .name = "Pm25LV040",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00005045 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005046 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005047 .model_id = PMC_PM25LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005048 .total_size = 512,
5049 .page_size = 256,
5050 .tested = TEST_UNTESTED,
5051 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005052 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005053 .block_erasers =
5054 {
5055 {
5056 .eraseblocks = { {4 * 1024, 128} },
5057 .block_erase = spi_block_erase_d7,
5058 }, {
5059 .eraseblocks = { {64 * 1024, 8} },
5060 .block_erase = spi_block_erase_d8,
5061 }, {
5062 .eraseblocks = { {512 * 1024, 1} },
5063 .block_erase = spi_block_erase_c7,
5064 }
5065 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005066 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005067 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005068 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005069 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005070 },
5071
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005072 {
5073 .vendor = "PMC",
5074 .name = "Pm25LV080B",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00005075 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005076 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005077 .model_id = PMC_PM25LV080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005078 .total_size = 1024,
5079 .page_size = 256,
5080 .tested = TEST_UNTESTED,
5081 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005082 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005083 .block_erasers =
5084 {
5085 {
5086 .eraseblocks = { {4 * 1024, 256} },
5087 .block_erase = spi_block_erase_d7,
5088 }, {
5089 .eraseblocks = { {4 * 1024, 256} },
5090 .block_erase = spi_block_erase_20,
5091 }, {
5092 .eraseblocks = { {64 * 1024, 16} },
5093 .block_erase = spi_block_erase_d8,
5094 }, {
5095 .eraseblocks = { {1024 * 1024, 1} },
5096 .block_erase = spi_block_erase_60,
5097 }, {
5098 .eraseblocks = { {1024 * 1024, 1} },
5099 .block_erase = spi_block_erase_c7,
5100 }
5101 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005102 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005103 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005104 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005105 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005106 },
5107
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005108 {
5109 .vendor = "PMC",
5110 .name = "Pm25LV512",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00005111 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005112 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005113 .model_id = PMC_PM25LV512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005114 .total_size = 64,
5115 .page_size = 256,
5116 .tested = TEST_UNTESTED,
5117 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005118 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005119 .block_erasers =
5120 {
5121 {
5122 .eraseblocks = { {4 * 1024, 16} },
5123 .block_erase = spi_block_erase_d7,
5124 }, {
5125 .eraseblocks = { {32 * 1024, 2} },
5126 .block_erase = spi_block_erase_d8,
5127 }, {
5128 .eraseblocks = { {64 * 1024, 1} },
5129 .block_erase = spi_block_erase_c7,
5130 }
5131 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005132 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005133 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005134 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005135 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005136 },
5137
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005138 {
5139 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00005140 .name = "Pm29F002T",
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005141 .bustype = CHIP_BUSTYPE_PARALLEL,
5142 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005143 .model_id = PMC_PM29F002T,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005144 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00005145 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005146 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005147 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +00005148 .probe = probe_jedec,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005149 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00005150 .block_erasers =
5151 {
5152 {
5153 .eraseblocks = {
5154 {128 * 1024, 1},
5155 {96 * 1024, 1},
5156 {8 * 1024, 2},
5157 {16 * 1024, 1},
5158 },
Sean Nelson35727f72010-01-28 23:55:12 +00005159 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00005160 }, {
5161 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005162 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00005163 },
5164 },
Sean Nelson35727f72010-01-28 23:55:12 +00005165 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005166 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005167 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005168 },
5169
5170 {
5171 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00005172 .name = "Pm29F002B",
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005173 .bustype = CHIP_BUSTYPE_PARALLEL,
5174 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005175 .model_id = PMC_PM29F002B,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005176 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00005177 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005178 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005179 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00005180 .probe = probe_jedec,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005181 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00005182 .block_erasers =
5183 {
5184 {
5185 .eraseblocks = {
5186 {16 * 1024, 1},
5187 {8 * 1024, 2},
5188 {96 * 1024, 1},
5189 {128 * 1024, 1},
5190 },
Sean Nelson35727f72010-01-28 23:55:12 +00005191 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00005192 }, {
5193 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005194 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00005195 },
5196 },
Sean Nelson35727f72010-01-28 23:55:12 +00005197 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005198 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005199 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005200 },
5201
5202 {
5203 .vendor = "PMC",
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00005204 .name = "Pm39LV010",
Urja Rannikko038a3122009-06-28 19:19:25 +00005205 .bustype = CHIP_BUSTYPE_PARALLEL,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00005206 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005207 .model_id = PMC_PM39F010, /* Pm39LV010 and Pm39F010 have identical IDs but different voltage */
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00005208 .total_size = 128,
5209 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00005210 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005211 .tested = TEST_OK_PRE,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00005212 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005213 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson5643c072010-01-19 03:23:07 +00005214 .block_erasers =
5215 {
5216 {
5217 .eraseblocks = { {4 * 1024, 32} },
5218 .block_erase = erase_sector_jedec,
5219 }, {
5220 .eraseblocks = { {64 * 1024, 2} },
5221 .block_erase = erase_block_jedec,
5222 }, {
5223 .eraseblocks = { {128 * 1024, 1} },
5224 .block_erase = erase_chip_block_jedec,
5225 }
5226 },
Sean Nelson35727f72010-01-28 23:55:12 +00005227 .write = write_jedec_1,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00005228 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005229 .voltage = {2700, 3600},
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00005230 },
5231
5232 {
5233 .vendor = "PMC",
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005234 .name = "Pm39LV020",
5235 .bustype = CHIP_BUSTYPE_PARALLEL,
5236 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005237 .model_id = PMC_PM39LV020,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005238 .total_size = 256,
5239 .page_size = 4096,
5240 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
5241 .tested = TEST_UNTESTED,
5242 .probe = probe_jedec,
5243 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5244 .block_erasers =
5245 {
5246 {
5247 .eraseblocks = { {4 * 1024, 64} },
5248 .block_erase = erase_sector_jedec,
5249 }, {
5250 .eraseblocks = { {64 * 1024, 4} },
5251 .block_erase = erase_block_jedec,
5252 }, {
5253 .eraseblocks = { {256 * 1024, 1} },
5254 .block_erase = erase_chip_block_jedec,
5255 }
5256 },
5257 .write = write_jedec_1,
5258 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005259 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005260 },
5261
5262 {
5263 .vendor = "PMC",
5264 .name = "Pm39LV040",
5265 .bustype = CHIP_BUSTYPE_PARALLEL,
5266 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005267 .model_id = PMC_PM39LV040,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005268 .total_size = 512,
5269 .page_size = 4096,
5270 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
5271 .tested = TEST_UNTESTED,
5272 .probe = probe_jedec,
5273 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5274 .block_erasers =
5275 {
5276 {
5277 .eraseblocks = { {4 * 1024, 128} },
5278 .block_erase = erase_sector_jedec,
5279 }, {
5280 .eraseblocks = { {64 * 1024, 8} },
5281 .block_erase = erase_block_jedec,
5282 }, {
5283 .eraseblocks = { {512 * 1024, 1} },
5284 .block_erase = erase_chip_block_jedec,
5285 }
5286 },
5287 .write = write_jedec_1,
5288 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005289 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005290 },
5291
5292 {
5293 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005294 .name = "Pm49FL002",
Uwe Hermann431f4f72010-09-05 12:41:25 +00005295 .bustype = CHIP_BUSTYPE_LPC | CHIP_BUSTYPE_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005296 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005297 .model_id = PMC_PM49FL002,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005298 .total_size = 256,
5299 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005300 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunerd06d9412011-06-12 19:47:55 +00005301 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00005302 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005303 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00005304 .block_erasers =
5305 {
5306 {
5307 .eraseblocks = { {4 * 1024, 64} },
5308 .block_erase = erase_sector_jedec,
5309 }, {
5310 .eraseblocks = { {16 * 1024, 16} },
5311 .block_erase = erase_block_jedec,
5312 }, {
5313 .eraseblocks = { {256 * 1024, 1} },
5314 .block_erase = erase_chip_block_jedec,
5315 }
5316 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00005317 .unlock = unlock_49fl00x,
Sean Nelson36172342010-02-27 18:01:15 +00005318 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005319 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005320 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005321 },
5322
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005323 {
5324 .vendor = "PMC",
5325 .name = "Pm49FL004",
Uwe Hermann431f4f72010-09-05 12:41:25 +00005326 .bustype = CHIP_BUSTYPE_LPC | CHIP_BUSTYPE_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005327 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005328 .model_id = PMC_PM49FL004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005329 .total_size = 512,
5330 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005331 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00005332 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00005333 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005334 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00005335 .block_erasers =
5336 {
5337 {
5338 .eraseblocks = { {4 * 1024, 128} },
5339 .block_erase = erase_sector_jedec,
5340 }, {
5341 .eraseblocks = { {64 * 1024, 8} },
5342 .block_erase = erase_block_jedec,
5343 }, {
5344 .eraseblocks = { {512 * 1024, 1} },
5345 .block_erase = erase_chip_block_jedec,
5346 }
5347 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00005348 .unlock = unlock_49fl00x,
Sean Nelson36172342010-02-27 18:01:15 +00005349 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005350 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005351 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005352 },
5353
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005354 {
Sean Nelsond70b09c2009-11-24 02:11:08 +00005355 .vendor = "Sanyo",
5356 .name = "LF25FW203A",
5357 .bustype = CHIP_BUSTYPE_SPI,
5358 .manufacture_id = SANYO_ID,
5359 .model_id = SANYO_LE25FW203A,
5360 .total_size = 2048,
5361 .page_size = 256,
5362 .tested = TEST_UNTESTED,
5363 .probe = probe_spi_rdid,
5364 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005365 .block_erasers =
5366 {
5367 {
5368 .eraseblocks = { {64 * 1024, 32} },
5369 .block_erase = spi_block_erase_d8,
5370 }, {
5371 .eraseblocks = { {2 * 1024 * 1024, 1} },
5372 .block_erase = spi_block_erase_c7,
5373 }
5374 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005375 .unlock = spi_disable_blockprotect,
Sean Nelsond70b09c2009-11-24 02:11:08 +00005376 .write = spi_chip_write_256,
5377 .read = spi_chip_read,
5378 },
5379
5380 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005381 .vendor = "Sharp",
5382 .name = "LHF00L04",
Urja Rannikko038a3122009-06-28 19:19:25 +00005383 .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005384 .manufacture_id = SHARP_ID,
5385 .model_id = SHARP_LHF00L04,
5386 .total_size = 1024,
5387 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005388 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005389 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005390 .probe = probe_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00005391 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00005392 .block_erasers =
5393 {
5394 {
5395 .eraseblocks = {
5396 {64 * 1024, 15},
5397 {8 * 1024, 8}
5398 },
Sean Nelson28accc22010-03-19 18:47:06 +00005399 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00005400 }, {
5401 .eraseblocks = {
5402 {1024 * 1024, 1}
5403 },
Sean Nelson51c83fb2010-01-20 20:55:53 +00005404 .block_erase = NULL, /* 30 D0, only in A/A mux mode */
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00005405 },
5406 },
Sean Nelson28accc22010-03-19 18:47:06 +00005407 .unlock = unlock_82802ab,
5408 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005409 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005410 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005411 },
5412
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005413 {
5414 .vendor = "Spansion",
Rudy Hostf4e57772010-11-29 00:37:49 +00005415 .name = "S25FL004A",
5416 .bustype = CHIP_BUSTYPE_SPI,
5417 .manufacture_id = SPANSION_ID,
5418 .model_id = SPANSION_S25FL004A,
5419 .total_size = 512,
5420 .page_size = 256,
5421 .tested = TEST_UNTESTED,
5422 .probe = probe_spi_rdid,
5423 .probe_timing = TIMING_ZERO,
5424 .block_erasers =
5425 {
5426 {
5427 .eraseblocks = { {64 * 1024, 8} },
5428 .block_erase = spi_block_erase_d8,
5429 }, {
5430 .eraseblocks = { {512 * 1024, 1} },
5431 .block_erase = spi_block_erase_c7,
5432 }
5433 },
5434 .unlock = spi_disable_blockprotect,
5435 .write = spi_chip_write_256,
5436 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005437 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00005438 },
5439
5440 {
5441 .vendor = "Spansion",
Michael Karcher23ff4602010-01-12 23:29:30 +00005442 .name = "S25FL008A",
5443 .bustype = CHIP_BUSTYPE_SPI,
5444 .manufacture_id = SPANSION_ID,
5445 .model_id = SPANSION_S25FL008A,
5446 .total_size = 1024,
5447 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005448 .tested = TEST_OK_PRE,
Michael Karcher23ff4602010-01-12 23:29:30 +00005449 .probe = probe_spi_rdid,
5450 .probe_timing = TIMING_ZERO,
Michael Karcher23ff4602010-01-12 23:29:30 +00005451 .block_erasers =
5452 {
5453 {
5454 .eraseblocks = { {64 * 1024, 16} },
5455 .block_erase = spi_block_erase_d8,
5456 }, {
5457 .eraseblocks = { {1024 * 1024, 1} },
5458 .block_erase = spi_block_erase_c7,
5459 }
5460 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005461 .unlock = spi_disable_blockprotect,
Michael Karcher23ff4602010-01-12 23:29:30 +00005462 .write = spi_chip_write_256,
5463 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005464 .voltage = {2700, 3600},
Michael Karcher23ff4602010-01-12 23:29:30 +00005465 },
5466
5467 {
5468 .vendor = "Spansion",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005469 .name = "S25FL016A",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00005470 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005471 .manufacture_id = SPANSION_ID,
5472 .model_id = SPANSION_S25FL016A,
5473 .total_size = 2048,
5474 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005475 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005476 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005477 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005478 .block_erasers =
5479 {
5480 {
5481 .eraseblocks = { {64 * 1024, 32} },
5482 .block_erase = spi_block_erase_d8,
5483 }, {
5484 .eraseblocks = { {2 * 1024 * 1024, 1} },
5485 .block_erase = spi_block_erase_c7,
5486 }
5487 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005488 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005489 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005490 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005491 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005492 },
5493
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005494 {
Rudy Hostf4e57772010-11-29 00:37:49 +00005495 .vendor = "Spansion",
5496 .name = "S25FL032A",
5497 .bustype = CHIP_BUSTYPE_SPI,
5498 .manufacture_id = SPANSION_ID,
5499 .model_id = SPANSION_S25FL032A,
5500 .total_size = 4096,
5501 .page_size = 256,
5502 .tested = TEST_UNTESTED,
5503 .probe = probe_spi_rdid,
5504 .probe_timing = TIMING_ZERO,
5505 .block_erasers =
5506 {
5507 {
5508 .eraseblocks = { {64 * 1024, 64} },
5509 .block_erase = spi_block_erase_d8,
5510 }, {
5511 .eraseblocks = { {4 * 1024 * 1024, 1} },
5512 .block_erase = spi_block_erase_c7,
5513 }
5514 },
5515 .unlock = spi_disable_blockprotect,
5516 .write = spi_chip_write_256,
5517 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005518 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00005519 },
5520
5521 {
5522 .vendor = "Spansion",
5523 .name = "S25FL064A",
5524 .bustype = CHIP_BUSTYPE_SPI,
5525 .manufacture_id = SPANSION_ID,
5526 .model_id = SPANSION_S25FL064A,
5527 .total_size = 8192,
5528 .page_size = 256,
5529 .tested = TEST_OK_PREW,
5530 .probe = probe_spi_rdid,
5531 .probe_timing = TIMING_ZERO,
5532 .block_erasers =
5533 {
5534 {
5535 .eraseblocks = { {64 * 1024, 128} },
5536 .block_erase = spi_block_erase_d8,
5537 }, {
5538 .eraseblocks = { {8 * 1024 * 1024, 1} },
5539 .block_erase = spi_block_erase_c7,
5540 }
5541 },
5542 .unlock = spi_disable_blockprotect,
5543 .write = spi_chip_write_256,
5544 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005545 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00005546 },
5547
5548 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005549 .vendor = "SST",
Mark Marshall90021f22010-12-03 14:48:11 +00005550 .name = "SST25VF010.REMS",
5551 .bustype = CHIP_BUSTYPE_SPI,
5552 .manufacture_id = SST_ID,
5553 .model_id = SST_SST25VF010_REMS,
5554 .total_size = 128,
5555 .page_size = 256,
5556 .tested = TEST_OK_PREW,
5557 .probe = probe_spi_rems,
5558 .probe_timing = TIMING_ZERO,
5559 .block_erasers =
5560 {
5561 {
5562 .eraseblocks = { {4 * 1024, 32} },
5563 .block_erase = spi_block_erase_20,
5564 }, {
5565 .eraseblocks = { {32 * 1024, 4} },
5566 .block_erase = spi_block_erase_52,
5567 }, {
5568 .eraseblocks = { {128 * 1024, 1} },
5569 .block_erase = spi_block_erase_60,
5570 },
5571 },
5572 .unlock = spi_disable_blockprotect,
5573 .write = spi_chip_write_1,
5574 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005575 .voltage = {2700, 3600},
Mark Marshall90021f22010-12-03 14:48:11 +00005576 },
5577
5578 {
5579 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005580 .name = "SST25VF016B",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00005581 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005582 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005583 .model_id = SST_SST25VF016B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005584 .total_size = 2048,
5585 .page_size = 256,
Mark Marshall90021f22010-12-03 14:48:11 +00005586 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005587 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005588 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00005589 .block_erasers =
5590 {
5591 {
5592 .eraseblocks = { {4 * 1024, 512} },
5593 .block_erase = spi_block_erase_20,
5594 }, {
5595 .eraseblocks = { {32 * 1024, 64} },
5596 .block_erase = spi_block_erase_52,
5597 }, {
5598 .eraseblocks = { {64 * 1024, 32} },
5599 .block_erase = spi_block_erase_d8,
5600 }, {
5601 .eraseblocks = { {2 * 1024 * 1024, 1} },
5602 .block_erase = spi_block_erase_60,
5603 }, {
5604 .eraseblocks = { {2 * 1024 * 1024, 1} },
5605 .block_erase = spi_block_erase_c7,
5606 },
5607 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005608 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger93bb3752009-05-13 22:19:12 +00005609 .write = spi_chip_write_1,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005610 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005611 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005612 },
5613
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005614 {
5615 .vendor = "SST",
5616 .name = "SST25VF032B",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00005617 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005618 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005619 .model_id = SST_SST25VF032B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005620 .total_size = 4096,
5621 .page_size = 256,
Stefan Taunerfcf6a8c2011-05-18 01:32:00 +00005622 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005623 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005624 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00005625 .block_erasers =
5626 {
5627 {
5628 .eraseblocks = { {4 * 1024, 1024} },
5629 .block_erase = spi_block_erase_20,
5630 }, {
5631 .eraseblocks = { {32 * 1024, 128} },
5632 .block_erase = spi_block_erase_52,
5633 }, {
5634 .eraseblocks = { {64 * 1024, 64} },
5635 .block_erase = spi_block_erase_d8,
5636 }, {
5637 .eraseblocks = { {4 * 1024 * 1024, 1} },
5638 .block_erase = spi_block_erase_60,
5639 }, {
5640 .eraseblocks = { {4 * 1024 * 1024, 1} },
5641 .block_erase = spi_block_erase_c7,
5642 },
5643 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005644 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +00005645 .write = spi_aai_write,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00005646 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005647 .voltage = {2700, 3600},
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00005648 },
5649
5650 {
5651 .vendor = "SST",
Ed Swierk86f4e6d2010-07-21 15:02:22 +00005652 .name = "SST25VF064C",
5653 .bustype = CHIP_BUSTYPE_SPI,
5654 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005655 .model_id = SST_SST25VF064C,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00005656 .total_size = 8192,
5657 .page_size = 256,
Stefan Tauner8179be52011-06-04 13:13:34 +00005658 .tested = TEST_OK_PREW,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00005659 .probe = probe_spi_rdid,
5660 .probe_timing = TIMING_ZERO,
5661 .block_erasers =
5662 {
5663 {
5664 .eraseblocks = { {4 * 1024, 2048} },
5665 .block_erase = spi_block_erase_20,
5666 }, {
5667 .eraseblocks = { {32 * 1024, 256} },
5668 .block_erase = spi_block_erase_52,
5669 }, {
5670 .eraseblocks = { {64 * 1024, 128} },
5671 .block_erase = spi_block_erase_d8,
5672 }, {
5673 .eraseblocks = { {8 * 1024 * 1024, 1} },
5674 .block_erase = spi_block_erase_60,
5675 }, {
5676 .eraseblocks = { {8 * 1024 * 1024, 1} },
5677 .block_erase = spi_block_erase_c7,
5678 },
5679 },
5680 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +00005681 .write = spi_chip_write_256,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00005682 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005683 .voltage = {2700, 3600},
Ed Swierk86f4e6d2010-07-21 15:02:22 +00005684 },
5685
5686 {
5687 .vendor = "SST",
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00005688 .name = "SST25VF040.REMS",
5689 .bustype = CHIP_BUSTYPE_SPI,
5690 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005691 .model_id = SST_SST25VF040_REMS,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00005692 .total_size = 512,
5693 .page_size = 256,
5694 .tested = TEST_OK_PR,
5695 .probe = probe_spi_rems,
5696 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00005697 .block_erasers =
5698 {
5699 {
5700 .eraseblocks = { {4 * 1024, 128} },
5701 .block_erase = spi_block_erase_20,
5702 }, {
5703 .eraseblocks = { {32 * 1024, 16} },
5704 .block_erase = spi_block_erase_52,
5705 }, {
5706 .eraseblocks = { {512 * 1024, 1} },
5707 .block_erase = spi_block_erase_60,
5708 },
5709 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005710 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger93bb3752009-05-13 22:19:12 +00005711 .write = spi_chip_write_1,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005712 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005713 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005714 },
5715
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005716 {
5717 .vendor = "SST",
5718 .name = "SST25VF040B",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00005719 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005720 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005721 .model_id = SST_SST25VF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005722 .total_size = 512,
5723 .page_size = 256,
5724 .tested = TEST_UNTESTED,
5725 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005726 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00005727 .block_erasers =
5728 {
5729 {
5730 .eraseblocks = { {4 * 1024, 128} },
5731 .block_erase = spi_block_erase_20,
5732 }, {
5733 .eraseblocks = { {32 * 1024, 16} },
5734 .block_erase = spi_block_erase_52,
5735 }, {
5736 .eraseblocks = { {64 * 1024, 8} },
5737 .block_erase = spi_block_erase_d8,
5738 }, {
5739 .eraseblocks = { {512 * 1024, 1} },
5740 .block_erase = spi_block_erase_60,
5741 }, {
5742 .eraseblocks = { {512 * 1024, 1} },
5743 .block_erase = spi_block_erase_c7,
5744 },
5745 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005746 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger93bb3752009-05-13 22:19:12 +00005747 .write = spi_chip_write_1,
Zheng Bao0677dff2009-02-25 08:07:33 +00005748 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005749 .voltage = {2700, 3600},
Zheng Bao0677dff2009-02-25 08:07:33 +00005750 },
5751
5752 {
5753 .vendor = "SST",
Stefan Reinauer5cacf8c2010-06-14 12:58:06 +00005754 .name = "SST25LF040A.RES",
5755 .bustype = CHIP_BUSTYPE_SPI,
5756 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005757 .model_id = SST_SST25VF040_REMS,
Stefan Reinauer5cacf8c2010-06-14 12:58:06 +00005758 .total_size = 512,
5759 .page_size = 256,
5760 .tested = TEST_OK_PROBE,
5761 .probe = probe_spi_res2,
5762 .probe_timing = TIMING_ZERO,
5763 .block_erasers =
5764 {
5765 {
5766 .eraseblocks = { {4 * 1024, 128} },
5767 .block_erase = spi_block_erase_20,
5768 }, {
5769 .eraseblocks = { {32 * 1024, 16} },
5770 .block_erase = spi_block_erase_52,
5771 }, {
5772 .eraseblocks = { {512 * 1024, 1} },
5773 .block_erase = spi_block_erase_60,
5774 },
5775 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005776 .unlock = spi_disable_blockprotect,
Stefan Reinauer5cacf8c2010-06-14 12:58:06 +00005777 .write = spi_chip_write_1,
5778 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005779 .voltage = {3000, 3600},
Stefan Reinauer5cacf8c2010-06-14 12:58:06 +00005780 },
5781
5782 {
5783 .vendor = "SST",
Peter Stugefd9217d2009-01-26 03:37:40 +00005784 .name = "SST25VF040B.REMS",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00005785 .bustype = CHIP_BUSTYPE_SPI,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005786 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005787 .model_id = SST_SST25VF040B_REMS,
Peter Stugefd9217d2009-01-26 03:37:40 +00005788 .total_size = 512,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00005789 .page_size = 256,
Peter Stugefd9217d2009-01-26 03:37:40 +00005790 .tested = TEST_OK_PR,
5791 .probe = probe_spi_rems,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005792 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00005793 .block_erasers =
5794 {
5795 {
5796 .eraseblocks = { {4 * 1024, 128} },
5797 .block_erase = spi_block_erase_20,
5798 }, {
5799 .eraseblocks = { {32 * 1024, 16} },
5800 .block_erase = spi_block_erase_52,
5801 }, {
5802 .eraseblocks = { {64 * 1024, 8} },
5803 .block_erase = spi_block_erase_d8,
5804 }, {
5805 .eraseblocks = { {512 * 1024, 1} },
5806 .block_erase = spi_block_erase_60,
5807 }, {
5808 .eraseblocks = { {512 * 1024, 1} },
5809 .block_erase = spi_block_erase_c7,
5810 },
5811 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005812 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger93bb3752009-05-13 22:19:12 +00005813 .write = spi_chip_write_1,
Peter Stugefd9217d2009-01-26 03:37:40 +00005814 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005815 .voltage = {2700, 3600},
Peter Stugefd9217d2009-01-26 03:37:40 +00005816 },
5817
5818 {
5819 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005820 .name = "SST25VF080B",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00005821 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005822 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005823 .model_id = SST_SST25VF080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005824 .total_size = 1024,
5825 .page_size = 256,
John Schmergec965c2d2011-05-18 11:28:47 +00005826 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005827 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005828 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00005829 .block_erasers =
5830 {
5831 {
5832 .eraseblocks = { {4 * 1024, 256} },
5833 .block_erase = spi_block_erase_20,
5834 }, {
5835 .eraseblocks = { {32 * 1024, 32} },
5836 .block_erase = spi_block_erase_52,
5837 }, {
5838 .eraseblocks = { {64 * 1024, 16} },
5839 .block_erase = spi_block_erase_d8,
5840 }, {
5841 .eraseblocks = { {1024 * 1024, 1} },
5842 .block_erase = spi_block_erase_60,
5843 }, {
5844 .eraseblocks = { {1024 * 1024, 1} },
5845 .block_erase = spi_block_erase_c7,
5846 },
5847 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005848 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005849 .write = spi_chip_write_1,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005850 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005851 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005852 },
5853
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005854 {
5855 .vendor = "SST",
5856 .name = "SST28SF040A",
Urja Rannikko038a3122009-06-28 19:19:25 +00005857 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005858 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005859 .model_id = SST_SST28SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005860 .total_size = 512,
5861 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00005862 .feature_bits = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005863 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005864 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00005865 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00005866 .block_erasers =
5867 {
5868 {
5869 .eraseblocks = { {128, 4096} },
5870 .block_erase = erase_sector_28sf040,
5871 }, {
5872 .eraseblocks = { {512 * 1024, 1} },
5873 .block_erase = erase_chip_28sf040,
5874 }
5875 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00005876 .unlock = unprotect_28sf040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005877 .write = write_28sf040,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005878 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005879 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005880 },
5881
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005882 {
5883 .vendor = "SST",
5884 .name = "SST29EE010",
Urja Rannikko038a3122009-06-28 19:19:25 +00005885 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005886 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005887 .model_id = SST_SST29EE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005888 .total_size = 128,
5889 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00005890 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005891 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005892 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005893 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00005894 .block_erasers =
5895 {
5896 {
5897 .eraseblocks = { {128 * 1024, 1} },
5898 .block_erase = erase_chip_block_jedec,
5899 }
5900 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005901 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005902 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005903 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005904 },
5905
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005906 {
5907 .vendor = "SST",
5908 .name = "SST29LE010",
Urja Rannikko038a3122009-06-28 19:19:25 +00005909 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005910 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005911 .model_id = SST_SST29LE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005912 .total_size = 128,
5913 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00005914 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005915 .tested = TEST_UNTESTED,
5916 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005917 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00005918 .block_erasers =
5919 {
5920 {
5921 .eraseblocks = { {128 * 1024, 1} },
5922 .block_erase = erase_chip_block_jedec,
5923 }
5924 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005925 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005926 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005927 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005928 },
5929
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005930 {
5931 .vendor = "SST",
5932 .name = "SST29EE020A",
Urja Rannikko038a3122009-06-28 19:19:25 +00005933 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005934 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005935 .model_id = SST_SST29EE020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005936 .total_size = 256,
5937 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00005938 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005939 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005940 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005941 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00005942 .block_erasers =
5943 {
5944 {
5945 .eraseblocks = { {256 * 1024, 1} },
5946 .block_erase = erase_chip_block_jedec,
5947 }
5948 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005949 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005950 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005951 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005952 },
5953
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005954 {
5955 .vendor = "SST",
5956 .name = "SST29LE020",
Urja Rannikko038a3122009-06-28 19:19:25 +00005957 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005958 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005959 .model_id = SST_SST29LE020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005960 .total_size = 256,
5961 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00005962 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005963 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005964 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005965 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00005966 .block_erasers =
5967 {
5968 {
5969 .eraseblocks = { {256 * 1024, 1} },
5970 .block_erase = erase_chip_block_jedec,
5971 }
5972 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005973 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005974 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005975 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005976 },
5977
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005978 {
5979 .vendor = "SST",
Uwe Hermann48da3f92010-01-23 15:15:19 +00005980 .name = "SST39SF512",
5981 .bustype = CHIP_BUSTYPE_PARALLEL,
5982 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005983 .model_id = SST_SST39SF512,
Uwe Hermann48da3f92010-01-23 15:15:19 +00005984 .total_size = 64,
5985 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00005986 .feature_bits = FEATURE_EITHER_RESET,
Idwer Vollering7913fb42011-03-07 15:32:58 +00005987 .tested = TEST_OK_PREW,
Uwe Hermann48da3f92010-01-23 15:15:19 +00005988 .probe = probe_jedec,
5989 .probe_timing = 1, /* 150 ns */
Uwe Hermann48da3f92010-01-23 15:15:19 +00005990 .block_erasers =
5991 {
5992 {
5993 .eraseblocks = { {4 * 1024, 16} },
5994 .block_erase = erase_sector_jedec,
5995 }, {
5996 .eraseblocks = { {64 * 1024, 1} },
5997 .block_erase = erase_chip_block_jedec,
5998 }
5999 },
Sean Nelson35727f72010-01-28 23:55:12 +00006000 .write = write_jedec_1,
Uwe Hermann48da3f92010-01-23 15:15:19 +00006001 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006002 .voltage = {4500, 5500},
Uwe Hermann48da3f92010-01-23 15:15:19 +00006003 },
6004
6005 {
6006 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006007 .name = "SST39SF010A",
Urja Rannikko038a3122009-06-28 19:19:25 +00006008 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006009 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006010 .model_id = SST_SST39SF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006011 .total_size = 128,
6012 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006013 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00006014 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006015 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006016 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006017 .block_erasers =
6018 {
6019 {
6020 .eraseblocks = { {4 * 1024, 32} },
6021 .block_erase = erase_sector_jedec,
6022 }, {
6023 .eraseblocks = { {128 * 1024, 1} },
6024 .block_erase = erase_chip_block_jedec,
6025 }
6026 },
Sean Nelson35727f72010-01-28 23:55:12 +00006027 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006028 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006029 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006030 },
6031
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006032 {
6033 .vendor = "SST",
6034 .name = "SST39SF020A",
Urja Rannikko038a3122009-06-28 19:19:25 +00006035 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006036 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006037 .model_id = SST_SST39SF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006038 .total_size = 256,
6039 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006040 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann19f46f22011-06-18 22:56:14 +00006041 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006042 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006043 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006044 .block_erasers =
6045 {
6046 {
6047 .eraseblocks = { {4 * 1024, 64} },
6048 .block_erase = erase_sector_jedec,
6049 }, {
6050 .eraseblocks = { {256 * 1024, 1} },
6051 .block_erase = erase_chip_block_jedec,
6052 }
6053 },
Sean Nelson35727f72010-01-28 23:55:12 +00006054 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006055 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006056 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006057 },
6058
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006059 {
6060 .vendor = "SST",
6061 .name = "SST39SF040",
Urja Rannikko038a3122009-06-28 19:19:25 +00006062 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006063 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006064 .model_id = SST_SST39SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006065 .total_size = 512,
6066 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006067 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006068 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006069 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006070 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006071 .block_erasers =
6072 {
6073 {
6074 .eraseblocks = { {4 * 1024, 128} },
6075 .block_erase = erase_sector_jedec,
6076 }, {
6077 .eraseblocks = { {512 * 1024, 1} },
6078 .block_erase = erase_chip_block_jedec,
6079 }
6080 },
Sean Nelson35727f72010-01-28 23:55:12 +00006081 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006082 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006083 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006084 },
6085
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006086 {
6087 .vendor = "SST",
6088 .name = "SST39VF512",
Urja Rannikko038a3122009-06-28 19:19:25 +00006089 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006090 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006091 .model_id = SST_SST39VF512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006092 .total_size = 64,
6093 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006094 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006095 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006096 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006097 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006098 .block_erasers =
6099 {
6100 {
6101 .eraseblocks = { {4 * 1024, 16} },
6102 .block_erase = erase_sector_jedec,
6103 }, {
6104 .eraseblocks = { {64 * 1024, 1} },
6105 .block_erase = erase_chip_block_jedec,
6106 }
6107 },
Sean Nelson35727f72010-01-28 23:55:12 +00006108 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006109 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006110 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006111 },
6112
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006113 {
6114 .vendor = "SST",
6115 .name = "SST39VF010",
Urja Rannikko038a3122009-06-28 19:19:25 +00006116 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006117 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006118 .model_id = SST_SST39VF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006119 .total_size = 128,
6120 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006121 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006122 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006123 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006124 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006125 .block_erasers =
6126 {
6127 {
6128 .eraseblocks = { {4 * 1024, 32} },
6129 .block_erase = erase_sector_jedec,
6130 }, {
6131 .eraseblocks = { {128 * 1024, 1} },
6132 .block_erase = erase_chip_block_jedec,
6133 }
6134 },
Sean Nelson35727f72010-01-28 23:55:12 +00006135 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006136 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006137 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006138 },
6139
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006140 {
6141 .vendor = "SST",
6142 .name = "SST39VF020",
Urja Rannikko038a3122009-06-28 19:19:25 +00006143 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006144 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006145 .model_id = SST_SST39VF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006146 .total_size = 256,
6147 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006148 .feature_bits = FEATURE_EITHER_RESET,
6149 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006150 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006151 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006152 .block_erasers =
6153 {
6154 {
6155 .eraseblocks = { {4 * 1024, 64} },
6156 .block_erase = erase_sector_jedec,
6157 }, {
6158 .eraseblocks = { {256 * 1024, 1} },
6159 .block_erase = erase_chip_block_jedec,
6160 }
6161 },
Sean Nelson35727f72010-01-28 23:55:12 +00006162 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006163 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006164 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006165 },
6166
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006167 {
6168 .vendor = "SST",
6169 .name = "SST39VF040",
Urja Rannikko038a3122009-06-28 19:19:25 +00006170 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006171 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006172 .model_id = SST_SST39VF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006173 .total_size = 512,
6174 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006175 .feature_bits = FEATURE_EITHER_RESET,
6176 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006177 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006178 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006179 .block_erasers =
6180 {
6181 {
6182 .eraseblocks = { {4 * 1024, 128} },
6183 .block_erase = erase_sector_jedec,
6184 }, {
6185 .eraseblocks = { {512 * 1024, 1} },
6186 .block_erase = erase_chip_block_jedec,
6187 }
6188 },
Sean Nelson35727f72010-01-28 23:55:12 +00006189 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006190 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006191 .voltage = {2700, 3600},
Carl-Daniel Hailfinger90eff152008-12-08 23:51:45 +00006192 },
FENG yu ningff692fb2008-12-08 18:15:10 +00006193
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006194 {
6195 .vendor = "SST",
Peter Stuge8440cc02009-01-25 23:55:12 +00006196 .name = "SST39VF080",
Urja Rannikko038a3122009-06-28 19:19:25 +00006197 .bustype = CHIP_BUSTYPE_PARALLEL,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006198 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006199 .model_id = SST_SST39VF080,
Peter Stuge8440cc02009-01-25 23:55:12 +00006200 .total_size = 1024,
6201 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006202 .feature_bits = FEATURE_EITHER_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +00006203 .tested = TEST_UNTESTED,
6204 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006205 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006206 .block_erasers =
6207 {
6208 {
6209 .eraseblocks = { {4 * 1024, 256} },
6210 .block_erase = erase_sector_jedec,
6211 }, {
6212 .eraseblocks = { {64 * 1024, 16} },
6213 .block_erase = erase_block_jedec,
6214 }, {
6215 .eraseblocks = { {1024 * 1024, 1} },
6216 .block_erase = erase_chip_block_jedec,
6217 }
6218 },
Sean Nelson35727f72010-01-28 23:55:12 +00006219 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006220 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006221 .voltage = {2700, 3600},
Peter Stuge8440cc02009-01-25 23:55:12 +00006222 },
6223
6224 {
6225 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006226 .name = "SST49LF002A/B",
Urja Rannikko038a3122009-06-28 19:19:25 +00006227 .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006228 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006229 .model_id = SST_SST49LF002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006230 .total_size = 256,
6231 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006232 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00006233 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006234 .probe = probe_jedec,
6235 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006236 .block_erasers =
6237 {
6238 {
6239 .eraseblocks = { {4 * 1024, 64} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006240 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006241 }, {
6242 .eraseblocks = { {16 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006243 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006244 }, {
6245 .eraseblocks = { {256 * 1024, 1} },
6246 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
6247 }
6248 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006249 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006250 .unlock = unlock_sst_fwhub,
6251 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006252 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006253 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006254 },
6255
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006256 {
6257 .vendor = "SST",
6258 .name = "SST49LF003A/B",
Urja Rannikko038a3122009-06-28 19:19:25 +00006259 .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006260 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006261 .model_id = SST_SST49LF003A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006262 .total_size = 384,
6263 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006264 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Peter Lemenkov45835c42009-09-25 01:09:18 +00006265 .tested = TEST_OK_PR,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006266 .probe = probe_jedec,
6267 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006268 .block_erasers =
6269 {
6270 {
6271 .eraseblocks = { {4 * 1024, 96} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006272 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006273 }, {
6274 .eraseblocks = { {64 * 1024, 6} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006275 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006276 }, {
6277 .eraseblocks = { {384 * 1024, 1} },
6278 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
6279 }
6280 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006281 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006282 .unlock = unlock_sst_fwhub,
6283 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006284 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006285 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006286 },
6287
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006288 {
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00006289 /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB)
6290 * and is only honored for 64k block erase, but not 4k sector erase.
6291 */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006292 .vendor = "SST",
6293 .name = "SST49LF004A/B",
Urja Rannikko038a3122009-06-28 19:19:25 +00006294 .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006295 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006296 .model_id = SST_SST49LF004A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006297 .total_size = 512,
6298 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006299 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00006300 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006301 .probe = probe_jedec,
6302 .probe_timing = 1, /* 150 ns */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00006303 .block_erasers =
6304 {
6305 {
6306 .eraseblocks = { {4 * 1024, 128} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006307 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00006308 }, {
6309 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006310 .block_erase = erase_block_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00006311 }, {
6312 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson51c83fb2010-01-20 20:55:53 +00006313 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00006314 },
6315 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006316 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006317 .unlock = unlock_sst_fwhub,
6318 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006319 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006320 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006321 },
6322
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006323 {
6324 .vendor = "SST",
6325 .name = "SST49LF004C",
Urja Rannikko038a3122009-06-28 19:19:25 +00006326 .bustype = CHIP_BUSTYPE_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006327 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006328 .model_id = SST_SST49LF004C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006329 .total_size = 512,
6330 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006331 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006332 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006333 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00006334 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006335 .block_erasers =
6336 {
6337 {
6338 .eraseblocks = { {4 * 1024, 128} },
6339 .block_erase = erase_sector_49lfxxxc,
6340 }, {
6341 .eraseblocks = {
6342 {64 * 1024, 7},
6343 {32 * 1024, 1},
6344 {8 * 1024, 2},
6345 {16 * 1024, 1},
6346 },
Sean Nelson69e58112010-03-23 17:10:28 +00006347 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006348 }
6349 },
Sean Nelson69e58112010-03-23 17:10:28 +00006350 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00006351 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006352 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006353 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006354 },
6355
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006356 {
6357 .vendor = "SST",
6358 .name = "SST49LF008A",
Urja Rannikko038a3122009-06-28 19:19:25 +00006359 .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006360 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006361 .model_id = SST_SST49LF008A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006362 .total_size = 1024,
6363 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006364 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006365 .tested = TEST_OK_PRE,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006366 .probe = probe_jedec,
6367 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006368 .block_erasers =
6369 {
6370 {
6371 .eraseblocks = { {4 * 1024, 256} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006372 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006373 }, {
6374 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006375 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006376 }, {
6377 .eraseblocks = { {1024 * 1024, 1} },
6378 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
6379 }
6380 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006381 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006382 .unlock = unlock_sst_fwhub,
6383 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006384 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006385 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006386 },
6387
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006388 {
6389 .vendor = "SST",
6390 .name = "SST49LF008C",
Urja Rannikko038a3122009-06-28 19:19:25 +00006391 .bustype = CHIP_BUSTYPE_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006392 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006393 .model_id = SST_SST49LF008C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006394 .total_size = 1024,
6395 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006396 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006397 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006398 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00006399 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006400 .block_erasers =
6401 {
6402 {
6403 .eraseblocks = { {4 * 1024, 256} },
6404 .block_erase = erase_sector_49lfxxxc,
6405 }, {
6406 .eraseblocks = {
6407 {64 * 1024, 15},
6408 {32 * 1024, 1},
6409 {8 * 1024, 2},
6410 {16 * 1024, 1},
6411 },
Sean Nelson69e58112010-03-23 17:10:28 +00006412 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006413 }
6414 },
Sean Nelson69e58112010-03-23 17:10:28 +00006415 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00006416 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006417 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006418 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006419 },
6420
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006421 {
6422 .vendor = "SST",
6423 .name = "SST49LF016C",
Urja Rannikko038a3122009-06-28 19:19:25 +00006424 .bustype = CHIP_BUSTYPE_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006425 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006426 .model_id = SST_SST49LF016C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006427 .total_size = 2048,
6428 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006429 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006430 .tested = TEST_OK_PR,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006431 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00006432 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006433 .block_erasers =
6434 {
6435 {
6436 .eraseblocks = { {4 * 1024, 512} },
6437 .block_erase = erase_sector_49lfxxxc,
6438 }, {
6439 .eraseblocks = {
6440 {64 * 1024, 31},
6441 {32 * 1024, 1},
6442 {8 * 1024, 2},
6443 {16 * 1024, 1},
6444 },
Sean Nelson69e58112010-03-23 17:10:28 +00006445 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006446 }
6447 },
Sean Nelson69e58112010-03-23 17:10:28 +00006448 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00006449 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006450 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006451 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006452 },
6453
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006454 {
6455 .vendor = "SST",
6456 .name = "SST49LF020",
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006457 .bustype = CHIP_BUSTYPE_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006458 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006459 .model_id = SST_SST49LF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006460 .total_size = 256,
6461 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006462 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +00006463 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006464 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006465 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006466 .block_erasers =
6467 {
6468 {
6469 .eraseblocks = { {4 * 1024, 64} },
6470 .block_erase = erase_sector_jedec,
6471 }, {
6472 .eraseblocks = { {16 * 1024, 16} },
6473 .block_erase = erase_block_jedec,
6474 }, {
6475 .eraseblocks = { {256 * 1024, 1} },
6476 .block_erase = NULL,
6477 }
6478 },
Sean Nelson35727f72010-01-28 23:55:12 +00006479 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006480 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006481 .voltage = {3000, 3600},
Sven Schnellec208dfb2009-01-07 12:35:09 +00006482 },
6483
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006484 {
6485 .vendor = "SST",
6486 .name = "SST49LF020A",
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006487 .bustype = CHIP_BUSTYPE_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006488 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006489 .model_id = SST_SST49LF020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006490 .total_size = 256,
Carl-Daniel Hailfingerda654322009-07-23 01:44:38 +00006491 .page_size = 4 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006492 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006493 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006494 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006495 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006496 .block_erasers =
6497 {
6498 {
6499 .eraseblocks = { {4 * 1024, 64} },
6500 .block_erase = erase_sector_jedec,
6501 }, {
6502 .eraseblocks = { {16 * 1024, 16} },
6503 .block_erase = erase_block_jedec,
6504 }, {
6505 .eraseblocks = { {256 * 1024, 1} },
6506 .block_erase = NULL,
6507 }
6508 },
Sean Nelson35727f72010-01-28 23:55:12 +00006509 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006510 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006511 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006512 },
6513
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006514 {
6515 .vendor = "SST",
6516 .name = "SST49LF040",
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006517 .bustype = CHIP_BUSTYPE_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006518 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006519 .model_id = SST_SST49LF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006520 .total_size = 512,
6521 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006522 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006523 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006524 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006525 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006526 .block_erasers =
6527 {
6528 {
6529 .eraseblocks = { {4 * 1024, 128} },
6530 .block_erase = erase_sector_jedec,
6531 }, {
6532 .eraseblocks = { {64 * 1024, 8} },
6533 .block_erase = erase_block_jedec,
6534 }, {
6535 .eraseblocks = { {512 * 1024, 1} },
6536 .block_erase = NULL,
6537 }
6538 },
Sean Nelson35727f72010-01-28 23:55:12 +00006539 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006540 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006541 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006542 },
6543
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006544 {
6545 .vendor = "SST",
6546 .name = "SST49LF040B",
Urja Rannikko038a3122009-06-28 19:19:25 +00006547 .bustype = CHIP_BUSTYPE_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006548 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006549 .model_id = SST_SST49LF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006550 .total_size = 512,
6551 .page_size = 64 * 1024,
Joshua Roysa84b0bd2010-08-16 22:12:39 +00006552 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006553 .tested = TEST_OK_PRE,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006554 .probe = probe_jedec,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006555 .probe_timing = 1, /* 150ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006556 .block_erasers =
6557 {
6558 {
6559 .eraseblocks = { {4 * 1024, 128} },
6560 .block_erase = erase_sector_jedec,
6561 }, {
6562 .eraseblocks = { {64 * 1024, 8} },
6563 .block_erase = erase_block_jedec,
6564 }, {
6565 .eraseblocks = { {512 * 1024, 1} },
6566 .block_erase = NULL,
6567 }
6568 },
Joshua Roysa84b0bd2010-08-16 22:12:39 +00006569 .unlock = unlock_82802ab,
Sean Nelson35727f72010-01-28 23:55:12 +00006570 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006571 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006572 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006573 },
6574
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006575 {
6576 .vendor = "SST",
6577 .name = "SST49LF080A",
Urja Rannikko038a3122009-06-28 19:19:25 +00006578 .bustype = CHIP_BUSTYPE_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006579 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006580 .model_id = SST_SST49LF080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006581 .total_size = 1024,
6582 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006583 .feature_bits = FEATURE_EITHER_RESET,
Brandon Dowdyf07bf322011-03-06 18:31:11 +00006584 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006585 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00006586 .probe_timing = TIMING_FIXME,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006587 .block_erasers =
6588 {
6589 {
6590 .eraseblocks = { {4 * 1024, 256} },
6591 .block_erase = erase_sector_jedec,
6592 }, {
6593 .eraseblocks = { {64 * 1024, 16} },
6594 .block_erase = erase_block_jedec,
6595 }, {
6596 .eraseblocks = { {1024 * 1024, 1} },
6597 .block_erase = NULL,
6598 }
6599 },
Sean Nelson35727f72010-01-28 23:55:12 +00006600 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006601 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006602 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006603 },
6604
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006605 {
6606 .vendor = "SST",
6607 .name = "SST49LF160C",
Urja Rannikko038a3122009-06-28 19:19:25 +00006608 .bustype = CHIP_BUSTYPE_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006609 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006610 .model_id = SST_SST49LF160C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006611 .total_size = 2048,
6612 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006613 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006614 .tested = TEST_OK_PRE,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006615 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00006616 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006617 .block_erasers =
6618 {
6619 {
6620 .eraseblocks = { {4 * 1024, 512} },
6621 .block_erase = erase_sector_49lfxxxc,
6622 }, {
6623 .eraseblocks = {
6624 {64 * 1024, 31},
6625 {32 * 1024, 1},
6626 {8 * 1024, 2},
6627 {16 * 1024, 1},
6628 },
Sean Nelson69e58112010-03-23 17:10:28 +00006629 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006630 }
6631 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00006632 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00006633 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006634 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006635 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006636 },
6637
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006638 {
6639 .vendor = "ST",
6640 .name = "M25P05-A",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00006641 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006642 .manufacture_id = ST_ID,
6643 .model_id = ST_M25P05A,
6644 .total_size = 64,
6645 .page_size = 256,
6646 .tested = TEST_UNTESTED,
6647 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006648 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006649 .block_erasers =
6650 {
6651 {
6652 .eraseblocks = { {32 * 1024, 2} },
6653 .block_erase = spi_block_erase_d8,
6654 }, {
6655 .eraseblocks = { {64 * 1024, 1} },
6656 .block_erase = spi_block_erase_c7,
6657 }
6658 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006659 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006660 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006661 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006662 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006663 },
6664
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00006665 /* The ST M25P05 is a bit of a problem. It has the same ID as the
6666 * ST M25P05-A in RES mode, but supports only 128 byte writes instead
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00006667 * of 256 byte writes. We rely heavily on the fact that probe_spi_res1
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00006668 * only is successful if RDID does not work.
6669 */
6670 {
6671 .vendor = "ST",
6672 .name = "M25P05.RES",
6673 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00006674 .manufacture_id = 0, /* Not used. */
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00006675 .model_id = ST_M25P05_RES,
6676 .total_size = 64,
6677 .page_size = 256,
6678 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00006679 .probe = probe_spi_res1,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00006680 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006681 .block_erasers =
6682 {
6683 {
6684 .eraseblocks = { {32 * 1024, 2} },
6685 .block_erase = spi_block_erase_d8,
6686 }, {
6687 .eraseblocks = { {64 * 1024, 1} },
6688 .block_erase = spi_block_erase_c7,
6689 }
6690 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006691 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00006692 .write = spi_chip_write_1, /* 128 */
6693 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006694 .voltage = {2700, 3600},
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00006695 },
6696
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006697 {
6698 .vendor = "ST",
6699 .name = "M25P10-A",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00006700 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006701 .manufacture_id = ST_ID,
6702 .model_id = ST_M25P10A,
6703 .total_size = 128,
6704 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006705 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006706 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006707 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006708 .block_erasers =
6709 {
6710 {
6711 .eraseblocks = { {32 * 1024, 4} },
6712 .block_erase = spi_block_erase_d8,
6713 }, {
6714 .eraseblocks = { {128 * 1024, 1} },
6715 .block_erase = spi_block_erase_c7,
6716 }
6717 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006718 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006719 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006720 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006721 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006722 },
6723
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00006724 /* The ST M25P10 has the same problem as the M25P05. */
6725 {
6726 .vendor = "ST",
6727 .name = "M25P10.RES",
6728 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00006729 .manufacture_id = 0, /* Not used. */
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00006730 .model_id = ST_M25P10_RES,
6731 .total_size = 128,
6732 .page_size = 256,
6733 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00006734 .probe = probe_spi_res1,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00006735 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006736 .block_erasers =
6737 {
6738 {
6739 .eraseblocks = { {32 * 1024, 4} },
6740 .block_erase = spi_block_erase_d8,
6741 }, {
6742 .eraseblocks = { {128 * 1024, 1} },
6743 .block_erase = spi_block_erase_c7,
6744 }
6745 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006746 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00006747 .write = spi_chip_write_1, /* 128 */
6748 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006749 .voltage = {2700, 3600},
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00006750 },
6751
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006752 {
6753 .vendor = "ST",
6754 .name = "M25P20",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00006755 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006756 .manufacture_id = ST_ID,
6757 .model_id = ST_M25P20,
6758 .total_size = 256,
6759 .page_size = 256,
6760 .tested = TEST_UNTESTED,
6761 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006762 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006763 .block_erasers =
6764 {
6765 {
6766 .eraseblocks = { {64 * 1024, 4} },
6767 .block_erase = spi_block_erase_d8,
6768 }, {
6769 .eraseblocks = { {256 * 1024, 1} },
6770 .block_erase = spi_block_erase_c7,
6771 }
6772 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006773 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006774 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006775 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006776 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006777 },
6778
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006779 {
6780 .vendor = "ST",
6781 .name = "M25P40",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00006782 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006783 .manufacture_id = ST_ID,
6784 .model_id = ST_M25P40,
6785 .total_size = 512,
6786 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006787 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006788 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006789 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006790 .block_erasers =
6791 {
6792 {
6793 .eraseblocks = { {64 * 1024, 8} },
6794 .block_erase = spi_block_erase_d8,
6795 }, {
6796 .eraseblocks = { {512 * 1024, 1} },
6797 .block_erase = spi_block_erase_c7,
6798 }
6799 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006800 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006801 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006802 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006803 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006804 },
6805
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006806 {
6807 .vendor = "ST",
6808 .name = "M25P40-old",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00006809 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00006810 .manufacture_id = 0, /* Not used. */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006811 .model_id = ST_M25P40_RES,
6812 .total_size = 512,
6813 .page_size = 256,
6814 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00006815 .probe = probe_spi_res1,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006816 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006817 .block_erasers =
6818 {
6819 {
6820 .eraseblocks = { {64 * 1024, 8} },
6821 .block_erase = spi_block_erase_d8,
6822 }, {
6823 .eraseblocks = { {512 * 1024, 1} },
6824 .block_erase = spi_block_erase_c7,
6825 }
6826 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006827 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006828 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006829 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00006830 },
6831
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006832 {
6833 .vendor = "ST",
6834 .name = "M25P80",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00006835 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006836 .manufacture_id = ST_ID,
6837 .model_id = ST_M25P80,
6838 .total_size = 1024,
6839 .page_size = 256,
Uwe Hermann19f46f22011-06-18 22:56:14 +00006840 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006841 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006842 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006843 .block_erasers =
6844 {
6845 {
6846 .eraseblocks = { {64 * 1024, 16} },
6847 .block_erase = spi_block_erase_d8,
6848 }, {
6849 .eraseblocks = { {1024 * 1024, 1} },
6850 .block_erase = spi_block_erase_c7,
6851 }
6852 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006853 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006854 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006855 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006856 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006857 },
6858
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006859 {
6860 .vendor = "ST",
6861 .name = "M25P16",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00006862 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006863 .manufacture_id = ST_ID,
6864 .model_id = ST_M25P16,
6865 .total_size = 2048,
6866 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006867 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006868 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006869 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006870 .block_erasers =
6871 {
6872 {
6873 .eraseblocks = { {64 * 1024, 32} },
6874 .block_erase = spi_block_erase_d8,
6875 }, {
6876 .eraseblocks = { {2 * 1024 * 1024, 1} },
6877 .block_erase = spi_block_erase_c7,
6878 }
6879 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006880 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006881 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006882 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006883 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006884 },
6885
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006886 {
6887 .vendor = "ST",
6888 .name = "M25P32",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00006889 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006890 .manufacture_id = ST_ID,
6891 .model_id = ST_M25P32,
6892 .total_size = 4096,
6893 .page_size = 256,
Antony Rheneus0fbba982011-05-26 14:28:51 +00006894 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006895 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006896 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006897 .block_erasers =
6898 {
6899 {
6900 .eraseblocks = { {64 * 1024, 64} },
6901 .block_erase = spi_block_erase_d8,
6902 }, {
6903 .eraseblocks = { {4 * 1024 * 1024, 1} },
6904 .block_erase = spi_block_erase_c7,
6905 }
6906 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006907 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006908 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006909 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006910 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006911 },
6912
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006913 {
6914 .vendor = "ST",
6915 .name = "M25P64",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00006916 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006917 .manufacture_id = ST_ID,
6918 .model_id = ST_M25P64,
6919 .total_size = 8192,
6920 .page_size = 256,
6921 .tested = TEST_UNTESTED,
6922 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006923 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006924 .block_erasers =
6925 {
6926 {
6927 .eraseblocks = { {64 * 1024, 128} },
6928 .block_erase = spi_block_erase_d8,
6929 }, {
6930 .eraseblocks = { {8 * 1024 * 1024, 1} },
6931 .block_erase = spi_block_erase_c7,
6932 }
6933 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006934 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006935 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006936 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006937 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006938 },
6939
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006940 {
6941 .vendor = "ST",
6942 .name = "M25P128",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00006943 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006944 .manufacture_id = ST_ID,
6945 .model_id = ST_M25P128,
6946 .total_size = 16384,
6947 .page_size = 256,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00006948 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006949 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006950 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006951 .block_erasers =
6952 {
6953 {
6954 .eraseblocks = { {256 * 1024, 64} },
6955 .block_erase = spi_block_erase_d8,
6956 }, {
6957 .eraseblocks = { {16 * 1024 * 1024, 1} },
6958 .block_erase = spi_block_erase_c7,
6959 }
6960 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006961 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006962 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006963 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006964 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006965 },
6966
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006967 {
6968 .vendor = "ST",
Carl Worthd1dd72c2011-03-06 18:45:40 +00006969 .name = "M25PX16",
6970 .bustype = CHIP_BUSTYPE_SPI,
6971 .manufacture_id = ST_ID,
6972 .model_id = ST_M25PX16,
6973 .total_size = 2048,
6974 .page_size = 256,
6975 .tested = TEST_OK_PREW,
6976 .probe = probe_spi_rdid,
6977 .probe_timing = TIMING_ZERO,
6978 .block_erasers =
6979 {
6980 {
6981 .eraseblocks = { { 4 * 1024, 512 } },
6982 .block_erase = spi_block_erase_20,
6983 }, {
6984 .eraseblocks = { {64 * 1024, 32} },
6985 .block_erase = spi_block_erase_d8,
6986 }, {
6987 .eraseblocks = { {2 * 1024 * 1024, 1} },
6988 .block_erase = spi_block_erase_c7,
6989 }
6990 },
6991 .unlock = spi_disable_blockprotect,
6992 .write = spi_chip_write_256,
6993 .read = spi_chip_read,
6994 },
6995
6996 {
6997 .vendor = "ST",
Jason Shriver4119e9b2010-09-14 13:16:01 +00006998 .name = "M25PX32",
6999 .bustype = CHIP_BUSTYPE_SPI,
7000 .manufacture_id = ST_ID,
7001 .model_id = ST_M25PX32,
7002 .total_size = 4096,
7003 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007004 .tested = TEST_OK_PRE,
Jason Shriver4119e9b2010-09-14 13:16:01 +00007005 .probe = probe_spi_rdid,
7006 .probe_timing = TIMING_ZERO,
7007 .block_erasers =
7008 {
7009 {
7010 .eraseblocks = { { 4 * 1024, 1024 } },
7011 .block_erase = spi_block_erase_20,
7012 }, {
7013 .eraseblocks = { {64 * 1024, 64} },
7014 .block_erase = spi_block_erase_d8,
7015 }, {
7016 .eraseblocks = { {4 * 1024 * 1024, 1} },
7017 .block_erase = spi_block_erase_c7,
7018 }
7019 },
7020 .unlock = spi_disable_blockprotect,
7021 .write = spi_chip_write_256,
7022 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007023 .voltage = {2700, 3600},
Jason Shriver4119e9b2010-09-14 13:16:01 +00007024 },
7025
7026 {
7027 .vendor = "ST",
7028 .name = "M25PX64",
7029 .bustype = CHIP_BUSTYPE_SPI,
7030 .manufacture_id = ST_ID,
7031 .model_id = ST_M25PX64,
7032 .total_size = 8192,
7033 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007034 .tested = TEST_OK_PRE,
Jason Shriver4119e9b2010-09-14 13:16:01 +00007035 .probe = probe_spi_rdid,
7036 .probe_timing = TIMING_ZERO,
7037 .block_erasers =
7038 {
7039 {
7040 .eraseblocks = { { 4 * 1024, 2048 } },
7041 .block_erase = spi_block_erase_20,
7042 }, {
7043 .eraseblocks = { {64 * 1024, 128} },
7044 .block_erase = spi_block_erase_d8,
7045 }, {
7046 .eraseblocks = { {8 * 1024 * 1024, 1} },
7047 .block_erase = spi_block_erase_c7,
7048 }
7049 },
7050 .unlock = spi_disable_blockprotect,
7051 .write = spi_chip_write_256,
7052 .read = spi_chip_read,
7053 },
7054
7055 {
7056 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007057 .name = "M29F002B",
Urja Rannikko038a3122009-06-28 19:19:25 +00007058 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007059 .manufacture_id = ST_ID,
7060 .model_id = ST_M29F002B,
7061 .total_size = 256,
7062 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007063 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007064 .tested = TEST_UNTESTED,
7065 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007066 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007067 .block_erasers =
7068 {
7069 {
7070 .eraseblocks = {
7071 {16 * 1024, 1},
7072 {8 * 1024, 2},
7073 {32 * 1024, 1},
7074 {64 * 1024, 3},
7075 },
7076 .block_erase = erase_sector_jedec,
7077 }, {
7078 .eraseblocks = { {256 * 1024, 1} },
7079 .block_erase = erase_chip_block_jedec,
7080 }
7081 },
Sean Nelson35727f72010-01-28 23:55:12 +00007082 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007083 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007084 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00007085 },
7086
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007087 {
7088 .vendor = "ST",
7089 .name = "M29F002T/NT",
Urja Rannikko038a3122009-06-28 19:19:25 +00007090 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007091 .manufacture_id = ST_ID,
7092 .model_id = ST_M29F002T,
7093 .total_size = 256,
7094 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007095 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
7096 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007097 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007098 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007099 .block_erasers =
7100 {
7101 {
7102 .eraseblocks = {
7103 {64 * 1024, 3},
7104 {32 * 1024, 1},
7105 {8 * 1024, 2},
7106 {16 * 1024, 1},
7107 },
7108 .block_erase = erase_sector_jedec,
7109 }, {
7110 .eraseblocks = { {256 * 1024, 1} },
7111 .block_erase = erase_chip_block_jedec,
7112 }
7113 },
Sean Nelson35727f72010-01-28 23:55:12 +00007114 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007115 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007116 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00007117 },
7118
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007119 {
7120 .vendor = "ST",
7121 .name = "M29F040B",
Urja Rannikko038a3122009-06-28 19:19:25 +00007122 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007123 .manufacture_id = ST_ID,
7124 .model_id = ST_M29F040B,
7125 .total_size = 512,
7126 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007127 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
7128 .tested = TEST_UNTESTED,
7129 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00007130 .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */
Sean Nelson56358aa2010-01-19 16:08:51 +00007131 .block_erasers =
7132 {
7133 {
7134 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson35727f72010-01-28 23:55:12 +00007135 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +00007136 }, {
7137 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00007138 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +00007139 }
7140 },
Sean Nelson35727f72010-01-28 23:55:12 +00007141 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007142 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007143 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00007144 },
7145
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007146 {
Sean Nelson35727f72010-01-28 23:55:12 +00007147 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007148 .vendor = "ST",
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00007149 .name = "M29F400BB",
7150 .bustype = CHIP_BUSTYPE_PARALLEL,
7151 .manufacture_id = ST_ID,
7152 .model_id = ST_M29F400BB,
7153 .total_size = 512,
7154 .page_size = 64 * 1024,
7155 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00007156 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00007157 .probe = probe_m29f400bt,
7158 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
7159 .block_erasers =
7160 {
7161 {
7162 .eraseblocks = {
7163 {16 * 1024, 1},
7164 {8 * 1024, 2},
7165 {32 * 1024, 1},
7166 {64 * 1024, 7},
7167 },
7168 .block_erase = block_erase_m29f400bt,
7169 }, {
7170 .eraseblocks = { {512 * 1024, 1} },
7171 .block_erase = block_erase_chip_m29f400bt,
7172 }
7173 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00007174 .write = write_m29f400bt,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00007175 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007176 .voltage = {4500, 5500},
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00007177 },
7178 {
7179 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
7180 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007181 .name = "M29F400BT",
Urja Rannikko038a3122009-06-28 19:19:25 +00007182 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007183 .manufacture_id = ST_ID,
7184 .model_id = ST_M29F400BT,
7185 .total_size = 512,
7186 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007187 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007188 .tested = TEST_UNTESTED,
7189 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00007190 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00007191 .block_erasers =
7192 {
7193 {
7194 .eraseblocks = {
7195 {64 * 1024, 7},
7196 {32 * 1024, 1},
7197 {8 * 1024, 2},
7198 {16 * 1024, 1},
7199 },
7200 .block_erase = block_erase_m29f400bt,
7201 }, {
7202 .eraseblocks = { {512 * 1024, 1} },
7203 .block_erase = block_erase_chip_m29f400bt,
7204 }
7205 },
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00007206 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007207 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007208 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00007209 },
7210
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007211 {
7212 .vendor = "ST",
7213 .name = "M29W010B",
Urja Rannikko038a3122009-06-28 19:19:25 +00007214 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007215 .manufacture_id = ST_ID,
7216 .model_id = ST_M29W010B,
7217 .total_size = 128,
7218 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007219 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007220 .tested = TEST_UNTESTED,
7221 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007222 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007223 .block_erasers =
7224 {
7225 {
7226 .eraseblocks = { {16 * 1024, 8}, },
7227 .block_erase = erase_sector_jedec,
7228 }, {
7229 .eraseblocks = { {128 * 1024, 1} },
7230 .block_erase = erase_chip_block_jedec,
7231 }
7232 },
Sean Nelson35727f72010-01-28 23:55:12 +00007233 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007234 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007235 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007236 },
7237
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007238 {
7239 .vendor = "ST",
7240 .name = "M29W040B",
Urja Rannikko038a3122009-06-28 19:19:25 +00007241 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007242 .manufacture_id = ST_ID,
7243 .model_id = ST_M29W040B,
7244 .total_size = 512,
7245 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007246 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007247 .tested = TEST_UNTESTED,
7248 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007249 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007250 .block_erasers =
7251 {
7252 {
7253 .eraseblocks = { {64 * 1024, 8}, },
7254 .block_erase = erase_sector_jedec,
7255 }, {
7256 .eraseblocks = { {512 * 1024, 1} },
7257 .block_erase = erase_chip_block_jedec,
7258 }
7259 },
Sean Nelson35727f72010-01-28 23:55:12 +00007260 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007261 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007262 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007263 },
7264
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +00007265 {
7266 .vendor = "ST",
7267 .name = "M29W512B",
7268 .bustype = CHIP_BUSTYPE_PARALLEL,
7269 .manufacture_id = ST_ID,
7270 .model_id = ST_M29W512B,
7271 .total_size = 64,
7272 .page_size = 64 * 1024,
7273 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007274 .tested = TEST_OK_PRE,
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +00007275 .probe = probe_jedec,
7276 .probe_timing = TIMING_ZERO,
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +00007277 .block_erasers =
7278 {
7279 {
7280 .eraseblocks = { {64 * 1024, 1} },
7281 .block_erase = erase_chip_block_jedec,
7282 }
7283 },
7284 .write = write_jedec_1,
7285 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007286 .voltage = {2700, 3600},
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +00007287 },
7288
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007289 {
7290 .vendor = "ST",
7291 .name = "M50FLW040A",
Sean Nelson35727f72010-01-28 23:55:12 +00007292 .bustype = CHIP_BUSTYPE_FWH | CHIP_BUSTYPE_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007293 .manufacture_id = ST_ID,
7294 .model_id = ST_M50FLW040A,
7295 .total_size = 512,
7296 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007297 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007298 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00007299 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00007300 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00007301 .block_erasers =
7302 {
7303 {
Sean Nelson329bde72010-01-19 16:39:19 +00007304 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00007305 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00007306 {64 * 1024, 5}, /* block */
7307 {4 * 1024, 16}, /* sector */
7308 {4 * 1024, 16}, /* sector */
7309 },
7310 .block_erase = NULL,
7311 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00007312 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +00007313 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00007314 }
7315 },
Sean Nelson28accc22010-03-19 18:47:06 +00007316 .unlock = unlock_stm50flw0x0x,
7317 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007318 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007319 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00007320 },
7321
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007322 {
7323 .vendor = "ST",
7324 .name = "M50FLW040B",
Sean Nelson35727f72010-01-28 23:55:12 +00007325 .bustype = CHIP_BUSTYPE_FWH | CHIP_BUSTYPE_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007326 .manufacture_id = ST_ID,
7327 .model_id = ST_M50FLW040B,
7328 .total_size = 512,
7329 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007330 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007331 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00007332 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00007333 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00007334 .block_erasers =
7335 {
7336 {
Sean Nelson329bde72010-01-19 16:39:19 +00007337 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00007338 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00007339 {4 * 1024, 16}, /* sector */
7340 {64 * 1024, 5}, /* block */
7341 {4 * 1024, 16}, /* sector */
7342 },
7343 .block_erase = NULL,
7344 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00007345 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +00007346 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00007347 }
7348 },
Sean Nelson28accc22010-03-19 18:47:06 +00007349 .unlock = unlock_stm50flw0x0x,
7350 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007351 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007352 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00007353 },
7354
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007355 {
7356 .vendor = "ST",
7357 .name = "M50FLW080A",
Sean Nelson35727f72010-01-28 23:55:12 +00007358 .bustype = CHIP_BUSTYPE_FWH | CHIP_BUSTYPE_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007359 .manufacture_id = ST_ID,
7360 .model_id = ST_M50FLW080A,
7361 .total_size = 1024,
7362 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007363 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007364 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +00007365 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00007366 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00007367 .block_erasers =
7368 {
7369 {
Sean Nelson329bde72010-01-19 16:39:19 +00007370 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00007371 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00007372 {64 * 1024, 13}, /* block */
7373 {4 * 1024, 16}, /* sector */
7374 {4 * 1024, 16}, /* sector */
7375 },
7376 .block_erase = NULL,
7377 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00007378 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +00007379 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00007380 }
7381 },
Sean Nelson28accc22010-03-19 18:47:06 +00007382 .unlock = unlock_stm50flw0x0x,
7383 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007384 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007385 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00007386 },
7387
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007388 {
7389 .vendor = "ST",
7390 .name = "M50FLW080B",
Sean Nelson35727f72010-01-28 23:55:12 +00007391 .bustype = CHIP_BUSTYPE_FWH | CHIP_BUSTYPE_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007392 .manufacture_id = ST_ID,
7393 .model_id = ST_M50FLW080B,
7394 .total_size = 1024,
7395 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007396 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007397 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00007398 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00007399 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00007400 .block_erasers =
7401 {
7402 {
Sean Nelson329bde72010-01-19 16:39:19 +00007403 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00007404 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00007405 {4 * 1024, 16}, /* sector */
7406 {64 * 1024, 13}, /* block */
7407 {4 * 1024, 16}, /* sector */
7408 },
7409 .block_erase = NULL,
7410 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00007411 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +00007412 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00007413 }
7414 },
Sean Nelson28accc22010-03-19 18:47:06 +00007415 .unlock = unlock_stm50flw0x0x,
7416 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007417 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007418 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00007419 },
7420
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007421 {
7422 .vendor = "ST",
7423 .name = "M50FW002",
Urja Rannikko038a3122009-06-28 19:19:25 +00007424 .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007425 .manufacture_id = ST_ID,
7426 .model_id = ST_M50FW002,
7427 .total_size = 256,
7428 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007429 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007430 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00007431 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00007432 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00007433 .block_erasers =
7434 {
7435 {
7436 .eraseblocks = {
7437 {64 * 1024, 3},
7438 {32 * 1024, 1},
7439 {8 * 1024, 2},
7440 {16 * 1024, 1},
7441 },
Sean Nelson28accc22010-03-19 18:47:06 +00007442 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00007443 }
7444 },
Sean Nelson28accc22010-03-19 18:47:06 +00007445 .unlock = unlock_stm50flw0x0x,
7446 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007447 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007448 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00007449 },
7450
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007451 {
7452 .vendor = "ST",
7453 .name = "M50FW016",
Urja Rannikko038a3122009-06-28 19:19:25 +00007454 .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007455 .manufacture_id = ST_ID,
7456 .model_id = ST_M50FW016,
7457 .total_size = 2048,
7458 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007459 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007460 .tested = TEST_UNTESTED,
7461 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00007462 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00007463 .block_erasers =
7464 {
7465 {
7466 .eraseblocks = { {64 * 1024, 32}, },
Sean Nelson28accc22010-03-19 18:47:06 +00007467 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00007468 }
7469 },
Sean Nelson28accc22010-03-19 18:47:06 +00007470 .unlock = unlock_stm50flw0x0x,
7471 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007472 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007473 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00007474 },
7475
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007476 {
7477 .vendor = "ST",
7478 .name = "M50FW040",
Urja Rannikko038a3122009-06-28 19:19:25 +00007479 .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007480 .manufacture_id = ST_ID,
7481 .model_id = ST_M50FW040,
7482 .total_size = 512,
7483 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007484 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +00007485 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007486 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00007487 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00007488 .block_erasers =
7489 {
7490 {
7491 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +00007492 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00007493 }
7494 },
Sean Nelson28accc22010-03-19 18:47:06 +00007495 .unlock = unlock_stm50flw0x0x,
7496 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007497 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007498 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00007499 },
7500
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007501 {
7502 .vendor = "ST",
7503 .name = "M50FW080",
Urja Rannikko038a3122009-06-28 19:19:25 +00007504 .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007505 .manufacture_id = ST_ID,
7506 .model_id = ST_M50FW080,
7507 .total_size = 1024,
7508 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007509 .feature_bits = FEATURE_REGISTERMAP,
Antony Rheneus0fbba982011-05-26 14:28:51 +00007510 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007511 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00007512 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00007513 .block_erasers =
7514 {
7515 {
7516 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +00007517 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00007518 }
7519 },
Sean Nelson28accc22010-03-19 18:47:06 +00007520 .unlock = unlock_stm50flw0x0x,
7521 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007522 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007523 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00007524 },
7525
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007526 {
7527 .vendor = "ST",
7528 .name = "M50LPW116",
Urja Rannikko038a3122009-06-28 19:19:25 +00007529 .bustype = CHIP_BUSTYPE_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007530 .manufacture_id = ST_ID,
7531 .model_id = ST_M50LPW116,
7532 .total_size = 2048,
7533 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007534 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007535 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00007536 .probe = probe_82802ab,
Udu Ogahc04ee222009-09-05 01:31:32 +00007537 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007538 .block_erasers =
7539 {
7540 {
7541 .eraseblocks = {
7542 {4 * 1024, 16},
7543 {64 * 1024, 30},
7544 {32 * 1024, 1},
7545 {8 * 1024, 2},
7546 {16 * 1024, 1},
7547 },
Sean Nelson28accc22010-03-19 18:47:06 +00007548 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00007549 }
7550 },
Sean Nelson28accc22010-03-19 18:47:06 +00007551 .unlock = unlock_stm50flw0x0x,
7552 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007553 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007554 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00007555 },
7556
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007557 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00007558 .vendor = "SyncMOS/MoselVitelic",
7559 .name = "{F,S,V}29C51001B",
Urja Rannikko038a3122009-06-28 19:19:25 +00007560 .bustype = CHIP_BUSTYPE_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00007561 .manufacture_id = SYNCMOS_MVC_ID,
7562 .model_id = SM_MVC_29C51001B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007563 .total_size = 128,
Mattias Mattsson4c066502010-07-29 20:01:13 +00007564 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +00007565 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007566 .tested = TEST_UNTESTED,
7567 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007568 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007569 .block_erasers =
7570 {
7571 {
7572 .eraseblocks = { {512, 256} },
7573 .block_erase = erase_sector_jedec,
7574 }, {
7575 .eraseblocks = { {128 * 1024, 1} },
7576 .block_erase = erase_chip_block_jedec,
7577 },
7578 },
Sean Nelson35727f72010-01-28 23:55:12 +00007579 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007580 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007581 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00007582 },
7583
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007584 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00007585 .vendor = "SyncMOS/MoselVitelic",
7586 .name = "{F,S,V}29C51001T",
Urja Rannikko038a3122009-06-28 19:19:25 +00007587 .bustype = CHIP_BUSTYPE_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00007588 .manufacture_id = SYNCMOS_MVC_ID,
7589 .model_id = SM_MVC_29C51001T,
7590 .total_size = 128,
7591 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +00007592 .feature_bits = FEATURE_EITHER_RESET,
Mattias Mattsson4c066502010-07-29 20:01:13 +00007593 .tested = TEST_UNTESTED,
7594 .probe = probe_jedec,
7595 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7596 .block_erasers =
7597 {
7598 {
7599 .eraseblocks = { {512, 256} },
7600 .block_erase = erase_sector_jedec,
7601 }, {
7602 .eraseblocks = { {128 * 1024, 1} },
7603 .block_erase = erase_chip_block_jedec,
7604 },
7605 },
7606 .write = write_jedec_1,
7607 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007608 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00007609 },
7610
7611 {
7612 .vendor = "SyncMOS/MoselVitelic",
7613 .name = "{F,S,V}29C51002B",
7614 .bustype = CHIP_BUSTYPE_PARALLEL,
7615 .manufacture_id = SYNCMOS_MVC_ID,
7616 .model_id = SM_MVC_29C51002B,
7617 .total_size = 256,
7618 .page_size = 512,
7619 .feature_bits = FEATURE_EITHER_RESET,
7620 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007621 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007622 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007623 .block_erasers =
7624 {
7625 {
7626 .eraseblocks = { {512, 512} },
7627 .block_erase = erase_sector_jedec,
7628 }, {
7629 .eraseblocks = { {256 * 1024, 1} },
7630 .block_erase = erase_chip_block_jedec,
7631 },
7632 },
Sean Nelson35727f72010-01-28 23:55:12 +00007633 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007634 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00007635 },
7636
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007637 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00007638 .vendor = "SyncMOS/MoselVitelic",
7639 .name = "{F,S,V}29C51002T",
Urja Rannikko038a3122009-06-28 19:19:25 +00007640 .bustype = CHIP_BUSTYPE_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00007641 .manufacture_id = SYNCMOS_MVC_ID,
7642 .model_id = SM_MVC_29C51002T,
7643 .total_size = 256,
7644 .page_size = 512,
7645 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007646 .tested = TEST_OK_PRE,
Mattias Mattsson4c066502010-07-29 20:01:13 +00007647 .probe = probe_jedec,
7648 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7649 .block_erasers =
7650 {
7651 {
7652 .eraseblocks = { {512, 512} },
7653 .block_erase = erase_sector_jedec,
7654 }, {
7655 .eraseblocks = { {256 * 1024, 1} },
7656 .block_erase = erase_chip_block_jedec,
7657 },
7658 },
7659 .write = write_jedec_1,
7660 .read = read_memmapped,
7661 },
7662
7663 {
7664 .vendor = "SyncMOS/MoselVitelic",
7665 .name = "{F,S,V}29C51004B",
7666 .bustype = CHIP_BUSTYPE_PARALLEL,
7667 .manufacture_id = SYNCMOS_MVC_ID,
7668 .model_id = SM_MVC_29C51004B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007669 .total_size = 512,
Mattias Mattsson4c066502010-07-29 20:01:13 +00007670 .page_size = 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007671 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007672 .tested = TEST_UNTESTED,
7673 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007674 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007675 .block_erasers =
7676 {
7677 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00007678 .eraseblocks = { {1024, 512} },
7679 .block_erase = erase_sector_jedec,
7680 }, {
7681 .eraseblocks = { {512 * 1024, 1} },
7682 .block_erase = erase_chip_block_jedec,
7683 },
7684 },
7685 .write = write_jedec_1,
7686 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007687 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00007688 },
7689
7690 {
7691 .vendor = "SyncMOS/MoselVitelic",
7692 .name = "{F,S,V}29C51004T",
7693 .bustype = CHIP_BUSTYPE_PARALLEL,
7694 .manufacture_id = SYNCMOS_MVC_ID,
7695 .model_id = SM_MVC_29C51004T,
7696 .total_size = 512,
7697 .page_size = 1024,
7698 .feature_bits = FEATURE_EITHER_RESET,
7699 .tested = TEST_UNTESTED,
7700 .probe = probe_jedec,
7701 .probe_timing = TIMING_ZERO,
7702 .block_erasers =
7703 {
7704 {
7705 .eraseblocks = { {1024, 512} },
7706 .block_erase = erase_sector_jedec,
7707 }, {
7708 .eraseblocks = { {512 * 1024, 1} },
7709 .block_erase = erase_chip_block_jedec,
7710 },
7711 },
7712 .write = write_jedec_1,
7713 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007714 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00007715 },
7716
7717 {
7718 .vendor = "SyncMOS/MoselVitelic",
7719 .name = "{S,V}29C31004B",
7720 .bustype = CHIP_BUSTYPE_PARALLEL,
7721 .manufacture_id = SYNCMOS_MVC_ID,
7722 .model_id = SM_MVC_29C31004B,
7723 .total_size = 512,
7724 .page_size = 1024,
7725 .feature_bits = FEATURE_EITHER_RESET,
7726 .tested = TEST_UNTESTED,
7727 .probe = probe_jedec,
7728 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7729 .block_erasers =
7730 {
7731 {
7732 .eraseblocks = { {1024, 512} },
7733 .block_erase = erase_sector_jedec,
7734 }, {
7735 .eraseblocks = { {512 * 1024, 1} },
7736 .block_erase = erase_chip_block_jedec,
7737 },
7738 },
7739 .write = write_jedec_1,
7740 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007741 .voltage = {3000, 3600},
Mattias Mattsson4c066502010-07-29 20:01:13 +00007742 },
7743
7744 {
7745 .vendor = "SyncMOS/MoselVitelic",
7746 .name = "{S,V}29C31004T",
7747 .bustype = CHIP_BUSTYPE_PARALLEL,
7748 .manufacture_id = SYNCMOS_MVC_ID,
7749 .model_id = SM_MVC_29C31004T,
7750 .total_size = 512,
7751 .page_size = 1024,
7752 .feature_bits = FEATURE_EITHER_RESET,
7753 .tested = TEST_UNTESTED,
7754 .probe = probe_jedec,
7755 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7756 .block_erasers =
7757 {
7758 {
7759 .eraseblocks = { {1024, 512} },
Sean Nelson56358aa2010-01-19 16:08:51 +00007760 .block_erase = erase_sector_jedec,
7761 }, {
7762 .eraseblocks = { {512 * 1024, 1} },
7763 .block_erase = erase_chip_block_jedec,
7764 },
7765 },
Sean Nelson35727f72010-01-28 23:55:12 +00007766 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007767 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007768 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007769 },
7770
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007771 {
Uwe Hermanna106d152009-05-27 23:17:40 +00007772 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00007773 .name = "TMS29F002RB",
Urja Rannikko038a3122009-06-28 19:19:25 +00007774 .bustype = CHIP_BUSTYPE_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00007775 .manufacture_id = TI_OLD_ID,
7776 .model_id = TI_TMS29F002RB,
7777 .total_size = 256,
7778 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +00007779 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00007780 .tested = TEST_UNTESTED,
7781 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007782 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007783 .block_erasers =
7784 {
7785 {
7786 .eraseblocks = {
7787 {16 * 1024, 1},
7788 {8 * 1024, 2},
7789 {32 * 1024, 1},
7790 {64 * 1024, 3},
7791 },
7792 .block_erase = erase_sector_jedec,
7793 }, {
7794 .eraseblocks = { {256 * 1024, 1} },
7795 .block_erase = erase_chip_block_jedec,
7796 },
7797 },
Sean Nelson35727f72010-01-28 23:55:12 +00007798 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00007799 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007800 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00007801 },
7802
7803 {
Uwe Hermanna106d152009-05-27 23:17:40 +00007804 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00007805 .name = "TMS29F002RT",
Urja Rannikko038a3122009-06-28 19:19:25 +00007806 .bustype = CHIP_BUSTYPE_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00007807 .manufacture_id = TI_OLD_ID,
7808 .model_id = TI_TMS29F002RT,
7809 .total_size = 256,
7810 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +00007811 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00007812 .tested = TEST_UNTESTED,
7813 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007814 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007815 .block_erasers =
7816 {
7817 {
7818 .eraseblocks = {
7819 {64 * 1024, 3},
7820 {32 * 1024, 1},
7821 {8 * 1024, 2},
7822 {16 * 1024, 1},
7823 },
7824 .block_erase = erase_sector_jedec,
7825 }, {
7826 .eraseblocks = { {256 * 1024, 1} },
7827 .block_erase = erase_chip_block_jedec,
7828 },
7829 },
Sean Nelson35727f72010-01-28 23:55:12 +00007830 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00007831 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007832 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00007833 },
7834
7835 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007836 .vendor = "Winbond",
Rudolf Marekce1c7982010-04-20 19:34:31 +00007837 .name = "W25Q80",
7838 .bustype = CHIP_BUSTYPE_SPI,
7839 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00007840 .model_id = WINBOND_NEX_W25Q80,
Rudolf Marekce1c7982010-04-20 19:34:31 +00007841 .total_size = 1024,
7842 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00007843 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00007844 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +00007845 .probe = probe_spi_rdid,
7846 .probe_timing = TIMING_ZERO,
7847 .block_erasers =
7848 {
7849 {
7850 .eraseblocks = { {4 * 1024, 256} },
7851 .block_erase = spi_block_erase_20,
7852 }, {
7853 .eraseblocks = { {32 * 1024, 32} },
7854 .block_erase = spi_block_erase_52,
7855 }, {
7856 .eraseblocks = { {64 * 1024, 16} },
7857 .block_erase = spi_block_erase_d8,
7858 }, {
7859 .eraseblocks = { {1024 * 1024, 1} },
7860 .block_erase = spi_block_erase_60,
7861 }, {
7862 .eraseblocks = { {1024 * 1024, 1} },
7863 .block_erase = spi_block_erase_c7,
7864 }
7865 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007866 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +00007867 .write = spi_chip_write_256,
7868 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007869 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +00007870 },
7871
7872 {
7873 .vendor = "Winbond",
7874 .name = "W25Q16",
7875 .bustype = CHIP_BUSTYPE_SPI,
7876 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00007877 .model_id = WINBOND_NEX_W25Q16,
Rudolf Marekce1c7982010-04-20 19:34:31 +00007878 .total_size = 2048,
7879 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00007880 .feature_bits = FEATURE_WRSR_WREN,
Rudolf Marekce1c7982010-04-20 19:34:31 +00007881 .tested = TEST_UNTESTED,
7882 .probe = probe_spi_rdid,
7883 .probe_timing = TIMING_ZERO,
7884 .block_erasers =
7885 {
7886 {
7887 .eraseblocks = { {4 * 1024, 512} },
7888 .block_erase = spi_block_erase_20,
7889 }, {
7890 .eraseblocks = { {32 * 1024, 64} },
7891 .block_erase = spi_block_erase_52,
7892 }, {
7893 .eraseblocks = { {64 * 1024, 32} },
7894 .block_erase = spi_block_erase_d8,
7895 }, {
7896 .eraseblocks = { {2 * 1024 * 1024, 1} },
7897 .block_erase = spi_block_erase_60,
7898 }, {
7899 .eraseblocks = { {2 * 1024 * 1024, 1} },
7900 .block_erase = spi_block_erase_c7,
7901 }
7902 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007903 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +00007904 .write = spi_chip_write_256,
7905 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007906 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +00007907 },
7908
7909 {
7910 .vendor = "Winbond",
7911 .name = "W25Q32",
7912 .bustype = CHIP_BUSTYPE_SPI,
7913 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00007914 .model_id = WINBOND_NEX_W25Q32,
Rudolf Marekce1c7982010-04-20 19:34:31 +00007915 .total_size = 4096,
7916 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00007917 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00007918 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +00007919 .probe = probe_spi_rdid,
7920 .probe_timing = TIMING_ZERO,
7921 .block_erasers =
7922 {
7923 {
7924 .eraseblocks = { {4 * 1024, 1024} },
7925 .block_erase = spi_block_erase_20,
7926 }, {
7927 .eraseblocks = { {32 * 1024, 128} },
7928 .block_erase = spi_block_erase_52,
7929 }, {
7930 .eraseblocks = { {64 * 1024, 64} },
7931 .block_erase = spi_block_erase_d8,
7932 }, {
7933 .eraseblocks = { {4 * 1024 * 1024, 1} },
7934 .block_erase = spi_block_erase_60,
7935 }, {
7936 .eraseblocks = { {4 * 1024 * 1024, 1} },
7937 .block_erase = spi_block_erase_c7,
7938 }
7939 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007940 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +00007941 .write = spi_chip_write_256,
7942 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007943 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +00007944 },
7945
7946 {
7947 .vendor = "Winbond",
David Hendricksc4acec92010-06-24 11:39:57 +00007948 .name = "W25Q64",
7949 .bustype = CHIP_BUSTYPE_SPI,
7950 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00007951 .model_id = WINBOND_NEX_W25Q64,
David Hendricksc4acec92010-06-24 11:39:57 +00007952 .total_size = 8192,
7953 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00007954 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00007955 .tested = TEST_OK_PREW,
David Hendricksc4acec92010-06-24 11:39:57 +00007956 .probe = probe_spi_rdid,
7957 .probe_timing = TIMING_ZERO,
7958 .block_erasers =
7959 {
7960 {
7961 .eraseblocks = { {4 * 1024, 2048} },
7962 .block_erase = spi_block_erase_20,
7963 }, {
7964 .eraseblocks = { {32 * 1024, 256} },
7965 .block_erase = spi_block_erase_52,
7966 }, {
7967 .eraseblocks = { {64 * 1024, 128} },
7968 .block_erase = spi_block_erase_d8,
7969 }, {
7970 .eraseblocks = { {8 * 1024 * 1024, 1} },
7971 .block_erase = spi_block_erase_60,
7972 }, {
7973 .eraseblocks = { {8 * 1024 * 1024, 1} },
7974 .block_erase = spi_block_erase_c7,
7975 }
7976 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007977 .unlock = spi_disable_blockprotect,
David Hendricksc4acec92010-06-24 11:39:57 +00007978 .write = spi_chip_write_256,
7979 .read = spi_chip_read,
7980 },
7981
7982 {
7983 .vendor = "Winbond",
Antony Rheneus0fbba982011-05-26 14:28:51 +00007984 .name = "W25Q128",
7985 .bustype = CHIP_BUSTYPE_SPI,
7986 .manufacture_id = WINBOND_NEX_ID,
7987 .model_id = WINBOND_NEX_W25Q128,
7988 .total_size = 16384,
7989 .page_size = 256,
7990 .feature_bits = FEATURE_WRSR_WREN,
7991 .tested = TEST_OK_PROBE,
7992 .probe = probe_spi_rdid,
7993 .probe_timing = TIMING_ZERO,
7994 .block_erasers =
7995 {
7996 {
7997 .eraseblocks = { {4 * 1024, 4096} },
7998 .block_erase = spi_block_erase_20,
7999 }, {
8000 .eraseblocks = { {32 * 1024, 512} },
8001 .block_erase = spi_block_erase_52,
8002 }, {
8003 .eraseblocks = { {64 * 1024, 256} },
8004 .block_erase = spi_block_erase_d8,
8005 }, {
8006 .eraseblocks = { {16 * 1024 * 1024, 1} },
8007 .block_erase = spi_block_erase_60,
8008 }, {
8009 .eraseblocks = { {16 * 1024 * 1024, 1} },
8010 .block_erase = spi_block_erase_c7,
8011 }
8012 },
8013 .unlock = spi_disable_blockprotect,
8014 .write = spi_chip_write_256,
8015 .read = spi_chip_read,
8016 },
8017
8018 {
8019 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008020 .name = "W25X10",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00008021 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008022 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008023 .model_id = WINBOND_NEX_W25X10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008024 .total_size = 128,
8025 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008026 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008027 .tested = TEST_UNTESTED,
8028 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008029 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008030 .block_erasers =
8031 {
8032 {
8033 .eraseblocks = { {4 * 1024, 32} },
8034 .block_erase = spi_block_erase_20,
8035 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008036 .eraseblocks = { {64 * 1024, 2} },
8037 .block_erase = spi_block_erase_d8,
8038 }, {
8039 .eraseblocks = { {128 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008040 .block_erase = spi_block_erase_c7,
8041 }
8042 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008043 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008044 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008045 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008046 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008047 },
8048
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008049 {
8050 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008051 .name = "W25X20",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00008052 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008053 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008054 .model_id = WINBOND_NEX_W25X20,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008055 .total_size = 256,
8056 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008057 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008058 .tested = TEST_UNTESTED,
8059 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008060 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008061 .block_erasers =
8062 {
8063 {
8064 .eraseblocks = { {4 * 1024, 64} },
8065 .block_erase = spi_block_erase_20,
8066 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008067 .eraseblocks = { {64 * 1024, 4} },
8068 .block_erase = spi_block_erase_d8,
8069 }, {
8070 .eraseblocks = { {256 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008071 .block_erase = spi_block_erase_c7,
8072 }
8073 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008074 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008075 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008076 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008077 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008078 },
8079
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008080 {
8081 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008082 .name = "W25X40",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00008083 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008084 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008085 .model_id = WINBOND_NEX_W25X40,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008086 .total_size = 512,
8087 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008088 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +00008089 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008090 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008091 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008092 .block_erasers =
8093 {
8094 {
8095 .eraseblocks = { {4 * 1024, 128} },
8096 .block_erase = spi_block_erase_20,
8097 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008098 .eraseblocks = { {64 * 1024, 8} },
8099 .block_erase = spi_block_erase_d8,
8100 }, {
8101 .eraseblocks = { {512 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008102 .block_erase = spi_block_erase_c7,
8103 }
8104 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008105 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008106 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008107 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008108 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008109 },
8110
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008111 {
8112 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008113 .name = "W25X80",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00008114 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008115 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008116 .model_id = WINBOND_NEX_W25X80,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008117 .total_size = 1024,
8118 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008119 .feature_bits = FEATURE_WRSR_WREN,
Yul Rottmann6d6ab742011-03-05 16:31:57 +00008120 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008121 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008122 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008123 .block_erasers =
8124 {
8125 {
8126 .eraseblocks = { {4 * 1024, 256} },
8127 .block_erase = spi_block_erase_20,
8128 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008129 .eraseblocks = { {64 * 1024, 16} },
8130 .block_erase = spi_block_erase_d8,
8131 }, {
8132 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008133 .block_erase = spi_block_erase_c7,
8134 }
8135 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008136 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008137 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008138 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008139 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008140 },
8141
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008142 {
8143 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008144 .name = "W25X16",
Hector Martina721ae22009-07-11 19:39:11 +00008145 .bustype = CHIP_BUSTYPE_SPI,
8146 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008147 .model_id = WINBOND_NEX_W25X16,
Hector Martina721ae22009-07-11 19:39:11 +00008148 .total_size = 2048,
8149 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008150 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +00008151 .tested = TEST_OK_PREW,
Hector Martina721ae22009-07-11 19:39:11 +00008152 .probe = probe_spi_rdid,
8153 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008154 .block_erasers =
8155 {
8156 {
8157 .eraseblocks = { {4 * 1024, 512} },
8158 .block_erase = spi_block_erase_20,
8159 }, {
8160 .eraseblocks = { {32 * 1024, 64} },
8161 .block_erase = spi_block_erase_52,
8162 }, {
8163 .eraseblocks = { {64 * 1024, 32} },
8164 .block_erase = spi_block_erase_d8,
8165 }, {
8166 .eraseblocks = { {2 * 1024 * 1024, 1} },
8167 .block_erase = spi_block_erase_60,
8168 }, {
8169 .eraseblocks = { {2 * 1024 * 1024, 1} },
8170 .block_erase = spi_block_erase_c7,
8171 }
8172 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008173 .unlock = spi_disable_blockprotect,
Hector Martina721ae22009-07-11 19:39:11 +00008174 .write = spi_chip_write_256,
8175 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008176 .voltage = {2700, 3600},
Hector Martina721ae22009-07-11 19:39:11 +00008177 },
8178
8179 {
8180 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008181 .name = "W25X32",
Zheng Bao1db2b752009-11-26 11:05:01 +00008182 .bustype = CHIP_BUSTYPE_SPI,
8183 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008184 .model_id = WINBOND_NEX_W25X32,
Zheng Bao1db2b752009-11-26 11:05:01 +00008185 .total_size = 4096,
8186 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008187 .feature_bits = FEATURE_WRSR_WREN,
Zheng Bao1db2b752009-11-26 11:05:01 +00008188 .tested = TEST_OK_PROBE,
8189 .probe = probe_spi_rdid,
8190 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008191 .block_erasers =
8192 {
8193 {
8194 .eraseblocks = { {4 * 1024, 1024} },
8195 .block_erase = spi_block_erase_20,
8196 }, {
8197 .eraseblocks = { {32 * 1024, 128} },
8198 .block_erase = spi_block_erase_52,
8199 }, {
8200 .eraseblocks = { {64 * 1024, 64} },
8201 .block_erase = spi_block_erase_d8,
8202 }, {
8203 .eraseblocks = { {4 * 1024 * 1024, 1} },
8204 .block_erase = spi_block_erase_60,
8205 }, {
8206 .eraseblocks = { {4 * 1024 * 1024, 1} },
8207 .block_erase = spi_block_erase_c7,
8208 }
8209 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008210 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +00008211 .write = spi_chip_write_256,
8212 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008213 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +00008214 },
8215
8216 {
8217 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008218 .name = "W25X64",
Zheng Bao1db2b752009-11-26 11:05:01 +00008219 .bustype = CHIP_BUSTYPE_SPI,
8220 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008221 .model_id = WINBOND_NEX_W25X64,
Zheng Bao1db2b752009-11-26 11:05:01 +00008222 .total_size = 8192,
8223 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008224 .feature_bits = FEATURE_WRSR_WREN,
Antony Rheneus0fbba982011-05-26 14:28:51 +00008225 .tested = TEST_OK_PROBE,
Zheng Bao1db2b752009-11-26 11:05:01 +00008226 .probe = probe_spi_rdid,
8227 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008228 .block_erasers =
8229 {
8230 {
8231 .eraseblocks = { {4 * 1024, 2048} },
8232 .block_erase = spi_block_erase_20,
8233 }, {
8234 .eraseblocks = { {32 * 1024, 256} },
8235 .block_erase = spi_block_erase_52,
8236 }, {
8237 .eraseblocks = { {64 * 1024, 128} },
8238 .block_erase = spi_block_erase_d8,
8239 }, {
8240 .eraseblocks = { {8 * 1024 * 1024, 1} },
8241 .block_erase = spi_block_erase_60,
8242 }, {
8243 .eraseblocks = { {8 * 1024 * 1024, 1} },
8244 .block_erase = spi_block_erase_c7,
8245 }
8246 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008247 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +00008248 .write = spi_chip_write_256,
8249 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008250 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +00008251 },
8252
8253 {
8254 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +00008255 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012",
Urja Rannikko038a3122009-06-28 19:19:25 +00008256 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008257 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008258 .model_id = WINBOND_W29C010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008259 .total_size = 128,
8260 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00008261 .feature_bits = FEATURE_LONG_RESET,
David Hendricks567b7b82011-05-18 01:31:03 +00008262 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008263 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008264 .probe_timing = 10, /* used datasheet for the W29C011A */
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008265 .block_erasers =
8266 {
8267 {
8268 .eraseblocks = { {128 * 1024, 1} },
8269 .block_erase = erase_chip_block_jedec,
8270 }
8271 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008272 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008273 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00008274 },
8275
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008276 {
8277 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +00008278 .name = "W29C020(C)/W29C022",
Urja Rannikko161b8852009-06-05 08:47:37 +00008279 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008280 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008281 .model_id = WINBOND_W29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008282 .total_size = 256,
8283 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00008284 .feature_bits = FEATURE_LONG_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008285 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008286 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008287 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008288 .block_erasers =
8289 {
8290 {
8291 .eraseblocks = { {256 * 1024, 1} },
8292 .block_erase = erase_chip_block_jedec,
8293 }
8294 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008295 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008296 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008297 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00008298 },
8299
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008300 {
8301 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +00008302 .name = "W29C040/P",
Urja Rannikko161b8852009-06-05 08:47:37 +00008303 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008304 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008305 .model_id = WINBOND_W29C040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008306 .total_size = 512,
8307 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00008308 .feature_bits = FEATURE_LONG_RESET,
8309 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008310 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00008311 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008312 .block_erasers =
8313 {
8314 {
8315 .eraseblocks = { {512 * 1024, 1} },
8316 .block_erase = erase_chip_block_jedec,
8317 }
8318 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008319 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008320 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008321 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00008322 },
8323
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008324 {
8325 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +00008326 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012",
Urja Rannikko038a3122009-06-28 19:19:25 +00008327 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008328 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008329 .model_id = WINBOND_W29C010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008330 .total_size = 128,
8331 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00008332 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00008333 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008334 .probe = probe_w29ee011,
Paul Menzelc07a41c2011-06-19 17:23:55 +00008335 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008336 .block_erasers =
8337 {
8338 {
8339 .eraseblocks = { {128 * 1024, 1} },
8340 .block_erase = erase_chip_block_jedec,
8341 }
8342 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008343 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008344 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00008345 },
8346
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008347 {
8348 .vendor = "Winbond",
Michael Karcher19e0aac2011-03-06 17:58:05 +00008349 .name = "W39L040",
8350 .bustype = CHIP_BUSTYPE_PARALLEL,
8351 .manufacture_id = WINBOND_ID,
8352 .model_id = WINBOND_W39L040,
8353 .total_size = 512,
8354 .page_size = 64 * 1024,
8355 .feature_bits = FEATURE_EITHER_RESET,
8356 .tested = TEST_OK_PR,
8357 .probe = probe_jedec,
8358 .probe_timing = 10,
8359 .block_erasers =
8360 {
8361 {
8362 .eraseblocks = { {4 * 1024, 128} },
8363 .block_erase = erase_block_jedec,
8364 }, {
8365 .eraseblocks = { {64 * 1024, 8} },
8366 .block_erase = erase_sector_jedec,
8367 }, {
8368 .eraseblocks = { {512 * 1024, 1} },
8369 .block_erase = erase_chip_block_jedec,
8370 }
8371 },
8372 .printlock = printlock_w39l040,
8373 .write = write_jedec_1,
8374 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008375 .voltage = {3000, 3600},
Michael Karcher19e0aac2011-03-06 17:58:05 +00008376 },
8377
8378 {
8379 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008380 .name = "W39V040A",
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00008381 .bustype = CHIP_BUSTYPE_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008382 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008383 .model_id = WINBOND_W39V040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008384 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00008385 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008386 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00008387 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008388 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00008389 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008390 .block_erasers =
8391 {
8392 {
8393 .eraseblocks = { {64 * 1024, 8} },
8394 .block_erase = erase_sector_jedec,
8395 }, {
8396 .eraseblocks = { {512 * 1024, 1} },
8397 .block_erase = erase_chip_block_jedec,
8398 }
8399 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008400 .printlock = printlock_w39v040a,
Sean Nelson35727f72010-01-28 23:55:12 +00008401 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008402 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008403 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008404 },
8405
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008406 {
8407 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008408 .name = "W39V040B",
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00008409 .bustype = CHIP_BUSTYPE_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008410 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008411 .model_id = WINBOND_W39V040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008412 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00008413 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008414 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00008415 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008416 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00008417 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008418 .block_erasers =
8419 {
8420 {
8421 .eraseblocks = { {64 * 1024, 8} },
8422 .block_erase = erase_sector_jedec,
8423 }, {
8424 .eraseblocks = { {512 * 1024, 1} },
8425 .block_erase = erase_chip_block_jedec,
8426 }
8427 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008428 .printlock = printlock_w39v040b,
Sean Nelson35727f72010-01-28 23:55:12 +00008429 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008430 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008431 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008432 },
8433
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008434 {
8435 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008436 .name = "W39V040C",
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00008437 .bustype = CHIP_BUSTYPE_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008438 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008439 .model_id = WINBOND_W39V040C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008440 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00008441 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008442 .feature_bits = FEATURE_EITHER_RESET,
8443 .tested = TEST_UNTESTED,
8444 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008445 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008446 .block_erasers =
8447 {
8448 {
8449 .eraseblocks = { {64 * 1024, 8} },
8450 .block_erase = erase_sector_jedec,
8451 }, {
8452 .eraseblocks = { {512 * 1024, 1} },
8453 .block_erase = erase_chip_block_jedec,
8454 }
8455 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00008456 .printlock = printlock_w39v040c,
Sean Nelson35727f72010-01-28 23:55:12 +00008457 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008458 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008459 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008460 },
8461
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008462 {
8463 .vendor = "Winbond",
8464 .name = "W39V040FA",
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00008465 .bustype = CHIP_BUSTYPE_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008466 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008467 .model_id = WINBOND_W39V040FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008468 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00008469 .page_size = 64 * 1024,
Michael Karcherc9b63412010-05-30 16:55:18 +00008470 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Antony Rheneus0fbba982011-05-26 14:28:51 +00008471 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008472 .probe = probe_jedec,
Antony Rheneus0fbba982011-05-26 14:28:51 +00008473 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008474 .block_erasers =
8475 {
8476 {
8477 .eraseblocks = { {4 * 1024, 128} },
8478 .block_erase = erase_block_jedec,
8479 }, {
8480 .eraseblocks = { {64 * 1024, 8} },
8481 .block_erase = erase_sector_jedec,
8482 }, {
8483 .eraseblocks = { {512 * 1024, 1} },
8484 .block_erase = erase_chip_block_jedec,
8485 }
8486 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008487 .printlock = printlock_w39v040fa,
Michael Karcherc9b63412010-05-30 16:55:18 +00008488 .unlock = unlock_sst_fwhub,
Sean Nelson35727f72010-01-28 23:55:12 +00008489 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008490 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008491 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008492 },
8493
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008494 {
8495 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008496 .name = "W39V040FB",
8497 .bustype = CHIP_BUSTYPE_FWH,
8498 .manufacture_id = WINBOND_ID,
8499 .model_id = WINBOND_W39V040B,
8500 .total_size = 512,
8501 .page_size = 64 * 1024,
8502 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00008503 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008504 .probe = probe_jedec,
8505 .probe_timing = 10,
8506 .block_erasers =
8507 {
8508 {
8509 .eraseblocks = { {64 * 1024, 8} },
8510 .block_erase = erase_sector_jedec,
8511 }, {
8512 .eraseblocks = { {512 * 1024, 1} },
8513 .block_erase = erase_chip_block_jedec,
8514 }
8515 },
8516 .printlock = printlock_w39v040fb,
Idwer Volleringecc67072010-12-26 23:55:12 +00008517 .unlock = unlock_w39v040fb,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008518 .write = write_jedec_1,
8519 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008520 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008521 },
8522
8523 {
8524 .vendor = "Winbond",
8525 .name = "W39V040FC",
8526 .bustype = CHIP_BUSTYPE_FWH,
8527 .manufacture_id = WINBOND_ID,
8528 .model_id = WINBOND_W39V040C,
8529 .total_size = 512,
8530 .page_size = 64 * 1024,
8531 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
8532 .tested = TEST_UNTESTED,
8533 .probe = probe_jedec,
8534 .probe_timing = 10,
8535 .block_erasers =
8536 {
8537 {
8538 .eraseblocks = { {64 * 1024, 8} },
8539 .block_erase = erase_sector_jedec,
8540 }, {
8541 .eraseblocks = { {512 * 1024, 1} },
8542 .block_erase = erase_chip_block_jedec,
8543 }
8544 },
8545 .printlock = printlock_w39v040fc,
8546 .write = write_jedec_1,
8547 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008548 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008549 },
8550
8551 {
8552 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008553 .name = "W39V080A",
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00008554 .bustype = CHIP_BUSTYPE_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008555 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008556 .model_id = WINBOND_W39V080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008557 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +00008558 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008559 .feature_bits = FEATURE_EITHER_RESET,
8560 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008561 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00008562 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008563 .block_erasers =
8564 {
8565 {
8566 .eraseblocks = { {64 * 1024, 16} },
8567 .block_erase = erase_sector_jedec,
8568 }, {
8569 .eraseblocks = { {1024 * 1024, 1} },
8570 .block_erase = erase_chip_block_jedec,
8571 }
8572 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008573 .printlock = printlock_w39v080a,
Sean Nelson35727f72010-01-28 23:55:12 +00008574 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008575 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008576 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008577 },
8578
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008579 {
8580 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +00008581 .name = "W49F002U/N",
Urja Rannikko038a3122009-06-28 19:19:25 +00008582 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008583 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008584 .model_id = WINBOND_W49F002U,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008585 .total_size = 256,
8586 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00008587 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00008588 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008589 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008590 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008591 .block_erasers =
8592 {
8593 {
8594 .eraseblocks = {
8595 {128 * 1024, 1},
8596 {96 * 1024, 1},
8597 {8 * 1024, 2},
8598 {16 * 1024, 1},
8599 },
8600 .block_erase = erase_sector_jedec,
8601 }, {
8602 .eraseblocks = { {256 * 1024, 1} },
8603 .block_erase = erase_chip_block_jedec,
8604 }
8605 },
Sean Nelson35727f72010-01-28 23:55:12 +00008606 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008607 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008608 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00008609 },
8610
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008611 {
8612 .vendor = "Winbond",
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +00008613 .name = "W49F020",
8614 .bustype = CHIP_BUSTYPE_PARALLEL,
8615 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008616 .model_id = WINBOND_W49F020,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +00008617 .total_size = 256,
8618 .page_size = 128,
8619 .feature_bits = FEATURE_EITHER_RESET,
8620 .tested = TEST_OK_PROBE,
8621 .probe = probe_jedec,
8622 .probe_timing = 10,
8623 .block_erasers =
8624 {
8625 {
8626 .eraseblocks = { {256 * 1024, 1} },
8627 .block_erase = erase_chip_block_jedec,
8628 }
8629 },
8630 .write = write_jedec_1,
8631 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008632 .voltage = {4500, 5500},
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +00008633 },
8634
8635 {
8636 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008637 .name = "W49V002A",
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00008638 .bustype = CHIP_BUSTYPE_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008639 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008640 .model_id = WINBOND_W49V002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008641 .total_size = 256,
8642 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00008643 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008644 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008645 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008646 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008647 .block_erasers =
8648 {
8649 {
8650 .eraseblocks = {
8651 {64 * 1024, 3},
8652 {32 * 1024, 1},
8653 {8 * 1024, 2},
8654 {16 * 1024, 1},
8655 },
8656 .block_erase = erase_sector_jedec,
8657 }, {
8658 .eraseblocks = { {256 * 1024, 1} },
8659 .block_erase = erase_chip_block_jedec,
8660 }
8661 },
Sean Nelson35727f72010-01-28 23:55:12 +00008662 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008663 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008664 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008665 },
8666
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008667 {
8668 .vendor = "Winbond",
8669 .name = "W49V002FA",
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00008670 .bustype = CHIP_BUSTYPE_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008671 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008672 .model_id = WINBOND_W49V002FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008673 .total_size = 256,
8674 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00008675 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00008676 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008677 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008678 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008679 .block_erasers =
8680 {
8681 {
8682 .eraseblocks = {
8683 {64 * 1024, 3},
8684 {32 * 1024, 1},
8685 {8 * 1024, 2},
8686 {16 * 1024, 1},
8687 },
8688 .block_erase = erase_sector_jedec,
8689 }, {
8690 .eraseblocks = { {256 * 1024, 1} },
8691 .block_erase = erase_chip_block_jedec,
8692 }
8693 },
Sean Nelson35727f72010-01-28 23:55:12 +00008694 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008695 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008696 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008697 },
8698
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008699 {
8700 .vendor = "Winbond",
8701 .name = "W39V080FA",
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00008702 .bustype = CHIP_BUSTYPE_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008703 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008704 .model_id = WINBOND_W39V080FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008705 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +00008706 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008707 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00008708 .tested = TEST_OK_PRE,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00008709 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008710 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008711 .block_erasers =
8712 {
8713 {
8714 .eraseblocks = { {64 * 1024, 16}, },
8715 .block_erase = erase_sector_jedec,
8716 }, {
8717 .eraseblocks = { {1024 * 1024, 1} },
8718 .block_erase = erase_chip_block_jedec,
8719 }
8720 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008721 .printlock = printlock_w39v080fa,
8722 .unlock = unlock_w39v080fa,
Sean Nelson35727f72010-01-28 23:55:12 +00008723 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008724 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008725 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +00008726 },
8727
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008728 {
8729 .vendor = "Winbond",
8730 .name = "W39V080FA (dual mode)",
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00008731 .bustype = CHIP_BUSTYPE_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008732 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008733 .model_id = WINBOND_W39V080FA_DM,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008734 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00008735 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008736 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008737 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00008738 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008739 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008740 .block_erasers =
8741 {
8742 {
8743 .eraseblocks = { {64 * 1024, 8}, },
8744 .block_erase = erase_sector_jedec,
8745 }, {
8746 .eraseblocks = { {512 * 1024, 1} },
8747 .block_erase = erase_chip_block_jedec,
8748 }
8749 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008750 .printlock = printlock_w39v080fa_dual,
Sean Nelson35727f72010-01-28 23:55:12 +00008751 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008752 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008753 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +00008754 },
8755
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008756 {
Daniel Lenskidf90d3a2010-07-22 11:44:38 +00008757 .vendor = "AMIC",
8758 .name = "unknown AMIC SPI chip",
8759 .bustype = CHIP_BUSTYPE_SPI,
8760 .manufacture_id = AMIC_ID,
8761 .model_id = GENERIC_DEVICE_ID,
8762 .total_size = 0,
8763 .page_size = 256,
8764 .tested = TEST_BAD_PREW,
8765 .probe = probe_spi_rdid4,
8766 .probe_timing = TIMING_ZERO,
8767 .write = NULL,
8768 .read = NULL,
8769 },
8770
8771 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008772 .vendor = "Atmel",
8773 .name = "unknown Atmel SPI chip",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00008774 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008775 .manufacture_id = ATMEL_ID,
8776 .model_id = GENERIC_DEVICE_ID,
8777 .total_size = 0,
8778 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00008779 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008780 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008781 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008782 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008783 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00008784 },
8785
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008786 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00008787 .vendor = "Eon",
8788 .name = "unknown Eon SPI chip",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00008789 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008790 .manufacture_id = EON_ID_NOPREFIX,
8791 .model_id = GENERIC_DEVICE_ID,
8792 .total_size = 0,
8793 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00008794 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008795 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008796 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008797 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008798 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00008799 },
8800
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008801 {
8802 .vendor = "Macronix",
8803 .name = "unknown Macronix SPI chip",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00008804 .bustype = CHIP_BUSTYPE_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008805 .manufacture_id = MACRONIX_ID,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008806 .model_id = GENERIC_DEVICE_ID,
8807 .total_size = 0,
8808 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00008809 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008810 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008811 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008812 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008813 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00008814 },
8815
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008816 {
8817 .vendor = "PMC",
8818 .name = "unknown PMC SPI chip",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00008819 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008820 .manufacture_id = PMC_ID,
8821 .model_id = GENERIC_DEVICE_ID,
8822 .total_size = 0,
8823 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00008824 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008825 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008826 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008827 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008828 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00008829 },
8830
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008831 {
8832 .vendor = "SST",
8833 .name = "unknown SST SPI chip",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00008834 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008835 .manufacture_id = SST_ID,
8836 .model_id = GENERIC_DEVICE_ID,
8837 .total_size = 0,
8838 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00008839 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008840 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008841 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008842 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008843 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00008844 },
8845
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008846 {
8847 .vendor = "ST",
8848 .name = "unknown ST SPI chip",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00008849 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008850 .manufacture_id = ST_ID,
8851 .model_id = GENERIC_DEVICE_ID,
8852 .total_size = 0,
8853 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00008854 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008855 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008856 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008857 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008858 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00008859 },
Uwe Hermannfc425e82008-03-16 02:06:25 +00008860
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00008861 {
Sean Nelson118e1d62009-11-24 02:08:11 +00008862 .vendor = "Sanyo",
8863 .name = "unknown Sanyo SPI chip",
8864 .bustype = CHIP_BUSTYPE_SPI,
8865 .manufacture_id = SANYO_ID,
8866 .model_id = GENERIC_DEVICE_ID,
8867 .total_size = 0,
8868 .page_size = 256,
8869 .tested = TEST_BAD_PREW,
8870 .probe = probe_spi_rdid,
8871 .probe_timing = TIMING_ZERO,
Sean Nelson118e1d62009-11-24 02:08:11 +00008872 .write = NULL,
8873 .read = NULL,
8874 },
8875
8876 {
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00008877 .vendor = "Generic",
8878 .name = "unknown SPI chip (RDID)",
8879 .bustype = CHIP_BUSTYPE_SPI,
8880 .manufacture_id = GENERIC_MANUF_ID,
8881 .model_id = GENERIC_DEVICE_ID,
8882 .total_size = 0,
8883 .page_size = 256,
8884 .tested = TEST_BAD_PREW,
8885 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00008886 .write = NULL,
8887 },
8888 {
8889 .vendor = "Generic",
8890 .name = "unknown SPI chip (REMS)",
8891 .bustype = CHIP_BUSTYPE_SPI,
8892 .manufacture_id = GENERIC_MANUF_ID,
8893 .model_id = GENERIC_DEVICE_ID,
8894 .total_size = 0,
8895 .page_size = 256,
8896 .tested = TEST_BAD_PREW,
8897 .probe = probe_spi_rems,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00008898 .write = NULL,
8899 },
8900
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008901 { NULL }
Stephan Guilloux72cf5652009-04-21 01:46:07 +00008902};