blob: 5ee821083765f00eef1b6f6a45eedbc75bbcb439 [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,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001123 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001124 .tested = TEST_UNTESTED,
1125 .probe = probe_spi_rdid,
1126 .probe_timing = TIMING_ZERO,
1127 .block_erasers =
1128 {
1129 {
1130 .eraseblocks = { { 4 * 1024, 1024 } },
1131 .block_erase = spi_block_erase_20,
1132 }, {
1133 .eraseblocks = { { 64 * 1024, 64 } },
1134 .block_erase = spi_block_erase_52,
1135 }, {
1136 .eraseblocks = { { 64 * 1024, 64 } },
1137 .block_erase = spi_block_erase_d8,
1138 }, {
1139 .eraseblocks = { { 4096 * 1024, 1 } },
1140 .block_erase = spi_block_erase_60,
1141 }, {
1142 .eraseblocks = { { 4096 * 1024, 1 } },
1143 .block_erase = spi_block_erase_c7,
1144 }
1145 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001146 .printlock = spi_prettyprint_status_register_amic_a25l032,
Dan Lenski11617122010-07-29 15:00:40 +00001147 .unlock = NULL, /* Two status reg bytes (read with 0x35 and 0x05) */
1148 .write = spi_chip_write_256,
1149 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001150 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001151 },
1152
1153 {
1154 .vendor = "AMIC",
1155 .name = "A25LQ032",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001156 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001157 .manufacture_id = AMIC_ID_NOPREFIX,
1158 .model_id = AMIC_A25LQ032,
1159 .total_size = 4096,
1160 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001161 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001162 .tested = TEST_UNTESTED,
1163 .probe = probe_spi_rdid,
1164 .probe_timing = TIMING_ZERO,
1165 .block_erasers =
1166 {
1167 {
1168 .eraseblocks = { { 4 * 1024, 1024 } },
1169 .block_erase = spi_block_erase_20,
1170 }, {
1171 .eraseblocks = { { 64 * 1024, 64 } },
1172 .block_erase = spi_block_erase_52,
1173 }, {
1174 .eraseblocks = { { 64 * 1024, 64 } },
1175 .block_erase = spi_block_erase_d8,
1176 }, {
1177 .eraseblocks = { { 4096 * 1024, 1 } },
1178 .block_erase = spi_block_erase_60,
1179 }, {
1180 .eraseblocks = { { 4096 * 1024, 1 } },
1181 .block_erase = spi_block_erase_c7,
1182 }
1183 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001184 .printlock = spi_prettyprint_status_register_amic_a25lq032,
Dan Lenski11617122010-07-29 15:00:40 +00001185 .unlock = NULL, /* Two status reg bytes (read with 0x35 and 0x05) */
1186 .write = spi_chip_write_256,
1187 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001188 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001189 },
1190
1191 {
1192 .vendor = "AMIC",
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001193 .name = "A29002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001194 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001195 .manufacture_id = AMIC_ID_NOPREFIX,
1196 .model_id = AMIC_A29002B,
1197 .total_size = 256,
1198 .page_size = 64 * 1024,
1199 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
1200 .tested = TEST_UNTESTED,
1201 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001202 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001203 .block_erasers =
1204 {
1205 {
1206 .eraseblocks = {
1207 {16 * 1024, 1},
1208 {8 * 1024, 2},
1209 {32 * 1024, 1},
1210 {64 * 1024, 3},
1211 },
1212 .block_erase = erase_sector_jedec,
1213 }, {
1214 .eraseblocks = { {256 * 1024, 1} },
1215 .block_erase = erase_chip_block_jedec,
1216 },
1217 },
1218 .write = write_jedec_1,
1219 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001220 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001221 },
1222
1223 {
1224 .vendor = "AMIC",
1225 .name = "A29002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001226 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001227 .manufacture_id = AMIC_ID_NOPREFIX,
1228 .model_id = AMIC_A29002T,
1229 .total_size = 256,
1230 .page_size = 64 * 1024,
1231 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00001232 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001233 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001234 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001235 .block_erasers =
1236 {
1237 {
1238 .eraseblocks = {
1239 {64 * 1024, 3},
1240 {32 * 1024, 1},
1241 {8 * 1024, 2},
1242 {16 * 1024, 1},
1243 },
1244 .block_erase = erase_sector_jedec,
1245 }, {
1246 .eraseblocks = { {256 * 1024, 1} },
1247 .block_erase = erase_chip_block_jedec,
1248 },
1249 },
1250 .write = write_jedec_1,
1251 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001252 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001253 },
1254
1255 {
1256 .vendor = "AMIC",
1257 .name = "A29040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001258 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001259 .manufacture_id = AMIC_ID_NOPREFIX,
1260 .model_id = AMIC_A29040B,
1261 .total_size = 512,
1262 .page_size = 64 * 1024,
1263 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
1264 .tested = TEST_UNTESTED,
1265 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001266 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001267 .block_erasers =
1268 {
1269 {
1270 .eraseblocks = { {64 * 1024, 8} },
1271 .block_erase = erase_sector_jedec,
1272 }, {
1273 .eraseblocks = { {512 * 1024, 1} },
1274 .block_erase = erase_chip_block_jedec,
1275 },
1276 },
1277 .write = write_jedec_1,
1278 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001279 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001280 },
1281
1282 {
1283 .vendor = "AMIC",
1284 .name = "A49LF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001285 .bustype = BUS_LPC,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001286 .manufacture_id = AMIC_ID_NOPREFIX,
1287 .model_id = AMIC_A49LF040A,
1288 .total_size = 512,
1289 .page_size = 64 * 1024,
1290 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00001291 .tested = TEST_OK_PRE,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001292 .probe = probe_jedec,
1293 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
1294 .block_erasers =
1295 {
1296 {
1297 .eraseblocks = { {64 * 1024, 8} },
1298 .block_erase = erase_block_jedec,
1299 }, {
1300 .eraseblocks = { {512 * 1024, 1} },
1301 .block_erase = erase_chip_block_jedec,
1302 }
1303 },
1304 .unlock = unlock_49fl00x,
1305 .write = write_jedec_1,
1306 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001307 .voltage = {3000, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001308 },
1309
1310 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001311 .vendor = "Atmel",
1312 .name = "AT25DF021",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001313 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001314 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001315 .model_id = ATMEL_AT25DF021,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001316 .total_size = 256,
1317 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001318 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001319 .tested = TEST_UNTESTED,
1320 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001321 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001322 .block_erasers =
1323 {
1324 {
1325 .eraseblocks = { {4 * 1024, 64} },
1326 .block_erase = spi_block_erase_20,
1327 }, {
1328 .eraseblocks = { {32 * 1024, 8} },
1329 .block_erase = spi_block_erase_52,
1330 }, {
1331 .eraseblocks = { {64 * 1024, 4} },
1332 .block_erase = spi_block_erase_d8,
1333 }, {
1334 .eraseblocks = { {256 * 1024, 1} },
1335 .block_erase = spi_block_erase_60,
1336 }, {
1337 .eraseblocks = { {256 * 1024, 1} },
1338 .block_erase = spi_block_erase_c7,
1339 }
1340 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001341 .printlock = spi_prettyprint_status_register_at25df,
1342 .unlock = spi_disable_blockprotect_at25df,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001343 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001344 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001345 .voltage = {2700, 3600}, /* 2.3-3.6V & 2.7-3.6V models available */
FENG yu ningff692fb2008-12-08 18:15:10 +00001346 },
1347
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001348 {
1349 .vendor = "Atmel",
1350 .name = "AT25DF041A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001351 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001352 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001353 .model_id = ATMEL_AT25DF041A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001354 .total_size = 512,
1355 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001356 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001357 .tested = TEST_UNTESTED,
1358 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001359 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001360 .block_erasers =
1361 {
1362 {
1363 .eraseblocks = { {4 * 1024, 128} },
1364 .block_erase = spi_block_erase_20,
1365 }, {
1366 .eraseblocks = { {32 * 1024, 16} },
1367 .block_erase = spi_block_erase_52,
1368 }, {
1369 .eraseblocks = { {64 * 1024, 8} },
1370 .block_erase = spi_block_erase_d8,
1371 }, {
1372 .eraseblocks = { {512 * 1024, 1} },
1373 .block_erase = spi_block_erase_60,
1374 }, {
1375 .eraseblocks = { {512 * 1024, 1} },
1376 .block_erase = spi_block_erase_c7,
1377 }
1378 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001379 .printlock = spi_prettyprint_status_register_at25df,
1380 .unlock = spi_disable_blockprotect_at25df,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001381 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001382 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001383 .voltage = {2700, 3600}, /* 2.3-3.6V & 2.7-3.6V models available */
FENG yu ningff692fb2008-12-08 18:15:10 +00001384 },
1385
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001386 {
1387 .vendor = "Atmel",
1388 .name = "AT25DF081",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001389 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001390 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001391 .model_id = ATMEL_AT25DF081,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001392 .total_size = 1024,
1393 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001394 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001395 .tested = TEST_UNTESTED,
1396 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001397 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001398 .block_erasers =
1399 {
1400 {
1401 .eraseblocks = { {4 * 1024, 256} },
1402 .block_erase = spi_block_erase_20,
1403 }, {
1404 .eraseblocks = { {32 * 1024, 32} },
1405 .block_erase = spi_block_erase_52,
1406 }, {
1407 .eraseblocks = { {64 * 1024, 16} },
1408 .block_erase = spi_block_erase_d8,
1409 }, {
1410 .eraseblocks = { {1024 * 1024, 1} },
1411 .block_erase = spi_block_erase_60,
1412 }, {
1413 .eraseblocks = { {1024 * 1024, 1} },
1414 .block_erase = spi_block_erase_c7,
1415 }
1416 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001417 .printlock = spi_prettyprint_status_register_at25df,
1418 .unlock = spi_disable_blockprotect_at25df,
1419 .write = spi_chip_write_256,
1420 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001421 .voltage = {1600, 2000}, /* Datasheet says range is 1.65-1.95 V */
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001422 },
1423
1424 {
1425 .vendor = "Atmel",
1426 .name = "AT25DF081A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001427 .bustype = BUS_SPI,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001428 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001429 .model_id = ATMEL_AT25DF081A,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001430 .total_size = 1024,
1431 .page_size = 256,
1432 .feature_bits = FEATURE_WRSR_WREN,
1433 .tested = TEST_UNTESTED,
1434 .probe = probe_spi_rdid,
1435 .probe_timing = TIMING_ZERO,
1436 .block_erasers =
1437 {
1438 {
1439 .eraseblocks = { {4 * 1024, 256} },
1440 .block_erase = spi_block_erase_20,
1441 }, {
1442 .eraseblocks = { {32 * 1024, 32} },
1443 .block_erase = spi_block_erase_52,
1444 }, {
1445 .eraseblocks = { {64 * 1024, 16} },
1446 .block_erase = spi_block_erase_d8,
1447 }, {
1448 .eraseblocks = { {1024 * 1024, 1} },
1449 .block_erase = spi_block_erase_60,
1450 }, {
1451 .eraseblocks = { {1024 * 1024, 1} },
1452 .block_erase = spi_block_erase_c7,
1453 }
1454 },
1455 .printlock = spi_prettyprint_status_register_at25df_sec,
1456 .unlock = spi_disable_blockprotect_at25df_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001457 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001458 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001459 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001460 },
1461
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001462 {
1463 .vendor = "Atmel",
1464 .name = "AT25DF161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001465 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001466 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001467 .model_id = ATMEL_AT25DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001468 .total_size = 2048,
1469 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001470 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001471 .tested = TEST_UNTESTED,
1472 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001473 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001474 .block_erasers =
1475 {
1476 {
1477 .eraseblocks = { {4 * 1024, 512} },
1478 .block_erase = spi_block_erase_20,
1479 }, {
1480 .eraseblocks = { {32 * 1024, 64} },
1481 .block_erase = spi_block_erase_52,
1482 }, {
1483 .eraseblocks = { {64 * 1024, 32} },
1484 .block_erase = spi_block_erase_d8,
1485 }, {
1486 .eraseblocks = { {2 * 1024 * 1024, 1} },
1487 .block_erase = spi_block_erase_60,
1488 }, {
1489 .eraseblocks = { {2 * 1024 * 1024, 1} },
1490 .block_erase = spi_block_erase_c7,
1491 }
1492 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001493 .printlock = spi_prettyprint_status_register_at25df_sec,
1494 .unlock = spi_disable_blockprotect_at25df_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001495 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001496 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001497 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001498 },
1499
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001500 {
1501 .vendor = "Atmel",
1502 .name = "AT25DF321",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001503 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001504 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001505 .model_id = ATMEL_AT25DF321,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001506 .total_size = 4096,
1507 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001508 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd06d9412011-06-12 19:47:55 +00001509 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001510 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001511 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001512 .block_erasers =
1513 {
1514 {
1515 .eraseblocks = { {4 * 1024, 1024} },
1516 .block_erase = spi_block_erase_20,
1517 }, {
1518 .eraseblocks = { {32 * 1024, 128} },
1519 .block_erase = spi_block_erase_52,
1520 }, {
1521 .eraseblocks = { {64 * 1024, 64} },
1522 .block_erase = spi_block_erase_d8,
1523 }, {
1524 .eraseblocks = { {4 * 1024 * 1024, 1} },
1525 .block_erase = spi_block_erase_60,
1526 }, {
1527 .eraseblocks = { {4 * 1024 * 1024, 1} },
1528 .block_erase = spi_block_erase_c7,
1529 }
1530 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001531 .printlock = spi_prettyprint_status_register_at25df,
1532 .unlock = spi_disable_blockprotect_at25df,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001533 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001534 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001535 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001536 },
1537
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001538 {
1539 .vendor = "Atmel",
1540 .name = "AT25DF321A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001541 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001542 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001543 .model_id = ATMEL_AT25DF321A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001544 .total_size = 4096,
1545 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001546 .feature_bits = FEATURE_WRSR_WREN,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00001547 .tested = TEST_OK_PROBE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001548 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001549 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001550 .block_erasers =
1551 {
1552 {
1553 .eraseblocks = { {4 * 1024, 1024} },
1554 .block_erase = spi_block_erase_20,
1555 }, {
1556 .eraseblocks = { {32 * 1024, 128} },
1557 .block_erase = spi_block_erase_52,
1558 }, {
1559 .eraseblocks = { {64 * 1024, 64} },
1560 .block_erase = spi_block_erase_d8,
1561 }, {
1562 .eraseblocks = { {4 * 1024 * 1024, 1} },
1563 .block_erase = spi_block_erase_60,
1564 }, {
1565 .eraseblocks = { {4 * 1024 * 1024, 1} },
1566 .block_erase = spi_block_erase_c7,
1567 }
1568 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001569 .printlock = spi_prettyprint_status_register_at25df_sec,
1570 .unlock = spi_disable_blockprotect_at25df_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001571 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001572 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001573 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001574 },
1575
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001576 {
1577 .vendor = "Atmel",
1578 .name = "AT25DF641",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001579 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001580 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001581 .model_id = ATMEL_AT25DF641,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001582 .total_size = 8192,
1583 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001584 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001585 .tested = TEST_UNTESTED,
1586 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001587 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001588 .block_erasers =
1589 {
1590 {
1591 .eraseblocks = { {4 * 1024, 2048} },
1592 .block_erase = spi_block_erase_20,
1593 }, {
1594 .eraseblocks = { {32 * 1024, 256} },
1595 .block_erase = spi_block_erase_52,
1596 }, {
1597 .eraseblocks = { {64 * 1024, 128} },
1598 .block_erase = spi_block_erase_d8,
1599 }, {
1600 .eraseblocks = { {8 * 1024 * 1024, 1} },
1601 .block_erase = spi_block_erase_60,
1602 }, {
1603 .eraseblocks = { {8 * 1024 * 1024, 1} },
1604 .block_erase = spi_block_erase_c7,
1605 }
1606 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001607 .printlock = spi_prettyprint_status_register_at25df_sec,
1608 .unlock = spi_disable_blockprotect_at25df_sec,
1609 .write = spi_chip_write_256,
1610 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001611 .voltage = {2700, 3600},
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001612 },
1613
1614 {
1615 .vendor = "Atmel",
1616 .name = "AT25DQ161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001617 .bustype = BUS_SPI,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001618 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001619 .model_id = ATMEL_AT25DQ161,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001620 .total_size = 2048,
1621 .page_size = 256,
1622 .feature_bits = FEATURE_WRSR_WREN,
1623 .tested = TEST_UNTESTED,
1624 .probe = probe_spi_rdid,
1625 .probe_timing = TIMING_ZERO,
1626 .block_erasers =
1627 {
1628 {
1629 .eraseblocks = { {4 * 1024, 512} },
1630 .block_erase = spi_block_erase_20,
1631 }, {
1632 .eraseblocks = { {32 * 1024, 64} },
1633 .block_erase = spi_block_erase_52,
1634 }, {
1635 .eraseblocks = { {64 * 1024, 32} },
1636 .block_erase = spi_block_erase_d8,
1637 }, {
1638 .eraseblocks = { {2 * 1024 * 1024, 1} },
1639 .block_erase = spi_block_erase_60,
1640 }, {
1641 .eraseblocks = { {2 * 1024 * 1024, 1} },
1642 .block_erase = spi_block_erase_c7,
1643 }
1644 },
1645 .printlock = spi_prettyprint_status_register_at25df_sec,
1646 .unlock = spi_disable_blockprotect_at25df_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001647 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001648 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001649 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001650 },
1651
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001652 {
1653 .vendor = "Atmel",
1654 .name = "AT25F512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001655 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001656 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001657 .model_id = ATMEL_AT25F512B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001658 .total_size = 64,
1659 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001660 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001661 .tested = TEST_UNTESTED,
1662 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001663 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001664 .block_erasers =
1665 {
1666 {
1667 .eraseblocks = { {4 * 1024, 16} },
1668 .block_erase = spi_block_erase_20,
1669 }, {
1670 .eraseblocks = { {32 * 1024, 2} },
1671 .block_erase = spi_block_erase_52,
1672 }, {
1673 .eraseblocks = { {32 * 1024, 2} },
1674 .block_erase = spi_block_erase_d8,
1675 }, {
1676 .eraseblocks = { {64 * 1024, 1} },
1677 .block_erase = spi_block_erase_60,
1678 }, {
1679 .eraseblocks = { {64 * 1024, 1} },
1680 .block_erase = spi_block_erase_c7,
1681 }
1682 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001683 .printlock = spi_prettyprint_status_register_at25f,
1684 .unlock = spi_disable_blockprotect_at25f,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001685 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001686 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001687 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001688 },
1689
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001690 {
1691 .vendor = "Atmel",
1692 .name = "AT25FS010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001693 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001694 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001695 .model_id = ATMEL_AT25FS010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001696 .total_size = 128,
1697 .page_size = 256,
1698 .tested = TEST_UNTESTED,
1699 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001700 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001701 .block_erasers =
1702 {
1703 {
1704 .eraseblocks = { {4 * 1024, 32} },
1705 .block_erase = spi_block_erase_20,
1706 }, {
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001707 .eraseblocks = { {4 * 1024, 32} },
1708 .block_erase = spi_block_erase_d7,
1709 }, {
Sean Nelson89187292009-12-23 12:02:55 +00001710 .eraseblocks = { {32 * 1024, 4} },
1711 .block_erase = spi_block_erase_52,
1712 }, {
1713 .eraseblocks = { {32 * 1024, 4} },
1714 .block_erase = spi_block_erase_d8,
1715 }, {
1716 .eraseblocks = { {128 * 1024, 1} },
1717 .block_erase = spi_block_erase_60,
1718 }, {
1719 .eraseblocks = { {128 * 1024, 1} },
1720 .block_erase = spi_block_erase_c7,
1721 }
1722 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001723 .printlock = spi_prettyprint_status_register_at25fs010,
1724 .unlock = spi_disable_blockprotect_at25fs010,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001725 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001726 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001727 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001728 },
1729
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001730 {
1731 .vendor = "Atmel",
1732 .name = "AT25FS040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001733 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001734 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001735 .model_id = ATMEL_AT25FS040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001736 .total_size = 512,
1737 .page_size = 256,
1738 .tested = TEST_UNTESTED,
1739 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001740 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001741 .block_erasers =
1742 {
1743 {
1744 .eraseblocks = { {4 * 1024, 128} },
1745 .block_erase = spi_block_erase_20,
1746 }, {
1747 .eraseblocks = { {64 * 1024, 8} },
1748 .block_erase = spi_block_erase_52,
1749 }, {
1750 .eraseblocks = { {64 * 1024, 8} },
1751 .block_erase = spi_block_erase_d8,
1752 }, {
1753 .eraseblocks = { {512 * 1024, 1} },
1754 .block_erase = spi_block_erase_60,
1755 }, {
1756 .eraseblocks = { {512 * 1024, 1} },
1757 .block_erase = spi_block_erase_c7,
1758 }
1759 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001760 .printlock = spi_prettyprint_status_register_at25fs040,
1761 .unlock = spi_disable_blockprotect_at25fs040,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001762 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001763 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001764 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001765 },
1766
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001767 {
1768 .vendor = "Atmel",
1769 .name = "AT26DF041",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001770 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001771 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001772 .model_id = ATMEL_AT26DF041,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001773 .total_size = 512,
1774 .page_size = 256,
1775 .tested = TEST_UNTESTED,
1776 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001777 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001778 .block_erasers =
1779 {
1780 {
1781 .eraseblocks = { {4 * 1024, 128} },
1782 .block_erase = spi_block_erase_20,
1783 }
1784 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001785 .write = NULL /* Incompatible Page write */,
1786 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001787 .voltage = {2700, 3600}, /* 3.0-3.6V for higher speed, 2.7-3.6V normal */
FENG yu ningff692fb2008-12-08 18:15:10 +00001788 },
1789
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001790 {
1791 .vendor = "Atmel",
1792 .name = "AT26DF081A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001793 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001794 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001795 .model_id = ATMEL_AT26DF081A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001796 .total_size = 1024,
1797 .page_size = 256,
Mathias Krause2c3afa32011-01-17 07:45:54 +00001798 .feature_bits = FEATURE_WRSR_WREN,
1799 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001800 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001801 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001802 .block_erasers =
1803 {
1804 {
1805 .eraseblocks = { {4 * 1024, 256} },
1806 .block_erase = spi_block_erase_20,
1807 }, {
1808 .eraseblocks = { {32 * 1024, 32} },
1809 .block_erase = spi_block_erase_52,
1810 }, {
1811 .eraseblocks = { {64 * 1024, 16} },
1812 .block_erase = spi_block_erase_d8,
1813 }, {
1814 .eraseblocks = { {1024 * 1024, 1} },
1815 .block_erase = spi_block_erase_60,
1816 }, {
1817 .eraseblocks = { {1024 * 1024, 1} },
1818 .block_erase = spi_block_erase_c7,
1819 }
1820 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001821 .printlock = spi_prettyprint_status_register_atmel_at26df081a,
Mathias Krause2c3afa32011-01-17 07:45:54 +00001822 .unlock = spi_disable_blockprotect_at25df,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001823 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001824 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001825 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001826 },
1827
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001828 {
1829 .vendor = "Atmel",
1830 .name = "AT26DF161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001831 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001832 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001833 .model_id = ATMEL_AT26DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001834 .total_size = 2048,
1835 .page_size = 256,
1836 .tested = TEST_UNTESTED,
1837 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001838 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001839 .block_erasers =
1840 {
1841 {
1842 .eraseblocks = { {4 * 1024, 512} },
1843 .block_erase = spi_block_erase_20,
1844 }, {
1845 .eraseblocks = { {32 * 1024, 64} },
1846 .block_erase = spi_block_erase_52,
1847 }, {
1848 .eraseblocks = { {64 * 1024, 32} },
1849 .block_erase = spi_block_erase_d8,
1850 }, {
1851 .eraseblocks = { {2 * 1024 * 1024, 1} },
1852 .block_erase = spi_block_erase_60,
1853 }, {
1854 .eraseblocks = { {2 * 1024 * 1024, 1} },
1855 .block_erase = spi_block_erase_c7,
1856 }
1857 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001858 .printlock = spi_prettyprint_status_register_at25df,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00001859 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001860 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001861 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001862 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001863 },
1864
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001865 {
1866 .vendor = "Atmel",
1867 .name = "AT26DF161A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001868 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001869 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001870 .model_id = ATMEL_AT26DF161A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001871 .total_size = 2048,
1872 .page_size = 256,
1873 .tested = TEST_UNTESTED,
1874 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001875 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001876 .block_erasers =
1877 {
1878 {
1879 .eraseblocks = { {4 * 1024, 512} },
1880 .block_erase = spi_block_erase_20,
1881 }, {
1882 .eraseblocks = { {32 * 1024, 64} },
1883 .block_erase = spi_block_erase_52,
1884 }, {
1885 .eraseblocks = { {64 * 1024, 32} },
1886 .block_erase = spi_block_erase_d8,
1887 }, {
1888 .eraseblocks = { {2 * 1024 * 1024, 1} },
1889 .block_erase = spi_block_erase_60,
1890 }, {
1891 .eraseblocks = { {2 * 1024 * 1024, 1} },
1892 .block_erase = spi_block_erase_c7,
1893 }
1894 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001895 .printlock = spi_prettyprint_status_register_atmel_at26df081a,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00001896 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001897 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001898 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001899 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001900 },
1901
1902 /*The AT26DF321 has the same ID as the AT25DF321. */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001903 /*{
1904 .vendor = "Atmel",
1905 .name = "AT26DF321",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001906 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001907 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001908 .model_id = ATMEL_AT26DF321,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001909 .total_size = 4096,
1910 .page_size = 256,
1911 .tested = TEST_UNTESTED,
1912 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001913 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001914 .printlock = spi_prettyprint_status_register_atmel_at26df081a,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00001915 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001916 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001917 .read = spi_chip_read,
1918 },*/
FENG yu ningff692fb2008-12-08 18:15:10 +00001919
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001920 {
1921 .vendor = "Atmel",
1922 .name = "AT26F004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001923 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001924 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001925 .model_id = ATMEL_AT26F004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001926 .total_size = 512,
1927 .page_size = 256,
1928 .tested = TEST_UNTESTED,
1929 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001930 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001931 .block_erasers =
1932 {
1933 {
1934 .eraseblocks = { {4 * 1024, 128} },
1935 .block_erase = spi_block_erase_20,
1936 }, {
1937 .eraseblocks = { {32 * 1024, 16} },
1938 .block_erase = spi_block_erase_52,
1939 }, {
1940 .eraseblocks = { {64 * 1024, 8} },
1941 .block_erase = spi_block_erase_d8,
1942 }, {
1943 .eraseblocks = { {512 * 1024, 1} },
1944 .block_erase = spi_block_erase_60,
1945 }, {
1946 .eraseblocks = { {512 * 1024, 1} },
1947 .block_erase = spi_block_erase_c7,
1948 }
1949 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001950 .write = NULL /* Incompatible Page write */,
1951 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001952 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001953 },
1954
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001955 {
1956 .vendor = "Atmel",
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00001957 .name = "AT29C512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001958 .bustype = BUS_PARALLEL,
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00001959 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001960 .model_id = ATMEL_AT29C512,
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00001961 .total_size = 64,
1962 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00001963 .feature_bits = FEATURE_LONG_RESET,
1964 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00001965 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00001966 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00001967 .block_erasers =
1968 {
1969 {
1970 .eraseblocks = { {64 * 1024, 1} },
1971 .block_erase = erase_chip_block_jedec,
1972 }
1973 },
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00001974 .write = write_jedec,
1975 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001976 .voltage = {4500, 5500},
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00001977 },
1978
1979 {
1980 .vendor = "Atmel",
Uwe Hermann8403ccb2009-05-16 21:39:19 +00001981 .name = "AT29C010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001982 .bustype = BUS_PARALLEL,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00001983 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001984 .model_id = ATMEL_AT29C010A,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00001985 .total_size = 128,
1986 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00001987 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00001988 .tested = TEST_OK_PRE,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00001989 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00001990 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00001991 .block_erasers =
1992 {
1993 {
1994 .eraseblocks = { {128 * 1024, 1} },
1995 .block_erase = erase_chip_block_jedec,
1996 }
1997 },
Uwe Hermann8403ccb2009-05-16 21:39:19 +00001998 .write = write_jedec, /* FIXME */
1999 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002000 .voltage = {4500, 5500},
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002001 },
2002
2003 {
2004 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002005 .name = "AT29C020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002006 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002007 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002008 .model_id = ATMEL_AT29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002009 .total_size = 256,
2010 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002011 .feature_bits = FEATURE_LONG_RESET,
2012 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002013 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00002014 .probe_timing = 10000, /* 10ms */
Sean Nelson89187292009-12-23 12:02:55 +00002015 .block_erasers =
2016 {
2017 {
2018 .eraseblocks = { {256 * 1024, 1} },
2019 .block_erase = erase_chip_block_jedec,
2020 }
2021 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002022 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002023 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002024 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002025 },
2026
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002027 {
2028 .vendor = "Atmel",
2029 .name = "AT29C040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002030 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002031 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002032 .model_id = ATMEL_AT29C040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002033 .total_size = 512,
2034 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002035 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002036 .tested = TEST_UNTESTED,
2037 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00002038 .probe_timing = 10000, /* 10 ms */
Sean Nelson89187292009-12-23 12:02:55 +00002039 .block_erasers =
2040 {
2041 {
2042 .eraseblocks = { {512 * 1024, 1} },
2043 .block_erase = erase_chip_block_jedec,
2044 }
2045 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002046 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002047 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002048 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002049 },
2050
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002051 {
2052 .vendor = "Atmel",
2053 .name = "AT45CS1282",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002054 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002055 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002056 .model_id = ATMEL_AT45CS1282,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002057 .total_size = 16896 /* No power of two sizes */,
2058 .page_size = 1056 /* No power of two sizes */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002059 .tested = TEST_BAD_READ,
2060 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002061 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002062 .write = NULL /* Incompatible Page write */,
2063 .read = NULL /* Incompatible read */,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002064 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002065 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002066
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002067 {
2068 .vendor = "Atmel",
2069 .name = "AT45DB011D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002070 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002071 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002072 .model_id = ATMEL_AT45DB011D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002073 .total_size = 128 /* Size can only be determined from status register */,
2074 .page_size = 256 /* Size can only be determined from status register */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002075 .tested = TEST_BAD_READ,
2076 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002077 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002078 .write = NULL,
2079 .read = NULL,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002080 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002081 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002082
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002083 {
2084 .vendor = "Atmel",
2085 .name = "AT45DB021D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002086 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002087 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002088 .model_id = ATMEL_AT45DB021D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002089 .total_size = 256 /* Size can only be determined from status register */,
2090 .page_size = 256 /* Size can only be determined from status register */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002091 .tested = TEST_BAD_READ,
2092 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002093 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002094 .write = NULL,
2095 .read = NULL,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002096 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002097 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002098
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002099 {
2100 .vendor = "Atmel",
2101 .name = "AT45DB041D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002102 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002103 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002104 .model_id = ATMEL_AT45DB041D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002105 .total_size = 512 /* Size can only be determined from status register */,
2106 .page_size = 256 /* Size can only be determined from status register */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002107 .tested = TEST_BAD_READ,
2108 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002109 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002110 .write = NULL,
2111 .read = NULL,
Steven Zakulec7d257b42011-07-19 08:50:18 +00002112 .voltage = {2500, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002113 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002114
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002115 {
2116 .vendor = "Atmel",
2117 .name = "AT45DB081D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002118 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002119 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002120 .model_id = ATMEL_AT45DB081D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002121 .total_size = 1024 /* Size can only be determined from status register */,
2122 .page_size = 256 /* Size can only be determined from status register */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002123 .tested = TEST_BAD_READ,
2124 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002125 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002126 .write = NULL,
2127 .read = NULL,
Steven Zakulec7d257b42011-07-19 08:50:18 +00002128 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002129 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002130
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002131 {
2132 .vendor = "Atmel",
2133 .name = "AT45DB161D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002134 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002135 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002136 .model_id = ATMEL_AT45DB161D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002137 .total_size = 2048 /* Size can only be determined from status register */,
2138 .page_size = 512 /* Size can only be determined from status register */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002139 .tested = TEST_BAD_READ,
2140 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002141 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002142 .write = NULL,
2143 .read = NULL,
Steven Zakulec7d257b42011-07-19 08:50:18 +00002144 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002145 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002146
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002147 {
2148 .vendor = "Atmel",
2149 .name = "AT45DB321C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002150 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002151 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002152 .model_id = ATMEL_AT45DB321C,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002153 .total_size = 4224 /* No power of two sizes */,
2154 .page_size = 528 /* No power of two sizes */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002155 .tested = TEST_BAD_READ,
2156 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002157 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002158 .write = NULL,
2159 .read = NULL /* Incompatible read */,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002160 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002161 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002162
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002163 {
2164 .vendor = "Atmel",
2165 .name = "AT45DB321D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002166 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002167 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002168 .model_id = ATMEL_AT45DB321D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002169 .total_size = 4096 /* Size can only be determined from status register */,
2170 .page_size = 512 /* Size can only be determined from status register */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002171 .tested = TEST_BAD_READ,
2172 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002173 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002174 .write = NULL,
2175 .read = NULL,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002176 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002177 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002178
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002179 {
2180 .vendor = "Atmel",
2181 .name = "AT45DB642D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002182 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002183 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002184 .model_id = ATMEL_AT45DB642D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002185 .total_size = 8192 /* Size can only be determined from status register */,
2186 .page_size = 1024 /* Size can only be determined from status register */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002187 .tested = TEST_BAD_READ,
2188 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002189 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002190 .write = NULL,
2191 .read = NULL,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002192 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002193 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002194
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002195 {
2196 .vendor = "Atmel",
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002197 .name = "AT49BV512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002198 .bustype = BUS_PARALLEL,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002199 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002200 .model_id = ATMEL_AT49BV512,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002201 .total_size = 64,
2202 .page_size = 64,
Sean Nelson35727f72010-01-28 23:55:12 +00002203 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +00002204 .tested = TEST_OK_PREW,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002205 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002206 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002207 .block_erasers =
2208 {
2209 {
2210 .eraseblocks = { {64 * 1024, 1} },
2211 .block_erase = erase_chip_block_jedec,
2212 }
2213 },
Sean Nelson35727f72010-01-28 23:55:12 +00002214 .write = write_jedec_1,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002215 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002216 .voltage = {2700, 3600},
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002217 },
2218
2219 {
2220 .vendor = "Atmel",
Andrew Morgan1a5eaa12010-06-07 14:10:55 +00002221 .name = "AT49F020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002222 .bustype = BUS_PARALLEL,
Andrew Morgan1a5eaa12010-06-07 14:10:55 +00002223 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002224 .model_id = ATMEL_AT49F020,
Andrew Morgan1a5eaa12010-06-07 14:10:55 +00002225 .total_size = 256,
2226 .page_size = 256,
2227 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002228 .tested = TEST_OK_PRE,
Andrew Morgan1a5eaa12010-06-07 14:10:55 +00002229 .probe = probe_jedec,
2230 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2231 .block_erasers =
2232 {
2233 {
2234 .eraseblocks = { {256 * 1024, 1} },
2235 .block_erase = erase_chip_block_jedec,
2236 }
2237 },
2238 .write = write_jedec_1,
2239 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002240 .voltage = {4500, 5500},
Andrew Morgan1a5eaa12010-06-07 14:10:55 +00002241 },
2242
2243 {
2244 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002245 .name = "AT49F002(N)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002246 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002247 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002248 .model_id = ATMEL_AT49F002N,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002249 .total_size = 256,
2250 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002251 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002252 .tested = TEST_UNTESTED,
2253 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002254 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002255 .block_erasers =
2256 {
2257 {
2258 .eraseblocks = {
2259 {16 * 1024, 1},
2260 {8 * 1024, 2},
2261 {96 * 1024, 1},
2262 {128 * 1024, 1},
2263 },
2264 .block_erase = erase_sector_jedec,
2265 }, {
2266 .eraseblocks = { {256 * 1024, 1} },
2267 .block_erase = erase_chip_block_jedec,
2268 }
2269 },
Sean Nelson35727f72010-01-28 23:55:12 +00002270 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002271 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002272 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002273 },
2274
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002275 {
2276 .vendor = "Atmel",
2277 .name = "AT49F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002278 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002279 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002280 .model_id = ATMEL_AT49F002NT,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002281 .total_size = 256,
2282 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002283 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002284 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002285 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002286 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002287 .block_erasers =
2288 {
2289 {
2290 .eraseblocks = {
2291 {128 * 1024, 1},
2292 {96 * 1024, 1},
2293 {8 * 1024, 2},
2294 {16 * 1024, 1},
2295 },
2296 .block_erase = erase_sector_jedec,
2297 }, {
2298 .eraseblocks = { {256 * 1024, 1} },
2299 .block_erase = erase_chip_block_jedec,
2300 }
2301 },
Sean Nelson35727f72010-01-28 23:55:12 +00002302 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002303 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002304 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002305 },
2306
Daniel Lenskidf90d3a2010-07-22 11:44:38 +00002307 {
Joshua Roysf1324e02010-09-16 00:51:51 +00002308 .vendor = "Bright",
2309 .name = "BM29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002310 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00002311 .manufacture_id = BRIGHT_ID,
2312 .model_id = BRIGHT_BM29F040,
2313 .total_size = 512,
2314 .page_size = 64 * 1024,
2315 .feature_bits = FEATURE_EITHER_RESET,
2316 .tested = TEST_OK_PR,
2317 .probe = probe_jedec,
2318 .probe_timing = TIMING_ZERO,
2319 .block_erasers =
2320 {
2321 {
2322 .eraseblocks = { {64 * 1024, 8} },
2323 .block_erase = erase_sector_jedec,
2324 }, {
2325 .eraseblocks = { {512 * 1024, 1} },
2326 .block_erase = erase_chip_block_jedec,
2327 },
2328 },
2329 .write = write_jedec_1,
2330 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00002331 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00002332 },
2333
2334 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002335 .vendor = "EMST",
2336 .name = "F49B002UA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002337 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002338 .manufacture_id = EMST_ID,
2339 .model_id = EMST_F49B002UA,
2340 .total_size = 256,
2341 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00002342 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002343 .tested = TEST_UNTESTED,
2344 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002345 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00002346 .block_erasers =
2347 {
2348 {
2349 .eraseblocks = {
2350 {128 * 1024, 1},
2351 {96 * 1024, 1},
2352 {8 * 1024, 2},
2353 {16 * 1024, 1},
2354 },
2355 .block_erase = erase_sector_jedec,
2356 }, {
2357 .eraseblocks = { {256 * 1024, 1} },
2358 .block_erase = erase_chip_block_jedec,
2359 }
2360 },
Sean Nelson35727f72010-01-28 23:55:12 +00002361 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002362 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002363 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002364 },
2365
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002366 {
Michael Karcher80a59ea2010-06-19 22:06:35 +00002367 .vendor = "EMST",
2368 .name = "F25L008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002369 .bustype = BUS_SPI,
Michael Karcher80a59ea2010-06-19 22:06:35 +00002370 .manufacture_id = EMST_ID,
2371 .model_id = EMST_F25L008A,
2372 .total_size = 1024,
2373 .page_size = 256,
2374 .tested = TEST_UNTESTED,
2375 .probe = probe_spi_rdid,
2376 .probe_timing = TIMING_ZERO,
2377 .block_erasers =
2378 {
2379 {
2380 .eraseblocks = { {4 * 1024, 256} },
2381 .block_erase = spi_block_erase_20,
2382 }, {
2383 .eraseblocks = { {64 * 1024, 16} },
2384 .block_erase = spi_block_erase_d8,
2385 }, {
2386 .eraseblocks = { {1024 * 1024, 1} },
2387 .block_erase = spi_block_erase_60,
2388 }, {
2389 .eraseblocks = { {1024 * 1024, 1} },
2390 .block_erase = spi_block_erase_c7,
2391 }
2392 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002393 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger9a795d82010-07-14 16:19:05 +00002394 .write = spi_chip_write_1,
Michael Karcher4497e862010-07-10 19:34:15 +00002395 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002396 .voltage = {2700, 3600},
Michael Karcher80a59ea2010-06-19 22:06:35 +00002397 },
2398
2399 {
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002400 .vendor = "Eon",
2401 .name = "EN25B05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002402 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002403 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002404 .model_id = EON_EN25B05,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002405 .total_size = 64,
2406 .page_size = 256,
2407 .tested = TEST_UNTESTED,
2408 .probe = probe_spi_rdid,
2409 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002410 .block_erasers =
2411 {
2412 {
2413 .eraseblocks = {
2414 {4 * 1024, 2},
2415 {8 * 1024, 1},
2416 {16 * 1024, 1},
2417 {32 * 1024, 1},
2418 },
2419 .block_erase = spi_block_erase_d8,
2420 }, {
2421 .eraseblocks = { {64 * 1024, 1} },
2422 .block_erase = spi_block_erase_c7,
2423 }
2424 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002425 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002426 .write = spi_chip_write_256,
2427 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002428 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002429 },
2430
2431 {
2432 .vendor = "Eon",
2433 .name = "EN25B05T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002434 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002435 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002436 .model_id = EON_EN25B05,
Sean Nelson54596372010-01-09 05:30:14 +00002437 .total_size = 64,
2438 .page_size = 256,
2439 .tested = TEST_UNTESTED,
2440 .probe = probe_spi_rdid,
2441 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002442 .block_erasers =
2443 {
2444 {
2445 .eraseblocks = {
2446 {32 * 1024, 1},
2447 {16 * 1024, 1},
2448 {8 * 1024, 1},
2449 {4 * 1024, 2},
2450 },
2451 .block_erase = spi_block_erase_d8,
2452 }, {
2453 .eraseblocks = { {64 * 1024, 1} },
2454 .block_erase = spi_block_erase_c7,
2455 }
2456 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002457 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002458 .write = spi_chip_write_256,
2459 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002460 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002461 },
2462
2463 {
2464 .vendor = "Eon",
2465 .name = "EN25B10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002466 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002467 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002468 .model_id = EON_EN25B10,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002469 .total_size = 128,
2470 .page_size = 256,
2471 .tested = TEST_UNTESTED,
2472 .probe = probe_spi_rdid,
2473 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002474 .block_erasers =
2475 {
2476 {
2477 .eraseblocks = {
2478 {4 * 1024, 2},
2479 {8 * 1024, 1},
2480 {16 * 1024, 1},
2481 {32 * 1024, 3},
2482 },
2483 .block_erase = spi_block_erase_d8,
2484 }, {
2485 .eraseblocks = { {128 * 1024, 1} },
2486 .block_erase = spi_block_erase_c7,
2487 }
2488 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002489 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002490 .write = spi_chip_write_256,
2491 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002492 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002493 },
2494
2495 {
2496 .vendor = "Eon",
2497 .name = "EN25B10T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002498 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002499 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002500 .model_id = EON_EN25B10,
Sean Nelson54596372010-01-09 05:30:14 +00002501 .total_size = 128,
2502 .page_size = 256,
2503 .tested = TEST_UNTESTED,
2504 .probe = probe_spi_rdid,
2505 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002506 .block_erasers =
2507 {
2508 {
2509 .eraseblocks = {
2510 {32 * 1024, 3},
2511 {16 * 1024, 1},
2512 {8 * 1024, 1},
2513 {4 * 1024, 2},
2514 },
2515 .block_erase = spi_block_erase_d8,
2516 }, {
2517 .eraseblocks = { {128 * 1024, 1} },
2518 .block_erase = spi_block_erase_c7,
2519 }
2520 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002521 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002522 .write = spi_chip_write_256,
2523 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002524 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002525 },
2526
2527 {
2528 .vendor = "Eon",
2529 .name = "EN25B20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002530 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002531 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002532 .model_id = EON_EN25B20,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002533 .total_size = 256,
2534 .page_size = 256,
2535 .tested = TEST_UNTESTED,
2536 .probe = probe_spi_rdid,
2537 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002538 .block_erasers =
2539 {
2540 {
2541 .eraseblocks = {
2542 {4 * 1024, 2},
2543 {8 * 1024, 1},
2544 {16 * 1024, 1},
2545 {32 * 1024, 1},
2546 {64 * 1024, 3}
2547 },
2548 .block_erase = spi_block_erase_d8,
2549 }, {
2550 .eraseblocks = { {256 * 1024, 1} },
2551 .block_erase = spi_block_erase_c7,
2552 }
2553 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002554 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002555 .write = spi_chip_write_256,
2556 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002557 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002558 },
2559
2560 {
2561 .vendor = "Eon",
2562 .name = "EN25B20T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002563 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002564 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002565 .model_id = EON_EN25B20,
Sean Nelson54596372010-01-09 05:30:14 +00002566 .total_size = 256,
2567 .page_size = 256,
2568 .tested = TEST_UNTESTED,
2569 .probe = probe_spi_rdid,
2570 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002571 .block_erasers =
2572 {
2573 {
2574 .eraseblocks = {
2575 {64 * 1024, 3},
2576 {32 * 1024, 1},
2577 {16 * 1024, 1},
2578 {8 * 1024, 1},
2579 {4 * 1024, 2},
2580 },
2581 .block_erase = spi_block_erase_d8,
2582 }, {
2583 .eraseblocks = { {256 * 1024, 1} },
2584 .block_erase = spi_block_erase_c7,
2585 }
2586 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002587 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002588 .write = spi_chip_write_256,
2589 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002590 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002591 },
2592
2593 {
2594 .vendor = "Eon",
2595 .name = "EN25B40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002596 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002597 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002598 .model_id = EON_EN25B40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002599 .total_size = 512,
2600 .page_size = 256,
2601 .tested = TEST_UNTESTED,
2602 .probe = probe_spi_rdid,
2603 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002604 .block_erasers =
2605 {
2606 {
2607 .eraseblocks = {
2608 {4 * 1024, 2},
2609 {8 * 1024, 1},
2610 {16 * 1024, 1},
2611 {32 * 1024, 1},
2612 {64 * 1024, 7}
2613 },
2614 .block_erase = spi_block_erase_d8,
2615 }, {
2616 .eraseblocks = { {512 * 1024, 1} },
2617 .block_erase = spi_block_erase_c7,
2618 }
2619 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002620 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002621 .write = spi_chip_write_256,
2622 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002623 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002624 },
2625
2626 {
2627 .vendor = "Eon",
2628 .name = "EN25B40T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002629 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002630 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002631 .model_id = EON_EN25B40,
Sean Nelson54596372010-01-09 05:30:14 +00002632 .total_size = 512,
2633 .page_size = 256,
2634 .tested = TEST_UNTESTED,
2635 .probe = probe_spi_rdid,
2636 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002637 .block_erasers =
2638 {
2639 {
2640 .eraseblocks = {
2641 {64 * 1024, 7},
2642 {32 * 1024, 1},
2643 {16 * 1024, 1},
2644 {8 * 1024, 1},
2645 {4 * 1024, 2},
2646 },
2647 .block_erase = spi_block_erase_d8,
2648 }, {
2649 .eraseblocks = { {512 * 1024, 1} },
2650 .block_erase = spi_block_erase_c7,
2651 }
2652 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002653 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002654 .write = spi_chip_write_256,
2655 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002656 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002657 },
2658
2659 {
2660 .vendor = "Eon",
2661 .name = "EN25B80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002662 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002663 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002664 .model_id = EON_EN25B80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002665 .total_size = 1024,
2666 .page_size = 256,
2667 .tested = TEST_UNTESTED,
2668 .probe = probe_spi_rdid,
2669 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002670 .block_erasers =
2671 {
2672 {
2673 .eraseblocks = {
2674 {4 * 1024, 2},
2675 {8 * 1024, 1},
2676 {16 * 1024, 1},
2677 {32 * 1024, 1},
2678 {64 * 1024, 15}
2679 },
2680 .block_erase = spi_block_erase_d8,
2681 }, {
2682 .eraseblocks = { {1024 * 1024, 1} },
2683 .block_erase = spi_block_erase_c7,
2684 }
2685 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002686 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002687 .write = spi_chip_write_256,
2688 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002689 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002690 },
2691
2692 {
2693 .vendor = "Eon",
2694 .name = "EN25B80T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002695 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002696 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002697 .model_id = EON_EN25B80,
Sean Nelson54596372010-01-09 05:30:14 +00002698 .total_size = 1024,
2699 .page_size = 256,
2700 .tested = TEST_UNTESTED,
2701 .probe = probe_spi_rdid,
2702 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002703 .block_erasers =
2704 {
2705 {
2706 .eraseblocks = {
2707 {64 * 1024, 15},
2708 {32 * 1024, 1},
2709 {16 * 1024, 1},
2710 {8 * 1024, 1},
2711 {4 * 1024, 2},
2712 },
2713 .block_erase = spi_block_erase_d8,
2714 }, {
2715 .eraseblocks = { {1024 * 1024, 1} },
2716 .block_erase = spi_block_erase_c7,
2717 }
2718 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002719 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002720 .write = spi_chip_write_256,
2721 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002722 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002723 },
2724
2725 {
2726 .vendor = "Eon",
2727 .name = "EN25B16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002728 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002729 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002730 .model_id = EON_EN25B16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002731 .total_size = 2048,
2732 .page_size = 256,
2733 .tested = TEST_UNTESTED,
2734 .probe = probe_spi_rdid,
2735 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002736 .block_erasers =
2737 {
2738 {
2739 .eraseblocks = {
2740 {4 * 1024, 2},
2741 {8 * 1024, 1},
2742 {16 * 1024, 1},
2743 {32 * 1024, 1},
2744 {64 * 1024, 31},
2745 },
2746 .block_erase = spi_block_erase_d8,
2747 }, {
2748 .eraseblocks = { {2 * 1024 * 1024, 1} },
2749 .block_erase = spi_block_erase_c7,
2750 }
2751 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002752 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002753 .write = spi_chip_write_256,
2754 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002755 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002756 },
2757
2758 {
2759 .vendor = "Eon",
2760 .name = "EN25B16T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002761 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002762 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002763 .model_id = EON_EN25B16,
Sean Nelson54596372010-01-09 05:30:14 +00002764 .total_size = 2048,
2765 .page_size = 256,
2766 .tested = TEST_UNTESTED,
2767 .probe = probe_spi_rdid,
2768 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002769 .block_erasers =
2770 {
2771 {
2772 .eraseblocks = {
2773 {64 * 1024, 31},
2774 {32 * 1024, 1},
2775 {16 * 1024, 1},
2776 {8 * 1024, 1},
2777 {4 * 1024, 2},
2778 },
2779 .block_erase = spi_block_erase_d8,
2780 }, {
2781 .eraseblocks = { {2 * 1024 * 1024, 1} },
2782 .block_erase = spi_block_erase_c7,
2783 }
2784 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002785 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002786 .write = spi_chip_write_256,
2787 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002788 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002789 },
2790
2791 {
2792 .vendor = "Eon",
2793 .name = "EN25B32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002794 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002795 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002796 .model_id = EON_EN25B32,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002797 .total_size = 4096,
2798 .page_size = 256,
2799 .tested = TEST_UNTESTED,
2800 .probe = probe_spi_rdid,
2801 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002802 .block_erasers =
2803 {
2804 {
2805 .eraseblocks = {
2806 {4 * 1024, 2},
2807 {8 * 1024, 1},
2808 {16 * 1024, 1},
2809 {32 * 1024, 1},
2810 {64 * 1024, 63},
2811 },
2812 .block_erase = spi_block_erase_d8,
2813 }, {
2814 .eraseblocks = { {4 * 1024 * 1024, 1} },
2815 .block_erase = spi_block_erase_c7,
2816 }
2817 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002818 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002819 .write = spi_chip_write_256,
2820 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002821 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002822 },
2823
2824 {
2825 .vendor = "Eon",
2826 .name = "EN25B32T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002827 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002828 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002829 .model_id = EON_EN25B32,
Sean Nelson54596372010-01-09 05:30:14 +00002830 .total_size = 4096,
2831 .page_size = 256,
2832 .tested = TEST_UNTESTED,
2833 .probe = probe_spi_rdid,
2834 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002835 .block_erasers =
2836 {
2837 {
2838 .eraseblocks = {
2839 {64 * 1024, 63},
2840 {32 * 1024, 1},
2841 {16 * 1024, 1},
2842 {8 * 1024, 1},
2843 {4 * 1024, 2},
2844 },
2845 .block_erase = spi_block_erase_d8,
2846 }, {
2847 .eraseblocks = { {4 * 1024 * 1024, 1} },
2848 .block_erase = spi_block_erase_c7,
2849 }
2850 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002851 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002852 .write = spi_chip_write_256,
2853 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002854 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002855 },
2856
2857 {
2858 .vendor = "Eon",
2859 .name = "EN25B64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002860 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002861 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002862 .model_id = EON_EN25B64,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002863 .total_size = 8192,
2864 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00002865 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002866 .tested = TEST_UNTESTED,
2867 .probe = probe_spi_rdid,
2868 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002869 .block_erasers =
2870 {
2871 {
2872 .eraseblocks = {
2873 {4 * 1024, 2},
2874 {8 * 1024, 1},
2875 {16 * 1024, 1},
2876 {32 * 1024, 1},
2877 {64 * 1024, 127},
2878 },
2879 .block_erase = spi_block_erase_d8,
2880 }, {
2881 .eraseblocks = { {8 * 1024 * 1024, 1} },
2882 .block_erase = spi_block_erase_c7,
2883 }
2884 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002885 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002886 .write = spi_chip_write_256,
2887 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002888 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002889 },
2890
2891 {
2892 .vendor = "Eon",
2893 .name = "EN25B64T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002894 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002895 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002896 .model_id = EON_EN25B64,
Sean Nelson54596372010-01-09 05:30:14 +00002897 .total_size = 8192,
2898 .page_size = 256,
2899 .tested = TEST_UNTESTED,
2900 .probe = probe_spi_rdid,
2901 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002902 .block_erasers =
2903 {
2904 {
2905 .eraseblocks = {
2906 {64 * 1024, 127},
2907 {32 * 1024, 1},
2908 {16 * 1024, 1},
2909 {8 * 1024, 1},
2910 {4 * 1024, 2},
2911 },
2912 .block_erase = spi_block_erase_d8,
2913 }, {
2914 .eraseblocks = { {8 * 1024 * 1024, 1} },
2915 .block_erase = spi_block_erase_c7,
2916 }
2917 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002918 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002919 .write = spi_chip_write_256,
2920 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002921 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002922 },
2923
2924 {
2925 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002926 .name = "EN25F05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002927 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002928 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002929 .model_id = EON_EN25F05,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002930 .total_size = 64,
2931 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00002932 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002933 .tested = TEST_UNTESTED,
2934 .probe = probe_spi_rdid,
2935 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002936 .block_erasers =
2937 {
2938 {
2939 .eraseblocks = { {4 * 1024, 16} },
2940 .block_erase = spi_block_erase_20,
2941 }, {
2942 .eraseblocks = { {32 * 1024, 2} },
2943 .block_erase = spi_block_erase_d8,
2944 }, {
2945 .eraseblocks = { {32 * 1024, 2} },
2946 .block_erase = spi_block_erase_52,
2947 }, {
2948 .eraseblocks = { {64 * 1024, 1} },
2949 .block_erase = spi_block_erase_60,
2950 }, {
2951 .eraseblocks = { {64 * 1024, 1} },
2952 .block_erase = spi_block_erase_c7,
2953 }
2954 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002955 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002956 .write = spi_chip_write_256,
2957 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002958 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002959 },
2960
2961 {
2962 .vendor = "Eon",
2963 .name = "EN25F10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002964 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002965 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002966 .model_id = EON_EN25F10,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002967 .total_size = 128,
2968 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00002969 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002970 .tested = TEST_UNTESTED,
2971 .probe = probe_spi_rdid,
2972 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002973 .block_erasers =
2974 {
2975 {
2976 .eraseblocks = { {4 * 1024, 32} },
2977 .block_erase = spi_block_erase_20,
2978 }, {
2979 .eraseblocks = { {32 * 1024, 4} },
2980 .block_erase = spi_block_erase_d8,
2981 }, {
2982 .eraseblocks = { {32 * 1024, 4} },
2983 .block_erase = spi_block_erase_52,
2984 }, {
2985 .eraseblocks = { {128 * 1024, 1} },
2986 .block_erase = spi_block_erase_60,
2987 }, {
2988 .eraseblocks = { {128 * 1024, 1} },
2989 .block_erase = spi_block_erase_c7,
2990 }
2991 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002992 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002993 .write = spi_chip_write_256,
2994 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002995 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002996 },
2997
2998 {
2999 .vendor = "Eon",
3000 .name = "EN25F20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003001 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003002 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003003 .model_id = EON_EN25F20,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003004 .total_size = 256,
3005 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003006 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003007 .tested = TEST_UNTESTED,
3008 .probe = probe_spi_rdid,
3009 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003010 .block_erasers =
3011 {
3012 {
3013 .eraseblocks = { {4 * 1024, 64} },
3014 .block_erase = spi_block_erase_20,
3015 }, {
3016 .eraseblocks = { {64 * 1024, 4} },
3017 .block_erase = spi_block_erase_d8,
3018 }, {
3019 .eraseblocks = { {64 * 1024, 4} },
3020 .block_erase = spi_block_erase_52,
3021 }, {
3022 .eraseblocks = { {256 * 1024, 1} },
3023 .block_erase = spi_block_erase_60,
3024 }, {
3025 .eraseblocks = { {256 * 1024, 1} },
3026 .block_erase = spi_block_erase_c7,
3027 }
3028 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003029 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003030 .write = spi_chip_write_256,
3031 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003032 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003033 },
3034
3035 {
3036 .vendor = "Eon",
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003037 .name = "EN25F40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003038 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003039 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003040 .model_id = EON_EN25F40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003041 .total_size = 512,
3042 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003043 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerfaaa2b22009-06-22 10:06:28 +00003044 .tested = TEST_OK_PROBE,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003045 .probe = probe_spi_rdid,
3046 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003047 .block_erasers =
3048 {
3049 {
Sean Nelson54596372010-01-09 05:30:14 +00003050 .eraseblocks = { {4 * 1024, 128} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003051 .block_erase = spi_block_erase_20,
3052 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003053 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003054 .block_erase = spi_block_erase_d8,
3055 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003056 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003057 .block_erase = spi_block_erase_60,
3058 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003059 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003060 .block_erase = spi_block_erase_c7,
3061 },
3062 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003063 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003064 .write = spi_chip_write_256,
3065 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003066 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003067 },
3068
3069 {
3070 .vendor = "Eon",
3071 .name = "EN25F80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003072 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003073 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003074 .model_id = EON_EN25F80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003075 .total_size = 1024,
3076 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003077 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +00003078 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003079 .probe = probe_spi_rdid,
3080 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003081 .block_erasers =
3082 {
3083 {
3084 .eraseblocks = { {4 * 1024, 256} },
3085 .block_erase = spi_block_erase_20,
3086 }, {
3087 .eraseblocks = { {64 * 1024, 16} },
3088 .block_erase = spi_block_erase_d8,
3089 }, {
3090 .eraseblocks = { {1024 * 1024, 1} },
3091 .block_erase = spi_block_erase_60,
3092 }, {
3093 .eraseblocks = { {1024 * 1024, 1} },
3094 .block_erase = spi_block_erase_c7,
3095 }
3096 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003097 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003098 .write = spi_chip_write_256,
3099 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003100 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003101 },
3102
3103 {
3104 .vendor = "Eon",
3105 .name = "EN25F16",
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_EN25F16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003109 .total_size = 2048,
3110 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003111 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003112 .tested = TEST_UNTESTED,
3113 .probe = probe_spi_rdid,
3114 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003115 .block_erasers =
3116 {
3117 {
3118 .eraseblocks = { {4 * 1024, 512} },
3119 .block_erase = spi_block_erase_20,
3120 }, {
3121 .eraseblocks = { {64 * 1024, 32} },
3122 .block_erase = spi_block_erase_d8,
3123 }, {
3124 .eraseblocks = { {2 * 1024 * 1024, 1} },
3125 .block_erase = spi_block_erase_60,
3126 }, {
3127 .eraseblocks = { {2 * 1024 * 1024, 1} },
3128 .block_erase = spi_block_erase_c7,
3129 }
3130 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003131 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003132 .write = spi_chip_write_256,
3133 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003134 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003135 },
3136
3137 {
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003138 .vendor = "Eon",
3139 .name = "EN25F32",
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_EN25F32,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003143 .total_size = 4096,
3144 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003145 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003146 .tested = TEST_UNTESTED,
3147 .probe = probe_spi_rdid,
3148 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003149 .block_erasers =
3150 {
3151 {
3152 .eraseblocks = { {4 * 1024, 1024} },
3153 .block_erase = spi_block_erase_20,
3154 }, {
3155 .eraseblocks = { {64 * 1024, 64} },
3156 .block_erase = spi_block_erase_d8,
3157 }, {
3158 .eraseblocks = { {4 * 1024 * 1024, 1} },
3159 .block_erase = spi_block_erase_60,
3160 }, {
3161 .eraseblocks = { {4 * 1024 * 1024, 1} },
3162 .block_erase = spi_block_erase_c7,
3163 }
3164 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003165 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003166 .write = spi_chip_write_256,
3167 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003168 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003169 },
3170
3171 {
Russ Dill3cd5a122010-03-05 08:44:11 +00003172 .vendor = "Eon",
David Hendricks6d715302011-07-24 22:21:57 +00003173 .name = "EN25Q40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003174 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003175 .manufacture_id = EON_ID_NOPREFIX,
3176 .model_id = EON_EN25Q40,
3177 .total_size = 512,
3178 .page_size = 256,
3179 /* TODO: chip features 256-byte one-time programmable region */
3180 .feature_bits = FEATURE_WRSR_WREN,
3181 .tested = TEST_UNTESTED,
3182 .probe = probe_spi_rdid,
3183 .probe_timing = TIMING_ZERO,
3184 .block_erasers =
3185 {
3186 {
3187 .eraseblocks = { {4 * 1024, 128} },
3188 .block_erase = spi_block_erase_20,
3189 }, {
3190 .eraseblocks = { {64 * 1024, 8} },
3191 .block_erase = spi_block_erase_d8,
3192 }, {
3193 .eraseblocks = { {512 * 1024, 1} },
3194 .block_erase = spi_block_erase_60,
3195 }, {
3196 .eraseblocks = { {512 * 1024, 1} },
3197 .block_erase = spi_block_erase_c7,
3198 }
3199 },
3200 .unlock = spi_disable_blockprotect,
3201 .write = spi_chip_write_256,
3202 .read = spi_chip_read,
3203 .voltage = {2700, 3600},
3204 },
3205
3206 {
3207 .vendor = "Eon",
3208 .name = "EN25Q80(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003209 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003210 .manufacture_id = EON_ID_NOPREFIX,
3211 .model_id = EON_EN25Q80,
3212 .total_size = 1024,
3213 .page_size = 256,
3214 /* TODO: chip features 256-byte one-time programmable region */
3215 .feature_bits = FEATURE_WRSR_WREN,
3216 .tested = TEST_UNTESTED,
3217 .probe = probe_spi_rdid,
3218 .probe_timing = TIMING_ZERO,
3219 .block_erasers =
3220 {
3221 {
3222 .eraseblocks = { {4 * 1024, 256} },
3223 .block_erase = spi_block_erase_20,
3224 }, {
3225 .eraseblocks = { {64 * 1024, 16} },
3226 .block_erase = spi_block_erase_d8,
3227 }, {
3228 .eraseblocks = { {1024 * 1024, 1} },
3229 .block_erase = spi_block_erase_60,
3230 }, {
3231 .eraseblocks = { {1024 * 1024, 1} },
3232 .block_erase = spi_block_erase_c7,
3233 }
3234 },
3235 .unlock = spi_disable_blockprotect,
3236 .write = spi_chip_write_256,
3237 .read = spi_chip_read,
3238 .voltage = {2700, 3600},
3239 },
3240
3241 {
3242 /* Note: EN25D16 is an evil twin which shares the model ID
3243 but has different write protection capabilities */
3244 .vendor = "Eon",
3245 .name = "EN25Q16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003246 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003247 .manufacture_id = EON_ID_NOPREFIX,
3248 .model_id = EON_EN25Q16,
3249 .total_size = 2048,
3250 .page_size = 256,
3251 /* TODO: EN25D16 features 512-byte one-time programmable region,
3252 * EN25Q16 features a 128-byte one-time programmable region */
3253 .feature_bits = FEATURE_WRSR_WREN,
3254 .tested = TEST_UNTESTED,
3255 .probe = probe_spi_rdid,
3256 .probe_timing = TIMING_ZERO,
3257 .block_erasers =
3258 {
3259 {
3260 .eraseblocks = { {4 * 1024, 512} },
3261 .block_erase = spi_block_erase_20,
3262 }, {
3263 .eraseblocks = { {64 * 1024, 32} },
3264 .block_erase = spi_block_erase_d8,
3265 }, {
3266 /* not supported by Q16 version */
3267 .eraseblocks = { {64 * 1024, 32} },
3268 .block_erase = spi_block_erase_52,
3269 }, {
3270 .eraseblocks = { {2 * 1024 * 1024, 1} },
3271 .block_erase = spi_block_erase_60,
3272 }, {
3273 .eraseblocks = { {2 * 1024 * 1024, 1} },
3274 .block_erase = spi_block_erase_c7,
3275 }
3276 },
3277 .unlock = spi_disable_blockprotect,
3278 .write = spi_chip_write_256,
3279 .read = spi_chip_read,
3280 .voltage = {2700, 3600},
3281 },
3282
3283 {
3284 .vendor = "Eon",
3285 .name = "EN25Q32(A/B)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003286 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003287 .manufacture_id = EON_ID_NOPREFIX,
3288 .model_id = EON_EN25Q32,
3289 .total_size = 4096,
3290 .page_size = 256,
3291 /* TODO: chip features 512-byte one-time programmable region */
3292 .feature_bits = FEATURE_WRSR_WREN,
3293 .tested = TEST_UNTESTED,
3294 .probe = probe_spi_rdid,
3295 .probe_timing = TIMING_ZERO,
3296 .block_erasers =
3297 {
3298 {
3299 .eraseblocks = { {4 * 1024, 1024} },
3300 .block_erase = spi_block_erase_20,
3301 }, {
3302 .eraseblocks = { {64 * 1024, 64} },
3303 .block_erase = spi_block_erase_d8,
3304 }, {
3305 .eraseblocks = { {4 * 1024 * 1024, 1} },
3306 .block_erase = spi_block_erase_60,
3307 }, {
3308 .eraseblocks = { {4 * 1024 * 1024, 1} },
3309 .block_erase = spi_block_erase_c7,
3310 }
3311 },
3312 .unlock = spi_disable_blockprotect,
3313 .write = spi_chip_write_256,
3314 .read = spi_chip_read,
3315 .voltage = {2700, 3600},
3316 },
3317
3318 {
3319 .vendor = "Eon",
3320 .name = "EN25Q64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003321 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003322 .manufacture_id = EON_ID_NOPREFIX,
3323 .model_id = EON_EN25Q64,
3324 .total_size = 8192,
3325 .page_size = 256,
3326 /* TODO: chip features 512-byte one-time programmable region */
3327 .feature_bits = FEATURE_WRSR_WREN,
3328 .tested = TEST_UNTESTED,
3329 .probe = probe_spi_rdid,
3330 .probe_timing = TIMING_ZERO,
3331 .block_erasers =
3332 {
3333 {
3334 .eraseblocks = { {4 * 1024, 2048} },
3335 .block_erase = spi_block_erase_20,
3336 }, {
3337 .eraseblocks = { {64 * 1024, 128} },
3338 .block_erase = spi_block_erase_d8,
3339 }, {
3340 .eraseblocks = { {8 * 1024 * 1024, 1} },
3341 .block_erase = spi_block_erase_60,
3342 }, {
3343 .eraseblocks = { {8 * 1024 * 1024, 1} },
3344 .block_erase = spi_block_erase_c7,
3345 }
3346 },
3347 .unlock = spi_disable_blockprotect,
3348 .write = spi_chip_write_256,
3349 .read = spi_chip_read,
3350 .voltage = {2700, 3600},
3351 },
3352
3353 {
3354 .vendor = "Eon",
3355 .name = "EN25Q128",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003356 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003357 .manufacture_id = EON_ID_NOPREFIX,
3358 .model_id = EON_EN25Q128,
3359 .total_size = 16384,
3360 .page_size = 256,
3361 /* TODO: chip features 512-byte one-time programmable region */
3362 .feature_bits = FEATURE_WRSR_WREN,
3363 .tested = TEST_UNTESTED,
3364 .probe = probe_spi_rdid,
3365 .probe_timing = TIMING_ZERO,
3366 .block_erasers =
3367 {
3368 {
3369 .eraseblocks = { {4 * 1024, 4096} },
3370 .block_erase = spi_block_erase_20,
3371 }, {
3372 .eraseblocks = { {64 * 1024, 256} },
3373 .block_erase = spi_block_erase_d8,
3374 }, {
3375 .eraseblocks = { {16 * 1024 * 1024, 1} },
3376 .block_erase = spi_block_erase_60,
3377 }, {
3378 .eraseblocks = { {16 * 1024 * 1024, 1} },
3379 .block_erase = spi_block_erase_c7,
3380 }
3381 },
3382 .unlock = spi_disable_blockprotect,
3383 .write = spi_chip_write_256,
3384 .read = spi_chip_read,
3385 },
3386
3387 {
3388 .vendor = "Eon",
3389 .name = "EN25QH16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003390 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003391 .manufacture_id = EON_ID_NOPREFIX,
3392 .model_id = EON_EN25QH16,
3393 .total_size = 2048,
3394 .page_size = 256,
3395 /* TODO: chip features 512-byte one-time programmable region
3396 * and supports SFDP.
3397 */
3398 .feature_bits = FEATURE_WRSR_WREN,
3399 .tested = TEST_UNTESTED,
3400 .probe = probe_spi_rdid,
3401 .probe_timing = TIMING_ZERO,
3402 .block_erasers =
3403 {
3404 {
3405 .eraseblocks = { {4 * 1024, 512} },
3406 .block_erase = spi_block_erase_20,
3407 }, {
3408 .eraseblocks = { {64 * 1024, 32} },
3409 .block_erase = spi_block_erase_d8,
3410 }, {
3411 .eraseblocks = { {1024 * 2048, 1} },
3412 .block_erase = spi_block_erase_60,
3413 }, {
3414 .eraseblocks = { {1024 * 2048, 1} },
3415 .block_erase = spi_block_erase_c7,
3416 }
3417 },
3418 .unlock = spi_disable_blockprotect,
3419 .write = spi_chip_write_256,
3420 .read = spi_chip_read,
3421 .voltage = {2700, 3600},
3422 },
3423
3424 {
3425 .vendor = "Eon",
Russ Dill3cd5a122010-03-05 08:44:11 +00003426 .name = "EN29F010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003427 .bustype = BUS_PARALLEL,
Russ Dill3cd5a122010-03-05 08:44:11 +00003428 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003429 .model_id = EON_EN29F010,
Russ Dill3cd5a122010-03-05 08:44:11 +00003430 .total_size = 128,
3431 .page_size = 128,
3432 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003433 .tested = TEST_OK_PRE,
Russ Dill3cd5a122010-03-05 08:44:11 +00003434 .probe = probe_jedec,
3435 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3436 .block_erasers =
3437 {
3438 {
3439 .eraseblocks = { {16 * 1024, 8} },
3440 .block_erase = erase_sector_jedec,
3441 },
3442 {
3443 .eraseblocks = { {128 * 1024, 1} },
3444 .block_erase = erase_chip_block_jedec,
3445 },
3446 },
3447 .write = write_jedec_1,
3448 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003449 .voltage = {4500, 5500},
Russ Dill3cd5a122010-03-05 08:44:11 +00003450 },
3451
3452 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00003453 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003454 .name = "EN29F002(A)(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003455 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003456 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003457 .model_id = EON_EN29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003458 .total_size = 256,
3459 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00003460 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003461 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003462 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003463 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003464 .block_erasers =
3465 {
3466 {
3467 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00003468 {16 * 1024, 1},
Michael Karchere3cb0a12010-03-13 23:47:09 +00003469 {8 * 1024, 2},
3470 {32 * 1024, 1},
3471 {64 * 1024, 3},
Sean Nelson6b11ad22009-12-23 17:05:59 +00003472 },
3473 .block_erase = erase_sector_jedec,
3474 }, {
3475 .eraseblocks = { {256 * 1024, 1} },
3476 .block_erase = erase_chip_block_jedec,
3477 },
3478 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00003479 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003480 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003481 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003482 },
3483
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003484 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00003485 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003486 .name = "EN29F002(A)(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003487 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003488 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003489 .model_id = EON_EN29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003490 .total_size = 256,
3491 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00003492 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003493 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003494 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003495 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003496 .block_erasers =
3497 {
3498 {
3499 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00003500 {64 * 1024, 3},
Michael Karchere3cb0a12010-03-13 23:47:09 +00003501 {32 * 1024, 1},
3502 {8 * 1024, 2},
3503 {16 * 1024, 1},
Sean Nelson6b11ad22009-12-23 17:05:59 +00003504 },
3505 .block_erase = erase_sector_jedec,
3506 }, {
3507 .eraseblocks = { {256 * 1024, 1} },
3508 .block_erase = erase_chip_block_jedec,
3509 },
3510 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00003511 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003512 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003513 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003514 },
3515
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003516 {
3517 .vendor = "Fujitsu",
3518 .name = "MBM29F004BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003519 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003520 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003521 .model_id = FUJITSU_MBM29F004BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003522 .total_size = 512,
3523 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003524 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003525 .tested = TEST_UNTESTED,
3526 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003527 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003528 .block_erasers =
3529 {
3530 {
3531 .eraseblocks = {
3532 {16 * 1024, 1},
3533 {8 * 1024, 2},
3534 {32 * 1024, 1},
3535 {64 * 1024, 7},
3536 },
Sean Nelson35727f72010-01-28 23:55:12 +00003537 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003538 }, {
3539 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00003540 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003541 },
3542 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003543 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003544 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003545 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003546 },
3547
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003548 {
3549 .vendor = "Fujitsu",
3550 .name = "MBM29F004TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003551 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003552 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003553 .model_id = FUJITSU_MBM29F004TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003554 .total_size = 512,
3555 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003556 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003557 .tested = TEST_UNTESTED,
3558 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003559 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003560 .block_erasers =
3561 {
3562 {
3563 .eraseblocks = {
3564 {64 * 1024, 7},
3565 {32 * 1024, 1},
3566 {8 * 1024, 2},
3567 {16 * 1024, 1},
3568 },
Sean Nelson35727f72010-01-28 23:55:12 +00003569 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003570 }, {
3571 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00003572 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003573 },
3574 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003575 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003576 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003577 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003578 },
3579
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003580 {
Sean Nelson35727f72010-01-28 23:55:12 +00003581 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003582 .vendor = "Fujitsu",
3583 .name = "MBM29F400BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003584 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003585 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003586 .model_id = FUJITSU_MBM29F400BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003587 .total_size = 512,
3588 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003589 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00003590 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003591 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00003592 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003593 .block_erasers =
3594 {
3595 {
3596 .eraseblocks = {
3597 {16 * 1024, 1},
3598 {8 * 1024, 2},
3599 {32 * 1024, 1},
3600 {64 * 1024, 7},
3601 },
3602 .block_erase = block_erase_m29f400bt,
3603 }, {
3604 .eraseblocks = { {512 * 1024, 1} },
3605 .block_erase = block_erase_chip_m29f400bt,
3606 },
3607 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00003608 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003609 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003610 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00003611 },
3612
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003613 {
3614 .vendor = "Fujitsu",
3615 .name = "MBM29F400TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003616 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003617 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003618 .model_id = FUJITSU_MBM29F400TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003619 .total_size = 512,
3620 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003621 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003622 .tested = TEST_UNTESTED,
3623 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00003624 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003625 .block_erasers =
3626 {
3627 {
3628 .eraseblocks = {
3629 {64 * 1024, 7},
3630 {32 * 1024, 1},
3631 {8 * 1024, 2},
3632 {16 * 1024, 1},
3633 },
3634 .block_erase = block_erase_m29f400bt,
3635 }, {
3636 .eraseblocks = { {512 * 1024, 1} },
3637 .block_erase = block_erase_chip_m29f400bt,
3638 },
3639 },
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00003640 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003641 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003642 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00003643 },
3644
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003645 {
David Borgc96a8bd2010-06-21 16:12:22 +00003646 .vendor = "Hyundai",
3647 .name = "HY29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003648 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00003649 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003650 .model_id = HYUNDAI_HY29F002T,
David Borgc96a8bd2010-06-21 16:12:22 +00003651 .total_size = 256,
3652 .page_size = 256 * 1024,
3653 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003654 .tested = TEST_OK_PRE,
David Borgc96a8bd2010-06-21 16:12:22 +00003655 .probe = probe_jedec,
3656 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3657 .block_erasers =
3658 {
3659 {
3660 .eraseblocks = {
3661 {64 * 1024, 3},
3662 {32 * 1024, 1},
3663 {8 * 1024, 2},
3664 {16 * 1024, 1},
3665 },
3666 .block_erase = erase_sector_jedec,
3667 }, {
3668 .eraseblocks = { {256 * 1024, 1} },
3669 .block_erase = erase_chip_block_jedec,
3670 },
3671 },
3672 .write = write_jedec_1,
3673 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003674 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00003675 },
3676
3677 {
3678 .vendor = "Hyundai",
3679 .name = "HY29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003680 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00003681 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003682 .model_id = HYUNDAI_HY29F002B,
David Borgc96a8bd2010-06-21 16:12:22 +00003683 .total_size = 256,
3684 .page_size = 256 * 1024,
3685 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
3686 .tested = TEST_UNTESTED,
3687 .probe = probe_jedec,
3688 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3689 .block_erasers =
3690 {
3691 {
3692 .eraseblocks = {
3693 {16 * 1024, 1},
3694 {8 * 1024, 2},
3695 {32 * 1024, 1},
3696 {64 * 1024, 3},
3697 },
3698 .block_erase = erase_sector_jedec,
3699 }, {
3700 .eraseblocks = { {256 * 1024, 1} },
3701 .block_erase = erase_chip_block_jedec,
3702 },
3703 },
3704 .write = write_jedec_1,
3705 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003706 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00003707 },
3708
3709 {
Joshua Roysf1324e02010-09-16 00:51:51 +00003710 .vendor = "Hyundai",
3711 .name = "HY29F040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003712 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00003713 .manufacture_id = HYUNDAI_ID,
3714 .model_id = HYUNDAI_HY29F040A,
3715 .total_size = 512,
3716 .page_size = 64 * 1024,
3717 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
3718 .tested = TEST_UNTESTED,
3719 .probe = probe_jedec,
3720 .probe_timing = TIMING_ZERO,
3721 .block_erasers =
3722 {
3723 {
3724 .eraseblocks = { {64 * 1024, 8} },
3725 .block_erase = erase_sector_jedec,
3726 }, {
3727 .eraseblocks = { {512 * 1024, 1} },
3728 .block_erase = erase_chip_block_jedec,
3729 },
3730 },
3731 .write = write_jedec_1,
3732 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003733 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00003734 },
3735
3736 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003737 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003738 .name = "28F001BN/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003739 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00003740 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003741 .model_id = INTEL_28F001B,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00003742 .total_size = 128,
3743 .page_size = 128 * 1024, /* 8k + 2x4k + 112k */
Sean Nelsondee4a832010-03-22 04:39:31 +00003744 .tested = TEST_UNTESTED,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00003745 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003746 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00003747 .block_erasers =
3748 {
3749 {
3750 .eraseblocks = {
3751 {8 * 1024, 1},
3752 {4 * 1024, 2},
3753 {112 * 1024, 1},
3754 },
Sean Nelson28accc22010-03-19 18:47:06 +00003755 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00003756 },
3757 },
Sean Nelsondee4a832010-03-22 04:39:31 +00003758 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00003759 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003760 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00003761 },
3762
3763 {
3764 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003765 .name = "28F001BN/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003766 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00003767 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003768 .model_id = INTEL_28F001T,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00003769 .total_size = 128,
3770 .page_size = 128 * 1024, /* 112k + 2x4k + 8k */
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00003771 .tested = TEST_OK_PR,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00003772 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003773 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00003774 .block_erasers =
3775 {
3776 {
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00003777 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00003778 {112 * 1024, 1},
3779 {4 * 1024, 2},
3780 {8 * 1024, 1},
3781 },
Sean Nelson28accc22010-03-19 18:47:06 +00003782 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00003783 },
3784 },
Sean Nelsondee4a832010-03-22 04:39:31 +00003785 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00003786 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003787 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00003788 },
3789
3790 {
3791 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003792 .name = "28F002BC/BL/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003793 .bustype = BUS_PARALLEL,
Joshua Roysd97c0e02010-07-22 15:20:43 +00003794 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003795 .model_id = INTEL_28F002T,
Joshua Roysd97c0e02010-07-22 15:20:43 +00003796 .total_size = 256,
3797 .page_size = 256 * 1024,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003798 .tested = TEST_OK_PRE,
Joshua Roysd97c0e02010-07-22 15:20:43 +00003799 .probe = probe_82802ab,
3800 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3801 .block_erasers =
3802 {
3803 {
3804 .eraseblocks = {
3805 {128 * 1024, 1},
3806 {96 * 1024, 1},
3807 {8 * 1024, 2},
3808 {16 * 1024, 1},
3809 },
3810 .block_erase = erase_block_82802ab,
3811 },
3812 },
3813 .write = write_82802ab,
3814 .read = read_memmapped,
3815 },
3816
3817 {
3818 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003819 .name = "28F008S3/S5/SC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003820 .bustype = BUS_PARALLEL,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00003821 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003822 .model_id = INTEL_28F004S3,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00003823 .total_size = 512,
3824 .page_size = 256,
3825 .tested = TEST_UNTESTED,
3826 .probe = probe_82802ab,
3827 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00003828 .block_erasers =
3829 {
3830 {
3831 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00003832 .block_erase = erase_block_82802ab,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00003833 },
3834 },
Sean Nelsondee4a832010-03-22 04:39:31 +00003835 .unlock = unlock_28f004s5,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00003836 .write = write_82802ab,
3837 .read = read_memmapped,
3838 },
3839
3840 {
3841 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003842 .name = "28F004B5/BE/BV/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003843 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00003844 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003845 .model_id = INTEL_28F004B,
Michael Karcherad0010a2010-04-03 10:27:08 +00003846 .total_size = 512,
3847 .page_size = 128 * 1024, /* maximal block size */
3848 .tested = TEST_UNTESTED,
3849 .probe = probe_82802ab,
3850 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3851 .block_erasers =
3852 {
3853 {
3854 .eraseblocks = {
3855 {16 * 1024, 1},
3856 {8 * 1024, 2},
3857 {96 * 1024, 1},
3858 {128 * 1024, 3},
3859 },
3860 .block_erase = erase_block_82802ab,
3861 },
3862 },
3863 .write = write_82802ab,
3864 .read = read_memmapped,
3865 },
3866
3867 {
3868 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003869 .name = "28F004B5/BE/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003870 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00003871 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003872 .model_id = INTEL_28F004T,
Michael Karcherad0010a2010-04-03 10:27:08 +00003873 .total_size = 512,
3874 .page_size = 128 * 1024, /* maximal block size */
3875 .tested = TEST_UNTESTED,
3876 .probe = probe_82802ab,
3877 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3878 .block_erasers =
3879 {
3880 {
3881 .eraseblocks = {
3882 {128 * 1024, 3},
3883 {96 * 1024, 1},
3884 {8 * 1024, 2},
3885 {16 * 1024, 1},
3886 },
3887 .block_erase = erase_block_82802ab,
3888 },
3889 },
3890 .write = write_82802ab,
3891 .read = read_memmapped,
3892 },
3893
3894 {
3895 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003896 .name = "28F400BV/BX/CE/CV-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003897 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00003898 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003899 .model_id = INTEL_28F400B,
Michael Karcherad0010a2010-04-03 10:27:08 +00003900 .total_size = 512,
3901 .page_size = 128 * 1024, /* maximal block size */
3902 .feature_bits = FEATURE_ADDR_SHIFTED,
3903 .tested = TEST_UNTESTED,
3904 .probe = probe_82802ab,
3905 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3906 .block_erasers =
3907 {
3908 {
3909 .eraseblocks = {
3910 {16 * 1024, 1},
3911 {8 * 1024, 2},
3912 {96 * 1024, 1},
3913 {128 * 1024, 3},
3914 },
3915 .block_erase = erase_block_82802ab,
3916 },
3917 },
3918 .write = write_82802ab,
3919 .read = read_memmapped,
3920 },
3921
3922 {
3923 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003924 .name = "28F400BV/BX/CE/CV-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003925 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00003926 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003927 .model_id = INTEL_28F400T,
Michael Karcherad0010a2010-04-03 10:27:08 +00003928 .total_size = 512,
3929 .page_size = 128 * 1024, /* maximal block size */
3930 .feature_bits = FEATURE_ADDR_SHIFTED,
3931 .tested = TEST_UNTESTED,
3932 .probe = probe_82802ab,
3933 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3934 .block_erasers =
3935 {
3936 {
3937 .eraseblocks = {
3938 {128 * 1024, 3},
3939 {96 * 1024, 1},
3940 {8 * 1024, 2},
3941 {16 * 1024, 1},
3942 },
3943 .block_erase = erase_block_82802ab,
3944 },
3945 },
3946 .write = write_82802ab,
3947 .read = read_memmapped,
3948 },
3949
3950 {
3951 .vendor = "Intel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003952 .name = "82802AB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003953 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003954 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003955 .model_id = INTEL_82802AB,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003956 .total_size = 512,
3957 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00003958 .feature_bits = FEATURE_REGISTERMAP,
Stefan Taunerd06d9412011-06-12 19:47:55 +00003959 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003960 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003961 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00003962 .block_erasers =
3963 {
3964 {
3965 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00003966 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00003967 },
3968 },
Sean Nelson28accc22010-03-19 18:47:06 +00003969 .unlock = unlock_82802ab,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003970 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003971 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003972 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00003973 },
3974
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003975 {
3976 .vendor = "Intel",
3977 .name = "82802AC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003978 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003979 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003980 .model_id = INTEL_82802AC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003981 .total_size = 1024,
3982 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00003983 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +00003984 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003985 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003986 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00003987 .block_erasers =
3988 {
3989 {
3990 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +00003991 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00003992 },
3993 },
Sean Nelson28accc22010-03-19 18:47:06 +00003994 .unlock = unlock_82802ab,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003995 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003996 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003997 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00003998 },
3999
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004000 {
4001 .vendor = "Macronix",
4002 .name = "MX25L512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004003 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004004 .manufacture_id = MACRONIX_ID,
4005 .model_id = MACRONIX_MX25L512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004006 .total_size = 64,
4007 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004008 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004009 .tested = TEST_UNTESTED,
4010 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004011 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004012 .block_erasers =
4013 {
4014 {
4015 .eraseblocks = { {4 * 1024, 16} },
4016 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004017 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004018 .eraseblocks = { {64 * 1024, 1} },
4019 .block_erase = spi_block_erase_52,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004020 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004021 .eraseblocks = { {64 * 1024, 1} },
4022 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004023 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004024 .eraseblocks = { {64 * 1024, 1} },
4025 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004026 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004027 .eraseblocks = { {64 * 1024, 1} },
4028 .block_erase = spi_block_erase_c7,
4029 },
4030 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004031 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004032 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004033 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004034 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004035 },
4036
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004037 {
4038 .vendor = "Macronix",
4039 .name = "MX25L1005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004040 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004041 .manufacture_id = MACRONIX_ID,
4042 .model_id = MACRONIX_MX25L1005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004043 .total_size = 128,
4044 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004045 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004046 .tested = TEST_UNTESTED,
4047 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004048 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004049 .block_erasers =
4050 {
4051 {
4052 .eraseblocks = { {4 * 1024, 32} },
4053 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004054 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004055 .eraseblocks = { {64 * 1024, 2} },
4056 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004057 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004058 .eraseblocks = { {128 * 1024, 1} },
4059 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004060 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004061 .eraseblocks = { {128 * 1024, 1} },
4062 .block_erase = spi_block_erase_c7,
4063 },
4064 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004065 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004066 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004067 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004068 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004069 },
4070
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004071 {
4072 .vendor = "Macronix",
4073 .name = "MX25L2005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004074 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004075 .manufacture_id = MACRONIX_ID,
4076 .model_id = MACRONIX_MX25L2005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004077 .total_size = 256,
4078 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004079 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004080 .tested = TEST_UNTESTED,
4081 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004082 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004083 .block_erasers =
4084 {
4085 {
4086 .eraseblocks = { {4 * 1024, 64} },
4087 .block_erase = spi_block_erase_20,
4088 }, {
4089 .eraseblocks = { {64 * 1024, 4} },
4090 .block_erase = spi_block_erase_52,
4091 }, {
4092 .eraseblocks = { {64 * 1024, 4} },
4093 .block_erase = spi_block_erase_d8,
4094 }, {
4095 .eraseblocks = { {256 * 1024, 1} },
4096 .block_erase = spi_block_erase_60,
4097 }, {
4098 .eraseblocks = { {256 * 1024, 1} },
4099 .block_erase = spi_block_erase_c7,
4100 },
4101 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004102 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004103 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004104 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004105 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004106 },
4107
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004108 {
4109 .vendor = "Macronix",
4110 .name = "MX25L4005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004111 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004112 .manufacture_id = MACRONIX_ID,
4113 .model_id = MACRONIX_MX25L4005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004114 .total_size = 512,
4115 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004116 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +00004117 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004118 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004119 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004120 .block_erasers =
4121 {
4122 {
4123 .eraseblocks = { {4 * 1024, 128} },
4124 .block_erase = spi_block_erase_20,
4125 }, {
4126 .eraseblocks = { {64 * 1024, 8} },
4127 .block_erase = spi_block_erase_52,
4128 }, {
4129 .eraseblocks = { {64 * 1024, 8} },
4130 .block_erase = spi_block_erase_d8,
4131 }, {
4132 .eraseblocks = { {512 * 1024, 1} },
4133 .block_erase = spi_block_erase_60,
4134 }, {
4135 .eraseblocks = { {512 * 1024, 1} },
4136 .block_erase = spi_block_erase_c7,
4137 },
4138 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004139 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004140 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004141 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004142 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004143 },
4144
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004145 {
4146 .vendor = "Macronix",
4147 .name = "MX25L8005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004148 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004149 .manufacture_id = MACRONIX_ID,
4150 .model_id = MACRONIX_MX25L8005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004151 .total_size = 1024,
4152 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004153 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +00004154 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004155 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004156 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004157 .block_erasers =
4158 {
4159 {
4160 .eraseblocks = { {4 * 1024, 256} },
4161 .block_erase = spi_block_erase_20,
4162 }, {
4163 .eraseblocks = { {64 * 1024, 16} },
4164 .block_erase = spi_block_erase_52,
4165 }, {
4166 .eraseblocks = { {64 * 1024, 16} },
4167 .block_erase = spi_block_erase_d8,
4168 }, {
4169 .eraseblocks = { {1024 * 1024, 1} },
4170 .block_erase = spi_block_erase_60,
4171 }, {
4172 .eraseblocks = { {1024 * 1024, 1} },
4173 .block_erase = spi_block_erase_c7,
4174 },
4175 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004176 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004177 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004178 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004179 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004180 },
4181
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004182 {
4183 .vendor = "Macronix",
4184 .name = "MX25L1605",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004185 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004186 .manufacture_id = MACRONIX_ID,
4187 .model_id = MACRONIX_MX25L1605,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004188 .total_size = 2048,
4189 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004190 .feature_bits = FEATURE_WRSR_WREN,
Sven Schnelle4bd8a402011-03-07 10:59:06 +00004191 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004192 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004193 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004194 .block_erasers =
4195 {
4196 {
4197 .eraseblocks = { {4 * 1024, 512} },
4198 .block_erase = spi_block_erase_20, /* This erase function has 64k blocksize for eLiteFlash */
4199 }, {
4200 .eraseblocks = { {64 * 1024, 32} }, /* Not supported in MX25L1605 (eLiteFlash) and MX25L1605D */
4201 .block_erase = spi_block_erase_52,
4202 }, {
4203 .eraseblocks = { {64 * 1024, 32} },
4204 .block_erase = spi_block_erase_d8,
4205 }, {
4206 .eraseblocks = { {2 * 1024 * 1024, 1} },
4207 .block_erase = spi_block_erase_60,
4208 }, {
4209 .eraseblocks = { {2 * 1024 * 1024, 1} },
4210 .block_erase = spi_block_erase_c7,
4211 },
4212 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004213 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004214 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004215 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004216 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004217 },
4218
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004219 {
4220 .vendor = "Macronix",
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004221 .name = "MX25L1635D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004222 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004223 .manufacture_id = MACRONIX_ID,
4224 .model_id = MACRONIX_MX25L1635D,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004225 .total_size = 2048,
4226 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004227 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004228 .tested = TEST_UNTESTED,
4229 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004230 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004231 .block_erasers =
4232 {
4233 {
4234 .eraseblocks = { {4 * 1024, 512} },
4235 .block_erase = spi_block_erase_20,
4236 }, {
4237 .eraseblocks = { {64 * 1024, 32} },
4238 .block_erase = spi_block_erase_d8,
4239 }, {
4240 .eraseblocks = { {2 * 1024 * 1024, 1} },
4241 .block_erase = spi_block_erase_60,
4242 }, {
4243 .eraseblocks = { {2 * 1024 * 1024, 1} },
4244 .block_erase = spi_block_erase_c7,
4245 }
4246 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004247 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004248 .write = spi_chip_write_256,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004249 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004250 .voltage = {2700, 3600},
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004251 },
Stephan Guillouxfd315502009-04-20 22:54:13 +00004252
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004253 {
4254 .vendor = "Macronix",
Stephan Guilloux3611b802010-09-13 19:59:28 +00004255 .name = "MX25L1635E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004256 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004257 .manufacture_id = MACRONIX_ID,
4258 .model_id = MACRONIX_MX25L1635E,
Stephan Guilloux3611b802010-09-13 19:59:28 +00004259 .total_size = 2048,
4260 .page_size = 256,
4261 .feature_bits = FEATURE_WRSR_WREN,
4262 .tested = TEST_UNTESTED,
4263 .probe = probe_spi_rdid,
4264 .probe_timing = TIMING_ZERO,
4265 .block_erasers =
4266 {
4267 {
4268 .eraseblocks = { {4 * 1024, 512} },
4269 .block_erase = spi_block_erase_20,
4270 }, {
4271 .eraseblocks = { {64 * 1024, 32} },
4272 .block_erase = spi_block_erase_d8,
4273 }, {
4274 .eraseblocks = { {2 * 1024 * 1024, 1} },
4275 .block_erase = spi_block_erase_60,
4276 }, {
4277 .eraseblocks = { {2 * 1024 * 1024, 1} },
4278 .block_erase = spi_block_erase_c7,
4279 }
4280 },
4281 .unlock = spi_disable_blockprotect,
4282 .write = spi_chip_write_256,
4283 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004284 .voltage = {2700, 3600},
Stephan Guilloux3611b802010-09-13 19:59:28 +00004285 },
4286
4287 {
4288 .vendor = "Macronix",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004289 .name = "MX25L3205",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004290 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004291 .manufacture_id = MACRONIX_ID,
4292 .model_id = MACRONIX_MX25L3205,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004293 .total_size = 4096,
4294 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004295 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00004296 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004297 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004298 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004299 .block_erasers =
4300 {
4301 {
4302 .eraseblocks = { {4 * 1024, 1024} },
4303 .block_erase = spi_block_erase_20,
4304 }, {
4305 .eraseblocks = { {4 * 1024, 1024} },
4306 .block_erase = spi_block_erase_d8,
4307 }, {
4308 .eraseblocks = { {4 * 1024 * 1024, 1} },
4309 .block_erase = spi_block_erase_60,
4310 }, {
4311 .eraseblocks = { {4 * 1024 * 1024, 1} },
4312 .block_erase = spi_block_erase_c7,
4313 },
4314 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004315 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004316 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004317 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004318 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004319 },
4320
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004321 {
4322 .vendor = "Macronix",
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00004323 .name = "MX25L3235D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004324 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004325 .manufacture_id = MACRONIX_ID,
4326 .model_id = MACRONIX_MX25L3235D,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00004327 .total_size = 4096,
4328 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004329 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00004330 .tested = TEST_UNTESTED,
4331 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004332 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004333 .block_erasers =
4334 {
4335 {
4336 .eraseblocks = { {4 * 1024, 1024} },
4337 .block_erase = spi_block_erase_20,
4338 }, {
4339 .eraseblocks = { {64 * 1024, 64} },
4340 .block_erase = spi_block_erase_d8,
4341 }, {
4342 .eraseblocks = { {4 * 1024 * 1024, 1} },
4343 .block_erase = spi_block_erase_60,
4344 }, {
4345 .eraseblocks = { {4 * 1024 * 1024, 1} },
4346 .block_erase = spi_block_erase_c7,
4347 }
4348 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004349 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004350 .write = spi_chip_write_256,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00004351 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004352 .voltage = {2700, 3600},
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00004353 },
4354
4355 {
4356 .vendor = "Macronix",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004357 .name = "MX25L6405",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004358 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004359 .manufacture_id = MACRONIX_ID,
4360 .model_id = MACRONIX_MX25L6405,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004361 .total_size = 8192,
4362 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004363 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger452b3e32009-06-22 11:14:43 +00004364 .tested = TEST_OK_PROBE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004365 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004366 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004367 .block_erasers =
4368 {
4369 {
4370 .eraseblocks = { {64 * 1024, 128} },
4371 .block_erase = spi_block_erase_20,
4372 }, {
4373 .eraseblocks = { {64 * 1024, 128} },
4374 .block_erase = spi_block_erase_d8,
4375 }, {
4376 .eraseblocks = { {8 * 1024 * 1024, 1} },
4377 .block_erase = spi_block_erase_60,
4378 }, {
4379 .eraseblocks = { {8 * 1024 * 1024, 1} },
4380 .block_erase = spi_block_erase_c7,
4381 }
4382 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004383 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004384 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004385 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004386 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004387 },
4388
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004389 {
4390 .vendor = "Macronix",
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00004391 .name = "MX25L12805",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004392 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004393 .manufacture_id = MACRONIX_ID,
4394 .model_id = MACRONIX_MX25L12805,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00004395 .total_size = 16384,
4396 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004397 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00004398 .tested = TEST_UNTESTED,
4399 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004400 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004401 .block_erasers =
4402 {
4403 {
4404 .eraseblocks = { {4 * 1024, 4096} },
4405 .block_erase = spi_block_erase_20,
4406 }, {
4407 .eraseblocks = { {64 * 1024, 256} },
4408 .block_erase = spi_block_erase_d8,
4409 }, {
4410 .eraseblocks = { {16 * 1024 * 1024, 1} },
4411 .block_erase = spi_block_erase_60,
4412 }, {
4413 .eraseblocks = { {16 * 1024 * 1024, 1} },
4414 .block_erase = spi_block_erase_c7,
4415 }
4416 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004417 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004418 .write = spi_chip_write_256,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00004419 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004420 .voltage = {2700, 3600},
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00004421 },
4422
4423 {
4424 .vendor = "Macronix",
Mark Panajotovic502a9132009-08-24 01:42:24 +00004425 .name = "MX29F001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004426 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004427 .manufacture_id = MACRONIX_ID,
4428 .model_id = MACRONIX_MX29F001B,
Mark Panajotovic502a9132009-08-24 01:42:24 +00004429 .total_size = 128,
4430 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004431 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
4432 .tested = TEST_UNTESTED,
4433 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00004434 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004435 .block_erasers =
4436 {
4437 {
4438 .eraseblocks = {
4439 {8 * 1024, 1},
4440 {4 * 1024, 2},
4441 {8 * 1024, 2},
4442 {32 * 1024, 1},
4443 {64 * 1024, 1},
4444 },
Sean Nelson35727f72010-01-28 23:55:12 +00004445 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00004446 }, {
4447 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004448 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00004449 }
4450 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004451 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00004452 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004453 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00004454 },
4455
4456 {
4457 .vendor = "Macronix",
4458 .name = "MX29F001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004459 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004460 .manufacture_id = MACRONIX_ID,
4461 .model_id = MACRONIX_MX29F001T,
Mark Panajotovic502a9132009-08-24 01:42:24 +00004462 .total_size = 128,
4463 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004464 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stefan Tauner74c6ec62011-05-18 01:31:46 +00004465 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00004466 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00004467 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004468 .block_erasers =
4469 {
4470 {
4471 .eraseblocks = {
4472 {64 * 1024, 1},
4473 {32 * 1024, 1},
4474 {8 * 1024, 2},
4475 {4 * 1024, 2},
4476 {8 * 1024, 1},
4477 },
Sean Nelson35727f72010-01-28 23:55:12 +00004478 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00004479 }, {
4480 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004481 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00004482 }
4483 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004484 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00004485 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004486 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00004487 },
4488
4489 {
4490 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00004491 .name = "MX29F002(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004492 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004493 .manufacture_id = MACRONIX_ID,
4494 .model_id = MACRONIX_MX29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004495 .total_size = 256,
4496 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004497 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004498 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00004499 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00004500 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004501 .block_erasers =
4502 {
4503 {
4504 .eraseblocks = {
4505 {16 * 1024, 1},
4506 {8 * 1024, 2},
4507 {32 * 1024, 1},
4508 {64 * 1024, 3},
4509 },
Sean Nelson35727f72010-01-28 23:55:12 +00004510 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004511 }, {
4512 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004513 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004514 },
4515 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004516 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004517 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004518 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004519 },
4520
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004521 {
4522 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00004523 .name = "MX29F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004524 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004525 .manufacture_id = MACRONIX_ID,
4526 .model_id = MACRONIX_MX29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004527 .total_size = 256,
4528 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004529 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004530 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +00004531 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00004532 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004533 .block_erasers =
4534 {
4535 {
4536 .eraseblocks = {
4537 {64 * 1024, 3},
4538 {32 * 1024, 1},
4539 {8 * 1024, 2},
4540 {16 * 1024, 1},
4541 },
Sean Nelson35727f72010-01-28 23:55:12 +00004542 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004543 }, {
4544 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004545 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004546 },
4547 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004548 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004549 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004550 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004551 },
4552
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004553 {
4554 .vendor = "Macronix",
Joshua Roysf1324e02010-09-16 00:51:51 +00004555 .name = "MX29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004556 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00004557 .manufacture_id = MACRONIX_ID,
4558 .model_id = MACRONIX_MX29F040,
4559 .total_size = 512,
4560 .page_size = 64 * 1024,
4561 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
4562 .tested = TEST_UNTESTED,
4563 .probe = probe_jedec,
4564 .probe_timing = TIMING_ZERO,
4565 .block_erasers =
4566 {
4567 {
4568 .eraseblocks = { {64 * 1024, 8} },
4569 .block_erase = erase_sector_jedec,
4570 }, {
4571 .eraseblocks = { {512 * 1024, 1} },
4572 .block_erase = erase_chip_block_jedec,
4573 },
4574 },
4575 .write = write_jedec_1,
4576 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004577 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00004578 },
4579
4580 {
4581 .vendor = "Macronix",
Carl-Daniel Hailfinger350a0c32009-07-24 13:59:27 +00004582 .name = "MX29LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004583 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004584 .manufacture_id = MACRONIX_ID,
4585 .model_id = MACRONIX_MX29LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004586 .total_size = 512,
4587 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004588 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
4589 .tested = TEST_UNTESTED,
4590 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00004591 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004592 .block_erasers =
4593 {
4594 {
4595 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson35727f72010-01-28 23:55:12 +00004596 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00004597 }, {
4598 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004599 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00004600 },
4601 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004602 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004603 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004604 .voltage = {2700, 3600},
Carl-Daniel Hailfinger7de86392008-12-10 10:32:05 +00004605 },
4606
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004607 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00004608 .vendor = "MoselVitelic",
4609 .name = "V29C51000B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004610 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00004611 .manufacture_id = SYNCMOS_MVC_ID,
4612 .model_id = MVC_V29C51000B,
4613 .total_size = 64,
4614 .page_size = 512,
4615 .feature_bits = FEATURE_EITHER_RESET,
4616 .tested = TEST_UNTESTED,
4617 .probe = probe_jedec,
4618 .probe_timing = TIMING_ZERO,
4619 .block_erasers =
4620 {
4621 {
4622 .eraseblocks = { {512, 128} },
4623 .block_erase = erase_sector_jedec,
4624 }, {
4625 .eraseblocks = { {64 * 1024, 1} },
4626 .block_erase = erase_chip_block_jedec,
4627 },
4628 },
4629 .write = write_jedec_1,
4630 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004631 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00004632 },
4633
4634 {
4635 .vendor = "MoselVitelic",
4636 .name = "V29C51000T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004637 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00004638 .manufacture_id = SYNCMOS_MVC_ID,
4639 .model_id = MVC_V29C51000T,
4640 .total_size = 64,
4641 .page_size = 512,
4642 .feature_bits = FEATURE_EITHER_RESET,
4643 .tested = TEST_UNTESTED,
4644 .probe = probe_jedec,
4645 .probe_timing = TIMING_ZERO,
4646 .block_erasers =
4647 {
4648 {
4649 .eraseblocks = { {512, 128} },
4650 .block_erase = erase_sector_jedec,
4651 }, {
4652 .eraseblocks = { {64 * 1024, 1} },
4653 .block_erase = erase_chip_block_jedec,
4654 },
4655 },
4656 .write = write_jedec_1,
4657 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004658 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00004659 },
4660
4661 {
4662 .vendor = "MoselVitelic",
4663 .name = "V29C51400B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004664 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00004665 .manufacture_id = SYNCMOS_MVC_ID,
4666 .model_id = MVC_V29C51400B,
4667 .total_size = 512,
4668 .page_size = 1024,
4669 .feature_bits = FEATURE_EITHER_RESET,
4670 .tested = TEST_UNTESTED,
4671 .probe = probe_jedec,
4672 .probe_timing = TIMING_ZERO,
4673 .block_erasers =
4674 {
4675 {
4676 .eraseblocks = { {1024, 512} },
4677 .block_erase = erase_sector_jedec,
4678 }, {
4679 .eraseblocks = { {512 * 1024, 1} },
4680 .block_erase = erase_chip_block_jedec,
4681 },
4682 },
4683 .write = write_jedec_1,
4684 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004685 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00004686 },
4687
4688 {
4689 .vendor = "MoselVitelic",
4690 .name = "V29C51400T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004691 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00004692 .manufacture_id = SYNCMOS_MVC_ID,
4693 .model_id = MVC_V29C51400T,
4694 .total_size = 512,
4695 .page_size = 1024,
4696 .feature_bits = FEATURE_EITHER_RESET,
4697 .tested = TEST_UNTESTED,
4698 .probe = probe_jedec,
4699 .probe_timing = TIMING_ZERO,
4700 .block_erasers =
4701 {
4702 {
4703 .eraseblocks = { {1024, 512} },
4704 .block_erase = erase_sector_jedec,
4705 }, {
4706 .eraseblocks = { {512 * 1024, 1} },
4707 .block_erase = erase_chip_block_jedec,
4708 },
4709 },
4710 .write = write_jedec_1,
4711 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004712 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00004713 },
4714
4715 {
4716 .vendor = "MoselVitelic",
4717 .name = "V29LC51000",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004718 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00004719 .manufacture_id = SYNCMOS_MVC_ID,
4720 .model_id = MVC_V29LC51000,
4721 .total_size = 64,
4722 .page_size = 512,
4723 .feature_bits = FEATURE_EITHER_RESET,
4724 .tested = TEST_UNTESTED,
4725 .probe = probe_jedec,
4726 .probe_timing = TIMING_ZERO,
4727 .block_erasers =
4728 {
4729 {
4730 .eraseblocks = { {512, 128} },
4731 .block_erase = erase_sector_jedec,
4732 }, {
4733 .eraseblocks = { {64 * 1024, 1} },
4734 .block_erase = erase_chip_block_jedec,
4735 },
4736 },
4737 .write = write_jedec_1,
4738 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004739 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00004740 },
4741
4742 {
4743 .vendor = "MoselVitelic",
4744 .name = "V29LC51001",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004745 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00004746 .manufacture_id = SYNCMOS_MVC_ID,
4747 .model_id = MVC_V29LC51001,
4748 .total_size = 128,
4749 .page_size = 512,
4750 .feature_bits = FEATURE_EITHER_RESET,
4751 .tested = TEST_UNTESTED,
4752 .probe = probe_jedec,
4753 .probe_timing = TIMING_ZERO,
4754 .block_erasers =
4755 {
4756 {
4757 .eraseblocks = { {512, 256} },
4758 .block_erase = erase_sector_jedec,
4759 }, {
4760 .eraseblocks = { {128 * 1024, 1} },
4761 .block_erase = erase_chip_block_jedec,
4762 },
4763 },
4764 .write = write_jedec_1,
4765 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004766 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00004767 },
4768
4769 {
4770 .vendor = "MoselVitelic",
4771 .name = "V29LC51002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004772 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00004773 .manufacture_id = SYNCMOS_MVC_ID,
4774 .model_id = MVC_V29LC51002,
4775 .total_size = 256,
4776 .page_size = 512,
4777 .feature_bits = FEATURE_EITHER_RESET,
4778 .tested = TEST_UNTESTED,
4779 .probe = probe_jedec,
4780 .probe_timing = TIMING_ZERO,
4781 .block_erasers =
4782 {
4783 {
4784 .eraseblocks = { {512, 512} },
4785 .block_erase = erase_sector_jedec,
4786 }, {
4787 .eraseblocks = { {256 * 1024, 1} },
4788 .block_erase = erase_chip_block_jedec,
4789 },
4790 },
4791 .write = write_jedec_1,
4792 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004793 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00004794 },
4795
4796 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004797 .vendor = "Numonyx",
4798 .name = "M25PE10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004799 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004800 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00004801 .model_id = ST_M25PE10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004802 .total_size = 128,
4803 .page_size = 256,
4804 .tested = TEST_UNTESTED,
4805 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004806 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00004807 .block_erasers =
4808 {
4809 {
4810 .eraseblocks = { {4 * 1024, 32} },
4811 .block_erase = spi_block_erase_20,
4812 }, {
4813 .eraseblocks = { {64 * 1024, 2} },
4814 .block_erase = spi_block_erase_d8,
4815 }, {
4816 .eraseblocks = { {128 * 1024, 1} },
4817 .block_erase = spi_block_erase_c7,
4818 }
4819 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004820 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004821 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004822 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004823 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004824 },
4825
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004826 {
4827 .vendor = "Numonyx",
4828 .name = "M25PE20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004829 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004830 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00004831 .model_id = ST_M25PE20,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004832 .total_size = 256,
4833 .page_size = 256,
4834 .tested = TEST_UNTESTED,
4835 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004836 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00004837 .block_erasers =
4838 {
4839 {
4840 .eraseblocks = { {4 * 1024, 64} },
4841 .block_erase = spi_block_erase_20,
4842 }, {
4843 .eraseblocks = { {64 * 1024, 4} },
4844 .block_erase = spi_block_erase_d8,
4845 }, {
4846 .eraseblocks = { {256 * 1024, 1} },
4847 .block_erase = spi_block_erase_c7,
4848 }
4849 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004850 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004851 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004852 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004853 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004854 },
4855
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004856 {
4857 .vendor = "Numonyx",
4858 .name = "M25PE40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004859 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004860 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00004861 .model_id = ST_M25PE40,
Sean Nelson5643c072010-01-19 03:23:07 +00004862 .total_size = 512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004863 .page_size = 256,
4864 .tested = TEST_UNTESTED,
4865 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004866 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00004867 .block_erasers =
4868 {
4869 {
4870 .eraseblocks = { {4 * 1024, 128} },
4871 .block_erase = spi_block_erase_20,
4872 }, {
4873 .eraseblocks = { {64 * 1024, 8} },
4874 .block_erase = spi_block_erase_d8,
4875 }, {
4876 .eraseblocks = { {512 * 1024, 1} },
4877 .block_erase = spi_block_erase_c7,
4878 }
4879 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004880 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004881 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004882 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004883 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004884 },
4885
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004886 {
4887 .vendor = "Numonyx",
4888 .name = "M25PE80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004889 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004890 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00004891 .model_id = ST_M25PE80,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004892 .total_size = 1024,
4893 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004894 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004895 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004896 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00004897 .block_erasers =
4898 {
4899 {
4900 .eraseblocks = { {4 * 1024, 256} },
4901 .block_erase = spi_block_erase_20,
4902 }, {
4903 .eraseblocks = { {64 * 1024, 16} },
4904 .block_erase = spi_block_erase_d8,
4905 }, {
4906 .eraseblocks = { {1024 * 1024, 1} },
4907 .block_erase = spi_block_erase_c7,
4908 }
4909 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004910 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004911 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004912 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004913 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004914 },
4915
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004916 {
4917 .vendor = "Numonyx",
4918 .name = "M25PE16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004919 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004920 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00004921 .model_id = ST_M25PE16,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004922 .total_size = 2048,
4923 .page_size = 256,
4924 .tested = TEST_UNTESTED,
4925 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004926 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00004927 .block_erasers =
4928 {
4929 {
4930 .eraseblocks = { {4 * 1024, 512} },
4931 .block_erase = spi_block_erase_20,
4932 }, {
4933 .eraseblocks = { {64 * 1024, 32} },
4934 .block_erase = spi_block_erase_d8,
4935 }, {
4936 .eraseblocks = { {2 * 1024 * 1024, 1} },
4937 .block_erase = spi_block_erase_c7,
4938 }
4939 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004940 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004941 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004942 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004943 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004944 },
4945
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004946 {
4947 .vendor = "PMC",
4948 .name = "Pm25LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004949 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004950 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004951 .model_id = PMC_PM25LV010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004952 .total_size = 128,
4953 .page_size = 256,
4954 .tested = TEST_UNTESTED,
4955 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004956 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00004957 .block_erasers =
4958 {
4959 {
4960 .eraseblocks = { {4 * 1024, 32} },
4961 .block_erase = spi_block_erase_d7,
4962 }, {
4963 .eraseblocks = { {32 * 1024, 4} },
4964 .block_erase = spi_block_erase_d8,
4965 }, {
4966 .eraseblocks = { {128 * 1024, 1} },
4967 .block_erase = spi_block_erase_c7,
4968 }
4969 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004970 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004971 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004972 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004973 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004974 },
4975
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004976 {
4977 .vendor = "PMC",
4978 .name = "Pm25LV016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004979 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004980 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004981 .model_id = PMC_PM25LV016B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004982 .total_size = 2048,
4983 .page_size = 256,
4984 .tested = TEST_UNTESTED,
4985 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004986 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00004987 .block_erasers =
4988 {
4989 {
4990 .eraseblocks = { {4 * 1024, 512} },
4991 .block_erase = spi_block_erase_d7,
4992 }, {
4993 .eraseblocks = { {4 * 1024, 512} },
4994 .block_erase = spi_block_erase_20,
4995 }, {
4996 .eraseblocks = { {64 * 1024, 32} },
4997 .block_erase = spi_block_erase_d8,
4998 }, {
4999 .eraseblocks = { {2 * 1024 * 1024, 1} },
5000 .block_erase = spi_block_erase_60,
5001 }, {
5002 .eraseblocks = { {2 * 1024 * 1024, 1} },
5003 .block_erase = spi_block_erase_c7,
5004 }
5005 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005006 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005007 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005008 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005009 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005010 },
5011
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005012 {
5013 .vendor = "PMC",
5014 .name = "Pm25LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005015 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005016 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005017 .model_id = PMC_PM25LV020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005018 .total_size = 256,
5019 .page_size = 256,
5020 .tested = TEST_UNTESTED,
5021 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005022 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005023 .block_erasers =
5024 {
5025 {
5026 .eraseblocks = { {4 * 1024, 64} },
5027 .block_erase = spi_block_erase_d7,
5028 }, {
5029 .eraseblocks = { {64 * 1024, 4} },
5030 .block_erase = spi_block_erase_d8,
5031 }, {
5032 .eraseblocks = { {256 * 1024, 1} },
5033 .block_erase = spi_block_erase_c7,
5034 }
5035 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005036 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005037 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005038 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005039 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005040 },
5041
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005042 {
5043 .vendor = "PMC",
5044 .name = "Pm25LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005045 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005046 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005047 .model_id = PMC_PM25LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005048 .total_size = 512,
5049 .page_size = 256,
Stefan Tauner716e0982011-07-25 20:38:52 +00005050 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005051 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005052 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005053 .block_erasers =
5054 {
5055 {
5056 .eraseblocks = { {4 * 1024, 128} },
5057 .block_erase = spi_block_erase_d7,
5058 }, {
5059 .eraseblocks = { {64 * 1024, 8} },
5060 .block_erase = spi_block_erase_d8,
5061 }, {
5062 .eraseblocks = { {512 * 1024, 1} },
5063 .block_erase = spi_block_erase_c7,
5064 }
5065 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005066 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005067 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005068 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005069 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005070 },
5071
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005072 {
5073 .vendor = "PMC",
5074 .name = "Pm25LV080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005075 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005076 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005077 .model_id = PMC_PM25LV080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005078 .total_size = 1024,
5079 .page_size = 256,
5080 .tested = TEST_UNTESTED,
5081 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005082 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005083 .block_erasers =
5084 {
5085 {
5086 .eraseblocks = { {4 * 1024, 256} },
5087 .block_erase = spi_block_erase_d7,
5088 }, {
5089 .eraseblocks = { {4 * 1024, 256} },
5090 .block_erase = spi_block_erase_20,
5091 }, {
5092 .eraseblocks = { {64 * 1024, 16} },
5093 .block_erase = spi_block_erase_d8,
5094 }, {
5095 .eraseblocks = { {1024 * 1024, 1} },
5096 .block_erase = spi_block_erase_60,
5097 }, {
5098 .eraseblocks = { {1024 * 1024, 1} },
5099 .block_erase = spi_block_erase_c7,
5100 }
5101 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005102 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005103 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005104 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005105 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005106 },
5107
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005108 {
5109 .vendor = "PMC",
5110 .name = "Pm25LV512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005111 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005112 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005113 .model_id = PMC_PM25LV512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005114 .total_size = 64,
5115 .page_size = 256,
5116 .tested = TEST_UNTESTED,
5117 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005118 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005119 .block_erasers =
5120 {
5121 {
5122 .eraseblocks = { {4 * 1024, 16} },
5123 .block_erase = spi_block_erase_d7,
5124 }, {
5125 .eraseblocks = { {32 * 1024, 2} },
5126 .block_erase = spi_block_erase_d8,
5127 }, {
5128 .eraseblocks = { {64 * 1024, 1} },
5129 .block_erase = spi_block_erase_c7,
5130 }
5131 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005132 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005133 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005134 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005135 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005136 },
5137
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005138 {
5139 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00005140 .name = "Pm29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005141 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005142 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005143 .model_id = PMC_PM29F002T,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005144 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00005145 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005146 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005147 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +00005148 .probe = probe_jedec,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005149 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00005150 .block_erasers =
5151 {
5152 {
5153 .eraseblocks = {
5154 {128 * 1024, 1},
5155 {96 * 1024, 1},
5156 {8 * 1024, 2},
5157 {16 * 1024, 1},
5158 },
Sean Nelson35727f72010-01-28 23:55:12 +00005159 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00005160 }, {
5161 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005162 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00005163 },
5164 },
Sean Nelson35727f72010-01-28 23:55:12 +00005165 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005166 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005167 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005168 },
5169
5170 {
5171 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00005172 .name = "Pm29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005173 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005174 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005175 .model_id = PMC_PM29F002B,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005176 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00005177 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005178 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005179 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00005180 .probe = probe_jedec,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005181 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00005182 .block_erasers =
5183 {
5184 {
5185 .eraseblocks = {
5186 {16 * 1024, 1},
5187 {8 * 1024, 2},
5188 {96 * 1024, 1},
5189 {128 * 1024, 1},
5190 },
Sean Nelson35727f72010-01-28 23:55:12 +00005191 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00005192 }, {
5193 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005194 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00005195 },
5196 },
Sean Nelson35727f72010-01-28 23:55:12 +00005197 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005198 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005199 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005200 },
5201
5202 {
5203 .vendor = "PMC",
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00005204 .name = "Pm39LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005205 .bustype = BUS_PARALLEL,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00005206 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005207 .model_id = PMC_PM39F010, /* Pm39LV010 and Pm39F010 have identical IDs but different voltage */
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00005208 .total_size = 128,
5209 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00005210 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005211 .tested = TEST_OK_PRE,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00005212 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005213 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson5643c072010-01-19 03:23:07 +00005214 .block_erasers =
5215 {
5216 {
5217 .eraseblocks = { {4 * 1024, 32} },
5218 .block_erase = erase_sector_jedec,
5219 }, {
5220 .eraseblocks = { {64 * 1024, 2} },
5221 .block_erase = erase_block_jedec,
5222 }, {
5223 .eraseblocks = { {128 * 1024, 1} },
5224 .block_erase = erase_chip_block_jedec,
5225 }
5226 },
Sean Nelson35727f72010-01-28 23:55:12 +00005227 .write = write_jedec_1,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00005228 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005229 .voltage = {2700, 3600},
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00005230 },
5231
5232 {
5233 .vendor = "PMC",
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005234 .name = "Pm39LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005235 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005236 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005237 .model_id = PMC_PM39LV020,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005238 .total_size = 256,
5239 .page_size = 4096,
5240 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
5241 .tested = TEST_UNTESTED,
5242 .probe = probe_jedec,
5243 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5244 .block_erasers =
5245 {
5246 {
5247 .eraseblocks = { {4 * 1024, 64} },
5248 .block_erase = erase_sector_jedec,
5249 }, {
5250 .eraseblocks = { {64 * 1024, 4} },
5251 .block_erase = erase_block_jedec,
5252 }, {
5253 .eraseblocks = { {256 * 1024, 1} },
5254 .block_erase = erase_chip_block_jedec,
5255 }
5256 },
5257 .write = write_jedec_1,
5258 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005259 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005260 },
5261
5262 {
5263 .vendor = "PMC",
5264 .name = "Pm39LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005265 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005266 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005267 .model_id = PMC_PM39LV040,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005268 .total_size = 512,
5269 .page_size = 4096,
5270 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
5271 .tested = TEST_UNTESTED,
5272 .probe = probe_jedec,
5273 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5274 .block_erasers =
5275 {
5276 {
5277 .eraseblocks = { {4 * 1024, 128} },
5278 .block_erase = erase_sector_jedec,
5279 }, {
5280 .eraseblocks = { {64 * 1024, 8} },
5281 .block_erase = erase_block_jedec,
5282 }, {
5283 .eraseblocks = { {512 * 1024, 1} },
5284 .block_erase = erase_chip_block_jedec,
5285 }
5286 },
5287 .write = write_jedec_1,
5288 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005289 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005290 },
5291
5292 {
5293 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005294 .name = "Pm49FL002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005295 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005296 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005297 .model_id = PMC_PM49FL002,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005298 .total_size = 256,
5299 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005300 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunerd06d9412011-06-12 19:47:55 +00005301 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00005302 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005303 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00005304 .block_erasers =
5305 {
5306 {
5307 .eraseblocks = { {4 * 1024, 64} },
5308 .block_erase = erase_sector_jedec,
5309 }, {
5310 .eraseblocks = { {16 * 1024, 16} },
5311 .block_erase = erase_block_jedec,
5312 }, {
5313 .eraseblocks = { {256 * 1024, 1} },
5314 .block_erase = erase_chip_block_jedec,
5315 }
5316 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00005317 .unlock = unlock_49fl00x,
Sean Nelson36172342010-02-27 18:01:15 +00005318 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005319 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005320 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005321 },
5322
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005323 {
5324 .vendor = "PMC",
5325 .name = "Pm49FL004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005326 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005327 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005328 .model_id = PMC_PM49FL004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005329 .total_size = 512,
5330 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005331 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00005332 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00005333 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005334 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00005335 .block_erasers =
5336 {
5337 {
5338 .eraseblocks = { {4 * 1024, 128} },
5339 .block_erase = erase_sector_jedec,
5340 }, {
5341 .eraseblocks = { {64 * 1024, 8} },
5342 .block_erase = erase_block_jedec,
5343 }, {
5344 .eraseblocks = { {512 * 1024, 1} },
5345 .block_erase = erase_chip_block_jedec,
5346 }
5347 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00005348 .unlock = unlock_49fl00x,
Sean Nelson36172342010-02-27 18:01:15 +00005349 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005350 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005351 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005352 },
5353
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005354 {
Sean Nelsond70b09c2009-11-24 02:11:08 +00005355 .vendor = "Sanyo",
5356 .name = "LF25FW203A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005357 .bustype = BUS_SPI,
Sean Nelsond70b09c2009-11-24 02:11:08 +00005358 .manufacture_id = SANYO_ID,
5359 .model_id = SANYO_LE25FW203A,
5360 .total_size = 2048,
5361 .page_size = 256,
5362 .tested = TEST_UNTESTED,
5363 .probe = probe_spi_rdid,
5364 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005365 .block_erasers =
5366 {
5367 {
5368 .eraseblocks = { {64 * 1024, 32} },
5369 .block_erase = spi_block_erase_d8,
5370 }, {
5371 .eraseblocks = { {2 * 1024 * 1024, 1} },
5372 .block_erase = spi_block_erase_c7,
5373 }
5374 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005375 .unlock = spi_disable_blockprotect,
Sean Nelsond70b09c2009-11-24 02:11:08 +00005376 .write = spi_chip_write_256,
5377 .read = spi_chip_read,
5378 },
5379
5380 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005381 .vendor = "Sharp",
Mattias Mattssonfca3b012011-08-25 22:44:11 +00005382 .name = "LH28F008BJT-BTLZ1",
5383 .bustype = BUS_PARALLEL,
5384 .manufacture_id = SHARP_ID,
5385 .model_id = SHARP_LH28F008BJxxPB,
5386 .total_size = 1024,
5387 .page_size = 64 * 1024,
5388 .tested = TEST_OK_PREW,
5389 .probe = probe_82802ab,
5390 .probe_timing = TIMING_ZERO,
5391 .block_erasers =
5392 {
5393 {
5394 .eraseblocks = {
5395 {8 * 1024, 8},
5396 {64 * 1024, 15}
5397 },
5398 .block_erase = erase_block_82802ab,
5399 }, {
5400 .eraseblocks = { {1024 * 1024, 1} },
5401 .block_erase = erase_sector_49lfxxxc,
5402 }
5403 },
5404 .unlock = unlock_lh28f008bjt,
5405 .write = write_82802ab,
5406 .read = read_memmapped,
5407 .voltage = {2700, 3600},
5408 },
5409
5410 {
5411 .vendor = "Sharp",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005412 .name = "LHF00L04",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005413 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005414 .manufacture_id = SHARP_ID,
5415 .model_id = SHARP_LHF00L04,
5416 .total_size = 1024,
5417 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005418 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005419 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005420 .probe = probe_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00005421 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00005422 .block_erasers =
5423 {
5424 {
5425 .eraseblocks = {
5426 {64 * 1024, 15},
5427 {8 * 1024, 8}
5428 },
Sean Nelson28accc22010-03-19 18:47:06 +00005429 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00005430 }, {
5431 .eraseblocks = {
5432 {1024 * 1024, 1}
5433 },
Sean Nelson51c83fb2010-01-20 20:55:53 +00005434 .block_erase = NULL, /* 30 D0, only in A/A mux mode */
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00005435 },
5436 },
Sean Nelson28accc22010-03-19 18:47:06 +00005437 .unlock = unlock_82802ab,
5438 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005439 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005440 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005441 },
5442
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005443 {
5444 .vendor = "Spansion",
Rudy Hostf4e57772010-11-29 00:37:49 +00005445 .name = "S25FL004A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005446 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00005447 .manufacture_id = SPANSION_ID,
5448 .model_id = SPANSION_S25FL004A,
5449 .total_size = 512,
5450 .page_size = 256,
5451 .tested = TEST_UNTESTED,
5452 .probe = probe_spi_rdid,
5453 .probe_timing = TIMING_ZERO,
5454 .block_erasers =
5455 {
5456 {
5457 .eraseblocks = { {64 * 1024, 8} },
5458 .block_erase = spi_block_erase_d8,
5459 }, {
5460 .eraseblocks = { {512 * 1024, 1} },
5461 .block_erase = spi_block_erase_c7,
5462 }
5463 },
5464 .unlock = spi_disable_blockprotect,
5465 .write = spi_chip_write_256,
5466 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005467 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00005468 },
5469
5470 {
5471 .vendor = "Spansion",
Michael Karcher23ff4602010-01-12 23:29:30 +00005472 .name = "S25FL008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005473 .bustype = BUS_SPI,
Michael Karcher23ff4602010-01-12 23:29:30 +00005474 .manufacture_id = SPANSION_ID,
5475 .model_id = SPANSION_S25FL008A,
5476 .total_size = 1024,
5477 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005478 .tested = TEST_OK_PRE,
Michael Karcher23ff4602010-01-12 23:29:30 +00005479 .probe = probe_spi_rdid,
5480 .probe_timing = TIMING_ZERO,
Michael Karcher23ff4602010-01-12 23:29:30 +00005481 .block_erasers =
5482 {
5483 {
5484 .eraseblocks = { {64 * 1024, 16} },
5485 .block_erase = spi_block_erase_d8,
5486 }, {
5487 .eraseblocks = { {1024 * 1024, 1} },
5488 .block_erase = spi_block_erase_c7,
5489 }
5490 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005491 .unlock = spi_disable_blockprotect,
Michael Karcher23ff4602010-01-12 23:29:30 +00005492 .write = spi_chip_write_256,
5493 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005494 .voltage = {2700, 3600},
Michael Karcher23ff4602010-01-12 23:29:30 +00005495 },
5496
5497 {
5498 .vendor = "Spansion",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005499 .name = "S25FL016A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005500 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005501 .manufacture_id = SPANSION_ID,
5502 .model_id = SPANSION_S25FL016A,
5503 .total_size = 2048,
5504 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005505 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005506 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005507 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005508 .block_erasers =
5509 {
5510 {
5511 .eraseblocks = { {64 * 1024, 32} },
5512 .block_erase = spi_block_erase_d8,
5513 }, {
5514 .eraseblocks = { {2 * 1024 * 1024, 1} },
5515 .block_erase = spi_block_erase_c7,
5516 }
5517 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005518 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005519 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005520 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005521 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005522 },
5523
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005524 {
Rudy Hostf4e57772010-11-29 00:37:49 +00005525 .vendor = "Spansion",
5526 .name = "S25FL032A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005527 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00005528 .manufacture_id = SPANSION_ID,
5529 .model_id = SPANSION_S25FL032A,
5530 .total_size = 4096,
5531 .page_size = 256,
5532 .tested = TEST_UNTESTED,
5533 .probe = probe_spi_rdid,
5534 .probe_timing = TIMING_ZERO,
5535 .block_erasers =
5536 {
5537 {
5538 .eraseblocks = { {64 * 1024, 64} },
5539 .block_erase = spi_block_erase_d8,
5540 }, {
5541 .eraseblocks = { {4 * 1024 * 1024, 1} },
5542 .block_erase = spi_block_erase_c7,
5543 }
5544 },
5545 .unlock = spi_disable_blockprotect,
5546 .write = spi_chip_write_256,
5547 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005548 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00005549 },
5550
5551 {
5552 .vendor = "Spansion",
5553 .name = "S25FL064A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005554 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00005555 .manufacture_id = SPANSION_ID,
5556 .model_id = SPANSION_S25FL064A,
5557 .total_size = 8192,
5558 .page_size = 256,
5559 .tested = TEST_OK_PREW,
5560 .probe = probe_spi_rdid,
5561 .probe_timing = TIMING_ZERO,
5562 .block_erasers =
5563 {
5564 {
5565 .eraseblocks = { {64 * 1024, 128} },
5566 .block_erase = spi_block_erase_d8,
5567 }, {
5568 .eraseblocks = { {8 * 1024 * 1024, 1} },
5569 .block_erase = spi_block_erase_c7,
5570 }
5571 },
5572 .unlock = spi_disable_blockprotect,
5573 .write = spi_chip_write_256,
5574 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005575 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00005576 },
5577
5578 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005579 .vendor = "SST",
Zeus Castro33670ba2011-08-17 09:50:11 +00005580 .name = "SST25LF040A",
5581 .bustype = BUS_SPI,
5582 .manufacture_id = SST_ID,
5583 .model_id = SST_SST25VF040_REMS,
5584 .total_size = 512,
5585 .page_size = 256,
5586 .tested = TEST_OK_PROBE,
5587 .probe = probe_spi_res2,
5588 .probe_timing = TIMING_ZERO,
5589 .block_erasers =
5590 {
5591 {
5592 .eraseblocks = { {4 * 1024, 128} },
5593 .block_erase = spi_block_erase_20,
5594 }, {
5595 .eraseblocks = { {32 * 1024, 16} },
5596 .block_erase = spi_block_erase_52,
5597 }, {
5598 .eraseblocks = { {512 * 1024, 1} },
5599 .block_erase = spi_block_erase_60,
5600 },
5601 },
5602 .unlock = spi_disable_blockprotect,
5603 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
5604 .read = spi_chip_read,
5605 .voltage = {3000, 3600},
5606 },
5607
5608 {
5609 .vendor = "SST",
5610 .name = "SST25LF080A",
5611 .bustype = BUS_SPI,
5612 .manufacture_id = SST_ID,
5613 .model_id = SST_SST25VF080_REMS,
5614 .total_size = 1024,
5615 .page_size = 256,
5616 .tested = TEST_UNTESTED,
5617 .probe = probe_spi_res2,
5618 .probe_timing = TIMING_ZERO,
5619 .block_erasers =
5620 {
5621 {
5622 .eraseblocks = { {4 * 1024, 256} },
5623 .block_erase = spi_block_erase_20,
5624 }, {
5625 .eraseblocks = { {32 * 1024, 32} },
5626 .block_erase = spi_block_erase_52,
5627 }, {
5628 .eraseblocks = { {1024 * 1024, 1} },
5629 .block_erase = spi_block_erase_60,
5630 },
5631 },
5632 .unlock = spi_disable_blockprotect,
5633 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
5634 .read = spi_chip_read,
5635 .voltage = {3000, 3600},
5636 },
5637
5638 {
5639 .vendor = "SST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00005640 .name = "SST25VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005641 .bustype = BUS_SPI,
Mark Marshall90021f22010-12-03 14:48:11 +00005642 .manufacture_id = SST_ID,
5643 .model_id = SST_SST25VF010_REMS,
5644 .total_size = 128,
5645 .page_size = 256,
5646 .tested = TEST_OK_PREW,
5647 .probe = probe_spi_rems,
5648 .probe_timing = TIMING_ZERO,
5649 .block_erasers =
5650 {
5651 {
5652 .eraseblocks = { {4 * 1024, 32} },
5653 .block_erase = spi_block_erase_20,
5654 }, {
5655 .eraseblocks = { {32 * 1024, 4} },
5656 .block_erase = spi_block_erase_52,
5657 }, {
5658 .eraseblocks = { {128 * 1024, 1} },
5659 .block_erase = spi_block_erase_60,
5660 },
5661 },
5662 .unlock = spi_disable_blockprotect,
5663 .write = spi_chip_write_1,
5664 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005665 .voltage = {2700, 3600},
Mark Marshall90021f22010-12-03 14:48:11 +00005666 },
5667
5668 {
5669 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005670 .name = "SST25VF016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005671 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005672 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005673 .model_id = SST_SST25VF016B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005674 .total_size = 2048,
5675 .page_size = 256,
Mark Marshall90021f22010-12-03 14:48:11 +00005676 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005677 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005678 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00005679 .block_erasers =
5680 {
5681 {
5682 .eraseblocks = { {4 * 1024, 512} },
5683 .block_erase = spi_block_erase_20,
5684 }, {
5685 .eraseblocks = { {32 * 1024, 64} },
5686 .block_erase = spi_block_erase_52,
5687 }, {
5688 .eraseblocks = { {64 * 1024, 32} },
5689 .block_erase = spi_block_erase_d8,
5690 }, {
5691 .eraseblocks = { {2 * 1024 * 1024, 1} },
5692 .block_erase = spi_block_erase_60,
5693 }, {
5694 .eraseblocks = { {2 * 1024 * 1024, 1} },
5695 .block_erase = spi_block_erase_c7,
5696 },
5697 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005698 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00005699 .write = spi_aai_write,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005700 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005701 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005702 },
5703
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005704 {
5705 .vendor = "SST",
5706 .name = "SST25VF032B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005707 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005708 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005709 .model_id = SST_SST25VF032B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005710 .total_size = 4096,
5711 .page_size = 256,
Stefan Taunerfcf6a8c2011-05-18 01:32:00 +00005712 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005713 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005714 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00005715 .block_erasers =
5716 {
5717 {
5718 .eraseblocks = { {4 * 1024, 1024} },
5719 .block_erase = spi_block_erase_20,
5720 }, {
5721 .eraseblocks = { {32 * 1024, 128} },
5722 .block_erase = spi_block_erase_52,
5723 }, {
5724 .eraseblocks = { {64 * 1024, 64} },
5725 .block_erase = spi_block_erase_d8,
5726 }, {
5727 .eraseblocks = { {4 * 1024 * 1024, 1} },
5728 .block_erase = spi_block_erase_60,
5729 }, {
5730 .eraseblocks = { {4 * 1024 * 1024, 1} },
5731 .block_erase = spi_block_erase_c7,
5732 },
5733 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005734 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +00005735 .write = spi_aai_write,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00005736 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005737 .voltage = {2700, 3600},
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00005738 },
5739
5740 {
5741 .vendor = "SST",
Ed Swierk86f4e6d2010-07-21 15:02:22 +00005742 .name = "SST25VF064C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005743 .bustype = BUS_SPI,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00005744 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005745 .model_id = SST_SST25VF064C,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00005746 .total_size = 8192,
5747 .page_size = 256,
Stefan Tauner8179be52011-06-04 13:13:34 +00005748 .tested = TEST_OK_PREW,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00005749 .probe = probe_spi_rdid,
5750 .probe_timing = TIMING_ZERO,
5751 .block_erasers =
5752 {
5753 {
5754 .eraseblocks = { {4 * 1024, 2048} },
5755 .block_erase = spi_block_erase_20,
5756 }, {
5757 .eraseblocks = { {32 * 1024, 256} },
5758 .block_erase = spi_block_erase_52,
5759 }, {
5760 .eraseblocks = { {64 * 1024, 128} },
5761 .block_erase = spi_block_erase_d8,
5762 }, {
5763 .eraseblocks = { {8 * 1024 * 1024, 1} },
5764 .block_erase = spi_block_erase_60,
5765 }, {
5766 .eraseblocks = { {8 * 1024 * 1024, 1} },
5767 .block_erase = spi_block_erase_c7,
5768 },
5769 },
5770 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +00005771 .write = spi_chip_write_256,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00005772 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005773 .voltage = {2700, 3600},
Ed Swierk86f4e6d2010-07-21 15:02:22 +00005774 },
5775
5776 {
5777 .vendor = "SST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00005778 .name = "SST25VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005779 .bustype = BUS_SPI,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00005780 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005781 .model_id = SST_SST25VF040_REMS,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00005782 .total_size = 512,
5783 .page_size = 256,
5784 .tested = TEST_OK_PR,
5785 .probe = probe_spi_rems,
5786 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00005787 .block_erasers =
5788 {
5789 {
5790 .eraseblocks = { {4 * 1024, 128} },
5791 .block_erase = spi_block_erase_20,
5792 }, {
5793 .eraseblocks = { {32 * 1024, 16} },
5794 .block_erase = spi_block_erase_52,
5795 }, {
5796 .eraseblocks = { {512 * 1024, 1} },
5797 .block_erase = spi_block_erase_60,
5798 },
5799 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005800 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00005801 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005802 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005803 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005804 },
5805
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005806 {
5807 .vendor = "SST",
5808 .name = "SST25VF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005809 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005810 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005811 .model_id = SST_SST25VF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005812 .total_size = 512,
5813 .page_size = 256,
5814 .tested = TEST_UNTESTED,
5815 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005816 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00005817 .block_erasers =
5818 {
5819 {
5820 .eraseblocks = { {4 * 1024, 128} },
5821 .block_erase = spi_block_erase_20,
5822 }, {
5823 .eraseblocks = { {32 * 1024, 16} },
5824 .block_erase = spi_block_erase_52,
5825 }, {
5826 .eraseblocks = { {64 * 1024, 8} },
5827 .block_erase = spi_block_erase_d8,
5828 }, {
5829 .eraseblocks = { {512 * 1024, 1} },
5830 .block_erase = spi_block_erase_60,
5831 }, {
5832 .eraseblocks = { {512 * 1024, 1} },
5833 .block_erase = spi_block_erase_c7,
5834 },
5835 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005836 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00005837 .write = spi_aai_write,
Zheng Bao0677dff2009-02-25 08:07:33 +00005838 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005839 .voltage = {2700, 3600},
Zheng Bao0677dff2009-02-25 08:07:33 +00005840 },
5841
5842 {
5843 .vendor = "SST",
Peter Stugefd9217d2009-01-26 03:37:40 +00005844 .name = "SST25VF040B.REMS",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005845 .bustype = BUS_SPI,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005846 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005847 .model_id = SST_SST25VF040B_REMS,
Peter Stugefd9217d2009-01-26 03:37:40 +00005848 .total_size = 512,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00005849 .page_size = 256,
Peter Stugefd9217d2009-01-26 03:37:40 +00005850 .tested = TEST_OK_PR,
5851 .probe = probe_spi_rems,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005852 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00005853 .block_erasers =
5854 {
5855 {
5856 .eraseblocks = { {4 * 1024, 128} },
5857 .block_erase = spi_block_erase_20,
5858 }, {
5859 .eraseblocks = { {32 * 1024, 16} },
5860 .block_erase = spi_block_erase_52,
5861 }, {
5862 .eraseblocks = { {64 * 1024, 8} },
5863 .block_erase = spi_block_erase_d8,
5864 }, {
5865 .eraseblocks = { {512 * 1024, 1} },
5866 .block_erase = spi_block_erase_60,
5867 }, {
5868 .eraseblocks = { {512 * 1024, 1} },
5869 .block_erase = spi_block_erase_c7,
5870 },
5871 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005872 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00005873 .write = spi_aai_write,
Peter Stugefd9217d2009-01-26 03:37:40 +00005874 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005875 .voltage = {2700, 3600},
Peter Stugefd9217d2009-01-26 03:37:40 +00005876 },
5877
5878 {
5879 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005880 .name = "SST25VF080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005881 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005882 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005883 .model_id = SST_SST25VF080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005884 .total_size = 1024,
5885 .page_size = 256,
John Schmergec965c2d2011-05-18 11:28:47 +00005886 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005887 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005888 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00005889 .block_erasers =
5890 {
5891 {
5892 .eraseblocks = { {4 * 1024, 256} },
5893 .block_erase = spi_block_erase_20,
5894 }, {
5895 .eraseblocks = { {32 * 1024, 32} },
5896 .block_erase = spi_block_erase_52,
5897 }, {
5898 .eraseblocks = { {64 * 1024, 16} },
5899 .block_erase = spi_block_erase_d8,
5900 }, {
5901 .eraseblocks = { {1024 * 1024, 1} },
5902 .block_erase = spi_block_erase_60,
5903 }, {
5904 .eraseblocks = { {1024 * 1024, 1} },
5905 .block_erase = spi_block_erase_c7,
5906 },
5907 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005908 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00005909 .write = spi_aai_write,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005910 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005911 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005912 },
5913
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005914 {
5915 .vendor = "SST",
5916 .name = "SST28SF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005917 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005918 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005919 .model_id = SST_SST28SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005920 .total_size = 512,
5921 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00005922 .feature_bits = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005923 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005924 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00005925 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00005926 .block_erasers =
5927 {
5928 {
5929 .eraseblocks = { {128, 4096} },
5930 .block_erase = erase_sector_28sf040,
5931 }, {
5932 .eraseblocks = { {512 * 1024, 1} },
5933 .block_erase = erase_chip_28sf040,
5934 }
5935 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00005936 .unlock = unprotect_28sf040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005937 .write = write_28sf040,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005938 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005939 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005940 },
5941
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005942 {
5943 .vendor = "SST",
5944 .name = "SST29EE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005945 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005946 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005947 .model_id = SST_SST29EE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005948 .total_size = 128,
5949 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00005950 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005951 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005952 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005953 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00005954 .block_erasers =
5955 {
5956 {
5957 .eraseblocks = { {128 * 1024, 1} },
5958 .block_erase = erase_chip_block_jedec,
5959 }
5960 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005961 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005962 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005963 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005964 },
5965
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005966 {
5967 .vendor = "SST",
5968 .name = "SST29LE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005969 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005970 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005971 .model_id = SST_SST29LE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005972 .total_size = 128,
5973 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00005974 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005975 .tested = TEST_UNTESTED,
5976 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005977 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00005978 .block_erasers =
5979 {
5980 {
5981 .eraseblocks = { {128 * 1024, 1} },
5982 .block_erase = erase_chip_block_jedec,
5983 }
5984 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005985 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005986 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005987 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005988 },
5989
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005990 {
5991 .vendor = "SST",
5992 .name = "SST29EE020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005993 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005994 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005995 .model_id = SST_SST29EE020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005996 .total_size = 256,
5997 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00005998 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005999 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006000 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006001 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006002 .block_erasers =
6003 {
6004 {
6005 .eraseblocks = { {256 * 1024, 1} },
6006 .block_erase = erase_chip_block_jedec,
6007 }
6008 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006009 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006010 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006011 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006012 },
6013
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006014 {
6015 .vendor = "SST",
6016 .name = "SST29LE020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006017 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006018 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006019 .model_id = SST_SST29LE020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006020 .total_size = 256,
6021 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00006022 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006023 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006024 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006025 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006026 .block_erasers =
6027 {
6028 {
6029 .eraseblocks = { {256 * 1024, 1} },
6030 .block_erase = erase_chip_block_jedec,
6031 }
6032 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006033 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006034 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006035 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006036 },
6037
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006038 {
6039 .vendor = "SST",
Uwe Hermann48da3f92010-01-23 15:15:19 +00006040 .name = "SST39SF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006041 .bustype = BUS_PARALLEL,
Uwe Hermann48da3f92010-01-23 15:15:19 +00006042 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006043 .model_id = SST_SST39SF512,
Uwe Hermann48da3f92010-01-23 15:15:19 +00006044 .total_size = 64,
6045 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006046 .feature_bits = FEATURE_EITHER_RESET,
Idwer Vollering7913fb42011-03-07 15:32:58 +00006047 .tested = TEST_OK_PREW,
Uwe Hermann48da3f92010-01-23 15:15:19 +00006048 .probe = probe_jedec,
6049 .probe_timing = 1, /* 150 ns */
Uwe Hermann48da3f92010-01-23 15:15:19 +00006050 .block_erasers =
6051 {
6052 {
6053 .eraseblocks = { {4 * 1024, 16} },
6054 .block_erase = erase_sector_jedec,
6055 }, {
6056 .eraseblocks = { {64 * 1024, 1} },
6057 .block_erase = erase_chip_block_jedec,
6058 }
6059 },
Sean Nelson35727f72010-01-28 23:55:12 +00006060 .write = write_jedec_1,
Uwe Hermann48da3f92010-01-23 15:15:19 +00006061 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006062 .voltage = {4500, 5500},
Uwe Hermann48da3f92010-01-23 15:15:19 +00006063 },
6064
6065 {
6066 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006067 .name = "SST39SF010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006068 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006069 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006070 .model_id = SST_SST39SF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006071 .total_size = 128,
6072 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006073 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00006074 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006075 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006076 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006077 .block_erasers =
6078 {
6079 {
6080 .eraseblocks = { {4 * 1024, 32} },
6081 .block_erase = erase_sector_jedec,
6082 }, {
6083 .eraseblocks = { {128 * 1024, 1} },
6084 .block_erase = erase_chip_block_jedec,
6085 }
6086 },
Sean Nelson35727f72010-01-28 23:55:12 +00006087 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006088 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006089 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006090 },
6091
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006092 {
6093 .vendor = "SST",
6094 .name = "SST39SF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006095 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006096 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006097 .model_id = SST_SST39SF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006098 .total_size = 256,
6099 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006100 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann19f46f22011-06-18 22:56:14 +00006101 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006102 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006103 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006104 .block_erasers =
6105 {
6106 {
6107 .eraseblocks = { {4 * 1024, 64} },
6108 .block_erase = erase_sector_jedec,
6109 }, {
6110 .eraseblocks = { {256 * 1024, 1} },
6111 .block_erase = erase_chip_block_jedec,
6112 }
6113 },
Sean Nelson35727f72010-01-28 23:55:12 +00006114 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006115 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006116 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006117 },
6118
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006119 {
6120 .vendor = "SST",
6121 .name = "SST39SF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006122 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006123 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006124 .model_id = SST_SST39SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006125 .total_size = 512,
6126 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006127 .feature_bits = FEATURE_EITHER_RESET,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006128 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006129 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006130 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006131 .block_erasers =
6132 {
6133 {
6134 .eraseblocks = { {4 * 1024, 128} },
6135 .block_erase = erase_sector_jedec,
6136 }, {
6137 .eraseblocks = { {512 * 1024, 1} },
6138 .block_erase = erase_chip_block_jedec,
6139 }
6140 },
Sean Nelson35727f72010-01-28 23:55:12 +00006141 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006142 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006143 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006144 },
6145
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006146 {
6147 .vendor = "SST",
6148 .name = "SST39VF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006149 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006150 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006151 .model_id = SST_SST39VF512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006152 .total_size = 64,
6153 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006154 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006155 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006156 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006157 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006158 .block_erasers =
6159 {
6160 {
6161 .eraseblocks = { {4 * 1024, 16} },
6162 .block_erase = erase_sector_jedec,
6163 }, {
6164 .eraseblocks = { {64 * 1024, 1} },
6165 .block_erase = erase_chip_block_jedec,
6166 }
6167 },
Sean Nelson35727f72010-01-28 23:55:12 +00006168 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006169 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006170 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006171 },
6172
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006173 {
6174 .vendor = "SST",
6175 .name = "SST39VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006176 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006177 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006178 .model_id = SST_SST39VF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006179 .total_size = 128,
6180 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006181 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006182 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006183 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006184 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006185 .block_erasers =
6186 {
6187 {
6188 .eraseblocks = { {4 * 1024, 32} },
6189 .block_erase = erase_sector_jedec,
6190 }, {
6191 .eraseblocks = { {128 * 1024, 1} },
6192 .block_erase = erase_chip_block_jedec,
6193 }
6194 },
Sean Nelson35727f72010-01-28 23:55:12 +00006195 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006196 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006197 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006198 },
6199
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006200 {
6201 .vendor = "SST",
6202 .name = "SST39VF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006203 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006204 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006205 .model_id = SST_SST39VF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006206 .total_size = 256,
6207 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006208 .feature_bits = FEATURE_EITHER_RESET,
6209 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006210 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006211 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006212 .block_erasers =
6213 {
6214 {
6215 .eraseblocks = { {4 * 1024, 64} },
6216 .block_erase = erase_sector_jedec,
6217 }, {
6218 .eraseblocks = { {256 * 1024, 1} },
6219 .block_erase = erase_chip_block_jedec,
6220 }
6221 },
Sean Nelson35727f72010-01-28 23:55:12 +00006222 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006223 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006224 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006225 },
6226
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006227 {
6228 .vendor = "SST",
6229 .name = "SST39VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006230 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006231 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006232 .model_id = SST_SST39VF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006233 .total_size = 512,
6234 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006235 .feature_bits = FEATURE_EITHER_RESET,
6236 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006237 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006238 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006239 .block_erasers =
6240 {
6241 {
6242 .eraseblocks = { {4 * 1024, 128} },
6243 .block_erase = erase_sector_jedec,
6244 }, {
6245 .eraseblocks = { {512 * 1024, 1} },
6246 .block_erase = erase_chip_block_jedec,
6247 }
6248 },
Sean Nelson35727f72010-01-28 23:55:12 +00006249 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006250 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006251 .voltage = {2700, 3600},
Carl-Daniel Hailfinger90eff152008-12-08 23:51:45 +00006252 },
FENG yu ningff692fb2008-12-08 18:15:10 +00006253
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006254 {
6255 .vendor = "SST",
Peter Stuge8440cc02009-01-25 23:55:12 +00006256 .name = "SST39VF080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006257 .bustype = BUS_PARALLEL,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006258 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006259 .model_id = SST_SST39VF080,
Peter Stuge8440cc02009-01-25 23:55:12 +00006260 .total_size = 1024,
6261 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006262 .feature_bits = FEATURE_EITHER_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +00006263 .tested = TEST_UNTESTED,
6264 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006265 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006266 .block_erasers =
6267 {
6268 {
6269 .eraseblocks = { {4 * 1024, 256} },
6270 .block_erase = erase_sector_jedec,
6271 }, {
6272 .eraseblocks = { {64 * 1024, 16} },
6273 .block_erase = erase_block_jedec,
6274 }, {
6275 .eraseblocks = { {1024 * 1024, 1} },
6276 .block_erase = erase_chip_block_jedec,
6277 }
6278 },
Sean Nelson35727f72010-01-28 23:55:12 +00006279 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006280 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006281 .voltage = {2700, 3600},
Peter Stuge8440cc02009-01-25 23:55:12 +00006282 },
6283
6284 {
6285 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006286 .name = "SST49LF002A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006287 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006288 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006289 .model_id = SST_SST49LF002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006290 .total_size = 256,
6291 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006292 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00006293 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006294 .probe = probe_jedec,
6295 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006296 .block_erasers =
6297 {
6298 {
6299 .eraseblocks = { {4 * 1024, 64} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006300 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006301 }, {
6302 .eraseblocks = { {16 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006303 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006304 }, {
6305 .eraseblocks = { {256 * 1024, 1} },
6306 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
6307 }
6308 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006309 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006310 .unlock = unlock_sst_fwhub,
6311 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006312 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006313 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006314 },
6315
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006316 {
6317 .vendor = "SST",
6318 .name = "SST49LF003A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006319 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006320 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006321 .model_id = SST_SST49LF003A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006322 .total_size = 384,
6323 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006324 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Peter Lemenkov45835c42009-09-25 01:09:18 +00006325 .tested = TEST_OK_PR,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006326 .probe = probe_jedec,
6327 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006328 .block_erasers =
6329 {
6330 {
6331 .eraseblocks = { {4 * 1024, 96} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006332 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006333 }, {
6334 .eraseblocks = { {64 * 1024, 6} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006335 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006336 }, {
6337 .eraseblocks = { {384 * 1024, 1} },
6338 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
6339 }
6340 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006341 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006342 .unlock = unlock_sst_fwhub,
6343 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006344 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006345 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006346 },
6347
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006348 {
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00006349 /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB)
6350 * and is only honored for 64k block erase, but not 4k sector erase.
6351 */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006352 .vendor = "SST",
6353 .name = "SST49LF004A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006354 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006355 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006356 .model_id = SST_SST49LF004A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006357 .total_size = 512,
6358 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006359 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00006360 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006361 .probe = probe_jedec,
6362 .probe_timing = 1, /* 150 ns */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00006363 .block_erasers =
6364 {
6365 {
6366 .eraseblocks = { {4 * 1024, 128} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006367 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00006368 }, {
6369 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006370 .block_erase = erase_block_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00006371 }, {
6372 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson51c83fb2010-01-20 20:55:53 +00006373 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00006374 },
6375 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006376 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006377 .unlock = unlock_sst_fwhub,
6378 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006379 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006380 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006381 },
6382
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006383 {
6384 .vendor = "SST",
6385 .name = "SST49LF004C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006386 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006387 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006388 .model_id = SST_SST49LF004C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006389 .total_size = 512,
6390 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006391 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006392 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006393 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00006394 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006395 .block_erasers =
6396 {
6397 {
6398 .eraseblocks = { {4 * 1024, 128} },
6399 .block_erase = erase_sector_49lfxxxc,
6400 }, {
6401 .eraseblocks = {
6402 {64 * 1024, 7},
6403 {32 * 1024, 1},
6404 {8 * 1024, 2},
6405 {16 * 1024, 1},
6406 },
Sean Nelson69e58112010-03-23 17:10:28 +00006407 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006408 }
6409 },
Sean Nelson69e58112010-03-23 17:10:28 +00006410 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00006411 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006412 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006413 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006414 },
6415
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006416 {
6417 .vendor = "SST",
6418 .name = "SST49LF008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006419 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006420 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006421 .model_id = SST_SST49LF008A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006422 .total_size = 1024,
6423 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006424 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006425 .tested = TEST_OK_PRE,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006426 .probe = probe_jedec,
6427 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006428 .block_erasers =
6429 {
6430 {
6431 .eraseblocks = { {4 * 1024, 256} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006432 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006433 }, {
6434 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006435 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006436 }, {
6437 .eraseblocks = { {1024 * 1024, 1} },
6438 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
6439 }
6440 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006441 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006442 .unlock = unlock_sst_fwhub,
6443 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006444 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006445 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006446 },
6447
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006448 {
6449 .vendor = "SST",
6450 .name = "SST49LF008C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006451 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006452 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006453 .model_id = SST_SST49LF008C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006454 .total_size = 1024,
6455 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006456 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006457 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006458 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00006459 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006460 .block_erasers =
6461 {
6462 {
6463 .eraseblocks = { {4 * 1024, 256} },
6464 .block_erase = erase_sector_49lfxxxc,
6465 }, {
6466 .eraseblocks = {
6467 {64 * 1024, 15},
6468 {32 * 1024, 1},
6469 {8 * 1024, 2},
6470 {16 * 1024, 1},
6471 },
Sean Nelson69e58112010-03-23 17:10:28 +00006472 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006473 }
6474 },
Sean Nelson69e58112010-03-23 17:10:28 +00006475 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00006476 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006477 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006478 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006479 },
6480
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006481 {
6482 .vendor = "SST",
6483 .name = "SST49LF016C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006484 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006485 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006486 .model_id = SST_SST49LF016C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006487 .total_size = 2048,
6488 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006489 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006490 .tested = TEST_OK_PR,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006491 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00006492 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006493 .block_erasers =
6494 {
6495 {
6496 .eraseblocks = { {4 * 1024, 512} },
6497 .block_erase = erase_sector_49lfxxxc,
6498 }, {
6499 .eraseblocks = {
6500 {64 * 1024, 31},
6501 {32 * 1024, 1},
6502 {8 * 1024, 2},
6503 {16 * 1024, 1},
6504 },
Sean Nelson69e58112010-03-23 17:10:28 +00006505 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006506 }
6507 },
Sean Nelson69e58112010-03-23 17:10:28 +00006508 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00006509 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006510 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006511 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006512 },
6513
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006514 {
6515 .vendor = "SST",
6516 .name = "SST49LF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006517 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006518 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006519 .model_id = SST_SST49LF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006520 .total_size = 256,
6521 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006522 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +00006523 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006524 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006525 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006526 .block_erasers =
6527 {
6528 {
6529 .eraseblocks = { {4 * 1024, 64} },
6530 .block_erase = erase_sector_jedec,
6531 }, {
6532 .eraseblocks = { {16 * 1024, 16} },
6533 .block_erase = erase_block_jedec,
6534 }, {
6535 .eraseblocks = { {256 * 1024, 1} },
6536 .block_erase = NULL,
6537 }
6538 },
Sean Nelson35727f72010-01-28 23:55:12 +00006539 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006540 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006541 .voltage = {3000, 3600},
Sven Schnellec208dfb2009-01-07 12:35:09 +00006542 },
6543
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006544 {
6545 .vendor = "SST",
6546 .name = "SST49LF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006547 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006548 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006549 .model_id = SST_SST49LF020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006550 .total_size = 256,
Carl-Daniel Hailfingerda654322009-07-23 01:44:38 +00006551 .page_size = 4 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006552 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006553 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006554 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006555 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006556 .block_erasers =
6557 {
6558 {
6559 .eraseblocks = { {4 * 1024, 64} },
6560 .block_erase = erase_sector_jedec,
6561 }, {
6562 .eraseblocks = { {16 * 1024, 16} },
6563 .block_erase = erase_block_jedec,
6564 }, {
6565 .eraseblocks = { {256 * 1024, 1} },
6566 .block_erase = NULL,
6567 }
6568 },
Sean Nelson35727f72010-01-28 23:55:12 +00006569 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006570 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006571 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006572 },
6573
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006574 {
6575 .vendor = "SST",
6576 .name = "SST49LF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006577 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006578 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006579 .model_id = SST_SST49LF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006580 .total_size = 512,
6581 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006582 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006583 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006584 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006585 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006586 .block_erasers =
6587 {
6588 {
6589 .eraseblocks = { {4 * 1024, 128} },
6590 .block_erase = erase_sector_jedec,
6591 }, {
6592 .eraseblocks = { {64 * 1024, 8} },
6593 .block_erase = erase_block_jedec,
6594 }, {
6595 .eraseblocks = { {512 * 1024, 1} },
6596 .block_erase = NULL,
6597 }
6598 },
Sean Nelson35727f72010-01-28 23:55:12 +00006599 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006600 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006601 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006602 },
6603
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006604 {
6605 .vendor = "SST",
6606 .name = "SST49LF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006607 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006608 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006609 .model_id = SST_SST49LF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006610 .total_size = 512,
6611 .page_size = 64 * 1024,
Joshua Roysa84b0bd2010-08-16 22:12:39 +00006612 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006613 .tested = TEST_OK_PREW,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006614 .probe = probe_jedec,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006615 .probe_timing = 1, /* 150ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006616 .block_erasers =
6617 {
6618 {
6619 .eraseblocks = { {4 * 1024, 128} },
6620 .block_erase = erase_sector_jedec,
6621 }, {
6622 .eraseblocks = { {64 * 1024, 8} },
6623 .block_erase = erase_block_jedec,
6624 }, {
6625 .eraseblocks = { {512 * 1024, 1} },
6626 .block_erase = NULL,
6627 }
6628 },
Joshua Roysa84b0bd2010-08-16 22:12:39 +00006629 .unlock = unlock_82802ab,
Sean Nelson35727f72010-01-28 23:55:12 +00006630 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006631 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006632 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006633 },
6634
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006635 {
6636 .vendor = "SST",
6637 .name = "SST49LF080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006638 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006639 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006640 .model_id = SST_SST49LF080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006641 .total_size = 1024,
6642 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006643 .feature_bits = FEATURE_EITHER_RESET,
Brandon Dowdyf07bf322011-03-06 18:31:11 +00006644 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006645 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00006646 .probe_timing = TIMING_FIXME,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006647 .block_erasers =
6648 {
6649 {
6650 .eraseblocks = { {4 * 1024, 256} },
6651 .block_erase = erase_sector_jedec,
6652 }, {
6653 .eraseblocks = { {64 * 1024, 16} },
6654 .block_erase = erase_block_jedec,
6655 }, {
6656 .eraseblocks = { {1024 * 1024, 1} },
6657 .block_erase = NULL,
6658 }
6659 },
Sean Nelson35727f72010-01-28 23:55:12 +00006660 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006661 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006662 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006663 },
6664
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006665 {
6666 .vendor = "SST",
6667 .name = "SST49LF160C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006668 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006669 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006670 .model_id = SST_SST49LF160C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006671 .total_size = 2048,
6672 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006673 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006674 .tested = TEST_OK_PRE,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006675 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00006676 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006677 .block_erasers =
6678 {
6679 {
6680 .eraseblocks = { {4 * 1024, 512} },
6681 .block_erase = erase_sector_49lfxxxc,
6682 }, {
6683 .eraseblocks = {
6684 {64 * 1024, 31},
6685 {32 * 1024, 1},
6686 {8 * 1024, 2},
6687 {16 * 1024, 1},
6688 },
Sean Nelson69e58112010-03-23 17:10:28 +00006689 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006690 }
6691 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00006692 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00006693 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006694 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006695 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006696 },
6697
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006698 {
6699 .vendor = "ST",
6700 .name = "M25P05-A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006701 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006702 .manufacture_id = ST_ID,
6703 .model_id = ST_M25P05A,
6704 .total_size = 64,
6705 .page_size = 256,
6706 .tested = TEST_UNTESTED,
6707 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006708 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006709 .block_erasers =
6710 {
6711 {
6712 .eraseblocks = { {32 * 1024, 2} },
6713 .block_erase = spi_block_erase_d8,
6714 }, {
6715 .eraseblocks = { {64 * 1024, 1} },
6716 .block_erase = spi_block_erase_c7,
6717 }
6718 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006719 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006720 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006721 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006722 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006723 },
6724
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00006725 /* The ST M25P05 is a bit of a problem. It has the same ID as the
6726 * ST M25P05-A in RES mode, but supports only 128 byte writes instead
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00006727 * of 256 byte writes. We rely heavily on the fact that probe_spi_res1
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00006728 * only is successful if RDID does not work.
6729 */
6730 {
6731 .vendor = "ST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006732 .name = "M25P05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006733 .bustype = BUS_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00006734 .manufacture_id = 0, /* Not used. */
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00006735 .model_id = ST_M25P05_RES,
6736 .total_size = 64,
6737 .page_size = 256,
6738 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00006739 .probe = probe_spi_res1,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00006740 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006741 .block_erasers =
6742 {
6743 {
6744 .eraseblocks = { {32 * 1024, 2} },
6745 .block_erase = spi_block_erase_d8,
6746 }, {
6747 .eraseblocks = { {64 * 1024, 1} },
6748 .block_erase = spi_block_erase_c7,
6749 }
6750 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006751 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00006752 .write = spi_chip_write_1, /* 128 */
6753 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006754 .voltage = {2700, 3600},
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00006755 },
6756
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006757 {
6758 .vendor = "ST",
6759 .name = "M25P10-A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006760 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006761 .manufacture_id = ST_ID,
6762 .model_id = ST_M25P10A,
6763 .total_size = 128,
6764 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006765 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006766 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006767 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006768 .block_erasers =
6769 {
6770 {
6771 .eraseblocks = { {32 * 1024, 4} },
6772 .block_erase = spi_block_erase_d8,
6773 }, {
6774 .eraseblocks = { {128 * 1024, 1} },
6775 .block_erase = spi_block_erase_c7,
6776 }
6777 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006778 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006779 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006780 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006781 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006782 },
6783
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00006784 /* The ST M25P10 has the same problem as the M25P05. */
6785 {
6786 .vendor = "ST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006787 .name = "M25P10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006788 .bustype = BUS_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00006789 .manufacture_id = 0, /* Not used. */
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00006790 .model_id = ST_M25P10_RES,
6791 .total_size = 128,
6792 .page_size = 256,
6793 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00006794 .probe = probe_spi_res1,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00006795 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006796 .block_erasers =
6797 {
6798 {
6799 .eraseblocks = { {32 * 1024, 4} },
6800 .block_erase = spi_block_erase_d8,
6801 }, {
6802 .eraseblocks = { {128 * 1024, 1} },
6803 .block_erase = spi_block_erase_c7,
6804 }
6805 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006806 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00006807 .write = spi_chip_write_1, /* 128 */
6808 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006809 .voltage = {2700, 3600},
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00006810 },
6811
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006812 {
6813 .vendor = "ST",
6814 .name = "M25P20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006815 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006816 .manufacture_id = ST_ID,
6817 .model_id = ST_M25P20,
6818 .total_size = 256,
6819 .page_size = 256,
6820 .tested = TEST_UNTESTED,
6821 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006822 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006823 .block_erasers =
6824 {
6825 {
6826 .eraseblocks = { {64 * 1024, 4} },
6827 .block_erase = spi_block_erase_d8,
6828 }, {
6829 .eraseblocks = { {256 * 1024, 1} },
6830 .block_erase = spi_block_erase_c7,
6831 }
6832 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006833 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006834 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006835 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006836 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006837 },
6838
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006839 {
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006840 .vendor = "ST", /* Numonyx */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006841 .name = "M25P40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006842 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006843 .manufacture_id = ST_ID,
6844 .model_id = ST_M25P40,
6845 .total_size = 512,
6846 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006847 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006848 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006849 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006850 .block_erasers =
6851 {
6852 {
6853 .eraseblocks = { {64 * 1024, 8} },
6854 .block_erase = spi_block_erase_d8,
6855 }, {
6856 .eraseblocks = { {512 * 1024, 1} },
6857 .block_erase = spi_block_erase_c7,
6858 }
6859 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006860 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006861 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006862 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006863 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006864 },
6865
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006866 {
6867 .vendor = "ST",
6868 .name = "M25P40-old",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006869 .bustype = BUS_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00006870 .manufacture_id = 0, /* Not used. */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006871 .model_id = ST_M25P40_RES,
6872 .total_size = 512,
6873 .page_size = 256,
6874 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00006875 .probe = probe_spi_res1,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006876 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006877 .block_erasers =
6878 {
6879 {
6880 .eraseblocks = { {64 * 1024, 8} },
6881 .block_erase = spi_block_erase_d8,
6882 }, {
6883 .eraseblocks = { {512 * 1024, 1} },
6884 .block_erase = spi_block_erase_c7,
6885 }
6886 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006887 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006888 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006889 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00006890 },
6891
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006892 {
6893 .vendor = "ST",
6894 .name = "M25P80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006895 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006896 .manufacture_id = ST_ID,
6897 .model_id = ST_M25P80,
6898 .total_size = 1024,
6899 .page_size = 256,
Uwe Hermann19f46f22011-06-18 22:56:14 +00006900 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006901 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006902 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006903 .block_erasers =
6904 {
6905 {
6906 .eraseblocks = { {64 * 1024, 16} },
6907 .block_erase = spi_block_erase_d8,
6908 }, {
6909 .eraseblocks = { {1024 * 1024, 1} },
6910 .block_erase = spi_block_erase_c7,
6911 }
6912 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006913 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006914 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006915 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006916 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006917 },
6918
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006919 {
6920 .vendor = "ST",
6921 .name = "M25P16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006922 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006923 .manufacture_id = ST_ID,
6924 .model_id = ST_M25P16,
6925 .total_size = 2048,
6926 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006927 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006928 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006929 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006930 .block_erasers =
6931 {
6932 {
6933 .eraseblocks = { {64 * 1024, 32} },
6934 .block_erase = spi_block_erase_d8,
6935 }, {
6936 .eraseblocks = { {2 * 1024 * 1024, 1} },
6937 .block_erase = spi_block_erase_c7,
6938 }
6939 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006940 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006941 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006942 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006943 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006944 },
6945
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006946 {
6947 .vendor = "ST",
6948 .name = "M25P32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006949 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006950 .manufacture_id = ST_ID,
6951 .model_id = ST_M25P32,
6952 .total_size = 4096,
6953 .page_size = 256,
Antony Rheneus0fbba982011-05-26 14:28:51 +00006954 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006955 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006956 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006957 .block_erasers =
6958 {
6959 {
6960 .eraseblocks = { {64 * 1024, 64} },
6961 .block_erase = spi_block_erase_d8,
6962 }, {
6963 .eraseblocks = { {4 * 1024 * 1024, 1} },
6964 .block_erase = spi_block_erase_c7,
6965 }
6966 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006967 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006968 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006969 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006970 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006971 },
6972
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006973 {
6974 .vendor = "ST",
6975 .name = "M25P64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006976 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006977 .manufacture_id = ST_ID,
6978 .model_id = ST_M25P64,
6979 .total_size = 8192,
6980 .page_size = 256,
6981 .tested = TEST_UNTESTED,
6982 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006983 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006984 .block_erasers =
6985 {
6986 {
6987 .eraseblocks = { {64 * 1024, 128} },
6988 .block_erase = spi_block_erase_d8,
6989 }, {
6990 .eraseblocks = { {8 * 1024 * 1024, 1} },
6991 .block_erase = spi_block_erase_c7,
6992 }
6993 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006994 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006995 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006996 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006997 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006998 },
6999
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007000 {
7001 .vendor = "ST",
7002 .name = "M25P128",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007003 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007004 .manufacture_id = ST_ID,
7005 .model_id = ST_M25P128,
7006 .total_size = 16384,
7007 .page_size = 256,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00007008 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007009 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007010 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007011 .block_erasers =
7012 {
7013 {
7014 .eraseblocks = { {256 * 1024, 64} },
7015 .block_erase = spi_block_erase_d8,
7016 }, {
7017 .eraseblocks = { {16 * 1024 * 1024, 1} },
7018 .block_erase = spi_block_erase_c7,
7019 }
7020 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007021 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007022 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007023 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007024 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007025 },
7026
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007027 {
7028 .vendor = "ST",
Carl Worthd1dd72c2011-03-06 18:45:40 +00007029 .name = "M25PX16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007030 .bustype = BUS_SPI,
Carl Worthd1dd72c2011-03-06 18:45:40 +00007031 .manufacture_id = ST_ID,
7032 .model_id = ST_M25PX16,
7033 .total_size = 2048,
7034 .page_size = 256,
7035 .tested = TEST_OK_PREW,
7036 .probe = probe_spi_rdid,
7037 .probe_timing = TIMING_ZERO,
7038 .block_erasers =
7039 {
7040 {
7041 .eraseblocks = { { 4 * 1024, 512 } },
7042 .block_erase = spi_block_erase_20,
7043 }, {
7044 .eraseblocks = { {64 * 1024, 32} },
7045 .block_erase = spi_block_erase_d8,
7046 }, {
7047 .eraseblocks = { {2 * 1024 * 1024, 1} },
7048 .block_erase = spi_block_erase_c7,
7049 }
7050 },
7051 .unlock = spi_disable_blockprotect,
7052 .write = spi_chip_write_256,
7053 .read = spi_chip_read,
7054 },
7055
7056 {
7057 .vendor = "ST",
Jason Shriver4119e9b2010-09-14 13:16:01 +00007058 .name = "M25PX32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007059 .bustype = BUS_SPI,
Jason Shriver4119e9b2010-09-14 13:16:01 +00007060 .manufacture_id = ST_ID,
7061 .model_id = ST_M25PX32,
7062 .total_size = 4096,
7063 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007064 .tested = TEST_OK_PRE,
Jason Shriver4119e9b2010-09-14 13:16:01 +00007065 .probe = probe_spi_rdid,
7066 .probe_timing = TIMING_ZERO,
7067 .block_erasers =
7068 {
7069 {
7070 .eraseblocks = { { 4 * 1024, 1024 } },
7071 .block_erase = spi_block_erase_20,
7072 }, {
7073 .eraseblocks = { {64 * 1024, 64} },
7074 .block_erase = spi_block_erase_d8,
7075 }, {
7076 .eraseblocks = { {4 * 1024 * 1024, 1} },
7077 .block_erase = spi_block_erase_c7,
7078 }
7079 },
7080 .unlock = spi_disable_blockprotect,
7081 .write = spi_chip_write_256,
7082 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007083 .voltage = {2700, 3600},
Jason Shriver4119e9b2010-09-14 13:16:01 +00007084 },
7085
7086 {
7087 .vendor = "ST",
7088 .name = "M25PX64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007089 .bustype = BUS_SPI,
Jason Shriver4119e9b2010-09-14 13:16:01 +00007090 .manufacture_id = ST_ID,
7091 .model_id = ST_M25PX64,
7092 .total_size = 8192,
7093 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007094 .tested = TEST_OK_PRE,
Jason Shriver4119e9b2010-09-14 13:16:01 +00007095 .probe = probe_spi_rdid,
7096 .probe_timing = TIMING_ZERO,
7097 .block_erasers =
7098 {
7099 {
7100 .eraseblocks = { { 4 * 1024, 2048 } },
7101 .block_erase = spi_block_erase_20,
7102 }, {
7103 .eraseblocks = { {64 * 1024, 128} },
7104 .block_erase = spi_block_erase_d8,
7105 }, {
7106 .eraseblocks = { {8 * 1024 * 1024, 1} },
7107 .block_erase = spi_block_erase_c7,
7108 }
7109 },
7110 .unlock = spi_disable_blockprotect,
7111 .write = spi_chip_write_256,
7112 .read = spi_chip_read,
7113 },
7114
7115 {
7116 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007117 .name = "M29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007118 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007119 .manufacture_id = ST_ID,
7120 .model_id = ST_M29F002B,
7121 .total_size = 256,
7122 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007123 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007124 .tested = TEST_UNTESTED,
7125 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007126 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007127 .block_erasers =
7128 {
7129 {
7130 .eraseblocks = {
7131 {16 * 1024, 1},
7132 {8 * 1024, 2},
7133 {32 * 1024, 1},
7134 {64 * 1024, 3},
7135 },
7136 .block_erase = erase_sector_jedec,
7137 }, {
7138 .eraseblocks = { {256 * 1024, 1} },
7139 .block_erase = erase_chip_block_jedec,
7140 }
7141 },
Sean Nelson35727f72010-01-28 23:55:12 +00007142 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007143 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007144 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00007145 },
7146
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007147 {
7148 .vendor = "ST",
7149 .name = "M29F002T/NT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007150 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007151 .manufacture_id = ST_ID,
7152 .model_id = ST_M29F002T,
7153 .total_size = 256,
7154 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007155 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
7156 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007157 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007158 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007159 .block_erasers =
7160 {
7161 {
7162 .eraseblocks = {
7163 {64 * 1024, 3},
7164 {32 * 1024, 1},
7165 {8 * 1024, 2},
7166 {16 * 1024, 1},
7167 },
7168 .block_erase = erase_sector_jedec,
7169 }, {
7170 .eraseblocks = { {256 * 1024, 1} },
7171 .block_erase = erase_chip_block_jedec,
7172 }
7173 },
Sean Nelson35727f72010-01-28 23:55:12 +00007174 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007175 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007176 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00007177 },
7178
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007179 {
7180 .vendor = "ST",
7181 .name = "M29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007182 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007183 .manufacture_id = ST_ID,
7184 .model_id = ST_M29F040B,
7185 .total_size = 512,
7186 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007187 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
7188 .tested = TEST_UNTESTED,
7189 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00007190 .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */
Sean Nelson56358aa2010-01-19 16:08:51 +00007191 .block_erasers =
7192 {
7193 {
7194 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson35727f72010-01-28 23:55:12 +00007195 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +00007196 }, {
7197 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00007198 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +00007199 }
7200 },
Sean Nelson35727f72010-01-28 23:55:12 +00007201 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007202 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007203 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00007204 },
7205
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007206 {
Sean Nelson35727f72010-01-28 23:55:12 +00007207 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007208 .vendor = "ST",
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00007209 .name = "M29F400BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007210 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00007211 .manufacture_id = ST_ID,
7212 .model_id = ST_M29F400BB,
7213 .total_size = 512,
7214 .page_size = 64 * 1024,
7215 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00007216 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00007217 .probe = probe_m29f400bt,
7218 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
7219 .block_erasers =
7220 {
7221 {
7222 .eraseblocks = {
7223 {16 * 1024, 1},
7224 {8 * 1024, 2},
7225 {32 * 1024, 1},
7226 {64 * 1024, 7},
7227 },
7228 .block_erase = block_erase_m29f400bt,
7229 }, {
7230 .eraseblocks = { {512 * 1024, 1} },
7231 .block_erase = block_erase_chip_m29f400bt,
7232 }
7233 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00007234 .write = write_m29f400bt,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00007235 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007236 .voltage = {4500, 5500},
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00007237 },
7238 {
7239 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
7240 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007241 .name = "M29F400BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007242 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007243 .manufacture_id = ST_ID,
7244 .model_id = ST_M29F400BT,
7245 .total_size = 512,
7246 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007247 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007248 .tested = TEST_UNTESTED,
7249 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00007250 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00007251 .block_erasers =
7252 {
7253 {
7254 .eraseblocks = {
7255 {64 * 1024, 7},
7256 {32 * 1024, 1},
7257 {8 * 1024, 2},
7258 {16 * 1024, 1},
7259 },
7260 .block_erase = block_erase_m29f400bt,
7261 }, {
7262 .eraseblocks = { {512 * 1024, 1} },
7263 .block_erase = block_erase_chip_m29f400bt,
7264 }
7265 },
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00007266 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007267 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007268 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00007269 },
7270
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007271 {
7272 .vendor = "ST",
7273 .name = "M29W010B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007274 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007275 .manufacture_id = ST_ID,
7276 .model_id = ST_M29W010B,
7277 .total_size = 128,
7278 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007279 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007280 .tested = TEST_UNTESTED,
7281 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007282 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007283 .block_erasers =
7284 {
7285 {
7286 .eraseblocks = { {16 * 1024, 8}, },
7287 .block_erase = erase_sector_jedec,
7288 }, {
7289 .eraseblocks = { {128 * 1024, 1} },
7290 .block_erase = erase_chip_block_jedec,
7291 }
7292 },
Sean Nelson35727f72010-01-28 23:55:12 +00007293 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007294 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007295 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007296 },
7297
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007298 {
7299 .vendor = "ST",
7300 .name = "M29W040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007301 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007302 .manufacture_id = ST_ID,
7303 .model_id = ST_M29W040B,
7304 .total_size = 512,
7305 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007306 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007307 .tested = TEST_UNTESTED,
7308 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007309 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007310 .block_erasers =
7311 {
7312 {
7313 .eraseblocks = { {64 * 1024, 8}, },
7314 .block_erase = erase_sector_jedec,
7315 }, {
7316 .eraseblocks = { {512 * 1024, 1} },
7317 .block_erase = erase_chip_block_jedec,
7318 }
7319 },
Sean Nelson35727f72010-01-28 23:55:12 +00007320 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007321 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007322 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007323 },
7324
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +00007325 {
7326 .vendor = "ST",
7327 .name = "M29W512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007328 .bustype = BUS_PARALLEL,
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +00007329 .manufacture_id = ST_ID,
7330 .model_id = ST_M29W512B,
7331 .total_size = 64,
7332 .page_size = 64 * 1024,
7333 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007334 .tested = TEST_OK_PRE,
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +00007335 .probe = probe_jedec,
7336 .probe_timing = TIMING_ZERO,
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +00007337 .block_erasers =
7338 {
7339 {
7340 .eraseblocks = { {64 * 1024, 1} },
7341 .block_erase = erase_chip_block_jedec,
7342 }
7343 },
7344 .write = write_jedec_1,
7345 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007346 .voltage = {2700, 3600},
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +00007347 },
7348
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007349 {
7350 .vendor = "ST",
7351 .name = "M50FLW040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007352 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007353 .manufacture_id = ST_ID,
7354 .model_id = ST_M50FLW040A,
7355 .total_size = 512,
7356 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007357 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007358 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00007359 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00007360 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00007361 .block_erasers =
7362 {
7363 {
Sean Nelson329bde72010-01-19 16:39:19 +00007364 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00007365 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00007366 {64 * 1024, 5}, /* block */
7367 {4 * 1024, 16}, /* sector */
7368 {4 * 1024, 16}, /* sector */
7369 },
7370 .block_erase = NULL,
7371 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00007372 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +00007373 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00007374 }
7375 },
Sean Nelson28accc22010-03-19 18:47:06 +00007376 .unlock = unlock_stm50flw0x0x,
7377 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007378 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007379 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00007380 },
7381
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007382 {
7383 .vendor = "ST",
7384 .name = "M50FLW040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007385 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007386 .manufacture_id = ST_ID,
7387 .model_id = ST_M50FLW040B,
7388 .total_size = 512,
7389 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007390 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007391 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00007392 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00007393 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00007394 .block_erasers =
7395 {
7396 {
Sean Nelson329bde72010-01-19 16:39:19 +00007397 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00007398 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00007399 {4 * 1024, 16}, /* sector */
7400 {64 * 1024, 5}, /* block */
7401 {4 * 1024, 16}, /* sector */
7402 },
7403 .block_erase = NULL,
7404 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00007405 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +00007406 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00007407 }
7408 },
Sean Nelson28accc22010-03-19 18:47:06 +00007409 .unlock = unlock_stm50flw0x0x,
7410 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007411 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007412 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00007413 },
7414
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007415 {
7416 .vendor = "ST",
7417 .name = "M50FLW080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007418 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007419 .manufacture_id = ST_ID,
7420 .model_id = ST_M50FLW080A,
7421 .total_size = 1024,
7422 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007423 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007424 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +00007425 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00007426 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00007427 .block_erasers =
7428 {
7429 {
Sean Nelson329bde72010-01-19 16:39:19 +00007430 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00007431 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00007432 {64 * 1024, 13}, /* block */
7433 {4 * 1024, 16}, /* sector */
7434 {4 * 1024, 16}, /* sector */
7435 },
7436 .block_erase = NULL,
7437 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00007438 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +00007439 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00007440 }
7441 },
Sean Nelson28accc22010-03-19 18:47:06 +00007442 .unlock = unlock_stm50flw0x0x,
7443 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007444 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007445 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00007446 },
7447
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007448 {
7449 .vendor = "ST",
7450 .name = "M50FLW080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007451 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007452 .manufacture_id = ST_ID,
7453 .model_id = ST_M50FLW080B,
7454 .total_size = 1024,
7455 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007456 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007457 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00007458 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00007459 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00007460 .block_erasers =
7461 {
7462 {
Sean Nelson329bde72010-01-19 16:39:19 +00007463 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00007464 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00007465 {4 * 1024, 16}, /* sector */
7466 {64 * 1024, 13}, /* block */
7467 {4 * 1024, 16}, /* sector */
7468 },
7469 .block_erase = NULL,
7470 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00007471 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +00007472 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00007473 }
7474 },
Sean Nelson28accc22010-03-19 18:47:06 +00007475 .unlock = unlock_stm50flw0x0x,
7476 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007477 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007478 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00007479 },
7480
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007481 {
7482 .vendor = "ST",
7483 .name = "M50FW002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007484 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007485 .manufacture_id = ST_ID,
7486 .model_id = ST_M50FW002,
7487 .total_size = 256,
7488 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007489 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007490 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00007491 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00007492 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00007493 .block_erasers =
7494 {
7495 {
7496 .eraseblocks = {
7497 {64 * 1024, 3},
7498 {32 * 1024, 1},
7499 {8 * 1024, 2},
7500 {16 * 1024, 1},
7501 },
Sean Nelson28accc22010-03-19 18:47:06 +00007502 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00007503 }
7504 },
Sean Nelson28accc22010-03-19 18:47:06 +00007505 .unlock = unlock_stm50flw0x0x,
7506 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007507 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007508 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00007509 },
7510
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007511 {
7512 .vendor = "ST",
7513 .name = "M50FW016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007514 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007515 .manufacture_id = ST_ID,
7516 .model_id = ST_M50FW016,
7517 .total_size = 2048,
7518 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007519 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007520 .tested = TEST_UNTESTED,
7521 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00007522 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00007523 .block_erasers =
7524 {
7525 {
7526 .eraseblocks = { {64 * 1024, 32}, },
Sean Nelson28accc22010-03-19 18:47:06 +00007527 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00007528 }
7529 },
Sean Nelson28accc22010-03-19 18:47:06 +00007530 .unlock = unlock_stm50flw0x0x,
7531 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007532 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007533 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00007534 },
7535
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007536 {
7537 .vendor = "ST",
7538 .name = "M50FW040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007539 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007540 .manufacture_id = ST_ID,
7541 .model_id = ST_M50FW040,
7542 .total_size = 512,
7543 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007544 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +00007545 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007546 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00007547 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00007548 .block_erasers =
7549 {
7550 {
7551 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +00007552 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00007553 }
7554 },
Sean Nelson28accc22010-03-19 18:47:06 +00007555 .unlock = unlock_stm50flw0x0x,
7556 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007557 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007558 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00007559 },
7560
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007561 {
7562 .vendor = "ST",
7563 .name = "M50FW080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007564 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007565 .manufacture_id = ST_ID,
7566 .model_id = ST_M50FW080,
7567 .total_size = 1024,
7568 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007569 .feature_bits = FEATURE_REGISTERMAP,
Antony Rheneus0fbba982011-05-26 14:28:51 +00007570 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007571 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00007572 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00007573 .block_erasers =
7574 {
7575 {
7576 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +00007577 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00007578 }
7579 },
Sean Nelson28accc22010-03-19 18:47:06 +00007580 .unlock = unlock_stm50flw0x0x,
7581 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007582 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007583 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00007584 },
7585
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007586 {
7587 .vendor = "ST",
7588 .name = "M50LPW116",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007589 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007590 .manufacture_id = ST_ID,
7591 .model_id = ST_M50LPW116,
7592 .total_size = 2048,
7593 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007594 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007595 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00007596 .probe = probe_82802ab,
Udu Ogahc04ee222009-09-05 01:31:32 +00007597 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007598 .block_erasers =
7599 {
7600 {
7601 .eraseblocks = {
7602 {4 * 1024, 16},
7603 {64 * 1024, 30},
7604 {32 * 1024, 1},
7605 {8 * 1024, 2},
7606 {16 * 1024, 1},
7607 },
Sean Nelson28accc22010-03-19 18:47:06 +00007608 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00007609 }
7610 },
Sean Nelson28accc22010-03-19 18:47:06 +00007611 .unlock = unlock_stm50flw0x0x,
7612 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007613 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007614 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00007615 },
7616
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007617 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00007618 .vendor = "SyncMOS/MoselVitelic",
7619 .name = "{F,S,V}29C51001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007620 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00007621 .manufacture_id = SYNCMOS_MVC_ID,
7622 .model_id = SM_MVC_29C51001B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007623 .total_size = 128,
Mattias Mattsson4c066502010-07-29 20:01:13 +00007624 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +00007625 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007626 .tested = TEST_UNTESTED,
7627 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007628 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007629 .block_erasers =
7630 {
7631 {
7632 .eraseblocks = { {512, 256} },
7633 .block_erase = erase_sector_jedec,
7634 }, {
7635 .eraseblocks = { {128 * 1024, 1} },
7636 .block_erase = erase_chip_block_jedec,
7637 },
7638 },
Sean Nelson35727f72010-01-28 23:55:12 +00007639 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007640 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007641 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00007642 },
7643
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007644 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00007645 .vendor = "SyncMOS/MoselVitelic",
7646 .name = "{F,S,V}29C51001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007647 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00007648 .manufacture_id = SYNCMOS_MVC_ID,
7649 .model_id = SM_MVC_29C51001T,
7650 .total_size = 128,
7651 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +00007652 .feature_bits = FEATURE_EITHER_RESET,
Mattias Mattsson4c066502010-07-29 20:01:13 +00007653 .tested = TEST_UNTESTED,
7654 .probe = probe_jedec,
7655 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7656 .block_erasers =
7657 {
7658 {
7659 .eraseblocks = { {512, 256} },
7660 .block_erase = erase_sector_jedec,
7661 }, {
7662 .eraseblocks = { {128 * 1024, 1} },
7663 .block_erase = erase_chip_block_jedec,
7664 },
7665 },
7666 .write = write_jedec_1,
7667 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007668 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00007669 },
7670
7671 {
7672 .vendor = "SyncMOS/MoselVitelic",
7673 .name = "{F,S,V}29C51002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007674 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00007675 .manufacture_id = SYNCMOS_MVC_ID,
7676 .model_id = SM_MVC_29C51002B,
7677 .total_size = 256,
7678 .page_size = 512,
7679 .feature_bits = FEATURE_EITHER_RESET,
7680 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007681 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007682 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007683 .block_erasers =
7684 {
7685 {
7686 .eraseblocks = { {512, 512} },
7687 .block_erase = erase_sector_jedec,
7688 }, {
7689 .eraseblocks = { {256 * 1024, 1} },
7690 .block_erase = erase_chip_block_jedec,
7691 },
7692 },
Sean Nelson35727f72010-01-28 23:55:12 +00007693 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007694 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00007695 },
7696
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007697 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00007698 .vendor = "SyncMOS/MoselVitelic",
7699 .name = "{F,S,V}29C51002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007700 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00007701 .manufacture_id = SYNCMOS_MVC_ID,
7702 .model_id = SM_MVC_29C51002T,
7703 .total_size = 256,
7704 .page_size = 512,
7705 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007706 .tested = TEST_OK_PRE,
Mattias Mattsson4c066502010-07-29 20:01:13 +00007707 .probe = probe_jedec,
7708 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7709 .block_erasers =
7710 {
7711 {
7712 .eraseblocks = { {512, 512} },
7713 .block_erase = erase_sector_jedec,
7714 }, {
7715 .eraseblocks = { {256 * 1024, 1} },
7716 .block_erase = erase_chip_block_jedec,
7717 },
7718 },
7719 .write = write_jedec_1,
7720 .read = read_memmapped,
7721 },
7722
7723 {
7724 .vendor = "SyncMOS/MoselVitelic",
7725 .name = "{F,S,V}29C51004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007726 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00007727 .manufacture_id = SYNCMOS_MVC_ID,
7728 .model_id = SM_MVC_29C51004B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007729 .total_size = 512,
Mattias Mattsson4c066502010-07-29 20:01:13 +00007730 .page_size = 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007731 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007732 .tested = TEST_UNTESTED,
7733 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007734 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007735 .block_erasers =
7736 {
7737 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00007738 .eraseblocks = { {1024, 512} },
7739 .block_erase = erase_sector_jedec,
7740 }, {
7741 .eraseblocks = { {512 * 1024, 1} },
7742 .block_erase = erase_chip_block_jedec,
7743 },
7744 },
7745 .write = write_jedec_1,
7746 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007747 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00007748 },
7749
7750 {
7751 .vendor = "SyncMOS/MoselVitelic",
7752 .name = "{F,S,V}29C51004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007753 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00007754 .manufacture_id = SYNCMOS_MVC_ID,
7755 .model_id = SM_MVC_29C51004T,
7756 .total_size = 512,
7757 .page_size = 1024,
7758 .feature_bits = FEATURE_EITHER_RESET,
7759 .tested = TEST_UNTESTED,
7760 .probe = probe_jedec,
7761 .probe_timing = TIMING_ZERO,
7762 .block_erasers =
7763 {
7764 {
7765 .eraseblocks = { {1024, 512} },
7766 .block_erase = erase_sector_jedec,
7767 }, {
7768 .eraseblocks = { {512 * 1024, 1} },
7769 .block_erase = erase_chip_block_jedec,
7770 },
7771 },
7772 .write = write_jedec_1,
7773 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007774 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00007775 },
7776
7777 {
7778 .vendor = "SyncMOS/MoselVitelic",
7779 .name = "{S,V}29C31004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007780 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00007781 .manufacture_id = SYNCMOS_MVC_ID,
7782 .model_id = SM_MVC_29C31004B,
7783 .total_size = 512,
7784 .page_size = 1024,
7785 .feature_bits = FEATURE_EITHER_RESET,
7786 .tested = TEST_UNTESTED,
7787 .probe = probe_jedec,
7788 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7789 .block_erasers =
7790 {
7791 {
7792 .eraseblocks = { {1024, 512} },
7793 .block_erase = erase_sector_jedec,
7794 }, {
7795 .eraseblocks = { {512 * 1024, 1} },
7796 .block_erase = erase_chip_block_jedec,
7797 },
7798 },
7799 .write = write_jedec_1,
7800 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007801 .voltage = {3000, 3600},
Mattias Mattsson4c066502010-07-29 20:01:13 +00007802 },
7803
7804 {
7805 .vendor = "SyncMOS/MoselVitelic",
7806 .name = "{S,V}29C31004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007807 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00007808 .manufacture_id = SYNCMOS_MVC_ID,
7809 .model_id = SM_MVC_29C31004T,
7810 .total_size = 512,
7811 .page_size = 1024,
7812 .feature_bits = FEATURE_EITHER_RESET,
7813 .tested = TEST_UNTESTED,
7814 .probe = probe_jedec,
7815 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7816 .block_erasers =
7817 {
7818 {
7819 .eraseblocks = { {1024, 512} },
Sean Nelson56358aa2010-01-19 16:08:51 +00007820 .block_erase = erase_sector_jedec,
7821 }, {
7822 .eraseblocks = { {512 * 1024, 1} },
7823 .block_erase = erase_chip_block_jedec,
7824 },
7825 },
Sean Nelson35727f72010-01-28 23:55:12 +00007826 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007827 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007828 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007829 },
7830
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007831 {
Uwe Hermanna106d152009-05-27 23:17:40 +00007832 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00007833 .name = "TMS29F002RB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007834 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00007835 .manufacture_id = TI_OLD_ID,
7836 .model_id = TI_TMS29F002RB,
7837 .total_size = 256,
7838 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +00007839 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00007840 .tested = TEST_UNTESTED,
7841 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007842 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007843 .block_erasers =
7844 {
7845 {
7846 .eraseblocks = {
7847 {16 * 1024, 1},
7848 {8 * 1024, 2},
7849 {32 * 1024, 1},
7850 {64 * 1024, 3},
7851 },
7852 .block_erase = erase_sector_jedec,
7853 }, {
7854 .eraseblocks = { {256 * 1024, 1} },
7855 .block_erase = erase_chip_block_jedec,
7856 },
7857 },
Sean Nelson35727f72010-01-28 23:55:12 +00007858 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00007859 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007860 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00007861 },
7862
7863 {
Uwe Hermanna106d152009-05-27 23:17:40 +00007864 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00007865 .name = "TMS29F002RT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007866 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00007867 .manufacture_id = TI_OLD_ID,
7868 .model_id = TI_TMS29F002RT,
7869 .total_size = 256,
7870 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +00007871 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00007872 .tested = TEST_UNTESTED,
7873 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007874 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007875 .block_erasers =
7876 {
7877 {
7878 .eraseblocks = {
7879 {64 * 1024, 3},
7880 {32 * 1024, 1},
7881 {8 * 1024, 2},
7882 {16 * 1024, 1},
7883 },
7884 .block_erase = erase_sector_jedec,
7885 }, {
7886 .eraseblocks = { {256 * 1024, 1} },
7887 .block_erase = erase_chip_block_jedec,
7888 },
7889 },
Sean Nelson35727f72010-01-28 23:55:12 +00007890 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00007891 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007892 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00007893 },
7894
7895 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007896 .vendor = "Winbond",
Rudolf Marekce1c7982010-04-20 19:34:31 +00007897 .name = "W25Q80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007898 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +00007899 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00007900 .model_id = WINBOND_NEX_W25Q80,
Rudolf Marekce1c7982010-04-20 19:34:31 +00007901 .total_size = 1024,
7902 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00007903 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00007904 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +00007905 .probe = probe_spi_rdid,
7906 .probe_timing = TIMING_ZERO,
7907 .block_erasers =
7908 {
7909 {
7910 .eraseblocks = { {4 * 1024, 256} },
7911 .block_erase = spi_block_erase_20,
7912 }, {
7913 .eraseblocks = { {32 * 1024, 32} },
7914 .block_erase = spi_block_erase_52,
7915 }, {
7916 .eraseblocks = { {64 * 1024, 16} },
7917 .block_erase = spi_block_erase_d8,
7918 }, {
7919 .eraseblocks = { {1024 * 1024, 1} },
7920 .block_erase = spi_block_erase_60,
7921 }, {
7922 .eraseblocks = { {1024 * 1024, 1} },
7923 .block_erase = spi_block_erase_c7,
7924 }
7925 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007926 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +00007927 .write = spi_chip_write_256,
7928 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007929 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +00007930 },
7931
7932 {
7933 .vendor = "Winbond",
7934 .name = "W25Q16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007935 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +00007936 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00007937 .model_id = WINBOND_NEX_W25Q16,
Rudolf Marekce1c7982010-04-20 19:34:31 +00007938 .total_size = 2048,
7939 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00007940 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +00007941 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +00007942 .probe = probe_spi_rdid,
7943 .probe_timing = TIMING_ZERO,
7944 .block_erasers =
7945 {
7946 {
7947 .eraseblocks = { {4 * 1024, 512} },
7948 .block_erase = spi_block_erase_20,
7949 }, {
7950 .eraseblocks = { {32 * 1024, 64} },
7951 .block_erase = spi_block_erase_52,
7952 }, {
7953 .eraseblocks = { {64 * 1024, 32} },
7954 .block_erase = spi_block_erase_d8,
7955 }, {
7956 .eraseblocks = { {2 * 1024 * 1024, 1} },
7957 .block_erase = spi_block_erase_60,
7958 }, {
7959 .eraseblocks = { {2 * 1024 * 1024, 1} },
7960 .block_erase = spi_block_erase_c7,
7961 }
7962 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007963 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +00007964 .write = spi_chip_write_256,
7965 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007966 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +00007967 },
7968
7969 {
7970 .vendor = "Winbond",
7971 .name = "W25Q32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007972 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +00007973 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00007974 .model_id = WINBOND_NEX_W25Q32,
Rudolf Marekce1c7982010-04-20 19:34:31 +00007975 .total_size = 4096,
7976 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00007977 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00007978 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +00007979 .probe = probe_spi_rdid,
7980 .probe_timing = TIMING_ZERO,
7981 .block_erasers =
7982 {
7983 {
7984 .eraseblocks = { {4 * 1024, 1024} },
7985 .block_erase = spi_block_erase_20,
7986 }, {
7987 .eraseblocks = { {32 * 1024, 128} },
7988 .block_erase = spi_block_erase_52,
7989 }, {
7990 .eraseblocks = { {64 * 1024, 64} },
7991 .block_erase = spi_block_erase_d8,
7992 }, {
7993 .eraseblocks = { {4 * 1024 * 1024, 1} },
7994 .block_erase = spi_block_erase_60,
7995 }, {
7996 .eraseblocks = { {4 * 1024 * 1024, 1} },
7997 .block_erase = spi_block_erase_c7,
7998 }
7999 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008000 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008001 .write = spi_chip_write_256,
8002 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008003 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +00008004 },
8005
8006 {
8007 .vendor = "Winbond",
David Hendricksc4acec92010-06-24 11:39:57 +00008008 .name = "W25Q64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008009 .bustype = BUS_SPI,
David Hendricksc4acec92010-06-24 11:39:57 +00008010 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008011 .model_id = WINBOND_NEX_W25Q64,
David Hendricksc4acec92010-06-24 11:39:57 +00008012 .total_size = 8192,
8013 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008014 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00008015 .tested = TEST_OK_PREW,
David Hendricksc4acec92010-06-24 11:39:57 +00008016 .probe = probe_spi_rdid,
8017 .probe_timing = TIMING_ZERO,
8018 .block_erasers =
8019 {
8020 {
8021 .eraseblocks = { {4 * 1024, 2048} },
8022 .block_erase = spi_block_erase_20,
8023 }, {
8024 .eraseblocks = { {32 * 1024, 256} },
8025 .block_erase = spi_block_erase_52,
8026 }, {
8027 .eraseblocks = { {64 * 1024, 128} },
8028 .block_erase = spi_block_erase_d8,
8029 }, {
8030 .eraseblocks = { {8 * 1024 * 1024, 1} },
8031 .block_erase = spi_block_erase_60,
8032 }, {
8033 .eraseblocks = { {8 * 1024 * 1024, 1} },
8034 .block_erase = spi_block_erase_c7,
8035 }
8036 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008037 .unlock = spi_disable_blockprotect,
David Hendricksc4acec92010-06-24 11:39:57 +00008038 .write = spi_chip_write_256,
8039 .read = spi_chip_read,
8040 },
8041
8042 {
8043 .vendor = "Winbond",
Antony Rheneus0fbba982011-05-26 14:28:51 +00008044 .name = "W25Q128",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008045 .bustype = BUS_SPI,
Antony Rheneus0fbba982011-05-26 14:28:51 +00008046 .manufacture_id = WINBOND_NEX_ID,
8047 .model_id = WINBOND_NEX_W25Q128,
8048 .total_size = 16384,
8049 .page_size = 256,
8050 .feature_bits = FEATURE_WRSR_WREN,
8051 .tested = TEST_OK_PROBE,
8052 .probe = probe_spi_rdid,
8053 .probe_timing = TIMING_ZERO,
8054 .block_erasers =
8055 {
8056 {
8057 .eraseblocks = { {4 * 1024, 4096} },
8058 .block_erase = spi_block_erase_20,
8059 }, {
8060 .eraseblocks = { {32 * 1024, 512} },
8061 .block_erase = spi_block_erase_52,
8062 }, {
8063 .eraseblocks = { {64 * 1024, 256} },
8064 .block_erase = spi_block_erase_d8,
8065 }, {
8066 .eraseblocks = { {16 * 1024 * 1024, 1} },
8067 .block_erase = spi_block_erase_60,
8068 }, {
8069 .eraseblocks = { {16 * 1024 * 1024, 1} },
8070 .block_erase = spi_block_erase_c7,
8071 }
8072 },
8073 .unlock = spi_disable_blockprotect,
8074 .write = spi_chip_write_256,
8075 .read = spi_chip_read,
8076 },
8077
8078 {
8079 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008080 .name = "W25X10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008081 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008082 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008083 .model_id = WINBOND_NEX_W25X10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008084 .total_size = 128,
8085 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008086 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008087 .tested = TEST_UNTESTED,
8088 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008089 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008090 .block_erasers =
8091 {
8092 {
8093 .eraseblocks = { {4 * 1024, 32} },
8094 .block_erase = spi_block_erase_20,
8095 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008096 .eraseblocks = { {64 * 1024, 2} },
8097 .block_erase = spi_block_erase_d8,
8098 }, {
8099 .eraseblocks = { {128 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008100 .block_erase = spi_block_erase_c7,
8101 }
8102 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008103 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008104 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008105 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008106 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008107 },
8108
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008109 {
8110 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008111 .name = "W25X20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008112 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008113 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008114 .model_id = WINBOND_NEX_W25X20,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008115 .total_size = 256,
8116 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008117 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008118 .tested = TEST_UNTESTED,
8119 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008120 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008121 .block_erasers =
8122 {
8123 {
8124 .eraseblocks = { {4 * 1024, 64} },
8125 .block_erase = spi_block_erase_20,
8126 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008127 .eraseblocks = { {64 * 1024, 4} },
8128 .block_erase = spi_block_erase_d8,
8129 }, {
8130 .eraseblocks = { {256 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008131 .block_erase = spi_block_erase_c7,
8132 }
8133 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008134 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008135 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008136 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008137 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008138 },
8139
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008140 {
8141 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008142 .name = "W25X40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008143 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008144 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008145 .model_id = WINBOND_NEX_W25X40,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008146 .total_size = 512,
8147 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008148 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +00008149 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008150 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008151 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008152 .block_erasers =
8153 {
8154 {
8155 .eraseblocks = { {4 * 1024, 128} },
8156 .block_erase = spi_block_erase_20,
8157 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008158 .eraseblocks = { {64 * 1024, 8} },
8159 .block_erase = spi_block_erase_d8,
8160 }, {
8161 .eraseblocks = { {512 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008162 .block_erase = spi_block_erase_c7,
8163 }
8164 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008165 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008166 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008167 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008168 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008169 },
8170
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008171 {
8172 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008173 .name = "W25X80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008174 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008175 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008176 .model_id = WINBOND_NEX_W25X80,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008177 .total_size = 1024,
8178 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008179 .feature_bits = FEATURE_WRSR_WREN,
Yul Rottmann6d6ab742011-03-05 16:31:57 +00008180 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008181 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008182 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008183 .block_erasers =
8184 {
8185 {
8186 .eraseblocks = { {4 * 1024, 256} },
8187 .block_erase = spi_block_erase_20,
8188 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008189 .eraseblocks = { {64 * 1024, 16} },
8190 .block_erase = spi_block_erase_d8,
8191 }, {
8192 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008193 .block_erase = spi_block_erase_c7,
8194 }
8195 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008196 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008197 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008198 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008199 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008200 },
8201
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008202 {
8203 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008204 .name = "W25X16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008205 .bustype = BUS_SPI,
Hector Martina721ae22009-07-11 19:39:11 +00008206 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008207 .model_id = WINBOND_NEX_W25X16,
Hector Martina721ae22009-07-11 19:39:11 +00008208 .total_size = 2048,
8209 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008210 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +00008211 .tested = TEST_OK_PREW,
Hector Martina721ae22009-07-11 19:39:11 +00008212 .probe = probe_spi_rdid,
8213 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008214 .block_erasers =
8215 {
8216 {
8217 .eraseblocks = { {4 * 1024, 512} },
8218 .block_erase = spi_block_erase_20,
8219 }, {
8220 .eraseblocks = { {32 * 1024, 64} },
8221 .block_erase = spi_block_erase_52,
8222 }, {
8223 .eraseblocks = { {64 * 1024, 32} },
8224 .block_erase = spi_block_erase_d8,
8225 }, {
8226 .eraseblocks = { {2 * 1024 * 1024, 1} },
8227 .block_erase = spi_block_erase_60,
8228 }, {
8229 .eraseblocks = { {2 * 1024 * 1024, 1} },
8230 .block_erase = spi_block_erase_c7,
8231 }
8232 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008233 .unlock = spi_disable_blockprotect,
Hector Martina721ae22009-07-11 19:39:11 +00008234 .write = spi_chip_write_256,
8235 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008236 .voltage = {2700, 3600},
Hector Martina721ae22009-07-11 19:39:11 +00008237 },
8238
8239 {
8240 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008241 .name = "W25X32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008242 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +00008243 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008244 .model_id = WINBOND_NEX_W25X32,
Zheng Bao1db2b752009-11-26 11:05:01 +00008245 .total_size = 4096,
8246 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008247 .feature_bits = FEATURE_WRSR_WREN,
Zheng Bao1db2b752009-11-26 11:05:01 +00008248 .tested = TEST_OK_PROBE,
8249 .probe = probe_spi_rdid,
8250 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008251 .block_erasers =
8252 {
8253 {
8254 .eraseblocks = { {4 * 1024, 1024} },
8255 .block_erase = spi_block_erase_20,
8256 }, {
8257 .eraseblocks = { {32 * 1024, 128} },
8258 .block_erase = spi_block_erase_52,
8259 }, {
8260 .eraseblocks = { {64 * 1024, 64} },
8261 .block_erase = spi_block_erase_d8,
8262 }, {
8263 .eraseblocks = { {4 * 1024 * 1024, 1} },
8264 .block_erase = spi_block_erase_60,
8265 }, {
8266 .eraseblocks = { {4 * 1024 * 1024, 1} },
8267 .block_erase = spi_block_erase_c7,
8268 }
8269 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008270 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +00008271 .write = spi_chip_write_256,
8272 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008273 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +00008274 },
8275
8276 {
8277 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008278 .name = "W25X64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008279 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +00008280 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008281 .model_id = WINBOND_NEX_W25X64,
Zheng Bao1db2b752009-11-26 11:05:01 +00008282 .total_size = 8192,
8283 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008284 .feature_bits = FEATURE_WRSR_WREN,
Antony Rheneus0fbba982011-05-26 14:28:51 +00008285 .tested = TEST_OK_PROBE,
Zheng Bao1db2b752009-11-26 11:05:01 +00008286 .probe = probe_spi_rdid,
8287 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008288 .block_erasers =
8289 {
8290 {
8291 .eraseblocks = { {4 * 1024, 2048} },
8292 .block_erase = spi_block_erase_20,
8293 }, {
8294 .eraseblocks = { {32 * 1024, 256} },
8295 .block_erase = spi_block_erase_52,
8296 }, {
8297 .eraseblocks = { {64 * 1024, 128} },
8298 .block_erase = spi_block_erase_d8,
8299 }, {
8300 .eraseblocks = { {8 * 1024 * 1024, 1} },
8301 .block_erase = spi_block_erase_60,
8302 }, {
8303 .eraseblocks = { {8 * 1024 * 1024, 1} },
8304 .block_erase = spi_block_erase_c7,
8305 }
8306 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008307 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +00008308 .write = spi_chip_write_256,
8309 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008310 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +00008311 },
8312
8313 {
8314 .vendor = "Winbond",
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +00008315 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008316 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +00008317 .manufacture_id = WINBOND_ID,
8318 .model_id = WINBOND_W29C010,
8319 .total_size = 128,
8320 .page_size = 128,
8321 .feature_bits = FEATURE_LONG_RESET,
8322 .tested = TEST_OK_PRE,
8323 .probe = probe_w29ee011,
8324 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */
8325 .block_erasers =
8326 {
8327 {
8328 .eraseblocks = { {128 * 1024, 1} },
8329 .block_erase = erase_chip_block_jedec,
8330 }
8331 },
8332 .write = write_jedec,
8333 .read = read_memmapped,
8334 },
8335
8336 {/* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */
8337 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +00008338 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008339 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008340 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008341 .model_id = WINBOND_W29C010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008342 .total_size = 128,
8343 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00008344 .feature_bits = FEATURE_LONG_RESET,
David Hendricks567b7b82011-05-18 01:31:03 +00008345 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008346 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008347 .probe_timing = 10, /* used datasheet for the W29C011A */
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008348 .block_erasers =
8349 {
8350 {
8351 .eraseblocks = { {128 * 1024, 1} },
8352 .block_erase = erase_chip_block_jedec,
8353 }
8354 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008355 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008356 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00008357 },
8358
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008359 {
8360 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +00008361 .name = "W29C020(C)/W29C022",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008362 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008363 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008364 .model_id = WINBOND_W29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008365 .total_size = 256,
8366 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00008367 .feature_bits = FEATURE_LONG_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008368 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008369 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008370 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008371 .block_erasers =
8372 {
8373 {
8374 .eraseblocks = { {256 * 1024, 1} },
8375 .block_erase = erase_chip_block_jedec,
8376 }
8377 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008378 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008379 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008380 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00008381 },
8382
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008383 {
8384 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +00008385 .name = "W29C040/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008386 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008387 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008388 .model_id = WINBOND_W29C040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008389 .total_size = 512,
8390 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00008391 .feature_bits = FEATURE_LONG_RESET,
8392 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008393 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00008394 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008395 .block_erasers =
8396 {
8397 {
8398 .eraseblocks = { {512 * 1024, 1} },
8399 .block_erase = erase_chip_block_jedec,
8400 }
8401 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008402 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008403 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008404 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00008405 },
8406
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008407 {
8408 .vendor = "Winbond",
Michael Karcher19e0aac2011-03-06 17:58:05 +00008409 .name = "W39L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008410 .bustype = BUS_PARALLEL,
Michael Karcher19e0aac2011-03-06 17:58:05 +00008411 .manufacture_id = WINBOND_ID,
8412 .model_id = WINBOND_W39L040,
8413 .total_size = 512,
8414 .page_size = 64 * 1024,
8415 .feature_bits = FEATURE_EITHER_RESET,
8416 .tested = TEST_OK_PR,
8417 .probe = probe_jedec,
8418 .probe_timing = 10,
8419 .block_erasers =
8420 {
8421 {
8422 .eraseblocks = { {4 * 1024, 128} },
8423 .block_erase = erase_block_jedec,
8424 }, {
8425 .eraseblocks = { {64 * 1024, 8} },
8426 .block_erase = erase_sector_jedec,
8427 }, {
8428 .eraseblocks = { {512 * 1024, 1} },
8429 .block_erase = erase_chip_block_jedec,
8430 }
8431 },
8432 .printlock = printlock_w39l040,
8433 .write = write_jedec_1,
8434 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008435 .voltage = {3000, 3600},
Michael Karcher19e0aac2011-03-06 17:58:05 +00008436 },
8437
8438 {
8439 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008440 .name = "W39V040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008441 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008442 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008443 .model_id = WINBOND_W39V040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008444 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00008445 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008446 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +00008447 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008448 .probe = probe_jedec,
Stefan Tauner716e0982011-07-25 20:38:52 +00008449 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008450 .block_erasers =
8451 {
8452 {
8453 .eraseblocks = { {64 * 1024, 8} },
8454 .block_erase = erase_sector_jedec,
8455 }, {
8456 .eraseblocks = { {512 * 1024, 1} },
8457 .block_erase = erase_chip_block_jedec,
8458 }
8459 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008460 .printlock = printlock_w39v040a,
Sean Nelson35727f72010-01-28 23:55:12 +00008461 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008462 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008463 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008464 },
8465
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008466 {
8467 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008468 .name = "W39V040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008469 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008470 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008471 .model_id = WINBOND_W39V040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008472 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00008473 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008474 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00008475 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008476 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00008477 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008478 .block_erasers =
8479 {
8480 {
8481 .eraseblocks = { {64 * 1024, 8} },
8482 .block_erase = erase_sector_jedec,
8483 }, {
8484 .eraseblocks = { {512 * 1024, 1} },
8485 .block_erase = erase_chip_block_jedec,
8486 }
8487 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008488 .printlock = printlock_w39v040b,
Sean Nelson35727f72010-01-28 23:55:12 +00008489 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008490 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008491 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008492 },
8493
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008494 {
8495 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008496 .name = "W39V040C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008497 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008498 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008499 .model_id = WINBOND_W39V040C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008500 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00008501 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008502 .feature_bits = FEATURE_EITHER_RESET,
8503 .tested = TEST_UNTESTED,
8504 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008505 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008506 .block_erasers =
8507 {
8508 {
8509 .eraseblocks = { {64 * 1024, 8} },
8510 .block_erase = erase_sector_jedec,
8511 }, {
8512 .eraseblocks = { {512 * 1024, 1} },
8513 .block_erase = erase_chip_block_jedec,
8514 }
8515 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00008516 .printlock = printlock_w39v040c,
Sean Nelson35727f72010-01-28 23:55:12 +00008517 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008518 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008519 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008520 },
8521
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008522 {
8523 .vendor = "Winbond",
8524 .name = "W39V040FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008525 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008526 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008527 .model_id = WINBOND_W39V040FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008528 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00008529 .page_size = 64 * 1024,
Michael Karcherc9b63412010-05-30 16:55:18 +00008530 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Antony Rheneus0fbba982011-05-26 14:28:51 +00008531 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008532 .probe = probe_jedec,
Antony Rheneus0fbba982011-05-26 14:28:51 +00008533 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008534 .block_erasers =
8535 {
8536 {
8537 .eraseblocks = { {4 * 1024, 128} },
8538 .block_erase = erase_block_jedec,
8539 }, {
8540 .eraseblocks = { {64 * 1024, 8} },
8541 .block_erase = erase_sector_jedec,
8542 }, {
8543 .eraseblocks = { {512 * 1024, 1} },
8544 .block_erase = erase_chip_block_jedec,
8545 }
8546 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008547 .printlock = printlock_w39v040fa,
Michael Karcherc9b63412010-05-30 16:55:18 +00008548 .unlock = unlock_sst_fwhub,
Sean Nelson35727f72010-01-28 23:55:12 +00008549 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008550 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008551 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008552 },
8553
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008554 {
8555 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008556 .name = "W39V040FB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008557 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008558 .manufacture_id = WINBOND_ID,
8559 .model_id = WINBOND_W39V040B,
8560 .total_size = 512,
8561 .page_size = 64 * 1024,
8562 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00008563 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008564 .probe = probe_jedec,
8565 .probe_timing = 10,
8566 .block_erasers =
8567 {
8568 {
8569 .eraseblocks = { {64 * 1024, 8} },
8570 .block_erase = erase_sector_jedec,
8571 }, {
8572 .eraseblocks = { {512 * 1024, 1} },
8573 .block_erase = erase_chip_block_jedec,
8574 }
8575 },
8576 .printlock = printlock_w39v040fb,
Idwer Volleringecc67072010-12-26 23:55:12 +00008577 .unlock = unlock_w39v040fb,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008578 .write = write_jedec_1,
8579 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008580 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008581 },
8582
8583 {
8584 .vendor = "Winbond",
8585 .name = "W39V040FC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008586 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008587 .manufacture_id = WINBOND_ID,
8588 .model_id = WINBOND_W39V040C,
8589 .total_size = 512,
8590 .page_size = 64 * 1024,
8591 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
8592 .tested = TEST_UNTESTED,
8593 .probe = probe_jedec,
8594 .probe_timing = 10,
8595 .block_erasers =
8596 {
8597 {
8598 .eraseblocks = { {64 * 1024, 8} },
8599 .block_erase = erase_sector_jedec,
8600 }, {
8601 .eraseblocks = { {512 * 1024, 1} },
8602 .block_erase = erase_chip_block_jedec,
8603 }
8604 },
8605 .printlock = printlock_w39v040fc,
8606 .write = write_jedec_1,
8607 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008608 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008609 },
8610
8611 {
8612 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008613 .name = "W39V080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008614 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008615 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008616 .model_id = WINBOND_W39V080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008617 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +00008618 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008619 .feature_bits = FEATURE_EITHER_RESET,
8620 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008621 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00008622 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008623 .block_erasers =
8624 {
8625 {
8626 .eraseblocks = { {64 * 1024, 16} },
8627 .block_erase = erase_sector_jedec,
8628 }, {
8629 .eraseblocks = { {1024 * 1024, 1} },
8630 .block_erase = erase_chip_block_jedec,
8631 }
8632 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008633 .printlock = printlock_w39v080a,
Sean Nelson35727f72010-01-28 23:55:12 +00008634 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008635 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008636 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008637 },
8638
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008639 {
8640 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +00008641 .name = "W49F002U/N",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008642 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008643 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008644 .model_id = WINBOND_W49F002U,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008645 .total_size = 256,
8646 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00008647 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +00008648 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008649 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008650 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008651 .block_erasers =
8652 {
8653 {
8654 .eraseblocks = {
8655 {128 * 1024, 1},
8656 {96 * 1024, 1},
8657 {8 * 1024, 2},
8658 {16 * 1024, 1},
8659 },
8660 .block_erase = erase_sector_jedec,
8661 }, {
8662 .eraseblocks = { {256 * 1024, 1} },
8663 .block_erase = erase_chip_block_jedec,
8664 }
8665 },
Sean Nelson35727f72010-01-28 23:55:12 +00008666 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008667 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008668 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00008669 },
8670
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008671 {
8672 .vendor = "Winbond",
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +00008673 .name = "W49F020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008674 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +00008675 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008676 .model_id = WINBOND_W49F020,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +00008677 .total_size = 256,
8678 .page_size = 128,
8679 .feature_bits = FEATURE_EITHER_RESET,
8680 .tested = TEST_OK_PROBE,
8681 .probe = probe_jedec,
8682 .probe_timing = 10,
8683 .block_erasers =
8684 {
8685 {
8686 .eraseblocks = { {256 * 1024, 1} },
8687 .block_erase = erase_chip_block_jedec,
8688 }
8689 },
8690 .write = write_jedec_1,
8691 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008692 .voltage = {4500, 5500},
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +00008693 },
8694
8695 {
8696 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008697 .name = "W49V002A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008698 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008699 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008700 .model_id = WINBOND_W49V002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008701 .total_size = 256,
8702 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00008703 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008704 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008705 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008706 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008707 .block_erasers =
8708 {
8709 {
8710 .eraseblocks = {
8711 {64 * 1024, 3},
8712 {32 * 1024, 1},
8713 {8 * 1024, 2},
8714 {16 * 1024, 1},
8715 },
8716 .block_erase = erase_sector_jedec,
8717 }, {
8718 .eraseblocks = { {256 * 1024, 1} },
8719 .block_erase = erase_chip_block_jedec,
8720 }
8721 },
Sean Nelson35727f72010-01-28 23:55:12 +00008722 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008723 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008724 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008725 },
8726
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008727 {
8728 .vendor = "Winbond",
8729 .name = "W49V002FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008730 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008731 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008732 .model_id = WINBOND_W49V002FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008733 .total_size = 256,
8734 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00008735 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00008736 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008737 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008738 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008739 .block_erasers =
8740 {
8741 {
8742 .eraseblocks = {
8743 {64 * 1024, 3},
8744 {32 * 1024, 1},
8745 {8 * 1024, 2},
8746 {16 * 1024, 1},
8747 },
8748 .block_erase = erase_sector_jedec,
8749 }, {
8750 .eraseblocks = { {256 * 1024, 1} },
8751 .block_erase = erase_chip_block_jedec,
8752 }
8753 },
Sean Nelson35727f72010-01-28 23:55:12 +00008754 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008755 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008756 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008757 },
8758
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008759 {
8760 .vendor = "Winbond",
8761 .name = "W39V080FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008762 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008763 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008764 .model_id = WINBOND_W39V080FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008765 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +00008766 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008767 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +00008768 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00008769 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008770 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008771 .block_erasers =
8772 {
8773 {
8774 .eraseblocks = { {64 * 1024, 16}, },
8775 .block_erase = erase_sector_jedec,
8776 }, {
8777 .eraseblocks = { {1024 * 1024, 1} },
8778 .block_erase = erase_chip_block_jedec,
8779 }
8780 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008781 .printlock = printlock_w39v080fa,
8782 .unlock = unlock_w39v080fa,
Sean Nelson35727f72010-01-28 23:55:12 +00008783 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008784 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008785 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +00008786 },
8787
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008788 {
8789 .vendor = "Winbond",
8790 .name = "W39V080FA (dual mode)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008791 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008792 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008793 .model_id = WINBOND_W39V080FA_DM,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008794 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00008795 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008796 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008797 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00008798 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008799 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008800 .block_erasers =
8801 {
8802 {
8803 .eraseblocks = { {64 * 1024, 8}, },
8804 .block_erase = erase_sector_jedec,
8805 }, {
8806 .eraseblocks = { {512 * 1024, 1} },
8807 .block_erase = erase_chip_block_jedec,
8808 }
8809 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008810 .printlock = printlock_w39v080fa_dual,
Sean Nelson35727f72010-01-28 23:55:12 +00008811 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008812 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008813 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +00008814 },
8815
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008816 {
Daniel Lenskidf90d3a2010-07-22 11:44:38 +00008817 .vendor = "AMIC",
8818 .name = "unknown AMIC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008819 .bustype = BUS_SPI,
Daniel Lenskidf90d3a2010-07-22 11:44:38 +00008820 .manufacture_id = AMIC_ID,
8821 .model_id = GENERIC_DEVICE_ID,
8822 .total_size = 0,
8823 .page_size = 256,
8824 .tested = TEST_BAD_PREW,
8825 .probe = probe_spi_rdid4,
8826 .probe_timing = TIMING_ZERO,
8827 .write = NULL,
8828 .read = NULL,
8829 },
8830
8831 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008832 .vendor = "Atmel",
8833 .name = "unknown Atmel SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008834 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008835 .manufacture_id = ATMEL_ID,
8836 .model_id = GENERIC_DEVICE_ID,
8837 .total_size = 0,
8838 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00008839 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008840 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008841 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008842 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008843 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00008844 },
8845
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008846 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00008847 .vendor = "Eon",
8848 .name = "unknown Eon SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008849 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008850 .manufacture_id = EON_ID_NOPREFIX,
8851 .model_id = GENERIC_DEVICE_ID,
8852 .total_size = 0,
8853 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00008854 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008855 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008856 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008857 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008858 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00008859 },
8860
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008861 {
8862 .vendor = "Macronix",
8863 .name = "unknown Macronix SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008864 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008865 .manufacture_id = MACRONIX_ID,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008866 .model_id = GENERIC_DEVICE_ID,
8867 .total_size = 0,
8868 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00008869 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008870 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008871 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008872 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008873 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00008874 },
8875
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008876 {
8877 .vendor = "PMC",
8878 .name = "unknown PMC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008879 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008880 .manufacture_id = PMC_ID,
8881 .model_id = GENERIC_DEVICE_ID,
8882 .total_size = 0,
8883 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00008884 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008885 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008886 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008887 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008888 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00008889 },
8890
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008891 {
8892 .vendor = "SST",
8893 .name = "unknown SST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008894 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008895 .manufacture_id = SST_ID,
8896 .model_id = GENERIC_DEVICE_ID,
8897 .total_size = 0,
8898 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00008899 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008900 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008901 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008902 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008903 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00008904 },
8905
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008906 {
8907 .vendor = "ST",
8908 .name = "unknown ST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008909 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008910 .manufacture_id = ST_ID,
8911 .model_id = GENERIC_DEVICE_ID,
8912 .total_size = 0,
8913 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00008914 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008915 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008916 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008917 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008918 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00008919 },
Uwe Hermannfc425e82008-03-16 02:06:25 +00008920
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00008921 {
Sean Nelson118e1d62009-11-24 02:08:11 +00008922 .vendor = "Sanyo",
8923 .name = "unknown Sanyo SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008924 .bustype = BUS_SPI,
Sean Nelson118e1d62009-11-24 02:08:11 +00008925 .manufacture_id = SANYO_ID,
8926 .model_id = GENERIC_DEVICE_ID,
8927 .total_size = 0,
8928 .page_size = 256,
8929 .tested = TEST_BAD_PREW,
8930 .probe = probe_spi_rdid,
8931 .probe_timing = TIMING_ZERO,
Sean Nelson118e1d62009-11-24 02:08:11 +00008932 .write = NULL,
8933 .read = NULL,
8934 },
8935
8936 {
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00008937 .vendor = "Generic",
8938 .name = "unknown SPI chip (RDID)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008939 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00008940 .manufacture_id = GENERIC_MANUF_ID,
8941 .model_id = GENERIC_DEVICE_ID,
8942 .total_size = 0,
8943 .page_size = 256,
8944 .tested = TEST_BAD_PREW,
8945 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00008946 .write = NULL,
8947 },
8948 {
8949 .vendor = "Generic",
8950 .name = "unknown SPI chip (REMS)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008951 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00008952 .manufacture_id = GENERIC_MANUF_ID,
8953 .model_id = GENERIC_DEVICE_ID,
8954 .total_size = 0,
8955 .page_size = 256,
8956 .tested = TEST_BAD_PREW,
8957 .probe = probe_spi_rems,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00008958 .write = NULL,
8959 },
8960
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008961 { NULL }
Stephan Guilloux72cf5652009-04-21 01:46:07 +00008962};