blob: 7cfd5a7dcfa22cbd609b5def5982276a45a5e362 [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 = "EN25D16",
2927 .bustype = CHIP_BUSTYPE_SPI,
2928 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002929 .model_id = EON_EN25D16,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002930 .total_size = 2048,
2931 .page_size = 256,
2932 .tested = TEST_UNTESTED,
2933 .probe = probe_spi_rdid,
2934 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002935 .block_erasers =
2936 {
2937 {
2938 .eraseblocks = { {4 * 1024, 512} },
2939 .block_erase = spi_block_erase_20,
2940 }, {
2941 .eraseblocks = { {64 * 1024, 32} },
2942 .block_erase = spi_block_erase_d8,
2943 }, {
2944 .eraseblocks = { {64 * 1024, 32} },
2945 .block_erase = spi_block_erase_52,
2946 }, {
2947 .eraseblocks = { {2 * 1024 * 1024, 1} },
2948 .block_erase = spi_block_erase_60,
2949 }, {
2950 .eraseblocks = { {2 * 1024 * 1024, 1} },
2951 .block_erase = spi_block_erase_c7,
2952 }
2953 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002954 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002955 .write = spi_chip_write_256,
2956 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002957 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002958 },
2959
2960 {
2961 .vendor = "Eon",
2962 .name = "EN25F05",
2963 .bustype = CHIP_BUSTYPE_SPI,
2964 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002965 .model_id = EON_EN25F05,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002966 .total_size = 64,
2967 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00002968 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002969 .tested = TEST_UNTESTED,
2970 .probe = probe_spi_rdid,
2971 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002972 .block_erasers =
2973 {
2974 {
2975 .eraseblocks = { {4 * 1024, 16} },
2976 .block_erase = spi_block_erase_20,
2977 }, {
2978 .eraseblocks = { {32 * 1024, 2} },
2979 .block_erase = spi_block_erase_d8,
2980 }, {
2981 .eraseblocks = { {32 * 1024, 2} },
2982 .block_erase = spi_block_erase_52,
2983 }, {
2984 .eraseblocks = { {64 * 1024, 1} },
2985 .block_erase = spi_block_erase_60,
2986 }, {
2987 .eraseblocks = { {64 * 1024, 1} },
2988 .block_erase = spi_block_erase_c7,
2989 }
2990 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002991 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002992 .write = spi_chip_write_256,
2993 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002994 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002995 },
2996
2997 {
2998 .vendor = "Eon",
2999 .name = "EN25F10",
3000 .bustype = CHIP_BUSTYPE_SPI,
3001 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003002 .model_id = EON_EN25F10,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003003 .total_size = 128,
3004 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003005 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003006 .tested = TEST_UNTESTED,
3007 .probe = probe_spi_rdid,
3008 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003009 .block_erasers =
3010 {
3011 {
3012 .eraseblocks = { {4 * 1024, 32} },
3013 .block_erase = spi_block_erase_20,
3014 }, {
3015 .eraseblocks = { {32 * 1024, 4} },
3016 .block_erase = spi_block_erase_d8,
3017 }, {
3018 .eraseblocks = { {32 * 1024, 4} },
3019 .block_erase = spi_block_erase_52,
3020 }, {
3021 .eraseblocks = { {128 * 1024, 1} },
3022 .block_erase = spi_block_erase_60,
3023 }, {
3024 .eraseblocks = { {128 * 1024, 1} },
3025 .block_erase = spi_block_erase_c7,
3026 }
3027 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003028 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003029 .write = spi_chip_write_256,
3030 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003031 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003032 },
3033
3034 {
3035 .vendor = "Eon",
3036 .name = "EN25F20",
3037 .bustype = CHIP_BUSTYPE_SPI,
3038 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003039 .model_id = EON_EN25F20,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003040 .total_size = 256,
3041 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003042 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003043 .tested = TEST_UNTESTED,
3044 .probe = probe_spi_rdid,
3045 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003046 .block_erasers =
3047 {
3048 {
3049 .eraseblocks = { {4 * 1024, 64} },
3050 .block_erase = spi_block_erase_20,
3051 }, {
3052 .eraseblocks = { {64 * 1024, 4} },
3053 .block_erase = spi_block_erase_d8,
3054 }, {
3055 .eraseblocks = { {64 * 1024, 4} },
3056 .block_erase = spi_block_erase_52,
3057 }, {
3058 .eraseblocks = { {256 * 1024, 1} },
3059 .block_erase = spi_block_erase_60,
3060 }, {
3061 .eraseblocks = { {256 * 1024, 1} },
3062 .block_erase = spi_block_erase_c7,
3063 }
3064 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003065 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003066 .write = spi_chip_write_256,
3067 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003068 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003069 },
3070
3071 {
3072 .vendor = "Eon",
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003073 .name = "EN25F40",
3074 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003075 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003076 .model_id = EON_EN25F40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003077 .total_size = 512,
3078 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003079 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerfaaa2b22009-06-22 10:06:28 +00003080 .tested = TEST_OK_PROBE,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003081 .probe = probe_spi_rdid,
3082 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003083 .block_erasers =
3084 {
3085 {
Sean Nelson54596372010-01-09 05:30:14 +00003086 .eraseblocks = { {4 * 1024, 128} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003087 .block_erase = spi_block_erase_20,
3088 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003089 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003090 .block_erase = spi_block_erase_d8,
3091 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003092 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003093 .block_erase = spi_block_erase_60,
3094 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003095 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003096 .block_erase = spi_block_erase_c7,
3097 },
3098 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003099 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003100 .write = spi_chip_write_256,
3101 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003102 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003103 },
3104
3105 {
3106 .vendor = "Eon",
3107 .name = "EN25F80",
3108 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003109 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003110 .model_id = EON_EN25F80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003111 .total_size = 1024,
3112 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003113 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003114 .tested = TEST_OK_PRE,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003115 .probe = probe_spi_rdid,
3116 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003117 .block_erasers =
3118 {
3119 {
3120 .eraseblocks = { {4 * 1024, 256} },
3121 .block_erase = spi_block_erase_20,
3122 }, {
3123 .eraseblocks = { {64 * 1024, 16} },
3124 .block_erase = spi_block_erase_d8,
3125 }, {
3126 .eraseblocks = { {1024 * 1024, 1} },
3127 .block_erase = spi_block_erase_60,
3128 }, {
3129 .eraseblocks = { {1024 * 1024, 1} },
3130 .block_erase = spi_block_erase_c7,
3131 }
3132 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003133 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003134 .write = spi_chip_write_256,
3135 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003136 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003137 },
3138
3139 {
3140 .vendor = "Eon",
3141 .name = "EN25F16",
3142 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003143 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003144 .model_id = EON_EN25F16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003145 .total_size = 2048,
3146 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003147 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003148 .tested = TEST_UNTESTED,
3149 .probe = probe_spi_rdid,
3150 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003151 .block_erasers =
3152 {
3153 {
3154 .eraseblocks = { {4 * 1024, 512} },
3155 .block_erase = spi_block_erase_20,
3156 }, {
3157 .eraseblocks = { {64 * 1024, 32} },
3158 .block_erase = spi_block_erase_d8,
3159 }, {
3160 .eraseblocks = { {2 * 1024 * 1024, 1} },
3161 .block_erase = spi_block_erase_60,
3162 }, {
3163 .eraseblocks = { {2 * 1024 * 1024, 1} },
3164 .block_erase = spi_block_erase_c7,
3165 }
3166 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003167 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003168 .write = spi_chip_write_256,
3169 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003170 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003171 },
3172
3173 {
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003174 .vendor = "Eon",
3175 .name = "EN25F32",
3176 .bustype = CHIP_BUSTYPE_SPI,
3177 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003178 .model_id = EON_EN25F32,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003179 .total_size = 4096,
3180 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003181 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003182 .tested = TEST_UNTESTED,
3183 .probe = probe_spi_rdid,
3184 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003185 .block_erasers =
3186 {
3187 {
3188 .eraseblocks = { {4 * 1024, 1024} },
3189 .block_erase = spi_block_erase_20,
3190 }, {
3191 .eraseblocks = { {64 * 1024, 64} },
3192 .block_erase = spi_block_erase_d8,
3193 }, {
3194 .eraseblocks = { {4 * 1024 * 1024, 1} },
3195 .block_erase = spi_block_erase_60,
3196 }, {
3197 .eraseblocks = { {4 * 1024 * 1024, 1} },
3198 .block_erase = spi_block_erase_c7,
3199 }
3200 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003201 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003202 .write = spi_chip_write_256,
3203 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003204 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003205 },
3206
3207 {
Russ Dill3cd5a122010-03-05 08:44:11 +00003208 .vendor = "Eon",
3209 .name = "EN29F010",
3210 .bustype = CHIP_BUSTYPE_PARALLEL,
3211 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003212 .model_id = EON_EN29F010,
Russ Dill3cd5a122010-03-05 08:44:11 +00003213 .total_size = 128,
3214 .page_size = 128,
3215 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003216 .tested = TEST_OK_PRE,
Russ Dill3cd5a122010-03-05 08:44:11 +00003217 .probe = probe_jedec,
3218 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3219 .block_erasers =
3220 {
3221 {
3222 .eraseblocks = { {16 * 1024, 8} },
3223 .block_erase = erase_sector_jedec,
3224 },
3225 {
3226 .eraseblocks = { {128 * 1024, 1} },
3227 .block_erase = erase_chip_block_jedec,
3228 },
3229 },
3230 .write = write_jedec_1,
3231 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003232 .voltage = {4500, 5500},
Russ Dill3cd5a122010-03-05 08:44:11 +00003233 },
3234
3235 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00003236 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003237 .name = "EN29F002(A)(N)B",
Urja Rannikko161b8852009-06-05 08:47:37 +00003238 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003239 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003240 .model_id = EON_EN29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003241 .total_size = 256,
3242 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00003243 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003244 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003245 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003246 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003247 .block_erasers =
3248 {
3249 {
3250 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00003251 {16 * 1024, 1},
Michael Karchere3cb0a12010-03-13 23:47:09 +00003252 {8 * 1024, 2},
3253 {32 * 1024, 1},
3254 {64 * 1024, 3},
Sean Nelson6b11ad22009-12-23 17:05:59 +00003255 },
3256 .block_erase = erase_sector_jedec,
3257 }, {
3258 .eraseblocks = { {256 * 1024, 1} },
3259 .block_erase = erase_chip_block_jedec,
3260 },
3261 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00003262 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003263 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003264 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003265 },
3266
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003267 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00003268 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003269 .name = "EN29F002(A)(N)T",
Urja Rannikko161b8852009-06-05 08:47:37 +00003270 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003271 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003272 .model_id = EON_EN29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003273 .total_size = 256,
3274 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00003275 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003276 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003277 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003278 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003279 .block_erasers =
3280 {
3281 {
3282 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00003283 {64 * 1024, 3},
Michael Karchere3cb0a12010-03-13 23:47:09 +00003284 {32 * 1024, 1},
3285 {8 * 1024, 2},
3286 {16 * 1024, 1},
Sean Nelson6b11ad22009-12-23 17:05:59 +00003287 },
3288 .block_erase = erase_sector_jedec,
3289 }, {
3290 .eraseblocks = { {256 * 1024, 1} },
3291 .block_erase = erase_chip_block_jedec,
3292 },
3293 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00003294 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003295 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003296 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003297 },
3298
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003299 {
3300 .vendor = "Fujitsu",
3301 .name = "MBM29F004BC",
Urja Rannikko038a3122009-06-28 19:19:25 +00003302 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003303 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003304 .model_id = FUJITSU_MBM29F004BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003305 .total_size = 512,
3306 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003307 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003308 .tested = TEST_UNTESTED,
3309 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003310 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003311 .block_erasers =
3312 {
3313 {
3314 .eraseblocks = {
3315 {16 * 1024, 1},
3316 {8 * 1024, 2},
3317 {32 * 1024, 1},
3318 {64 * 1024, 7},
3319 },
Sean Nelson35727f72010-01-28 23:55:12 +00003320 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003321 }, {
3322 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00003323 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003324 },
3325 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003326 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003327 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003328 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003329 },
3330
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003331 {
3332 .vendor = "Fujitsu",
3333 .name = "MBM29F004TC",
Urja Rannikko038a3122009-06-28 19:19:25 +00003334 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003335 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003336 .model_id = FUJITSU_MBM29F004TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003337 .total_size = 512,
3338 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003339 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003340 .tested = TEST_UNTESTED,
3341 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003342 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003343 .block_erasers =
3344 {
3345 {
3346 .eraseblocks = {
3347 {64 * 1024, 7},
3348 {32 * 1024, 1},
3349 {8 * 1024, 2},
3350 {16 * 1024, 1},
3351 },
Sean Nelson35727f72010-01-28 23:55:12 +00003352 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003353 }, {
3354 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00003355 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003356 },
3357 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003358 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003359 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003360 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003361 },
3362
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003363 {
Sean Nelson35727f72010-01-28 23:55:12 +00003364 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003365 .vendor = "Fujitsu",
3366 .name = "MBM29F400BC",
Urja Rannikko038a3122009-06-28 19:19:25 +00003367 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003368 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003369 .model_id = FUJITSU_MBM29F400BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003370 .total_size = 512,
3371 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003372 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00003373 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003374 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00003375 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003376 .block_erasers =
3377 {
3378 {
3379 .eraseblocks = {
3380 {16 * 1024, 1},
3381 {8 * 1024, 2},
3382 {32 * 1024, 1},
3383 {64 * 1024, 7},
3384 },
3385 .block_erase = block_erase_m29f400bt,
3386 }, {
3387 .eraseblocks = { {512 * 1024, 1} },
3388 .block_erase = block_erase_chip_m29f400bt,
3389 },
3390 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00003391 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003392 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003393 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00003394 },
3395
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003396 {
3397 .vendor = "Fujitsu",
3398 .name = "MBM29F400TC",
Urja Rannikko038a3122009-06-28 19:19:25 +00003399 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003400 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003401 .model_id = FUJITSU_MBM29F400TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003402 .total_size = 512,
3403 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003404 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003405 .tested = TEST_UNTESTED,
3406 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00003407 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003408 .block_erasers =
3409 {
3410 {
3411 .eraseblocks = {
3412 {64 * 1024, 7},
3413 {32 * 1024, 1},
3414 {8 * 1024, 2},
3415 {16 * 1024, 1},
3416 },
3417 .block_erase = block_erase_m29f400bt,
3418 }, {
3419 .eraseblocks = { {512 * 1024, 1} },
3420 .block_erase = block_erase_chip_m29f400bt,
3421 },
3422 },
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00003423 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003424 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003425 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00003426 },
3427
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003428 {
David Borgc96a8bd2010-06-21 16:12:22 +00003429 .vendor = "Hyundai",
3430 .name = "HY29F002T",
3431 .bustype = CHIP_BUSTYPE_PARALLEL,
3432 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003433 .model_id = HYUNDAI_HY29F002T,
David Borgc96a8bd2010-06-21 16:12:22 +00003434 .total_size = 256,
3435 .page_size = 256 * 1024,
3436 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003437 .tested = TEST_OK_PRE,
David Borgc96a8bd2010-06-21 16:12:22 +00003438 .probe = probe_jedec,
3439 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3440 .block_erasers =
3441 {
3442 {
3443 .eraseblocks = {
3444 {64 * 1024, 3},
3445 {32 * 1024, 1},
3446 {8 * 1024, 2},
3447 {16 * 1024, 1},
3448 },
3449 .block_erase = erase_sector_jedec,
3450 }, {
3451 .eraseblocks = { {256 * 1024, 1} },
3452 .block_erase = erase_chip_block_jedec,
3453 },
3454 },
3455 .write = write_jedec_1,
3456 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003457 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00003458 },
3459
3460 {
3461 .vendor = "Hyundai",
3462 .name = "HY29F002B",
3463 .bustype = CHIP_BUSTYPE_PARALLEL,
3464 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003465 .model_id = HYUNDAI_HY29F002B,
David Borgc96a8bd2010-06-21 16:12:22 +00003466 .total_size = 256,
3467 .page_size = 256 * 1024,
3468 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
3469 .tested = TEST_UNTESTED,
3470 .probe = probe_jedec,
3471 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3472 .block_erasers =
3473 {
3474 {
3475 .eraseblocks = {
3476 {16 * 1024, 1},
3477 {8 * 1024, 2},
3478 {32 * 1024, 1},
3479 {64 * 1024, 3},
3480 },
3481 .block_erase = erase_sector_jedec,
3482 }, {
3483 .eraseblocks = { {256 * 1024, 1} },
3484 .block_erase = erase_chip_block_jedec,
3485 },
3486 },
3487 .write = write_jedec_1,
3488 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003489 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00003490 },
3491
3492 {
Joshua Roysf1324e02010-09-16 00:51:51 +00003493 .vendor = "Hyundai",
3494 .name = "HY29F040A",
3495 .bustype = CHIP_BUSTYPE_PARALLEL,
3496 .manufacture_id = HYUNDAI_ID,
3497 .model_id = HYUNDAI_HY29F040A,
3498 .total_size = 512,
3499 .page_size = 64 * 1024,
3500 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
3501 .tested = TEST_UNTESTED,
3502 .probe = probe_jedec,
3503 .probe_timing = TIMING_ZERO,
3504 .block_erasers =
3505 {
3506 {
3507 .eraseblocks = { {64 * 1024, 8} },
3508 .block_erase = erase_sector_jedec,
3509 }, {
3510 .eraseblocks = { {512 * 1024, 1} },
3511 .block_erase = erase_chip_block_jedec,
3512 },
3513 },
3514 .write = write_jedec_1,
3515 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003516 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00003517 },
3518
3519 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003520 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003521 .name = "28F001BN/BX-B",
Urja Rannikko161b8852009-06-05 08:47:37 +00003522 .bustype = CHIP_BUSTYPE_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00003523 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003524 .model_id = INTEL_28F001B,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00003525 .total_size = 128,
3526 .page_size = 128 * 1024, /* 8k + 2x4k + 112k */
Sean Nelsondee4a832010-03-22 04:39:31 +00003527 .tested = TEST_UNTESTED,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00003528 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003529 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00003530 .block_erasers =
3531 {
3532 {
3533 .eraseblocks = {
3534 {8 * 1024, 1},
3535 {4 * 1024, 2},
3536 {112 * 1024, 1},
3537 },
Sean Nelson28accc22010-03-19 18:47:06 +00003538 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00003539 },
3540 },
Sean Nelsondee4a832010-03-22 04:39:31 +00003541 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00003542 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003543 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00003544 },
3545
3546 {
3547 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003548 .name = "28F001BN/BX-T",
Urja Rannikko161b8852009-06-05 08:47:37 +00003549 .bustype = CHIP_BUSTYPE_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00003550 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003551 .model_id = INTEL_28F001T,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00003552 .total_size = 128,
3553 .page_size = 128 * 1024, /* 112k + 2x4k + 8k */
Sean Nelsondee4a832010-03-22 04:39:31 +00003554 .tested = TEST_UNTESTED,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00003555 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003556 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00003557 .block_erasers =
3558 {
3559 {
3560 .eraseblocks = {
3561 {112 * 1024, 1},
3562 {4 * 1024, 2},
3563 {8 * 1024, 1},
3564 },
Sean Nelson28accc22010-03-19 18:47:06 +00003565 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00003566 },
3567 },
Sean Nelsondee4a832010-03-22 04:39:31 +00003568 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00003569 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003570 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00003571 },
3572
3573 {
3574 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003575 .name = "28F002BC/BL/BV/BX-T",
Joshua Roysd97c0e02010-07-22 15:20:43 +00003576 .bustype = CHIP_BUSTYPE_PARALLEL,
3577 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003578 .model_id = INTEL_28F002T,
Joshua Roysd97c0e02010-07-22 15:20:43 +00003579 .total_size = 256,
3580 .page_size = 256 * 1024,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003581 .tested = TEST_OK_PRE,
Joshua Roysd97c0e02010-07-22 15:20:43 +00003582 .probe = probe_82802ab,
3583 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3584 .block_erasers =
3585 {
3586 {
3587 .eraseblocks = {
3588 {128 * 1024, 1},
3589 {96 * 1024, 1},
3590 {8 * 1024, 2},
3591 {16 * 1024, 1},
3592 },
3593 .block_erase = erase_block_82802ab,
3594 },
3595 },
3596 .write = write_82802ab,
3597 .read = read_memmapped,
3598 },
3599
3600 {
3601 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003602 .name = "28F008S3/S5/SC",
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00003603 .bustype = CHIP_BUSTYPE_PARALLEL,
3604 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003605 .model_id = INTEL_28F004S3,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00003606 .total_size = 512,
3607 .page_size = 256,
3608 .tested = TEST_UNTESTED,
3609 .probe = probe_82802ab,
3610 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00003611 .block_erasers =
3612 {
3613 {
3614 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00003615 .block_erase = erase_block_82802ab,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00003616 },
3617 },
Sean Nelsondee4a832010-03-22 04:39:31 +00003618 .unlock = unlock_28f004s5,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00003619 .write = write_82802ab,
3620 .read = read_memmapped,
3621 },
3622
3623 {
3624 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003625 .name = "28F004B5/BE/BV/BX-B",
Michael Karcherad0010a2010-04-03 10:27:08 +00003626 .bustype = CHIP_BUSTYPE_PARALLEL,
3627 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003628 .model_id = INTEL_28F004B,
Michael Karcherad0010a2010-04-03 10:27:08 +00003629 .total_size = 512,
3630 .page_size = 128 * 1024, /* maximal block size */
3631 .tested = TEST_UNTESTED,
3632 .probe = probe_82802ab,
3633 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3634 .block_erasers =
3635 {
3636 {
3637 .eraseblocks = {
3638 {16 * 1024, 1},
3639 {8 * 1024, 2},
3640 {96 * 1024, 1},
3641 {128 * 1024, 3},
3642 },
3643 .block_erase = erase_block_82802ab,
3644 },
3645 },
3646 .write = write_82802ab,
3647 .read = read_memmapped,
3648 },
3649
3650 {
3651 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003652 .name = "28F004B5/BE/BV/BX-T",
Michael Karcherad0010a2010-04-03 10:27:08 +00003653 .bustype = CHIP_BUSTYPE_PARALLEL,
3654 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003655 .model_id = INTEL_28F004T,
Michael Karcherad0010a2010-04-03 10:27:08 +00003656 .total_size = 512,
3657 .page_size = 128 * 1024, /* maximal block size */
3658 .tested = TEST_UNTESTED,
3659 .probe = probe_82802ab,
3660 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3661 .block_erasers =
3662 {
3663 {
3664 .eraseblocks = {
3665 {128 * 1024, 3},
3666 {96 * 1024, 1},
3667 {8 * 1024, 2},
3668 {16 * 1024, 1},
3669 },
3670 .block_erase = erase_block_82802ab,
3671 },
3672 },
3673 .write = write_82802ab,
3674 .read = read_memmapped,
3675 },
3676
3677 {
3678 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003679 .name = "28F400BV/BX/CE/CV-B",
Michael Karcherad0010a2010-04-03 10:27:08 +00003680 .bustype = CHIP_BUSTYPE_PARALLEL,
3681 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003682 .model_id = INTEL_28F400B,
Michael Karcherad0010a2010-04-03 10:27:08 +00003683 .total_size = 512,
3684 .page_size = 128 * 1024, /* maximal block size */
3685 .feature_bits = FEATURE_ADDR_SHIFTED,
3686 .tested = TEST_UNTESTED,
3687 .probe = probe_82802ab,
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 {96 * 1024, 1},
3696 {128 * 1024, 3},
3697 },
3698 .block_erase = erase_block_82802ab,
3699 },
3700 },
3701 .write = write_82802ab,
3702 .read = read_memmapped,
3703 },
3704
3705 {
3706 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003707 .name = "28F400BV/BX/CE/CV-T",
Michael Karcherad0010a2010-04-03 10:27:08 +00003708 .bustype = CHIP_BUSTYPE_PARALLEL,
3709 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003710 .model_id = INTEL_28F400T,
Michael Karcherad0010a2010-04-03 10:27:08 +00003711 .total_size = 512,
3712 .page_size = 128 * 1024, /* maximal block size */
3713 .feature_bits = FEATURE_ADDR_SHIFTED,
3714 .tested = TEST_UNTESTED,
3715 .probe = probe_82802ab,
3716 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3717 .block_erasers =
3718 {
3719 {
3720 .eraseblocks = {
3721 {128 * 1024, 3},
3722 {96 * 1024, 1},
3723 {8 * 1024, 2},
3724 {16 * 1024, 1},
3725 },
3726 .block_erase = erase_block_82802ab,
3727 },
3728 },
3729 .write = write_82802ab,
3730 .read = read_memmapped,
3731 },
3732
3733 {
3734 .vendor = "Intel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003735 .name = "82802AB",
Mateusz Murawskie33890d2009-06-12 11:45:10 +00003736 .bustype = CHIP_BUSTYPE_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003737 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003738 .model_id = INTEL_82802AB,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003739 .total_size = 512,
3740 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00003741 .feature_bits = FEATURE_REGISTERMAP,
Stefan Taunerd06d9412011-06-12 19:47:55 +00003742 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003743 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003744 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00003745 .block_erasers =
3746 {
3747 {
3748 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00003749 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00003750 },
3751 },
Sean Nelson28accc22010-03-19 18:47:06 +00003752 .unlock = unlock_82802ab,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003753 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003754 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003755 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00003756 },
3757
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003758 {
3759 .vendor = "Intel",
3760 .name = "82802AC",
Mateusz Murawskie33890d2009-06-12 11:45:10 +00003761 .bustype = CHIP_BUSTYPE_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003762 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003763 .model_id = INTEL_82802AC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003764 .total_size = 1024,
3765 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00003766 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +00003767 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003768 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003769 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00003770 .block_erasers =
3771 {
3772 {
3773 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +00003774 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00003775 },
3776 },
Sean Nelson28accc22010-03-19 18:47:06 +00003777 .unlock = unlock_82802ab,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003778 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003779 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003780 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00003781 },
3782
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003783 {
3784 .vendor = "Macronix",
3785 .name = "MX25L512",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00003786 .bustype = CHIP_BUSTYPE_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003787 .manufacture_id = MACRONIX_ID,
3788 .model_id = MACRONIX_MX25L512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003789 .total_size = 64,
3790 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00003791 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003792 .tested = TEST_UNTESTED,
3793 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003794 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00003795 .block_erasers =
3796 {
3797 {
3798 .eraseblocks = { {4 * 1024, 16} },
3799 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00003800 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00003801 .eraseblocks = { {64 * 1024, 1} },
3802 .block_erase = spi_block_erase_52,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00003803 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00003804 .eraseblocks = { {64 * 1024, 1} },
3805 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00003806 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00003807 .eraseblocks = { {64 * 1024, 1} },
3808 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00003809 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00003810 .eraseblocks = { {64 * 1024, 1} },
3811 .block_erase = spi_block_erase_c7,
3812 },
3813 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003814 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00003815 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003816 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003817 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00003818 },
3819
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003820 {
3821 .vendor = "Macronix",
3822 .name = "MX25L1005",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00003823 .bustype = CHIP_BUSTYPE_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003824 .manufacture_id = MACRONIX_ID,
3825 .model_id = MACRONIX_MX25L1005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003826 .total_size = 128,
3827 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00003828 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003829 .tested = TEST_UNTESTED,
3830 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003831 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00003832 .block_erasers =
3833 {
3834 {
3835 .eraseblocks = { {4 * 1024, 32} },
3836 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00003837 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00003838 .eraseblocks = { {64 * 1024, 2} },
3839 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00003840 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00003841 .eraseblocks = { {128 * 1024, 1} },
3842 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00003843 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00003844 .eraseblocks = { {128 * 1024, 1} },
3845 .block_erase = spi_block_erase_c7,
3846 },
3847 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003848 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00003849 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003850 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003851 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00003852 },
3853
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003854 {
3855 .vendor = "Macronix",
3856 .name = "MX25L2005",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00003857 .bustype = CHIP_BUSTYPE_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003858 .manufacture_id = MACRONIX_ID,
3859 .model_id = MACRONIX_MX25L2005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003860 .total_size = 256,
3861 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00003862 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003863 .tested = TEST_UNTESTED,
3864 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003865 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00003866 .block_erasers =
3867 {
3868 {
3869 .eraseblocks = { {4 * 1024, 64} },
3870 .block_erase = spi_block_erase_20,
3871 }, {
3872 .eraseblocks = { {64 * 1024, 4} },
3873 .block_erase = spi_block_erase_52,
3874 }, {
3875 .eraseblocks = { {64 * 1024, 4} },
3876 .block_erase = spi_block_erase_d8,
3877 }, {
3878 .eraseblocks = { {256 * 1024, 1} },
3879 .block_erase = spi_block_erase_60,
3880 }, {
3881 .eraseblocks = { {256 * 1024, 1} },
3882 .block_erase = spi_block_erase_c7,
3883 },
3884 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003885 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00003886 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003887 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003888 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00003889 },
3890
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003891 {
3892 .vendor = "Macronix",
3893 .name = "MX25L4005",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00003894 .bustype = CHIP_BUSTYPE_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003895 .manufacture_id = MACRONIX_ID,
3896 .model_id = MACRONIX_MX25L4005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003897 .total_size = 512,
3898 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00003899 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +00003900 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003901 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003902 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00003903 .block_erasers =
3904 {
3905 {
3906 .eraseblocks = { {4 * 1024, 128} },
3907 .block_erase = spi_block_erase_20,
3908 }, {
3909 .eraseblocks = { {64 * 1024, 8} },
3910 .block_erase = spi_block_erase_52,
3911 }, {
3912 .eraseblocks = { {64 * 1024, 8} },
3913 .block_erase = spi_block_erase_d8,
3914 }, {
3915 .eraseblocks = { {512 * 1024, 1} },
3916 .block_erase = spi_block_erase_60,
3917 }, {
3918 .eraseblocks = { {512 * 1024, 1} },
3919 .block_erase = spi_block_erase_c7,
3920 },
3921 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003922 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00003923 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003924 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003925 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00003926 },
3927
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003928 {
3929 .vendor = "Macronix",
3930 .name = "MX25L8005",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00003931 .bustype = CHIP_BUSTYPE_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003932 .manufacture_id = MACRONIX_ID,
3933 .model_id = MACRONIX_MX25L8005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003934 .total_size = 1024,
3935 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00003936 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +00003937 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003938 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003939 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00003940 .block_erasers =
3941 {
3942 {
3943 .eraseblocks = { {4 * 1024, 256} },
3944 .block_erase = spi_block_erase_20,
3945 }, {
3946 .eraseblocks = { {64 * 1024, 16} },
3947 .block_erase = spi_block_erase_52,
3948 }, {
3949 .eraseblocks = { {64 * 1024, 16} },
3950 .block_erase = spi_block_erase_d8,
3951 }, {
3952 .eraseblocks = { {1024 * 1024, 1} },
3953 .block_erase = spi_block_erase_60,
3954 }, {
3955 .eraseblocks = { {1024 * 1024, 1} },
3956 .block_erase = spi_block_erase_c7,
3957 },
3958 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003959 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00003960 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003961 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003962 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00003963 },
3964
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003965 {
3966 .vendor = "Macronix",
3967 .name = "MX25L1605",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00003968 .bustype = CHIP_BUSTYPE_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003969 .manufacture_id = MACRONIX_ID,
3970 .model_id = MACRONIX_MX25L1605,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003971 .total_size = 2048,
3972 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00003973 .feature_bits = FEATURE_WRSR_WREN,
Sven Schnelle4bd8a402011-03-07 10:59:06 +00003974 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003975 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003976 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00003977 .block_erasers =
3978 {
3979 {
3980 .eraseblocks = { {4 * 1024, 512} },
3981 .block_erase = spi_block_erase_20, /* This erase function has 64k blocksize for eLiteFlash */
3982 }, {
3983 .eraseblocks = { {64 * 1024, 32} }, /* Not supported in MX25L1605 (eLiteFlash) and MX25L1605D */
3984 .block_erase = spi_block_erase_52,
3985 }, {
3986 .eraseblocks = { {64 * 1024, 32} },
3987 .block_erase = spi_block_erase_d8,
3988 }, {
3989 .eraseblocks = { {2 * 1024 * 1024, 1} },
3990 .block_erase = spi_block_erase_60,
3991 }, {
3992 .eraseblocks = { {2 * 1024 * 1024, 1} },
3993 .block_erase = spi_block_erase_c7,
3994 },
3995 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003996 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00003997 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003998 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003999 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004000 },
4001
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004002 {
4003 .vendor = "Macronix",
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004004 .name = "MX25L1635D",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004005 .bustype = CHIP_BUSTYPE_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004006 .manufacture_id = MACRONIX_ID,
4007 .model_id = MACRONIX_MX25L1635D,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004008 .total_size = 2048,
4009 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004010 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004011 .tested = TEST_UNTESTED,
4012 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004013 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004014 .block_erasers =
4015 {
4016 {
4017 .eraseblocks = { {4 * 1024, 512} },
4018 .block_erase = spi_block_erase_20,
4019 }, {
4020 .eraseblocks = { {64 * 1024, 32} },
4021 .block_erase = spi_block_erase_d8,
4022 }, {
4023 .eraseblocks = { {2 * 1024 * 1024, 1} },
4024 .block_erase = spi_block_erase_60,
4025 }, {
4026 .eraseblocks = { {2 * 1024 * 1024, 1} },
4027 .block_erase = spi_block_erase_c7,
4028 }
4029 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004030 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004031 .write = spi_chip_write_256,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004032 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004033 .voltage = {2700, 3600},
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004034 },
Stephan Guillouxfd315502009-04-20 22:54:13 +00004035
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004036 {
4037 .vendor = "Macronix",
Stephan Guilloux3611b802010-09-13 19:59:28 +00004038 .name = "MX25L1635E",
4039 .bustype = CHIP_BUSTYPE_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004040 .manufacture_id = MACRONIX_ID,
4041 .model_id = MACRONIX_MX25L1635E,
Stephan Guilloux3611b802010-09-13 19:59:28 +00004042 .total_size = 2048,
4043 .page_size = 256,
4044 .feature_bits = FEATURE_WRSR_WREN,
4045 .tested = TEST_UNTESTED,
4046 .probe = probe_spi_rdid,
4047 .probe_timing = TIMING_ZERO,
4048 .block_erasers =
4049 {
4050 {
4051 .eraseblocks = { {4 * 1024, 512} },
4052 .block_erase = spi_block_erase_20,
4053 }, {
4054 .eraseblocks = { {64 * 1024, 32} },
4055 .block_erase = spi_block_erase_d8,
4056 }, {
4057 .eraseblocks = { {2 * 1024 * 1024, 1} },
4058 .block_erase = spi_block_erase_60,
4059 }, {
4060 .eraseblocks = { {2 * 1024 * 1024, 1} },
4061 .block_erase = spi_block_erase_c7,
4062 }
4063 },
4064 .unlock = spi_disable_blockprotect,
4065 .write = spi_chip_write_256,
4066 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004067 .voltage = {2700, 3600},
Stephan Guilloux3611b802010-09-13 19:59:28 +00004068 },
4069
4070 {
4071 .vendor = "Macronix",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004072 .name = "MX25L3205",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004073 .bustype = CHIP_BUSTYPE_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004074 .manufacture_id = MACRONIX_ID,
4075 .model_id = MACRONIX_MX25L3205,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004076 .total_size = 4096,
4077 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004078 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00004079 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004080 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004081 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004082 .block_erasers =
4083 {
4084 {
4085 .eraseblocks = { {4 * 1024, 1024} },
4086 .block_erase = spi_block_erase_20,
4087 }, {
4088 .eraseblocks = { {4 * 1024, 1024} },
4089 .block_erase = spi_block_erase_d8,
4090 }, {
4091 .eraseblocks = { {4 * 1024 * 1024, 1} },
4092 .block_erase = spi_block_erase_60,
4093 }, {
4094 .eraseblocks = { {4 * 1024 * 1024, 1} },
4095 .block_erase = spi_block_erase_c7,
4096 },
4097 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004098 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004099 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004100 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004101 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004102 },
4103
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004104 {
4105 .vendor = "Macronix",
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00004106 .name = "MX25L3235D",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004107 .bustype = CHIP_BUSTYPE_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004108 .manufacture_id = MACRONIX_ID,
4109 .model_id = MACRONIX_MX25L3235D,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00004110 .total_size = 4096,
4111 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004112 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00004113 .tested = TEST_UNTESTED,
4114 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004115 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004116 .block_erasers =
4117 {
4118 {
4119 .eraseblocks = { {4 * 1024, 1024} },
4120 .block_erase = spi_block_erase_20,
4121 }, {
4122 .eraseblocks = { {64 * 1024, 64} },
4123 .block_erase = spi_block_erase_d8,
4124 }, {
4125 .eraseblocks = { {4 * 1024 * 1024, 1} },
4126 .block_erase = spi_block_erase_60,
4127 }, {
4128 .eraseblocks = { {4 * 1024 * 1024, 1} },
4129 .block_erase = spi_block_erase_c7,
4130 }
4131 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004132 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004133 .write = spi_chip_write_256,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00004134 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004135 .voltage = {2700, 3600},
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00004136 },
4137
4138 {
4139 .vendor = "Macronix",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004140 .name = "MX25L6405",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004141 .bustype = CHIP_BUSTYPE_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004142 .manufacture_id = MACRONIX_ID,
4143 .model_id = MACRONIX_MX25L6405,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004144 .total_size = 8192,
4145 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004146 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger452b3e32009-06-22 11:14:43 +00004147 .tested = TEST_OK_PROBE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004148 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004149 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004150 .block_erasers =
4151 {
4152 {
4153 .eraseblocks = { {64 * 1024, 128} },
4154 .block_erase = spi_block_erase_20,
4155 }, {
4156 .eraseblocks = { {64 * 1024, 128} },
4157 .block_erase = spi_block_erase_d8,
4158 }, {
4159 .eraseblocks = { {8 * 1024 * 1024, 1} },
4160 .block_erase = spi_block_erase_60,
4161 }, {
4162 .eraseblocks = { {8 * 1024 * 1024, 1} },
4163 .block_erase = spi_block_erase_c7,
4164 }
4165 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004166 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004167 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004168 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004169 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004170 },
4171
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004172 {
4173 .vendor = "Macronix",
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00004174 .name = "MX25L12805",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004175 .bustype = CHIP_BUSTYPE_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004176 .manufacture_id = MACRONIX_ID,
4177 .model_id = MACRONIX_MX25L12805,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00004178 .total_size = 16384,
4179 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004180 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00004181 .tested = TEST_UNTESTED,
4182 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004183 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004184 .block_erasers =
4185 {
4186 {
4187 .eraseblocks = { {4 * 1024, 4096} },
4188 .block_erase = spi_block_erase_20,
4189 }, {
4190 .eraseblocks = { {64 * 1024, 256} },
4191 .block_erase = spi_block_erase_d8,
4192 }, {
4193 .eraseblocks = { {16 * 1024 * 1024, 1} },
4194 .block_erase = spi_block_erase_60,
4195 }, {
4196 .eraseblocks = { {16 * 1024 * 1024, 1} },
4197 .block_erase = spi_block_erase_c7,
4198 }
4199 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004200 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004201 .write = spi_chip_write_256,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00004202 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004203 .voltage = {2700, 3600},
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00004204 },
4205
4206 {
4207 .vendor = "Macronix",
Mark Panajotovic502a9132009-08-24 01:42:24 +00004208 .name = "MX29F001B",
4209 .bustype = CHIP_BUSTYPE_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004210 .manufacture_id = MACRONIX_ID,
4211 .model_id = MACRONIX_MX29F001B,
Mark Panajotovic502a9132009-08-24 01:42:24 +00004212 .total_size = 128,
4213 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004214 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
4215 .tested = TEST_UNTESTED,
4216 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00004217 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004218 .block_erasers =
4219 {
4220 {
4221 .eraseblocks = {
4222 {8 * 1024, 1},
4223 {4 * 1024, 2},
4224 {8 * 1024, 2},
4225 {32 * 1024, 1},
4226 {64 * 1024, 1},
4227 },
Sean Nelson35727f72010-01-28 23:55:12 +00004228 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00004229 }, {
4230 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004231 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00004232 }
4233 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004234 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00004235 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004236 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00004237 },
4238
4239 {
4240 .vendor = "Macronix",
4241 .name = "MX29F001T",
4242 .bustype = CHIP_BUSTYPE_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004243 .manufacture_id = MACRONIX_ID,
4244 .model_id = MACRONIX_MX29F001T,
Mark Panajotovic502a9132009-08-24 01:42:24 +00004245 .total_size = 128,
4246 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004247 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stefan Tauner74c6ec62011-05-18 01:31:46 +00004248 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00004249 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00004250 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004251 .block_erasers =
4252 {
4253 {
4254 .eraseblocks = {
4255 {64 * 1024, 1},
4256 {32 * 1024, 1},
4257 {8 * 1024, 2},
4258 {4 * 1024, 2},
4259 {8 * 1024, 1},
4260 },
Sean Nelson35727f72010-01-28 23:55:12 +00004261 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00004262 }, {
4263 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004264 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00004265 }
4266 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004267 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00004268 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004269 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00004270 },
4271
4272 {
4273 .vendor = "Macronix",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004274 .name = "MX29F002B",
Urja Rannikko038a3122009-06-28 19:19:25 +00004275 .bustype = CHIP_BUSTYPE_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004276 .manufacture_id = MACRONIX_ID,
4277 .model_id = MACRONIX_MX29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004278 .total_size = 256,
4279 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004280 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004281 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00004282 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00004283 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004284 .block_erasers =
4285 {
4286 {
4287 .eraseblocks = {
4288 {16 * 1024, 1},
4289 {8 * 1024, 2},
4290 {32 * 1024, 1},
4291 {64 * 1024, 3},
4292 },
Sean Nelson35727f72010-01-28 23:55:12 +00004293 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004294 }, {
4295 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004296 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004297 },
4298 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004299 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004300 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004301 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004302 },
4303
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004304 {
4305 .vendor = "Macronix",
4306 .name = "MX29F002T",
Urja Rannikko038a3122009-06-28 19:19:25 +00004307 .bustype = CHIP_BUSTYPE_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004308 .manufacture_id = MACRONIX_ID,
4309 .model_id = MACRONIX_MX29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004310 .total_size = 256,
4311 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004312 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004313 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +00004314 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00004315 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004316 .block_erasers =
4317 {
4318 {
4319 .eraseblocks = {
4320 {64 * 1024, 3},
4321 {32 * 1024, 1},
4322 {8 * 1024, 2},
4323 {16 * 1024, 1},
4324 },
Sean Nelson35727f72010-01-28 23:55:12 +00004325 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004326 }, {
4327 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004328 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004329 },
4330 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004331 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004332 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004333 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004334 },
4335
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004336 {
4337 .vendor = "Macronix",
Joshua Roysf1324e02010-09-16 00:51:51 +00004338 .name = "MX29F040",
4339 .bustype = CHIP_BUSTYPE_PARALLEL,
4340 .manufacture_id = MACRONIX_ID,
4341 .model_id = MACRONIX_MX29F040,
4342 .total_size = 512,
4343 .page_size = 64 * 1024,
4344 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
4345 .tested = TEST_UNTESTED,
4346 .probe = probe_jedec,
4347 .probe_timing = TIMING_ZERO,
4348 .block_erasers =
4349 {
4350 {
4351 .eraseblocks = { {64 * 1024, 8} },
4352 .block_erase = erase_sector_jedec,
4353 }, {
4354 .eraseblocks = { {512 * 1024, 1} },
4355 .block_erase = erase_chip_block_jedec,
4356 },
4357 },
4358 .write = write_jedec_1,
4359 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004360 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00004361 },
4362
4363 {
4364 .vendor = "Macronix",
Carl-Daniel Hailfinger350a0c32009-07-24 13:59:27 +00004365 .name = "MX29LV040",
Urja Rannikko038a3122009-06-28 19:19:25 +00004366 .bustype = CHIP_BUSTYPE_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004367 .manufacture_id = MACRONIX_ID,
4368 .model_id = MACRONIX_MX29LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004369 .total_size = 512,
4370 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004371 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
4372 .tested = TEST_UNTESTED,
4373 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00004374 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004375 .block_erasers =
4376 {
4377 {
4378 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson35727f72010-01-28 23:55:12 +00004379 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00004380 }, {
4381 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004382 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00004383 },
4384 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004385 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004386 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004387 .voltage = {2700, 3600},
Carl-Daniel Hailfinger7de86392008-12-10 10:32:05 +00004388 },
4389
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004390 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00004391 .vendor = "MoselVitelic",
4392 .name = "V29C51000B",
4393 .bustype = CHIP_BUSTYPE_PARALLEL,
4394 .manufacture_id = SYNCMOS_MVC_ID,
4395 .model_id = MVC_V29C51000B,
4396 .total_size = 64,
4397 .page_size = 512,
4398 .feature_bits = FEATURE_EITHER_RESET,
4399 .tested = TEST_UNTESTED,
4400 .probe = probe_jedec,
4401 .probe_timing = TIMING_ZERO,
4402 .block_erasers =
4403 {
4404 {
4405 .eraseblocks = { {512, 128} },
4406 .block_erase = erase_sector_jedec,
4407 }, {
4408 .eraseblocks = { {64 * 1024, 1} },
4409 .block_erase = erase_chip_block_jedec,
4410 },
4411 },
4412 .write = write_jedec_1,
4413 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004414 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00004415 },
4416
4417 {
4418 .vendor = "MoselVitelic",
4419 .name = "V29C51000T",
4420 .bustype = CHIP_BUSTYPE_PARALLEL,
4421 .manufacture_id = SYNCMOS_MVC_ID,
4422 .model_id = MVC_V29C51000T,
4423 .total_size = 64,
4424 .page_size = 512,
4425 .feature_bits = FEATURE_EITHER_RESET,
4426 .tested = TEST_UNTESTED,
4427 .probe = probe_jedec,
4428 .probe_timing = TIMING_ZERO,
4429 .block_erasers =
4430 {
4431 {
4432 .eraseblocks = { {512, 128} },
4433 .block_erase = erase_sector_jedec,
4434 }, {
4435 .eraseblocks = { {64 * 1024, 1} },
4436 .block_erase = erase_chip_block_jedec,
4437 },
4438 },
4439 .write = write_jedec_1,
4440 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004441 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00004442 },
4443
4444 {
4445 .vendor = "MoselVitelic",
4446 .name = "V29C51400B",
4447 .bustype = CHIP_BUSTYPE_PARALLEL,
4448 .manufacture_id = SYNCMOS_MVC_ID,
4449 .model_id = MVC_V29C51400B,
4450 .total_size = 512,
4451 .page_size = 1024,
4452 .feature_bits = FEATURE_EITHER_RESET,
4453 .tested = TEST_UNTESTED,
4454 .probe = probe_jedec,
4455 .probe_timing = TIMING_ZERO,
4456 .block_erasers =
4457 {
4458 {
4459 .eraseblocks = { {1024, 512} },
4460 .block_erase = erase_sector_jedec,
4461 }, {
4462 .eraseblocks = { {512 * 1024, 1} },
4463 .block_erase = erase_chip_block_jedec,
4464 },
4465 },
4466 .write = write_jedec_1,
4467 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004468 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00004469 },
4470
4471 {
4472 .vendor = "MoselVitelic",
4473 .name = "V29C51400T",
4474 .bustype = CHIP_BUSTYPE_PARALLEL,
4475 .manufacture_id = SYNCMOS_MVC_ID,
4476 .model_id = MVC_V29C51400T,
4477 .total_size = 512,
4478 .page_size = 1024,
4479 .feature_bits = FEATURE_EITHER_RESET,
4480 .tested = TEST_UNTESTED,
4481 .probe = probe_jedec,
4482 .probe_timing = TIMING_ZERO,
4483 .block_erasers =
4484 {
4485 {
4486 .eraseblocks = { {1024, 512} },
4487 .block_erase = erase_sector_jedec,
4488 }, {
4489 .eraseblocks = { {512 * 1024, 1} },
4490 .block_erase = erase_chip_block_jedec,
4491 },
4492 },
4493 .write = write_jedec_1,
4494 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004495 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00004496 },
4497
4498 {
4499 .vendor = "MoselVitelic",
4500 .name = "V29LC51000",
4501 .bustype = CHIP_BUSTYPE_PARALLEL,
4502 .manufacture_id = SYNCMOS_MVC_ID,
4503 .model_id = MVC_V29LC51000,
4504 .total_size = 64,
4505 .page_size = 512,
4506 .feature_bits = FEATURE_EITHER_RESET,
4507 .tested = TEST_UNTESTED,
4508 .probe = probe_jedec,
4509 .probe_timing = TIMING_ZERO,
4510 .block_erasers =
4511 {
4512 {
4513 .eraseblocks = { {512, 128} },
4514 .block_erase = erase_sector_jedec,
4515 }, {
4516 .eraseblocks = { {64 * 1024, 1} },
4517 .block_erase = erase_chip_block_jedec,
4518 },
4519 },
4520 .write = write_jedec_1,
4521 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004522 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00004523 },
4524
4525 {
4526 .vendor = "MoselVitelic",
4527 .name = "V29LC51001",
4528 .bustype = CHIP_BUSTYPE_PARALLEL,
4529 .manufacture_id = SYNCMOS_MVC_ID,
4530 .model_id = MVC_V29LC51001,
4531 .total_size = 128,
4532 .page_size = 512,
4533 .feature_bits = FEATURE_EITHER_RESET,
4534 .tested = TEST_UNTESTED,
4535 .probe = probe_jedec,
4536 .probe_timing = TIMING_ZERO,
4537 .block_erasers =
4538 {
4539 {
4540 .eraseblocks = { {512, 256} },
4541 .block_erase = erase_sector_jedec,
4542 }, {
4543 .eraseblocks = { {128 * 1024, 1} },
4544 .block_erase = erase_chip_block_jedec,
4545 },
4546 },
4547 .write = write_jedec_1,
4548 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004549 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00004550 },
4551
4552 {
4553 .vendor = "MoselVitelic",
4554 .name = "V29LC51002",
4555 .bustype = CHIP_BUSTYPE_PARALLEL,
4556 .manufacture_id = SYNCMOS_MVC_ID,
4557 .model_id = MVC_V29LC51002,
4558 .total_size = 256,
4559 .page_size = 512,
4560 .feature_bits = FEATURE_EITHER_RESET,
4561 .tested = TEST_UNTESTED,
4562 .probe = probe_jedec,
4563 .probe_timing = TIMING_ZERO,
4564 .block_erasers =
4565 {
4566 {
4567 .eraseblocks = { {512, 512} },
4568 .block_erase = erase_sector_jedec,
4569 }, {
4570 .eraseblocks = { {256 * 1024, 1} },
4571 .block_erase = erase_chip_block_jedec,
4572 },
4573 },
4574 .write = write_jedec_1,
4575 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004576 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00004577 },
4578
4579 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004580 .vendor = "Numonyx",
4581 .name = "M25PE10",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004582 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004583 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00004584 .model_id = ST_M25PE10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004585 .total_size = 128,
4586 .page_size = 256,
4587 .tested = TEST_UNTESTED,
4588 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004589 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00004590 .block_erasers =
4591 {
4592 {
4593 .eraseblocks = { {4 * 1024, 32} },
4594 .block_erase = spi_block_erase_20,
4595 }, {
4596 .eraseblocks = { {64 * 1024, 2} },
4597 .block_erase = spi_block_erase_d8,
4598 }, {
4599 .eraseblocks = { {128 * 1024, 1} },
4600 .block_erase = spi_block_erase_c7,
4601 }
4602 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004603 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004604 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004605 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004606 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004607 },
4608
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004609 {
4610 .vendor = "Numonyx",
4611 .name = "M25PE20",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004612 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004613 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00004614 .model_id = ST_M25PE20,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004615 .total_size = 256,
4616 .page_size = 256,
4617 .tested = TEST_UNTESTED,
4618 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004619 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00004620 .block_erasers =
4621 {
4622 {
4623 .eraseblocks = { {4 * 1024, 64} },
4624 .block_erase = spi_block_erase_20,
4625 }, {
4626 .eraseblocks = { {64 * 1024, 4} },
4627 .block_erase = spi_block_erase_d8,
4628 }, {
4629 .eraseblocks = { {256 * 1024, 1} },
4630 .block_erase = spi_block_erase_c7,
4631 }
4632 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004633 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004634 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004635 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004636 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004637 },
4638
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004639 {
4640 .vendor = "Numonyx",
4641 .name = "M25PE40",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004642 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004643 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00004644 .model_id = ST_M25PE40,
Sean Nelson5643c072010-01-19 03:23:07 +00004645 .total_size = 512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004646 .page_size = 256,
4647 .tested = TEST_UNTESTED,
4648 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004649 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00004650 .block_erasers =
4651 {
4652 {
4653 .eraseblocks = { {4 * 1024, 128} },
4654 .block_erase = spi_block_erase_20,
4655 }, {
4656 .eraseblocks = { {64 * 1024, 8} },
4657 .block_erase = spi_block_erase_d8,
4658 }, {
4659 .eraseblocks = { {512 * 1024, 1} },
4660 .block_erase = spi_block_erase_c7,
4661 }
4662 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004663 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004664 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004665 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004666 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004667 },
4668
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004669 {
4670 .vendor = "Numonyx",
4671 .name = "M25PE80",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004672 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004673 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00004674 .model_id = ST_M25PE80,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004675 .total_size = 1024,
4676 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004677 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004678 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004679 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00004680 .block_erasers =
4681 {
4682 {
4683 .eraseblocks = { {4 * 1024, 256} },
4684 .block_erase = spi_block_erase_20,
4685 }, {
4686 .eraseblocks = { {64 * 1024, 16} },
4687 .block_erase = spi_block_erase_d8,
4688 }, {
4689 .eraseblocks = { {1024 * 1024, 1} },
4690 .block_erase = spi_block_erase_c7,
4691 }
4692 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004693 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004694 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004695 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004696 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004697 },
4698
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004699 {
4700 .vendor = "Numonyx",
4701 .name = "M25PE16",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004702 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004703 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00004704 .model_id = ST_M25PE16,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004705 .total_size = 2048,
4706 .page_size = 256,
4707 .tested = TEST_UNTESTED,
4708 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004709 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00004710 .block_erasers =
4711 {
4712 {
4713 .eraseblocks = { {4 * 1024, 512} },
4714 .block_erase = spi_block_erase_20,
4715 }, {
4716 .eraseblocks = { {64 * 1024, 32} },
4717 .block_erase = spi_block_erase_d8,
4718 }, {
4719 .eraseblocks = { {2 * 1024 * 1024, 1} },
4720 .block_erase = spi_block_erase_c7,
4721 }
4722 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004723 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004724 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004725 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004726 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004727 },
4728
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004729 {
4730 .vendor = "PMC",
4731 .name = "Pm25LV010",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004732 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004733 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004734 .model_id = PMC_PM25LV010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004735 .total_size = 128,
4736 .page_size = 256,
4737 .tested = TEST_UNTESTED,
4738 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004739 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00004740 .block_erasers =
4741 {
4742 {
4743 .eraseblocks = { {4 * 1024, 32} },
4744 .block_erase = spi_block_erase_d7,
4745 }, {
4746 .eraseblocks = { {32 * 1024, 4} },
4747 .block_erase = spi_block_erase_d8,
4748 }, {
4749 .eraseblocks = { {128 * 1024, 1} },
4750 .block_erase = spi_block_erase_c7,
4751 }
4752 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004753 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004754 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004755 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004756 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004757 },
4758
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004759 {
4760 .vendor = "PMC",
4761 .name = "Pm25LV016B",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004762 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004763 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004764 .model_id = PMC_PM25LV016B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004765 .total_size = 2048,
4766 .page_size = 256,
4767 .tested = TEST_UNTESTED,
4768 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004769 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00004770 .block_erasers =
4771 {
4772 {
4773 .eraseblocks = { {4 * 1024, 512} },
4774 .block_erase = spi_block_erase_d7,
4775 }, {
4776 .eraseblocks = { {4 * 1024, 512} },
4777 .block_erase = spi_block_erase_20,
4778 }, {
4779 .eraseblocks = { {64 * 1024, 32} },
4780 .block_erase = spi_block_erase_d8,
4781 }, {
4782 .eraseblocks = { {2 * 1024 * 1024, 1} },
4783 .block_erase = spi_block_erase_60,
4784 }, {
4785 .eraseblocks = { {2 * 1024 * 1024, 1} },
4786 .block_erase = spi_block_erase_c7,
4787 }
4788 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004789 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004790 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004791 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004792 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004793 },
4794
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004795 {
4796 .vendor = "PMC",
4797 .name = "Pm25LV020",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004798 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004799 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004800 .model_id = PMC_PM25LV020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004801 .total_size = 256,
4802 .page_size = 256,
4803 .tested = TEST_UNTESTED,
4804 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004805 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00004806 .block_erasers =
4807 {
4808 {
4809 .eraseblocks = { {4 * 1024, 64} },
4810 .block_erase = spi_block_erase_d7,
4811 }, {
4812 .eraseblocks = { {64 * 1024, 4} },
4813 .block_erase = spi_block_erase_d8,
4814 }, {
4815 .eraseblocks = { {256 * 1024, 1} },
4816 .block_erase = spi_block_erase_c7,
4817 }
4818 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004819 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004820 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004821 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004822 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004823 },
4824
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004825 {
4826 .vendor = "PMC",
4827 .name = "Pm25LV040",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004828 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004829 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004830 .model_id = PMC_PM25LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004831 .total_size = 512,
4832 .page_size = 256,
4833 .tested = TEST_UNTESTED,
4834 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004835 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00004836 .block_erasers =
4837 {
4838 {
4839 .eraseblocks = { {4 * 1024, 128} },
4840 .block_erase = spi_block_erase_d7,
4841 }, {
4842 .eraseblocks = { {64 * 1024, 8} },
4843 .block_erase = spi_block_erase_d8,
4844 }, {
4845 .eraseblocks = { {512 * 1024, 1} },
4846 .block_erase = spi_block_erase_c7,
4847 }
4848 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004849 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004850 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004851 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004852 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004853 },
4854
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004855 {
4856 .vendor = "PMC",
4857 .name = "Pm25LV080B",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004858 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004859 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004860 .model_id = PMC_PM25LV080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004861 .total_size = 1024,
4862 .page_size = 256,
4863 .tested = TEST_UNTESTED,
4864 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004865 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00004866 .block_erasers =
4867 {
4868 {
4869 .eraseblocks = { {4 * 1024, 256} },
4870 .block_erase = spi_block_erase_d7,
4871 }, {
4872 .eraseblocks = { {4 * 1024, 256} },
4873 .block_erase = spi_block_erase_20,
4874 }, {
4875 .eraseblocks = { {64 * 1024, 16} },
4876 .block_erase = spi_block_erase_d8,
4877 }, {
4878 .eraseblocks = { {1024 * 1024, 1} },
4879 .block_erase = spi_block_erase_60,
4880 }, {
4881 .eraseblocks = { {1024 * 1024, 1} },
4882 .block_erase = spi_block_erase_c7,
4883 }
4884 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004885 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004886 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004887 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004888 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004889 },
4890
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004891 {
4892 .vendor = "PMC",
4893 .name = "Pm25LV512",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00004894 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004895 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004896 .model_id = PMC_PM25LV512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004897 .total_size = 64,
4898 .page_size = 256,
4899 .tested = TEST_UNTESTED,
4900 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004901 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00004902 .block_erasers =
4903 {
4904 {
4905 .eraseblocks = { {4 * 1024, 16} },
4906 .block_erase = spi_block_erase_d7,
4907 }, {
4908 .eraseblocks = { {32 * 1024, 2} },
4909 .block_erase = spi_block_erase_d8,
4910 }, {
4911 .eraseblocks = { {64 * 1024, 1} },
4912 .block_erase = spi_block_erase_c7,
4913 }
4914 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004915 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004916 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004917 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004918 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004919 },
4920
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004921 {
4922 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00004923 .name = "Pm29F002T",
Uwe Hermannf983d9f2009-06-14 21:53:26 +00004924 .bustype = CHIP_BUSTYPE_PARALLEL,
4925 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004926 .model_id = PMC_PM29F002T,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00004927 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00004928 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004929 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004930 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +00004931 .probe = probe_jedec,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00004932 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00004933 .block_erasers =
4934 {
4935 {
4936 .eraseblocks = {
4937 {128 * 1024, 1},
4938 {96 * 1024, 1},
4939 {8 * 1024, 2},
4940 {16 * 1024, 1},
4941 },
Sean Nelson35727f72010-01-28 23:55:12 +00004942 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00004943 }, {
4944 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004945 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00004946 },
4947 },
Sean Nelson35727f72010-01-28 23:55:12 +00004948 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00004949 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004950 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +00004951 },
4952
4953 {
4954 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00004955 .name = "Pm29F002B",
Uwe Hermannf983d9f2009-06-14 21:53:26 +00004956 .bustype = CHIP_BUSTYPE_PARALLEL,
4957 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004958 .model_id = PMC_PM29F002B,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00004959 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00004960 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004961 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00004962 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00004963 .probe = probe_jedec,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00004964 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00004965 .block_erasers =
4966 {
4967 {
4968 .eraseblocks = {
4969 {16 * 1024, 1},
4970 {8 * 1024, 2},
4971 {96 * 1024, 1},
4972 {128 * 1024, 1},
4973 },
Sean Nelson35727f72010-01-28 23:55:12 +00004974 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00004975 }, {
4976 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004977 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00004978 },
4979 },
Sean Nelson35727f72010-01-28 23:55:12 +00004980 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00004981 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004982 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +00004983 },
4984
4985 {
4986 .vendor = "PMC",
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00004987 .name = "Pm39LV010",
Urja Rannikko038a3122009-06-28 19:19:25 +00004988 .bustype = CHIP_BUSTYPE_PARALLEL,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00004989 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004990 .model_id = PMC_PM39F010, /* Pm39LV010 and Pm39F010 have identical IDs but different voltage */
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00004991 .total_size = 128,
4992 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00004993 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004994 .tested = TEST_OK_PRE,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00004995 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004996 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson5643c072010-01-19 03:23:07 +00004997 .block_erasers =
4998 {
4999 {
5000 .eraseblocks = { {4 * 1024, 32} },
5001 .block_erase = erase_sector_jedec,
5002 }, {
5003 .eraseblocks = { {64 * 1024, 2} },
5004 .block_erase = erase_block_jedec,
5005 }, {
5006 .eraseblocks = { {128 * 1024, 1} },
5007 .block_erase = erase_chip_block_jedec,
5008 }
5009 },
Sean Nelson35727f72010-01-28 23:55:12 +00005010 .write = write_jedec_1,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00005011 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005012 .voltage = {2700, 3600},
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00005013 },
5014
5015 {
5016 .vendor = "PMC",
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005017 .name = "Pm39LV020",
5018 .bustype = CHIP_BUSTYPE_PARALLEL,
5019 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005020 .model_id = PMC_PM39LV020,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005021 .total_size = 256,
5022 .page_size = 4096,
5023 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
5024 .tested = TEST_UNTESTED,
5025 .probe = probe_jedec,
5026 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5027 .block_erasers =
5028 {
5029 {
5030 .eraseblocks = { {4 * 1024, 64} },
5031 .block_erase = erase_sector_jedec,
5032 }, {
5033 .eraseblocks = { {64 * 1024, 4} },
5034 .block_erase = erase_block_jedec,
5035 }, {
5036 .eraseblocks = { {256 * 1024, 1} },
5037 .block_erase = erase_chip_block_jedec,
5038 }
5039 },
5040 .write = write_jedec_1,
5041 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005042 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005043 },
5044
5045 {
5046 .vendor = "PMC",
5047 .name = "Pm39LV040",
5048 .bustype = CHIP_BUSTYPE_PARALLEL,
5049 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005050 .model_id = PMC_PM39LV040,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005051 .total_size = 512,
5052 .page_size = 4096,
5053 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
5054 .tested = TEST_UNTESTED,
5055 .probe = probe_jedec,
5056 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5057 .block_erasers =
5058 {
5059 {
5060 .eraseblocks = { {4 * 1024, 128} },
5061 .block_erase = erase_sector_jedec,
5062 }, {
5063 .eraseblocks = { {64 * 1024, 8} },
5064 .block_erase = erase_block_jedec,
5065 }, {
5066 .eraseblocks = { {512 * 1024, 1} },
5067 .block_erase = erase_chip_block_jedec,
5068 }
5069 },
5070 .write = write_jedec_1,
5071 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005072 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005073 },
5074
5075 {
5076 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005077 .name = "Pm49FL002",
Uwe Hermann431f4f72010-09-05 12:41:25 +00005078 .bustype = CHIP_BUSTYPE_LPC | CHIP_BUSTYPE_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005079 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005080 .model_id = PMC_PM49FL002,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005081 .total_size = 256,
5082 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005083 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunerd06d9412011-06-12 19:47:55 +00005084 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00005085 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005086 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00005087 .block_erasers =
5088 {
5089 {
5090 .eraseblocks = { {4 * 1024, 64} },
5091 .block_erase = erase_sector_jedec,
5092 }, {
5093 .eraseblocks = { {16 * 1024, 16} },
5094 .block_erase = erase_block_jedec,
5095 }, {
5096 .eraseblocks = { {256 * 1024, 1} },
5097 .block_erase = erase_chip_block_jedec,
5098 }
5099 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00005100 .unlock = unlock_49fl00x,
Sean Nelson36172342010-02-27 18:01:15 +00005101 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005102 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005103 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005104 },
5105
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005106 {
5107 .vendor = "PMC",
5108 .name = "Pm49FL004",
Uwe Hermann431f4f72010-09-05 12:41:25 +00005109 .bustype = CHIP_BUSTYPE_LPC | CHIP_BUSTYPE_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005110 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005111 .model_id = PMC_PM49FL004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005112 .total_size = 512,
5113 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005114 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00005115 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00005116 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005117 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00005118 .block_erasers =
5119 {
5120 {
5121 .eraseblocks = { {4 * 1024, 128} },
5122 .block_erase = erase_sector_jedec,
5123 }, {
5124 .eraseblocks = { {64 * 1024, 8} },
5125 .block_erase = erase_block_jedec,
5126 }, {
5127 .eraseblocks = { {512 * 1024, 1} },
5128 .block_erase = erase_chip_block_jedec,
5129 }
5130 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00005131 .unlock = unlock_49fl00x,
Sean Nelson36172342010-02-27 18:01:15 +00005132 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005133 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005134 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005135 },
5136
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005137 {
Sean Nelsond70b09c2009-11-24 02:11:08 +00005138 .vendor = "Sanyo",
5139 .name = "LF25FW203A",
5140 .bustype = CHIP_BUSTYPE_SPI,
5141 .manufacture_id = SANYO_ID,
5142 .model_id = SANYO_LE25FW203A,
5143 .total_size = 2048,
5144 .page_size = 256,
5145 .tested = TEST_UNTESTED,
5146 .probe = probe_spi_rdid,
5147 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005148 .block_erasers =
5149 {
5150 {
5151 .eraseblocks = { {64 * 1024, 32} },
5152 .block_erase = spi_block_erase_d8,
5153 }, {
5154 .eraseblocks = { {2 * 1024 * 1024, 1} },
5155 .block_erase = spi_block_erase_c7,
5156 }
5157 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005158 .unlock = spi_disable_blockprotect,
Sean Nelsond70b09c2009-11-24 02:11:08 +00005159 .write = spi_chip_write_256,
5160 .read = spi_chip_read,
5161 },
5162
5163 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005164 .vendor = "Sharp",
5165 .name = "LHF00L04",
Urja Rannikko038a3122009-06-28 19:19:25 +00005166 .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005167 .manufacture_id = SHARP_ID,
5168 .model_id = SHARP_LHF00L04,
5169 .total_size = 1024,
5170 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005171 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005172 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005173 .probe = probe_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00005174 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00005175 .block_erasers =
5176 {
5177 {
5178 .eraseblocks = {
5179 {64 * 1024, 15},
5180 {8 * 1024, 8}
5181 },
Sean Nelson28accc22010-03-19 18:47:06 +00005182 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00005183 }, {
5184 .eraseblocks = {
5185 {1024 * 1024, 1}
5186 },
Sean Nelson51c83fb2010-01-20 20:55:53 +00005187 .block_erase = NULL, /* 30 D0, only in A/A mux mode */
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00005188 },
5189 },
Sean Nelson28accc22010-03-19 18:47:06 +00005190 .unlock = unlock_82802ab,
5191 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005192 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005193 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005194 },
5195
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005196 {
5197 .vendor = "Spansion",
Rudy Hostf4e57772010-11-29 00:37:49 +00005198 .name = "S25FL004A",
5199 .bustype = CHIP_BUSTYPE_SPI,
5200 .manufacture_id = SPANSION_ID,
5201 .model_id = SPANSION_S25FL004A,
5202 .total_size = 512,
5203 .page_size = 256,
5204 .tested = TEST_UNTESTED,
5205 .probe = probe_spi_rdid,
5206 .probe_timing = TIMING_ZERO,
5207 .block_erasers =
5208 {
5209 {
5210 .eraseblocks = { {64 * 1024, 8} },
5211 .block_erase = spi_block_erase_d8,
5212 }, {
5213 .eraseblocks = { {512 * 1024, 1} },
5214 .block_erase = spi_block_erase_c7,
5215 }
5216 },
5217 .unlock = spi_disable_blockprotect,
5218 .write = spi_chip_write_256,
5219 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005220 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00005221 },
5222
5223 {
5224 .vendor = "Spansion",
Michael Karcher23ff4602010-01-12 23:29:30 +00005225 .name = "S25FL008A",
5226 .bustype = CHIP_BUSTYPE_SPI,
5227 .manufacture_id = SPANSION_ID,
5228 .model_id = SPANSION_S25FL008A,
5229 .total_size = 1024,
5230 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005231 .tested = TEST_OK_PRE,
Michael Karcher23ff4602010-01-12 23:29:30 +00005232 .probe = probe_spi_rdid,
5233 .probe_timing = TIMING_ZERO,
Michael Karcher23ff4602010-01-12 23:29:30 +00005234 .block_erasers =
5235 {
5236 {
5237 .eraseblocks = { {64 * 1024, 16} },
5238 .block_erase = spi_block_erase_d8,
5239 }, {
5240 .eraseblocks = { {1024 * 1024, 1} },
5241 .block_erase = spi_block_erase_c7,
5242 }
5243 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005244 .unlock = spi_disable_blockprotect,
Michael Karcher23ff4602010-01-12 23:29:30 +00005245 .write = spi_chip_write_256,
5246 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005247 .voltage = {2700, 3600},
Michael Karcher23ff4602010-01-12 23:29:30 +00005248 },
5249
5250 {
5251 .vendor = "Spansion",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005252 .name = "S25FL016A",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00005253 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005254 .manufacture_id = SPANSION_ID,
5255 .model_id = SPANSION_S25FL016A,
5256 .total_size = 2048,
5257 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005258 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005259 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005260 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005261 .block_erasers =
5262 {
5263 {
5264 .eraseblocks = { {64 * 1024, 32} },
5265 .block_erase = spi_block_erase_d8,
5266 }, {
5267 .eraseblocks = { {2 * 1024 * 1024, 1} },
5268 .block_erase = spi_block_erase_c7,
5269 }
5270 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005271 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005272 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005273 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005274 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005275 },
5276
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005277 {
Rudy Hostf4e57772010-11-29 00:37:49 +00005278 .vendor = "Spansion",
5279 .name = "S25FL032A",
5280 .bustype = CHIP_BUSTYPE_SPI,
5281 .manufacture_id = SPANSION_ID,
5282 .model_id = SPANSION_S25FL032A,
5283 .total_size = 4096,
5284 .page_size = 256,
5285 .tested = TEST_UNTESTED,
5286 .probe = probe_spi_rdid,
5287 .probe_timing = TIMING_ZERO,
5288 .block_erasers =
5289 {
5290 {
5291 .eraseblocks = { {64 * 1024, 64} },
5292 .block_erase = spi_block_erase_d8,
5293 }, {
5294 .eraseblocks = { {4 * 1024 * 1024, 1} },
5295 .block_erase = spi_block_erase_c7,
5296 }
5297 },
5298 .unlock = spi_disable_blockprotect,
5299 .write = spi_chip_write_256,
5300 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005301 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00005302 },
5303
5304 {
5305 .vendor = "Spansion",
5306 .name = "S25FL064A",
5307 .bustype = CHIP_BUSTYPE_SPI,
5308 .manufacture_id = SPANSION_ID,
5309 .model_id = SPANSION_S25FL064A,
5310 .total_size = 8192,
5311 .page_size = 256,
5312 .tested = TEST_OK_PREW,
5313 .probe = probe_spi_rdid,
5314 .probe_timing = TIMING_ZERO,
5315 .block_erasers =
5316 {
5317 {
5318 .eraseblocks = { {64 * 1024, 128} },
5319 .block_erase = spi_block_erase_d8,
5320 }, {
5321 .eraseblocks = { {8 * 1024 * 1024, 1} },
5322 .block_erase = spi_block_erase_c7,
5323 }
5324 },
5325 .unlock = spi_disable_blockprotect,
5326 .write = spi_chip_write_256,
5327 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005328 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00005329 },
5330
5331 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005332 .vendor = "SST",
Mark Marshall90021f22010-12-03 14:48:11 +00005333 .name = "SST25VF010.REMS",
5334 .bustype = CHIP_BUSTYPE_SPI,
5335 .manufacture_id = SST_ID,
5336 .model_id = SST_SST25VF010_REMS,
5337 .total_size = 128,
5338 .page_size = 256,
5339 .tested = TEST_OK_PREW,
5340 .probe = probe_spi_rems,
5341 .probe_timing = TIMING_ZERO,
5342 .block_erasers =
5343 {
5344 {
5345 .eraseblocks = { {4 * 1024, 32} },
5346 .block_erase = spi_block_erase_20,
5347 }, {
5348 .eraseblocks = { {32 * 1024, 4} },
5349 .block_erase = spi_block_erase_52,
5350 }, {
5351 .eraseblocks = { {128 * 1024, 1} },
5352 .block_erase = spi_block_erase_60,
5353 },
5354 },
5355 .unlock = spi_disable_blockprotect,
5356 .write = spi_chip_write_1,
5357 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005358 .voltage = {2700, 3600},
Mark Marshall90021f22010-12-03 14:48:11 +00005359 },
5360
5361 {
5362 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005363 .name = "SST25VF016B",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00005364 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005365 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005366 .model_id = SST_SST25VF016B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005367 .total_size = 2048,
5368 .page_size = 256,
Mark Marshall90021f22010-12-03 14:48:11 +00005369 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005370 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005371 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00005372 .block_erasers =
5373 {
5374 {
5375 .eraseblocks = { {4 * 1024, 512} },
5376 .block_erase = spi_block_erase_20,
5377 }, {
5378 .eraseblocks = { {32 * 1024, 64} },
5379 .block_erase = spi_block_erase_52,
5380 }, {
5381 .eraseblocks = { {64 * 1024, 32} },
5382 .block_erase = spi_block_erase_d8,
5383 }, {
5384 .eraseblocks = { {2 * 1024 * 1024, 1} },
5385 .block_erase = spi_block_erase_60,
5386 }, {
5387 .eraseblocks = { {2 * 1024 * 1024, 1} },
5388 .block_erase = spi_block_erase_c7,
5389 },
5390 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005391 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger93bb3752009-05-13 22:19:12 +00005392 .write = spi_chip_write_1,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005393 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005394 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005395 },
5396
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005397 {
5398 .vendor = "SST",
5399 .name = "SST25VF032B",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00005400 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005401 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005402 .model_id = SST_SST25VF032B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005403 .total_size = 4096,
5404 .page_size = 256,
Stefan Taunerfcf6a8c2011-05-18 01:32:00 +00005405 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005406 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005407 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00005408 .block_erasers =
5409 {
5410 {
5411 .eraseblocks = { {4 * 1024, 1024} },
5412 .block_erase = spi_block_erase_20,
5413 }, {
5414 .eraseblocks = { {32 * 1024, 128} },
5415 .block_erase = spi_block_erase_52,
5416 }, {
5417 .eraseblocks = { {64 * 1024, 64} },
5418 .block_erase = spi_block_erase_d8,
5419 }, {
5420 .eraseblocks = { {4 * 1024 * 1024, 1} },
5421 .block_erase = spi_block_erase_60,
5422 }, {
5423 .eraseblocks = { {4 * 1024 * 1024, 1} },
5424 .block_erase = spi_block_erase_c7,
5425 },
5426 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005427 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +00005428 .write = spi_aai_write,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00005429 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005430 .voltage = {2700, 3600},
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00005431 },
5432
5433 {
5434 .vendor = "SST",
Ed Swierk86f4e6d2010-07-21 15:02:22 +00005435 .name = "SST25VF064C",
5436 .bustype = CHIP_BUSTYPE_SPI,
5437 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005438 .model_id = SST_SST25VF064C,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00005439 .total_size = 8192,
5440 .page_size = 256,
Stefan Tauner8179be52011-06-04 13:13:34 +00005441 .tested = TEST_OK_PREW,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00005442 .probe = probe_spi_rdid,
5443 .probe_timing = TIMING_ZERO,
5444 .block_erasers =
5445 {
5446 {
5447 .eraseblocks = { {4 * 1024, 2048} },
5448 .block_erase = spi_block_erase_20,
5449 }, {
5450 .eraseblocks = { {32 * 1024, 256} },
5451 .block_erase = spi_block_erase_52,
5452 }, {
5453 .eraseblocks = { {64 * 1024, 128} },
5454 .block_erase = spi_block_erase_d8,
5455 }, {
5456 .eraseblocks = { {8 * 1024 * 1024, 1} },
5457 .block_erase = spi_block_erase_60,
5458 }, {
5459 .eraseblocks = { {8 * 1024 * 1024, 1} },
5460 .block_erase = spi_block_erase_c7,
5461 },
5462 },
5463 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +00005464 .write = spi_chip_write_256,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00005465 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005466 .voltage = {2700, 3600},
Ed Swierk86f4e6d2010-07-21 15:02:22 +00005467 },
5468
5469 {
5470 .vendor = "SST",
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00005471 .name = "SST25VF040.REMS",
5472 .bustype = CHIP_BUSTYPE_SPI,
5473 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005474 .model_id = SST_SST25VF040_REMS,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00005475 .total_size = 512,
5476 .page_size = 256,
5477 .tested = TEST_OK_PR,
5478 .probe = probe_spi_rems,
5479 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00005480 .block_erasers =
5481 {
5482 {
5483 .eraseblocks = { {4 * 1024, 128} },
5484 .block_erase = spi_block_erase_20,
5485 }, {
5486 .eraseblocks = { {32 * 1024, 16} },
5487 .block_erase = spi_block_erase_52,
5488 }, {
5489 .eraseblocks = { {512 * 1024, 1} },
5490 .block_erase = spi_block_erase_60,
5491 },
5492 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005493 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger93bb3752009-05-13 22:19:12 +00005494 .write = spi_chip_write_1,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005495 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005496 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005497 },
5498
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005499 {
5500 .vendor = "SST",
5501 .name = "SST25VF040B",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00005502 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005503 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005504 .model_id = SST_SST25VF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005505 .total_size = 512,
5506 .page_size = 256,
5507 .tested = TEST_UNTESTED,
5508 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005509 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00005510 .block_erasers =
5511 {
5512 {
5513 .eraseblocks = { {4 * 1024, 128} },
5514 .block_erase = spi_block_erase_20,
5515 }, {
5516 .eraseblocks = { {32 * 1024, 16} },
5517 .block_erase = spi_block_erase_52,
5518 }, {
5519 .eraseblocks = { {64 * 1024, 8} },
5520 .block_erase = spi_block_erase_d8,
5521 }, {
5522 .eraseblocks = { {512 * 1024, 1} },
5523 .block_erase = spi_block_erase_60,
5524 }, {
5525 .eraseblocks = { {512 * 1024, 1} },
5526 .block_erase = spi_block_erase_c7,
5527 },
5528 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005529 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger93bb3752009-05-13 22:19:12 +00005530 .write = spi_chip_write_1,
Zheng Bao0677dff2009-02-25 08:07:33 +00005531 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005532 .voltage = {2700, 3600},
Zheng Bao0677dff2009-02-25 08:07:33 +00005533 },
5534
5535 {
5536 .vendor = "SST",
Stefan Reinauer5cacf8c2010-06-14 12:58:06 +00005537 .name = "SST25LF040A.RES",
5538 .bustype = CHIP_BUSTYPE_SPI,
5539 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005540 .model_id = SST_SST25VF040_REMS,
Stefan Reinauer5cacf8c2010-06-14 12:58:06 +00005541 .total_size = 512,
5542 .page_size = 256,
5543 .tested = TEST_OK_PROBE,
5544 .probe = probe_spi_res2,
5545 .probe_timing = TIMING_ZERO,
5546 .block_erasers =
5547 {
5548 {
5549 .eraseblocks = { {4 * 1024, 128} },
5550 .block_erase = spi_block_erase_20,
5551 }, {
5552 .eraseblocks = { {32 * 1024, 16} },
5553 .block_erase = spi_block_erase_52,
5554 }, {
5555 .eraseblocks = { {512 * 1024, 1} },
5556 .block_erase = spi_block_erase_60,
5557 },
5558 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005559 .unlock = spi_disable_blockprotect,
Stefan Reinauer5cacf8c2010-06-14 12:58:06 +00005560 .write = spi_chip_write_1,
5561 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005562 .voltage = {3000, 3600},
Stefan Reinauer5cacf8c2010-06-14 12:58:06 +00005563 },
5564
5565 {
5566 .vendor = "SST",
Peter Stugefd9217d2009-01-26 03:37:40 +00005567 .name = "SST25VF040B.REMS",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00005568 .bustype = CHIP_BUSTYPE_SPI,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005569 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005570 .model_id = SST_SST25VF040B_REMS,
Peter Stugefd9217d2009-01-26 03:37:40 +00005571 .total_size = 512,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00005572 .page_size = 256,
Peter Stugefd9217d2009-01-26 03:37:40 +00005573 .tested = TEST_OK_PR,
5574 .probe = probe_spi_rems,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005575 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00005576 .block_erasers =
5577 {
5578 {
5579 .eraseblocks = { {4 * 1024, 128} },
5580 .block_erase = spi_block_erase_20,
5581 }, {
5582 .eraseblocks = { {32 * 1024, 16} },
5583 .block_erase = spi_block_erase_52,
5584 }, {
5585 .eraseblocks = { {64 * 1024, 8} },
5586 .block_erase = spi_block_erase_d8,
5587 }, {
5588 .eraseblocks = { {512 * 1024, 1} },
5589 .block_erase = spi_block_erase_60,
5590 }, {
5591 .eraseblocks = { {512 * 1024, 1} },
5592 .block_erase = spi_block_erase_c7,
5593 },
5594 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005595 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger93bb3752009-05-13 22:19:12 +00005596 .write = spi_chip_write_1,
Peter Stugefd9217d2009-01-26 03:37:40 +00005597 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005598 .voltage = {2700, 3600},
Peter Stugefd9217d2009-01-26 03:37:40 +00005599 },
5600
5601 {
5602 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005603 .name = "SST25VF080B",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00005604 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005605 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005606 .model_id = SST_SST25VF080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005607 .total_size = 1024,
5608 .page_size = 256,
John Schmergec965c2d2011-05-18 11:28:47 +00005609 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005610 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005611 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00005612 .block_erasers =
5613 {
5614 {
5615 .eraseblocks = { {4 * 1024, 256} },
5616 .block_erase = spi_block_erase_20,
5617 }, {
5618 .eraseblocks = { {32 * 1024, 32} },
5619 .block_erase = spi_block_erase_52,
5620 }, {
5621 .eraseblocks = { {64 * 1024, 16} },
5622 .block_erase = spi_block_erase_d8,
5623 }, {
5624 .eraseblocks = { {1024 * 1024, 1} },
5625 .block_erase = spi_block_erase_60,
5626 }, {
5627 .eraseblocks = { {1024 * 1024, 1} },
5628 .block_erase = spi_block_erase_c7,
5629 },
5630 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005631 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005632 .write = spi_chip_write_1,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005633 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005634 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005635 },
5636
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005637 {
5638 .vendor = "SST",
5639 .name = "SST28SF040A",
Urja Rannikko038a3122009-06-28 19:19:25 +00005640 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005641 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005642 .model_id = SST_SST28SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005643 .total_size = 512,
5644 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00005645 .feature_bits = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005646 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005647 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00005648 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00005649 .block_erasers =
5650 {
5651 {
5652 .eraseblocks = { {128, 4096} },
5653 .block_erase = erase_sector_28sf040,
5654 }, {
5655 .eraseblocks = { {512 * 1024, 1} },
5656 .block_erase = erase_chip_28sf040,
5657 }
5658 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00005659 .unlock = unprotect_28sf040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005660 .write = write_28sf040,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005661 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005662 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005663 },
5664
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005665 {
5666 .vendor = "SST",
5667 .name = "SST29EE010",
Urja Rannikko038a3122009-06-28 19:19:25 +00005668 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005669 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005670 .model_id = SST_SST29EE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005671 .total_size = 128,
5672 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00005673 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005674 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005675 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005676 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00005677 .block_erasers =
5678 {
5679 {
5680 .eraseblocks = { {128 * 1024, 1} },
5681 .block_erase = erase_chip_block_jedec,
5682 }
5683 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005684 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005685 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005686 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005687 },
5688
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005689 {
5690 .vendor = "SST",
5691 .name = "SST29LE010",
Urja Rannikko038a3122009-06-28 19:19:25 +00005692 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005693 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005694 .model_id = SST_SST29LE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005695 .total_size = 128,
5696 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00005697 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005698 .tested = TEST_UNTESTED,
5699 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005700 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00005701 .block_erasers =
5702 {
5703 {
5704 .eraseblocks = { {128 * 1024, 1} },
5705 .block_erase = erase_chip_block_jedec,
5706 }
5707 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005708 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005709 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005710 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005711 },
5712
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005713 {
5714 .vendor = "SST",
5715 .name = "SST29EE020A",
Urja Rannikko038a3122009-06-28 19:19:25 +00005716 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005717 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005718 .model_id = SST_SST29EE020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005719 .total_size = 256,
5720 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00005721 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005722 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005723 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005724 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00005725 .block_erasers =
5726 {
5727 {
5728 .eraseblocks = { {256 * 1024, 1} },
5729 .block_erase = erase_chip_block_jedec,
5730 }
5731 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005732 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005733 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005734 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005735 },
5736
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005737 {
5738 .vendor = "SST",
5739 .name = "SST29LE020",
Urja Rannikko038a3122009-06-28 19:19:25 +00005740 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005741 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005742 .model_id = SST_SST29LE020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005743 .total_size = 256,
5744 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00005745 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005746 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005747 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005748 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00005749 .block_erasers =
5750 {
5751 {
5752 .eraseblocks = { {256 * 1024, 1} },
5753 .block_erase = erase_chip_block_jedec,
5754 }
5755 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005756 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005757 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005758 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005759 },
5760
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005761 {
5762 .vendor = "SST",
Uwe Hermann48da3f92010-01-23 15:15:19 +00005763 .name = "SST39SF512",
5764 .bustype = CHIP_BUSTYPE_PARALLEL,
5765 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005766 .model_id = SST_SST39SF512,
Uwe Hermann48da3f92010-01-23 15:15:19 +00005767 .total_size = 64,
5768 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00005769 .feature_bits = FEATURE_EITHER_RESET,
Idwer Vollering7913fb42011-03-07 15:32:58 +00005770 .tested = TEST_OK_PREW,
Uwe Hermann48da3f92010-01-23 15:15:19 +00005771 .probe = probe_jedec,
5772 .probe_timing = 1, /* 150 ns */
Uwe Hermann48da3f92010-01-23 15:15:19 +00005773 .block_erasers =
5774 {
5775 {
5776 .eraseblocks = { {4 * 1024, 16} },
5777 .block_erase = erase_sector_jedec,
5778 }, {
5779 .eraseblocks = { {64 * 1024, 1} },
5780 .block_erase = erase_chip_block_jedec,
5781 }
5782 },
Sean Nelson35727f72010-01-28 23:55:12 +00005783 .write = write_jedec_1,
Uwe Hermann48da3f92010-01-23 15:15:19 +00005784 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005785 .voltage = {4500, 5500},
Uwe Hermann48da3f92010-01-23 15:15:19 +00005786 },
5787
5788 {
5789 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005790 .name = "SST39SF010A",
Urja Rannikko038a3122009-06-28 19:19:25 +00005791 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005792 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005793 .model_id = SST_SST39SF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005794 .total_size = 128,
5795 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00005796 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00005797 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005798 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005799 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00005800 .block_erasers =
5801 {
5802 {
5803 .eraseblocks = { {4 * 1024, 32} },
5804 .block_erase = erase_sector_jedec,
5805 }, {
5806 .eraseblocks = { {128 * 1024, 1} },
5807 .block_erase = erase_chip_block_jedec,
5808 }
5809 },
Sean Nelson35727f72010-01-28 23:55:12 +00005810 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005811 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005812 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005813 },
5814
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005815 {
5816 .vendor = "SST",
5817 .name = "SST39SF020A",
Urja Rannikko038a3122009-06-28 19:19:25 +00005818 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005819 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005820 .model_id = SST_SST39SF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005821 .total_size = 256,
5822 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00005823 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann19f46f22011-06-18 22:56:14 +00005824 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005825 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00005826 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00005827 .block_erasers =
5828 {
5829 {
5830 .eraseblocks = { {4 * 1024, 64} },
5831 .block_erase = erase_sector_jedec,
5832 }, {
5833 .eraseblocks = { {256 * 1024, 1} },
5834 .block_erase = erase_chip_block_jedec,
5835 }
5836 },
Sean Nelson35727f72010-01-28 23:55:12 +00005837 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005838 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005839 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005840 },
5841
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005842 {
5843 .vendor = "SST",
5844 .name = "SST39SF040",
Urja Rannikko038a3122009-06-28 19:19:25 +00005845 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005846 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005847 .model_id = SST_SST39SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005848 .total_size = 512,
5849 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00005850 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005851 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005852 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00005853 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00005854 .block_erasers =
5855 {
5856 {
5857 .eraseblocks = { {4 * 1024, 128} },
5858 .block_erase = erase_sector_jedec,
5859 }, {
5860 .eraseblocks = { {512 * 1024, 1} },
5861 .block_erase = erase_chip_block_jedec,
5862 }
5863 },
Sean Nelson35727f72010-01-28 23:55:12 +00005864 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005865 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005866 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005867 },
5868
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005869 {
5870 .vendor = "SST",
5871 .name = "SST39VF512",
Urja Rannikko038a3122009-06-28 19:19:25 +00005872 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005873 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005874 .model_id = SST_SST39VF512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005875 .total_size = 64,
5876 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00005877 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005878 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005879 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00005880 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00005881 .block_erasers =
5882 {
5883 {
5884 .eraseblocks = { {4 * 1024, 16} },
5885 .block_erase = erase_sector_jedec,
5886 }, {
5887 .eraseblocks = { {64 * 1024, 1} },
5888 .block_erase = erase_chip_block_jedec,
5889 }
5890 },
Sean Nelson35727f72010-01-28 23:55:12 +00005891 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005892 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005893 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005894 },
5895
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005896 {
5897 .vendor = "SST",
5898 .name = "SST39VF010",
Urja Rannikko038a3122009-06-28 19:19:25 +00005899 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005900 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005901 .model_id = SST_SST39VF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005902 .total_size = 128,
5903 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00005904 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005905 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005906 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00005907 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00005908 .block_erasers =
5909 {
5910 {
5911 .eraseblocks = { {4 * 1024, 32} },
5912 .block_erase = erase_sector_jedec,
5913 }, {
5914 .eraseblocks = { {128 * 1024, 1} },
5915 .block_erase = erase_chip_block_jedec,
5916 }
5917 },
Sean Nelson35727f72010-01-28 23:55:12 +00005918 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005919 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005920 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005921 },
5922
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005923 {
5924 .vendor = "SST",
5925 .name = "SST39VF020",
Urja Rannikko038a3122009-06-28 19:19:25 +00005926 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005927 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005928 .model_id = SST_SST39VF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005929 .total_size = 256,
5930 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00005931 .feature_bits = FEATURE_EITHER_RESET,
5932 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005933 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00005934 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00005935 .block_erasers =
5936 {
5937 {
5938 .eraseblocks = { {4 * 1024, 64} },
5939 .block_erase = erase_sector_jedec,
5940 }, {
5941 .eraseblocks = { {256 * 1024, 1} },
5942 .block_erase = erase_chip_block_jedec,
5943 }
5944 },
Sean Nelson35727f72010-01-28 23:55:12 +00005945 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005946 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005947 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005948 },
5949
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005950 {
5951 .vendor = "SST",
5952 .name = "SST39VF040",
Urja Rannikko038a3122009-06-28 19:19:25 +00005953 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005954 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005955 .model_id = SST_SST39VF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005956 .total_size = 512,
5957 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00005958 .feature_bits = FEATURE_EITHER_RESET,
5959 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005960 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00005961 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00005962 .block_erasers =
5963 {
5964 {
5965 .eraseblocks = { {4 * 1024, 128} },
5966 .block_erase = erase_sector_jedec,
5967 }, {
5968 .eraseblocks = { {512 * 1024, 1} },
5969 .block_erase = erase_chip_block_jedec,
5970 }
5971 },
Sean Nelson35727f72010-01-28 23:55:12 +00005972 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005973 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005974 .voltage = {2700, 3600},
Carl-Daniel Hailfinger90eff152008-12-08 23:51:45 +00005975 },
FENG yu ningff692fb2008-12-08 18:15:10 +00005976
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005977 {
5978 .vendor = "SST",
Peter Stuge8440cc02009-01-25 23:55:12 +00005979 .name = "SST39VF080",
Urja Rannikko038a3122009-06-28 19:19:25 +00005980 .bustype = CHIP_BUSTYPE_PARALLEL,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005981 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005982 .model_id = SST_SST39VF080,
Peter Stuge8440cc02009-01-25 23:55:12 +00005983 .total_size = 1024,
5984 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00005985 .feature_bits = FEATURE_EITHER_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +00005986 .tested = TEST_UNTESTED,
5987 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00005988 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00005989 .block_erasers =
5990 {
5991 {
5992 .eraseblocks = { {4 * 1024, 256} },
5993 .block_erase = erase_sector_jedec,
5994 }, {
5995 .eraseblocks = { {64 * 1024, 16} },
5996 .block_erase = erase_block_jedec,
5997 }, {
5998 .eraseblocks = { {1024 * 1024, 1} },
5999 .block_erase = erase_chip_block_jedec,
6000 }
6001 },
Sean Nelson35727f72010-01-28 23:55:12 +00006002 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006003 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006004 .voltage = {2700, 3600},
Peter Stuge8440cc02009-01-25 23:55:12 +00006005 },
6006
6007 {
6008 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006009 .name = "SST49LF002A/B",
Urja Rannikko038a3122009-06-28 19:19:25 +00006010 .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006011 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006012 .model_id = SST_SST49LF002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006013 .total_size = 256,
6014 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006015 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00006016 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006017 .probe = probe_jedec,
6018 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006019 .block_erasers =
6020 {
6021 {
6022 .eraseblocks = { {4 * 1024, 64} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006023 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006024 }, {
6025 .eraseblocks = { {16 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006026 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006027 }, {
6028 .eraseblocks = { {256 * 1024, 1} },
6029 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
6030 }
6031 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006032 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006033 .unlock = unlock_sst_fwhub,
6034 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006035 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006036 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006037 },
6038
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006039 {
6040 .vendor = "SST",
6041 .name = "SST49LF003A/B",
Urja Rannikko038a3122009-06-28 19:19:25 +00006042 .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006043 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006044 .model_id = SST_SST49LF003A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006045 .total_size = 384,
6046 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006047 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Peter Lemenkov45835c42009-09-25 01:09:18 +00006048 .tested = TEST_OK_PR,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006049 .probe = probe_jedec,
6050 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006051 .block_erasers =
6052 {
6053 {
6054 .eraseblocks = { {4 * 1024, 96} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006055 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006056 }, {
6057 .eraseblocks = { {64 * 1024, 6} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006058 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006059 }, {
6060 .eraseblocks = { {384 * 1024, 1} },
6061 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
6062 }
6063 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006064 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006065 .unlock = unlock_sst_fwhub,
6066 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006067 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006068 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006069 },
6070
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006071 {
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00006072 /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB)
6073 * and is only honored for 64k block erase, but not 4k sector erase.
6074 */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006075 .vendor = "SST",
6076 .name = "SST49LF004A/B",
Urja Rannikko038a3122009-06-28 19:19:25 +00006077 .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006078 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006079 .model_id = SST_SST49LF004A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006080 .total_size = 512,
6081 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006082 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00006083 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006084 .probe = probe_jedec,
6085 .probe_timing = 1, /* 150 ns */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00006086 .block_erasers =
6087 {
6088 {
6089 .eraseblocks = { {4 * 1024, 128} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006090 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00006091 }, {
6092 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006093 .block_erase = erase_block_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00006094 }, {
6095 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson51c83fb2010-01-20 20:55:53 +00006096 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00006097 },
6098 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006099 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006100 .unlock = unlock_sst_fwhub,
6101 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006102 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006103 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006104 },
6105
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006106 {
6107 .vendor = "SST",
6108 .name = "SST49LF004C",
Urja Rannikko038a3122009-06-28 19:19:25 +00006109 .bustype = CHIP_BUSTYPE_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006110 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006111 .model_id = SST_SST49LF004C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006112 .total_size = 512,
6113 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006114 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006115 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006116 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00006117 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006118 .block_erasers =
6119 {
6120 {
6121 .eraseblocks = { {4 * 1024, 128} },
6122 .block_erase = erase_sector_49lfxxxc,
6123 }, {
6124 .eraseblocks = {
6125 {64 * 1024, 7},
6126 {32 * 1024, 1},
6127 {8 * 1024, 2},
6128 {16 * 1024, 1},
6129 },
Sean Nelson69e58112010-03-23 17:10:28 +00006130 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006131 }
6132 },
Sean Nelson69e58112010-03-23 17:10:28 +00006133 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00006134 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006135 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006136 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006137 },
6138
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006139 {
6140 .vendor = "SST",
6141 .name = "SST49LF008A",
Urja Rannikko038a3122009-06-28 19:19:25 +00006142 .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006143 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006144 .model_id = SST_SST49LF008A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006145 .total_size = 1024,
6146 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006147 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006148 .tested = TEST_OK_PRE,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006149 .probe = probe_jedec,
6150 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006151 .block_erasers =
6152 {
6153 {
6154 .eraseblocks = { {4 * 1024, 256} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006155 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006156 }, {
6157 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006158 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006159 }, {
6160 .eraseblocks = { {1024 * 1024, 1} },
6161 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
6162 }
6163 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006164 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006165 .unlock = unlock_sst_fwhub,
6166 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006167 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006168 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006169 },
6170
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006171 {
6172 .vendor = "SST",
6173 .name = "SST49LF008C",
Urja Rannikko038a3122009-06-28 19:19:25 +00006174 .bustype = CHIP_BUSTYPE_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006175 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006176 .model_id = SST_SST49LF008C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006177 .total_size = 1024,
6178 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006179 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006180 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006181 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00006182 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006183 .block_erasers =
6184 {
6185 {
6186 .eraseblocks = { {4 * 1024, 256} },
6187 .block_erase = erase_sector_49lfxxxc,
6188 }, {
6189 .eraseblocks = {
6190 {64 * 1024, 15},
6191 {32 * 1024, 1},
6192 {8 * 1024, 2},
6193 {16 * 1024, 1},
6194 },
Sean Nelson69e58112010-03-23 17:10:28 +00006195 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006196 }
6197 },
Sean Nelson69e58112010-03-23 17:10:28 +00006198 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00006199 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006200 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006201 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006202 },
6203
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006204 {
6205 .vendor = "SST",
6206 .name = "SST49LF016C",
Urja Rannikko038a3122009-06-28 19:19:25 +00006207 .bustype = CHIP_BUSTYPE_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006208 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006209 .model_id = SST_SST49LF016C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006210 .total_size = 2048,
6211 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006212 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006213 .tested = TEST_OK_PR,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006214 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00006215 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006216 .block_erasers =
6217 {
6218 {
6219 .eraseblocks = { {4 * 1024, 512} },
6220 .block_erase = erase_sector_49lfxxxc,
6221 }, {
6222 .eraseblocks = {
6223 {64 * 1024, 31},
6224 {32 * 1024, 1},
6225 {8 * 1024, 2},
6226 {16 * 1024, 1},
6227 },
Sean Nelson69e58112010-03-23 17:10:28 +00006228 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006229 }
6230 },
Sean Nelson69e58112010-03-23 17:10:28 +00006231 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00006232 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006233 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006234 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006235 },
6236
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006237 {
6238 .vendor = "SST",
6239 .name = "SST49LF020",
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006240 .bustype = CHIP_BUSTYPE_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006241 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006242 .model_id = SST_SST49LF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006243 .total_size = 256,
6244 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006245 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +00006246 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006247 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006248 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006249 .block_erasers =
6250 {
6251 {
6252 .eraseblocks = { {4 * 1024, 64} },
6253 .block_erase = erase_sector_jedec,
6254 }, {
6255 .eraseblocks = { {16 * 1024, 16} },
6256 .block_erase = erase_block_jedec,
6257 }, {
6258 .eraseblocks = { {256 * 1024, 1} },
6259 .block_erase = NULL,
6260 }
6261 },
Sean Nelson35727f72010-01-28 23:55:12 +00006262 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006263 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006264 .voltage = {3000, 3600},
Sven Schnellec208dfb2009-01-07 12:35:09 +00006265 },
6266
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006267 {
6268 .vendor = "SST",
6269 .name = "SST49LF020A",
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006270 .bustype = CHIP_BUSTYPE_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006271 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006272 .model_id = SST_SST49LF020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006273 .total_size = 256,
Carl-Daniel Hailfingerda654322009-07-23 01:44:38 +00006274 .page_size = 4 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006275 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006276 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006277 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006278 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006279 .block_erasers =
6280 {
6281 {
6282 .eraseblocks = { {4 * 1024, 64} },
6283 .block_erase = erase_sector_jedec,
6284 }, {
6285 .eraseblocks = { {16 * 1024, 16} },
6286 .block_erase = erase_block_jedec,
6287 }, {
6288 .eraseblocks = { {256 * 1024, 1} },
6289 .block_erase = NULL,
6290 }
6291 },
Sean Nelson35727f72010-01-28 23:55:12 +00006292 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006293 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006294 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006295 },
6296
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006297 {
6298 .vendor = "SST",
6299 .name = "SST49LF040",
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006300 .bustype = CHIP_BUSTYPE_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006301 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006302 .model_id = SST_SST49LF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006303 .total_size = 512,
6304 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006305 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006306 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006307 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006308 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006309 .block_erasers =
6310 {
6311 {
6312 .eraseblocks = { {4 * 1024, 128} },
6313 .block_erase = erase_sector_jedec,
6314 }, {
6315 .eraseblocks = { {64 * 1024, 8} },
6316 .block_erase = erase_block_jedec,
6317 }, {
6318 .eraseblocks = { {512 * 1024, 1} },
6319 .block_erase = NULL,
6320 }
6321 },
Sean Nelson35727f72010-01-28 23:55:12 +00006322 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006323 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006324 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006325 },
6326
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006327 {
6328 .vendor = "SST",
6329 .name = "SST49LF040B",
Urja Rannikko038a3122009-06-28 19:19:25 +00006330 .bustype = CHIP_BUSTYPE_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006331 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006332 .model_id = SST_SST49LF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006333 .total_size = 512,
6334 .page_size = 64 * 1024,
Joshua Roysa84b0bd2010-08-16 22:12:39 +00006335 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006336 .tested = TEST_OK_PRE,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006337 .probe = probe_jedec,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006338 .probe_timing = 1, /* 150ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006339 .block_erasers =
6340 {
6341 {
6342 .eraseblocks = { {4 * 1024, 128} },
6343 .block_erase = erase_sector_jedec,
6344 }, {
6345 .eraseblocks = { {64 * 1024, 8} },
6346 .block_erase = erase_block_jedec,
6347 }, {
6348 .eraseblocks = { {512 * 1024, 1} },
6349 .block_erase = NULL,
6350 }
6351 },
Joshua Roysa84b0bd2010-08-16 22:12:39 +00006352 .unlock = unlock_82802ab,
Sean Nelson35727f72010-01-28 23:55:12 +00006353 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006354 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006355 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006356 },
6357
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006358 {
6359 .vendor = "SST",
6360 .name = "SST49LF080A",
Urja Rannikko038a3122009-06-28 19:19:25 +00006361 .bustype = CHIP_BUSTYPE_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006362 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006363 .model_id = SST_SST49LF080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006364 .total_size = 1024,
6365 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006366 .feature_bits = FEATURE_EITHER_RESET,
Brandon Dowdyf07bf322011-03-06 18:31:11 +00006367 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006368 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00006369 .probe_timing = TIMING_FIXME,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006370 .block_erasers =
6371 {
6372 {
6373 .eraseblocks = { {4 * 1024, 256} },
6374 .block_erase = erase_sector_jedec,
6375 }, {
6376 .eraseblocks = { {64 * 1024, 16} },
6377 .block_erase = erase_block_jedec,
6378 }, {
6379 .eraseblocks = { {1024 * 1024, 1} },
6380 .block_erase = NULL,
6381 }
6382 },
Sean Nelson35727f72010-01-28 23:55:12 +00006383 .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 = "SST49LF160C",
Urja Rannikko038a3122009-06-28 19:19:25 +00006391 .bustype = CHIP_BUSTYPE_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006392 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006393 .model_id = SST_SST49LF160C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006394 .total_size = 2048,
6395 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006396 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006397 .tested = TEST_OK_PRE,
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, 512} },
6404 .block_erase = erase_sector_49lfxxxc,
6405 }, {
6406 .eraseblocks = {
6407 {64 * 1024, 31},
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 Nelson6e0b9122010-02-19 00:52:10 +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 = "ST",
6423 .name = "M25P05-A",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00006424 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006425 .manufacture_id = ST_ID,
6426 .model_id = ST_M25P05A,
6427 .total_size = 64,
6428 .page_size = 256,
6429 .tested = TEST_UNTESTED,
6430 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006431 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006432 .block_erasers =
6433 {
6434 {
6435 .eraseblocks = { {32 * 1024, 2} },
6436 .block_erase = spi_block_erase_d8,
6437 }, {
6438 .eraseblocks = { {64 * 1024, 1} },
6439 .block_erase = spi_block_erase_c7,
6440 }
6441 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006442 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006443 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006444 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006445 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006446 },
6447
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00006448 /* The ST M25P05 is a bit of a problem. It has the same ID as the
6449 * ST M25P05-A in RES mode, but supports only 128 byte writes instead
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00006450 * of 256 byte writes. We rely heavily on the fact that probe_spi_res1
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00006451 * only is successful if RDID does not work.
6452 */
6453 {
6454 .vendor = "ST",
6455 .name = "M25P05.RES",
6456 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00006457 .manufacture_id = 0, /* Not used. */
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00006458 .model_id = ST_M25P05_RES,
6459 .total_size = 64,
6460 .page_size = 256,
6461 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00006462 .probe = probe_spi_res1,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00006463 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006464 .block_erasers =
6465 {
6466 {
6467 .eraseblocks = { {32 * 1024, 2} },
6468 .block_erase = spi_block_erase_d8,
6469 }, {
6470 .eraseblocks = { {64 * 1024, 1} },
6471 .block_erase = spi_block_erase_c7,
6472 }
6473 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006474 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00006475 .write = spi_chip_write_1, /* 128 */
6476 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006477 .voltage = {2700, 3600},
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00006478 },
6479
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006480 {
6481 .vendor = "ST",
6482 .name = "M25P10-A",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00006483 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006484 .manufacture_id = ST_ID,
6485 .model_id = ST_M25P10A,
6486 .total_size = 128,
6487 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006488 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006489 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006490 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006491 .block_erasers =
6492 {
6493 {
6494 .eraseblocks = { {32 * 1024, 4} },
6495 .block_erase = spi_block_erase_d8,
6496 }, {
6497 .eraseblocks = { {128 * 1024, 1} },
6498 .block_erase = spi_block_erase_c7,
6499 }
6500 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006501 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006502 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006503 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006504 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006505 },
6506
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00006507 /* The ST M25P10 has the same problem as the M25P05. */
6508 {
6509 .vendor = "ST",
6510 .name = "M25P10.RES",
6511 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00006512 .manufacture_id = 0, /* Not used. */
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00006513 .model_id = ST_M25P10_RES,
6514 .total_size = 128,
6515 .page_size = 256,
6516 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00006517 .probe = probe_spi_res1,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00006518 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006519 .block_erasers =
6520 {
6521 {
6522 .eraseblocks = { {32 * 1024, 4} },
6523 .block_erase = spi_block_erase_d8,
6524 }, {
6525 .eraseblocks = { {128 * 1024, 1} },
6526 .block_erase = spi_block_erase_c7,
6527 }
6528 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006529 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00006530 .write = spi_chip_write_1, /* 128 */
6531 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006532 .voltage = {2700, 3600},
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00006533 },
6534
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006535 {
6536 .vendor = "ST",
6537 .name = "M25P20",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00006538 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006539 .manufacture_id = ST_ID,
6540 .model_id = ST_M25P20,
6541 .total_size = 256,
6542 .page_size = 256,
6543 .tested = TEST_UNTESTED,
6544 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006545 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006546 .block_erasers =
6547 {
6548 {
6549 .eraseblocks = { {64 * 1024, 4} },
6550 .block_erase = spi_block_erase_d8,
6551 }, {
6552 .eraseblocks = { {256 * 1024, 1} },
6553 .block_erase = spi_block_erase_c7,
6554 }
6555 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006556 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006557 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006558 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006559 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006560 },
6561
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006562 {
6563 .vendor = "ST",
6564 .name = "M25P40",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00006565 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006566 .manufacture_id = ST_ID,
6567 .model_id = ST_M25P40,
6568 .total_size = 512,
6569 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006570 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006571 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006572 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006573 .block_erasers =
6574 {
6575 {
6576 .eraseblocks = { {64 * 1024, 8} },
6577 .block_erase = spi_block_erase_d8,
6578 }, {
6579 .eraseblocks = { {512 * 1024, 1} },
6580 .block_erase = spi_block_erase_c7,
6581 }
6582 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006583 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006584 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006585 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006586 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006587 },
6588
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006589 {
6590 .vendor = "ST",
6591 .name = "M25P40-old",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00006592 .bustype = CHIP_BUSTYPE_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00006593 .manufacture_id = 0, /* Not used. */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006594 .model_id = ST_M25P40_RES,
6595 .total_size = 512,
6596 .page_size = 256,
6597 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00006598 .probe = probe_spi_res1,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006599 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006600 .block_erasers =
6601 {
6602 {
6603 .eraseblocks = { {64 * 1024, 8} },
6604 .block_erase = spi_block_erase_d8,
6605 }, {
6606 .eraseblocks = { {512 * 1024, 1} },
6607 .block_erase = spi_block_erase_c7,
6608 }
6609 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006610 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006611 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006612 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00006613 },
6614
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006615 {
6616 .vendor = "ST",
6617 .name = "M25P80",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00006618 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006619 .manufacture_id = ST_ID,
6620 .model_id = ST_M25P80,
6621 .total_size = 1024,
6622 .page_size = 256,
Uwe Hermann19f46f22011-06-18 22:56:14 +00006623 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006624 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006625 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006626 .block_erasers =
6627 {
6628 {
6629 .eraseblocks = { {64 * 1024, 16} },
6630 .block_erase = spi_block_erase_d8,
6631 }, {
6632 .eraseblocks = { {1024 * 1024, 1} },
6633 .block_erase = spi_block_erase_c7,
6634 }
6635 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006636 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006637 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006638 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006639 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006640 },
6641
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006642 {
6643 .vendor = "ST",
6644 .name = "M25P16",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00006645 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006646 .manufacture_id = ST_ID,
6647 .model_id = ST_M25P16,
6648 .total_size = 2048,
6649 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006650 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006651 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006652 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006653 .block_erasers =
6654 {
6655 {
6656 .eraseblocks = { {64 * 1024, 32} },
6657 .block_erase = spi_block_erase_d8,
6658 }, {
6659 .eraseblocks = { {2 * 1024 * 1024, 1} },
6660 .block_erase = spi_block_erase_c7,
6661 }
6662 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006663 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006664 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006665 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006666 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006667 },
6668
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006669 {
6670 .vendor = "ST",
6671 .name = "M25P32",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00006672 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006673 .manufacture_id = ST_ID,
6674 .model_id = ST_M25P32,
6675 .total_size = 4096,
6676 .page_size = 256,
Antony Rheneus0fbba982011-05-26 14:28:51 +00006677 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006678 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006679 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006680 .block_erasers =
6681 {
6682 {
6683 .eraseblocks = { {64 * 1024, 64} },
6684 .block_erase = spi_block_erase_d8,
6685 }, {
6686 .eraseblocks = { {4 * 1024 * 1024, 1} },
6687 .block_erase = spi_block_erase_c7,
6688 }
6689 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006690 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006691 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006692 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006693 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006694 },
6695
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006696 {
6697 .vendor = "ST",
6698 .name = "M25P64",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00006699 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006700 .manufacture_id = ST_ID,
6701 .model_id = ST_M25P64,
6702 .total_size = 8192,
6703 .page_size = 256,
6704 .tested = TEST_UNTESTED,
6705 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006706 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006707 .block_erasers =
6708 {
6709 {
6710 .eraseblocks = { {64 * 1024, 128} },
6711 .block_erase = spi_block_erase_d8,
6712 }, {
6713 .eraseblocks = { {8 * 1024 * 1024, 1} },
6714 .block_erase = spi_block_erase_c7,
6715 }
6716 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006717 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006718 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006719 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006720 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006721 },
6722
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006723 {
6724 .vendor = "ST",
6725 .name = "M25P128",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00006726 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006727 .manufacture_id = ST_ID,
6728 .model_id = ST_M25P128,
6729 .total_size = 16384,
6730 .page_size = 256,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00006731 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006732 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006733 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006734 .block_erasers =
6735 {
6736 {
6737 .eraseblocks = { {256 * 1024, 64} },
6738 .block_erase = spi_block_erase_d8,
6739 }, {
6740 .eraseblocks = { {16 * 1024 * 1024, 1} },
6741 .block_erase = spi_block_erase_c7,
6742 }
6743 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006744 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006745 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006746 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006747 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006748 },
6749
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006750 {
6751 .vendor = "ST",
Carl Worthd1dd72c2011-03-06 18:45:40 +00006752 .name = "M25PX16",
6753 .bustype = CHIP_BUSTYPE_SPI,
6754 .manufacture_id = ST_ID,
6755 .model_id = ST_M25PX16,
6756 .total_size = 2048,
6757 .page_size = 256,
6758 .tested = TEST_OK_PREW,
6759 .probe = probe_spi_rdid,
6760 .probe_timing = TIMING_ZERO,
6761 .block_erasers =
6762 {
6763 {
6764 .eraseblocks = { { 4 * 1024, 512 } },
6765 .block_erase = spi_block_erase_20,
6766 }, {
6767 .eraseblocks = { {64 * 1024, 32} },
6768 .block_erase = spi_block_erase_d8,
6769 }, {
6770 .eraseblocks = { {2 * 1024 * 1024, 1} },
6771 .block_erase = spi_block_erase_c7,
6772 }
6773 },
6774 .unlock = spi_disable_blockprotect,
6775 .write = spi_chip_write_256,
6776 .read = spi_chip_read,
6777 },
6778
6779 {
6780 .vendor = "ST",
Jason Shriver4119e9b2010-09-14 13:16:01 +00006781 .name = "M25PX32",
6782 .bustype = CHIP_BUSTYPE_SPI,
6783 .manufacture_id = ST_ID,
6784 .model_id = ST_M25PX32,
6785 .total_size = 4096,
6786 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006787 .tested = TEST_OK_PRE,
Jason Shriver4119e9b2010-09-14 13:16:01 +00006788 .probe = probe_spi_rdid,
6789 .probe_timing = TIMING_ZERO,
6790 .block_erasers =
6791 {
6792 {
6793 .eraseblocks = { { 4 * 1024, 1024 } },
6794 .block_erase = spi_block_erase_20,
6795 }, {
6796 .eraseblocks = { {64 * 1024, 64} },
6797 .block_erase = spi_block_erase_d8,
6798 }, {
6799 .eraseblocks = { {4 * 1024 * 1024, 1} },
6800 .block_erase = spi_block_erase_c7,
6801 }
6802 },
6803 .unlock = spi_disable_blockprotect,
6804 .write = spi_chip_write_256,
6805 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006806 .voltage = {2700, 3600},
Jason Shriver4119e9b2010-09-14 13:16:01 +00006807 },
6808
6809 {
6810 .vendor = "ST",
6811 .name = "M25PX64",
6812 .bustype = CHIP_BUSTYPE_SPI,
6813 .manufacture_id = ST_ID,
6814 .model_id = ST_M25PX64,
6815 .total_size = 8192,
6816 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006817 .tested = TEST_OK_PRE,
Jason Shriver4119e9b2010-09-14 13:16:01 +00006818 .probe = probe_spi_rdid,
6819 .probe_timing = TIMING_ZERO,
6820 .block_erasers =
6821 {
6822 {
6823 .eraseblocks = { { 4 * 1024, 2048 } },
6824 .block_erase = spi_block_erase_20,
6825 }, {
6826 .eraseblocks = { {64 * 1024, 128} },
6827 .block_erase = spi_block_erase_d8,
6828 }, {
6829 .eraseblocks = { {8 * 1024 * 1024, 1} },
6830 .block_erase = spi_block_erase_c7,
6831 }
6832 },
6833 .unlock = spi_disable_blockprotect,
6834 .write = spi_chip_write_256,
6835 .read = spi_chip_read,
6836 },
6837
6838 {
6839 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006840 .name = "M29F002B",
Urja Rannikko038a3122009-06-28 19:19:25 +00006841 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006842 .manufacture_id = ST_ID,
6843 .model_id = ST_M29F002B,
6844 .total_size = 256,
6845 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006846 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006847 .tested = TEST_UNTESTED,
6848 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006849 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00006850 .block_erasers =
6851 {
6852 {
6853 .eraseblocks = {
6854 {16 * 1024, 1},
6855 {8 * 1024, 2},
6856 {32 * 1024, 1},
6857 {64 * 1024, 3},
6858 },
6859 .block_erase = erase_sector_jedec,
6860 }, {
6861 .eraseblocks = { {256 * 1024, 1} },
6862 .block_erase = erase_chip_block_jedec,
6863 }
6864 },
Sean Nelson35727f72010-01-28 23:55:12 +00006865 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006866 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006867 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00006868 },
6869
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006870 {
6871 .vendor = "ST",
6872 .name = "M29F002T/NT",
Urja Rannikko038a3122009-06-28 19:19:25 +00006873 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006874 .manufacture_id = ST_ID,
6875 .model_id = ST_M29F002T,
6876 .total_size = 256,
6877 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006878 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
6879 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006880 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006881 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00006882 .block_erasers =
6883 {
6884 {
6885 .eraseblocks = {
6886 {64 * 1024, 3},
6887 {32 * 1024, 1},
6888 {8 * 1024, 2},
6889 {16 * 1024, 1},
6890 },
6891 .block_erase = erase_sector_jedec,
6892 }, {
6893 .eraseblocks = { {256 * 1024, 1} },
6894 .block_erase = erase_chip_block_jedec,
6895 }
6896 },
Sean Nelson35727f72010-01-28 23:55:12 +00006897 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006898 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006899 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00006900 },
6901
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006902 {
6903 .vendor = "ST",
6904 .name = "M29F040B",
Urja Rannikko038a3122009-06-28 19:19:25 +00006905 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006906 .manufacture_id = ST_ID,
6907 .model_id = ST_M29F040B,
6908 .total_size = 512,
6909 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006910 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
6911 .tested = TEST_UNTESTED,
6912 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00006913 .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */
Sean Nelson56358aa2010-01-19 16:08:51 +00006914 .block_erasers =
6915 {
6916 {
6917 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson35727f72010-01-28 23:55:12 +00006918 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +00006919 }, {
6920 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006921 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +00006922 }
6923 },
Sean Nelson35727f72010-01-28 23:55:12 +00006924 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006925 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006926 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006927 },
6928
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006929 {
Sean Nelson35727f72010-01-28 23:55:12 +00006930 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006931 .vendor = "ST",
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00006932 .name = "M29F400BB",
6933 .bustype = CHIP_BUSTYPE_PARALLEL,
6934 .manufacture_id = ST_ID,
6935 .model_id = ST_M29F400BB,
6936 .total_size = 512,
6937 .page_size = 64 * 1024,
6938 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00006939 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00006940 .probe = probe_m29f400bt,
6941 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
6942 .block_erasers =
6943 {
6944 {
6945 .eraseblocks = {
6946 {16 * 1024, 1},
6947 {8 * 1024, 2},
6948 {32 * 1024, 1},
6949 {64 * 1024, 7},
6950 },
6951 .block_erase = block_erase_m29f400bt,
6952 }, {
6953 .eraseblocks = { {512 * 1024, 1} },
6954 .block_erase = block_erase_chip_m29f400bt,
6955 }
6956 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00006957 .write = write_m29f400bt,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00006958 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006959 .voltage = {4500, 5500},
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00006960 },
6961 {
6962 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
6963 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006964 .name = "M29F400BT",
Urja Rannikko038a3122009-06-28 19:19:25 +00006965 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006966 .manufacture_id = ST_ID,
6967 .model_id = ST_M29F400BT,
6968 .total_size = 512,
6969 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006970 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006971 .tested = TEST_UNTESTED,
6972 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00006973 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00006974 .block_erasers =
6975 {
6976 {
6977 .eraseblocks = {
6978 {64 * 1024, 7},
6979 {32 * 1024, 1},
6980 {8 * 1024, 2},
6981 {16 * 1024, 1},
6982 },
6983 .block_erase = block_erase_m29f400bt,
6984 }, {
6985 .eraseblocks = { {512 * 1024, 1} },
6986 .block_erase = block_erase_chip_m29f400bt,
6987 }
6988 },
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00006989 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006990 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006991 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006992 },
6993
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006994 {
6995 .vendor = "ST",
6996 .name = "M29W010B",
Urja Rannikko038a3122009-06-28 19:19:25 +00006997 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006998 .manufacture_id = ST_ID,
6999 .model_id = ST_M29W010B,
7000 .total_size = 128,
7001 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007002 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007003 .tested = TEST_UNTESTED,
7004 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007005 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007006 .block_erasers =
7007 {
7008 {
7009 .eraseblocks = { {16 * 1024, 8}, },
7010 .block_erase = erase_sector_jedec,
7011 }, {
7012 .eraseblocks = { {128 * 1024, 1} },
7013 .block_erase = erase_chip_block_jedec,
7014 }
7015 },
Sean Nelson35727f72010-01-28 23:55:12 +00007016 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007017 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007018 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007019 },
7020
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007021 {
7022 .vendor = "ST",
7023 .name = "M29W040B",
Urja Rannikko038a3122009-06-28 19:19:25 +00007024 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007025 .manufacture_id = ST_ID,
7026 .model_id = ST_M29W040B,
7027 .total_size = 512,
7028 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007029 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007030 .tested = TEST_UNTESTED,
7031 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007032 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007033 .block_erasers =
7034 {
7035 {
7036 .eraseblocks = { {64 * 1024, 8}, },
7037 .block_erase = erase_sector_jedec,
7038 }, {
7039 .eraseblocks = { {512 * 1024, 1} },
7040 .block_erase = erase_chip_block_jedec,
7041 }
7042 },
Sean Nelson35727f72010-01-28 23:55:12 +00007043 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007044 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007045 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007046 },
7047
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +00007048 {
7049 .vendor = "ST",
7050 .name = "M29W512B",
7051 .bustype = CHIP_BUSTYPE_PARALLEL,
7052 .manufacture_id = ST_ID,
7053 .model_id = ST_M29W512B,
7054 .total_size = 64,
7055 .page_size = 64 * 1024,
7056 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007057 .tested = TEST_OK_PRE,
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +00007058 .probe = probe_jedec,
7059 .probe_timing = TIMING_ZERO,
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +00007060 .block_erasers =
7061 {
7062 {
7063 .eraseblocks = { {64 * 1024, 1} },
7064 .block_erase = erase_chip_block_jedec,
7065 }
7066 },
7067 .write = write_jedec_1,
7068 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007069 .voltage = {2700, 3600},
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +00007070 },
7071
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007072 {
7073 .vendor = "ST",
7074 .name = "M50FLW040A",
Sean Nelson35727f72010-01-28 23:55:12 +00007075 .bustype = CHIP_BUSTYPE_FWH | CHIP_BUSTYPE_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007076 .manufacture_id = ST_ID,
7077 .model_id = ST_M50FLW040A,
7078 .total_size = 512,
7079 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007080 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007081 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00007082 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00007083 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00007084 .block_erasers =
7085 {
7086 {
Sean Nelson329bde72010-01-19 16:39:19 +00007087 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00007088 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00007089 {64 * 1024, 5}, /* block */
7090 {4 * 1024, 16}, /* sector */
7091 {4 * 1024, 16}, /* sector */
7092 },
7093 .block_erase = NULL,
7094 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00007095 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +00007096 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00007097 }
7098 },
Sean Nelson28accc22010-03-19 18:47:06 +00007099 .unlock = unlock_stm50flw0x0x,
7100 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007101 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007102 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00007103 },
7104
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007105 {
7106 .vendor = "ST",
7107 .name = "M50FLW040B",
Sean Nelson35727f72010-01-28 23:55:12 +00007108 .bustype = CHIP_BUSTYPE_FWH | CHIP_BUSTYPE_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007109 .manufacture_id = ST_ID,
7110 .model_id = ST_M50FLW040B,
7111 .total_size = 512,
7112 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007113 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007114 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00007115 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00007116 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00007117 .block_erasers =
7118 {
7119 {
Sean Nelson329bde72010-01-19 16:39:19 +00007120 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00007121 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00007122 {4 * 1024, 16}, /* sector */
7123 {64 * 1024, 5}, /* block */
7124 {4 * 1024, 16}, /* sector */
7125 },
7126 .block_erase = NULL,
7127 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00007128 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +00007129 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00007130 }
7131 },
Sean Nelson28accc22010-03-19 18:47:06 +00007132 .unlock = unlock_stm50flw0x0x,
7133 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007134 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007135 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00007136 },
7137
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007138 {
7139 .vendor = "ST",
7140 .name = "M50FLW080A",
Sean Nelson35727f72010-01-28 23:55:12 +00007141 .bustype = CHIP_BUSTYPE_FWH | CHIP_BUSTYPE_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007142 .manufacture_id = ST_ID,
7143 .model_id = ST_M50FLW080A,
7144 .total_size = 1024,
7145 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007146 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007147 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +00007148 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00007149 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00007150 .block_erasers =
7151 {
7152 {
Sean Nelson329bde72010-01-19 16:39:19 +00007153 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00007154 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00007155 {64 * 1024, 13}, /* block */
7156 {4 * 1024, 16}, /* sector */
7157 {4 * 1024, 16}, /* sector */
7158 },
7159 .block_erase = NULL,
7160 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00007161 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +00007162 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00007163 }
7164 },
Sean Nelson28accc22010-03-19 18:47:06 +00007165 .unlock = unlock_stm50flw0x0x,
7166 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007167 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007168 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00007169 },
7170
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007171 {
7172 .vendor = "ST",
7173 .name = "M50FLW080B",
Sean Nelson35727f72010-01-28 23:55:12 +00007174 .bustype = CHIP_BUSTYPE_FWH | CHIP_BUSTYPE_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007175 .manufacture_id = ST_ID,
7176 .model_id = ST_M50FLW080B,
7177 .total_size = 1024,
7178 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007179 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007180 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00007181 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00007182 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00007183 .block_erasers =
7184 {
7185 {
Sean Nelson329bde72010-01-19 16:39:19 +00007186 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00007187 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00007188 {4 * 1024, 16}, /* sector */
7189 {64 * 1024, 13}, /* block */
7190 {4 * 1024, 16}, /* sector */
7191 },
7192 .block_erase = NULL,
7193 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00007194 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +00007195 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00007196 }
7197 },
Sean Nelson28accc22010-03-19 18:47:06 +00007198 .unlock = unlock_stm50flw0x0x,
7199 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007200 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007201 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00007202 },
7203
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007204 {
7205 .vendor = "ST",
7206 .name = "M50FW002",
Urja Rannikko038a3122009-06-28 19:19:25 +00007207 .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007208 .manufacture_id = ST_ID,
7209 .model_id = ST_M50FW002,
7210 .total_size = 256,
7211 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007212 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007213 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00007214 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00007215 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00007216 .block_erasers =
7217 {
7218 {
7219 .eraseblocks = {
7220 {64 * 1024, 3},
7221 {32 * 1024, 1},
7222 {8 * 1024, 2},
7223 {16 * 1024, 1},
7224 },
Sean Nelson28accc22010-03-19 18:47:06 +00007225 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00007226 }
7227 },
Sean Nelson28accc22010-03-19 18:47:06 +00007228 .unlock = unlock_stm50flw0x0x,
7229 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007230 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007231 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00007232 },
7233
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007234 {
7235 .vendor = "ST",
7236 .name = "M50FW016",
Urja Rannikko038a3122009-06-28 19:19:25 +00007237 .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007238 .manufacture_id = ST_ID,
7239 .model_id = ST_M50FW016,
7240 .total_size = 2048,
7241 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007242 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007243 .tested = TEST_UNTESTED,
7244 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00007245 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00007246 .block_erasers =
7247 {
7248 {
7249 .eraseblocks = { {64 * 1024, 32}, },
Sean Nelson28accc22010-03-19 18:47:06 +00007250 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00007251 }
7252 },
Sean Nelson28accc22010-03-19 18:47:06 +00007253 .unlock = unlock_stm50flw0x0x,
7254 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007255 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007256 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00007257 },
7258
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007259 {
7260 .vendor = "ST",
7261 .name = "M50FW040",
Urja Rannikko038a3122009-06-28 19:19:25 +00007262 .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007263 .manufacture_id = ST_ID,
7264 .model_id = ST_M50FW040,
7265 .total_size = 512,
7266 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007267 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +00007268 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007269 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00007270 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00007271 .block_erasers =
7272 {
7273 {
7274 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +00007275 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00007276 }
7277 },
Sean Nelson28accc22010-03-19 18:47:06 +00007278 .unlock = unlock_stm50flw0x0x,
7279 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007280 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007281 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00007282 },
7283
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007284 {
7285 .vendor = "ST",
7286 .name = "M50FW080",
Urja Rannikko038a3122009-06-28 19:19:25 +00007287 .bustype = CHIP_BUSTYPE_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007288 .manufacture_id = ST_ID,
7289 .model_id = ST_M50FW080,
7290 .total_size = 1024,
7291 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007292 .feature_bits = FEATURE_REGISTERMAP,
Antony Rheneus0fbba982011-05-26 14:28:51 +00007293 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007294 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00007295 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00007296 .block_erasers =
7297 {
7298 {
7299 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +00007300 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00007301 }
7302 },
Sean Nelson28accc22010-03-19 18:47:06 +00007303 .unlock = unlock_stm50flw0x0x,
7304 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007305 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007306 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00007307 },
7308
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007309 {
7310 .vendor = "ST",
7311 .name = "M50LPW116",
Urja Rannikko038a3122009-06-28 19:19:25 +00007312 .bustype = CHIP_BUSTYPE_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007313 .manufacture_id = ST_ID,
7314 .model_id = ST_M50LPW116,
7315 .total_size = 2048,
7316 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007317 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007318 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00007319 .probe = probe_82802ab,
Udu Ogahc04ee222009-09-05 01:31:32 +00007320 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007321 .block_erasers =
7322 {
7323 {
7324 .eraseblocks = {
7325 {4 * 1024, 16},
7326 {64 * 1024, 30},
7327 {32 * 1024, 1},
7328 {8 * 1024, 2},
7329 {16 * 1024, 1},
7330 },
Sean Nelson28accc22010-03-19 18:47:06 +00007331 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00007332 }
7333 },
Sean Nelson28accc22010-03-19 18:47:06 +00007334 .unlock = unlock_stm50flw0x0x,
7335 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007336 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007337 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00007338 },
7339
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007340 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00007341 .vendor = "SyncMOS/MoselVitelic",
7342 .name = "{F,S,V}29C51001B",
Urja Rannikko038a3122009-06-28 19:19:25 +00007343 .bustype = CHIP_BUSTYPE_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00007344 .manufacture_id = SYNCMOS_MVC_ID,
7345 .model_id = SM_MVC_29C51001B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007346 .total_size = 128,
Mattias Mattsson4c066502010-07-29 20:01:13 +00007347 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +00007348 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007349 .tested = TEST_UNTESTED,
7350 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007351 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007352 .block_erasers =
7353 {
7354 {
7355 .eraseblocks = { {512, 256} },
7356 .block_erase = erase_sector_jedec,
7357 }, {
7358 .eraseblocks = { {128 * 1024, 1} },
7359 .block_erase = erase_chip_block_jedec,
7360 },
7361 },
Sean Nelson35727f72010-01-28 23:55:12 +00007362 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007363 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007364 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00007365 },
7366
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007367 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00007368 .vendor = "SyncMOS/MoselVitelic",
7369 .name = "{F,S,V}29C51001T",
Urja Rannikko038a3122009-06-28 19:19:25 +00007370 .bustype = CHIP_BUSTYPE_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00007371 .manufacture_id = SYNCMOS_MVC_ID,
7372 .model_id = SM_MVC_29C51001T,
7373 .total_size = 128,
7374 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +00007375 .feature_bits = FEATURE_EITHER_RESET,
Mattias Mattsson4c066502010-07-29 20:01:13 +00007376 .tested = TEST_UNTESTED,
7377 .probe = probe_jedec,
7378 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7379 .block_erasers =
7380 {
7381 {
7382 .eraseblocks = { {512, 256} },
7383 .block_erase = erase_sector_jedec,
7384 }, {
7385 .eraseblocks = { {128 * 1024, 1} },
7386 .block_erase = erase_chip_block_jedec,
7387 },
7388 },
7389 .write = write_jedec_1,
7390 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007391 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00007392 },
7393
7394 {
7395 .vendor = "SyncMOS/MoselVitelic",
7396 .name = "{F,S,V}29C51002B",
7397 .bustype = CHIP_BUSTYPE_PARALLEL,
7398 .manufacture_id = SYNCMOS_MVC_ID,
7399 .model_id = SM_MVC_29C51002B,
7400 .total_size = 256,
7401 .page_size = 512,
7402 .feature_bits = FEATURE_EITHER_RESET,
7403 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007404 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007405 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007406 .block_erasers =
7407 {
7408 {
7409 .eraseblocks = { {512, 512} },
7410 .block_erase = erase_sector_jedec,
7411 }, {
7412 .eraseblocks = { {256 * 1024, 1} },
7413 .block_erase = erase_chip_block_jedec,
7414 },
7415 },
Sean Nelson35727f72010-01-28 23:55:12 +00007416 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007417 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00007418 },
7419
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007420 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00007421 .vendor = "SyncMOS/MoselVitelic",
7422 .name = "{F,S,V}29C51002T",
Urja Rannikko038a3122009-06-28 19:19:25 +00007423 .bustype = CHIP_BUSTYPE_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00007424 .manufacture_id = SYNCMOS_MVC_ID,
7425 .model_id = SM_MVC_29C51002T,
7426 .total_size = 256,
7427 .page_size = 512,
7428 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007429 .tested = TEST_OK_PRE,
Mattias Mattsson4c066502010-07-29 20:01:13 +00007430 .probe = probe_jedec,
7431 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7432 .block_erasers =
7433 {
7434 {
7435 .eraseblocks = { {512, 512} },
7436 .block_erase = erase_sector_jedec,
7437 }, {
7438 .eraseblocks = { {256 * 1024, 1} },
7439 .block_erase = erase_chip_block_jedec,
7440 },
7441 },
7442 .write = write_jedec_1,
7443 .read = read_memmapped,
7444 },
7445
7446 {
7447 .vendor = "SyncMOS/MoselVitelic",
7448 .name = "{F,S,V}29C51004B",
7449 .bustype = CHIP_BUSTYPE_PARALLEL,
7450 .manufacture_id = SYNCMOS_MVC_ID,
7451 .model_id = SM_MVC_29C51004B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007452 .total_size = 512,
Mattias Mattsson4c066502010-07-29 20:01:13 +00007453 .page_size = 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007454 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007455 .tested = TEST_UNTESTED,
7456 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007457 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007458 .block_erasers =
7459 {
7460 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00007461 .eraseblocks = { {1024, 512} },
7462 .block_erase = erase_sector_jedec,
7463 }, {
7464 .eraseblocks = { {512 * 1024, 1} },
7465 .block_erase = erase_chip_block_jedec,
7466 },
7467 },
7468 .write = write_jedec_1,
7469 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007470 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00007471 },
7472
7473 {
7474 .vendor = "SyncMOS/MoselVitelic",
7475 .name = "{F,S,V}29C51004T",
7476 .bustype = CHIP_BUSTYPE_PARALLEL,
7477 .manufacture_id = SYNCMOS_MVC_ID,
7478 .model_id = SM_MVC_29C51004T,
7479 .total_size = 512,
7480 .page_size = 1024,
7481 .feature_bits = FEATURE_EITHER_RESET,
7482 .tested = TEST_UNTESTED,
7483 .probe = probe_jedec,
7484 .probe_timing = TIMING_ZERO,
7485 .block_erasers =
7486 {
7487 {
7488 .eraseblocks = { {1024, 512} },
7489 .block_erase = erase_sector_jedec,
7490 }, {
7491 .eraseblocks = { {512 * 1024, 1} },
7492 .block_erase = erase_chip_block_jedec,
7493 },
7494 },
7495 .write = write_jedec_1,
7496 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007497 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00007498 },
7499
7500 {
7501 .vendor = "SyncMOS/MoselVitelic",
7502 .name = "{S,V}29C31004B",
7503 .bustype = CHIP_BUSTYPE_PARALLEL,
7504 .manufacture_id = SYNCMOS_MVC_ID,
7505 .model_id = SM_MVC_29C31004B,
7506 .total_size = 512,
7507 .page_size = 1024,
7508 .feature_bits = FEATURE_EITHER_RESET,
7509 .tested = TEST_UNTESTED,
7510 .probe = probe_jedec,
7511 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7512 .block_erasers =
7513 {
7514 {
7515 .eraseblocks = { {1024, 512} },
7516 .block_erase = erase_sector_jedec,
7517 }, {
7518 .eraseblocks = { {512 * 1024, 1} },
7519 .block_erase = erase_chip_block_jedec,
7520 },
7521 },
7522 .write = write_jedec_1,
7523 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007524 .voltage = {3000, 3600},
Mattias Mattsson4c066502010-07-29 20:01:13 +00007525 },
7526
7527 {
7528 .vendor = "SyncMOS/MoselVitelic",
7529 .name = "{S,V}29C31004T",
7530 .bustype = CHIP_BUSTYPE_PARALLEL,
7531 .manufacture_id = SYNCMOS_MVC_ID,
7532 .model_id = SM_MVC_29C31004T,
7533 .total_size = 512,
7534 .page_size = 1024,
7535 .feature_bits = FEATURE_EITHER_RESET,
7536 .tested = TEST_UNTESTED,
7537 .probe = probe_jedec,
7538 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7539 .block_erasers =
7540 {
7541 {
7542 .eraseblocks = { {1024, 512} },
Sean Nelson56358aa2010-01-19 16:08:51 +00007543 .block_erase = erase_sector_jedec,
7544 }, {
7545 .eraseblocks = { {512 * 1024, 1} },
7546 .block_erase = erase_chip_block_jedec,
7547 },
7548 },
Sean Nelson35727f72010-01-28 23:55:12 +00007549 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007550 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007551 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007552 },
7553
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007554 {
Uwe Hermanna106d152009-05-27 23:17:40 +00007555 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00007556 .name = "TMS29F002RB",
Urja Rannikko038a3122009-06-28 19:19:25 +00007557 .bustype = CHIP_BUSTYPE_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00007558 .manufacture_id = TI_OLD_ID,
7559 .model_id = TI_TMS29F002RB,
7560 .total_size = 256,
7561 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +00007562 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00007563 .tested = TEST_UNTESTED,
7564 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007565 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007566 .block_erasers =
7567 {
7568 {
7569 .eraseblocks = {
7570 {16 * 1024, 1},
7571 {8 * 1024, 2},
7572 {32 * 1024, 1},
7573 {64 * 1024, 3},
7574 },
7575 .block_erase = erase_sector_jedec,
7576 }, {
7577 .eraseblocks = { {256 * 1024, 1} },
7578 .block_erase = erase_chip_block_jedec,
7579 },
7580 },
Sean Nelson35727f72010-01-28 23:55:12 +00007581 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00007582 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007583 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00007584 },
7585
7586 {
Uwe Hermanna106d152009-05-27 23:17:40 +00007587 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00007588 .name = "TMS29F002RT",
Urja Rannikko038a3122009-06-28 19:19:25 +00007589 .bustype = CHIP_BUSTYPE_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00007590 .manufacture_id = TI_OLD_ID,
7591 .model_id = TI_TMS29F002RT,
7592 .total_size = 256,
7593 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +00007594 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00007595 .tested = TEST_UNTESTED,
7596 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007597 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007598 .block_erasers =
7599 {
7600 {
7601 .eraseblocks = {
7602 {64 * 1024, 3},
7603 {32 * 1024, 1},
7604 {8 * 1024, 2},
7605 {16 * 1024, 1},
7606 },
7607 .block_erase = erase_sector_jedec,
7608 }, {
7609 .eraseblocks = { {256 * 1024, 1} },
7610 .block_erase = erase_chip_block_jedec,
7611 },
7612 },
Sean Nelson35727f72010-01-28 23:55:12 +00007613 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00007614 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007615 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00007616 },
7617
7618 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007619 .vendor = "Winbond",
Rudolf Marekce1c7982010-04-20 19:34:31 +00007620 .name = "W25Q80",
7621 .bustype = CHIP_BUSTYPE_SPI,
7622 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00007623 .model_id = WINBOND_NEX_W25Q80,
Rudolf Marekce1c7982010-04-20 19:34:31 +00007624 .total_size = 1024,
7625 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00007626 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00007627 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +00007628 .probe = probe_spi_rdid,
7629 .probe_timing = TIMING_ZERO,
7630 .block_erasers =
7631 {
7632 {
7633 .eraseblocks = { {4 * 1024, 256} },
7634 .block_erase = spi_block_erase_20,
7635 }, {
7636 .eraseblocks = { {32 * 1024, 32} },
7637 .block_erase = spi_block_erase_52,
7638 }, {
7639 .eraseblocks = { {64 * 1024, 16} },
7640 .block_erase = spi_block_erase_d8,
7641 }, {
7642 .eraseblocks = { {1024 * 1024, 1} },
7643 .block_erase = spi_block_erase_60,
7644 }, {
7645 .eraseblocks = { {1024 * 1024, 1} },
7646 .block_erase = spi_block_erase_c7,
7647 }
7648 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007649 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +00007650 .write = spi_chip_write_256,
7651 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007652 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +00007653 },
7654
7655 {
7656 .vendor = "Winbond",
7657 .name = "W25Q16",
7658 .bustype = CHIP_BUSTYPE_SPI,
7659 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00007660 .model_id = WINBOND_NEX_W25Q16,
Rudolf Marekce1c7982010-04-20 19:34:31 +00007661 .total_size = 2048,
7662 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00007663 .feature_bits = FEATURE_WRSR_WREN,
Rudolf Marekce1c7982010-04-20 19:34:31 +00007664 .tested = TEST_UNTESTED,
7665 .probe = probe_spi_rdid,
7666 .probe_timing = TIMING_ZERO,
7667 .block_erasers =
7668 {
7669 {
7670 .eraseblocks = { {4 * 1024, 512} },
7671 .block_erase = spi_block_erase_20,
7672 }, {
7673 .eraseblocks = { {32 * 1024, 64} },
7674 .block_erase = spi_block_erase_52,
7675 }, {
7676 .eraseblocks = { {64 * 1024, 32} },
7677 .block_erase = spi_block_erase_d8,
7678 }, {
7679 .eraseblocks = { {2 * 1024 * 1024, 1} },
7680 .block_erase = spi_block_erase_60,
7681 }, {
7682 .eraseblocks = { {2 * 1024 * 1024, 1} },
7683 .block_erase = spi_block_erase_c7,
7684 }
7685 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007686 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +00007687 .write = spi_chip_write_256,
7688 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007689 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +00007690 },
7691
7692 {
7693 .vendor = "Winbond",
7694 .name = "W25Q32",
7695 .bustype = CHIP_BUSTYPE_SPI,
7696 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00007697 .model_id = WINBOND_NEX_W25Q32,
Rudolf Marekce1c7982010-04-20 19:34:31 +00007698 .total_size = 4096,
7699 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00007700 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00007701 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +00007702 .probe = probe_spi_rdid,
7703 .probe_timing = TIMING_ZERO,
7704 .block_erasers =
7705 {
7706 {
7707 .eraseblocks = { {4 * 1024, 1024} },
7708 .block_erase = spi_block_erase_20,
7709 }, {
7710 .eraseblocks = { {32 * 1024, 128} },
7711 .block_erase = spi_block_erase_52,
7712 }, {
7713 .eraseblocks = { {64 * 1024, 64} },
7714 .block_erase = spi_block_erase_d8,
7715 }, {
7716 .eraseblocks = { {4 * 1024 * 1024, 1} },
7717 .block_erase = spi_block_erase_60,
7718 }, {
7719 .eraseblocks = { {4 * 1024 * 1024, 1} },
7720 .block_erase = spi_block_erase_c7,
7721 }
7722 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007723 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +00007724 .write = spi_chip_write_256,
7725 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007726 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +00007727 },
7728
7729 {
7730 .vendor = "Winbond",
David Hendricksc4acec92010-06-24 11:39:57 +00007731 .name = "W25Q64",
7732 .bustype = CHIP_BUSTYPE_SPI,
7733 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00007734 .model_id = WINBOND_NEX_W25Q64,
David Hendricksc4acec92010-06-24 11:39:57 +00007735 .total_size = 8192,
7736 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00007737 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00007738 .tested = TEST_OK_PREW,
David Hendricksc4acec92010-06-24 11:39:57 +00007739 .probe = probe_spi_rdid,
7740 .probe_timing = TIMING_ZERO,
7741 .block_erasers =
7742 {
7743 {
7744 .eraseblocks = { {4 * 1024, 2048} },
7745 .block_erase = spi_block_erase_20,
7746 }, {
7747 .eraseblocks = { {32 * 1024, 256} },
7748 .block_erase = spi_block_erase_52,
7749 }, {
7750 .eraseblocks = { {64 * 1024, 128} },
7751 .block_erase = spi_block_erase_d8,
7752 }, {
7753 .eraseblocks = { {8 * 1024 * 1024, 1} },
7754 .block_erase = spi_block_erase_60,
7755 }, {
7756 .eraseblocks = { {8 * 1024 * 1024, 1} },
7757 .block_erase = spi_block_erase_c7,
7758 }
7759 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007760 .unlock = spi_disable_blockprotect,
David Hendricksc4acec92010-06-24 11:39:57 +00007761 .write = spi_chip_write_256,
7762 .read = spi_chip_read,
7763 },
7764
7765 {
7766 .vendor = "Winbond",
Antony Rheneus0fbba982011-05-26 14:28:51 +00007767 .name = "W25Q128",
7768 .bustype = CHIP_BUSTYPE_SPI,
7769 .manufacture_id = WINBOND_NEX_ID,
7770 .model_id = WINBOND_NEX_W25Q128,
7771 .total_size = 16384,
7772 .page_size = 256,
7773 .feature_bits = FEATURE_WRSR_WREN,
7774 .tested = TEST_OK_PROBE,
7775 .probe = probe_spi_rdid,
7776 .probe_timing = TIMING_ZERO,
7777 .block_erasers =
7778 {
7779 {
7780 .eraseblocks = { {4 * 1024, 4096} },
7781 .block_erase = spi_block_erase_20,
7782 }, {
7783 .eraseblocks = { {32 * 1024, 512} },
7784 .block_erase = spi_block_erase_52,
7785 }, {
7786 .eraseblocks = { {64 * 1024, 256} },
7787 .block_erase = spi_block_erase_d8,
7788 }, {
7789 .eraseblocks = { {16 * 1024 * 1024, 1} },
7790 .block_erase = spi_block_erase_60,
7791 }, {
7792 .eraseblocks = { {16 * 1024 * 1024, 1} },
7793 .block_erase = spi_block_erase_c7,
7794 }
7795 },
7796 .unlock = spi_disable_blockprotect,
7797 .write = spi_chip_write_256,
7798 .read = spi_chip_read,
7799 },
7800
7801 {
7802 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00007803 .name = "W25X10",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00007804 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007805 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00007806 .model_id = WINBOND_NEX_W25X10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007807 .total_size = 128,
7808 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00007809 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007810 .tested = TEST_UNTESTED,
7811 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007812 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007813 .block_erasers =
7814 {
7815 {
7816 .eraseblocks = { {4 * 1024, 32} },
7817 .block_erase = spi_block_erase_20,
7818 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007819 .eraseblocks = { {64 * 1024, 2} },
7820 .block_erase = spi_block_erase_d8,
7821 }, {
7822 .eraseblocks = { {128 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007823 .block_erase = spi_block_erase_c7,
7824 }
7825 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007826 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007827 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007828 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007829 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007830 },
7831
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007832 {
7833 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00007834 .name = "W25X20",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00007835 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007836 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00007837 .model_id = WINBOND_NEX_W25X20,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007838 .total_size = 256,
7839 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00007840 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007841 .tested = TEST_UNTESTED,
7842 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007843 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007844 .block_erasers =
7845 {
7846 {
7847 .eraseblocks = { {4 * 1024, 64} },
7848 .block_erase = spi_block_erase_20,
7849 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007850 .eraseblocks = { {64 * 1024, 4} },
7851 .block_erase = spi_block_erase_d8,
7852 }, {
7853 .eraseblocks = { {256 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007854 .block_erase = spi_block_erase_c7,
7855 }
7856 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007857 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007858 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007859 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007860 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007861 },
7862
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007863 {
7864 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00007865 .name = "W25X40",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00007866 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007867 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00007868 .model_id = WINBOND_NEX_W25X40,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007869 .total_size = 512,
7870 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00007871 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +00007872 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007873 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007874 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007875 .block_erasers =
7876 {
7877 {
7878 .eraseblocks = { {4 * 1024, 128} },
7879 .block_erase = spi_block_erase_20,
7880 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007881 .eraseblocks = { {64 * 1024, 8} },
7882 .block_erase = spi_block_erase_d8,
7883 }, {
7884 .eraseblocks = { {512 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007885 .block_erase = spi_block_erase_c7,
7886 }
7887 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007888 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007889 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007890 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007891 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007892 },
7893
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007894 {
7895 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00007896 .name = "W25X80",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00007897 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007898 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00007899 .model_id = WINBOND_NEX_W25X80,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007900 .total_size = 1024,
7901 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00007902 .feature_bits = FEATURE_WRSR_WREN,
Yul Rottmann6d6ab742011-03-05 16:31:57 +00007903 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007904 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007905 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007906 .block_erasers =
7907 {
7908 {
7909 .eraseblocks = { {4 * 1024, 256} },
7910 .block_erase = spi_block_erase_20,
7911 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007912 .eraseblocks = { {64 * 1024, 16} },
7913 .block_erase = spi_block_erase_d8,
7914 }, {
7915 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007916 .block_erase = spi_block_erase_c7,
7917 }
7918 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007919 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007920 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007921 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007922 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007923 },
7924
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007925 {
7926 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00007927 .name = "W25X16",
Hector Martina721ae22009-07-11 19:39:11 +00007928 .bustype = CHIP_BUSTYPE_SPI,
7929 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00007930 .model_id = WINBOND_NEX_W25X16,
Hector Martina721ae22009-07-11 19:39:11 +00007931 .total_size = 2048,
7932 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00007933 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +00007934 .tested = TEST_OK_PREW,
Hector Martina721ae22009-07-11 19:39:11 +00007935 .probe = probe_spi_rdid,
7936 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007937 .block_erasers =
7938 {
7939 {
7940 .eraseblocks = { {4 * 1024, 512} },
7941 .block_erase = spi_block_erase_20,
7942 }, {
7943 .eraseblocks = { {32 * 1024, 64} },
7944 .block_erase = spi_block_erase_52,
7945 }, {
7946 .eraseblocks = { {64 * 1024, 32} },
7947 .block_erase = spi_block_erase_d8,
7948 }, {
7949 .eraseblocks = { {2 * 1024 * 1024, 1} },
7950 .block_erase = spi_block_erase_60,
7951 }, {
7952 .eraseblocks = { {2 * 1024 * 1024, 1} },
7953 .block_erase = spi_block_erase_c7,
7954 }
7955 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007956 .unlock = spi_disable_blockprotect,
Hector Martina721ae22009-07-11 19:39:11 +00007957 .write = spi_chip_write_256,
7958 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007959 .voltage = {2700, 3600},
Hector Martina721ae22009-07-11 19:39:11 +00007960 },
7961
7962 {
7963 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00007964 .name = "W25X32",
Zheng Bao1db2b752009-11-26 11:05:01 +00007965 .bustype = CHIP_BUSTYPE_SPI,
7966 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00007967 .model_id = WINBOND_NEX_W25X32,
Zheng Bao1db2b752009-11-26 11:05:01 +00007968 .total_size = 4096,
7969 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00007970 .feature_bits = FEATURE_WRSR_WREN,
Zheng Bao1db2b752009-11-26 11:05:01 +00007971 .tested = TEST_OK_PROBE,
7972 .probe = probe_spi_rdid,
7973 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00007974 .block_erasers =
7975 {
7976 {
7977 .eraseblocks = { {4 * 1024, 1024} },
7978 .block_erase = spi_block_erase_20,
7979 }, {
7980 .eraseblocks = { {32 * 1024, 128} },
7981 .block_erase = spi_block_erase_52,
7982 }, {
7983 .eraseblocks = { {64 * 1024, 64} },
7984 .block_erase = spi_block_erase_d8,
7985 }, {
7986 .eraseblocks = { {4 * 1024 * 1024, 1} },
7987 .block_erase = spi_block_erase_60,
7988 }, {
7989 .eraseblocks = { {4 * 1024 * 1024, 1} },
7990 .block_erase = spi_block_erase_c7,
7991 }
7992 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007993 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +00007994 .write = spi_chip_write_256,
7995 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007996 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +00007997 },
7998
7999 {
8000 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008001 .name = "W25X64",
Zheng Bao1db2b752009-11-26 11:05:01 +00008002 .bustype = CHIP_BUSTYPE_SPI,
8003 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008004 .model_id = WINBOND_NEX_W25X64,
Zheng Bao1db2b752009-11-26 11:05:01 +00008005 .total_size = 8192,
8006 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008007 .feature_bits = FEATURE_WRSR_WREN,
Antony Rheneus0fbba982011-05-26 14:28:51 +00008008 .tested = TEST_OK_PROBE,
Zheng Bao1db2b752009-11-26 11:05:01 +00008009 .probe = probe_spi_rdid,
8010 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008011 .block_erasers =
8012 {
8013 {
8014 .eraseblocks = { {4 * 1024, 2048} },
8015 .block_erase = spi_block_erase_20,
8016 }, {
8017 .eraseblocks = { {32 * 1024, 256} },
8018 .block_erase = spi_block_erase_52,
8019 }, {
8020 .eraseblocks = { {64 * 1024, 128} },
8021 .block_erase = spi_block_erase_d8,
8022 }, {
8023 .eraseblocks = { {8 * 1024 * 1024, 1} },
8024 .block_erase = spi_block_erase_60,
8025 }, {
8026 .eraseblocks = { {8 * 1024 * 1024, 1} },
8027 .block_erase = spi_block_erase_c7,
8028 }
8029 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008030 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +00008031 .write = spi_chip_write_256,
8032 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008033 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +00008034 },
8035
8036 {
8037 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +00008038 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012",
Urja Rannikko038a3122009-06-28 19:19:25 +00008039 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008040 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008041 .model_id = WINBOND_W29C010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008042 .total_size = 128,
8043 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00008044 .feature_bits = FEATURE_LONG_RESET,
David Hendricks567b7b82011-05-18 01:31:03 +00008045 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008046 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008047 .probe_timing = 10, /* used datasheet for the W29C011A */
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008048 .block_erasers =
8049 {
8050 {
8051 .eraseblocks = { {128 * 1024, 1} },
8052 .block_erase = erase_chip_block_jedec,
8053 }
8054 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008055 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008056 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00008057 },
8058
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008059 {
8060 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +00008061 .name = "W29C020(C)/W29C022",
Urja Rannikko161b8852009-06-05 08:47:37 +00008062 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008063 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008064 .model_id = WINBOND_W29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008065 .total_size = 256,
8066 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00008067 .feature_bits = FEATURE_LONG_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008068 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008069 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008070 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008071 .block_erasers =
8072 {
8073 {
8074 .eraseblocks = { {256 * 1024, 1} },
8075 .block_erase = erase_chip_block_jedec,
8076 }
8077 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008078 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008079 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008080 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00008081 },
8082
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008083 {
8084 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +00008085 .name = "W29C040/P",
Urja Rannikko161b8852009-06-05 08:47:37 +00008086 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008087 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008088 .model_id = WINBOND_W29C040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008089 .total_size = 512,
8090 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00008091 .feature_bits = FEATURE_LONG_RESET,
8092 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008093 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00008094 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008095 .block_erasers =
8096 {
8097 {
8098 .eraseblocks = { {512 * 1024, 1} },
8099 .block_erase = erase_chip_block_jedec,
8100 }
8101 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008102 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008103 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008104 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00008105 },
8106
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008107 {
8108 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +00008109 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012",
Urja Rannikko038a3122009-06-28 19:19:25 +00008110 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008111 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008112 .model_id = WINBOND_W29C010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008113 .total_size = 128,
8114 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00008115 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00008116 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008117 .probe = probe_w29ee011,
Paul Menzelc07a41c2011-06-19 17:23:55 +00008118 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008119 .block_erasers =
8120 {
8121 {
8122 .eraseblocks = { {128 * 1024, 1} },
8123 .block_erase = erase_chip_block_jedec,
8124 }
8125 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008126 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008127 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00008128 },
8129
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008130 {
8131 .vendor = "Winbond",
Michael Karcher19e0aac2011-03-06 17:58:05 +00008132 .name = "W39L040",
8133 .bustype = CHIP_BUSTYPE_PARALLEL,
8134 .manufacture_id = WINBOND_ID,
8135 .model_id = WINBOND_W39L040,
8136 .total_size = 512,
8137 .page_size = 64 * 1024,
8138 .feature_bits = FEATURE_EITHER_RESET,
8139 .tested = TEST_OK_PR,
8140 .probe = probe_jedec,
8141 .probe_timing = 10,
8142 .block_erasers =
8143 {
8144 {
8145 .eraseblocks = { {4 * 1024, 128} },
8146 .block_erase = erase_block_jedec,
8147 }, {
8148 .eraseblocks = { {64 * 1024, 8} },
8149 .block_erase = erase_sector_jedec,
8150 }, {
8151 .eraseblocks = { {512 * 1024, 1} },
8152 .block_erase = erase_chip_block_jedec,
8153 }
8154 },
8155 .printlock = printlock_w39l040,
8156 .write = write_jedec_1,
8157 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008158 .voltage = {3000, 3600},
Michael Karcher19e0aac2011-03-06 17:58:05 +00008159 },
8160
8161 {
8162 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008163 .name = "W39V040A",
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00008164 .bustype = CHIP_BUSTYPE_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008165 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008166 .model_id = WINBOND_W39V040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008167 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00008168 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008169 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00008170 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008171 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00008172 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008173 .block_erasers =
8174 {
8175 {
8176 .eraseblocks = { {64 * 1024, 8} },
8177 .block_erase = erase_sector_jedec,
8178 }, {
8179 .eraseblocks = { {512 * 1024, 1} },
8180 .block_erase = erase_chip_block_jedec,
8181 }
8182 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008183 .printlock = printlock_w39v040a,
Sean Nelson35727f72010-01-28 23:55:12 +00008184 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008185 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008186 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008187 },
8188
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008189 {
8190 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008191 .name = "W39V040B",
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00008192 .bustype = CHIP_BUSTYPE_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008193 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008194 .model_id = WINBOND_W39V040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008195 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00008196 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008197 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00008198 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008199 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00008200 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008201 .block_erasers =
8202 {
8203 {
8204 .eraseblocks = { {64 * 1024, 8} },
8205 .block_erase = erase_sector_jedec,
8206 }, {
8207 .eraseblocks = { {512 * 1024, 1} },
8208 .block_erase = erase_chip_block_jedec,
8209 }
8210 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008211 .printlock = printlock_w39v040b,
Sean Nelson35727f72010-01-28 23:55:12 +00008212 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008213 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008214 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008215 },
8216
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008217 {
8218 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008219 .name = "W39V040C",
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00008220 .bustype = CHIP_BUSTYPE_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008221 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008222 .model_id = WINBOND_W39V040C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008223 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00008224 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008225 .feature_bits = FEATURE_EITHER_RESET,
8226 .tested = TEST_UNTESTED,
8227 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008228 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008229 .block_erasers =
8230 {
8231 {
8232 .eraseblocks = { {64 * 1024, 8} },
8233 .block_erase = erase_sector_jedec,
8234 }, {
8235 .eraseblocks = { {512 * 1024, 1} },
8236 .block_erase = erase_chip_block_jedec,
8237 }
8238 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00008239 .printlock = printlock_w39v040c,
Sean Nelson35727f72010-01-28 23:55:12 +00008240 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008241 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008242 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008243 },
8244
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008245 {
8246 .vendor = "Winbond",
8247 .name = "W39V040FA",
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00008248 .bustype = CHIP_BUSTYPE_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008249 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008250 .model_id = WINBOND_W39V040FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008251 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00008252 .page_size = 64 * 1024,
Michael Karcherc9b63412010-05-30 16:55:18 +00008253 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Antony Rheneus0fbba982011-05-26 14:28:51 +00008254 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008255 .probe = probe_jedec,
Antony Rheneus0fbba982011-05-26 14:28:51 +00008256 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008257 .block_erasers =
8258 {
8259 {
8260 .eraseblocks = { {4 * 1024, 128} },
8261 .block_erase = erase_block_jedec,
8262 }, {
8263 .eraseblocks = { {64 * 1024, 8} },
8264 .block_erase = erase_sector_jedec,
8265 }, {
8266 .eraseblocks = { {512 * 1024, 1} },
8267 .block_erase = erase_chip_block_jedec,
8268 }
8269 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008270 .printlock = printlock_w39v040fa,
Michael Karcherc9b63412010-05-30 16:55:18 +00008271 .unlock = unlock_sst_fwhub,
Sean Nelson35727f72010-01-28 23:55:12 +00008272 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008273 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008274 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008275 },
8276
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008277 {
8278 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008279 .name = "W39V040FB",
8280 .bustype = CHIP_BUSTYPE_FWH,
8281 .manufacture_id = WINBOND_ID,
8282 .model_id = WINBOND_W39V040B,
8283 .total_size = 512,
8284 .page_size = 64 * 1024,
8285 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00008286 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008287 .probe = probe_jedec,
8288 .probe_timing = 10,
8289 .block_erasers =
8290 {
8291 {
8292 .eraseblocks = { {64 * 1024, 8} },
8293 .block_erase = erase_sector_jedec,
8294 }, {
8295 .eraseblocks = { {512 * 1024, 1} },
8296 .block_erase = erase_chip_block_jedec,
8297 }
8298 },
8299 .printlock = printlock_w39v040fb,
Idwer Volleringecc67072010-12-26 23:55:12 +00008300 .unlock = unlock_w39v040fb,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008301 .write = write_jedec_1,
8302 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008303 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008304 },
8305
8306 {
8307 .vendor = "Winbond",
8308 .name = "W39V040FC",
8309 .bustype = CHIP_BUSTYPE_FWH,
8310 .manufacture_id = WINBOND_ID,
8311 .model_id = WINBOND_W39V040C,
8312 .total_size = 512,
8313 .page_size = 64 * 1024,
8314 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
8315 .tested = TEST_UNTESTED,
8316 .probe = probe_jedec,
8317 .probe_timing = 10,
8318 .block_erasers =
8319 {
8320 {
8321 .eraseblocks = { {64 * 1024, 8} },
8322 .block_erase = erase_sector_jedec,
8323 }, {
8324 .eraseblocks = { {512 * 1024, 1} },
8325 .block_erase = erase_chip_block_jedec,
8326 }
8327 },
8328 .printlock = printlock_w39v040fc,
8329 .write = write_jedec_1,
8330 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008331 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008332 },
8333
8334 {
8335 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008336 .name = "W39V080A",
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00008337 .bustype = CHIP_BUSTYPE_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008338 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008339 .model_id = WINBOND_W39V080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008340 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +00008341 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008342 .feature_bits = FEATURE_EITHER_RESET,
8343 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008344 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00008345 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008346 .block_erasers =
8347 {
8348 {
8349 .eraseblocks = { {64 * 1024, 16} },
8350 .block_erase = erase_sector_jedec,
8351 }, {
8352 .eraseblocks = { {1024 * 1024, 1} },
8353 .block_erase = erase_chip_block_jedec,
8354 }
8355 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008356 .printlock = printlock_w39v080a,
Sean Nelson35727f72010-01-28 23:55:12 +00008357 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008358 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008359 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008360 },
8361
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008362 {
8363 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +00008364 .name = "W49F002U/N",
Urja Rannikko038a3122009-06-28 19:19:25 +00008365 .bustype = CHIP_BUSTYPE_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008366 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008367 .model_id = WINBOND_W49F002U,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008368 .total_size = 256,
8369 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00008370 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00008371 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008372 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008373 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008374 .block_erasers =
8375 {
8376 {
8377 .eraseblocks = {
8378 {128 * 1024, 1},
8379 {96 * 1024, 1},
8380 {8 * 1024, 2},
8381 {16 * 1024, 1},
8382 },
8383 .block_erase = erase_sector_jedec,
8384 }, {
8385 .eraseblocks = { {256 * 1024, 1} },
8386 .block_erase = erase_chip_block_jedec,
8387 }
8388 },
Sean Nelson35727f72010-01-28 23:55:12 +00008389 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008390 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008391 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00008392 },
8393
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008394 {
8395 .vendor = "Winbond",
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +00008396 .name = "W49F020",
8397 .bustype = CHIP_BUSTYPE_PARALLEL,
8398 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008399 .model_id = WINBOND_W49F020,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +00008400 .total_size = 256,
8401 .page_size = 128,
8402 .feature_bits = FEATURE_EITHER_RESET,
8403 .tested = TEST_OK_PROBE,
8404 .probe = probe_jedec,
8405 .probe_timing = 10,
8406 .block_erasers =
8407 {
8408 {
8409 .eraseblocks = { {256 * 1024, 1} },
8410 .block_erase = erase_chip_block_jedec,
8411 }
8412 },
8413 .write = write_jedec_1,
8414 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008415 .voltage = {4500, 5500},
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +00008416 },
8417
8418 {
8419 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008420 .name = "W49V002A",
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00008421 .bustype = CHIP_BUSTYPE_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008422 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008423 .model_id = WINBOND_W49V002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008424 .total_size = 256,
8425 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00008426 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008427 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008428 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008429 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008430 .block_erasers =
8431 {
8432 {
8433 .eraseblocks = {
8434 {64 * 1024, 3},
8435 {32 * 1024, 1},
8436 {8 * 1024, 2},
8437 {16 * 1024, 1},
8438 },
8439 .block_erase = erase_sector_jedec,
8440 }, {
8441 .eraseblocks = { {256 * 1024, 1} },
8442 .block_erase = erase_chip_block_jedec,
8443 }
8444 },
Sean Nelson35727f72010-01-28 23:55:12 +00008445 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008446 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008447 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008448 },
8449
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008450 {
8451 .vendor = "Winbond",
8452 .name = "W49V002FA",
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00008453 .bustype = CHIP_BUSTYPE_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008454 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008455 .model_id = WINBOND_W49V002FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008456 .total_size = 256,
8457 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00008458 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00008459 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008460 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008461 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008462 .block_erasers =
8463 {
8464 {
8465 .eraseblocks = {
8466 {64 * 1024, 3},
8467 {32 * 1024, 1},
8468 {8 * 1024, 2},
8469 {16 * 1024, 1},
8470 },
8471 .block_erase = erase_sector_jedec,
8472 }, {
8473 .eraseblocks = { {256 * 1024, 1} },
8474 .block_erase = erase_chip_block_jedec,
8475 }
8476 },
Sean Nelson35727f72010-01-28 23:55:12 +00008477 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008478 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008479 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008480 },
8481
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008482 {
8483 .vendor = "Winbond",
8484 .name = "W39V080FA",
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00008485 .bustype = CHIP_BUSTYPE_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008486 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008487 .model_id = WINBOND_W39V080FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008488 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +00008489 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008490 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00008491 .tested = TEST_OK_PRE,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00008492 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008493 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008494 .block_erasers =
8495 {
8496 {
8497 .eraseblocks = { {64 * 1024, 16}, },
8498 .block_erase = erase_sector_jedec,
8499 }, {
8500 .eraseblocks = { {1024 * 1024, 1} },
8501 .block_erase = erase_chip_block_jedec,
8502 }
8503 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008504 .printlock = printlock_w39v080fa,
8505 .unlock = unlock_w39v080fa,
Sean Nelson35727f72010-01-28 23:55:12 +00008506 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008507 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008508 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +00008509 },
8510
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008511 {
8512 .vendor = "Winbond",
8513 .name = "W39V080FA (dual mode)",
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00008514 .bustype = CHIP_BUSTYPE_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008515 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008516 .model_id = WINBOND_W39V080FA_DM,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008517 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00008518 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008519 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008520 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00008521 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008522 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008523 .block_erasers =
8524 {
8525 {
8526 .eraseblocks = { {64 * 1024, 8}, },
8527 .block_erase = erase_sector_jedec,
8528 }, {
8529 .eraseblocks = { {512 * 1024, 1} },
8530 .block_erase = erase_chip_block_jedec,
8531 }
8532 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008533 .printlock = printlock_w39v080fa_dual,
Sean Nelson35727f72010-01-28 23:55:12 +00008534 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008535 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008536 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +00008537 },
8538
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008539 {
Daniel Lenskidf90d3a2010-07-22 11:44:38 +00008540 .vendor = "AMIC",
8541 .name = "unknown AMIC SPI chip",
8542 .bustype = CHIP_BUSTYPE_SPI,
8543 .manufacture_id = AMIC_ID,
8544 .model_id = GENERIC_DEVICE_ID,
8545 .total_size = 0,
8546 .page_size = 256,
8547 .tested = TEST_BAD_PREW,
8548 .probe = probe_spi_rdid4,
8549 .probe_timing = TIMING_ZERO,
8550 .write = NULL,
8551 .read = NULL,
8552 },
8553
8554 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008555 .vendor = "Atmel",
8556 .name = "unknown Atmel SPI chip",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00008557 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008558 .manufacture_id = ATMEL_ID,
8559 .model_id = GENERIC_DEVICE_ID,
8560 .total_size = 0,
8561 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00008562 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008563 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008564 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008565 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008566 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00008567 },
8568
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008569 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00008570 .vendor = "Eon",
8571 .name = "unknown Eon SPI chip",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00008572 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008573 .manufacture_id = EON_ID_NOPREFIX,
8574 .model_id = GENERIC_DEVICE_ID,
8575 .total_size = 0,
8576 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00008577 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008578 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008579 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008580 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008581 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00008582 },
8583
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008584 {
8585 .vendor = "Macronix",
8586 .name = "unknown Macronix SPI chip",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00008587 .bustype = CHIP_BUSTYPE_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008588 .manufacture_id = MACRONIX_ID,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008589 .model_id = GENERIC_DEVICE_ID,
8590 .total_size = 0,
8591 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00008592 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008593 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008594 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008595 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008596 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00008597 },
8598
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008599 {
8600 .vendor = "PMC",
8601 .name = "unknown PMC SPI chip",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00008602 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008603 .manufacture_id = PMC_ID,
8604 .model_id = GENERIC_DEVICE_ID,
8605 .total_size = 0,
8606 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00008607 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008608 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008609 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008610 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008611 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00008612 },
8613
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008614 {
8615 .vendor = "SST",
8616 .name = "unknown SST SPI chip",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00008617 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008618 .manufacture_id = SST_ID,
8619 .model_id = GENERIC_DEVICE_ID,
8620 .total_size = 0,
8621 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00008622 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008623 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008624 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008625 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008626 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00008627 },
8628
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008629 {
8630 .vendor = "ST",
8631 .name = "unknown ST SPI chip",
Carl-Daniel Hailfinger1dfe0ff2009-05-31 17:57:34 +00008632 .bustype = CHIP_BUSTYPE_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008633 .manufacture_id = ST_ID,
8634 .model_id = GENERIC_DEVICE_ID,
8635 .total_size = 0,
8636 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00008637 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008638 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008639 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008640 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008641 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00008642 },
Uwe Hermannfc425e82008-03-16 02:06:25 +00008643
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00008644 {
Sean Nelson118e1d62009-11-24 02:08:11 +00008645 .vendor = "Sanyo",
8646 .name = "unknown Sanyo SPI chip",
8647 .bustype = CHIP_BUSTYPE_SPI,
8648 .manufacture_id = SANYO_ID,
8649 .model_id = GENERIC_DEVICE_ID,
8650 .total_size = 0,
8651 .page_size = 256,
8652 .tested = TEST_BAD_PREW,
8653 .probe = probe_spi_rdid,
8654 .probe_timing = TIMING_ZERO,
Sean Nelson118e1d62009-11-24 02:08:11 +00008655 .write = NULL,
8656 .read = NULL,
8657 },
8658
8659 {
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00008660 .vendor = "Generic",
8661 .name = "unknown SPI chip (RDID)",
8662 .bustype = CHIP_BUSTYPE_SPI,
8663 .manufacture_id = GENERIC_MANUF_ID,
8664 .model_id = GENERIC_DEVICE_ID,
8665 .total_size = 0,
8666 .page_size = 256,
8667 .tested = TEST_BAD_PREW,
8668 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00008669 .write = NULL,
8670 },
8671 {
8672 .vendor = "Generic",
8673 .name = "unknown SPI chip (REMS)",
8674 .bustype = CHIP_BUSTYPE_SPI,
8675 .manufacture_id = GENERIC_MANUF_ID,
8676 .model_id = GENERIC_DEVICE_ID,
8677 .total_size = 0,
8678 .page_size = 256,
8679 .tested = TEST_BAD_PREW,
8680 .probe = probe_spi_rems,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00008681 .write = NULL,
8682 },
8683
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008684 { NULL }
Stephan Guilloux72cf5652009-04-21 01:46:07 +00008685};