blob: 4d77cf1828019de81f54953e4c50d752e453320d [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",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000063 .bustype = BUS_PARALLEL,
Uwe Hermanna8b37272009-06-19 15:54:39 +000064 .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",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000090 .bustype = BUS_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",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000122 .bustype = BUS_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",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000154 .bustype = BUS_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",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000181 .bustype = BUS_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",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000208 .bustype = BUS_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",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000235 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000236 .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",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000266 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000267 .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",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000297 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000298 .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",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000329 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000330 .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",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000361 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000362 .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",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000393 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000394 .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",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000425 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000426 .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,
Uwe Hermann09ebd522011-08-25 22:54:23 +0000431 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000432 .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",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000457 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000458 .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",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000489 .bustype = BUS_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",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000516 .bustype = BUS_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",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000543 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000544 .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",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000576 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000577 .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",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000609 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000610 .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",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000643 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000644 .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",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000677 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000678 .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",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000711 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000712 .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",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000750 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000751 .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",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000784 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000785 .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",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000818 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000819 .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",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000852 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000853 .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",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000889 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000890 .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",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000926 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +0000927 .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",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000958 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +0000959 .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",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000990 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +0000991 .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",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001022 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001023 .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",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001054 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001055 .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",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001086 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001087 .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",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001118 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001119 .manufacture_id = AMIC_ID_NOPREFIX,
1120 .model_id = AMIC_A25L032,
1121 .total_size = 4096,
1122 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001123 /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */
1124 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Dan Lenski11617122010-07-29 15:00:40 +00001125 .tested = TEST_UNTESTED,
1126 .probe = probe_spi_rdid,
1127 .probe_timing = TIMING_ZERO,
1128 .block_erasers =
1129 {
1130 {
1131 .eraseblocks = { { 4 * 1024, 1024 } },
1132 .block_erase = spi_block_erase_20,
1133 }, {
1134 .eraseblocks = { { 64 * 1024, 64 } },
1135 .block_erase = spi_block_erase_52,
1136 }, {
1137 .eraseblocks = { { 64 * 1024, 64 } },
1138 .block_erase = spi_block_erase_d8,
1139 }, {
1140 .eraseblocks = { { 4096 * 1024, 1 } },
1141 .block_erase = spi_block_erase_60,
1142 }, {
1143 .eraseblocks = { { 4096 * 1024, 1 } },
1144 .block_erase = spi_block_erase_c7,
1145 }
1146 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001147 .printlock = spi_prettyprint_status_register_amic_a25l032,
Dan Lenski11617122010-07-29 15:00:40 +00001148 .unlock = NULL, /* Two status reg bytes (read with 0x35 and 0x05) */
1149 .write = spi_chip_write_256,
1150 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001151 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001152 },
1153
1154 {
1155 .vendor = "AMIC",
1156 .name = "A25LQ032",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001157 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001158 .manufacture_id = AMIC_ID_NOPREFIX,
1159 .model_id = AMIC_A25LQ032,
1160 .total_size = 4096,
1161 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001162 /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */
1163 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Dan Lenski11617122010-07-29 15:00:40 +00001164 .tested = TEST_UNTESTED,
1165 .probe = probe_spi_rdid,
1166 .probe_timing = TIMING_ZERO,
1167 .block_erasers =
1168 {
1169 {
1170 .eraseblocks = { { 4 * 1024, 1024 } },
1171 .block_erase = spi_block_erase_20,
1172 }, {
1173 .eraseblocks = { { 64 * 1024, 64 } },
1174 .block_erase = spi_block_erase_52,
1175 }, {
1176 .eraseblocks = { { 64 * 1024, 64 } },
1177 .block_erase = spi_block_erase_d8,
1178 }, {
1179 .eraseblocks = { { 4096 * 1024, 1 } },
1180 .block_erase = spi_block_erase_60,
1181 }, {
1182 .eraseblocks = { { 4096 * 1024, 1 } },
1183 .block_erase = spi_block_erase_c7,
1184 }
1185 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001186 .printlock = spi_prettyprint_status_register_amic_a25lq032,
Dan Lenski11617122010-07-29 15:00:40 +00001187 .unlock = NULL, /* Two status reg bytes (read with 0x35 and 0x05) */
1188 .write = spi_chip_write_256,
1189 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001190 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001191 },
1192
1193 {
1194 .vendor = "AMIC",
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001195 .name = "A29002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001196 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001197 .manufacture_id = AMIC_ID_NOPREFIX,
1198 .model_id = AMIC_A29002B,
1199 .total_size = 256,
1200 .page_size = 64 * 1024,
1201 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
1202 .tested = TEST_UNTESTED,
1203 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001204 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001205 .block_erasers =
1206 {
1207 {
1208 .eraseblocks = {
1209 {16 * 1024, 1},
1210 {8 * 1024, 2},
1211 {32 * 1024, 1},
1212 {64 * 1024, 3},
1213 },
1214 .block_erase = erase_sector_jedec,
1215 }, {
1216 .eraseblocks = { {256 * 1024, 1} },
1217 .block_erase = erase_chip_block_jedec,
1218 },
1219 },
1220 .write = write_jedec_1,
1221 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001222 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001223 },
1224
1225 {
1226 .vendor = "AMIC",
1227 .name = "A29002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001228 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001229 .manufacture_id = AMIC_ID_NOPREFIX,
1230 .model_id = AMIC_A29002T,
1231 .total_size = 256,
1232 .page_size = 64 * 1024,
1233 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00001234 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001235 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001236 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001237 .block_erasers =
1238 {
1239 {
1240 .eraseblocks = {
1241 {64 * 1024, 3},
1242 {32 * 1024, 1},
1243 {8 * 1024, 2},
1244 {16 * 1024, 1},
1245 },
1246 .block_erase = erase_sector_jedec,
1247 }, {
1248 .eraseblocks = { {256 * 1024, 1} },
1249 .block_erase = erase_chip_block_jedec,
1250 },
1251 },
1252 .write = write_jedec_1,
1253 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001254 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001255 },
1256
1257 {
1258 .vendor = "AMIC",
1259 .name = "A29040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001260 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001261 .manufacture_id = AMIC_ID_NOPREFIX,
1262 .model_id = AMIC_A29040B,
1263 .total_size = 512,
1264 .page_size = 64 * 1024,
1265 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
1266 .tested = TEST_UNTESTED,
1267 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001268 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001269 .block_erasers =
1270 {
1271 {
1272 .eraseblocks = { {64 * 1024, 8} },
1273 .block_erase = erase_sector_jedec,
1274 }, {
1275 .eraseblocks = { {512 * 1024, 1} },
1276 .block_erase = erase_chip_block_jedec,
1277 },
1278 },
1279 .write = write_jedec_1,
1280 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001281 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001282 },
1283
1284 {
1285 .vendor = "AMIC",
1286 .name = "A49LF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001287 .bustype = BUS_LPC,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001288 .manufacture_id = AMIC_ID_NOPREFIX,
1289 .model_id = AMIC_A49LF040A,
1290 .total_size = 512,
1291 .page_size = 64 * 1024,
1292 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +00001293 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001294 .probe = probe_jedec,
1295 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
1296 .block_erasers =
1297 {
1298 {
1299 .eraseblocks = { {64 * 1024, 8} },
1300 .block_erase = erase_block_jedec,
1301 }, {
1302 .eraseblocks = { {512 * 1024, 1} },
1303 .block_erase = erase_chip_block_jedec,
1304 }
1305 },
1306 .unlock = unlock_49fl00x,
1307 .write = write_jedec_1,
1308 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001309 .voltage = {3000, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001310 },
1311
1312 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001313 .vendor = "Atmel",
1314 .name = "AT25DF021",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001315 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001316 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001317 .model_id = ATMEL_AT25DF021,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001318 .total_size = 256,
1319 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001320 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1321 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001322 .tested = TEST_UNTESTED,
1323 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001324 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001325 .block_erasers =
1326 {
1327 {
1328 .eraseblocks = { {4 * 1024, 64} },
1329 .block_erase = spi_block_erase_20,
1330 }, {
1331 .eraseblocks = { {32 * 1024, 8} },
1332 .block_erase = spi_block_erase_52,
1333 }, {
1334 .eraseblocks = { {64 * 1024, 4} },
1335 .block_erase = spi_block_erase_d8,
1336 }, {
1337 .eraseblocks = { {256 * 1024, 1} },
1338 .block_erase = spi_block_erase_60,
1339 }, {
1340 .eraseblocks = { {256 * 1024, 1} },
1341 .block_erase = spi_block_erase_c7,
1342 }
1343 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001344 .printlock = spi_prettyprint_status_register_at25df,
1345 .unlock = spi_disable_blockprotect_at25df,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001346 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001347 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001348 .voltage = {2700, 3600}, /* 2.3-3.6V & 2.7-3.6V models available */
FENG yu ningff692fb2008-12-08 18:15:10 +00001349 },
1350
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001351 {
1352 .vendor = "Atmel",
1353 .name = "AT25DF041A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001354 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001355 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001356 .model_id = ATMEL_AT25DF041A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001357 .total_size = 512,
1358 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001359 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001360 .tested = TEST_UNTESTED,
1361 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001362 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001363 .block_erasers =
1364 {
1365 {
1366 .eraseblocks = { {4 * 1024, 128} },
1367 .block_erase = spi_block_erase_20,
1368 }, {
1369 .eraseblocks = { {32 * 1024, 16} },
1370 .block_erase = spi_block_erase_52,
1371 }, {
1372 .eraseblocks = { {64 * 1024, 8} },
1373 .block_erase = spi_block_erase_d8,
1374 }, {
1375 .eraseblocks = { {512 * 1024, 1} },
1376 .block_erase = spi_block_erase_60,
1377 }, {
1378 .eraseblocks = { {512 * 1024, 1} },
1379 .block_erase = spi_block_erase_c7,
1380 }
1381 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001382 .printlock = spi_prettyprint_status_register_at25df,
1383 .unlock = spi_disable_blockprotect_at25df,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001384 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001385 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001386 .voltage = {2700, 3600}, /* 2.3-3.6V & 2.7-3.6V models available */
FENG yu ningff692fb2008-12-08 18:15:10 +00001387 },
1388
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001389 {
1390 .vendor = "Atmel",
1391 .name = "AT25DF081",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001392 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001393 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001394 .model_id = ATMEL_AT25DF081,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001395 .total_size = 1024,
1396 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001397 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001398 .tested = TEST_UNTESTED,
1399 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001400 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001401 .block_erasers =
1402 {
1403 {
1404 .eraseblocks = { {4 * 1024, 256} },
1405 .block_erase = spi_block_erase_20,
1406 }, {
1407 .eraseblocks = { {32 * 1024, 32} },
1408 .block_erase = spi_block_erase_52,
1409 }, {
1410 .eraseblocks = { {64 * 1024, 16} },
1411 .block_erase = spi_block_erase_d8,
1412 }, {
1413 .eraseblocks = { {1024 * 1024, 1} },
1414 .block_erase = spi_block_erase_60,
1415 }, {
1416 .eraseblocks = { {1024 * 1024, 1} },
1417 .block_erase = spi_block_erase_c7,
1418 }
1419 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001420 .printlock = spi_prettyprint_status_register_at25df,
1421 .unlock = spi_disable_blockprotect_at25df,
1422 .write = spi_chip_write_256,
1423 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001424 .voltage = {1600, 2000}, /* Datasheet says range is 1.65-1.95 V */
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001425 },
1426
1427 {
1428 .vendor = "Atmel",
1429 .name = "AT25DF081A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001430 .bustype = BUS_SPI,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001431 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001432 .model_id = ATMEL_AT25DF081A,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001433 .total_size = 1024,
1434 .page_size = 256,
1435 .feature_bits = FEATURE_WRSR_WREN,
1436 .tested = TEST_UNTESTED,
1437 .probe = probe_spi_rdid,
1438 .probe_timing = TIMING_ZERO,
1439 .block_erasers =
1440 {
1441 {
1442 .eraseblocks = { {4 * 1024, 256} },
1443 .block_erase = spi_block_erase_20,
1444 }, {
1445 .eraseblocks = { {32 * 1024, 32} },
1446 .block_erase = spi_block_erase_52,
1447 }, {
1448 .eraseblocks = { {64 * 1024, 16} },
1449 .block_erase = spi_block_erase_d8,
1450 }, {
1451 .eraseblocks = { {1024 * 1024, 1} },
1452 .block_erase = spi_block_erase_60,
1453 }, {
1454 .eraseblocks = { {1024 * 1024, 1} },
1455 .block_erase = spi_block_erase_c7,
1456 }
1457 },
1458 .printlock = spi_prettyprint_status_register_at25df_sec,
1459 .unlock = spi_disable_blockprotect_at25df_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001460 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001461 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001462 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001463 },
1464
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001465 {
1466 .vendor = "Atmel",
1467 .name = "AT25DF161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001468 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001469 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001470 .model_id = ATMEL_AT25DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001471 .total_size = 2048,
1472 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001473 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001474 .tested = TEST_UNTESTED,
1475 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001476 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001477 .block_erasers =
1478 {
1479 {
1480 .eraseblocks = { {4 * 1024, 512} },
1481 .block_erase = spi_block_erase_20,
1482 }, {
1483 .eraseblocks = { {32 * 1024, 64} },
1484 .block_erase = spi_block_erase_52,
1485 }, {
1486 .eraseblocks = { {64 * 1024, 32} },
1487 .block_erase = spi_block_erase_d8,
1488 }, {
1489 .eraseblocks = { {2 * 1024 * 1024, 1} },
1490 .block_erase = spi_block_erase_60,
1491 }, {
1492 .eraseblocks = { {2 * 1024 * 1024, 1} },
1493 .block_erase = spi_block_erase_c7,
1494 }
1495 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001496 .printlock = spi_prettyprint_status_register_at25df_sec,
1497 .unlock = spi_disable_blockprotect_at25df_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001498 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001499 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001500 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001501 },
1502
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001503 {
1504 .vendor = "Atmel",
1505 .name = "AT25DF321",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001506 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001507 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001508 .model_id = ATMEL_AT25DF321,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001509 .total_size = 4096,
1510 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001511 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd06d9412011-06-12 19:47:55 +00001512 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001513 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001514 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001515 .block_erasers =
1516 {
1517 {
1518 .eraseblocks = { {4 * 1024, 1024} },
1519 .block_erase = spi_block_erase_20,
1520 }, {
1521 .eraseblocks = { {32 * 1024, 128} },
1522 .block_erase = spi_block_erase_52,
1523 }, {
1524 .eraseblocks = { {64 * 1024, 64} },
1525 .block_erase = spi_block_erase_d8,
1526 }, {
1527 .eraseblocks = { {4 * 1024 * 1024, 1} },
1528 .block_erase = spi_block_erase_60,
1529 }, {
1530 .eraseblocks = { {4 * 1024 * 1024, 1} },
1531 .block_erase = spi_block_erase_c7,
1532 }
1533 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001534 .printlock = spi_prettyprint_status_register_at25df,
1535 .unlock = spi_disable_blockprotect_at25df,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001536 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001537 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001538 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001539 },
1540
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001541 {
1542 .vendor = "Atmel",
1543 .name = "AT25DF321A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001544 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001545 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001546 .model_id = ATMEL_AT25DF321A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001547 .total_size = 4096,
1548 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001549 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1550 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00001551 .tested = TEST_OK_PROBE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001552 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001553 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001554 .block_erasers =
1555 {
1556 {
1557 .eraseblocks = { {4 * 1024, 1024} },
1558 .block_erase = spi_block_erase_20,
1559 }, {
1560 .eraseblocks = { {32 * 1024, 128} },
1561 .block_erase = spi_block_erase_52,
1562 }, {
1563 .eraseblocks = { {64 * 1024, 64} },
1564 .block_erase = spi_block_erase_d8,
1565 }, {
1566 .eraseblocks = { {4 * 1024 * 1024, 1} },
1567 .block_erase = spi_block_erase_60,
1568 }, {
1569 .eraseblocks = { {4 * 1024 * 1024, 1} },
1570 .block_erase = spi_block_erase_c7,
1571 }
1572 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001573 .printlock = spi_prettyprint_status_register_at25df_sec,
1574 .unlock = spi_disable_blockprotect_at25df_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001575 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001576 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001577 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001578 },
1579
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001580 {
1581 .vendor = "Atmel",
Paul Menzelac427b22012-02-16 21:07:07 +00001582 .name = "AT25DF641(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001583 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001584 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001585 .model_id = ATMEL_AT25DF641,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001586 .total_size = 8192,
1587 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001588 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001589 .tested = TEST_UNTESTED,
1590 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001591 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001592 .block_erasers =
1593 {
1594 {
1595 .eraseblocks = { {4 * 1024, 2048} },
1596 .block_erase = spi_block_erase_20,
1597 }, {
1598 .eraseblocks = { {32 * 1024, 256} },
1599 .block_erase = spi_block_erase_52,
1600 }, {
1601 .eraseblocks = { {64 * 1024, 128} },
1602 .block_erase = spi_block_erase_d8,
1603 }, {
1604 .eraseblocks = { {8 * 1024 * 1024, 1} },
1605 .block_erase = spi_block_erase_60,
1606 }, {
1607 .eraseblocks = { {8 * 1024 * 1024, 1} },
1608 .block_erase = spi_block_erase_c7,
1609 }
1610 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001611 .printlock = spi_prettyprint_status_register_at25df_sec,
1612 .unlock = spi_disable_blockprotect_at25df_sec,
1613 .write = spi_chip_write_256,
1614 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001615 .voltage = {2700, 3600},
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001616 },
1617
1618 {
1619 .vendor = "Atmel",
1620 .name = "AT25DQ161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001621 .bustype = BUS_SPI,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001622 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001623 .model_id = ATMEL_AT25DQ161,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001624 .total_size = 2048,
1625 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001626 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1627 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001628 .tested = TEST_UNTESTED,
1629 .probe = probe_spi_rdid,
1630 .probe_timing = TIMING_ZERO,
1631 .block_erasers =
1632 {
1633 {
1634 .eraseblocks = { {4 * 1024, 512} },
1635 .block_erase = spi_block_erase_20,
1636 }, {
1637 .eraseblocks = { {32 * 1024, 64} },
1638 .block_erase = spi_block_erase_52,
1639 }, {
1640 .eraseblocks = { {64 * 1024, 32} },
1641 .block_erase = spi_block_erase_d8,
1642 }, {
1643 .eraseblocks = { {2 * 1024 * 1024, 1} },
1644 .block_erase = spi_block_erase_60,
1645 }, {
1646 .eraseblocks = { {2 * 1024 * 1024, 1} },
1647 .block_erase = spi_block_erase_c7,
1648 }
1649 },
1650 .printlock = spi_prettyprint_status_register_at25df_sec,
1651 .unlock = spi_disable_blockprotect_at25df_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001652 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001653 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001654 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001655 },
1656
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001657 {
1658 .vendor = "Atmel",
1659 .name = "AT25F512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001660 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001661 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001662 .model_id = ATMEL_AT25F512B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001663 .total_size = 64,
1664 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001665 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1666 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001667 .tested = TEST_UNTESTED,
1668 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001669 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001670 .block_erasers =
1671 {
1672 {
1673 .eraseblocks = { {4 * 1024, 16} },
1674 .block_erase = spi_block_erase_20,
1675 }, {
1676 .eraseblocks = { {32 * 1024, 2} },
1677 .block_erase = spi_block_erase_52,
1678 }, {
1679 .eraseblocks = { {32 * 1024, 2} },
1680 .block_erase = spi_block_erase_d8,
1681 }, {
1682 .eraseblocks = { {64 * 1024, 1} },
1683 .block_erase = spi_block_erase_60,
1684 }, {
1685 .eraseblocks = { {64 * 1024, 1} },
1686 .block_erase = spi_block_erase_c7,
1687 }
1688 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001689 .printlock = spi_prettyprint_status_register_at25f,
1690 .unlock = spi_disable_blockprotect_at25f,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001691 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001692 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001693 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001694 },
1695
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001696 {
1697 .vendor = "Atmel",
1698 .name = "AT25FS010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001699 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001700 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001701 .model_id = ATMEL_AT25FS010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001702 .total_size = 128,
1703 .page_size = 256,
1704 .tested = TEST_UNTESTED,
1705 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001706 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001707 .block_erasers =
1708 {
1709 {
1710 .eraseblocks = { {4 * 1024, 32} },
1711 .block_erase = spi_block_erase_20,
1712 }, {
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001713 .eraseblocks = { {4 * 1024, 32} },
1714 .block_erase = spi_block_erase_d7,
1715 }, {
Sean Nelson89187292009-12-23 12:02:55 +00001716 .eraseblocks = { {32 * 1024, 4} },
1717 .block_erase = spi_block_erase_52,
1718 }, {
1719 .eraseblocks = { {32 * 1024, 4} },
1720 .block_erase = spi_block_erase_d8,
1721 }, {
1722 .eraseblocks = { {128 * 1024, 1} },
1723 .block_erase = spi_block_erase_60,
1724 }, {
1725 .eraseblocks = { {128 * 1024, 1} },
1726 .block_erase = spi_block_erase_c7,
1727 }
1728 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001729 .printlock = spi_prettyprint_status_register_at25fs010,
1730 .unlock = spi_disable_blockprotect_at25fs010,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001731 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001732 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001733 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001734 },
1735
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001736 {
1737 .vendor = "Atmel",
1738 .name = "AT25FS040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001739 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001740 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001741 .model_id = ATMEL_AT25FS040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001742 .total_size = 512,
1743 .page_size = 256,
1744 .tested = TEST_UNTESTED,
1745 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001746 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001747 .block_erasers =
1748 {
1749 {
1750 .eraseblocks = { {4 * 1024, 128} },
1751 .block_erase = spi_block_erase_20,
1752 }, {
1753 .eraseblocks = { {64 * 1024, 8} },
1754 .block_erase = spi_block_erase_52,
1755 }, {
1756 .eraseblocks = { {64 * 1024, 8} },
1757 .block_erase = spi_block_erase_d8,
1758 }, {
1759 .eraseblocks = { {512 * 1024, 1} },
1760 .block_erase = spi_block_erase_60,
1761 }, {
1762 .eraseblocks = { {512 * 1024, 1} },
1763 .block_erase = spi_block_erase_c7,
1764 }
1765 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001766 .printlock = spi_prettyprint_status_register_at25fs040,
1767 .unlock = spi_disable_blockprotect_at25fs040,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001768 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001769 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001770 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001771 },
1772
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001773 {
1774 .vendor = "Atmel",
1775 .name = "AT26DF041",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001776 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001777 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001778 .model_id = ATMEL_AT26DF041,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001779 .total_size = 512,
1780 .page_size = 256,
1781 .tested = TEST_UNTESTED,
1782 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001783 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001784 .block_erasers =
1785 {
1786 {
1787 .eraseblocks = { {4 * 1024, 128} },
1788 .block_erase = spi_block_erase_20,
1789 }
1790 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001791 .write = NULL /* Incompatible Page write */,
1792 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001793 .voltage = {2700, 3600}, /* 3.0-3.6V for higher speed, 2.7-3.6V normal */
FENG yu ningff692fb2008-12-08 18:15:10 +00001794 },
1795
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001796 {
1797 .vendor = "Atmel",
1798 .name = "AT26DF081A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001799 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001800 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001801 .model_id = ATMEL_AT26DF081A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001802 .total_size = 1024,
1803 .page_size = 256,
Mathias Krause2c3afa32011-01-17 07:45:54 +00001804 .feature_bits = FEATURE_WRSR_WREN,
1805 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001806 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001807 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001808 .block_erasers =
1809 {
1810 {
1811 .eraseblocks = { {4 * 1024, 256} },
1812 .block_erase = spi_block_erase_20,
1813 }, {
1814 .eraseblocks = { {32 * 1024, 32} },
1815 .block_erase = spi_block_erase_52,
1816 }, {
1817 .eraseblocks = { {64 * 1024, 16} },
1818 .block_erase = spi_block_erase_d8,
1819 }, {
1820 .eraseblocks = { {1024 * 1024, 1} },
1821 .block_erase = spi_block_erase_60,
1822 }, {
1823 .eraseblocks = { {1024 * 1024, 1} },
1824 .block_erase = spi_block_erase_c7,
1825 }
1826 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001827 .printlock = spi_prettyprint_status_register_atmel_at26df081a,
Mathias Krause2c3afa32011-01-17 07:45:54 +00001828 .unlock = spi_disable_blockprotect_at25df,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001829 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001830 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001831 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001832 },
1833
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001834 {
1835 .vendor = "Atmel",
1836 .name = "AT26DF161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001837 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001838 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001839 .model_id = ATMEL_AT26DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001840 .total_size = 2048,
1841 .page_size = 256,
1842 .tested = TEST_UNTESTED,
1843 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001844 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001845 .block_erasers =
1846 {
1847 {
1848 .eraseblocks = { {4 * 1024, 512} },
1849 .block_erase = spi_block_erase_20,
1850 }, {
1851 .eraseblocks = { {32 * 1024, 64} },
1852 .block_erase = spi_block_erase_52,
1853 }, {
1854 .eraseblocks = { {64 * 1024, 32} },
1855 .block_erase = spi_block_erase_d8,
1856 }, {
1857 .eraseblocks = { {2 * 1024 * 1024, 1} },
1858 .block_erase = spi_block_erase_60,
1859 }, {
1860 .eraseblocks = { {2 * 1024 * 1024, 1} },
1861 .block_erase = spi_block_erase_c7,
1862 }
1863 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001864 .printlock = spi_prettyprint_status_register_at25df,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00001865 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001866 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001867 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001868 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001869 },
1870
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001871 {
1872 .vendor = "Atmel",
1873 .name = "AT26DF161A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001874 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001875 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001876 .model_id = ATMEL_AT26DF161A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001877 .total_size = 2048,
1878 .page_size = 256,
1879 .tested = TEST_UNTESTED,
1880 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001881 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001882 .block_erasers =
1883 {
1884 {
1885 .eraseblocks = { {4 * 1024, 512} },
1886 .block_erase = spi_block_erase_20,
1887 }, {
1888 .eraseblocks = { {32 * 1024, 64} },
1889 .block_erase = spi_block_erase_52,
1890 }, {
1891 .eraseblocks = { {64 * 1024, 32} },
1892 .block_erase = spi_block_erase_d8,
1893 }, {
1894 .eraseblocks = { {2 * 1024 * 1024, 1} },
1895 .block_erase = spi_block_erase_60,
1896 }, {
1897 .eraseblocks = { {2 * 1024 * 1024, 1} },
1898 .block_erase = spi_block_erase_c7,
1899 }
1900 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001901 .printlock = spi_prettyprint_status_register_atmel_at26df081a,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00001902 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001903 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001904 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001905 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001906 },
1907
1908 /*The AT26DF321 has the same ID as the AT25DF321. */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001909 /*{
1910 .vendor = "Atmel",
1911 .name = "AT26DF321",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001912 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001913 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001914 .model_id = ATMEL_AT26DF321,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001915 .total_size = 4096,
1916 .page_size = 256,
1917 .tested = TEST_UNTESTED,
1918 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001919 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001920 .printlock = spi_prettyprint_status_register_atmel_at26df081a,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00001921 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001922 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001923 .read = spi_chip_read,
1924 },*/
FENG yu ningff692fb2008-12-08 18:15:10 +00001925
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001926 {
1927 .vendor = "Atmel",
1928 .name = "AT26F004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001929 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001930 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001931 .model_id = ATMEL_AT26F004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001932 .total_size = 512,
1933 .page_size = 256,
1934 .tested = TEST_UNTESTED,
1935 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001936 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001937 .block_erasers =
1938 {
1939 {
1940 .eraseblocks = { {4 * 1024, 128} },
1941 .block_erase = spi_block_erase_20,
1942 }, {
1943 .eraseblocks = { {32 * 1024, 16} },
1944 .block_erase = spi_block_erase_52,
1945 }, {
1946 .eraseblocks = { {64 * 1024, 8} },
1947 .block_erase = spi_block_erase_d8,
1948 }, {
1949 .eraseblocks = { {512 * 1024, 1} },
1950 .block_erase = spi_block_erase_60,
1951 }, {
1952 .eraseblocks = { {512 * 1024, 1} },
1953 .block_erase = spi_block_erase_c7,
1954 }
1955 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001956 .write = NULL /* Incompatible Page write */,
1957 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001958 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001959 },
1960
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001961 {
1962 .vendor = "Atmel",
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00001963 .name = "AT29C512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001964 .bustype = BUS_PARALLEL,
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00001965 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001966 .model_id = ATMEL_AT29C512,
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00001967 .total_size = 64,
1968 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00001969 .feature_bits = FEATURE_LONG_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +00001970 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00001971 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00001972 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00001973 .block_erasers =
1974 {
1975 {
1976 .eraseblocks = { {64 * 1024, 1} },
1977 .block_erase = erase_chip_block_jedec,
1978 }
1979 },
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00001980 .write = write_jedec,
1981 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001982 .voltage = {4500, 5500},
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00001983 },
1984
1985 {
1986 .vendor = "Atmel",
Uwe Hermann8403ccb2009-05-16 21:39:19 +00001987 .name = "AT29C010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001988 .bustype = BUS_PARALLEL,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00001989 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001990 .model_id = ATMEL_AT29C010A,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00001991 .total_size = 128,
1992 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00001993 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00001994 .tested = TEST_OK_PRE,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00001995 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00001996 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00001997 .block_erasers =
1998 {
1999 {
2000 .eraseblocks = { {128 * 1024, 1} },
2001 .block_erase = erase_chip_block_jedec,
2002 }
2003 },
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002004 .write = write_jedec, /* FIXME */
2005 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002006 .voltage = {4500, 5500},
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002007 },
2008
2009 {
2010 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002011 .name = "AT29C020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002012 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002013 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002014 .model_id = ATMEL_AT29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002015 .total_size = 256,
2016 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002017 .feature_bits = FEATURE_LONG_RESET,
2018 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002019 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00002020 .probe_timing = 10000, /* 10ms */
Sean Nelson89187292009-12-23 12:02:55 +00002021 .block_erasers =
2022 {
2023 {
2024 .eraseblocks = { {256 * 1024, 1} },
2025 .block_erase = erase_chip_block_jedec,
2026 }
2027 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002028 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002029 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002030 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002031 },
2032
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002033 {
2034 .vendor = "Atmel",
2035 .name = "AT29C040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002036 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002037 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002038 .model_id = ATMEL_AT29C040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002039 .total_size = 512,
2040 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002041 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002042 .tested = TEST_UNTESTED,
2043 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00002044 .probe_timing = 10000, /* 10 ms */
Sean Nelson89187292009-12-23 12:02:55 +00002045 .block_erasers =
2046 {
2047 {
2048 .eraseblocks = { {512 * 1024, 1} },
2049 .block_erase = erase_chip_block_jedec,
2050 }
2051 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002052 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002053 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002054 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002055 },
2056
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002057 {
2058 .vendor = "Atmel",
2059 .name = "AT45CS1282",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002060 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002061 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002062 .model_id = ATMEL_AT45CS1282,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002063 .total_size = 16896 /* No power of two sizes */,
2064 .page_size = 1056 /* No power of two sizes */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002065 .tested = TEST_BAD_READ,
2066 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002067 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002068 .write = NULL /* Incompatible Page write */,
2069 .read = NULL /* Incompatible read */,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002070 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002071 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002072
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002073 {
2074 .vendor = "Atmel",
2075 .name = "AT45DB011D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002076 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002077 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002078 .model_id = ATMEL_AT45DB011D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002079 .total_size = 128 /* Size can only be determined from status register */,
2080 .page_size = 256 /* Size can only be determined from status register */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002081 .tested = TEST_BAD_READ,
2082 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002083 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002084 .write = NULL,
2085 .read = NULL,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002086 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002087 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002088
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002089 {
2090 .vendor = "Atmel",
2091 .name = "AT45DB021D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002092 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002093 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002094 .model_id = ATMEL_AT45DB021D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002095 .total_size = 256 /* Size can only be determined from status register */,
2096 .page_size = 256 /* Size can only be determined from status register */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002097 .tested = TEST_BAD_READ,
2098 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002099 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002100 .write = NULL,
2101 .read = NULL,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002102 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002103 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002104
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002105 {
2106 .vendor = "Atmel",
2107 .name = "AT45DB041D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002108 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002109 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002110 .model_id = ATMEL_AT45DB041D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002111 .total_size = 512 /* Size can only be determined from status register */,
2112 .page_size = 256 /* Size can only be determined from status register */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002113 .tested = TEST_BAD_READ,
2114 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002115 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002116 .write = NULL,
2117 .read = NULL,
Steven Zakulec7d257b42011-07-19 08:50:18 +00002118 .voltage = {2500, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002119 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002120
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002121 {
2122 .vendor = "Atmel",
2123 .name = "AT45DB081D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002124 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002125 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002126 .model_id = ATMEL_AT45DB081D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002127 .total_size = 1024 /* Size can only be determined from status register */,
2128 .page_size = 256 /* Size can only be determined from status register */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002129 .tested = TEST_BAD_READ,
2130 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002131 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002132 .write = NULL,
2133 .read = NULL,
Steven Zakulec7d257b42011-07-19 08:50:18 +00002134 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002135 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002136
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002137 {
2138 .vendor = "Atmel",
2139 .name = "AT45DB161D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002140 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002141 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002142 .model_id = ATMEL_AT45DB161D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002143 .total_size = 2048 /* Size can only be determined from status register */,
2144 .page_size = 512 /* Size can only be determined from status register */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002145 .tested = TEST_BAD_READ,
2146 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002147 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002148 .write = NULL,
2149 .read = NULL,
Steven Zakulec7d257b42011-07-19 08:50:18 +00002150 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002151 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002152
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002153 {
2154 .vendor = "Atmel",
2155 .name = "AT45DB321C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002156 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002157 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002158 .model_id = ATMEL_AT45DB321C,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002159 .total_size = 4224 /* No power of two sizes */,
2160 .page_size = 528 /* No power of two sizes */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002161 .tested = TEST_BAD_READ,
2162 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002163 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002164 .write = NULL,
2165 .read = NULL /* Incompatible read */,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002166 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002167 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002168
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002169 {
2170 .vendor = "Atmel",
2171 .name = "AT45DB321D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002172 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002173 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002174 .model_id = ATMEL_AT45DB321D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002175 .total_size = 4096 /* Size can only be determined from status register */,
2176 .page_size = 512 /* Size can only be determined from status register */,
Daniel Lenski65922a32012-02-15 23:40:23 +00002177 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2178 .feature_bits = FEATURE_OTP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002179 .tested = TEST_BAD_READ,
2180 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002181 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002182 .write = NULL,
2183 .read = NULL,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002184 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002185 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002186
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002187 {
2188 .vendor = "Atmel",
2189 .name = "AT45DB642D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002190 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002191 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002192 .model_id = ATMEL_AT45DB642D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002193 .total_size = 8192 /* Size can only be determined from status register */,
2194 .page_size = 1024 /* Size can only be determined from status register */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002195 .tested = TEST_BAD_READ,
2196 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002197 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002198 .write = NULL,
2199 .read = NULL,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002200 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002201 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002202
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002203 {
2204 .vendor = "Atmel",
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002205 .name = "AT49BV512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002206 .bustype = BUS_PARALLEL,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002207 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002208 .model_id = ATMEL_AT49BV512,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002209 .total_size = 64,
2210 .page_size = 64,
Sean Nelson35727f72010-01-28 23:55:12 +00002211 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +00002212 .tested = TEST_OK_PREW,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002213 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002214 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002215 .block_erasers =
2216 {
2217 {
2218 .eraseblocks = { {64 * 1024, 1} },
2219 .block_erase = erase_chip_block_jedec,
2220 }
2221 },
Sean Nelson35727f72010-01-28 23:55:12 +00002222 .write = write_jedec_1,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002223 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002224 .voltage = {2700, 3600},
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002225 },
2226
2227 {
2228 .vendor = "Atmel",
Andrew Morgan1a5eaa12010-06-07 14:10:55 +00002229 .name = "AT49F020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002230 .bustype = BUS_PARALLEL,
Andrew Morgan1a5eaa12010-06-07 14:10:55 +00002231 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002232 .model_id = ATMEL_AT49F020,
Andrew Morgan1a5eaa12010-06-07 14:10:55 +00002233 .total_size = 256,
2234 .page_size = 256,
2235 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002236 .tested = TEST_OK_PRE,
Andrew Morgan1a5eaa12010-06-07 14:10:55 +00002237 .probe = probe_jedec,
2238 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2239 .block_erasers =
2240 {
2241 {
2242 .eraseblocks = { {256 * 1024, 1} },
2243 .block_erase = erase_chip_block_jedec,
2244 }
2245 },
2246 .write = write_jedec_1,
2247 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002248 .voltage = {4500, 5500},
Andrew Morgan1a5eaa12010-06-07 14:10:55 +00002249 },
2250
2251 {
2252 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002253 .name = "AT49F002(N)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002254 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002255 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002256 .model_id = ATMEL_AT49F002N,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002257 .total_size = 256,
2258 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002259 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002260 .tested = TEST_UNTESTED,
2261 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002262 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002263 .block_erasers =
2264 {
2265 {
2266 .eraseblocks = {
2267 {16 * 1024, 1},
2268 {8 * 1024, 2},
2269 {96 * 1024, 1},
2270 {128 * 1024, 1},
2271 },
2272 .block_erase = erase_sector_jedec,
2273 }, {
2274 .eraseblocks = { {256 * 1024, 1} },
2275 .block_erase = erase_chip_block_jedec,
2276 }
2277 },
Sean Nelson35727f72010-01-28 23:55:12 +00002278 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002279 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002280 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002281 },
2282
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002283 {
2284 .vendor = "Atmel",
2285 .name = "AT49F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002286 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002287 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002288 .model_id = ATMEL_AT49F002NT,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002289 .total_size = 256,
2290 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002291 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002292 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002293 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002294 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002295 .block_erasers =
2296 {
2297 {
2298 .eraseblocks = {
2299 {128 * 1024, 1},
2300 {96 * 1024, 1},
2301 {8 * 1024, 2},
2302 {16 * 1024, 1},
2303 },
2304 .block_erase = erase_sector_jedec,
2305 }, {
2306 .eraseblocks = { {256 * 1024, 1} },
2307 .block_erase = erase_chip_block_jedec,
2308 }
2309 },
Sean Nelson35727f72010-01-28 23:55:12 +00002310 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002311 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002312 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002313 },
2314
Daniel Lenskidf90d3a2010-07-22 11:44:38 +00002315 {
Uwe Hermannc74e9772011-09-08 19:55:18 +00002316 .vendor = "Atmel",
2317 .name = "AT49LH002",
2318 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
2319 .manufacture_id = ATMEL_ID,
2320 .model_id = ATMEL_AT49LH002,
2321 .total_size = 256,
2322 .page_size = 0, /* unused */
2323 .feature_bits = FEATURE_REGISTERMAP, /* TODO: LPC OK too? */
2324 .tested = TEST_UNTESTED,
2325 .probe = probe_82802ab, /* TODO: 0xff cmd not documented? */
2326 .probe_timing = TIMING_FIXME,
2327 .block_erasers =
2328 {
2329 {
2330 .eraseblocks = {
2331 {64 * 1024, 3},
2332 {32 * 1024, 1},
2333 {8 * 1024, 2},
2334 {16 * 1024, 1},
2335 },
2336 .block_erase = erase_block_82802ab,
2337 }, {
2338 .eraseblocks = {
2339 {64 * 1024, 4},
2340 },
2341 .block_erase = NULL, /* TODO: Implement. */
2342 },
2343 },
2344 .printlock = NULL, /* TODO */
2345 .unlock = NULL, /* unlock_82802ab() not correct(?) */
2346 .write = write_82802ab,
2347 .read = read_memmapped,
2348 .voltage = {3000, 3600},
2349 },
2350
2351 {
Andrew Morganca081462011-09-13 22:05:44 +00002352 .vendor = "Catalyst",
2353 .name = "CAT28F512",
2354 .bustype = BUS_PARALLEL,
2355 .manufacture_id = CATALYST_ID,
2356 .model_id = CATALYST_CAT28F512,
2357 .total_size = 64,
2358 .page_size = 0, /* unused */
2359 .feature_bits = 0,
2360 .tested = TEST_OK_PR,
2361 .probe = probe_jedec, /* FIXME! */
2362 .probe_timing = TIMING_ZERO,
2363 .block_erasers =
2364 {
2365 {
2366 .eraseblocks = { {64 * 1024, 1} },
2367 .block_erase = NULL, /* TODO */
2368 },
2369 },
2370 .write = NULL, /* TODO */
2371 .read = read_memmapped,
2372 .voltage = {4500, 5500},
2373 },
2374
2375 {
Joshua Roysf1324e02010-09-16 00:51:51 +00002376 .vendor = "Bright",
2377 .name = "BM29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002378 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00002379 .manufacture_id = BRIGHT_ID,
2380 .model_id = BRIGHT_BM29F040,
2381 .total_size = 512,
2382 .page_size = 64 * 1024,
2383 .feature_bits = FEATURE_EITHER_RESET,
2384 .tested = TEST_OK_PR,
2385 .probe = probe_jedec,
2386 .probe_timing = TIMING_ZERO,
2387 .block_erasers =
2388 {
2389 {
2390 .eraseblocks = { {64 * 1024, 8} },
2391 .block_erase = erase_sector_jedec,
2392 }, {
2393 .eraseblocks = { {512 * 1024, 1} },
2394 .block_erase = erase_chip_block_jedec,
2395 },
2396 },
2397 .write = write_jedec_1,
2398 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00002399 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00002400 },
2401
2402 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002403 .vendor = "EMST",
2404 .name = "F49B002UA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002405 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002406 .manufacture_id = EMST_ID,
2407 .model_id = EMST_F49B002UA,
2408 .total_size = 256,
2409 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00002410 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002411 .tested = TEST_UNTESTED,
2412 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002413 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00002414 .block_erasers =
2415 {
2416 {
2417 .eraseblocks = {
2418 {128 * 1024, 1},
2419 {96 * 1024, 1},
2420 {8 * 1024, 2},
2421 {16 * 1024, 1},
2422 },
2423 .block_erase = erase_sector_jedec,
2424 }, {
2425 .eraseblocks = { {256 * 1024, 1} },
2426 .block_erase = erase_chip_block_jedec,
2427 }
2428 },
Sean Nelson35727f72010-01-28 23:55:12 +00002429 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002430 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002431 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002432 },
2433
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002434 {
Michael Karcher80a59ea2010-06-19 22:06:35 +00002435 .vendor = "EMST",
2436 .name = "F25L008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002437 .bustype = BUS_SPI,
Michael Karcher80a59ea2010-06-19 22:06:35 +00002438 .manufacture_id = EMST_ID,
2439 .model_id = EMST_F25L008A,
2440 .total_size = 1024,
2441 .page_size = 256,
2442 .tested = TEST_UNTESTED,
2443 .probe = probe_spi_rdid,
2444 .probe_timing = TIMING_ZERO,
2445 .block_erasers =
2446 {
2447 {
2448 .eraseblocks = { {4 * 1024, 256} },
2449 .block_erase = spi_block_erase_20,
2450 }, {
2451 .eraseblocks = { {64 * 1024, 16} },
2452 .block_erase = spi_block_erase_d8,
2453 }, {
2454 .eraseblocks = { {1024 * 1024, 1} },
2455 .block_erase = spi_block_erase_60,
2456 }, {
2457 .eraseblocks = { {1024 * 1024, 1} },
2458 .block_erase = spi_block_erase_c7,
2459 }
2460 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002461 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger9a795d82010-07-14 16:19:05 +00002462 .write = spi_chip_write_1,
Michael Karcher4497e862010-07-10 19:34:15 +00002463 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002464 .voltage = {2700, 3600},
Michael Karcher80a59ea2010-06-19 22:06:35 +00002465 },
2466
2467 {
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002468 .vendor = "Eon",
2469 .name = "EN25B05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002470 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002471 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002472 .model_id = EON_EN25B05,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002473 .total_size = 64,
2474 .page_size = 256,
2475 .tested = TEST_UNTESTED,
2476 .probe = probe_spi_rdid,
2477 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002478 .block_erasers =
2479 {
2480 {
2481 .eraseblocks = {
2482 {4 * 1024, 2},
2483 {8 * 1024, 1},
2484 {16 * 1024, 1},
2485 {32 * 1024, 1},
2486 },
2487 .block_erase = spi_block_erase_d8,
2488 }, {
2489 .eraseblocks = { {64 * 1024, 1} },
2490 .block_erase = spi_block_erase_c7,
2491 }
2492 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002493 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002494 .write = spi_chip_write_256,
2495 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002496 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002497 },
2498
2499 {
2500 .vendor = "Eon",
2501 .name = "EN25B05T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002502 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002503 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002504 .model_id = EON_EN25B05,
Sean Nelson54596372010-01-09 05:30:14 +00002505 .total_size = 64,
2506 .page_size = 256,
2507 .tested = TEST_UNTESTED,
2508 .probe = probe_spi_rdid,
2509 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002510 .block_erasers =
2511 {
2512 {
2513 .eraseblocks = {
2514 {32 * 1024, 1},
2515 {16 * 1024, 1},
2516 {8 * 1024, 1},
2517 {4 * 1024, 2},
2518 },
2519 .block_erase = spi_block_erase_d8,
2520 }, {
2521 .eraseblocks = { {64 * 1024, 1} },
2522 .block_erase = spi_block_erase_c7,
2523 }
2524 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002525 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002526 .write = spi_chip_write_256,
2527 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002528 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002529 },
2530
2531 {
2532 .vendor = "Eon",
2533 .name = "EN25B10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002534 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002535 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002536 .model_id = EON_EN25B10,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002537 .total_size = 128,
2538 .page_size = 256,
2539 .tested = TEST_UNTESTED,
2540 .probe = probe_spi_rdid,
2541 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002542 .block_erasers =
2543 {
2544 {
2545 .eraseblocks = {
2546 {4 * 1024, 2},
2547 {8 * 1024, 1},
2548 {16 * 1024, 1},
2549 {32 * 1024, 3},
2550 },
2551 .block_erase = spi_block_erase_d8,
2552 }, {
2553 .eraseblocks = { {128 * 1024, 1} },
2554 .block_erase = spi_block_erase_c7,
2555 }
2556 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002557 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002558 .write = spi_chip_write_256,
2559 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002560 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002561 },
2562
2563 {
2564 .vendor = "Eon",
2565 .name = "EN25B10T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002566 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002567 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002568 .model_id = EON_EN25B10,
Sean Nelson54596372010-01-09 05:30:14 +00002569 .total_size = 128,
2570 .page_size = 256,
2571 .tested = TEST_UNTESTED,
2572 .probe = probe_spi_rdid,
2573 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002574 .block_erasers =
2575 {
2576 {
2577 .eraseblocks = {
2578 {32 * 1024, 3},
2579 {16 * 1024, 1},
2580 {8 * 1024, 1},
2581 {4 * 1024, 2},
2582 },
2583 .block_erase = spi_block_erase_d8,
2584 }, {
2585 .eraseblocks = { {128 * 1024, 1} },
2586 .block_erase = spi_block_erase_c7,
2587 }
2588 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002589 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002590 .write = spi_chip_write_256,
2591 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002592 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002593 },
2594
2595 {
2596 .vendor = "Eon",
2597 .name = "EN25B20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002598 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002599 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002600 .model_id = EON_EN25B20,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002601 .total_size = 256,
2602 .page_size = 256,
2603 .tested = TEST_UNTESTED,
2604 .probe = probe_spi_rdid,
2605 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002606 .block_erasers =
2607 {
2608 {
2609 .eraseblocks = {
2610 {4 * 1024, 2},
2611 {8 * 1024, 1},
2612 {16 * 1024, 1},
2613 {32 * 1024, 1},
2614 {64 * 1024, 3}
2615 },
2616 .block_erase = spi_block_erase_d8,
2617 }, {
2618 .eraseblocks = { {256 * 1024, 1} },
2619 .block_erase = spi_block_erase_c7,
2620 }
2621 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002622 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002623 .write = spi_chip_write_256,
2624 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002625 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002626 },
2627
2628 {
2629 .vendor = "Eon",
2630 .name = "EN25B20T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002631 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002632 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002633 .model_id = EON_EN25B20,
Sean Nelson54596372010-01-09 05:30:14 +00002634 .total_size = 256,
2635 .page_size = 256,
2636 .tested = TEST_UNTESTED,
2637 .probe = probe_spi_rdid,
2638 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002639 .block_erasers =
2640 {
2641 {
2642 .eraseblocks = {
2643 {64 * 1024, 3},
2644 {32 * 1024, 1},
2645 {16 * 1024, 1},
2646 {8 * 1024, 1},
2647 {4 * 1024, 2},
2648 },
2649 .block_erase = spi_block_erase_d8,
2650 }, {
2651 .eraseblocks = { {256 * 1024, 1} },
2652 .block_erase = spi_block_erase_c7,
2653 }
2654 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002655 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002656 .write = spi_chip_write_256,
2657 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002658 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002659 },
2660
2661 {
2662 .vendor = "Eon",
2663 .name = "EN25B40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002664 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002665 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002666 .model_id = EON_EN25B40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002667 .total_size = 512,
2668 .page_size = 256,
2669 .tested = TEST_UNTESTED,
2670 .probe = probe_spi_rdid,
2671 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002672 .block_erasers =
2673 {
2674 {
2675 .eraseblocks = {
2676 {4 * 1024, 2},
2677 {8 * 1024, 1},
2678 {16 * 1024, 1},
2679 {32 * 1024, 1},
2680 {64 * 1024, 7}
2681 },
2682 .block_erase = spi_block_erase_d8,
2683 }, {
2684 .eraseblocks = { {512 * 1024, 1} },
2685 .block_erase = spi_block_erase_c7,
2686 }
2687 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002688 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002689 .write = spi_chip_write_256,
2690 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002691 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002692 },
2693
2694 {
2695 .vendor = "Eon",
2696 .name = "EN25B40T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002697 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002698 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002699 .model_id = EON_EN25B40,
Sean Nelson54596372010-01-09 05:30:14 +00002700 .total_size = 512,
2701 .page_size = 256,
2702 .tested = TEST_UNTESTED,
2703 .probe = probe_spi_rdid,
2704 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002705 .block_erasers =
2706 {
2707 {
2708 .eraseblocks = {
2709 {64 * 1024, 7},
2710 {32 * 1024, 1},
2711 {16 * 1024, 1},
2712 {8 * 1024, 1},
2713 {4 * 1024, 2},
2714 },
2715 .block_erase = spi_block_erase_d8,
2716 }, {
2717 .eraseblocks = { {512 * 1024, 1} },
2718 .block_erase = spi_block_erase_c7,
2719 }
2720 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002721 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002722 .write = spi_chip_write_256,
2723 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002724 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002725 },
2726
2727 {
2728 .vendor = "Eon",
2729 .name = "EN25B80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002730 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002731 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002732 .model_id = EON_EN25B80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002733 .total_size = 1024,
2734 .page_size = 256,
2735 .tested = TEST_UNTESTED,
2736 .probe = probe_spi_rdid,
2737 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002738 .block_erasers =
2739 {
2740 {
2741 .eraseblocks = {
2742 {4 * 1024, 2},
2743 {8 * 1024, 1},
2744 {16 * 1024, 1},
2745 {32 * 1024, 1},
2746 {64 * 1024, 15}
2747 },
2748 .block_erase = spi_block_erase_d8,
2749 }, {
2750 .eraseblocks = { {1024 * 1024, 1} },
2751 .block_erase = spi_block_erase_c7,
2752 }
2753 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002754 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002755 .write = spi_chip_write_256,
2756 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002757 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002758 },
2759
2760 {
2761 .vendor = "Eon",
2762 .name = "EN25B80T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002763 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002764 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002765 .model_id = EON_EN25B80,
Sean Nelson54596372010-01-09 05:30:14 +00002766 .total_size = 1024,
2767 .page_size = 256,
2768 .tested = TEST_UNTESTED,
2769 .probe = probe_spi_rdid,
2770 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002771 .block_erasers =
2772 {
2773 {
2774 .eraseblocks = {
2775 {64 * 1024, 15},
2776 {32 * 1024, 1},
2777 {16 * 1024, 1},
2778 {8 * 1024, 1},
2779 {4 * 1024, 2},
2780 },
2781 .block_erase = spi_block_erase_d8,
2782 }, {
2783 .eraseblocks = { {1024 * 1024, 1} },
2784 .block_erase = spi_block_erase_c7,
2785 }
2786 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002787 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002788 .write = spi_chip_write_256,
2789 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002790 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002791 },
2792
2793 {
2794 .vendor = "Eon",
2795 .name = "EN25B16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002796 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002797 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002798 .model_id = EON_EN25B16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002799 .total_size = 2048,
2800 .page_size = 256,
2801 .tested = TEST_UNTESTED,
2802 .probe = probe_spi_rdid,
2803 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002804 .block_erasers =
2805 {
2806 {
2807 .eraseblocks = {
2808 {4 * 1024, 2},
2809 {8 * 1024, 1},
2810 {16 * 1024, 1},
2811 {32 * 1024, 1},
2812 {64 * 1024, 31},
2813 },
2814 .block_erase = spi_block_erase_d8,
2815 }, {
2816 .eraseblocks = { {2 * 1024 * 1024, 1} },
2817 .block_erase = spi_block_erase_c7,
2818 }
2819 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002820 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002821 .write = spi_chip_write_256,
2822 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002823 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002824 },
2825
2826 {
2827 .vendor = "Eon",
2828 .name = "EN25B16T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002829 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002830 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002831 .model_id = EON_EN25B16,
Sean Nelson54596372010-01-09 05:30:14 +00002832 .total_size = 2048,
2833 .page_size = 256,
2834 .tested = TEST_UNTESTED,
2835 .probe = probe_spi_rdid,
2836 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002837 .block_erasers =
2838 {
2839 {
2840 .eraseblocks = {
2841 {64 * 1024, 31},
2842 {32 * 1024, 1},
2843 {16 * 1024, 1},
2844 {8 * 1024, 1},
2845 {4 * 1024, 2},
2846 },
2847 .block_erase = spi_block_erase_d8,
2848 }, {
2849 .eraseblocks = { {2 * 1024 * 1024, 1} },
2850 .block_erase = spi_block_erase_c7,
2851 }
2852 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002853 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002854 .write = spi_chip_write_256,
2855 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002856 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002857 },
2858
2859 {
2860 .vendor = "Eon",
2861 .name = "EN25B32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002862 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002863 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002864 .model_id = EON_EN25B32,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002865 .total_size = 4096,
2866 .page_size = 256,
2867 .tested = TEST_UNTESTED,
2868 .probe = probe_spi_rdid,
2869 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002870 .block_erasers =
2871 {
2872 {
2873 .eraseblocks = {
2874 {4 * 1024, 2},
2875 {8 * 1024, 1},
2876 {16 * 1024, 1},
2877 {32 * 1024, 1},
2878 {64 * 1024, 63},
2879 },
2880 .block_erase = spi_block_erase_d8,
2881 }, {
2882 .eraseblocks = { {4 * 1024 * 1024, 1} },
2883 .block_erase = spi_block_erase_c7,
2884 }
2885 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002886 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002887 .write = spi_chip_write_256,
2888 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002889 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002890 },
2891
2892 {
2893 .vendor = "Eon",
2894 .name = "EN25B32T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002895 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002896 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002897 .model_id = EON_EN25B32,
Sean Nelson54596372010-01-09 05:30:14 +00002898 .total_size = 4096,
2899 .page_size = 256,
2900 .tested = TEST_UNTESTED,
2901 .probe = probe_spi_rdid,
2902 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002903 .block_erasers =
2904 {
2905 {
2906 .eraseblocks = {
2907 {64 * 1024, 63},
2908 {32 * 1024, 1},
2909 {16 * 1024, 1},
2910 {8 * 1024, 1},
2911 {4 * 1024, 2},
2912 },
2913 .block_erase = spi_block_erase_d8,
2914 }, {
2915 .eraseblocks = { {4 * 1024 * 1024, 1} },
2916 .block_erase = spi_block_erase_c7,
2917 }
2918 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002919 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002920 .write = spi_chip_write_256,
2921 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002922 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002923 },
2924
2925 {
2926 .vendor = "Eon",
2927 .name = "EN25B64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002928 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002929 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002930 .model_id = EON_EN25B64,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002931 .total_size = 8192,
2932 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00002933 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002934 .tested = TEST_UNTESTED,
2935 .probe = probe_spi_rdid,
2936 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002937 .block_erasers =
2938 {
2939 {
2940 .eraseblocks = {
2941 {4 * 1024, 2},
2942 {8 * 1024, 1},
2943 {16 * 1024, 1},
2944 {32 * 1024, 1},
2945 {64 * 1024, 127},
2946 },
2947 .block_erase = spi_block_erase_d8,
2948 }, {
2949 .eraseblocks = { {8 * 1024 * 1024, 1} },
2950 .block_erase = spi_block_erase_c7,
2951 }
2952 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002953 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002954 .write = spi_chip_write_256,
2955 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002956 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002957 },
2958
2959 {
2960 .vendor = "Eon",
2961 .name = "EN25B64T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002962 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002963 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002964 .model_id = EON_EN25B64,
Sean Nelson54596372010-01-09 05:30:14 +00002965 .total_size = 8192,
2966 .page_size = 256,
2967 .tested = TEST_UNTESTED,
2968 .probe = probe_spi_rdid,
2969 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002970 .block_erasers =
2971 {
2972 {
2973 .eraseblocks = {
2974 {64 * 1024, 127},
2975 {32 * 1024, 1},
2976 {16 * 1024, 1},
2977 {8 * 1024, 1},
2978 {4 * 1024, 2},
2979 },
2980 .block_erase = spi_block_erase_d8,
2981 }, {
2982 .eraseblocks = { {8 * 1024 * 1024, 1} },
2983 .block_erase = spi_block_erase_c7,
2984 }
2985 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002986 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002987 .write = spi_chip_write_256,
2988 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002989 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002990 },
2991
2992 {
2993 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002994 .name = "EN25F05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002995 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002996 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002997 .model_id = EON_EN25F05,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002998 .total_size = 64,
2999 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003000 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003001 .tested = TEST_UNTESTED,
3002 .probe = probe_spi_rdid,
3003 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003004 .block_erasers =
3005 {
3006 {
3007 .eraseblocks = { {4 * 1024, 16} },
3008 .block_erase = spi_block_erase_20,
3009 }, {
3010 .eraseblocks = { {32 * 1024, 2} },
3011 .block_erase = spi_block_erase_d8,
3012 }, {
3013 .eraseblocks = { {32 * 1024, 2} },
3014 .block_erase = spi_block_erase_52,
3015 }, {
3016 .eraseblocks = { {64 * 1024, 1} },
3017 .block_erase = spi_block_erase_60,
3018 }, {
3019 .eraseblocks = { {64 * 1024, 1} },
3020 .block_erase = spi_block_erase_c7,
3021 }
3022 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003023 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003024 .write = spi_chip_write_256,
3025 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003026 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003027 },
3028
3029 {
3030 .vendor = "Eon",
3031 .name = "EN25F10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003032 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003033 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003034 .model_id = EON_EN25F10,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003035 .total_size = 128,
3036 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003037 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003038 .tested = TEST_UNTESTED,
3039 .probe = probe_spi_rdid,
3040 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003041 .block_erasers =
3042 {
3043 {
3044 .eraseblocks = { {4 * 1024, 32} },
3045 .block_erase = spi_block_erase_20,
3046 }, {
3047 .eraseblocks = { {32 * 1024, 4} },
3048 .block_erase = spi_block_erase_d8,
3049 }, {
3050 .eraseblocks = { {32 * 1024, 4} },
3051 .block_erase = spi_block_erase_52,
3052 }, {
3053 .eraseblocks = { {128 * 1024, 1} },
3054 .block_erase = spi_block_erase_60,
3055 }, {
3056 .eraseblocks = { {128 * 1024, 1} },
3057 .block_erase = spi_block_erase_c7,
3058 }
3059 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003060 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003061 .write = spi_chip_write_256,
3062 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003063 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003064 },
3065
3066 {
3067 .vendor = "Eon",
3068 .name = "EN25F20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003069 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003070 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003071 .model_id = EON_EN25F20,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003072 .total_size = 256,
3073 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003074 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003075 .tested = TEST_UNTESTED,
3076 .probe = probe_spi_rdid,
3077 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003078 .block_erasers =
3079 {
3080 {
3081 .eraseblocks = { {4 * 1024, 64} },
3082 .block_erase = spi_block_erase_20,
3083 }, {
3084 .eraseblocks = { {64 * 1024, 4} },
3085 .block_erase = spi_block_erase_d8,
3086 }, {
3087 .eraseblocks = { {64 * 1024, 4} },
3088 .block_erase = spi_block_erase_52,
3089 }, {
3090 .eraseblocks = { {256 * 1024, 1} },
3091 .block_erase = spi_block_erase_60,
3092 }, {
3093 .eraseblocks = { {256 * 1024, 1} },
3094 .block_erase = spi_block_erase_c7,
3095 }
3096 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003097 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003098 .write = spi_chip_write_256,
3099 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003100 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003101 },
3102
3103 {
3104 .vendor = "Eon",
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003105 .name = "EN25F40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003106 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003107 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003108 .model_id = EON_EN25F40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003109 .total_size = 512,
3110 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003111 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerfaaa2b22009-06-22 10:06:28 +00003112 .tested = TEST_OK_PROBE,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003113 .probe = probe_spi_rdid,
3114 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003115 .block_erasers =
3116 {
3117 {
Sean Nelson54596372010-01-09 05:30:14 +00003118 .eraseblocks = { {4 * 1024, 128} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003119 .block_erase = spi_block_erase_20,
3120 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003121 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003122 .block_erase = spi_block_erase_d8,
3123 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003124 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003125 .block_erase = spi_block_erase_60,
3126 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003127 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003128 .block_erase = spi_block_erase_c7,
3129 },
3130 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003131 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003132 .write = spi_chip_write_256,
3133 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003134 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003135 },
3136
3137 {
3138 .vendor = "Eon",
3139 .name = "EN25F80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003140 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003141 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003142 .model_id = EON_EN25F80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003143 .total_size = 1024,
3144 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003145 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +00003146 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003147 .probe = probe_spi_rdid,
3148 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003149 .block_erasers =
3150 {
3151 {
3152 .eraseblocks = { {4 * 1024, 256} },
3153 .block_erase = spi_block_erase_20,
3154 }, {
3155 .eraseblocks = { {64 * 1024, 16} },
3156 .block_erase = spi_block_erase_d8,
3157 }, {
3158 .eraseblocks = { {1024 * 1024, 1} },
3159 .block_erase = spi_block_erase_60,
3160 }, {
3161 .eraseblocks = { {1024 * 1024, 1} },
3162 .block_erase = spi_block_erase_c7,
3163 }
3164 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003165 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003166 .write = spi_chip_write_256,
3167 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003168 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003169 },
3170
3171 {
3172 .vendor = "Eon",
3173 .name = "EN25F16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003174 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003175 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003176 .model_id = EON_EN25F16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003177 .total_size = 2048,
3178 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003179 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzel018d4822011-10-21 12:33:07 +00003180 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003181 .probe = probe_spi_rdid,
3182 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003183 .block_erasers =
3184 {
3185 {
3186 .eraseblocks = { {4 * 1024, 512} },
3187 .block_erase = spi_block_erase_20,
3188 }, {
3189 .eraseblocks = { {64 * 1024, 32} },
3190 .block_erase = spi_block_erase_d8,
3191 }, {
3192 .eraseblocks = { {2 * 1024 * 1024, 1} },
3193 .block_erase = spi_block_erase_60,
3194 }, {
3195 .eraseblocks = { {2 * 1024 * 1024, 1} },
3196 .block_erase = spi_block_erase_c7,
3197 }
3198 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003199 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003200 .write = spi_chip_write_256,
3201 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003202 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003203 },
3204
3205 {
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003206 .vendor = "Eon",
3207 .name = "EN25F32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003208 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003209 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003210 .model_id = EON_EN25F32,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003211 .total_size = 4096,
3212 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003213 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003214 .tested = TEST_UNTESTED,
3215 .probe = probe_spi_rdid,
3216 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003217 .block_erasers =
3218 {
3219 {
3220 .eraseblocks = { {4 * 1024, 1024} },
3221 .block_erase = spi_block_erase_20,
3222 }, {
3223 .eraseblocks = { {64 * 1024, 64} },
3224 .block_erase = spi_block_erase_d8,
3225 }, {
3226 .eraseblocks = { {4 * 1024 * 1024, 1} },
3227 .block_erase = spi_block_erase_60,
3228 }, {
3229 .eraseblocks = { {4 * 1024 * 1024, 1} },
3230 .block_erase = spi_block_erase_c7,
3231 }
3232 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003233 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003234 .write = spi_chip_write_256,
3235 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003236 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003237 },
3238
3239 {
Russ Dill3cd5a122010-03-05 08:44:11 +00003240 .vendor = "Eon",
David Hendricks6d715302011-07-24 22:21:57 +00003241 .name = "EN25Q40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003242 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003243 .manufacture_id = EON_ID_NOPREFIX,
3244 .model_id = EON_EN25Q40,
3245 .total_size = 512,
3246 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003247 /* OTP: 256B total; enter 0x3A */
3248 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003249 .tested = TEST_UNTESTED,
3250 .probe = probe_spi_rdid,
3251 .probe_timing = TIMING_ZERO,
3252 .block_erasers =
3253 {
3254 {
3255 .eraseblocks = { {4 * 1024, 128} },
3256 .block_erase = spi_block_erase_20,
3257 }, {
3258 .eraseblocks = { {64 * 1024, 8} },
3259 .block_erase = spi_block_erase_d8,
3260 }, {
3261 .eraseblocks = { {512 * 1024, 1} },
3262 .block_erase = spi_block_erase_60,
3263 }, {
3264 .eraseblocks = { {512 * 1024, 1} },
3265 .block_erase = spi_block_erase_c7,
3266 }
3267 },
3268 .unlock = spi_disable_blockprotect,
3269 .write = spi_chip_write_256,
3270 .read = spi_chip_read,
3271 .voltage = {2700, 3600},
3272 },
3273
3274 {
3275 .vendor = "Eon",
3276 .name = "EN25Q80(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003277 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003278 .manufacture_id = EON_ID_NOPREFIX,
3279 .model_id = EON_EN25Q80,
3280 .total_size = 1024,
3281 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003282 /* OTP: 256B total; enter 0x3A */
3283 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003284 .tested = TEST_UNTESTED,
3285 .probe = probe_spi_rdid,
3286 .probe_timing = TIMING_ZERO,
3287 .block_erasers =
3288 {
3289 {
3290 .eraseblocks = { {4 * 1024, 256} },
3291 .block_erase = spi_block_erase_20,
3292 }, {
3293 .eraseblocks = { {64 * 1024, 16} },
3294 .block_erase = spi_block_erase_d8,
3295 }, {
3296 .eraseblocks = { {1024 * 1024, 1} },
3297 .block_erase = spi_block_erase_60,
3298 }, {
3299 .eraseblocks = { {1024 * 1024, 1} },
3300 .block_erase = spi_block_erase_c7,
3301 }
3302 },
3303 .unlock = spi_disable_blockprotect,
3304 .write = spi_chip_write_256,
3305 .read = spi_chip_read,
3306 .voltage = {2700, 3600},
3307 },
3308
3309 {
3310 /* Note: EN25D16 is an evil twin which shares the model ID
3311 but has different write protection capabilities */
3312 .vendor = "Eon",
3313 .name = "EN25Q16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003314 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003315 .manufacture_id = EON_ID_NOPREFIX,
3316 .model_id = EON_EN25Q16,
3317 .total_size = 2048,
3318 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003319 /* OTP: D16 512B/Q16 128B total; enter 0x3A */
3320 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003321 .tested = TEST_UNTESTED,
3322 .probe = probe_spi_rdid,
3323 .probe_timing = TIMING_ZERO,
3324 .block_erasers =
3325 {
3326 {
3327 .eraseblocks = { {4 * 1024, 512} },
3328 .block_erase = spi_block_erase_20,
3329 }, {
3330 .eraseblocks = { {64 * 1024, 32} },
3331 .block_erase = spi_block_erase_d8,
3332 }, {
3333 /* not supported by Q16 version */
3334 .eraseblocks = { {64 * 1024, 32} },
3335 .block_erase = spi_block_erase_52,
3336 }, {
3337 .eraseblocks = { {2 * 1024 * 1024, 1} },
3338 .block_erase = spi_block_erase_60,
3339 }, {
3340 .eraseblocks = { {2 * 1024 * 1024, 1} },
3341 .block_erase = spi_block_erase_c7,
3342 }
3343 },
3344 .unlock = spi_disable_blockprotect,
3345 .write = spi_chip_write_256,
3346 .read = spi_chip_read,
3347 .voltage = {2700, 3600},
3348 },
3349
3350 {
3351 .vendor = "Eon",
3352 .name = "EN25Q32(A/B)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003353 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003354 .manufacture_id = EON_ID_NOPREFIX,
3355 .model_id = EON_EN25Q32,
3356 .total_size = 4096,
3357 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003358 /* OTP: 512B total; enter 0x3A */
3359 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003360 .tested = TEST_UNTESTED,
3361 .probe = probe_spi_rdid,
3362 .probe_timing = TIMING_ZERO,
3363 .block_erasers =
3364 {
3365 {
3366 .eraseblocks = { {4 * 1024, 1024} },
3367 .block_erase = spi_block_erase_20,
3368 }, {
3369 .eraseblocks = { {64 * 1024, 64} },
3370 .block_erase = spi_block_erase_d8,
3371 }, {
3372 .eraseblocks = { {4 * 1024 * 1024, 1} },
3373 .block_erase = spi_block_erase_60,
3374 }, {
3375 .eraseblocks = { {4 * 1024 * 1024, 1} },
3376 .block_erase = spi_block_erase_c7,
3377 }
3378 },
3379 .unlock = spi_disable_blockprotect,
3380 .write = spi_chip_write_256,
3381 .read = spi_chip_read,
3382 .voltage = {2700, 3600},
3383 },
3384
3385 {
3386 .vendor = "Eon",
3387 .name = "EN25Q64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003388 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003389 .manufacture_id = EON_ID_NOPREFIX,
3390 .model_id = EON_EN25Q64,
3391 .total_size = 8192,
3392 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003393 /* OTP: 512B total; enter 0x3A */
3394 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003395 .tested = TEST_UNTESTED,
3396 .probe = probe_spi_rdid,
3397 .probe_timing = TIMING_ZERO,
3398 .block_erasers =
3399 {
3400 {
3401 .eraseblocks = { {4 * 1024, 2048} },
3402 .block_erase = spi_block_erase_20,
3403 }, {
3404 .eraseblocks = { {64 * 1024, 128} },
3405 .block_erase = spi_block_erase_d8,
3406 }, {
3407 .eraseblocks = { {8 * 1024 * 1024, 1} },
3408 .block_erase = spi_block_erase_60,
3409 }, {
3410 .eraseblocks = { {8 * 1024 * 1024, 1} },
3411 .block_erase = spi_block_erase_c7,
3412 }
3413 },
3414 .unlock = spi_disable_blockprotect,
3415 .write = spi_chip_write_256,
3416 .read = spi_chip_read,
3417 .voltage = {2700, 3600},
3418 },
3419
3420 {
3421 .vendor = "Eon",
3422 .name = "EN25Q128",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003423 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003424 .manufacture_id = EON_ID_NOPREFIX,
3425 .model_id = EON_EN25Q128,
3426 .total_size = 16384,
3427 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003428 /* OTP: 512B total; enter 0x3A */
3429 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003430 .tested = TEST_UNTESTED,
3431 .probe = probe_spi_rdid,
3432 .probe_timing = TIMING_ZERO,
3433 .block_erasers =
3434 {
3435 {
3436 .eraseblocks = { {4 * 1024, 4096} },
3437 .block_erase = spi_block_erase_20,
3438 }, {
3439 .eraseblocks = { {64 * 1024, 256} },
3440 .block_erase = spi_block_erase_d8,
3441 }, {
3442 .eraseblocks = { {16 * 1024 * 1024, 1} },
3443 .block_erase = spi_block_erase_60,
3444 }, {
3445 .eraseblocks = { {16 * 1024 * 1024, 1} },
3446 .block_erase = spi_block_erase_c7,
3447 }
3448 },
3449 .unlock = spi_disable_blockprotect,
3450 .write = spi_chip_write_256,
3451 .read = spi_chip_read,
3452 },
3453
3454 {
3455 .vendor = "Eon",
3456 .name = "EN25QH16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003457 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003458 .manufacture_id = EON_ID_NOPREFIX,
3459 .model_id = EON_EN25QH16,
3460 .total_size = 2048,
3461 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003462 /* supports SFDP */
3463 /* OTP: 512B total; enter 0x3A */
3464 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003465 .tested = TEST_UNTESTED,
3466 .probe = probe_spi_rdid,
3467 .probe_timing = TIMING_ZERO,
3468 .block_erasers =
3469 {
3470 {
3471 .eraseblocks = { {4 * 1024, 512} },
3472 .block_erase = spi_block_erase_20,
3473 }, {
3474 .eraseblocks = { {64 * 1024, 32} },
3475 .block_erase = spi_block_erase_d8,
3476 }, {
3477 .eraseblocks = { {1024 * 2048, 1} },
3478 .block_erase = spi_block_erase_60,
3479 }, {
3480 .eraseblocks = { {1024 * 2048, 1} },
3481 .block_erase = spi_block_erase_c7,
3482 }
3483 },
3484 .unlock = spi_disable_blockprotect,
3485 .write = spi_chip_write_256,
3486 .read = spi_chip_read,
3487 .voltage = {2700, 3600},
3488 },
3489
3490 {
3491 .vendor = "Eon",
Russ Dill3cd5a122010-03-05 08:44:11 +00003492 .name = "EN29F010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003493 .bustype = BUS_PARALLEL,
Russ Dill3cd5a122010-03-05 08:44:11 +00003494 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003495 .model_id = EON_EN29F010,
Russ Dill3cd5a122010-03-05 08:44:11 +00003496 .total_size = 128,
3497 .page_size = 128,
3498 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003499 .tested = TEST_OK_PRE,
Russ Dill3cd5a122010-03-05 08:44:11 +00003500 .probe = probe_jedec,
3501 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3502 .block_erasers =
3503 {
3504 {
3505 .eraseblocks = { {16 * 1024, 8} },
3506 .block_erase = erase_sector_jedec,
3507 },
3508 {
3509 .eraseblocks = { {128 * 1024, 1} },
3510 .block_erase = erase_chip_block_jedec,
3511 },
3512 },
3513 .write = write_jedec_1,
3514 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003515 .voltage = {4500, 5500},
Russ Dill3cd5a122010-03-05 08:44:11 +00003516 },
3517
3518 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00003519 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003520 .name = "EN29F002(A)(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003521 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003522 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003523 .model_id = EON_EN29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003524 .total_size = 256,
3525 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00003526 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003527 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003528 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003529 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003530 .block_erasers =
3531 {
3532 {
3533 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00003534 {16 * 1024, 1},
Michael Karchere3cb0a12010-03-13 23:47:09 +00003535 {8 * 1024, 2},
3536 {32 * 1024, 1},
3537 {64 * 1024, 3},
Sean Nelson6b11ad22009-12-23 17:05:59 +00003538 },
3539 .block_erase = erase_sector_jedec,
3540 }, {
3541 .eraseblocks = { {256 * 1024, 1} },
3542 .block_erase = erase_chip_block_jedec,
3543 },
3544 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00003545 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003546 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003547 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003548 },
3549
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003550 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00003551 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003552 .name = "EN29F002(A)(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003553 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003554 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003555 .model_id = EON_EN29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003556 .total_size = 256,
3557 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00003558 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00003559 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003560 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003561 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003562 .block_erasers =
3563 {
3564 {
3565 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00003566 {64 * 1024, 3},
Michael Karchere3cb0a12010-03-13 23:47:09 +00003567 {32 * 1024, 1},
3568 {8 * 1024, 2},
3569 {16 * 1024, 1},
Sean Nelson6b11ad22009-12-23 17:05:59 +00003570 },
3571 .block_erase = erase_sector_jedec,
3572 }, {
3573 .eraseblocks = { {256 * 1024, 1} },
3574 .block_erase = erase_chip_block_jedec,
3575 },
3576 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00003577 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003578 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003579 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003580 },
3581
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003582 {
3583 .vendor = "Fujitsu",
3584 .name = "MBM29F004BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003585 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003586 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003587 .model_id = FUJITSU_MBM29F004BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003588 .total_size = 512,
3589 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003590 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003591 .tested = TEST_UNTESTED,
3592 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003593 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003594 .block_erasers =
3595 {
3596 {
3597 .eraseblocks = {
3598 {16 * 1024, 1},
3599 {8 * 1024, 2},
3600 {32 * 1024, 1},
3601 {64 * 1024, 7},
3602 },
Sean Nelson35727f72010-01-28 23:55:12 +00003603 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003604 }, {
3605 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00003606 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003607 },
3608 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003609 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003610 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003611 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003612 },
3613
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003614 {
3615 .vendor = "Fujitsu",
3616 .name = "MBM29F004TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003617 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003618 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003619 .model_id = FUJITSU_MBM29F004TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003620 .total_size = 512,
3621 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003622 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003623 .tested = TEST_UNTESTED,
3624 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003625 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003626 .block_erasers =
3627 {
3628 {
3629 .eraseblocks = {
3630 {64 * 1024, 7},
3631 {32 * 1024, 1},
3632 {8 * 1024, 2},
3633 {16 * 1024, 1},
3634 },
Sean Nelson35727f72010-01-28 23:55:12 +00003635 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003636 }, {
3637 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00003638 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003639 },
3640 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003641 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003642 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003643 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003644 },
3645
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003646 {
Sean Nelson35727f72010-01-28 23:55:12 +00003647 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003648 .vendor = "Fujitsu",
3649 .name = "MBM29F400BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003650 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003651 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003652 .model_id = FUJITSU_MBM29F400BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003653 .total_size = 512,
3654 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003655 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00003656 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003657 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00003658 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003659 .block_erasers =
3660 {
3661 {
3662 .eraseblocks = {
3663 {16 * 1024, 1},
3664 {8 * 1024, 2},
3665 {32 * 1024, 1},
3666 {64 * 1024, 7},
3667 },
3668 .block_erase = block_erase_m29f400bt,
3669 }, {
3670 .eraseblocks = { {512 * 1024, 1} },
3671 .block_erase = block_erase_chip_m29f400bt,
3672 },
3673 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00003674 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003675 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003676 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00003677 },
3678
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003679 {
3680 .vendor = "Fujitsu",
3681 .name = "MBM29F400TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003682 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003683 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003684 .model_id = FUJITSU_MBM29F400TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003685 .total_size = 512,
3686 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003687 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003688 .tested = TEST_UNTESTED,
3689 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00003690 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003691 .block_erasers =
3692 {
3693 {
3694 .eraseblocks = {
3695 {64 * 1024, 7},
3696 {32 * 1024, 1},
3697 {8 * 1024, 2},
3698 {16 * 1024, 1},
3699 },
3700 .block_erase = block_erase_m29f400bt,
3701 }, {
3702 .eraseblocks = { {512 * 1024, 1} },
3703 .block_erase = block_erase_chip_m29f400bt,
3704 },
3705 },
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00003706 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003707 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003708 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00003709 },
3710
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003711 {
Justin Chevrier1525b2a2012-04-14 21:59:23 +00003712 .vendor = "GigaDevice",
3713 .name = "GD25Q20",
3714 .bustype = BUS_SPI,
3715 .manufacture_id = GIGADEVICE_ID,
3716 .model_id = GIGADEVICE_GD25Q20,
3717 .total_size = 256,
3718 .page_size = 256,
3719 .feature_bits = FEATURE_WRSR_WREN,
3720 .tested = TEST_UNTESTED,
3721 .probe = probe_spi_rdid,
3722 .probe_timing = TIMING_ZERO,
3723 .block_erasers =
3724 {
3725 {
3726 .eraseblocks = { {4 * 1024, 64} },
3727 .block_erase = spi_block_erase_20,
3728 }, {
3729 .eraseblocks = { {32 * 1024, 8} },
3730 .block_erase = spi_block_erase_52,
3731 }, {
3732 .eraseblocks = { {64 * 1024, 4} },
3733 .block_erase = spi_block_erase_d8,
3734 }, {
3735 .eraseblocks = { {256 * 1024, 1} },
3736 .block_erase = spi_block_erase_60,
3737 }, {
3738 .eraseblocks = { {256 * 1024, 1} },
3739 .block_erase = spi_block_erase_c7,
3740 }
3741 },
3742 .unlock = spi_disable_blockprotect,
3743 .write = spi_chip_write_256,
3744 .read = spi_chip_read,
3745 .voltage = {2700, 3600},
3746 },
3747
3748 {
3749 .vendor = "GigaDevice",
3750 .name = "GD25Q40",
3751 .bustype = BUS_SPI,
3752 .manufacture_id = GIGADEVICE_ID,
3753 .model_id = GIGADEVICE_GD25Q40,
3754 .total_size = 512,
3755 .page_size = 256,
3756 .feature_bits = FEATURE_WRSR_WREN,
3757 .tested = TEST_UNTESTED,
3758 .probe = probe_spi_rdid,
3759 .probe_timing = TIMING_ZERO,
3760 .block_erasers =
3761 {
3762 {
3763 .eraseblocks = { {4 * 1024, 128} },
3764 .block_erase = spi_block_erase_20,
3765 }, {
3766 .eraseblocks = { {32 * 1024, 16} },
3767 .block_erase = spi_block_erase_52,
3768 }, {
3769 .eraseblocks = { {64 * 1024, 8} },
3770 .block_erase = spi_block_erase_d8,
3771 }, {
3772 .eraseblocks = { {512 * 1024, 1} },
3773 .block_erase = spi_block_erase_60,
3774 }, {
3775 .eraseblocks = { {512 * 1024, 1} },
3776 .block_erase = spi_block_erase_c7,
3777 }
3778 },
3779 .unlock = spi_disable_blockprotect,
3780 .write = spi_chip_write_256,
3781 .read = spi_chip_read,
3782 .voltage = {2700, 3600},
3783 },
3784
3785 {
3786 .vendor = "GigaDevice",
3787 .name = "GD25Q80",
3788 .bustype = BUS_SPI,
3789 .manufacture_id = GIGADEVICE_ID,
3790 .model_id = GIGADEVICE_GD25Q80,
3791 .total_size = 1024,
3792 .page_size = 256,
3793 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
3794 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
3795 .tested = TEST_OK_PREW,
3796 .probe = probe_spi_rdid,
3797 .probe_timing = TIMING_ZERO,
3798 .block_erasers =
3799 {
3800 {
3801 .eraseblocks = { {4 * 1024, 256} },
3802 .block_erase = spi_block_erase_20,
3803 }, {
3804 .eraseblocks = { {32 * 1024, 32} },
3805 .block_erase = spi_block_erase_52,
3806 }, {
3807 .eraseblocks = { {64 * 1024, 16} },
3808 .block_erase = spi_block_erase_d8,
3809 }, {
3810 .eraseblocks = { {1024 * 1024, 1} },
3811 .block_erase = spi_block_erase_60,
3812 }, {
3813 .eraseblocks = { {1024 * 1024, 1} },
3814 .block_erase = spi_block_erase_c7,
3815 }
3816 },
3817 .unlock = spi_disable_blockprotect,
3818 .write = spi_chip_write_256,
3819 .read = spi_chip_read,
3820 .voltage = {2700, 3600},
3821 },
3822
3823 {
3824 .vendor = "GigaDevice",
3825 .name = "GD25Q16",
3826 .bustype = BUS_SPI,
3827 .manufacture_id = GIGADEVICE_ID,
3828 .model_id = GIGADEVICE_GD25Q16,
3829 .total_size = 2048,
3830 .page_size = 256,
3831 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
3832 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
3833 .tested = TEST_UNTESTED,
3834 .probe = probe_spi_rdid,
3835 .probe_timing = TIMING_ZERO,
3836 .block_erasers =
3837 {
3838 {
3839 .eraseblocks = { {4 * 1024, 512} },
3840 .block_erase = spi_block_erase_20,
3841 }, {
3842 .eraseblocks = { {32 * 1024, 64} },
3843 .block_erase = spi_block_erase_52,
3844 }, {
3845 .eraseblocks = { {64 * 1024, 32} },
3846 .block_erase = spi_block_erase_d8,
3847 }, {
3848 .eraseblocks = { {2 * 1024 * 1024, 1} },
3849 .block_erase = spi_block_erase_60,
3850 }, {
3851 .eraseblocks = { {2 * 1024 * 1024, 1} },
3852 .block_erase = spi_block_erase_c7,
3853 }
3854 },
3855 .unlock = spi_disable_blockprotect,
3856 .write = spi_chip_write_256,
3857 .read = spi_chip_read,
3858 .voltage = {2700, 3600},
3859 },
3860
3861 {
3862 .vendor = "GigaDevice",
3863 .name = "GD25Q32",
3864 .bustype = BUS_SPI,
3865 .manufacture_id = GIGADEVICE_ID,
3866 .model_id = GIGADEVICE_GD25Q32,
3867 .total_size = 4096,
3868 .page_size = 256,
3869 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
3870 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
3871 .tested = TEST_UNTESTED,
3872 .probe = probe_spi_rdid,
3873 .probe_timing = TIMING_ZERO,
3874 .block_erasers =
3875 {
3876 {
3877 .eraseblocks = { {4 * 1024, 1024} },
3878 .block_erase = spi_block_erase_20,
3879 }, {
3880 .eraseblocks = { {32 * 1024, 128} },
3881 .block_erase = spi_block_erase_52,
3882 }, {
3883 .eraseblocks = { {64 * 1024, 64} },
3884 .block_erase = spi_block_erase_d8,
3885 }, {
3886 .eraseblocks = { {4 * 1024 * 1024, 1} },
3887 .block_erase = spi_block_erase_60,
3888 }, {
3889 .eraseblocks = { {4 * 1024 * 1024, 1} },
3890 .block_erase = spi_block_erase_c7,
3891 }
3892 },
3893 .unlock = spi_disable_blockprotect,
3894 .write = spi_chip_write_256,
3895 .read = spi_chip_read,
3896 .voltage = {2700, 3600},
3897 },
3898
3899 {
3900 .vendor = "GigaDevice",
3901 .name = "GD25Q64",
3902 .bustype = BUS_SPI,
3903 .manufacture_id = GIGADEVICE_ID,
3904 .model_id = GIGADEVICE_GD25Q64,
3905 .total_size = 8192,
3906 .page_size = 256,
3907 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
3908 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
3909 .tested = TEST_UNTESTED,
3910 .probe = probe_spi_rdid,
3911 .probe_timing = TIMING_ZERO,
3912 .block_erasers =
3913 {
3914 {
3915 .eraseblocks = { {4 * 1024, 2048} },
3916 .block_erase = spi_block_erase_20,
3917 }, {
3918 .eraseblocks = { {32 * 1024, 256} },
3919 .block_erase = spi_block_erase_52,
3920 }, {
3921 .eraseblocks = { {64 * 1024, 128} },
3922 .block_erase = spi_block_erase_d8,
3923 }, {
3924 .eraseblocks = { {8 * 1024 * 1024, 1} },
3925 .block_erase = spi_block_erase_60,
3926 }, {
3927 .eraseblocks = { {8 * 1024 * 1024, 1} },
3928 .block_erase = spi_block_erase_c7,
3929 }
3930 },
3931 .unlock = spi_disable_blockprotect,
3932 .write = spi_chip_write_256,
3933 .read = spi_chip_read,
3934 },
3935
3936 {
3937 .vendor = "GigaDevice",
3938 .name = "GD25Q128",
3939 .bustype = BUS_SPI,
3940 .manufacture_id = GIGADEVICE_ID,
3941 .model_id = GIGADEVICE_GD25Q128,
3942 .total_size = 16384,
3943 .page_size = 256,
3944 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
3945 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
3946 .tested = TEST_UNTESTED,
3947 .probe = probe_spi_rdid,
3948 .probe_timing = TIMING_ZERO,
3949 .block_erasers =
3950 {
3951 {
3952 .eraseblocks = { {4 * 1024, 4096} },
3953 .block_erase = spi_block_erase_20,
3954 }, {
3955 .eraseblocks = { {32 * 1024, 512} },
3956 .block_erase = spi_block_erase_52,
3957 }, {
3958 .eraseblocks = { {64 * 1024, 256} },
3959 .block_erase = spi_block_erase_d8,
3960 }, {
3961 .eraseblocks = { {16 * 1024 * 1024, 1} },
3962 .block_erase = spi_block_erase_60,
3963 }, {
3964 .eraseblocks = { {16 * 1024 * 1024, 1} },
3965 .block_erase = spi_block_erase_c7,
3966 }
3967 },
3968 .unlock = spi_disable_blockprotect,
3969 .write = spi_chip_write_256,
3970 .read = spi_chip_read,
3971 },
3972
3973 {
David Borgc96a8bd2010-06-21 16:12:22 +00003974 .vendor = "Hyundai",
3975 .name = "HY29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003976 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00003977 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003978 .model_id = HYUNDAI_HY29F002T,
David Borgc96a8bd2010-06-21 16:12:22 +00003979 .total_size = 256,
3980 .page_size = 256 * 1024,
3981 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003982 .tested = TEST_OK_PRE,
David Borgc96a8bd2010-06-21 16:12:22 +00003983 .probe = probe_jedec,
3984 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3985 .block_erasers =
3986 {
3987 {
3988 .eraseblocks = {
3989 {64 * 1024, 3},
3990 {32 * 1024, 1},
3991 {8 * 1024, 2},
3992 {16 * 1024, 1},
3993 },
3994 .block_erase = erase_sector_jedec,
3995 }, {
3996 .eraseblocks = { {256 * 1024, 1} },
3997 .block_erase = erase_chip_block_jedec,
3998 },
3999 },
4000 .write = write_jedec_1,
4001 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004002 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00004003 },
4004
4005 {
4006 .vendor = "Hyundai",
4007 .name = "HY29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004008 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00004009 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004010 .model_id = HYUNDAI_HY29F002B,
David Borgc96a8bd2010-06-21 16:12:22 +00004011 .total_size = 256,
4012 .page_size = 256 * 1024,
4013 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
4014 .tested = TEST_UNTESTED,
4015 .probe = probe_jedec,
4016 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4017 .block_erasers =
4018 {
4019 {
4020 .eraseblocks = {
4021 {16 * 1024, 1},
4022 {8 * 1024, 2},
4023 {32 * 1024, 1},
4024 {64 * 1024, 3},
4025 },
4026 .block_erase = erase_sector_jedec,
4027 }, {
4028 .eraseblocks = { {256 * 1024, 1} },
4029 .block_erase = erase_chip_block_jedec,
4030 },
4031 },
4032 .write = write_jedec_1,
4033 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004034 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00004035 },
4036
4037 {
Joshua Roysf1324e02010-09-16 00:51:51 +00004038 .vendor = "Hyundai",
4039 .name = "HY29F040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004040 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00004041 .manufacture_id = HYUNDAI_ID,
4042 .model_id = HYUNDAI_HY29F040A,
4043 .total_size = 512,
4044 .page_size = 64 * 1024,
4045 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
4046 .tested = TEST_UNTESTED,
4047 .probe = probe_jedec,
4048 .probe_timing = TIMING_ZERO,
4049 .block_erasers =
4050 {
4051 {
4052 .eraseblocks = { {64 * 1024, 8} },
4053 .block_erase = erase_sector_jedec,
4054 }, {
4055 .eraseblocks = { {512 * 1024, 1} },
4056 .block_erase = erase_chip_block_jedec,
4057 },
4058 },
4059 .write = write_jedec_1,
4060 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004061 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00004062 },
4063
4064 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004065 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004066 .name = "28F001BN/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004067 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004068 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004069 .model_id = INTEL_28F001B,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004070 .total_size = 128,
4071 .page_size = 128 * 1024, /* 8k + 2x4k + 112k */
Sean Nelsondee4a832010-03-22 04:39:31 +00004072 .tested = TEST_UNTESTED,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004073 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004074 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00004075 .block_erasers =
4076 {
4077 {
4078 .eraseblocks = {
4079 {8 * 1024, 1},
4080 {4 * 1024, 2},
4081 {112 * 1024, 1},
4082 },
Sean Nelson28accc22010-03-19 18:47:06 +00004083 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00004084 },
4085 },
Sean Nelsondee4a832010-03-22 04:39:31 +00004086 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004087 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004088 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004089 },
4090
4091 {
4092 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004093 .name = "28F001BN/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004094 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004095 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004096 .model_id = INTEL_28F001T,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004097 .total_size = 128,
4098 .page_size = 128 * 1024, /* 112k + 2x4k + 8k */
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00004099 .tested = TEST_OK_PR,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004100 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004101 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00004102 .block_erasers =
4103 {
4104 {
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00004105 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00004106 {112 * 1024, 1},
4107 {4 * 1024, 2},
4108 {8 * 1024, 1},
4109 },
Sean Nelson28accc22010-03-19 18:47:06 +00004110 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00004111 },
4112 },
Sean Nelsondee4a832010-03-22 04:39:31 +00004113 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004114 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004115 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004116 },
4117
4118 {
4119 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004120 .name = "28F002BC/BL/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004121 .bustype = BUS_PARALLEL,
Joshua Roysd97c0e02010-07-22 15:20:43 +00004122 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004123 .model_id = INTEL_28F002T,
Joshua Roysd97c0e02010-07-22 15:20:43 +00004124 .total_size = 256,
4125 .page_size = 256 * 1024,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004126 .tested = TEST_OK_PRE,
Joshua Roysd97c0e02010-07-22 15:20:43 +00004127 .probe = probe_82802ab,
4128 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4129 .block_erasers =
4130 {
4131 {
4132 .eraseblocks = {
4133 {128 * 1024, 1},
4134 {96 * 1024, 1},
4135 {8 * 1024, 2},
4136 {16 * 1024, 1},
4137 },
4138 .block_erase = erase_block_82802ab,
4139 },
4140 },
4141 .write = write_82802ab,
4142 .read = read_memmapped,
4143 },
4144
4145 {
4146 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004147 .name = "28F008S3/S5/SC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004148 .bustype = BUS_PARALLEL,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00004149 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004150 .model_id = INTEL_28F004S3,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00004151 .total_size = 512,
4152 .page_size = 256,
4153 .tested = TEST_UNTESTED,
4154 .probe = probe_82802ab,
4155 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00004156 .block_erasers =
4157 {
4158 {
4159 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00004160 .block_erase = erase_block_82802ab,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00004161 },
4162 },
Sean Nelsondee4a832010-03-22 04:39:31 +00004163 .unlock = unlock_28f004s5,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00004164 .write = write_82802ab,
4165 .read = read_memmapped,
4166 },
4167
4168 {
4169 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004170 .name = "28F004B5/BE/BV/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004171 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00004172 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004173 .model_id = INTEL_28F004B,
Michael Karcherad0010a2010-04-03 10:27:08 +00004174 .total_size = 512,
4175 .page_size = 128 * 1024, /* maximal block size */
4176 .tested = TEST_UNTESTED,
4177 .probe = probe_82802ab,
4178 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4179 .block_erasers =
4180 {
4181 {
4182 .eraseblocks = {
4183 {16 * 1024, 1},
4184 {8 * 1024, 2},
4185 {96 * 1024, 1},
4186 {128 * 1024, 3},
4187 },
4188 .block_erase = erase_block_82802ab,
4189 },
4190 },
4191 .write = write_82802ab,
4192 .read = read_memmapped,
4193 },
4194
4195 {
4196 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004197 .name = "28F004B5/BE/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004198 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00004199 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004200 .model_id = INTEL_28F004T,
Michael Karcherad0010a2010-04-03 10:27:08 +00004201 .total_size = 512,
4202 .page_size = 128 * 1024, /* maximal block size */
4203 .tested = TEST_UNTESTED,
4204 .probe = probe_82802ab,
4205 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4206 .block_erasers =
4207 {
4208 {
4209 .eraseblocks = {
4210 {128 * 1024, 3},
4211 {96 * 1024, 1},
4212 {8 * 1024, 2},
4213 {16 * 1024, 1},
4214 },
4215 .block_erase = erase_block_82802ab,
4216 },
4217 },
4218 .write = write_82802ab,
4219 .read = read_memmapped,
4220 },
4221
4222 {
4223 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004224 .name = "28F400BV/BX/CE/CV-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004225 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00004226 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004227 .model_id = INTEL_28F400B,
Michael Karcherad0010a2010-04-03 10:27:08 +00004228 .total_size = 512,
4229 .page_size = 128 * 1024, /* maximal block size */
4230 .feature_bits = FEATURE_ADDR_SHIFTED,
4231 .tested = TEST_UNTESTED,
4232 .probe = probe_82802ab,
4233 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4234 .block_erasers =
4235 {
4236 {
4237 .eraseblocks = {
4238 {16 * 1024, 1},
4239 {8 * 1024, 2},
4240 {96 * 1024, 1},
4241 {128 * 1024, 3},
4242 },
4243 .block_erase = erase_block_82802ab,
4244 },
4245 },
4246 .write = write_82802ab,
4247 .read = read_memmapped,
4248 },
4249
4250 {
4251 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004252 .name = "28F400BV/BX/CE/CV-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004253 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00004254 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004255 .model_id = INTEL_28F400T,
Michael Karcherad0010a2010-04-03 10:27:08 +00004256 .total_size = 512,
4257 .page_size = 128 * 1024, /* maximal block size */
4258 .feature_bits = FEATURE_ADDR_SHIFTED,
4259 .tested = TEST_UNTESTED,
4260 .probe = probe_82802ab,
4261 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4262 .block_erasers =
4263 {
4264 {
4265 .eraseblocks = {
4266 {128 * 1024, 3},
4267 {96 * 1024, 1},
4268 {8 * 1024, 2},
4269 {16 * 1024, 1},
4270 },
4271 .block_erase = erase_block_82802ab,
4272 },
4273 },
4274 .write = write_82802ab,
4275 .read = read_memmapped,
4276 },
4277
4278 {
4279 .vendor = "Intel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004280 .name = "82802AB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004281 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004282 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004283 .model_id = INTEL_82802AB,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004284 .total_size = 512,
4285 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00004286 .feature_bits = FEATURE_REGISTERMAP,
Stefan Taunerd06d9412011-06-12 19:47:55 +00004287 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004288 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004289 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00004290 .block_erasers =
4291 {
4292 {
4293 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00004294 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00004295 },
4296 },
Sean Nelson28accc22010-03-19 18:47:06 +00004297 .unlock = unlock_82802ab,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004298 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004299 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004300 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004301 },
4302
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004303 {
4304 .vendor = "Intel",
4305 .name = "82802AC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004306 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004307 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004308 .model_id = INTEL_82802AC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004309 .total_size = 1024,
4310 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00004311 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +00004312 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004313 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004314 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00004315 .block_erasers =
4316 {
4317 {
4318 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +00004319 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00004320 },
4321 },
Sean Nelson28accc22010-03-19 18:47:06 +00004322 .unlock = unlock_82802ab,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004323 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004324 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004325 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004326 },
4327
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004328 {
4329 .vendor = "Macronix",
4330 .name = "MX25L512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004331 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004332 .manufacture_id = MACRONIX_ID,
4333 .model_id = MACRONIX_MX25L512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004334 .total_size = 64,
4335 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004336 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004337 .tested = TEST_UNTESTED,
4338 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004339 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004340 .block_erasers =
4341 {
4342 {
4343 .eraseblocks = { {4 * 1024, 16} },
4344 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004345 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004346 .eraseblocks = { {64 * 1024, 1} },
4347 .block_erase = spi_block_erase_52,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004348 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004349 .eraseblocks = { {64 * 1024, 1} },
4350 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004351 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004352 .eraseblocks = { {64 * 1024, 1} },
4353 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004354 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004355 .eraseblocks = { {64 * 1024, 1} },
4356 .block_erase = spi_block_erase_c7,
4357 },
4358 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004359 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004360 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004361 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004362 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004363 },
4364
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004365 {
4366 .vendor = "Macronix",
4367 .name = "MX25L1005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004368 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004369 .manufacture_id = MACRONIX_ID,
4370 .model_id = MACRONIX_MX25L1005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004371 .total_size = 128,
4372 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004373 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004374 .tested = TEST_UNTESTED,
4375 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004376 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004377 .block_erasers =
4378 {
4379 {
4380 .eraseblocks = { {4 * 1024, 32} },
4381 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004382 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004383 .eraseblocks = { {64 * 1024, 2} },
4384 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004385 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004386 .eraseblocks = { {128 * 1024, 1} },
4387 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004388 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004389 .eraseblocks = { {128 * 1024, 1} },
4390 .block_erase = spi_block_erase_c7,
4391 },
4392 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004393 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004394 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004395 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004396 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004397 },
4398
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004399 {
4400 .vendor = "Macronix",
4401 .name = "MX25L2005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004402 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004403 .manufacture_id = MACRONIX_ID,
4404 .model_id = MACRONIX_MX25L2005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004405 .total_size = 256,
4406 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004407 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004408 .tested = TEST_UNTESTED,
4409 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004410 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004411 .block_erasers =
4412 {
4413 {
4414 .eraseblocks = { {4 * 1024, 64} },
4415 .block_erase = spi_block_erase_20,
4416 }, {
4417 .eraseblocks = { {64 * 1024, 4} },
4418 .block_erase = spi_block_erase_52,
4419 }, {
4420 .eraseblocks = { {64 * 1024, 4} },
4421 .block_erase = spi_block_erase_d8,
4422 }, {
4423 .eraseblocks = { {256 * 1024, 1} },
4424 .block_erase = spi_block_erase_60,
4425 }, {
4426 .eraseblocks = { {256 * 1024, 1} },
4427 .block_erase = spi_block_erase_c7,
4428 },
4429 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004430 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004431 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004432 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004433 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004434 },
4435
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004436 {
4437 .vendor = "Macronix",
4438 .name = "MX25L4005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004439 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004440 .manufacture_id = MACRONIX_ID,
4441 .model_id = MACRONIX_MX25L4005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004442 .total_size = 512,
4443 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004444 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +00004445 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004446 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004447 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004448 .block_erasers =
4449 {
4450 {
4451 .eraseblocks = { {4 * 1024, 128} },
4452 .block_erase = spi_block_erase_20,
4453 }, {
4454 .eraseblocks = { {64 * 1024, 8} },
4455 .block_erase = spi_block_erase_52,
4456 }, {
4457 .eraseblocks = { {64 * 1024, 8} },
4458 .block_erase = spi_block_erase_d8,
4459 }, {
4460 .eraseblocks = { {512 * 1024, 1} },
4461 .block_erase = spi_block_erase_60,
4462 }, {
4463 .eraseblocks = { {512 * 1024, 1} },
4464 .block_erase = spi_block_erase_c7,
4465 },
4466 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004467 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004468 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004469 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004470 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004471 },
4472
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004473 {
4474 .vendor = "Macronix",
4475 .name = "MX25L8005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004476 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004477 .manufacture_id = MACRONIX_ID,
4478 .model_id = MACRONIX_MX25L8005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004479 .total_size = 1024,
4480 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004481 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +00004482 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004483 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004484 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004485 .block_erasers =
4486 {
4487 {
4488 .eraseblocks = { {4 * 1024, 256} },
4489 .block_erase = spi_block_erase_20,
4490 }, {
4491 .eraseblocks = { {64 * 1024, 16} },
4492 .block_erase = spi_block_erase_52,
4493 }, {
4494 .eraseblocks = { {64 * 1024, 16} },
4495 .block_erase = spi_block_erase_d8,
4496 }, {
4497 .eraseblocks = { {1024 * 1024, 1} },
4498 .block_erase = spi_block_erase_60,
4499 }, {
4500 .eraseblocks = { {1024 * 1024, 1} },
4501 .block_erase = spi_block_erase_c7,
4502 },
4503 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004504 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004505 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004506 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004507 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004508 },
4509
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004510 {
4511 .vendor = "Macronix",
4512 .name = "MX25L1605",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004513 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004514 .manufacture_id = MACRONIX_ID,
4515 .model_id = MACRONIX_MX25L1605,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004516 .total_size = 2048,
4517 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004518 .feature_bits = FEATURE_WRSR_WREN,
Sven Schnelle4bd8a402011-03-07 10:59:06 +00004519 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004520 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004521 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004522 .block_erasers =
4523 {
4524 {
4525 .eraseblocks = { {4 * 1024, 512} },
4526 .block_erase = spi_block_erase_20, /* This erase function has 64k blocksize for eLiteFlash */
4527 }, {
4528 .eraseblocks = { {64 * 1024, 32} }, /* Not supported in MX25L1605 (eLiteFlash) and MX25L1605D */
4529 .block_erase = spi_block_erase_52,
4530 }, {
4531 .eraseblocks = { {64 * 1024, 32} },
4532 .block_erase = spi_block_erase_d8,
4533 }, {
4534 .eraseblocks = { {2 * 1024 * 1024, 1} },
4535 .block_erase = spi_block_erase_60,
4536 }, {
4537 .eraseblocks = { {2 * 1024 * 1024, 1} },
4538 .block_erase = spi_block_erase_c7,
4539 },
4540 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004541 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004542 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004543 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004544 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004545 },
4546
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004547 {
4548 .vendor = "Macronix",
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004549 .name = "MX25L1635D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004550 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004551 .manufacture_id = MACRONIX_ID,
4552 .model_id = MACRONIX_MX25L1635D,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004553 .total_size = 2048,
4554 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004555 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004556 .tested = TEST_UNTESTED,
4557 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004558 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004559 .block_erasers =
4560 {
4561 {
4562 .eraseblocks = { {4 * 1024, 512} },
4563 .block_erase = spi_block_erase_20,
4564 }, {
4565 .eraseblocks = { {64 * 1024, 32} },
4566 .block_erase = spi_block_erase_d8,
4567 }, {
4568 .eraseblocks = { {2 * 1024 * 1024, 1} },
4569 .block_erase = spi_block_erase_60,
4570 }, {
4571 .eraseblocks = { {2 * 1024 * 1024, 1} },
4572 .block_erase = spi_block_erase_c7,
4573 }
4574 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004575 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004576 .write = spi_chip_write_256,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004577 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004578 .voltage = {2700, 3600},
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004579 },
Stephan Guillouxfd315502009-04-20 22:54:13 +00004580
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004581 {
4582 .vendor = "Macronix",
Stephan Guilloux3611b802010-09-13 19:59:28 +00004583 .name = "MX25L1635E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004584 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004585 .manufacture_id = MACRONIX_ID,
4586 .model_id = MACRONIX_MX25L1635E,
Stephan Guilloux3611b802010-09-13 19:59:28 +00004587 .total_size = 2048,
4588 .page_size = 256,
4589 .feature_bits = FEATURE_WRSR_WREN,
4590 .tested = TEST_UNTESTED,
4591 .probe = probe_spi_rdid,
4592 .probe_timing = TIMING_ZERO,
4593 .block_erasers =
4594 {
4595 {
4596 .eraseblocks = { {4 * 1024, 512} },
4597 .block_erase = spi_block_erase_20,
4598 }, {
4599 .eraseblocks = { {64 * 1024, 32} },
4600 .block_erase = spi_block_erase_d8,
4601 }, {
4602 .eraseblocks = { {2 * 1024 * 1024, 1} },
4603 .block_erase = spi_block_erase_60,
4604 }, {
4605 .eraseblocks = { {2 * 1024 * 1024, 1} },
4606 .block_erase = spi_block_erase_c7,
4607 }
4608 },
4609 .unlock = spi_disable_blockprotect,
4610 .write = spi_chip_write_256,
4611 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004612 .voltage = {2700, 3600},
Stephan Guilloux3611b802010-09-13 19:59:28 +00004613 },
4614
4615 {
4616 .vendor = "Macronix",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004617 .name = "MX25L3205",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004618 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004619 .manufacture_id = MACRONIX_ID,
4620 .model_id = MACRONIX_MX25L3205,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004621 .total_size = 4096,
4622 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004623 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00004624 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004625 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004626 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004627 .block_erasers =
4628 {
4629 {
4630 .eraseblocks = { {4 * 1024, 1024} },
4631 .block_erase = spi_block_erase_20,
4632 }, {
4633 .eraseblocks = { {4 * 1024, 1024} },
4634 .block_erase = spi_block_erase_d8,
4635 }, {
4636 .eraseblocks = { {4 * 1024 * 1024, 1} },
4637 .block_erase = spi_block_erase_60,
4638 }, {
4639 .eraseblocks = { {4 * 1024 * 1024, 1} },
4640 .block_erase = spi_block_erase_c7,
4641 },
4642 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004643 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004644 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004645 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004646 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004647 },
4648
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004649 {
4650 .vendor = "Macronix",
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00004651 .name = "MX25L3235D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004652 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004653 .manufacture_id = MACRONIX_ID,
4654 .model_id = MACRONIX_MX25L3235D,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00004655 .total_size = 4096,
4656 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004657 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00004658 .tested = TEST_UNTESTED,
4659 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004660 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004661 .block_erasers =
4662 {
4663 {
4664 .eraseblocks = { {4 * 1024, 1024} },
4665 .block_erase = spi_block_erase_20,
4666 }, {
4667 .eraseblocks = { {64 * 1024, 64} },
4668 .block_erase = spi_block_erase_d8,
4669 }, {
4670 .eraseblocks = { {4 * 1024 * 1024, 1} },
4671 .block_erase = spi_block_erase_60,
4672 }, {
4673 .eraseblocks = { {4 * 1024 * 1024, 1} },
4674 .block_erase = spi_block_erase_c7,
4675 }
4676 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004677 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004678 .write = spi_chip_write_256,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00004679 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004680 .voltage = {2700, 3600},
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00004681 },
4682
4683 {
4684 .vendor = "Macronix",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004685 .name = "MX25L6405",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004686 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004687 .manufacture_id = MACRONIX_ID,
4688 .model_id = MACRONIX_MX25L6405,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004689 .total_size = 8192,
4690 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004691 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzelac427b22012-02-16 21:07:07 +00004692 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004693 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004694 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004695 .block_erasers =
4696 {
4697 {
4698 .eraseblocks = { {64 * 1024, 128} },
4699 .block_erase = spi_block_erase_20,
4700 }, {
4701 .eraseblocks = { {64 * 1024, 128} },
4702 .block_erase = spi_block_erase_d8,
4703 }, {
4704 .eraseblocks = { {8 * 1024 * 1024, 1} },
4705 .block_erase = spi_block_erase_60,
4706 }, {
4707 .eraseblocks = { {8 * 1024 * 1024, 1} },
4708 .block_erase = spi_block_erase_c7,
4709 }
4710 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004711 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004712 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004713 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004714 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004715 },
4716
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004717 {
4718 .vendor = "Macronix",
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00004719 .name = "MX25L12805",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004720 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004721 .manufacture_id = MACRONIX_ID,
4722 .model_id = MACRONIX_MX25L12805,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00004723 .total_size = 16384,
4724 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004725 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00004726 .tested = TEST_UNTESTED,
4727 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004728 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004729 .block_erasers =
4730 {
4731 {
4732 .eraseblocks = { {4 * 1024, 4096} },
4733 .block_erase = spi_block_erase_20,
4734 }, {
4735 .eraseblocks = { {64 * 1024, 256} },
4736 .block_erase = spi_block_erase_d8,
4737 }, {
4738 .eraseblocks = { {16 * 1024 * 1024, 1} },
4739 .block_erase = spi_block_erase_60,
4740 }, {
4741 .eraseblocks = { {16 * 1024 * 1024, 1} },
4742 .block_erase = spi_block_erase_c7,
4743 }
4744 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004745 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004746 .write = spi_chip_write_256,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00004747 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004748 .voltage = {2700, 3600},
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00004749 },
4750
4751 {
4752 .vendor = "Macronix",
Mark Panajotovic502a9132009-08-24 01:42:24 +00004753 .name = "MX29F001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004754 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004755 .manufacture_id = MACRONIX_ID,
4756 .model_id = MACRONIX_MX29F001B,
Mark Panajotovic502a9132009-08-24 01:42:24 +00004757 .total_size = 128,
4758 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004759 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
4760 .tested = TEST_UNTESTED,
4761 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00004762 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004763 .block_erasers =
4764 {
4765 {
4766 .eraseblocks = {
4767 {8 * 1024, 1},
4768 {4 * 1024, 2},
4769 {8 * 1024, 2},
4770 {32 * 1024, 1},
4771 {64 * 1024, 1},
4772 },
Sean Nelson35727f72010-01-28 23:55:12 +00004773 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00004774 }, {
4775 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004776 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00004777 }
4778 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004779 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00004780 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004781 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00004782 },
4783
4784 {
4785 .vendor = "Macronix",
4786 .name = "MX29F001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004787 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004788 .manufacture_id = MACRONIX_ID,
4789 .model_id = MACRONIX_MX29F001T,
Mark Panajotovic502a9132009-08-24 01:42:24 +00004790 .total_size = 128,
4791 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004792 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stefan Tauner74c6ec62011-05-18 01:31:46 +00004793 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00004794 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00004795 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004796 .block_erasers =
4797 {
4798 {
4799 .eraseblocks = {
4800 {64 * 1024, 1},
4801 {32 * 1024, 1},
4802 {8 * 1024, 2},
4803 {4 * 1024, 2},
4804 {8 * 1024, 1},
4805 },
Sean Nelson35727f72010-01-28 23:55:12 +00004806 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00004807 }, {
4808 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004809 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00004810 }
4811 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004812 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00004813 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004814 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00004815 },
4816
4817 {
4818 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00004819 .name = "MX29F002(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004820 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004821 .manufacture_id = MACRONIX_ID,
4822 .model_id = MACRONIX_MX29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004823 .total_size = 256,
4824 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004825 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004826 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00004827 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00004828 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004829 .block_erasers =
4830 {
4831 {
4832 .eraseblocks = {
4833 {16 * 1024, 1},
4834 {8 * 1024, 2},
4835 {32 * 1024, 1},
4836 {64 * 1024, 3},
4837 },
Sean Nelson35727f72010-01-28 23:55:12 +00004838 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004839 }, {
4840 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004841 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004842 },
4843 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004844 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004845 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004846 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004847 },
4848
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004849 {
4850 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00004851 .name = "MX29F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004852 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004853 .manufacture_id = MACRONIX_ID,
4854 .model_id = MACRONIX_MX29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004855 .total_size = 256,
4856 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004857 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00004858 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00004859 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00004860 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004861 .block_erasers =
4862 {
4863 {
4864 .eraseblocks = {
4865 {64 * 1024, 3},
4866 {32 * 1024, 1},
4867 {8 * 1024, 2},
4868 {16 * 1024, 1},
4869 },
Sean Nelson35727f72010-01-28 23:55:12 +00004870 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004871 }, {
4872 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004873 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004874 },
4875 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004876 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004877 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004878 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004879 },
4880
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004881 {
4882 .vendor = "Macronix",
Joshua Roysf1324e02010-09-16 00:51:51 +00004883 .name = "MX29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004884 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00004885 .manufacture_id = MACRONIX_ID,
4886 .model_id = MACRONIX_MX29F040,
4887 .total_size = 512,
4888 .page_size = 64 * 1024,
4889 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
4890 .tested = TEST_UNTESTED,
4891 .probe = probe_jedec,
4892 .probe_timing = TIMING_ZERO,
4893 .block_erasers =
4894 {
4895 {
4896 .eraseblocks = { {64 * 1024, 8} },
4897 .block_erase = erase_sector_jedec,
4898 }, {
4899 .eraseblocks = { {512 * 1024, 1} },
4900 .block_erase = erase_chip_block_jedec,
4901 },
4902 },
4903 .write = write_jedec_1,
4904 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004905 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00004906 },
4907
4908 {
4909 .vendor = "Macronix",
Carl-Daniel Hailfinger350a0c32009-07-24 13:59:27 +00004910 .name = "MX29LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004911 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004912 .manufacture_id = MACRONIX_ID,
4913 .model_id = MACRONIX_MX29LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004914 .total_size = 512,
4915 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004916 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
4917 .tested = TEST_UNTESTED,
4918 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00004919 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004920 .block_erasers =
4921 {
4922 {
4923 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson35727f72010-01-28 23:55:12 +00004924 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00004925 }, {
4926 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004927 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00004928 },
4929 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004930 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004931 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004932 .voltage = {2700, 3600},
Carl-Daniel Hailfinger7de86392008-12-10 10:32:05 +00004933 },
4934
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004935 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00004936 .vendor = "MoselVitelic",
4937 .name = "V29C51000B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004938 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00004939 .manufacture_id = SYNCMOS_MVC_ID,
4940 .model_id = MVC_V29C51000B,
4941 .total_size = 64,
4942 .page_size = 512,
4943 .feature_bits = FEATURE_EITHER_RESET,
4944 .tested = TEST_UNTESTED,
4945 .probe = probe_jedec,
4946 .probe_timing = TIMING_ZERO,
4947 .block_erasers =
4948 {
4949 {
4950 .eraseblocks = { {512, 128} },
4951 .block_erase = erase_sector_jedec,
4952 }, {
4953 .eraseblocks = { {64 * 1024, 1} },
4954 .block_erase = erase_chip_block_jedec,
4955 },
4956 },
4957 .write = write_jedec_1,
4958 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004959 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00004960 },
4961
4962 {
4963 .vendor = "MoselVitelic",
4964 .name = "V29C51000T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004965 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00004966 .manufacture_id = SYNCMOS_MVC_ID,
4967 .model_id = MVC_V29C51000T,
4968 .total_size = 64,
4969 .page_size = 512,
4970 .feature_bits = FEATURE_EITHER_RESET,
4971 .tested = TEST_UNTESTED,
4972 .probe = probe_jedec,
4973 .probe_timing = TIMING_ZERO,
4974 .block_erasers =
4975 {
4976 {
4977 .eraseblocks = { {512, 128} },
4978 .block_erase = erase_sector_jedec,
4979 }, {
4980 .eraseblocks = { {64 * 1024, 1} },
4981 .block_erase = erase_chip_block_jedec,
4982 },
4983 },
4984 .write = write_jedec_1,
4985 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004986 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00004987 },
4988
4989 {
4990 .vendor = "MoselVitelic",
4991 .name = "V29C51400B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004992 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00004993 .manufacture_id = SYNCMOS_MVC_ID,
4994 .model_id = MVC_V29C51400B,
4995 .total_size = 512,
4996 .page_size = 1024,
4997 .feature_bits = FEATURE_EITHER_RESET,
4998 .tested = TEST_UNTESTED,
4999 .probe = probe_jedec,
5000 .probe_timing = TIMING_ZERO,
5001 .block_erasers =
5002 {
5003 {
5004 .eraseblocks = { {1024, 512} },
5005 .block_erase = erase_sector_jedec,
5006 }, {
5007 .eraseblocks = { {512 * 1024, 1} },
5008 .block_erase = erase_chip_block_jedec,
5009 },
5010 },
5011 .write = write_jedec_1,
5012 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005013 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00005014 },
5015
5016 {
5017 .vendor = "MoselVitelic",
5018 .name = "V29C51400T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005019 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00005020 .manufacture_id = SYNCMOS_MVC_ID,
5021 .model_id = MVC_V29C51400T,
5022 .total_size = 512,
5023 .page_size = 1024,
5024 .feature_bits = FEATURE_EITHER_RESET,
5025 .tested = TEST_UNTESTED,
5026 .probe = probe_jedec,
5027 .probe_timing = TIMING_ZERO,
5028 .block_erasers =
5029 {
5030 {
5031 .eraseblocks = { {1024, 512} },
5032 .block_erase = erase_sector_jedec,
5033 }, {
5034 .eraseblocks = { {512 * 1024, 1} },
5035 .block_erase = erase_chip_block_jedec,
5036 },
5037 },
5038 .write = write_jedec_1,
5039 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005040 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00005041 },
5042
5043 {
5044 .vendor = "MoselVitelic",
5045 .name = "V29LC51000",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005046 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00005047 .manufacture_id = SYNCMOS_MVC_ID,
5048 .model_id = MVC_V29LC51000,
5049 .total_size = 64,
5050 .page_size = 512,
5051 .feature_bits = FEATURE_EITHER_RESET,
5052 .tested = TEST_UNTESTED,
5053 .probe = probe_jedec,
5054 .probe_timing = TIMING_ZERO,
5055 .block_erasers =
5056 {
5057 {
5058 .eraseblocks = { {512, 128} },
5059 .block_erase = erase_sector_jedec,
5060 }, {
5061 .eraseblocks = { {64 * 1024, 1} },
5062 .block_erase = erase_chip_block_jedec,
5063 },
5064 },
5065 .write = write_jedec_1,
5066 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005067 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00005068 },
5069
5070 {
5071 .vendor = "MoselVitelic",
5072 .name = "V29LC51001",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005073 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00005074 .manufacture_id = SYNCMOS_MVC_ID,
5075 .model_id = MVC_V29LC51001,
5076 .total_size = 128,
5077 .page_size = 512,
5078 .feature_bits = FEATURE_EITHER_RESET,
5079 .tested = TEST_UNTESTED,
5080 .probe = probe_jedec,
5081 .probe_timing = TIMING_ZERO,
5082 .block_erasers =
5083 {
5084 {
5085 .eraseblocks = { {512, 256} },
5086 .block_erase = erase_sector_jedec,
5087 }, {
5088 .eraseblocks = { {128 * 1024, 1} },
5089 .block_erase = erase_chip_block_jedec,
5090 },
5091 },
5092 .write = write_jedec_1,
5093 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005094 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00005095 },
5096
5097 {
5098 .vendor = "MoselVitelic",
5099 .name = "V29LC51002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005100 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00005101 .manufacture_id = SYNCMOS_MVC_ID,
5102 .model_id = MVC_V29LC51002,
5103 .total_size = 256,
5104 .page_size = 512,
5105 .feature_bits = FEATURE_EITHER_RESET,
5106 .tested = TEST_UNTESTED,
5107 .probe = probe_jedec,
5108 .probe_timing = TIMING_ZERO,
5109 .block_erasers =
5110 {
5111 {
5112 .eraseblocks = { {512, 512} },
5113 .block_erase = erase_sector_jedec,
5114 }, {
5115 .eraseblocks = { {256 * 1024, 1} },
5116 .block_erase = erase_chip_block_jedec,
5117 },
5118 },
5119 .write = write_jedec_1,
5120 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005121 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00005122 },
5123
5124 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005125 .vendor = "Numonyx",
5126 .name = "M25PE10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005127 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005128 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005129 .model_id = ST_M25PE10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005130 .total_size = 128,
5131 .page_size = 256,
5132 .tested = TEST_UNTESTED,
5133 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005134 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005135 .block_erasers =
5136 {
5137 {
5138 .eraseblocks = { {4 * 1024, 32} },
5139 .block_erase = spi_block_erase_20,
5140 }, {
5141 .eraseblocks = { {64 * 1024, 2} },
5142 .block_erase = spi_block_erase_d8,
5143 }, {
5144 .eraseblocks = { {128 * 1024, 1} },
5145 .block_erase = spi_block_erase_c7,
5146 }
5147 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005148 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005149 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005150 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005151 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005152 },
5153
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005154 {
5155 .vendor = "Numonyx",
5156 .name = "M25PE20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005157 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005158 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005159 .model_id = ST_M25PE20,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005160 .total_size = 256,
5161 .page_size = 256,
5162 .tested = TEST_UNTESTED,
5163 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005164 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005165 .block_erasers =
5166 {
5167 {
5168 .eraseblocks = { {4 * 1024, 64} },
5169 .block_erase = spi_block_erase_20,
5170 }, {
5171 .eraseblocks = { {64 * 1024, 4} },
5172 .block_erase = spi_block_erase_d8,
5173 }, {
5174 .eraseblocks = { {256 * 1024, 1} },
5175 .block_erase = spi_block_erase_c7,
5176 }
5177 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005178 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005179 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005180 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005181 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005182 },
5183
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005184 {
5185 .vendor = "Numonyx",
5186 .name = "M25PE40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005187 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005188 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005189 .model_id = ST_M25PE40,
Sean Nelson5643c072010-01-19 03:23:07 +00005190 .total_size = 512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005191 .page_size = 256,
5192 .tested = TEST_UNTESTED,
5193 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005194 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005195 .block_erasers =
5196 {
5197 {
5198 .eraseblocks = { {4 * 1024, 128} },
5199 .block_erase = spi_block_erase_20,
5200 }, {
5201 .eraseblocks = { {64 * 1024, 8} },
5202 .block_erase = spi_block_erase_d8,
5203 }, {
5204 .eraseblocks = { {512 * 1024, 1} },
5205 .block_erase = spi_block_erase_c7,
5206 }
5207 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005208 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005209 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005210 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005211 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005212 },
5213
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005214 {
5215 .vendor = "Numonyx",
5216 .name = "M25PE80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005217 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005218 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005219 .model_id = ST_M25PE80,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005220 .total_size = 1024,
5221 .page_size = 256,
Paul Menzelac427b22012-02-16 21:07:07 +00005222 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005223 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005224 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005225 .block_erasers =
5226 {
5227 {
5228 .eraseblocks = { {4 * 1024, 256} },
5229 .block_erase = spi_block_erase_20,
5230 }, {
5231 .eraseblocks = { {64 * 1024, 16} },
5232 .block_erase = spi_block_erase_d8,
5233 }, {
5234 .eraseblocks = { {1024 * 1024, 1} },
5235 .block_erase = spi_block_erase_c7,
5236 }
5237 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005238 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005239 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005240 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005241 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005242 },
5243
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005244 {
5245 .vendor = "Numonyx",
5246 .name = "M25PE16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005247 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005248 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005249 .model_id = ST_M25PE16,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005250 .total_size = 2048,
5251 .page_size = 256,
5252 .tested = TEST_UNTESTED,
5253 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005254 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005255 .block_erasers =
5256 {
5257 {
5258 .eraseblocks = { {4 * 1024, 512} },
5259 .block_erase = spi_block_erase_20,
5260 }, {
5261 .eraseblocks = { {64 * 1024, 32} },
5262 .block_erase = spi_block_erase_d8,
5263 }, {
5264 .eraseblocks = { {2 * 1024 * 1024, 1} },
5265 .block_erase = spi_block_erase_c7,
5266 }
5267 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005268 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005269 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005270 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005271 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005272 },
5273
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005274 {
Niklas Söderlundae4294f2012-04-14 21:04:03 +00005275 .vendor = "Numonyx",
5276 .name = "N25Q064",
5277 .bustype = BUS_SPI,
5278 .manufacture_id = ST_ID,
5279 .model_id = ST_N25Q064,
5280 .total_size = 8192,
5281 .page_size = 256,
5282 .tested = TEST_OK_PREW,
5283 .probe = probe_spi_rdid,
5284 .probe_timing = TIMING_ZERO,
5285 .block_erasers =
5286 {
5287 {
5288 .eraseblocks = { {4 * 1024, 2048 } },
5289 .block_erase = spi_block_erase_20,
5290 }, {
5291 .eraseblocks = { {64 * 1024, 128} },
5292 .block_erase = spi_block_erase_d8,
5293 }, {
5294 .eraseblocks = { {8 * 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,
5301 },
5302
5303 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005304 .vendor = "PMC",
5305 .name = "Pm25LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005306 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005307 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005308 .model_id = PMC_PM25LV010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005309 .total_size = 128,
5310 .page_size = 256,
5311 .tested = TEST_UNTESTED,
5312 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005313 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005314 .block_erasers =
5315 {
5316 {
5317 .eraseblocks = { {4 * 1024, 32} },
5318 .block_erase = spi_block_erase_d7,
5319 }, {
5320 .eraseblocks = { {32 * 1024, 4} },
5321 .block_erase = spi_block_erase_d8,
5322 }, {
5323 .eraseblocks = { {128 * 1024, 1} },
5324 .block_erase = spi_block_erase_c7,
5325 }
5326 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005327 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005328 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005329 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005330 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005331 },
5332
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005333 {
5334 .vendor = "PMC",
5335 .name = "Pm25LV016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005336 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005337 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005338 .model_id = PMC_PM25LV016B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005339 .total_size = 2048,
5340 .page_size = 256,
5341 .tested = TEST_UNTESTED,
5342 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005343 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005344 .block_erasers =
5345 {
5346 {
5347 .eraseblocks = { {4 * 1024, 512} },
5348 .block_erase = spi_block_erase_d7,
5349 }, {
5350 .eraseblocks = { {4 * 1024, 512} },
5351 .block_erase = spi_block_erase_20,
5352 }, {
5353 .eraseblocks = { {64 * 1024, 32} },
5354 .block_erase = spi_block_erase_d8,
5355 }, {
5356 .eraseblocks = { {2 * 1024 * 1024, 1} },
5357 .block_erase = spi_block_erase_60,
5358 }, {
5359 .eraseblocks = { {2 * 1024 * 1024, 1} },
5360 .block_erase = spi_block_erase_c7,
5361 }
5362 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005363 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005364 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005365 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005366 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005367 },
5368
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005369 {
5370 .vendor = "PMC",
5371 .name = "Pm25LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005372 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005373 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005374 .model_id = PMC_PM25LV020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005375 .total_size = 256,
5376 .page_size = 256,
5377 .tested = TEST_UNTESTED,
5378 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005379 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005380 .block_erasers =
5381 {
5382 {
5383 .eraseblocks = { {4 * 1024, 64} },
5384 .block_erase = spi_block_erase_d7,
5385 }, {
5386 .eraseblocks = { {64 * 1024, 4} },
5387 .block_erase = spi_block_erase_d8,
5388 }, {
5389 .eraseblocks = { {256 * 1024, 1} },
5390 .block_erase = spi_block_erase_c7,
5391 }
5392 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005393 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005394 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005395 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005396 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005397 },
5398
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005399 {
5400 .vendor = "PMC",
5401 .name = "Pm25LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005402 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005403 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005404 .model_id = PMC_PM25LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005405 .total_size = 512,
5406 .page_size = 256,
Stefan Tauner716e0982011-07-25 20:38:52 +00005407 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005408 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005409 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005410 .block_erasers =
5411 {
5412 {
5413 .eraseblocks = { {4 * 1024, 128} },
5414 .block_erase = spi_block_erase_d7,
5415 }, {
5416 .eraseblocks = { {64 * 1024, 8} },
5417 .block_erase = spi_block_erase_d8,
5418 }, {
5419 .eraseblocks = { {512 * 1024, 1} },
5420 .block_erase = spi_block_erase_c7,
5421 }
5422 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005423 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005424 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005425 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005426 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005427 },
5428
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005429 {
5430 .vendor = "PMC",
5431 .name = "Pm25LV080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005432 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005433 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005434 .model_id = PMC_PM25LV080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005435 .total_size = 1024,
5436 .page_size = 256,
5437 .tested = TEST_UNTESTED,
5438 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005439 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005440 .block_erasers =
5441 {
5442 {
5443 .eraseblocks = { {4 * 1024, 256} },
5444 .block_erase = spi_block_erase_d7,
5445 }, {
5446 .eraseblocks = { {4 * 1024, 256} },
5447 .block_erase = spi_block_erase_20,
5448 }, {
5449 .eraseblocks = { {64 * 1024, 16} },
5450 .block_erase = spi_block_erase_d8,
5451 }, {
5452 .eraseblocks = { {1024 * 1024, 1} },
5453 .block_erase = spi_block_erase_60,
5454 }, {
5455 .eraseblocks = { {1024 * 1024, 1} },
5456 .block_erase = spi_block_erase_c7,
5457 }
5458 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005459 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005460 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005461 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005462 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005463 },
5464
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005465 {
5466 .vendor = "PMC",
5467 .name = "Pm25LV512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005468 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005469 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005470 .model_id = PMC_PM25LV512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005471 .total_size = 64,
5472 .page_size = 256,
5473 .tested = TEST_UNTESTED,
5474 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005475 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005476 .block_erasers =
5477 {
5478 {
5479 .eraseblocks = { {4 * 1024, 16} },
5480 .block_erase = spi_block_erase_d7,
5481 }, {
5482 .eraseblocks = { {32 * 1024, 2} },
5483 .block_erase = spi_block_erase_d8,
5484 }, {
5485 .eraseblocks = { {64 * 1024, 1} },
5486 .block_erase = spi_block_erase_c7,
5487 }
5488 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005489 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005490 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005491 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005492 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005493 },
5494
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005495 {
5496 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00005497 .name = "Pm29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005498 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005499 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005500 .model_id = PMC_PM29F002T,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005501 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00005502 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005503 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +00005504 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00005505 .probe = probe_jedec,
Stefan Tauneraf2db612011-12-02 21:48:17 +00005506 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00005507 .block_erasers =
5508 {
5509 {
5510 .eraseblocks = {
5511 {128 * 1024, 1},
5512 {96 * 1024, 1},
5513 {8 * 1024, 2},
5514 {16 * 1024, 1},
5515 },
Sean Nelson35727f72010-01-28 23:55:12 +00005516 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00005517 }, {
5518 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005519 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00005520 },
5521 },
Sean Nelson35727f72010-01-28 23:55:12 +00005522 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005523 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005524 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005525 },
5526
5527 {
5528 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00005529 .name = "Pm29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005530 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005531 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005532 .model_id = PMC_PM29F002B,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005533 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00005534 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005535 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005536 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00005537 .probe = probe_jedec,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005538 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00005539 .block_erasers =
5540 {
5541 {
5542 .eraseblocks = {
5543 {16 * 1024, 1},
5544 {8 * 1024, 2},
5545 {96 * 1024, 1},
5546 {128 * 1024, 1},
5547 },
Sean Nelson35727f72010-01-28 23:55:12 +00005548 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00005549 }, {
5550 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005551 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00005552 },
5553 },
Sean Nelson35727f72010-01-28 23:55:12 +00005554 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005555 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005556 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005557 },
5558
5559 {
5560 .vendor = "PMC",
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00005561 .name = "Pm39LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005562 .bustype = BUS_PARALLEL,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00005563 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005564 .model_id = PMC_PM39F010, /* Pm39LV010 and Pm39F010 have identical IDs but different voltage */
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00005565 .total_size = 128,
5566 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00005567 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00005568 .tested = TEST_OK_PREW,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00005569 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005570 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson5643c072010-01-19 03:23:07 +00005571 .block_erasers =
5572 {
5573 {
5574 .eraseblocks = { {4 * 1024, 32} },
5575 .block_erase = erase_sector_jedec,
5576 }, {
5577 .eraseblocks = { {64 * 1024, 2} },
5578 .block_erase = erase_block_jedec,
5579 }, {
5580 .eraseblocks = { {128 * 1024, 1} },
5581 .block_erase = erase_chip_block_jedec,
5582 }
5583 },
Sean Nelson35727f72010-01-28 23:55:12 +00005584 .write = write_jedec_1,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00005585 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005586 .voltage = {2700, 3600},
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00005587 },
5588
5589 {
5590 .vendor = "PMC",
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005591 .name = "Pm39LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005592 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005593 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005594 .model_id = PMC_PM39LV020,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005595 .total_size = 256,
5596 .page_size = 4096,
5597 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
5598 .tested = TEST_UNTESTED,
5599 .probe = probe_jedec,
5600 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5601 .block_erasers =
5602 {
5603 {
5604 .eraseblocks = { {4 * 1024, 64} },
5605 .block_erase = erase_sector_jedec,
5606 }, {
5607 .eraseblocks = { {64 * 1024, 4} },
5608 .block_erase = erase_block_jedec,
5609 }, {
5610 .eraseblocks = { {256 * 1024, 1} },
5611 .block_erase = erase_chip_block_jedec,
5612 }
5613 },
5614 .write = write_jedec_1,
5615 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005616 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005617 },
5618
5619 {
5620 .vendor = "PMC",
5621 .name = "Pm39LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005622 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005623 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005624 .model_id = PMC_PM39LV040,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005625 .total_size = 512,
5626 .page_size = 4096,
5627 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00005628 .tested = TEST_OK_PR,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005629 .probe = probe_jedec,
5630 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5631 .block_erasers =
5632 {
5633 {
5634 .eraseblocks = { {4 * 1024, 128} },
5635 .block_erase = erase_sector_jedec,
5636 }, {
5637 .eraseblocks = { {64 * 1024, 8} },
5638 .block_erase = erase_block_jedec,
5639 }, {
5640 .eraseblocks = { {512 * 1024, 1} },
5641 .block_erase = erase_chip_block_jedec,
5642 }
5643 },
5644 .write = write_jedec_1,
5645 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005646 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005647 },
5648
5649 {
5650 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005651 .name = "Pm49FL002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005652 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005653 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005654 .model_id = PMC_PM49FL002,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005655 .total_size = 256,
5656 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005657 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunerd06d9412011-06-12 19:47:55 +00005658 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00005659 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005660 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00005661 .block_erasers =
5662 {
5663 {
5664 .eraseblocks = { {4 * 1024, 64} },
5665 .block_erase = erase_sector_jedec,
5666 }, {
5667 .eraseblocks = { {16 * 1024, 16} },
5668 .block_erase = erase_block_jedec,
5669 }, {
5670 .eraseblocks = { {256 * 1024, 1} },
5671 .block_erase = erase_chip_block_jedec,
5672 }
5673 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00005674 .unlock = unlock_49fl00x,
Sean Nelson36172342010-02-27 18:01:15 +00005675 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005676 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005677 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005678 },
5679
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005680 {
5681 .vendor = "PMC",
5682 .name = "Pm49FL004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005683 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005684 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005685 .model_id = PMC_PM49FL004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005686 .total_size = 512,
5687 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005688 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00005689 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00005690 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005691 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00005692 .block_erasers =
5693 {
5694 {
5695 .eraseblocks = { {4 * 1024, 128} },
5696 .block_erase = erase_sector_jedec,
5697 }, {
5698 .eraseblocks = { {64 * 1024, 8} },
5699 .block_erase = erase_block_jedec,
5700 }, {
5701 .eraseblocks = { {512 * 1024, 1} },
5702 .block_erase = erase_chip_block_jedec,
5703 }
5704 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00005705 .unlock = unlock_49fl00x,
Sean Nelson36172342010-02-27 18:01:15 +00005706 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005707 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005708 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005709 },
5710
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005711 {
Sean Nelsond70b09c2009-11-24 02:11:08 +00005712 .vendor = "Sanyo",
5713 .name = "LF25FW203A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005714 .bustype = BUS_SPI,
Sean Nelsond70b09c2009-11-24 02:11:08 +00005715 .manufacture_id = SANYO_ID,
5716 .model_id = SANYO_LE25FW203A,
5717 .total_size = 2048,
5718 .page_size = 256,
5719 .tested = TEST_UNTESTED,
5720 .probe = probe_spi_rdid,
5721 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005722 .block_erasers =
5723 {
5724 {
5725 .eraseblocks = { {64 * 1024, 32} },
5726 .block_erase = spi_block_erase_d8,
5727 }, {
5728 .eraseblocks = { {2 * 1024 * 1024, 1} },
5729 .block_erase = spi_block_erase_c7,
5730 }
5731 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005732 .unlock = spi_disable_blockprotect,
Sean Nelsond70b09c2009-11-24 02:11:08 +00005733 .write = spi_chip_write_256,
5734 .read = spi_chip_read,
5735 },
5736
5737 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005738 .vendor = "Sharp",
Mattias Mattssonfca3b012011-08-25 22:44:11 +00005739 .name = "LH28F008BJT-BTLZ1",
5740 .bustype = BUS_PARALLEL,
5741 .manufacture_id = SHARP_ID,
5742 .model_id = SHARP_LH28F008BJxxPB,
5743 .total_size = 1024,
5744 .page_size = 64 * 1024,
5745 .tested = TEST_OK_PREW,
5746 .probe = probe_82802ab,
5747 .probe_timing = TIMING_ZERO,
5748 .block_erasers =
5749 {
5750 {
5751 .eraseblocks = {
5752 {8 * 1024, 8},
5753 {64 * 1024, 15}
5754 },
5755 .block_erase = erase_block_82802ab,
5756 }, {
5757 .eraseblocks = { {1024 * 1024, 1} },
5758 .block_erase = erase_sector_49lfxxxc,
5759 }
5760 },
5761 .unlock = unlock_lh28f008bjt,
5762 .write = write_82802ab,
5763 .read = read_memmapped,
5764 .voltage = {2700, 3600},
5765 },
5766
5767 {
5768 .vendor = "Sharp",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005769 .name = "LHF00L04",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005770 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005771 .manufacture_id = SHARP_ID,
5772 .model_id = SHARP_LHF00L04,
5773 .total_size = 1024,
5774 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005775 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005776 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005777 .probe = probe_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00005778 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00005779 .block_erasers =
5780 {
5781 {
5782 .eraseblocks = {
5783 {64 * 1024, 15},
5784 {8 * 1024, 8}
5785 },
Sean Nelson28accc22010-03-19 18:47:06 +00005786 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00005787 }, {
5788 .eraseblocks = {
5789 {1024 * 1024, 1}
5790 },
Sean Nelson51c83fb2010-01-20 20:55:53 +00005791 .block_erase = NULL, /* 30 D0, only in A/A mux mode */
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00005792 },
5793 },
Sean Nelson28accc22010-03-19 18:47:06 +00005794 .unlock = unlock_82802ab,
5795 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005796 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005797 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005798 },
5799
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005800 {
5801 .vendor = "Spansion",
Rudy Hostf4e57772010-11-29 00:37:49 +00005802 .name = "S25FL004A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005803 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00005804 .manufacture_id = SPANSION_ID,
5805 .model_id = SPANSION_S25FL004A,
5806 .total_size = 512,
5807 .page_size = 256,
5808 .tested = TEST_UNTESTED,
5809 .probe = probe_spi_rdid,
5810 .probe_timing = TIMING_ZERO,
5811 .block_erasers =
5812 {
5813 {
5814 .eraseblocks = { {64 * 1024, 8} },
5815 .block_erase = spi_block_erase_d8,
5816 }, {
5817 .eraseblocks = { {512 * 1024, 1} },
5818 .block_erase = spi_block_erase_c7,
5819 }
5820 },
5821 .unlock = spi_disable_blockprotect,
5822 .write = spi_chip_write_256,
5823 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005824 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00005825 },
5826
5827 {
5828 .vendor = "Spansion",
Michael Karcher23ff4602010-01-12 23:29:30 +00005829 .name = "S25FL008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005830 .bustype = BUS_SPI,
Michael Karcher23ff4602010-01-12 23:29:30 +00005831 .manufacture_id = SPANSION_ID,
5832 .model_id = SPANSION_S25FL008A,
5833 .total_size = 1024,
5834 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005835 .tested = TEST_OK_PRE,
Michael Karcher23ff4602010-01-12 23:29:30 +00005836 .probe = probe_spi_rdid,
5837 .probe_timing = TIMING_ZERO,
Michael Karcher23ff4602010-01-12 23:29:30 +00005838 .block_erasers =
5839 {
5840 {
5841 .eraseblocks = { {64 * 1024, 16} },
5842 .block_erase = spi_block_erase_d8,
5843 }, {
5844 .eraseblocks = { {1024 * 1024, 1} },
5845 .block_erase = spi_block_erase_c7,
5846 }
5847 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005848 .unlock = spi_disable_blockprotect,
Michael Karcher23ff4602010-01-12 23:29:30 +00005849 .write = spi_chip_write_256,
5850 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005851 .voltage = {2700, 3600},
Michael Karcher23ff4602010-01-12 23:29:30 +00005852 },
5853
5854 {
5855 .vendor = "Spansion",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005856 .name = "S25FL016A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005857 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005858 .manufacture_id = SPANSION_ID,
5859 .model_id = SPANSION_S25FL016A,
5860 .total_size = 2048,
5861 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005862 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005863 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005864 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005865 .block_erasers =
5866 {
5867 {
5868 .eraseblocks = { {64 * 1024, 32} },
5869 .block_erase = spi_block_erase_d8,
5870 }, {
5871 .eraseblocks = { {2 * 1024 * 1024, 1} },
5872 .block_erase = spi_block_erase_c7,
5873 }
5874 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005875 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005876 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005877 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005878 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005879 },
5880
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005881 {
Rudy Hostf4e57772010-11-29 00:37:49 +00005882 .vendor = "Spansion",
5883 .name = "S25FL032A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005884 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00005885 .manufacture_id = SPANSION_ID,
5886 .model_id = SPANSION_S25FL032A,
5887 .total_size = 4096,
5888 .page_size = 256,
5889 .tested = TEST_UNTESTED,
5890 .probe = probe_spi_rdid,
5891 .probe_timing = TIMING_ZERO,
5892 .block_erasers =
5893 {
5894 {
5895 .eraseblocks = { {64 * 1024, 64} },
5896 .block_erase = spi_block_erase_d8,
5897 }, {
5898 .eraseblocks = { {4 * 1024 * 1024, 1} },
5899 .block_erase = spi_block_erase_c7,
5900 }
5901 },
5902 .unlock = spi_disable_blockprotect,
5903 .write = spi_chip_write_256,
5904 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005905 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00005906 },
5907
5908 {
5909 .vendor = "Spansion",
5910 .name = "S25FL064A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005911 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00005912 .manufacture_id = SPANSION_ID,
5913 .model_id = SPANSION_S25FL064A,
5914 .total_size = 8192,
5915 .page_size = 256,
5916 .tested = TEST_OK_PREW,
5917 .probe = probe_spi_rdid,
5918 .probe_timing = TIMING_ZERO,
5919 .block_erasers =
5920 {
5921 {
5922 .eraseblocks = { {64 * 1024, 128} },
5923 .block_erase = spi_block_erase_d8,
5924 }, {
5925 .eraseblocks = { {8 * 1024 * 1024, 1} },
5926 .block_erase = spi_block_erase_c7,
5927 }
5928 },
5929 .unlock = spi_disable_blockprotect,
5930 .write = spi_chip_write_256,
5931 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005932 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00005933 },
5934
5935 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005936 .vendor = "SST",
Zeus Castro33670ba2011-08-17 09:50:11 +00005937 .name = "SST25LF040A",
5938 .bustype = BUS_SPI,
5939 .manufacture_id = SST_ID,
5940 .model_id = SST_SST25VF040_REMS,
5941 .total_size = 512,
5942 .page_size = 256,
Uwe Hermann4335ec82011-09-07 20:20:25 +00005943 .tested = TEST_OK_PREW,
Zeus Castro33670ba2011-08-17 09:50:11 +00005944 .probe = probe_spi_res2,
5945 .probe_timing = TIMING_ZERO,
5946 .block_erasers =
5947 {
5948 {
5949 .eraseblocks = { {4 * 1024, 128} },
5950 .block_erase = spi_block_erase_20,
5951 }, {
5952 .eraseblocks = { {32 * 1024, 16} },
5953 .block_erase = spi_block_erase_52,
5954 }, {
5955 .eraseblocks = { {512 * 1024, 1} },
5956 .block_erase = spi_block_erase_60,
5957 },
5958 },
5959 .unlock = spi_disable_blockprotect,
5960 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
5961 .read = spi_chip_read,
5962 .voltage = {3000, 3600},
5963 },
5964
5965 {
5966 .vendor = "SST",
5967 .name = "SST25LF080A",
5968 .bustype = BUS_SPI,
5969 .manufacture_id = SST_ID,
5970 .model_id = SST_SST25VF080_REMS,
5971 .total_size = 1024,
5972 .page_size = 256,
5973 .tested = TEST_UNTESTED,
5974 .probe = probe_spi_res2,
5975 .probe_timing = TIMING_ZERO,
5976 .block_erasers =
5977 {
5978 {
5979 .eraseblocks = { {4 * 1024, 256} },
5980 .block_erase = spi_block_erase_20,
5981 }, {
5982 .eraseblocks = { {32 * 1024, 32} },
5983 .block_erase = spi_block_erase_52,
5984 }, {
5985 .eraseblocks = { {1024 * 1024, 1} },
5986 .block_erase = spi_block_erase_60,
5987 },
5988 },
5989 .unlock = spi_disable_blockprotect,
5990 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
5991 .read = spi_chip_read,
5992 .voltage = {3000, 3600},
5993 },
5994
5995 {
5996 .vendor = "SST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00005997 .name = "SST25VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005998 .bustype = BUS_SPI,
Mark Marshall90021f22010-12-03 14:48:11 +00005999 .manufacture_id = SST_ID,
6000 .model_id = SST_SST25VF010_REMS,
6001 .total_size = 128,
6002 .page_size = 256,
6003 .tested = TEST_OK_PREW,
6004 .probe = probe_spi_rems,
6005 .probe_timing = TIMING_ZERO,
6006 .block_erasers =
6007 {
6008 {
6009 .eraseblocks = { {4 * 1024, 32} },
6010 .block_erase = spi_block_erase_20,
6011 }, {
6012 .eraseblocks = { {32 * 1024, 4} },
6013 .block_erase = spi_block_erase_52,
6014 }, {
6015 .eraseblocks = { {128 * 1024, 1} },
6016 .block_erase = spi_block_erase_60,
6017 },
6018 },
6019 .unlock = spi_disable_blockprotect,
6020 .write = spi_chip_write_1,
6021 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006022 .voltage = {2700, 3600},
Mark Marshall90021f22010-12-03 14:48:11 +00006023 },
6024
6025 {
6026 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006027 .name = "SST25VF016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006028 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006029 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006030 .model_id = SST_SST25VF016B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006031 .total_size = 2048,
6032 .page_size = 256,
Mark Marshall90021f22010-12-03 14:48:11 +00006033 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006034 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006035 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006036 .block_erasers =
6037 {
6038 {
6039 .eraseblocks = { {4 * 1024, 512} },
6040 .block_erase = spi_block_erase_20,
6041 }, {
6042 .eraseblocks = { {32 * 1024, 64} },
6043 .block_erase = spi_block_erase_52,
6044 }, {
6045 .eraseblocks = { {64 * 1024, 32} },
6046 .block_erase = spi_block_erase_d8,
6047 }, {
6048 .eraseblocks = { {2 * 1024 * 1024, 1} },
6049 .block_erase = spi_block_erase_60,
6050 }, {
6051 .eraseblocks = { {2 * 1024 * 1024, 1} },
6052 .block_erase = spi_block_erase_c7,
6053 },
6054 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006055 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00006056 .write = spi_aai_write,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006057 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006058 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006059 },
6060
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006061 {
6062 .vendor = "SST",
6063 .name = "SST25VF032B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006064 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006065 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006066 .model_id = SST_SST25VF032B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006067 .total_size = 4096,
6068 .page_size = 256,
Stefan Taunerfcf6a8c2011-05-18 01:32:00 +00006069 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006070 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006071 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006072 .block_erasers =
6073 {
6074 {
6075 .eraseblocks = { {4 * 1024, 1024} },
6076 .block_erase = spi_block_erase_20,
6077 }, {
6078 .eraseblocks = { {32 * 1024, 128} },
6079 .block_erase = spi_block_erase_52,
6080 }, {
6081 .eraseblocks = { {64 * 1024, 64} },
6082 .block_erase = spi_block_erase_d8,
6083 }, {
6084 .eraseblocks = { {4 * 1024 * 1024, 1} },
6085 .block_erase = spi_block_erase_60,
6086 }, {
6087 .eraseblocks = { {4 * 1024 * 1024, 1} },
6088 .block_erase = spi_block_erase_c7,
6089 },
6090 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006091 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +00006092 .write = spi_aai_write,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006093 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006094 .voltage = {2700, 3600},
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006095 },
6096
6097 {
6098 .vendor = "SST",
Ed Swierk86f4e6d2010-07-21 15:02:22 +00006099 .name = "SST25VF064C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006100 .bustype = BUS_SPI,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00006101 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006102 .model_id = SST_SST25VF064C,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00006103 .total_size = 8192,
6104 .page_size = 256,
Stefan Tauner8179be52011-06-04 13:13:34 +00006105 .tested = TEST_OK_PREW,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00006106 .probe = probe_spi_rdid,
6107 .probe_timing = TIMING_ZERO,
6108 .block_erasers =
6109 {
6110 {
6111 .eraseblocks = { {4 * 1024, 2048} },
6112 .block_erase = spi_block_erase_20,
6113 }, {
6114 .eraseblocks = { {32 * 1024, 256} },
6115 .block_erase = spi_block_erase_52,
6116 }, {
6117 .eraseblocks = { {64 * 1024, 128} },
6118 .block_erase = spi_block_erase_d8,
6119 }, {
6120 .eraseblocks = { {8 * 1024 * 1024, 1} },
6121 .block_erase = spi_block_erase_60,
6122 }, {
6123 .eraseblocks = { {8 * 1024 * 1024, 1} },
6124 .block_erase = spi_block_erase_c7,
6125 },
6126 },
6127 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +00006128 .write = spi_chip_write_256,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00006129 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006130 .voltage = {2700, 3600},
Ed Swierk86f4e6d2010-07-21 15:02:22 +00006131 },
6132
6133 {
6134 .vendor = "SST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006135 .name = "SST25VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006136 .bustype = BUS_SPI,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006137 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006138 .model_id = SST_SST25VF040_REMS,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006139 .total_size = 512,
6140 .page_size = 256,
6141 .tested = TEST_OK_PR,
6142 .probe = probe_spi_rems,
6143 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006144 .block_erasers =
6145 {
6146 {
6147 .eraseblocks = { {4 * 1024, 128} },
6148 .block_erase = spi_block_erase_20,
6149 }, {
6150 .eraseblocks = { {32 * 1024, 16} },
6151 .block_erase = spi_block_erase_52,
6152 }, {
6153 .eraseblocks = { {512 * 1024, 1} },
6154 .block_erase = spi_block_erase_60,
6155 },
6156 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006157 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00006158 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006159 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006160 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006161 },
6162
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006163 {
6164 .vendor = "SST",
6165 .name = "SST25VF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006166 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006167 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006168 .model_id = SST_SST25VF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006169 .total_size = 512,
6170 .page_size = 256,
6171 .tested = TEST_UNTESTED,
6172 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006173 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006174 .block_erasers =
6175 {
6176 {
6177 .eraseblocks = { {4 * 1024, 128} },
6178 .block_erase = spi_block_erase_20,
6179 }, {
6180 .eraseblocks = { {32 * 1024, 16} },
6181 .block_erase = spi_block_erase_52,
6182 }, {
6183 .eraseblocks = { {64 * 1024, 8} },
6184 .block_erase = spi_block_erase_d8,
6185 }, {
6186 .eraseblocks = { {512 * 1024, 1} },
6187 .block_erase = spi_block_erase_60,
6188 }, {
6189 .eraseblocks = { {512 * 1024, 1} },
6190 .block_erase = spi_block_erase_c7,
6191 },
6192 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006193 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00006194 .write = spi_aai_write,
Zheng Bao0677dff2009-02-25 08:07:33 +00006195 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006196 .voltage = {2700, 3600},
Zheng Bao0677dff2009-02-25 08:07:33 +00006197 },
6198
6199 {
6200 .vendor = "SST",
Peter Stugefd9217d2009-01-26 03:37:40 +00006201 .name = "SST25VF040B.REMS",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006202 .bustype = BUS_SPI,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006203 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006204 .model_id = SST_SST25VF040B_REMS,
Peter Stugefd9217d2009-01-26 03:37:40 +00006205 .total_size = 512,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006206 .page_size = 256,
Peter Stugefd9217d2009-01-26 03:37:40 +00006207 .tested = TEST_OK_PR,
6208 .probe = probe_spi_rems,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006209 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006210 .block_erasers =
6211 {
6212 {
6213 .eraseblocks = { {4 * 1024, 128} },
6214 .block_erase = spi_block_erase_20,
6215 }, {
6216 .eraseblocks = { {32 * 1024, 16} },
6217 .block_erase = spi_block_erase_52,
6218 }, {
6219 .eraseblocks = { {64 * 1024, 8} },
6220 .block_erase = spi_block_erase_d8,
6221 }, {
6222 .eraseblocks = { {512 * 1024, 1} },
6223 .block_erase = spi_block_erase_60,
6224 }, {
6225 .eraseblocks = { {512 * 1024, 1} },
6226 .block_erase = spi_block_erase_c7,
6227 },
6228 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006229 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00006230 .write = spi_aai_write,
Peter Stugefd9217d2009-01-26 03:37:40 +00006231 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006232 .voltage = {2700, 3600},
Peter Stugefd9217d2009-01-26 03:37:40 +00006233 },
6234
6235 {
6236 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006237 .name = "SST25VF080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006238 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006239 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006240 .model_id = SST_SST25VF080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006241 .total_size = 1024,
6242 .page_size = 256,
John Schmergec965c2d2011-05-18 11:28:47 +00006243 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006244 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006245 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006246 .block_erasers =
6247 {
6248 {
6249 .eraseblocks = { {4 * 1024, 256} },
6250 .block_erase = spi_block_erase_20,
6251 }, {
6252 .eraseblocks = { {32 * 1024, 32} },
6253 .block_erase = spi_block_erase_52,
6254 }, {
6255 .eraseblocks = { {64 * 1024, 16} },
6256 .block_erase = spi_block_erase_d8,
6257 }, {
6258 .eraseblocks = { {1024 * 1024, 1} },
6259 .block_erase = spi_block_erase_60,
6260 }, {
6261 .eraseblocks = { {1024 * 1024, 1} },
6262 .block_erase = spi_block_erase_c7,
6263 },
6264 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006265 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00006266 .write = spi_aai_write,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006267 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006268 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006269 },
6270
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006271 {
6272 .vendor = "SST",
6273 .name = "SST28SF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006274 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006275 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006276 .model_id = SST_SST28SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006277 .total_size = 512,
6278 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00006279 .feature_bits = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006280 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006281 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00006282 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006283 .block_erasers =
6284 {
6285 {
6286 .eraseblocks = { {128, 4096} },
6287 .block_erase = erase_sector_28sf040,
6288 }, {
6289 .eraseblocks = { {512 * 1024, 1} },
6290 .block_erase = erase_chip_28sf040,
6291 }
6292 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00006293 .unlock = unprotect_28sf040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006294 .write = write_28sf040,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006295 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006296 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006297 },
6298
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006299 {
6300 .vendor = "SST",
6301 .name = "SST29EE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006302 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006303 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006304 .model_id = SST_SST29EE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006305 .total_size = 128,
6306 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00006307 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006308 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006309 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006310 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006311 .block_erasers =
6312 {
6313 {
6314 .eraseblocks = { {128 * 1024, 1} },
6315 .block_erase = erase_chip_block_jedec,
6316 }
6317 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006318 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006319 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006320 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006321 },
6322
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006323 {
6324 .vendor = "SST",
6325 .name = "SST29LE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006326 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006327 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006328 .model_id = SST_SST29LE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006329 .total_size = 128,
6330 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00006331 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006332 .tested = TEST_UNTESTED,
6333 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006334 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006335 .block_erasers =
6336 {
6337 {
6338 .eraseblocks = { {128 * 1024, 1} },
6339 .block_erase = erase_chip_block_jedec,
6340 }
6341 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006342 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006343 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006344 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006345 },
6346
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006347 {
6348 .vendor = "SST",
6349 .name = "SST29EE020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006350 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006351 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006352 .model_id = SST_SST29EE020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006353 .total_size = 256,
6354 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00006355 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006356 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006357 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006358 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006359 .block_erasers =
6360 {
6361 {
6362 .eraseblocks = { {256 * 1024, 1} },
6363 .block_erase = erase_chip_block_jedec,
6364 }
6365 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006366 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006367 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006368 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006369 },
6370
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006371 {
6372 .vendor = "SST",
6373 .name = "SST29LE020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006374 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006375 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006376 .model_id = SST_SST29LE020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006377 .total_size = 256,
6378 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00006379 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006380 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006381 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006382 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006383 .block_erasers =
6384 {
6385 {
6386 .eraseblocks = { {256 * 1024, 1} },
6387 .block_erase = erase_chip_block_jedec,
6388 }
6389 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006390 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006391 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006392 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006393 },
6394
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006395 {
6396 .vendor = "SST",
Uwe Hermann48da3f92010-01-23 15:15:19 +00006397 .name = "SST39SF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006398 .bustype = BUS_PARALLEL,
Uwe Hermann48da3f92010-01-23 15:15:19 +00006399 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006400 .model_id = SST_SST39SF512,
Uwe Hermann48da3f92010-01-23 15:15:19 +00006401 .total_size = 64,
6402 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006403 .feature_bits = FEATURE_EITHER_RESET,
Idwer Vollering7913fb42011-03-07 15:32:58 +00006404 .tested = TEST_OK_PREW,
Uwe Hermann48da3f92010-01-23 15:15:19 +00006405 .probe = probe_jedec,
6406 .probe_timing = 1, /* 150 ns */
Uwe Hermann48da3f92010-01-23 15:15:19 +00006407 .block_erasers =
6408 {
6409 {
6410 .eraseblocks = { {4 * 1024, 16} },
6411 .block_erase = erase_sector_jedec,
6412 }, {
6413 .eraseblocks = { {64 * 1024, 1} },
6414 .block_erase = erase_chip_block_jedec,
6415 }
6416 },
Sean Nelson35727f72010-01-28 23:55:12 +00006417 .write = write_jedec_1,
Uwe Hermann48da3f92010-01-23 15:15:19 +00006418 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006419 .voltage = {4500, 5500},
Uwe Hermann48da3f92010-01-23 15:15:19 +00006420 },
6421
6422 {
6423 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006424 .name = "SST39SF010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006425 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006426 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006427 .model_id = SST_SST39SF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006428 .total_size = 128,
6429 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006430 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00006431 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006432 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006433 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006434 .block_erasers =
6435 {
6436 {
6437 .eraseblocks = { {4 * 1024, 32} },
6438 .block_erase = erase_sector_jedec,
6439 }, {
6440 .eraseblocks = { {128 * 1024, 1} },
6441 .block_erase = erase_chip_block_jedec,
6442 }
6443 },
Sean Nelson35727f72010-01-28 23:55:12 +00006444 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006445 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006446 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006447 },
6448
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006449 {
6450 .vendor = "SST",
6451 .name = "SST39SF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006452 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006453 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006454 .model_id = SST_SST39SF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006455 .total_size = 256,
6456 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006457 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann19f46f22011-06-18 22:56:14 +00006458 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006459 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006460 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006461 .block_erasers =
6462 {
6463 {
6464 .eraseblocks = { {4 * 1024, 64} },
6465 .block_erase = erase_sector_jedec,
6466 }, {
6467 .eraseblocks = { {256 * 1024, 1} },
6468 .block_erase = erase_chip_block_jedec,
6469 }
6470 },
Sean Nelson35727f72010-01-28 23:55:12 +00006471 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006472 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006473 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006474 },
6475
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006476 {
6477 .vendor = "SST",
6478 .name = "SST39SF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006479 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006480 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006481 .model_id = SST_SST39SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006482 .total_size = 512,
6483 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006484 .feature_bits = FEATURE_EITHER_RESET,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006485 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006486 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006487 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006488 .block_erasers =
6489 {
6490 {
6491 .eraseblocks = { {4 * 1024, 128} },
6492 .block_erase = erase_sector_jedec,
6493 }, {
6494 .eraseblocks = { {512 * 1024, 1} },
6495 .block_erase = erase_chip_block_jedec,
6496 }
6497 },
Sean Nelson35727f72010-01-28 23:55:12 +00006498 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006499 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006500 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006501 },
6502
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006503 {
6504 .vendor = "SST",
6505 .name = "SST39VF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006506 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006507 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006508 .model_id = SST_SST39VF512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006509 .total_size = 64,
6510 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006511 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006512 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006513 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006514 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006515 .block_erasers =
6516 {
6517 {
6518 .eraseblocks = { {4 * 1024, 16} },
6519 .block_erase = erase_sector_jedec,
6520 }, {
6521 .eraseblocks = { {64 * 1024, 1} },
6522 .block_erase = erase_chip_block_jedec,
6523 }
6524 },
Sean Nelson35727f72010-01-28 23:55:12 +00006525 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006526 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006527 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006528 },
6529
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006530 {
6531 .vendor = "SST",
6532 .name = "SST39VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006533 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006534 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006535 .model_id = SST_SST39VF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006536 .total_size = 128,
6537 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006538 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006539 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006540 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006541 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006542 .block_erasers =
6543 {
6544 {
6545 .eraseblocks = { {4 * 1024, 32} },
6546 .block_erase = erase_sector_jedec,
6547 }, {
6548 .eraseblocks = { {128 * 1024, 1} },
6549 .block_erase = erase_chip_block_jedec,
6550 }
6551 },
Sean Nelson35727f72010-01-28 23:55:12 +00006552 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006553 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006554 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006555 },
6556
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006557 {
6558 .vendor = "SST",
6559 .name = "SST39VF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006560 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006561 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006562 .model_id = SST_SST39VF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006563 .total_size = 256,
6564 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006565 .feature_bits = FEATURE_EITHER_RESET,
6566 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006567 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006568 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006569 .block_erasers =
6570 {
6571 {
6572 .eraseblocks = { {4 * 1024, 64} },
6573 .block_erase = erase_sector_jedec,
6574 }, {
6575 .eraseblocks = { {256 * 1024, 1} },
6576 .block_erase = erase_chip_block_jedec,
6577 }
6578 },
Sean Nelson35727f72010-01-28 23:55:12 +00006579 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006580 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006581 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006582 },
6583
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006584 {
6585 .vendor = "SST",
6586 .name = "SST39VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006587 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006588 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006589 .model_id = SST_SST39VF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006590 .total_size = 512,
6591 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006592 .feature_bits = FEATURE_EITHER_RESET,
6593 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006594 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006595 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006596 .block_erasers =
6597 {
6598 {
6599 .eraseblocks = { {4 * 1024, 128} },
6600 .block_erase = erase_sector_jedec,
6601 }, {
6602 .eraseblocks = { {512 * 1024, 1} },
6603 .block_erase = erase_chip_block_jedec,
6604 }
6605 },
Sean Nelson35727f72010-01-28 23:55:12 +00006606 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006607 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006608 .voltage = {2700, 3600},
Carl-Daniel Hailfinger90eff152008-12-08 23:51:45 +00006609 },
FENG yu ningff692fb2008-12-08 18:15:10 +00006610
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006611 {
6612 .vendor = "SST",
Peter Stuge8440cc02009-01-25 23:55:12 +00006613 .name = "SST39VF080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006614 .bustype = BUS_PARALLEL,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006615 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006616 .model_id = SST_SST39VF080,
Peter Stuge8440cc02009-01-25 23:55:12 +00006617 .total_size = 1024,
6618 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006619 .feature_bits = FEATURE_EITHER_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +00006620 .tested = TEST_UNTESTED,
6621 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006622 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006623 .block_erasers =
6624 {
6625 {
6626 .eraseblocks = { {4 * 1024, 256} },
6627 .block_erase = erase_sector_jedec,
6628 }, {
6629 .eraseblocks = { {64 * 1024, 16} },
6630 .block_erase = erase_block_jedec,
6631 }, {
6632 .eraseblocks = { {1024 * 1024, 1} },
6633 .block_erase = erase_chip_block_jedec,
6634 }
6635 },
Sean Nelson35727f72010-01-28 23:55:12 +00006636 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006637 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006638 .voltage = {2700, 3600},
Peter Stuge8440cc02009-01-25 23:55:12 +00006639 },
6640
6641 {
6642 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006643 .name = "SST49LF002A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006644 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006645 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006646 .model_id = SST_SST49LF002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006647 .total_size = 256,
6648 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006649 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00006650 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006651 .probe = probe_jedec,
6652 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006653 .block_erasers =
6654 {
6655 {
6656 .eraseblocks = { {4 * 1024, 64} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006657 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006658 }, {
6659 .eraseblocks = { {16 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006660 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006661 }, {
6662 .eraseblocks = { {256 * 1024, 1} },
6663 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
6664 }
6665 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006666 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006667 .unlock = unlock_sst_fwhub,
6668 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006669 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006670 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006671 },
6672
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006673 {
6674 .vendor = "SST",
6675 .name = "SST49LF003A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006676 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006677 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006678 .model_id = SST_SST49LF003A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006679 .total_size = 384,
6680 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006681 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Peter Lemenkov45835c42009-09-25 01:09:18 +00006682 .tested = TEST_OK_PR,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006683 .probe = probe_jedec,
6684 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006685 .block_erasers =
6686 {
6687 {
6688 .eraseblocks = { {4 * 1024, 96} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006689 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006690 }, {
6691 .eraseblocks = { {64 * 1024, 6} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006692 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006693 }, {
6694 .eraseblocks = { {384 * 1024, 1} },
6695 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
6696 }
6697 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006698 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006699 .unlock = unlock_sst_fwhub,
6700 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006701 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006702 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006703 },
6704
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006705 {
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00006706 /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB)
6707 * and is only honored for 64k block erase, but not 4k sector erase.
6708 */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006709 .vendor = "SST",
6710 .name = "SST49LF004A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006711 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006712 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006713 .model_id = SST_SST49LF004A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006714 .total_size = 512,
6715 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006716 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00006717 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006718 .probe = probe_jedec,
6719 .probe_timing = 1, /* 150 ns */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00006720 .block_erasers =
6721 {
6722 {
6723 .eraseblocks = { {4 * 1024, 128} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006724 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00006725 }, {
6726 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006727 .block_erase = erase_block_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00006728 }, {
6729 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson51c83fb2010-01-20 20:55:53 +00006730 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00006731 },
6732 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006733 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006734 .unlock = unlock_sst_fwhub,
6735 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006736 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006737 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006738 },
6739
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006740 {
6741 .vendor = "SST",
6742 .name = "SST49LF004C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006743 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006744 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006745 .model_id = SST_SST49LF004C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006746 .total_size = 512,
6747 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006748 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006749 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006750 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00006751 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006752 .block_erasers =
6753 {
6754 {
6755 .eraseblocks = { {4 * 1024, 128} },
6756 .block_erase = erase_sector_49lfxxxc,
6757 }, {
6758 .eraseblocks = {
6759 {64 * 1024, 7},
6760 {32 * 1024, 1},
6761 {8 * 1024, 2},
6762 {16 * 1024, 1},
6763 },
Sean Nelson69e58112010-03-23 17:10:28 +00006764 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006765 }
6766 },
Sean Nelson69e58112010-03-23 17:10:28 +00006767 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00006768 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006769 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006770 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006771 },
6772
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006773 {
6774 .vendor = "SST",
6775 .name = "SST49LF008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006776 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006777 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006778 .model_id = SST_SST49LF008A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006779 .total_size = 1024,
6780 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006781 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00006782 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006783 .probe = probe_jedec,
6784 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006785 .block_erasers =
6786 {
6787 {
6788 .eraseblocks = { {4 * 1024, 256} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006789 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006790 }, {
6791 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006792 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006793 }, {
6794 .eraseblocks = { {1024 * 1024, 1} },
6795 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
6796 }
6797 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006798 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006799 .unlock = unlock_sst_fwhub,
6800 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006801 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006802 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006803 },
6804
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006805 {
6806 .vendor = "SST",
6807 .name = "SST49LF008C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006808 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006809 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006810 .model_id = SST_SST49LF008C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006811 .total_size = 1024,
6812 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006813 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006814 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006815 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00006816 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006817 .block_erasers =
6818 {
6819 {
6820 .eraseblocks = { {4 * 1024, 256} },
6821 .block_erase = erase_sector_49lfxxxc,
6822 }, {
6823 .eraseblocks = {
6824 {64 * 1024, 15},
6825 {32 * 1024, 1},
6826 {8 * 1024, 2},
6827 {16 * 1024, 1},
6828 },
Sean Nelson69e58112010-03-23 17:10:28 +00006829 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006830 }
6831 },
Sean Nelson69e58112010-03-23 17:10:28 +00006832 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00006833 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006834 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006835 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006836 },
6837
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006838 {
6839 .vendor = "SST",
6840 .name = "SST49LF016C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006841 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006842 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006843 .model_id = SST_SST49LF016C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006844 .total_size = 2048,
6845 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006846 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006847 .tested = TEST_OK_PR,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006848 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00006849 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006850 .block_erasers =
6851 {
6852 {
6853 .eraseblocks = { {4 * 1024, 512} },
6854 .block_erase = erase_sector_49lfxxxc,
6855 }, {
6856 .eraseblocks = {
6857 {64 * 1024, 31},
6858 {32 * 1024, 1},
6859 {8 * 1024, 2},
6860 {16 * 1024, 1},
6861 },
Sean Nelson69e58112010-03-23 17:10:28 +00006862 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006863 }
6864 },
Sean Nelson69e58112010-03-23 17:10:28 +00006865 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00006866 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006867 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006868 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006869 },
6870
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006871 {
6872 .vendor = "SST",
6873 .name = "SST49LF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006874 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006875 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006876 .model_id = SST_SST49LF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006877 .total_size = 256,
6878 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006879 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +00006880 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006881 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006882 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006883 .block_erasers =
6884 {
6885 {
6886 .eraseblocks = { {4 * 1024, 64} },
6887 .block_erase = erase_sector_jedec,
6888 }, {
6889 .eraseblocks = { {16 * 1024, 16} },
6890 .block_erase = erase_block_jedec,
6891 }, {
6892 .eraseblocks = { {256 * 1024, 1} },
6893 .block_erase = NULL,
6894 }
6895 },
Sean Nelson35727f72010-01-28 23:55:12 +00006896 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006897 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006898 .voltage = {3000, 3600},
Sven Schnellec208dfb2009-01-07 12:35:09 +00006899 },
6900
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006901 {
6902 .vendor = "SST",
6903 .name = "SST49LF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006904 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006905 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006906 .model_id = SST_SST49LF020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006907 .total_size = 256,
Carl-Daniel Hailfingerda654322009-07-23 01:44:38 +00006908 .page_size = 4 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006909 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006910 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006911 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006912 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006913 .block_erasers =
6914 {
6915 {
6916 .eraseblocks = { {4 * 1024, 64} },
6917 .block_erase = erase_sector_jedec,
6918 }, {
6919 .eraseblocks = { {16 * 1024, 16} },
6920 .block_erase = erase_block_jedec,
6921 }, {
6922 .eraseblocks = { {256 * 1024, 1} },
6923 .block_erase = NULL,
6924 }
6925 },
Sean Nelson35727f72010-01-28 23:55:12 +00006926 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006927 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006928 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006929 },
6930
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006931 {
6932 .vendor = "SST",
6933 .name = "SST49LF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006934 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006935 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006936 .model_id = SST_SST49LF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006937 .total_size = 512,
6938 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006939 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006940 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006941 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006942 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006943 .block_erasers =
6944 {
6945 {
6946 .eraseblocks = { {4 * 1024, 128} },
6947 .block_erase = erase_sector_jedec,
6948 }, {
6949 .eraseblocks = { {64 * 1024, 8} },
6950 .block_erase = erase_block_jedec,
6951 }, {
6952 .eraseblocks = { {512 * 1024, 1} },
6953 .block_erase = NULL,
6954 }
6955 },
Sean Nelson35727f72010-01-28 23:55:12 +00006956 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006957 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006958 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006959 },
6960
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006961 {
6962 .vendor = "SST",
6963 .name = "SST49LF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006964 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006965 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006966 .model_id = SST_SST49LF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006967 .total_size = 512,
6968 .page_size = 64 * 1024,
Joshua Roysa84b0bd2010-08-16 22:12:39 +00006969 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006970 .tested = TEST_OK_PREW,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006971 .probe = probe_jedec,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006972 .probe_timing = 1, /* 150ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006973 .block_erasers =
6974 {
6975 {
6976 .eraseblocks = { {4 * 1024, 128} },
6977 .block_erase = erase_sector_jedec,
6978 }, {
6979 .eraseblocks = { {64 * 1024, 8} },
6980 .block_erase = erase_block_jedec,
6981 }, {
6982 .eraseblocks = { {512 * 1024, 1} },
6983 .block_erase = NULL,
6984 }
6985 },
Joshua Roysa84b0bd2010-08-16 22:12:39 +00006986 .unlock = unlock_82802ab,
Sean Nelson35727f72010-01-28 23:55:12 +00006987 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006988 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006989 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006990 },
6991
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006992 {
6993 .vendor = "SST",
6994 .name = "SST49LF080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006995 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006996 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006997 .model_id = SST_SST49LF080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006998 .total_size = 1024,
6999 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00007000 .feature_bits = FEATURE_EITHER_RESET,
Brandon Dowdyf07bf322011-03-06 18:31:11 +00007001 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007002 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00007003 .probe_timing = TIMING_FIXME,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007004 .block_erasers =
7005 {
7006 {
7007 .eraseblocks = { {4 * 1024, 256} },
7008 .block_erase = erase_sector_jedec,
7009 }, {
7010 .eraseblocks = { {64 * 1024, 16} },
7011 .block_erase = erase_block_jedec,
7012 }, {
7013 .eraseblocks = { {1024 * 1024, 1} },
7014 .block_erase = NULL,
7015 }
7016 },
Sean Nelson35727f72010-01-28 23:55:12 +00007017 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007018 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007019 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007020 },
7021
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007022 {
7023 .vendor = "SST",
7024 .name = "SST49LF160C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007025 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007026 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007027 .model_id = SST_SST49LF160C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007028 .total_size = 2048,
7029 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007030 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007031 .tested = TEST_OK_PRE,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007032 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00007033 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007034 .block_erasers =
7035 {
7036 {
7037 .eraseblocks = { {4 * 1024, 512} },
7038 .block_erase = erase_sector_49lfxxxc,
7039 }, {
7040 .eraseblocks = {
7041 {64 * 1024, 31},
7042 {32 * 1024, 1},
7043 {8 * 1024, 2},
7044 {16 * 1024, 1},
7045 },
Sean Nelson69e58112010-03-23 17:10:28 +00007046 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007047 }
7048 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00007049 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00007050 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007051 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007052 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007053 },
7054
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007055 {
7056 .vendor = "ST",
7057 .name = "M25P05-A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007058 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007059 .manufacture_id = ST_ID,
7060 .model_id = ST_M25P05A,
7061 .total_size = 64,
7062 .page_size = 256,
7063 .tested = TEST_UNTESTED,
7064 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007065 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007066 .block_erasers =
7067 {
7068 {
7069 .eraseblocks = { {32 * 1024, 2} },
7070 .block_erase = spi_block_erase_d8,
7071 }, {
7072 .eraseblocks = { {64 * 1024, 1} },
7073 .block_erase = spi_block_erase_c7,
7074 }
7075 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007076 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007077 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007078 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007079 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007080 },
7081
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007082 /* The ST M25P05 is a bit of a problem. It has the same ID as the
7083 * ST M25P05-A in RES mode, but supports only 128 byte writes instead
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00007084 * of 256 byte writes. We rely heavily on the fact that probe_spi_res1
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007085 * only is successful if RDID does not work.
7086 */
7087 {
7088 .vendor = "ST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00007089 .name = "M25P05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007090 .bustype = BUS_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00007091 .manufacture_id = 0, /* Not used. */
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007092 .model_id = ST_M25P05_RES,
7093 .total_size = 64,
7094 .page_size = 256,
7095 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00007096 .probe = probe_spi_res1,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007097 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007098 .block_erasers =
7099 {
7100 {
7101 .eraseblocks = { {32 * 1024, 2} },
7102 .block_erase = spi_block_erase_d8,
7103 }, {
7104 .eraseblocks = { {64 * 1024, 1} },
7105 .block_erase = spi_block_erase_c7,
7106 }
7107 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007108 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007109 .write = spi_chip_write_1, /* 128 */
7110 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007111 .voltage = {2700, 3600},
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007112 },
7113
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007114 {
7115 .vendor = "ST",
7116 .name = "M25P10-A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007117 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007118 .manufacture_id = ST_ID,
7119 .model_id = ST_M25P10A,
7120 .total_size = 128,
7121 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007122 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007123 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007124 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007125 .block_erasers =
7126 {
7127 {
7128 .eraseblocks = { {32 * 1024, 4} },
7129 .block_erase = spi_block_erase_d8,
7130 }, {
7131 .eraseblocks = { {128 * 1024, 1} },
7132 .block_erase = spi_block_erase_c7,
7133 }
7134 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007135 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007136 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007137 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007138 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007139 },
7140
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007141 /* The ST M25P10 has the same problem as the M25P05. */
7142 {
7143 .vendor = "ST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00007144 .name = "M25P10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007145 .bustype = BUS_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00007146 .manufacture_id = 0, /* Not used. */
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007147 .model_id = ST_M25P10_RES,
7148 .total_size = 128,
7149 .page_size = 256,
7150 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00007151 .probe = probe_spi_res1,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007152 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007153 .block_erasers =
7154 {
7155 {
7156 .eraseblocks = { {32 * 1024, 4} },
7157 .block_erase = spi_block_erase_d8,
7158 }, {
7159 .eraseblocks = { {128 * 1024, 1} },
7160 .block_erase = spi_block_erase_c7,
7161 }
7162 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007163 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007164 .write = spi_chip_write_1, /* 128 */
7165 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007166 .voltage = {2700, 3600},
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007167 },
7168
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007169 {
7170 .vendor = "ST",
7171 .name = "M25P20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007172 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007173 .manufacture_id = ST_ID,
7174 .model_id = ST_M25P20,
7175 .total_size = 256,
7176 .page_size = 256,
7177 .tested = TEST_UNTESTED,
7178 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007179 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007180 .block_erasers =
7181 {
7182 {
7183 .eraseblocks = { {64 * 1024, 4} },
7184 .block_erase = spi_block_erase_d8,
7185 }, {
7186 .eraseblocks = { {256 * 1024, 1} },
7187 .block_erase = spi_block_erase_c7,
7188 }
7189 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007190 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007191 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007192 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007193 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007194 },
7195
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007196 {
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00007197 .vendor = "ST", /* Numonyx */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007198 .name = "M25P40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007199 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007200 .manufacture_id = ST_ID,
7201 .model_id = ST_M25P40,
7202 .total_size = 512,
7203 .page_size = 256,
Paul Menzelac427b22012-02-16 21:07:07 +00007204 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007205 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007206 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007207 .block_erasers =
7208 {
7209 {
7210 .eraseblocks = { {64 * 1024, 8} },
7211 .block_erase = spi_block_erase_d8,
7212 }, {
7213 .eraseblocks = { {512 * 1024, 1} },
7214 .block_erase = spi_block_erase_c7,
7215 }
7216 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007217 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007218 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007219 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007220 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007221 },
7222
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007223 {
7224 .vendor = "ST",
7225 .name = "M25P40-old",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007226 .bustype = BUS_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00007227 .manufacture_id = 0, /* Not used. */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007228 .model_id = ST_M25P40_RES,
7229 .total_size = 512,
7230 .page_size = 256,
7231 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00007232 .probe = probe_spi_res1,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007233 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007234 .block_erasers =
7235 {
7236 {
7237 .eraseblocks = { {64 * 1024, 8} },
7238 .block_erase = spi_block_erase_d8,
7239 }, {
7240 .eraseblocks = { {512 * 1024, 1} },
7241 .block_erase = spi_block_erase_c7,
7242 }
7243 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007244 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007245 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007246 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00007247 },
7248
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007249 {
7250 .vendor = "ST",
7251 .name = "M25P80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007252 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007253 .manufacture_id = ST_ID,
7254 .model_id = ST_M25P80,
7255 .total_size = 1024,
7256 .page_size = 256,
Uwe Hermann19f46f22011-06-18 22:56:14 +00007257 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007258 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007259 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007260 .block_erasers =
7261 {
7262 {
7263 .eraseblocks = { {64 * 1024, 16} },
7264 .block_erase = spi_block_erase_d8,
7265 }, {
7266 .eraseblocks = { {1024 * 1024, 1} },
7267 .block_erase = spi_block_erase_c7,
7268 }
7269 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007270 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007271 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007272 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007273 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007274 },
7275
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007276 {
7277 .vendor = "ST",
7278 .name = "M25P16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007279 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007280 .manufacture_id = ST_ID,
7281 .model_id = ST_M25P16,
7282 .total_size = 2048,
7283 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007284 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007285 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007286 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007287 .block_erasers =
7288 {
7289 {
7290 .eraseblocks = { {64 * 1024, 32} },
7291 .block_erase = spi_block_erase_d8,
7292 }, {
7293 .eraseblocks = { {2 * 1024 * 1024, 1} },
7294 .block_erase = spi_block_erase_c7,
7295 }
7296 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007297 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007298 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007299 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007300 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007301 },
7302
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007303 {
7304 .vendor = "ST",
7305 .name = "M25P32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007306 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007307 .manufacture_id = ST_ID,
7308 .model_id = ST_M25P32,
7309 .total_size = 4096,
7310 .page_size = 256,
Antony Rheneus0fbba982011-05-26 14:28:51 +00007311 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007312 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007313 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007314 .block_erasers =
7315 {
7316 {
7317 .eraseblocks = { {64 * 1024, 64} },
7318 .block_erase = spi_block_erase_d8,
7319 }, {
7320 .eraseblocks = { {4 * 1024 * 1024, 1} },
7321 .block_erase = spi_block_erase_c7,
7322 }
7323 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007324 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007325 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007326 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007327 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007328 },
7329
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007330 {
7331 .vendor = "ST",
7332 .name = "M25P64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007333 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007334 .manufacture_id = ST_ID,
7335 .model_id = ST_M25P64,
7336 .total_size = 8192,
7337 .page_size = 256,
7338 .tested = TEST_UNTESTED,
7339 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007340 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007341 .block_erasers =
7342 {
7343 {
7344 .eraseblocks = { {64 * 1024, 128} },
7345 .block_erase = spi_block_erase_d8,
7346 }, {
7347 .eraseblocks = { {8 * 1024 * 1024, 1} },
7348 .block_erase = spi_block_erase_c7,
7349 }
7350 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007351 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007352 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007353 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007354 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007355 },
7356
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007357 {
7358 .vendor = "ST",
7359 .name = "M25P128",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007360 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007361 .manufacture_id = ST_ID,
7362 .model_id = ST_M25P128,
7363 .total_size = 16384,
7364 .page_size = 256,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00007365 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007366 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007367 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007368 .block_erasers =
7369 {
7370 {
7371 .eraseblocks = { {256 * 1024, 64} },
7372 .block_erase = spi_block_erase_d8,
7373 }, {
7374 .eraseblocks = { {16 * 1024 * 1024, 1} },
7375 .block_erase = spi_block_erase_c7,
7376 }
7377 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007378 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007379 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007380 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007381 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007382 },
7383
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007384 {
7385 .vendor = "ST",
Carl Worthd1dd72c2011-03-06 18:45:40 +00007386 .name = "M25PX16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007387 .bustype = BUS_SPI,
Carl Worthd1dd72c2011-03-06 18:45:40 +00007388 .manufacture_id = ST_ID,
7389 .model_id = ST_M25PX16,
7390 .total_size = 2048,
7391 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00007392 /* OTP: 64B total; read 0x4B; write 0x42 */
7393 .feature_bits = FEATURE_OTP,
Carl Worthd1dd72c2011-03-06 18:45:40 +00007394 .tested = TEST_OK_PREW,
7395 .probe = probe_spi_rdid,
7396 .probe_timing = TIMING_ZERO,
7397 .block_erasers =
7398 {
7399 {
7400 .eraseblocks = { { 4 * 1024, 512 } },
7401 .block_erase = spi_block_erase_20,
7402 }, {
7403 .eraseblocks = { {64 * 1024, 32} },
7404 .block_erase = spi_block_erase_d8,
7405 }, {
7406 .eraseblocks = { {2 * 1024 * 1024, 1} },
7407 .block_erase = spi_block_erase_c7,
7408 }
7409 },
7410 .unlock = spi_disable_blockprotect,
7411 .write = spi_chip_write_256,
7412 .read = spi_chip_read,
7413 },
7414
7415 {
7416 .vendor = "ST",
Jason Shriver4119e9b2010-09-14 13:16:01 +00007417 .name = "M25PX32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007418 .bustype = BUS_SPI,
Jason Shriver4119e9b2010-09-14 13:16:01 +00007419 .manufacture_id = ST_ID,
7420 .model_id = ST_M25PX32,
7421 .total_size = 4096,
7422 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007423 .tested = TEST_OK_PRE,
Jason Shriver4119e9b2010-09-14 13:16:01 +00007424 .probe = probe_spi_rdid,
7425 .probe_timing = TIMING_ZERO,
7426 .block_erasers =
7427 {
7428 {
7429 .eraseblocks = { { 4 * 1024, 1024 } },
7430 .block_erase = spi_block_erase_20,
7431 }, {
7432 .eraseblocks = { {64 * 1024, 64} },
7433 .block_erase = spi_block_erase_d8,
7434 }, {
7435 .eraseblocks = { {4 * 1024 * 1024, 1} },
7436 .block_erase = spi_block_erase_c7,
7437 }
7438 },
7439 .unlock = spi_disable_blockprotect,
7440 .write = spi_chip_write_256,
7441 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007442 .voltage = {2700, 3600},
Jason Shriver4119e9b2010-09-14 13:16:01 +00007443 },
7444
7445 {
7446 .vendor = "ST",
7447 .name = "M25PX64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007448 .bustype = BUS_SPI,
Jason Shriver4119e9b2010-09-14 13:16:01 +00007449 .manufacture_id = ST_ID,
7450 .model_id = ST_M25PX64,
7451 .total_size = 8192,
7452 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007453 .tested = TEST_OK_PRE,
Jason Shriver4119e9b2010-09-14 13:16:01 +00007454 .probe = probe_spi_rdid,
7455 .probe_timing = TIMING_ZERO,
7456 .block_erasers =
7457 {
7458 {
7459 .eraseblocks = { { 4 * 1024, 2048 } },
7460 .block_erase = spi_block_erase_20,
7461 }, {
7462 .eraseblocks = { {64 * 1024, 128} },
7463 .block_erase = spi_block_erase_d8,
7464 }, {
7465 .eraseblocks = { {8 * 1024 * 1024, 1} },
7466 .block_erase = spi_block_erase_c7,
7467 }
7468 },
7469 .unlock = spi_disable_blockprotect,
7470 .write = spi_chip_write_256,
7471 .read = spi_chip_read,
7472 },
7473
7474 {
7475 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007476 .name = "M29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007477 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007478 .manufacture_id = ST_ID,
7479 .model_id = ST_M29F002B,
7480 .total_size = 256,
7481 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007482 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007483 .tested = TEST_UNTESTED,
7484 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007485 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007486 .block_erasers =
7487 {
7488 {
7489 .eraseblocks = {
7490 {16 * 1024, 1},
7491 {8 * 1024, 2},
7492 {32 * 1024, 1},
7493 {64 * 1024, 3},
7494 },
7495 .block_erase = erase_sector_jedec,
7496 }, {
7497 .eraseblocks = { {256 * 1024, 1} },
7498 .block_erase = erase_chip_block_jedec,
7499 }
7500 },
Sean Nelson35727f72010-01-28 23:55:12 +00007501 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007502 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007503 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00007504 },
7505
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007506 {
7507 .vendor = "ST",
7508 .name = "M29F002T/NT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007509 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007510 .manufacture_id = ST_ID,
7511 .model_id = ST_M29F002T,
7512 .total_size = 256,
7513 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007514 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
7515 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007516 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007517 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007518 .block_erasers =
7519 {
7520 {
7521 .eraseblocks = {
7522 {64 * 1024, 3},
7523 {32 * 1024, 1},
7524 {8 * 1024, 2},
7525 {16 * 1024, 1},
7526 },
7527 .block_erase = erase_sector_jedec,
7528 }, {
7529 .eraseblocks = { {256 * 1024, 1} },
7530 .block_erase = erase_chip_block_jedec,
7531 }
7532 },
Sean Nelson35727f72010-01-28 23:55:12 +00007533 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007534 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007535 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00007536 },
7537
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007538 {
7539 .vendor = "ST",
7540 .name = "M29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007541 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007542 .manufacture_id = ST_ID,
7543 .model_id = ST_M29F040B,
7544 .total_size = 512,
7545 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007546 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
7547 .tested = TEST_UNTESTED,
7548 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00007549 .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */
Sean Nelson56358aa2010-01-19 16:08:51 +00007550 .block_erasers =
7551 {
7552 {
7553 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson35727f72010-01-28 23:55:12 +00007554 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +00007555 }, {
7556 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00007557 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +00007558 }
7559 },
Sean Nelson35727f72010-01-28 23:55:12 +00007560 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007561 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007562 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00007563 },
7564
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007565 {
Sean Nelson35727f72010-01-28 23:55:12 +00007566 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007567 .vendor = "ST",
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00007568 .name = "M29F400BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007569 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00007570 .manufacture_id = ST_ID,
7571 .model_id = ST_M29F400BB,
7572 .total_size = 512,
7573 .page_size = 64 * 1024,
7574 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00007575 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00007576 .probe = probe_m29f400bt,
7577 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
7578 .block_erasers =
7579 {
7580 {
7581 .eraseblocks = {
7582 {16 * 1024, 1},
7583 {8 * 1024, 2},
7584 {32 * 1024, 1},
7585 {64 * 1024, 7},
7586 },
7587 .block_erase = block_erase_m29f400bt,
7588 }, {
7589 .eraseblocks = { {512 * 1024, 1} },
7590 .block_erase = block_erase_chip_m29f400bt,
7591 }
7592 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00007593 .write = write_m29f400bt,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00007594 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007595 .voltage = {4500, 5500},
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00007596 },
7597 {
7598 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
7599 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007600 .name = "M29F400BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007601 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007602 .manufacture_id = ST_ID,
7603 .model_id = ST_M29F400BT,
7604 .total_size = 512,
7605 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007606 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007607 .tested = TEST_UNTESTED,
7608 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00007609 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00007610 .block_erasers =
7611 {
7612 {
7613 .eraseblocks = {
7614 {64 * 1024, 7},
7615 {32 * 1024, 1},
7616 {8 * 1024, 2},
7617 {16 * 1024, 1},
7618 },
7619 .block_erase = block_erase_m29f400bt,
7620 }, {
7621 .eraseblocks = { {512 * 1024, 1} },
7622 .block_erase = block_erase_chip_m29f400bt,
7623 }
7624 },
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00007625 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007626 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007627 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00007628 },
7629
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007630 {
7631 .vendor = "ST",
7632 .name = "M29W010B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007633 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007634 .manufacture_id = ST_ID,
7635 .model_id = ST_M29W010B,
7636 .total_size = 128,
7637 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007638 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007639 .tested = TEST_UNTESTED,
7640 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007641 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007642 .block_erasers =
7643 {
7644 {
7645 .eraseblocks = { {16 * 1024, 8}, },
7646 .block_erase = erase_sector_jedec,
7647 }, {
7648 .eraseblocks = { {128 * 1024, 1} },
7649 .block_erase = erase_chip_block_jedec,
7650 }
7651 },
Sean Nelson35727f72010-01-28 23:55:12 +00007652 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007653 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007654 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007655 },
7656
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007657 {
7658 .vendor = "ST",
7659 .name = "M29W040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007660 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007661 .manufacture_id = ST_ID,
7662 .model_id = ST_M29W040B,
7663 .total_size = 512,
7664 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007665 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007666 .tested = TEST_UNTESTED,
7667 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007668 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007669 .block_erasers =
7670 {
7671 {
7672 .eraseblocks = { {64 * 1024, 8}, },
7673 .block_erase = erase_sector_jedec,
7674 }, {
7675 .eraseblocks = { {512 * 1024, 1} },
7676 .block_erase = erase_chip_block_jedec,
7677 }
7678 },
Sean Nelson35727f72010-01-28 23:55:12 +00007679 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007680 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007681 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007682 },
7683
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +00007684 {
7685 .vendor = "ST",
7686 .name = "M29W512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007687 .bustype = BUS_PARALLEL,
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +00007688 .manufacture_id = ST_ID,
7689 .model_id = ST_M29W512B,
7690 .total_size = 64,
7691 .page_size = 64 * 1024,
7692 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007693 .tested = TEST_OK_PRE,
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +00007694 .probe = probe_jedec,
7695 .probe_timing = TIMING_ZERO,
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +00007696 .block_erasers =
7697 {
7698 {
7699 .eraseblocks = { {64 * 1024, 1} },
7700 .block_erase = erase_chip_block_jedec,
7701 }
7702 },
7703 .write = write_jedec_1,
7704 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007705 .voltage = {2700, 3600},
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +00007706 },
7707
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007708 {
7709 .vendor = "ST",
7710 .name = "M50FLW040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007711 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007712 .manufacture_id = ST_ID,
7713 .model_id = ST_M50FLW040A,
7714 .total_size = 512,
7715 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007716 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007717 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00007718 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00007719 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00007720 .block_erasers =
7721 {
7722 {
Sean Nelson329bde72010-01-19 16:39:19 +00007723 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00007724 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00007725 {64 * 1024, 5}, /* block */
7726 {4 * 1024, 16}, /* sector */
7727 {4 * 1024, 16}, /* sector */
7728 },
7729 .block_erase = NULL,
7730 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00007731 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +00007732 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00007733 }
7734 },
Sean Nelson28accc22010-03-19 18:47:06 +00007735 .unlock = unlock_stm50flw0x0x,
7736 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007737 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007738 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00007739 },
7740
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007741 {
7742 .vendor = "ST",
7743 .name = "M50FLW040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007744 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007745 .manufacture_id = ST_ID,
7746 .model_id = ST_M50FLW040B,
7747 .total_size = 512,
7748 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007749 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007750 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00007751 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00007752 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00007753 .block_erasers =
7754 {
7755 {
Sean Nelson329bde72010-01-19 16:39:19 +00007756 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00007757 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00007758 {4 * 1024, 16}, /* sector */
7759 {64 * 1024, 5}, /* block */
7760 {4 * 1024, 16}, /* sector */
7761 },
7762 .block_erase = NULL,
7763 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00007764 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +00007765 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00007766 }
7767 },
Sean Nelson28accc22010-03-19 18:47:06 +00007768 .unlock = unlock_stm50flw0x0x,
7769 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007770 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007771 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00007772 },
7773
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007774 {
7775 .vendor = "ST",
7776 .name = "M50FLW080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007777 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007778 .manufacture_id = ST_ID,
7779 .model_id = ST_M50FLW080A,
7780 .total_size = 1024,
7781 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007782 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007783 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +00007784 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00007785 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00007786 .block_erasers =
7787 {
7788 {
Sean Nelson329bde72010-01-19 16:39:19 +00007789 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00007790 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00007791 {64 * 1024, 13}, /* block */
7792 {4 * 1024, 16}, /* sector */
7793 {4 * 1024, 16}, /* sector */
7794 },
7795 .block_erase = NULL,
7796 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00007797 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +00007798 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00007799 }
7800 },
Sean Nelson28accc22010-03-19 18:47:06 +00007801 .unlock = unlock_stm50flw0x0x,
7802 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007803 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007804 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00007805 },
7806
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007807 {
7808 .vendor = "ST",
7809 .name = "M50FLW080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007810 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007811 .manufacture_id = ST_ID,
7812 .model_id = ST_M50FLW080B,
7813 .total_size = 1024,
7814 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007815 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007816 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00007817 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00007818 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00007819 .block_erasers =
7820 {
7821 {
Sean Nelson329bde72010-01-19 16:39:19 +00007822 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00007823 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00007824 {4 * 1024, 16}, /* sector */
7825 {64 * 1024, 13}, /* block */
7826 {4 * 1024, 16}, /* sector */
7827 },
7828 .block_erase = NULL,
7829 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00007830 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +00007831 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00007832 }
7833 },
Sean Nelson28accc22010-03-19 18:47:06 +00007834 .unlock = unlock_stm50flw0x0x,
7835 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007836 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007837 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00007838 },
7839
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007840 {
7841 .vendor = "ST",
7842 .name = "M50FW002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007843 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007844 .manufacture_id = ST_ID,
7845 .model_id = ST_M50FW002,
7846 .total_size = 256,
7847 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007848 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007849 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00007850 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00007851 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00007852 .block_erasers =
7853 {
7854 {
7855 .eraseblocks = {
7856 {64 * 1024, 3},
7857 {32 * 1024, 1},
7858 {8 * 1024, 2},
7859 {16 * 1024, 1},
7860 },
Sean Nelson28accc22010-03-19 18:47:06 +00007861 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00007862 }
7863 },
Sean Nelson28accc22010-03-19 18:47:06 +00007864 .unlock = unlock_stm50flw0x0x,
7865 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007866 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007867 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00007868 },
7869
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007870 {
7871 .vendor = "ST",
7872 .name = "M50FW016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007873 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007874 .manufacture_id = ST_ID,
7875 .model_id = ST_M50FW016,
7876 .total_size = 2048,
7877 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007878 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007879 .tested = TEST_UNTESTED,
7880 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00007881 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00007882 .block_erasers =
7883 {
7884 {
7885 .eraseblocks = { {64 * 1024, 32}, },
Sean Nelson28accc22010-03-19 18:47:06 +00007886 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00007887 }
7888 },
Sean Nelson28accc22010-03-19 18:47:06 +00007889 .unlock = unlock_stm50flw0x0x,
7890 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007891 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007892 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00007893 },
7894
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007895 {
7896 .vendor = "ST",
7897 .name = "M50FW040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007898 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007899 .manufacture_id = ST_ID,
7900 .model_id = ST_M50FW040,
7901 .total_size = 512,
7902 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007903 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +00007904 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007905 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00007906 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00007907 .block_erasers =
7908 {
7909 {
7910 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +00007911 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00007912 }
7913 },
Sean Nelson28accc22010-03-19 18:47:06 +00007914 .unlock = unlock_stm50flw0x0x,
7915 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007916 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007917 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00007918 },
7919
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007920 {
7921 .vendor = "ST",
7922 .name = "M50FW080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007923 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007924 .manufacture_id = ST_ID,
7925 .model_id = ST_M50FW080,
7926 .total_size = 1024,
7927 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007928 .feature_bits = FEATURE_REGISTERMAP,
Antony Rheneus0fbba982011-05-26 14:28:51 +00007929 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007930 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00007931 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00007932 .block_erasers =
7933 {
7934 {
7935 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +00007936 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00007937 }
7938 },
Sean Nelson28accc22010-03-19 18:47:06 +00007939 .unlock = unlock_stm50flw0x0x,
7940 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007941 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007942 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00007943 },
7944
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007945 {
7946 .vendor = "ST",
7947 .name = "M50LPW116",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007948 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007949 .manufacture_id = ST_ID,
7950 .model_id = ST_M50LPW116,
7951 .total_size = 2048,
7952 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007953 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007954 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00007955 .probe = probe_82802ab,
Udu Ogahc04ee222009-09-05 01:31:32 +00007956 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007957 .block_erasers =
7958 {
7959 {
7960 .eraseblocks = {
7961 {4 * 1024, 16},
7962 {64 * 1024, 30},
7963 {32 * 1024, 1},
7964 {8 * 1024, 2},
7965 {16 * 1024, 1},
7966 },
Sean Nelson28accc22010-03-19 18:47:06 +00007967 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00007968 }
7969 },
Sean Nelson28accc22010-03-19 18:47:06 +00007970 .unlock = unlock_stm50flw0x0x,
7971 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007972 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007973 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00007974 },
7975
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007976 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00007977 .vendor = "SyncMOS/MoselVitelic",
7978 .name = "{F,S,V}29C51001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007979 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00007980 .manufacture_id = SYNCMOS_MVC_ID,
7981 .model_id = SM_MVC_29C51001B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007982 .total_size = 128,
Mattias Mattsson4c066502010-07-29 20:01:13 +00007983 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +00007984 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007985 .tested = TEST_UNTESTED,
7986 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007987 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007988 .block_erasers =
7989 {
7990 {
7991 .eraseblocks = { {512, 256} },
7992 .block_erase = erase_sector_jedec,
7993 }, {
7994 .eraseblocks = { {128 * 1024, 1} },
7995 .block_erase = erase_chip_block_jedec,
7996 },
7997 },
Sean Nelson35727f72010-01-28 23:55:12 +00007998 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007999 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008000 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00008001 },
8002
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008003 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00008004 .vendor = "SyncMOS/MoselVitelic",
8005 .name = "{F,S,V}29C51001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008006 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008007 .manufacture_id = SYNCMOS_MVC_ID,
8008 .model_id = SM_MVC_29C51001T,
8009 .total_size = 128,
8010 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +00008011 .feature_bits = FEATURE_EITHER_RESET,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008012 .tested = TEST_UNTESTED,
8013 .probe = probe_jedec,
8014 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8015 .block_erasers =
8016 {
8017 {
8018 .eraseblocks = { {512, 256} },
8019 .block_erase = erase_sector_jedec,
8020 }, {
8021 .eraseblocks = { {128 * 1024, 1} },
8022 .block_erase = erase_chip_block_jedec,
8023 },
8024 },
8025 .write = write_jedec_1,
8026 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008027 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008028 },
8029
8030 {
8031 .vendor = "SyncMOS/MoselVitelic",
8032 .name = "{F,S,V}29C51002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008033 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008034 .manufacture_id = SYNCMOS_MVC_ID,
8035 .model_id = SM_MVC_29C51002B,
8036 .total_size = 256,
8037 .page_size = 512,
8038 .feature_bits = FEATURE_EITHER_RESET,
8039 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008040 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008041 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00008042 .block_erasers =
8043 {
8044 {
8045 .eraseblocks = { {512, 512} },
8046 .block_erase = erase_sector_jedec,
8047 }, {
8048 .eraseblocks = { {256 * 1024, 1} },
8049 .block_erase = erase_chip_block_jedec,
8050 },
8051 },
Sean Nelson35727f72010-01-28 23:55:12 +00008052 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008053 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00008054 },
8055
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008056 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00008057 .vendor = "SyncMOS/MoselVitelic",
8058 .name = "{F,S,V}29C51002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008059 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008060 .manufacture_id = SYNCMOS_MVC_ID,
8061 .model_id = SM_MVC_29C51002T,
8062 .total_size = 256,
8063 .page_size = 512,
8064 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00008065 .tested = TEST_OK_PREW,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008066 .probe = probe_jedec,
8067 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8068 .block_erasers =
8069 {
8070 {
8071 .eraseblocks = { {512, 512} },
8072 .block_erase = erase_sector_jedec,
8073 }, {
8074 .eraseblocks = { {256 * 1024, 1} },
8075 .block_erase = erase_chip_block_jedec,
8076 },
8077 },
8078 .write = write_jedec_1,
8079 .read = read_memmapped,
8080 },
8081
8082 {
8083 .vendor = "SyncMOS/MoselVitelic",
8084 .name = "{F,S,V}29C51004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008085 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008086 .manufacture_id = SYNCMOS_MVC_ID,
8087 .model_id = SM_MVC_29C51004B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008088 .total_size = 512,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008089 .page_size = 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008090 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008091 .tested = TEST_UNTESTED,
8092 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008093 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00008094 .block_erasers =
8095 {
8096 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00008097 .eraseblocks = { {1024, 512} },
8098 .block_erase = erase_sector_jedec,
8099 }, {
8100 .eraseblocks = { {512 * 1024, 1} },
8101 .block_erase = erase_chip_block_jedec,
8102 },
8103 },
8104 .write = write_jedec_1,
8105 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008106 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008107 },
8108
8109 {
8110 .vendor = "SyncMOS/MoselVitelic",
8111 .name = "{F,S,V}29C51004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008112 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008113 .manufacture_id = SYNCMOS_MVC_ID,
8114 .model_id = SM_MVC_29C51004T,
8115 .total_size = 512,
8116 .page_size = 1024,
8117 .feature_bits = FEATURE_EITHER_RESET,
8118 .tested = TEST_UNTESTED,
8119 .probe = probe_jedec,
8120 .probe_timing = TIMING_ZERO,
8121 .block_erasers =
8122 {
8123 {
8124 .eraseblocks = { {1024, 512} },
8125 .block_erase = erase_sector_jedec,
8126 }, {
8127 .eraseblocks = { {512 * 1024, 1} },
8128 .block_erase = erase_chip_block_jedec,
8129 },
8130 },
8131 .write = write_jedec_1,
8132 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008133 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008134 },
8135
8136 {
8137 .vendor = "SyncMOS/MoselVitelic",
8138 .name = "{S,V}29C31004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008139 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008140 .manufacture_id = SYNCMOS_MVC_ID,
8141 .model_id = SM_MVC_29C31004B,
8142 .total_size = 512,
8143 .page_size = 1024,
8144 .feature_bits = FEATURE_EITHER_RESET,
8145 .tested = TEST_UNTESTED,
8146 .probe = probe_jedec,
8147 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8148 .block_erasers =
8149 {
8150 {
8151 .eraseblocks = { {1024, 512} },
8152 .block_erase = erase_sector_jedec,
8153 }, {
8154 .eraseblocks = { {512 * 1024, 1} },
8155 .block_erase = erase_chip_block_jedec,
8156 },
8157 },
8158 .write = write_jedec_1,
8159 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008160 .voltage = {3000, 3600},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008161 },
8162
8163 {
8164 .vendor = "SyncMOS/MoselVitelic",
8165 .name = "{S,V}29C31004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008166 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008167 .manufacture_id = SYNCMOS_MVC_ID,
8168 .model_id = SM_MVC_29C31004T,
8169 .total_size = 512,
8170 .page_size = 1024,
8171 .feature_bits = FEATURE_EITHER_RESET,
8172 .tested = TEST_UNTESTED,
8173 .probe = probe_jedec,
8174 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8175 .block_erasers =
8176 {
8177 {
8178 .eraseblocks = { {1024, 512} },
Sean Nelson56358aa2010-01-19 16:08:51 +00008179 .block_erase = erase_sector_jedec,
8180 }, {
8181 .eraseblocks = { {512 * 1024, 1} },
8182 .block_erase = erase_chip_block_jedec,
8183 },
8184 },
Sean Nelson35727f72010-01-28 23:55:12 +00008185 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008186 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008187 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008188 },
8189
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008190 {
Uwe Hermanna106d152009-05-27 23:17:40 +00008191 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008192 .name = "TMS29F002RB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008193 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008194 .manufacture_id = TI_OLD_ID,
8195 .model_id = TI_TMS29F002RB,
8196 .total_size = 256,
8197 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +00008198 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008199 .tested = TEST_UNTESTED,
8200 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008201 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00008202 .block_erasers =
8203 {
8204 {
8205 .eraseblocks = {
8206 {16 * 1024, 1},
8207 {8 * 1024, 2},
8208 {32 * 1024, 1},
8209 {64 * 1024, 3},
8210 },
8211 .block_erase = erase_sector_jedec,
8212 }, {
8213 .eraseblocks = { {256 * 1024, 1} },
8214 .block_erase = erase_chip_block_jedec,
8215 },
8216 },
Sean Nelson35727f72010-01-28 23:55:12 +00008217 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008218 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008219 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008220 },
8221
8222 {
Uwe Hermanna106d152009-05-27 23:17:40 +00008223 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008224 .name = "TMS29F002RT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008225 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008226 .manufacture_id = TI_OLD_ID,
8227 .model_id = TI_TMS29F002RT,
8228 .total_size = 256,
8229 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +00008230 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008231 .tested = TEST_UNTESTED,
8232 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008233 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00008234 .block_erasers =
8235 {
8236 {
8237 .eraseblocks = {
8238 {64 * 1024, 3},
8239 {32 * 1024, 1},
8240 {8 * 1024, 2},
8241 {16 * 1024, 1},
8242 },
8243 .block_erase = erase_sector_jedec,
8244 }, {
8245 .eraseblocks = { {256 * 1024, 1} },
8246 .block_erase = erase_chip_block_jedec,
8247 },
8248 },
Sean Nelson35727f72010-01-28 23:55:12 +00008249 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008250 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008251 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008252 },
8253
8254 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008255 .vendor = "Winbond",
Rudolf Marekce1c7982010-04-20 19:34:31 +00008256 .name = "W25Q80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008257 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008258 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008259 .model_id = WINBOND_NEX_W25Q80,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008260 .total_size = 1024,
8261 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00008262 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
8263 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +00008264 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008265 .probe = probe_spi_rdid,
8266 .probe_timing = TIMING_ZERO,
8267 .block_erasers =
8268 {
8269 {
8270 .eraseblocks = { {4 * 1024, 256} },
8271 .block_erase = spi_block_erase_20,
8272 }, {
8273 .eraseblocks = { {32 * 1024, 32} },
8274 .block_erase = spi_block_erase_52,
8275 }, {
8276 .eraseblocks = { {64 * 1024, 16} },
8277 .block_erase = spi_block_erase_d8,
8278 }, {
8279 .eraseblocks = { {1024 * 1024, 1} },
8280 .block_erase = spi_block_erase_60,
8281 }, {
8282 .eraseblocks = { {1024 * 1024, 1} },
8283 .block_erase = spi_block_erase_c7,
8284 }
8285 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008286 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008287 .write = spi_chip_write_256,
8288 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008289 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +00008290 },
8291
8292 {
8293 .vendor = "Winbond",
8294 .name = "W25Q16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008295 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008296 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008297 .model_id = WINBOND_NEX_W25Q16,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008298 .total_size = 2048,
8299 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00008300 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
8301 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner716e0982011-07-25 20:38:52 +00008302 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008303 .probe = probe_spi_rdid,
8304 .probe_timing = TIMING_ZERO,
8305 .block_erasers =
8306 {
8307 {
8308 .eraseblocks = { {4 * 1024, 512} },
8309 .block_erase = spi_block_erase_20,
8310 }, {
8311 .eraseblocks = { {32 * 1024, 64} },
8312 .block_erase = spi_block_erase_52,
8313 }, {
8314 .eraseblocks = { {64 * 1024, 32} },
8315 .block_erase = spi_block_erase_d8,
8316 }, {
8317 .eraseblocks = { {2 * 1024 * 1024, 1} },
8318 .block_erase = spi_block_erase_60,
8319 }, {
8320 .eraseblocks = { {2 * 1024 * 1024, 1} },
8321 .block_erase = spi_block_erase_c7,
8322 }
8323 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008324 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008325 .write = spi_chip_write_256,
8326 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008327 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +00008328 },
8329
8330 {
8331 .vendor = "Winbond",
8332 .name = "W25Q32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008333 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008334 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008335 .model_id = WINBOND_NEX_W25Q32,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008336 .total_size = 4096,
8337 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00008338 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
8339 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +00008340 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008341 .probe = probe_spi_rdid,
8342 .probe_timing = TIMING_ZERO,
8343 .block_erasers =
8344 {
8345 {
8346 .eraseblocks = { {4 * 1024, 1024} },
8347 .block_erase = spi_block_erase_20,
8348 }, {
8349 .eraseblocks = { {32 * 1024, 128} },
8350 .block_erase = spi_block_erase_52,
8351 }, {
8352 .eraseblocks = { {64 * 1024, 64} },
8353 .block_erase = spi_block_erase_d8,
8354 }, {
8355 .eraseblocks = { {4 * 1024 * 1024, 1} },
8356 .block_erase = spi_block_erase_60,
8357 }, {
8358 .eraseblocks = { {4 * 1024 * 1024, 1} },
8359 .block_erase = spi_block_erase_c7,
8360 }
8361 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008362 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008363 .write = spi_chip_write_256,
8364 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008365 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +00008366 },
8367
8368 {
8369 .vendor = "Winbond",
David Hendricksc4acec92010-06-24 11:39:57 +00008370 .name = "W25Q64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008371 .bustype = BUS_SPI,
David Hendricksc4acec92010-06-24 11:39:57 +00008372 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008373 .model_id = WINBOND_NEX_W25Q64,
David Hendricksc4acec92010-06-24 11:39:57 +00008374 .total_size = 8192,
8375 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00008376 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
8377 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +00008378 .tested = TEST_OK_PREW,
David Hendricksc4acec92010-06-24 11:39:57 +00008379 .probe = probe_spi_rdid,
8380 .probe_timing = TIMING_ZERO,
8381 .block_erasers =
8382 {
8383 {
8384 .eraseblocks = { {4 * 1024, 2048} },
8385 .block_erase = spi_block_erase_20,
8386 }, {
8387 .eraseblocks = { {32 * 1024, 256} },
8388 .block_erase = spi_block_erase_52,
8389 }, {
8390 .eraseblocks = { {64 * 1024, 128} },
8391 .block_erase = spi_block_erase_d8,
8392 }, {
8393 .eraseblocks = { {8 * 1024 * 1024, 1} },
8394 .block_erase = spi_block_erase_60,
8395 }, {
8396 .eraseblocks = { {8 * 1024 * 1024, 1} },
8397 .block_erase = spi_block_erase_c7,
8398 }
8399 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008400 .unlock = spi_disable_blockprotect,
David Hendricksc4acec92010-06-24 11:39:57 +00008401 .write = spi_chip_write_256,
8402 .read = spi_chip_read,
8403 },
8404
8405 {
8406 .vendor = "Winbond",
Antony Rheneus0fbba982011-05-26 14:28:51 +00008407 .name = "W25Q128",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008408 .bustype = BUS_SPI,
Antony Rheneus0fbba982011-05-26 14:28:51 +00008409 .manufacture_id = WINBOND_NEX_ID,
8410 .model_id = WINBOND_NEX_W25Q128,
8411 .total_size = 16384,
8412 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00008413 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
8414 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Antony Rheneus0fbba982011-05-26 14:28:51 +00008415 .tested = TEST_OK_PROBE,
8416 .probe = probe_spi_rdid,
8417 .probe_timing = TIMING_ZERO,
8418 .block_erasers =
8419 {
8420 {
8421 .eraseblocks = { {4 * 1024, 4096} },
8422 .block_erase = spi_block_erase_20,
8423 }, {
8424 .eraseblocks = { {32 * 1024, 512} },
8425 .block_erase = spi_block_erase_52,
8426 }, {
8427 .eraseblocks = { {64 * 1024, 256} },
8428 .block_erase = spi_block_erase_d8,
8429 }, {
8430 .eraseblocks = { {16 * 1024 * 1024, 1} },
8431 .block_erase = spi_block_erase_60,
8432 }, {
8433 .eraseblocks = { {16 * 1024 * 1024, 1} },
8434 .block_erase = spi_block_erase_c7,
8435 }
8436 },
8437 .unlock = spi_disable_blockprotect,
8438 .write = spi_chip_write_256,
8439 .read = spi_chip_read,
8440 },
8441
8442 {
8443 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008444 .name = "W25X10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008445 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008446 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008447 .model_id = WINBOND_NEX_W25X10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008448 .total_size = 128,
8449 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008450 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008451 .tested = TEST_UNTESTED,
8452 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008453 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008454 .block_erasers =
8455 {
8456 {
8457 .eraseblocks = { {4 * 1024, 32} },
8458 .block_erase = spi_block_erase_20,
8459 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008460 .eraseblocks = { {64 * 1024, 2} },
8461 .block_erase = spi_block_erase_d8,
8462 }, {
8463 .eraseblocks = { {128 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008464 .block_erase = spi_block_erase_c7,
8465 }
8466 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008467 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008468 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008469 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008470 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008471 },
8472
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008473 {
8474 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008475 .name = "W25X20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008476 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008477 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008478 .model_id = WINBOND_NEX_W25X20,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008479 .total_size = 256,
8480 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008481 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008482 .tested = TEST_UNTESTED,
8483 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008484 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008485 .block_erasers =
8486 {
8487 {
8488 .eraseblocks = { {4 * 1024, 64} },
8489 .block_erase = spi_block_erase_20,
8490 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008491 .eraseblocks = { {64 * 1024, 4} },
8492 .block_erase = spi_block_erase_d8,
8493 }, {
8494 .eraseblocks = { {256 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008495 .block_erase = spi_block_erase_c7,
8496 }
8497 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008498 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008499 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008500 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008501 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008502 },
8503
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008504 {
8505 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008506 .name = "W25X40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008507 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008508 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008509 .model_id = WINBOND_NEX_W25X40,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008510 .total_size = 512,
8511 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008512 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +00008513 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008514 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008515 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008516 .block_erasers =
8517 {
8518 {
8519 .eraseblocks = { {4 * 1024, 128} },
8520 .block_erase = spi_block_erase_20,
8521 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008522 .eraseblocks = { {64 * 1024, 8} },
8523 .block_erase = spi_block_erase_d8,
8524 }, {
8525 .eraseblocks = { {512 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008526 .block_erase = spi_block_erase_c7,
8527 }
8528 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008529 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008530 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008531 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008532 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008533 },
8534
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008535 {
8536 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008537 .name = "W25X80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008538 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008539 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008540 .model_id = WINBOND_NEX_W25X80,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008541 .total_size = 1024,
8542 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008543 .feature_bits = FEATURE_WRSR_WREN,
Yul Rottmann6d6ab742011-03-05 16:31:57 +00008544 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008545 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008546 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008547 .block_erasers =
8548 {
8549 {
8550 .eraseblocks = { {4 * 1024, 256} },
8551 .block_erase = spi_block_erase_20,
8552 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008553 .eraseblocks = { {64 * 1024, 16} },
8554 .block_erase = spi_block_erase_d8,
8555 }, {
8556 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008557 .block_erase = spi_block_erase_c7,
8558 }
8559 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008560 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008561 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008562 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008563 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008564 },
8565
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008566 {
8567 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008568 .name = "W25X16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008569 .bustype = BUS_SPI,
Hector Martina721ae22009-07-11 19:39:11 +00008570 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008571 .model_id = WINBOND_NEX_W25X16,
Hector Martina721ae22009-07-11 19:39:11 +00008572 .total_size = 2048,
8573 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008574 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +00008575 .tested = TEST_OK_PREW,
Hector Martina721ae22009-07-11 19:39:11 +00008576 .probe = probe_spi_rdid,
8577 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008578 .block_erasers =
8579 {
8580 {
8581 .eraseblocks = { {4 * 1024, 512} },
8582 .block_erase = spi_block_erase_20,
8583 }, {
8584 .eraseblocks = { {32 * 1024, 64} },
8585 .block_erase = spi_block_erase_52,
8586 }, {
8587 .eraseblocks = { {64 * 1024, 32} },
8588 .block_erase = spi_block_erase_d8,
8589 }, {
8590 .eraseblocks = { {2 * 1024 * 1024, 1} },
8591 .block_erase = spi_block_erase_60,
8592 }, {
8593 .eraseblocks = { {2 * 1024 * 1024, 1} },
8594 .block_erase = spi_block_erase_c7,
8595 }
8596 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008597 .unlock = spi_disable_blockprotect,
Hector Martina721ae22009-07-11 19:39:11 +00008598 .write = spi_chip_write_256,
8599 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008600 .voltage = {2700, 3600},
Hector Martina721ae22009-07-11 19:39:11 +00008601 },
8602
8603 {
8604 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008605 .name = "W25X32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008606 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +00008607 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008608 .model_id = WINBOND_NEX_W25X32,
Zheng Bao1db2b752009-11-26 11:05:01 +00008609 .total_size = 4096,
8610 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008611 .feature_bits = FEATURE_WRSR_WREN,
Zheng Bao1db2b752009-11-26 11:05:01 +00008612 .tested = TEST_OK_PROBE,
8613 .probe = probe_spi_rdid,
8614 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008615 .block_erasers =
8616 {
8617 {
8618 .eraseblocks = { {4 * 1024, 1024} },
8619 .block_erase = spi_block_erase_20,
8620 }, {
8621 .eraseblocks = { {32 * 1024, 128} },
8622 .block_erase = spi_block_erase_52,
8623 }, {
8624 .eraseblocks = { {64 * 1024, 64} },
8625 .block_erase = spi_block_erase_d8,
8626 }, {
8627 .eraseblocks = { {4 * 1024 * 1024, 1} },
8628 .block_erase = spi_block_erase_60,
8629 }, {
8630 .eraseblocks = { {4 * 1024 * 1024, 1} },
8631 .block_erase = spi_block_erase_c7,
8632 }
8633 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008634 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +00008635 .write = spi_chip_write_256,
8636 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008637 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +00008638 },
8639
8640 {
8641 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008642 .name = "W25X64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008643 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +00008644 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008645 .model_id = WINBOND_NEX_W25X64,
Zheng Bao1db2b752009-11-26 11:05:01 +00008646 .total_size = 8192,
8647 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008648 .feature_bits = FEATURE_WRSR_WREN,
Antony Rheneus0fbba982011-05-26 14:28:51 +00008649 .tested = TEST_OK_PROBE,
Zheng Bao1db2b752009-11-26 11:05:01 +00008650 .probe = probe_spi_rdid,
8651 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008652 .block_erasers =
8653 {
8654 {
8655 .eraseblocks = { {4 * 1024, 2048} },
8656 .block_erase = spi_block_erase_20,
8657 }, {
8658 .eraseblocks = { {32 * 1024, 256} },
8659 .block_erase = spi_block_erase_52,
8660 }, {
8661 .eraseblocks = { {64 * 1024, 128} },
8662 .block_erase = spi_block_erase_d8,
8663 }, {
8664 .eraseblocks = { {8 * 1024 * 1024, 1} },
8665 .block_erase = spi_block_erase_60,
8666 }, {
8667 .eraseblocks = { {8 * 1024 * 1024, 1} },
8668 .block_erase = spi_block_erase_c7,
8669 }
8670 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008671 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +00008672 .write = spi_chip_write_256,
8673 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008674 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +00008675 },
8676
8677 {
8678 .vendor = "Winbond",
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +00008679 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008680 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +00008681 .manufacture_id = WINBOND_ID,
8682 .model_id = WINBOND_W29C010,
8683 .total_size = 128,
8684 .page_size = 128,
8685 .feature_bits = FEATURE_LONG_RESET,
8686 .tested = TEST_OK_PRE,
8687 .probe = probe_w29ee011,
8688 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */
8689 .block_erasers =
8690 {
8691 {
8692 .eraseblocks = { {128 * 1024, 1} },
8693 .block_erase = erase_chip_block_jedec,
8694 }
8695 },
8696 .write = write_jedec,
8697 .read = read_memmapped,
8698 },
8699
8700 {/* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */
8701 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +00008702 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008703 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008704 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008705 .model_id = WINBOND_W29C010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008706 .total_size = 128,
8707 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00008708 .feature_bits = FEATURE_LONG_RESET,
David Hendricks567b7b82011-05-18 01:31:03 +00008709 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008710 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008711 .probe_timing = 10, /* used datasheet for the W29C011A */
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008712 .block_erasers =
8713 {
8714 {
8715 .eraseblocks = { {128 * 1024, 1} },
8716 .block_erase = erase_chip_block_jedec,
8717 }
8718 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008719 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008720 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00008721 },
8722
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008723 {
8724 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +00008725 .name = "W29C020(C)/W29C022",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008726 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008727 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008728 .model_id = WINBOND_W29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008729 .total_size = 256,
8730 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00008731 .feature_bits = FEATURE_LONG_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008732 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008733 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008734 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008735 .block_erasers =
8736 {
8737 {
8738 .eraseblocks = { {256 * 1024, 1} },
8739 .block_erase = erase_chip_block_jedec,
8740 }
8741 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008742 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008743 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008744 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00008745 },
8746
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008747 {
8748 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +00008749 .name = "W29C040/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008750 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008751 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008752 .model_id = WINBOND_W29C040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008753 .total_size = 512,
8754 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00008755 .feature_bits = FEATURE_LONG_RESET,
8756 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008757 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00008758 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008759 .block_erasers =
8760 {
8761 {
8762 .eraseblocks = { {512 * 1024, 1} },
8763 .block_erase = erase_chip_block_jedec,
8764 }
8765 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008766 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008767 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008768 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00008769 },
8770
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008771 {
8772 .vendor = "Winbond",
Michael Karcher19e0aac2011-03-06 17:58:05 +00008773 .name = "W39L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008774 .bustype = BUS_PARALLEL,
Michael Karcher19e0aac2011-03-06 17:58:05 +00008775 .manufacture_id = WINBOND_ID,
8776 .model_id = WINBOND_W39L040,
8777 .total_size = 512,
8778 .page_size = 64 * 1024,
8779 .feature_bits = FEATURE_EITHER_RESET,
8780 .tested = TEST_OK_PR,
8781 .probe = probe_jedec,
8782 .probe_timing = 10,
8783 .block_erasers =
8784 {
8785 {
8786 .eraseblocks = { {4 * 1024, 128} },
8787 .block_erase = erase_block_jedec,
8788 }, {
8789 .eraseblocks = { {64 * 1024, 8} },
8790 .block_erase = erase_sector_jedec,
8791 }, {
8792 .eraseblocks = { {512 * 1024, 1} },
8793 .block_erase = erase_chip_block_jedec,
8794 }
8795 },
8796 .printlock = printlock_w39l040,
8797 .write = write_jedec_1,
8798 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008799 .voltage = {3000, 3600},
Michael Karcher19e0aac2011-03-06 17:58:05 +00008800 },
8801
8802 {
8803 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008804 .name = "W39V040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008805 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008806 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008807 .model_id = WINBOND_W39V040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008808 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00008809 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008810 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +00008811 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008812 .probe = probe_jedec,
Stefan Tauner716e0982011-07-25 20:38:52 +00008813 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008814 .block_erasers =
8815 {
8816 {
8817 .eraseblocks = { {64 * 1024, 8} },
8818 .block_erase = erase_sector_jedec,
8819 }, {
8820 .eraseblocks = { {512 * 1024, 1} },
8821 .block_erase = erase_chip_block_jedec,
8822 }
8823 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008824 .printlock = printlock_w39v040a,
Sean Nelson35727f72010-01-28 23:55:12 +00008825 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008826 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008827 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008828 },
8829
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008830 {
8831 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008832 .name = "W39V040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008833 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008834 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008835 .model_id = WINBOND_W39V040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008836 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00008837 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008838 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00008839 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008840 .probe = probe_jedec,
Paul Menzel018d4822011-10-21 12:33:07 +00008841 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008842 .block_erasers =
8843 {
8844 {
8845 .eraseblocks = { {64 * 1024, 8} },
8846 .block_erase = erase_sector_jedec,
8847 }, {
8848 .eraseblocks = { {512 * 1024, 1} },
8849 .block_erase = erase_chip_block_jedec,
8850 }
8851 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008852 .printlock = printlock_w39v040b,
Sean Nelson35727f72010-01-28 23:55:12 +00008853 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008854 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008855 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008856 },
8857
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008858 {
8859 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008860 .name = "W39V040C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008861 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008862 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008863 .model_id = WINBOND_W39V040C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008864 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00008865 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008866 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00008867 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00008868 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008869 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008870 .block_erasers =
8871 {
8872 {
8873 .eraseblocks = { {64 * 1024, 8} },
8874 .block_erase = erase_sector_jedec,
8875 }, {
8876 .eraseblocks = { {512 * 1024, 1} },
8877 .block_erase = erase_chip_block_jedec,
8878 }
8879 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00008880 .printlock = printlock_w39v040c,
Sean Nelson35727f72010-01-28 23:55:12 +00008881 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008882 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008883 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008884 },
8885
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008886 {
8887 .vendor = "Winbond",
8888 .name = "W39V040FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008889 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008890 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008891 .model_id = WINBOND_W39V040FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008892 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00008893 .page_size = 64 * 1024,
Michael Karcherc9b63412010-05-30 16:55:18 +00008894 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Antony Rheneus0fbba982011-05-26 14:28:51 +00008895 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008896 .probe = probe_jedec,
Antony Rheneus0fbba982011-05-26 14:28:51 +00008897 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008898 .block_erasers =
8899 {
8900 {
8901 .eraseblocks = { {4 * 1024, 128} },
8902 .block_erase = erase_block_jedec,
8903 }, {
8904 .eraseblocks = { {64 * 1024, 8} },
8905 .block_erase = erase_sector_jedec,
8906 }, {
8907 .eraseblocks = { {512 * 1024, 1} },
8908 .block_erase = erase_chip_block_jedec,
8909 }
8910 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008911 .printlock = printlock_w39v040fa,
Michael Karcherc9b63412010-05-30 16:55:18 +00008912 .unlock = unlock_sst_fwhub,
Sean Nelson35727f72010-01-28 23:55:12 +00008913 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008914 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008915 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008916 },
8917
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008918 {
8919 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008920 .name = "W39V040FB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008921 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008922 .manufacture_id = WINBOND_ID,
8923 .model_id = WINBOND_W39V040B,
8924 .total_size = 512,
8925 .page_size = 64 * 1024,
8926 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00008927 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008928 .probe = probe_jedec,
8929 .probe_timing = 10,
8930 .block_erasers =
8931 {
8932 {
8933 .eraseblocks = { {64 * 1024, 8} },
8934 .block_erase = erase_sector_jedec,
8935 }, {
8936 .eraseblocks = { {512 * 1024, 1} },
8937 .block_erase = erase_chip_block_jedec,
8938 }
8939 },
8940 .printlock = printlock_w39v040fb,
Idwer Volleringecc67072010-12-26 23:55:12 +00008941 .unlock = unlock_w39v040fb,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008942 .write = write_jedec_1,
8943 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008944 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008945 },
8946
8947 {
8948 .vendor = "Winbond",
8949 .name = "W39V040FC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008950 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008951 .manufacture_id = WINBOND_ID,
8952 .model_id = WINBOND_W39V040C,
8953 .total_size = 512,
8954 .page_size = 64 * 1024,
8955 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +00008956 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008957 .probe = probe_jedec,
8958 .probe_timing = 10,
8959 .block_erasers =
8960 {
8961 {
8962 .eraseblocks = { {64 * 1024, 8} },
8963 .block_erase = erase_sector_jedec,
8964 }, {
8965 .eraseblocks = { {512 * 1024, 1} },
8966 .block_erase = erase_chip_block_jedec,
8967 }
8968 },
8969 .printlock = printlock_w39v040fc,
8970 .write = write_jedec_1,
8971 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008972 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008973 },
8974
8975 {
8976 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008977 .name = "W39V080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008978 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008979 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008980 .model_id = WINBOND_W39V080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008981 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +00008982 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008983 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +00008984 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008985 .probe = probe_jedec,
Paul Menzelac427b22012-02-16 21:07:07 +00008986 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008987 .block_erasers =
8988 {
8989 {
8990 .eraseblocks = { {64 * 1024, 16} },
8991 .block_erase = erase_sector_jedec,
8992 }, {
8993 .eraseblocks = { {1024 * 1024, 1} },
8994 .block_erase = erase_chip_block_jedec,
8995 }
8996 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008997 .printlock = printlock_w39v080a,
Sean Nelson35727f72010-01-28 23:55:12 +00008998 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008999 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009000 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009001 },
9002
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009003 {
9004 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +00009005 .name = "W49F002U/N",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009006 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009007 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009008 .model_id = WINBOND_W49F002U,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009009 .total_size = 256,
9010 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00009011 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +00009012 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009013 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009014 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009015 .block_erasers =
9016 {
9017 {
9018 .eraseblocks = {
9019 {128 * 1024, 1},
9020 {96 * 1024, 1},
9021 {8 * 1024, 2},
9022 {16 * 1024, 1},
9023 },
9024 .block_erase = erase_sector_jedec,
9025 }, {
9026 .eraseblocks = { {256 * 1024, 1} },
9027 .block_erase = erase_chip_block_jedec,
9028 }
9029 },
Sean Nelson35727f72010-01-28 23:55:12 +00009030 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009031 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009032 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009033 },
9034
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009035 {
9036 .vendor = "Winbond",
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +00009037 .name = "W49F020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009038 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +00009039 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009040 .model_id = WINBOND_W49F020,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +00009041 .total_size = 256,
9042 .page_size = 128,
9043 .feature_bits = FEATURE_EITHER_RESET,
9044 .tested = TEST_OK_PROBE,
9045 .probe = probe_jedec,
9046 .probe_timing = 10,
9047 .block_erasers =
9048 {
9049 {
9050 .eraseblocks = { {256 * 1024, 1} },
9051 .block_erase = erase_chip_block_jedec,
9052 }
9053 },
9054 .write = write_jedec_1,
9055 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009056 .voltage = {4500, 5500},
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +00009057 },
9058
9059 {
9060 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009061 .name = "W49V002A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009062 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009063 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009064 .model_id = WINBOND_W49V002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009065 .total_size = 256,
9066 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00009067 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00009068 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009069 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00009070 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009071 .block_erasers =
9072 {
9073 {
9074 .eraseblocks = {
9075 {64 * 1024, 3},
9076 {32 * 1024, 1},
9077 {8 * 1024, 2},
9078 {16 * 1024, 1},
9079 },
9080 .block_erase = erase_sector_jedec,
9081 }, {
9082 .eraseblocks = { {256 * 1024, 1} },
9083 .block_erase = erase_chip_block_jedec,
9084 }
9085 },
Sean Nelson35727f72010-01-28 23:55:12 +00009086 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009087 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009088 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009089 },
9090
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009091 {
9092 .vendor = "Winbond",
9093 .name = "W49V002FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009094 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009095 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009096 .model_id = WINBOND_W49V002FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009097 .total_size = 256,
9098 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00009099 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00009100 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009101 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009102 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009103 .block_erasers =
9104 {
9105 {
9106 .eraseblocks = {
9107 {64 * 1024, 3},
9108 {32 * 1024, 1},
9109 {8 * 1024, 2},
9110 {16 * 1024, 1},
9111 },
9112 .block_erase = erase_sector_jedec,
9113 }, {
9114 .eraseblocks = { {256 * 1024, 1} },
9115 .block_erase = erase_chip_block_jedec,
9116 }
9117 },
Sean Nelson35727f72010-01-28 23:55:12 +00009118 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009119 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009120 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009121 },
9122
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009123 {
9124 .vendor = "Winbond",
9125 .name = "W39V080FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009126 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009127 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009128 .model_id = WINBOND_W39V080FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009129 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +00009130 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009131 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +00009132 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00009133 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009134 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009135 .block_erasers =
9136 {
9137 {
9138 .eraseblocks = { {64 * 1024, 16}, },
9139 .block_erase = erase_sector_jedec,
9140 }, {
9141 .eraseblocks = { {1024 * 1024, 1} },
9142 .block_erase = erase_chip_block_jedec,
9143 }
9144 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009145 .printlock = printlock_w39v080fa,
9146 .unlock = unlock_w39v080fa,
Sean Nelson35727f72010-01-28 23:55:12 +00009147 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009148 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009149 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +00009150 },
9151
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009152 {
9153 .vendor = "Winbond",
9154 .name = "W39V080FA (dual mode)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009155 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009156 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009157 .model_id = WINBOND_W39V080FA_DM,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009158 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00009159 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009160 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009161 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00009162 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009163 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009164 .block_erasers =
9165 {
9166 {
9167 .eraseblocks = { {64 * 1024, 8}, },
9168 .block_erase = erase_sector_jedec,
9169 }, {
9170 .eraseblocks = { {512 * 1024, 1} },
9171 .block_erase = erase_chip_block_jedec,
9172 }
9173 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009174 .printlock = printlock_w39v080fa_dual,
Sean Nelson35727f72010-01-28 23:55:12 +00009175 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009176 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009177 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +00009178 },
Stefan Taunerac1b4c82012-02-17 14:51:04 +00009179
9180 {
9181 .vendor = "Unknown",
9182 .name = "SFDP-capable chip",
9183 .bustype = BUS_SPI,
9184 .manufacture_id = GENERIC_MANUF_ID,
9185 .model_id = SFDP_DEVICE_ID,
9186 /* We present our own "report this" text hence we do not
9187 * want the default "This flash part has status UNTESTED..."
9188 * text to be printed. */
9189 .tested = TEST_OK_PREW,
9190 .probe = probe_spi_sfdp,
9191 .unlock = spi_disable_blockprotect, /* is this safe? */
9192 .read = spi_chip_read,
9193 /* FIXME: some vendor extensions define this */
9194 .voltage = {},
9195 /* Everything below will be set by the probing function. */
9196 .write = NULL,
9197 .total_size = 0,
9198 .page_size = 0,
9199 .feature_bits = 0,
9200 .block_erasers = {},
9201 },
FENG yu ningff692fb2008-12-08 18:15:10 +00009202
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009203 {
Carl-Daniel Hailfinger532c7172011-11-04 21:35:26 +00009204 .vendor = "Programmer",
9205 .name = "Opaque flash chip",
9206 .bustype = BUS_PROG,
9207 .manufacture_id = PROGMANUF_ID,
9208 .model_id = PROGDEV_ID,
9209 .total_size = 0,
9210 .page_size = 256,
9211 /* probe is assumed to work, rest will be filled in by probe */
9212 .tested = TEST_OK_PROBE,
9213 .probe = probe_opaque,
9214 /* eraseblock sizes will be set by the probing function */
9215 .block_erasers =
9216 {
9217 {
9218 .block_erase = erase_opaque,
9219 }
9220 },
9221 .write = write_opaque,
9222 .read = read_opaque,
9223 },
9224
9225 {
Daniel Lenskidf90d3a2010-07-22 11:44:38 +00009226 .vendor = "AMIC",
9227 .name = "unknown AMIC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009228 .bustype = BUS_SPI,
Daniel Lenskidf90d3a2010-07-22 11:44:38 +00009229 .manufacture_id = AMIC_ID,
9230 .model_id = GENERIC_DEVICE_ID,
9231 .total_size = 0,
9232 .page_size = 256,
9233 .tested = TEST_BAD_PREW,
9234 .probe = probe_spi_rdid4,
9235 .probe_timing = TIMING_ZERO,
9236 .write = NULL,
9237 .read = NULL,
9238 },
9239
9240 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009241 .vendor = "Atmel",
9242 .name = "unknown Atmel SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009243 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009244 .manufacture_id = ATMEL_ID,
9245 .model_id = GENERIC_DEVICE_ID,
9246 .total_size = 0,
9247 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00009248 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009249 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009250 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009251 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009252 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00009253 },
9254
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009255 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00009256 .vendor = "Eon",
9257 .name = "unknown Eon SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009258 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009259 .manufacture_id = EON_ID_NOPREFIX,
9260 .model_id = GENERIC_DEVICE_ID,
9261 .total_size = 0,
9262 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00009263 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009264 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009265 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009266 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009267 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00009268 },
9269
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009270 {
9271 .vendor = "Macronix",
9272 .name = "unknown Macronix SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009273 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009274 .manufacture_id = MACRONIX_ID,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009275 .model_id = GENERIC_DEVICE_ID,
9276 .total_size = 0,
9277 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00009278 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009279 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009280 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009281 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009282 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00009283 },
9284
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009285 {
9286 .vendor = "PMC",
9287 .name = "unknown PMC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009288 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009289 .manufacture_id = PMC_ID,
9290 .model_id = GENERIC_DEVICE_ID,
9291 .total_size = 0,
9292 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00009293 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009294 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009295 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009296 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009297 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00009298 },
9299
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009300 {
9301 .vendor = "SST",
9302 .name = "unknown SST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009303 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009304 .manufacture_id = SST_ID,
9305 .model_id = GENERIC_DEVICE_ID,
9306 .total_size = 0,
9307 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00009308 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009309 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009310 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009311 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009312 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00009313 },
9314
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009315 {
9316 .vendor = "ST",
9317 .name = "unknown ST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009318 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009319 .manufacture_id = ST_ID,
9320 .model_id = GENERIC_DEVICE_ID,
9321 .total_size = 0,
9322 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00009323 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009324 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009325 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009326 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009327 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00009328 },
Uwe Hermannfc425e82008-03-16 02:06:25 +00009329
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00009330 {
Sean Nelson118e1d62009-11-24 02:08:11 +00009331 .vendor = "Sanyo",
9332 .name = "unknown Sanyo SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009333 .bustype = BUS_SPI,
Sean Nelson118e1d62009-11-24 02:08:11 +00009334 .manufacture_id = SANYO_ID,
9335 .model_id = GENERIC_DEVICE_ID,
9336 .total_size = 0,
9337 .page_size = 256,
9338 .tested = TEST_BAD_PREW,
9339 .probe = probe_spi_rdid,
9340 .probe_timing = TIMING_ZERO,
Sean Nelson118e1d62009-11-24 02:08:11 +00009341 .write = NULL,
9342 .read = NULL,
9343 },
9344
9345 {
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00009346 .vendor = "Generic",
9347 .name = "unknown SPI chip (RDID)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009348 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00009349 .manufacture_id = GENERIC_MANUF_ID,
9350 .model_id = GENERIC_DEVICE_ID,
9351 .total_size = 0,
9352 .page_size = 256,
9353 .tested = TEST_BAD_PREW,
9354 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00009355 .write = NULL,
9356 },
Stefan Tauneraf2db612011-12-02 21:48:17 +00009357
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00009358 {
9359 .vendor = "Generic",
9360 .name = "unknown SPI chip (REMS)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009361 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00009362 .manufacture_id = GENERIC_MANUF_ID,
9363 .model_id = GENERIC_DEVICE_ID,
9364 .total_size = 0,
9365 .page_size = 256,
9366 .tested = TEST_BAD_PREW,
9367 .probe = probe_spi_rems,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00009368 .write = NULL,
9369 },
9370
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009371 { NULL }
Stephan Guilloux72cf5652009-04-21 01:46:07 +00009372};