blob: f3cca3532149b7a13394a654f60e1857f2f93015 [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 {
Uwe Hermannc74e9772011-09-08 19:55:18 +00002308 .vendor = "Atmel",
2309 .name = "AT49LH002",
2310 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
2311 .manufacture_id = ATMEL_ID,
2312 .model_id = ATMEL_AT49LH002,
2313 .total_size = 256,
2314 .page_size = 0, /* unused */
2315 .feature_bits = FEATURE_REGISTERMAP, /* TODO: LPC OK too? */
2316 .tested = TEST_UNTESTED,
2317 .probe = probe_82802ab, /* TODO: 0xff cmd not documented? */
2318 .probe_timing = TIMING_FIXME,
2319 .block_erasers =
2320 {
2321 {
2322 .eraseblocks = {
2323 {64 * 1024, 3},
2324 {32 * 1024, 1},
2325 {8 * 1024, 2},
2326 {16 * 1024, 1},
2327 },
2328 .block_erase = erase_block_82802ab,
2329 }, {
2330 .eraseblocks = {
2331 {64 * 1024, 4},
2332 },
2333 .block_erase = NULL, /* TODO: Implement. */
2334 },
2335 },
2336 .printlock = NULL, /* TODO */
2337 .unlock = NULL, /* unlock_82802ab() not correct(?) */
2338 .write = write_82802ab,
2339 .read = read_memmapped,
2340 .voltage = {3000, 3600},
2341 },
2342
2343 {
Joshua Roysf1324e02010-09-16 00:51:51 +00002344 .vendor = "Bright",
2345 .name = "BM29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002346 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00002347 .manufacture_id = BRIGHT_ID,
2348 .model_id = BRIGHT_BM29F040,
2349 .total_size = 512,
2350 .page_size = 64 * 1024,
2351 .feature_bits = FEATURE_EITHER_RESET,
2352 .tested = TEST_OK_PR,
2353 .probe = probe_jedec,
2354 .probe_timing = TIMING_ZERO,
2355 .block_erasers =
2356 {
2357 {
2358 .eraseblocks = { {64 * 1024, 8} },
2359 .block_erase = erase_sector_jedec,
2360 }, {
2361 .eraseblocks = { {512 * 1024, 1} },
2362 .block_erase = erase_chip_block_jedec,
2363 },
2364 },
2365 .write = write_jedec_1,
2366 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00002367 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00002368 },
2369
2370 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002371 .vendor = "EMST",
2372 .name = "F49B002UA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002373 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002374 .manufacture_id = EMST_ID,
2375 .model_id = EMST_F49B002UA,
2376 .total_size = 256,
2377 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00002378 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002379 .tested = TEST_UNTESTED,
2380 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002381 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00002382 .block_erasers =
2383 {
2384 {
2385 .eraseblocks = {
2386 {128 * 1024, 1},
2387 {96 * 1024, 1},
2388 {8 * 1024, 2},
2389 {16 * 1024, 1},
2390 },
2391 .block_erase = erase_sector_jedec,
2392 }, {
2393 .eraseblocks = { {256 * 1024, 1} },
2394 .block_erase = erase_chip_block_jedec,
2395 }
2396 },
Sean Nelson35727f72010-01-28 23:55:12 +00002397 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002398 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002399 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002400 },
2401
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002402 {
Michael Karcher80a59ea2010-06-19 22:06:35 +00002403 .vendor = "EMST",
2404 .name = "F25L008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002405 .bustype = BUS_SPI,
Michael Karcher80a59ea2010-06-19 22:06:35 +00002406 .manufacture_id = EMST_ID,
2407 .model_id = EMST_F25L008A,
2408 .total_size = 1024,
2409 .page_size = 256,
2410 .tested = TEST_UNTESTED,
2411 .probe = probe_spi_rdid,
2412 .probe_timing = TIMING_ZERO,
2413 .block_erasers =
2414 {
2415 {
2416 .eraseblocks = { {4 * 1024, 256} },
2417 .block_erase = spi_block_erase_20,
2418 }, {
2419 .eraseblocks = { {64 * 1024, 16} },
2420 .block_erase = spi_block_erase_d8,
2421 }, {
2422 .eraseblocks = { {1024 * 1024, 1} },
2423 .block_erase = spi_block_erase_60,
2424 }, {
2425 .eraseblocks = { {1024 * 1024, 1} },
2426 .block_erase = spi_block_erase_c7,
2427 }
2428 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002429 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger9a795d82010-07-14 16:19:05 +00002430 .write = spi_chip_write_1,
Michael Karcher4497e862010-07-10 19:34:15 +00002431 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002432 .voltage = {2700, 3600},
Michael Karcher80a59ea2010-06-19 22:06:35 +00002433 },
2434
2435 {
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002436 .vendor = "Eon",
2437 .name = "EN25B05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002438 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002439 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002440 .model_id = EON_EN25B05,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002441 .total_size = 64,
2442 .page_size = 256,
2443 .tested = TEST_UNTESTED,
2444 .probe = probe_spi_rdid,
2445 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002446 .block_erasers =
2447 {
2448 {
2449 .eraseblocks = {
2450 {4 * 1024, 2},
2451 {8 * 1024, 1},
2452 {16 * 1024, 1},
2453 {32 * 1024, 1},
2454 },
2455 .block_erase = spi_block_erase_d8,
2456 }, {
2457 .eraseblocks = { {64 * 1024, 1} },
2458 .block_erase = spi_block_erase_c7,
2459 }
2460 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002461 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002462 .write = spi_chip_write_256,
2463 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002464 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002465 },
2466
2467 {
2468 .vendor = "Eon",
2469 .name = "EN25B05T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002470 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002471 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002472 .model_id = EON_EN25B05,
Sean Nelson54596372010-01-09 05:30:14 +00002473 .total_size = 64,
2474 .page_size = 256,
2475 .tested = TEST_UNTESTED,
2476 .probe = probe_spi_rdid,
2477 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002478 .block_erasers =
2479 {
2480 {
2481 .eraseblocks = {
2482 {32 * 1024, 1},
2483 {16 * 1024, 1},
2484 {8 * 1024, 1},
2485 {4 * 1024, 2},
2486 },
2487 .block_erase = spi_block_erase_d8,
2488 }, {
2489 .eraseblocks = { {64 * 1024, 1} },
2490 .block_erase = spi_block_erase_c7,
2491 }
2492 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002493 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002494 .write = spi_chip_write_256,
2495 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002496 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002497 },
2498
2499 {
2500 .vendor = "Eon",
2501 .name = "EN25B10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002502 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002503 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002504 .model_id = EON_EN25B10,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002505 .total_size = 128,
2506 .page_size = 256,
2507 .tested = TEST_UNTESTED,
2508 .probe = probe_spi_rdid,
2509 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002510 .block_erasers =
2511 {
2512 {
2513 .eraseblocks = {
2514 {4 * 1024, 2},
2515 {8 * 1024, 1},
2516 {16 * 1024, 1},
2517 {32 * 1024, 3},
2518 },
2519 .block_erase = spi_block_erase_d8,
2520 }, {
2521 .eraseblocks = { {128 * 1024, 1} },
2522 .block_erase = spi_block_erase_c7,
2523 }
2524 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002525 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002526 .write = spi_chip_write_256,
2527 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002528 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002529 },
2530
2531 {
2532 .vendor = "Eon",
2533 .name = "EN25B10T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002534 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002535 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002536 .model_id = EON_EN25B10,
Sean Nelson54596372010-01-09 05:30:14 +00002537 .total_size = 128,
2538 .page_size = 256,
2539 .tested = TEST_UNTESTED,
2540 .probe = probe_spi_rdid,
2541 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002542 .block_erasers =
2543 {
2544 {
2545 .eraseblocks = {
2546 {32 * 1024, 3},
2547 {16 * 1024, 1},
2548 {8 * 1024, 1},
2549 {4 * 1024, 2},
2550 },
2551 .block_erase = spi_block_erase_d8,
2552 }, {
2553 .eraseblocks = { {128 * 1024, 1} },
2554 .block_erase = spi_block_erase_c7,
2555 }
2556 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002557 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002558 .write = spi_chip_write_256,
2559 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002560 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002561 },
2562
2563 {
2564 .vendor = "Eon",
2565 .name = "EN25B20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002566 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002567 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002568 .model_id = EON_EN25B20,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002569 .total_size = 256,
2570 .page_size = 256,
2571 .tested = TEST_UNTESTED,
2572 .probe = probe_spi_rdid,
2573 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002574 .block_erasers =
2575 {
2576 {
2577 .eraseblocks = {
2578 {4 * 1024, 2},
2579 {8 * 1024, 1},
2580 {16 * 1024, 1},
2581 {32 * 1024, 1},
2582 {64 * 1024, 3}
2583 },
2584 .block_erase = spi_block_erase_d8,
2585 }, {
2586 .eraseblocks = { {256 * 1024, 1} },
2587 .block_erase = spi_block_erase_c7,
2588 }
2589 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002590 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002591 .write = spi_chip_write_256,
2592 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002593 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002594 },
2595
2596 {
2597 .vendor = "Eon",
2598 .name = "EN25B20T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002599 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002600 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002601 .model_id = EON_EN25B20,
Sean Nelson54596372010-01-09 05:30:14 +00002602 .total_size = 256,
2603 .page_size = 256,
2604 .tested = TEST_UNTESTED,
2605 .probe = probe_spi_rdid,
2606 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002607 .block_erasers =
2608 {
2609 {
2610 .eraseblocks = {
2611 {64 * 1024, 3},
2612 {32 * 1024, 1},
2613 {16 * 1024, 1},
2614 {8 * 1024, 1},
2615 {4 * 1024, 2},
2616 },
2617 .block_erase = spi_block_erase_d8,
2618 }, {
2619 .eraseblocks = { {256 * 1024, 1} },
2620 .block_erase = spi_block_erase_c7,
2621 }
2622 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002623 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002624 .write = spi_chip_write_256,
2625 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002626 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002627 },
2628
2629 {
2630 .vendor = "Eon",
2631 .name = "EN25B40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002632 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002633 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002634 .model_id = EON_EN25B40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002635 .total_size = 512,
2636 .page_size = 256,
2637 .tested = TEST_UNTESTED,
2638 .probe = probe_spi_rdid,
2639 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002640 .block_erasers =
2641 {
2642 {
2643 .eraseblocks = {
2644 {4 * 1024, 2},
2645 {8 * 1024, 1},
2646 {16 * 1024, 1},
2647 {32 * 1024, 1},
2648 {64 * 1024, 7}
2649 },
2650 .block_erase = spi_block_erase_d8,
2651 }, {
2652 .eraseblocks = { {512 * 1024, 1} },
2653 .block_erase = spi_block_erase_c7,
2654 }
2655 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002656 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002657 .write = spi_chip_write_256,
2658 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002659 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002660 },
2661
2662 {
2663 .vendor = "Eon",
2664 .name = "EN25B40T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002665 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002666 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002667 .model_id = EON_EN25B40,
Sean Nelson54596372010-01-09 05:30:14 +00002668 .total_size = 512,
2669 .page_size = 256,
2670 .tested = TEST_UNTESTED,
2671 .probe = probe_spi_rdid,
2672 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002673 .block_erasers =
2674 {
2675 {
2676 .eraseblocks = {
2677 {64 * 1024, 7},
2678 {32 * 1024, 1},
2679 {16 * 1024, 1},
2680 {8 * 1024, 1},
2681 {4 * 1024, 2},
2682 },
2683 .block_erase = spi_block_erase_d8,
2684 }, {
2685 .eraseblocks = { {512 * 1024, 1} },
2686 .block_erase = spi_block_erase_c7,
2687 }
2688 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002689 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002690 .write = spi_chip_write_256,
2691 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002692 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002693 },
2694
2695 {
2696 .vendor = "Eon",
2697 .name = "EN25B80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002698 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002699 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002700 .model_id = EON_EN25B80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002701 .total_size = 1024,
2702 .page_size = 256,
2703 .tested = TEST_UNTESTED,
2704 .probe = probe_spi_rdid,
2705 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002706 .block_erasers =
2707 {
2708 {
2709 .eraseblocks = {
2710 {4 * 1024, 2},
2711 {8 * 1024, 1},
2712 {16 * 1024, 1},
2713 {32 * 1024, 1},
2714 {64 * 1024, 15}
2715 },
2716 .block_erase = spi_block_erase_d8,
2717 }, {
2718 .eraseblocks = { {1024 * 1024, 1} },
2719 .block_erase = spi_block_erase_c7,
2720 }
2721 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002722 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002723 .write = spi_chip_write_256,
2724 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002725 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002726 },
2727
2728 {
2729 .vendor = "Eon",
2730 .name = "EN25B80T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002731 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002732 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002733 .model_id = EON_EN25B80,
Sean Nelson54596372010-01-09 05:30:14 +00002734 .total_size = 1024,
2735 .page_size = 256,
2736 .tested = TEST_UNTESTED,
2737 .probe = probe_spi_rdid,
2738 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002739 .block_erasers =
2740 {
2741 {
2742 .eraseblocks = {
2743 {64 * 1024, 15},
2744 {32 * 1024, 1},
2745 {16 * 1024, 1},
2746 {8 * 1024, 1},
2747 {4 * 1024, 2},
2748 },
2749 .block_erase = spi_block_erase_d8,
2750 }, {
2751 .eraseblocks = { {1024 * 1024, 1} },
2752 .block_erase = spi_block_erase_c7,
2753 }
2754 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002755 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002756 .write = spi_chip_write_256,
2757 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002758 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002759 },
2760
2761 {
2762 .vendor = "Eon",
2763 .name = "EN25B16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002764 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002765 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002766 .model_id = EON_EN25B16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002767 .total_size = 2048,
2768 .page_size = 256,
2769 .tested = TEST_UNTESTED,
2770 .probe = probe_spi_rdid,
2771 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002772 .block_erasers =
2773 {
2774 {
2775 .eraseblocks = {
2776 {4 * 1024, 2},
2777 {8 * 1024, 1},
2778 {16 * 1024, 1},
2779 {32 * 1024, 1},
2780 {64 * 1024, 31},
2781 },
2782 .block_erase = spi_block_erase_d8,
2783 }, {
2784 .eraseblocks = { {2 * 1024 * 1024, 1} },
2785 .block_erase = spi_block_erase_c7,
2786 }
2787 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002788 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002789 .write = spi_chip_write_256,
2790 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002791 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002792 },
2793
2794 {
2795 .vendor = "Eon",
2796 .name = "EN25B16T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002797 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002798 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002799 .model_id = EON_EN25B16,
Sean Nelson54596372010-01-09 05:30:14 +00002800 .total_size = 2048,
2801 .page_size = 256,
2802 .tested = TEST_UNTESTED,
2803 .probe = probe_spi_rdid,
2804 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002805 .block_erasers =
2806 {
2807 {
2808 .eraseblocks = {
2809 {64 * 1024, 31},
2810 {32 * 1024, 1},
2811 {16 * 1024, 1},
2812 {8 * 1024, 1},
2813 {4 * 1024, 2},
2814 },
2815 .block_erase = spi_block_erase_d8,
2816 }, {
2817 .eraseblocks = { {2 * 1024 * 1024, 1} },
2818 .block_erase = spi_block_erase_c7,
2819 }
2820 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002821 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002822 .write = spi_chip_write_256,
2823 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002824 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002825 },
2826
2827 {
2828 .vendor = "Eon",
2829 .name = "EN25B32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002830 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002831 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002832 .model_id = EON_EN25B32,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002833 .total_size = 4096,
2834 .page_size = 256,
2835 .tested = TEST_UNTESTED,
2836 .probe = probe_spi_rdid,
2837 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002838 .block_erasers =
2839 {
2840 {
2841 .eraseblocks = {
2842 {4 * 1024, 2},
2843 {8 * 1024, 1},
2844 {16 * 1024, 1},
2845 {32 * 1024, 1},
2846 {64 * 1024, 63},
2847 },
2848 .block_erase = spi_block_erase_d8,
2849 }, {
2850 .eraseblocks = { {4 * 1024 * 1024, 1} },
2851 .block_erase = spi_block_erase_c7,
2852 }
2853 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002854 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002855 .write = spi_chip_write_256,
2856 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002857 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002858 },
2859
2860 {
2861 .vendor = "Eon",
2862 .name = "EN25B32T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002863 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002864 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002865 .model_id = EON_EN25B32,
Sean Nelson54596372010-01-09 05:30:14 +00002866 .total_size = 4096,
2867 .page_size = 256,
2868 .tested = TEST_UNTESTED,
2869 .probe = probe_spi_rdid,
2870 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002871 .block_erasers =
2872 {
2873 {
2874 .eraseblocks = {
2875 {64 * 1024, 63},
2876 {32 * 1024, 1},
2877 {16 * 1024, 1},
2878 {8 * 1024, 1},
2879 {4 * 1024, 2},
2880 },
2881 .block_erase = spi_block_erase_d8,
2882 }, {
2883 .eraseblocks = { {4 * 1024 * 1024, 1} },
2884 .block_erase = spi_block_erase_c7,
2885 }
2886 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002887 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002888 .write = spi_chip_write_256,
2889 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002890 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002891 },
2892
2893 {
2894 .vendor = "Eon",
2895 .name = "EN25B64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002896 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002897 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002898 .model_id = EON_EN25B64,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002899 .total_size = 8192,
2900 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00002901 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002902 .tested = TEST_UNTESTED,
2903 .probe = probe_spi_rdid,
2904 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002905 .block_erasers =
2906 {
2907 {
2908 .eraseblocks = {
2909 {4 * 1024, 2},
2910 {8 * 1024, 1},
2911 {16 * 1024, 1},
2912 {32 * 1024, 1},
2913 {64 * 1024, 127},
2914 },
2915 .block_erase = spi_block_erase_d8,
2916 }, {
2917 .eraseblocks = { {8 * 1024 * 1024, 1} },
2918 .block_erase = spi_block_erase_c7,
2919 }
2920 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002921 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002922 .write = spi_chip_write_256,
2923 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002924 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002925 },
2926
2927 {
2928 .vendor = "Eon",
2929 .name = "EN25B64T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002930 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002931 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002932 .model_id = EON_EN25B64,
Sean Nelson54596372010-01-09 05:30:14 +00002933 .total_size = 8192,
2934 .page_size = 256,
2935 .tested = TEST_UNTESTED,
2936 .probe = probe_spi_rdid,
2937 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002938 .block_erasers =
2939 {
2940 {
2941 .eraseblocks = {
2942 {64 * 1024, 127},
2943 {32 * 1024, 1},
2944 {16 * 1024, 1},
2945 {8 * 1024, 1},
2946 {4 * 1024, 2},
2947 },
2948 .block_erase = spi_block_erase_d8,
2949 }, {
2950 .eraseblocks = { {8 * 1024 * 1024, 1} },
2951 .block_erase = spi_block_erase_c7,
2952 }
2953 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002954 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002955 .write = spi_chip_write_256,
2956 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002957 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002958 },
2959
2960 {
2961 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002962 .name = "EN25F05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002963 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002964 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002965 .model_id = EON_EN25F05,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002966 .total_size = 64,
2967 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00002968 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002969 .tested = TEST_UNTESTED,
2970 .probe = probe_spi_rdid,
2971 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002972 .block_erasers =
2973 {
2974 {
2975 .eraseblocks = { {4 * 1024, 16} },
2976 .block_erase = spi_block_erase_20,
2977 }, {
2978 .eraseblocks = { {32 * 1024, 2} },
2979 .block_erase = spi_block_erase_d8,
2980 }, {
2981 .eraseblocks = { {32 * 1024, 2} },
2982 .block_erase = spi_block_erase_52,
2983 }, {
2984 .eraseblocks = { {64 * 1024, 1} },
2985 .block_erase = spi_block_erase_60,
2986 }, {
2987 .eraseblocks = { {64 * 1024, 1} },
2988 .block_erase = spi_block_erase_c7,
2989 }
2990 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002991 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002992 .write = spi_chip_write_256,
2993 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002994 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002995 },
2996
2997 {
2998 .vendor = "Eon",
2999 .name = "EN25F10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003000 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003001 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003002 .model_id = EON_EN25F10,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003003 .total_size = 128,
3004 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003005 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003006 .tested = TEST_UNTESTED,
3007 .probe = probe_spi_rdid,
3008 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003009 .block_erasers =
3010 {
3011 {
3012 .eraseblocks = { {4 * 1024, 32} },
3013 .block_erase = spi_block_erase_20,
3014 }, {
3015 .eraseblocks = { {32 * 1024, 4} },
3016 .block_erase = spi_block_erase_d8,
3017 }, {
3018 .eraseblocks = { {32 * 1024, 4} },
3019 .block_erase = spi_block_erase_52,
3020 }, {
3021 .eraseblocks = { {128 * 1024, 1} },
3022 .block_erase = spi_block_erase_60,
3023 }, {
3024 .eraseblocks = { {128 * 1024, 1} },
3025 .block_erase = spi_block_erase_c7,
3026 }
3027 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003028 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003029 .write = spi_chip_write_256,
3030 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003031 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003032 },
3033
3034 {
3035 .vendor = "Eon",
3036 .name = "EN25F20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003037 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003038 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003039 .model_id = EON_EN25F20,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003040 .total_size = 256,
3041 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003042 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003043 .tested = TEST_UNTESTED,
3044 .probe = probe_spi_rdid,
3045 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003046 .block_erasers =
3047 {
3048 {
3049 .eraseblocks = { {4 * 1024, 64} },
3050 .block_erase = spi_block_erase_20,
3051 }, {
3052 .eraseblocks = { {64 * 1024, 4} },
3053 .block_erase = spi_block_erase_d8,
3054 }, {
3055 .eraseblocks = { {64 * 1024, 4} },
3056 .block_erase = spi_block_erase_52,
3057 }, {
3058 .eraseblocks = { {256 * 1024, 1} },
3059 .block_erase = spi_block_erase_60,
3060 }, {
3061 .eraseblocks = { {256 * 1024, 1} },
3062 .block_erase = spi_block_erase_c7,
3063 }
3064 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003065 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003066 .write = spi_chip_write_256,
3067 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003068 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003069 },
3070
3071 {
3072 .vendor = "Eon",
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003073 .name = "EN25F40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003074 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003075 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003076 .model_id = EON_EN25F40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003077 .total_size = 512,
3078 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003079 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerfaaa2b22009-06-22 10:06:28 +00003080 .tested = TEST_OK_PROBE,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003081 .probe = probe_spi_rdid,
3082 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003083 .block_erasers =
3084 {
3085 {
Sean Nelson54596372010-01-09 05:30:14 +00003086 .eraseblocks = { {4 * 1024, 128} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003087 .block_erase = spi_block_erase_20,
3088 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003089 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003090 .block_erase = spi_block_erase_d8,
3091 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003092 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003093 .block_erase = spi_block_erase_60,
3094 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003095 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003096 .block_erase = spi_block_erase_c7,
3097 },
3098 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003099 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003100 .write = spi_chip_write_256,
3101 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003102 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003103 },
3104
3105 {
3106 .vendor = "Eon",
3107 .name = "EN25F80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003108 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003109 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003110 .model_id = EON_EN25F80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003111 .total_size = 1024,
3112 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003113 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +00003114 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003115 .probe = probe_spi_rdid,
3116 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003117 .block_erasers =
3118 {
3119 {
3120 .eraseblocks = { {4 * 1024, 256} },
3121 .block_erase = spi_block_erase_20,
3122 }, {
3123 .eraseblocks = { {64 * 1024, 16} },
3124 .block_erase = spi_block_erase_d8,
3125 }, {
3126 .eraseblocks = { {1024 * 1024, 1} },
3127 .block_erase = spi_block_erase_60,
3128 }, {
3129 .eraseblocks = { {1024 * 1024, 1} },
3130 .block_erase = spi_block_erase_c7,
3131 }
3132 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003133 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003134 .write = spi_chip_write_256,
3135 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003136 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003137 },
3138
3139 {
3140 .vendor = "Eon",
3141 .name = "EN25F16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003142 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003143 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003144 .model_id = EON_EN25F16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003145 .total_size = 2048,
3146 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003147 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003148 .tested = TEST_UNTESTED,
3149 .probe = probe_spi_rdid,
3150 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003151 .block_erasers =
3152 {
3153 {
3154 .eraseblocks = { {4 * 1024, 512} },
3155 .block_erase = spi_block_erase_20,
3156 }, {
3157 .eraseblocks = { {64 * 1024, 32} },
3158 .block_erase = spi_block_erase_d8,
3159 }, {
3160 .eraseblocks = { {2 * 1024 * 1024, 1} },
3161 .block_erase = spi_block_erase_60,
3162 }, {
3163 .eraseblocks = { {2 * 1024 * 1024, 1} },
3164 .block_erase = spi_block_erase_c7,
3165 }
3166 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003167 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003168 .write = spi_chip_write_256,
3169 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003170 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003171 },
3172
3173 {
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003174 .vendor = "Eon",
3175 .name = "EN25F32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003176 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003177 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003178 .model_id = EON_EN25F32,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003179 .total_size = 4096,
3180 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003181 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003182 .tested = TEST_UNTESTED,
3183 .probe = probe_spi_rdid,
3184 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003185 .block_erasers =
3186 {
3187 {
3188 .eraseblocks = { {4 * 1024, 1024} },
3189 .block_erase = spi_block_erase_20,
3190 }, {
3191 .eraseblocks = { {64 * 1024, 64} },
3192 .block_erase = spi_block_erase_d8,
3193 }, {
3194 .eraseblocks = { {4 * 1024 * 1024, 1} },
3195 .block_erase = spi_block_erase_60,
3196 }, {
3197 .eraseblocks = { {4 * 1024 * 1024, 1} },
3198 .block_erase = spi_block_erase_c7,
3199 }
3200 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003201 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003202 .write = spi_chip_write_256,
3203 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003204 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003205 },
3206
3207 {
Russ Dill3cd5a122010-03-05 08:44:11 +00003208 .vendor = "Eon",
David Hendricks6d715302011-07-24 22:21:57 +00003209 .name = "EN25Q40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003210 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003211 .manufacture_id = EON_ID_NOPREFIX,
3212 .model_id = EON_EN25Q40,
3213 .total_size = 512,
3214 .page_size = 256,
3215 /* TODO: chip features 256-byte one-time programmable region */
3216 .feature_bits = FEATURE_WRSR_WREN,
3217 .tested = TEST_UNTESTED,
3218 .probe = probe_spi_rdid,
3219 .probe_timing = TIMING_ZERO,
3220 .block_erasers =
3221 {
3222 {
3223 .eraseblocks = { {4 * 1024, 128} },
3224 .block_erase = spi_block_erase_20,
3225 }, {
3226 .eraseblocks = { {64 * 1024, 8} },
3227 .block_erase = spi_block_erase_d8,
3228 }, {
3229 .eraseblocks = { {512 * 1024, 1} },
3230 .block_erase = spi_block_erase_60,
3231 }, {
3232 .eraseblocks = { {512 * 1024, 1} },
3233 .block_erase = spi_block_erase_c7,
3234 }
3235 },
3236 .unlock = spi_disable_blockprotect,
3237 .write = spi_chip_write_256,
3238 .read = spi_chip_read,
3239 .voltage = {2700, 3600},
3240 },
3241
3242 {
3243 .vendor = "Eon",
3244 .name = "EN25Q80(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003245 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003246 .manufacture_id = EON_ID_NOPREFIX,
3247 .model_id = EON_EN25Q80,
3248 .total_size = 1024,
3249 .page_size = 256,
3250 /* TODO: chip features 256-byte one-time programmable region */
3251 .feature_bits = FEATURE_WRSR_WREN,
3252 .tested = TEST_UNTESTED,
3253 .probe = probe_spi_rdid,
3254 .probe_timing = TIMING_ZERO,
3255 .block_erasers =
3256 {
3257 {
3258 .eraseblocks = { {4 * 1024, 256} },
3259 .block_erase = spi_block_erase_20,
3260 }, {
3261 .eraseblocks = { {64 * 1024, 16} },
3262 .block_erase = spi_block_erase_d8,
3263 }, {
3264 .eraseblocks = { {1024 * 1024, 1} },
3265 .block_erase = spi_block_erase_60,
3266 }, {
3267 .eraseblocks = { {1024 * 1024, 1} },
3268 .block_erase = spi_block_erase_c7,
3269 }
3270 },
3271 .unlock = spi_disable_blockprotect,
3272 .write = spi_chip_write_256,
3273 .read = spi_chip_read,
3274 .voltage = {2700, 3600},
3275 },
3276
3277 {
3278 /* Note: EN25D16 is an evil twin which shares the model ID
3279 but has different write protection capabilities */
3280 .vendor = "Eon",
3281 .name = "EN25Q16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003282 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003283 .manufacture_id = EON_ID_NOPREFIX,
3284 .model_id = EON_EN25Q16,
3285 .total_size = 2048,
3286 .page_size = 256,
3287 /* TODO: EN25D16 features 512-byte one-time programmable region,
3288 * EN25Q16 features a 128-byte one-time programmable region */
3289 .feature_bits = FEATURE_WRSR_WREN,
3290 .tested = TEST_UNTESTED,
3291 .probe = probe_spi_rdid,
3292 .probe_timing = TIMING_ZERO,
3293 .block_erasers =
3294 {
3295 {
3296 .eraseblocks = { {4 * 1024, 512} },
3297 .block_erase = spi_block_erase_20,
3298 }, {
3299 .eraseblocks = { {64 * 1024, 32} },
3300 .block_erase = spi_block_erase_d8,
3301 }, {
3302 /* not supported by Q16 version */
3303 .eraseblocks = { {64 * 1024, 32} },
3304 .block_erase = spi_block_erase_52,
3305 }, {
3306 .eraseblocks = { {2 * 1024 * 1024, 1} },
3307 .block_erase = spi_block_erase_60,
3308 }, {
3309 .eraseblocks = { {2 * 1024 * 1024, 1} },
3310 .block_erase = spi_block_erase_c7,
3311 }
3312 },
3313 .unlock = spi_disable_blockprotect,
3314 .write = spi_chip_write_256,
3315 .read = spi_chip_read,
3316 .voltage = {2700, 3600},
3317 },
3318
3319 {
3320 .vendor = "Eon",
3321 .name = "EN25Q32(A/B)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003322 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003323 .manufacture_id = EON_ID_NOPREFIX,
3324 .model_id = EON_EN25Q32,
3325 .total_size = 4096,
3326 .page_size = 256,
3327 /* TODO: chip features 512-byte one-time programmable region */
3328 .feature_bits = FEATURE_WRSR_WREN,
3329 .tested = TEST_UNTESTED,
3330 .probe = probe_spi_rdid,
3331 .probe_timing = TIMING_ZERO,
3332 .block_erasers =
3333 {
3334 {
3335 .eraseblocks = { {4 * 1024, 1024} },
3336 .block_erase = spi_block_erase_20,
3337 }, {
3338 .eraseblocks = { {64 * 1024, 64} },
3339 .block_erase = spi_block_erase_d8,
3340 }, {
3341 .eraseblocks = { {4 * 1024 * 1024, 1} },
3342 .block_erase = spi_block_erase_60,
3343 }, {
3344 .eraseblocks = { {4 * 1024 * 1024, 1} },
3345 .block_erase = spi_block_erase_c7,
3346 }
3347 },
3348 .unlock = spi_disable_blockprotect,
3349 .write = spi_chip_write_256,
3350 .read = spi_chip_read,
3351 .voltage = {2700, 3600},
3352 },
3353
3354 {
3355 .vendor = "Eon",
3356 .name = "EN25Q64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003357 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003358 .manufacture_id = EON_ID_NOPREFIX,
3359 .model_id = EON_EN25Q64,
3360 .total_size = 8192,
3361 .page_size = 256,
3362 /* TODO: chip features 512-byte one-time programmable region */
3363 .feature_bits = FEATURE_WRSR_WREN,
3364 .tested = TEST_UNTESTED,
3365 .probe = probe_spi_rdid,
3366 .probe_timing = TIMING_ZERO,
3367 .block_erasers =
3368 {
3369 {
3370 .eraseblocks = { {4 * 1024, 2048} },
3371 .block_erase = spi_block_erase_20,
3372 }, {
3373 .eraseblocks = { {64 * 1024, 128} },
3374 .block_erase = spi_block_erase_d8,
3375 }, {
3376 .eraseblocks = { {8 * 1024 * 1024, 1} },
3377 .block_erase = spi_block_erase_60,
3378 }, {
3379 .eraseblocks = { {8 * 1024 * 1024, 1} },
3380 .block_erase = spi_block_erase_c7,
3381 }
3382 },
3383 .unlock = spi_disable_blockprotect,
3384 .write = spi_chip_write_256,
3385 .read = spi_chip_read,
3386 .voltage = {2700, 3600},
3387 },
3388
3389 {
3390 .vendor = "Eon",
3391 .name = "EN25Q128",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003392 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003393 .manufacture_id = EON_ID_NOPREFIX,
3394 .model_id = EON_EN25Q128,
3395 .total_size = 16384,
3396 .page_size = 256,
3397 /* TODO: chip features 512-byte one-time programmable region */
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, 4096} },
3406 .block_erase = spi_block_erase_20,
3407 }, {
3408 .eraseblocks = { {64 * 1024, 256} },
3409 .block_erase = spi_block_erase_d8,
3410 }, {
3411 .eraseblocks = { {16 * 1024 * 1024, 1} },
3412 .block_erase = spi_block_erase_60,
3413 }, {
3414 .eraseblocks = { {16 * 1024 * 1024, 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 },
3422
3423 {
3424 .vendor = "Eon",
3425 .name = "EN25QH16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003426 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003427 .manufacture_id = EON_ID_NOPREFIX,
3428 .model_id = EON_EN25QH16,
3429 .total_size = 2048,
3430 .page_size = 256,
3431 /* TODO: chip features 512-byte one-time programmable region
3432 * and supports SFDP.
3433 */
3434 .feature_bits = FEATURE_WRSR_WREN,
3435 .tested = TEST_UNTESTED,
3436 .probe = probe_spi_rdid,
3437 .probe_timing = TIMING_ZERO,
3438 .block_erasers =
3439 {
3440 {
3441 .eraseblocks = { {4 * 1024, 512} },
3442 .block_erase = spi_block_erase_20,
3443 }, {
3444 .eraseblocks = { {64 * 1024, 32} },
3445 .block_erase = spi_block_erase_d8,
3446 }, {
3447 .eraseblocks = { {1024 * 2048, 1} },
3448 .block_erase = spi_block_erase_60,
3449 }, {
3450 .eraseblocks = { {1024 * 2048, 1} },
3451 .block_erase = spi_block_erase_c7,
3452 }
3453 },
3454 .unlock = spi_disable_blockprotect,
3455 .write = spi_chip_write_256,
3456 .read = spi_chip_read,
3457 .voltage = {2700, 3600},
3458 },
3459
3460 {
3461 .vendor = "Eon",
Russ Dill3cd5a122010-03-05 08:44:11 +00003462 .name = "EN29F010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003463 .bustype = BUS_PARALLEL,
Russ Dill3cd5a122010-03-05 08:44:11 +00003464 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003465 .model_id = EON_EN29F010,
Russ Dill3cd5a122010-03-05 08:44:11 +00003466 .total_size = 128,
3467 .page_size = 128,
3468 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003469 .tested = TEST_OK_PRE,
Russ Dill3cd5a122010-03-05 08:44:11 +00003470 .probe = probe_jedec,
3471 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3472 .block_erasers =
3473 {
3474 {
3475 .eraseblocks = { {16 * 1024, 8} },
3476 .block_erase = erase_sector_jedec,
3477 },
3478 {
3479 .eraseblocks = { {128 * 1024, 1} },
3480 .block_erase = erase_chip_block_jedec,
3481 },
3482 },
3483 .write = write_jedec_1,
3484 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003485 .voltage = {4500, 5500},
Russ Dill3cd5a122010-03-05 08:44:11 +00003486 },
3487
3488 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00003489 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003490 .name = "EN29F002(A)(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003491 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003492 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003493 .model_id = EON_EN29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003494 .total_size = 256,
3495 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00003496 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003497 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003498 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003499 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003500 .block_erasers =
3501 {
3502 {
3503 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00003504 {16 * 1024, 1},
Michael Karchere3cb0a12010-03-13 23:47:09 +00003505 {8 * 1024, 2},
3506 {32 * 1024, 1},
3507 {64 * 1024, 3},
Sean Nelson6b11ad22009-12-23 17:05:59 +00003508 },
3509 .block_erase = erase_sector_jedec,
3510 }, {
3511 .eraseblocks = { {256 * 1024, 1} },
3512 .block_erase = erase_chip_block_jedec,
3513 },
3514 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00003515 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003516 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003517 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003518 },
3519
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003520 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00003521 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003522 .name = "EN29F002(A)(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003523 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003524 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003525 .model_id = EON_EN29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003526 .total_size = 256,
3527 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00003528 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003529 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003530 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003531 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003532 .block_erasers =
3533 {
3534 {
3535 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00003536 {64 * 1024, 3},
Michael Karchere3cb0a12010-03-13 23:47:09 +00003537 {32 * 1024, 1},
3538 {8 * 1024, 2},
3539 {16 * 1024, 1},
Sean Nelson6b11ad22009-12-23 17:05:59 +00003540 },
3541 .block_erase = erase_sector_jedec,
3542 }, {
3543 .eraseblocks = { {256 * 1024, 1} },
3544 .block_erase = erase_chip_block_jedec,
3545 },
3546 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00003547 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003548 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003549 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003550 },
3551
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003552 {
3553 .vendor = "Fujitsu",
3554 .name = "MBM29F004BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003555 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003556 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003557 .model_id = FUJITSU_MBM29F004BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003558 .total_size = 512,
3559 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003560 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003561 .tested = TEST_UNTESTED,
3562 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003563 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003564 .block_erasers =
3565 {
3566 {
3567 .eraseblocks = {
3568 {16 * 1024, 1},
3569 {8 * 1024, 2},
3570 {32 * 1024, 1},
3571 {64 * 1024, 7},
3572 },
Sean Nelson35727f72010-01-28 23:55:12 +00003573 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003574 }, {
3575 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00003576 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003577 },
3578 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003579 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003580 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003581 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003582 },
3583
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003584 {
3585 .vendor = "Fujitsu",
3586 .name = "MBM29F004TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003587 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003588 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003589 .model_id = FUJITSU_MBM29F004TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003590 .total_size = 512,
3591 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003592 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003593 .tested = TEST_UNTESTED,
3594 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003595 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003596 .block_erasers =
3597 {
3598 {
3599 .eraseblocks = {
3600 {64 * 1024, 7},
3601 {32 * 1024, 1},
3602 {8 * 1024, 2},
3603 {16 * 1024, 1},
3604 },
Sean Nelson35727f72010-01-28 23:55:12 +00003605 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003606 }, {
3607 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00003608 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003609 },
3610 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003611 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003612 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003613 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003614 },
3615
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003616 {
Sean Nelson35727f72010-01-28 23:55:12 +00003617 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003618 .vendor = "Fujitsu",
3619 .name = "MBM29F400BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003620 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003621 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003622 .model_id = FUJITSU_MBM29F400BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003623 .total_size = 512,
3624 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003625 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00003626 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003627 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00003628 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003629 .block_erasers =
3630 {
3631 {
3632 .eraseblocks = {
3633 {16 * 1024, 1},
3634 {8 * 1024, 2},
3635 {32 * 1024, 1},
3636 {64 * 1024, 7},
3637 },
3638 .block_erase = block_erase_m29f400bt,
3639 }, {
3640 .eraseblocks = { {512 * 1024, 1} },
3641 .block_erase = block_erase_chip_m29f400bt,
3642 },
3643 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00003644 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003645 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003646 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00003647 },
3648
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003649 {
3650 .vendor = "Fujitsu",
3651 .name = "MBM29F400TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003652 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003653 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003654 .model_id = FUJITSU_MBM29F400TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003655 .total_size = 512,
3656 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003657 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003658 .tested = TEST_UNTESTED,
3659 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00003660 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003661 .block_erasers =
3662 {
3663 {
3664 .eraseblocks = {
3665 {64 * 1024, 7},
3666 {32 * 1024, 1},
3667 {8 * 1024, 2},
3668 {16 * 1024, 1},
3669 },
3670 .block_erase = block_erase_m29f400bt,
3671 }, {
3672 .eraseblocks = { {512 * 1024, 1} },
3673 .block_erase = block_erase_chip_m29f400bt,
3674 },
3675 },
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00003676 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003677 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003678 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00003679 },
3680
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003681 {
David Borgc96a8bd2010-06-21 16:12:22 +00003682 .vendor = "Hyundai",
3683 .name = "HY29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003684 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00003685 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003686 .model_id = HYUNDAI_HY29F002T,
David Borgc96a8bd2010-06-21 16:12:22 +00003687 .total_size = 256,
3688 .page_size = 256 * 1024,
3689 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003690 .tested = TEST_OK_PRE,
David Borgc96a8bd2010-06-21 16:12:22 +00003691 .probe = probe_jedec,
3692 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3693 .block_erasers =
3694 {
3695 {
3696 .eraseblocks = {
3697 {64 * 1024, 3},
3698 {32 * 1024, 1},
3699 {8 * 1024, 2},
3700 {16 * 1024, 1},
3701 },
3702 .block_erase = erase_sector_jedec,
3703 }, {
3704 .eraseblocks = { {256 * 1024, 1} },
3705 .block_erase = erase_chip_block_jedec,
3706 },
3707 },
3708 .write = write_jedec_1,
3709 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003710 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00003711 },
3712
3713 {
3714 .vendor = "Hyundai",
3715 .name = "HY29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003716 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00003717 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003718 .model_id = HYUNDAI_HY29F002B,
David Borgc96a8bd2010-06-21 16:12:22 +00003719 .total_size = 256,
3720 .page_size = 256 * 1024,
3721 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
3722 .tested = TEST_UNTESTED,
3723 .probe = probe_jedec,
3724 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3725 .block_erasers =
3726 {
3727 {
3728 .eraseblocks = {
3729 {16 * 1024, 1},
3730 {8 * 1024, 2},
3731 {32 * 1024, 1},
3732 {64 * 1024, 3},
3733 },
3734 .block_erase = erase_sector_jedec,
3735 }, {
3736 .eraseblocks = { {256 * 1024, 1} },
3737 .block_erase = erase_chip_block_jedec,
3738 },
3739 },
3740 .write = write_jedec_1,
3741 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003742 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00003743 },
3744
3745 {
Joshua Roysf1324e02010-09-16 00:51:51 +00003746 .vendor = "Hyundai",
3747 .name = "HY29F040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003748 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00003749 .manufacture_id = HYUNDAI_ID,
3750 .model_id = HYUNDAI_HY29F040A,
3751 .total_size = 512,
3752 .page_size = 64 * 1024,
3753 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
3754 .tested = TEST_UNTESTED,
3755 .probe = probe_jedec,
3756 .probe_timing = TIMING_ZERO,
3757 .block_erasers =
3758 {
3759 {
3760 .eraseblocks = { {64 * 1024, 8} },
3761 .block_erase = erase_sector_jedec,
3762 }, {
3763 .eraseblocks = { {512 * 1024, 1} },
3764 .block_erase = erase_chip_block_jedec,
3765 },
3766 },
3767 .write = write_jedec_1,
3768 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003769 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00003770 },
3771
3772 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003773 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003774 .name = "28F001BN/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003775 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00003776 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003777 .model_id = INTEL_28F001B,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00003778 .total_size = 128,
3779 .page_size = 128 * 1024, /* 8k + 2x4k + 112k */
Sean Nelsondee4a832010-03-22 04:39:31 +00003780 .tested = TEST_UNTESTED,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00003781 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003782 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00003783 .block_erasers =
3784 {
3785 {
3786 .eraseblocks = {
3787 {8 * 1024, 1},
3788 {4 * 1024, 2},
3789 {112 * 1024, 1},
3790 },
Sean Nelson28accc22010-03-19 18:47:06 +00003791 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00003792 },
3793 },
Sean Nelsondee4a832010-03-22 04:39:31 +00003794 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00003795 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003796 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00003797 },
3798
3799 {
3800 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003801 .name = "28F001BN/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003802 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00003803 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003804 .model_id = INTEL_28F001T,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00003805 .total_size = 128,
3806 .page_size = 128 * 1024, /* 112k + 2x4k + 8k */
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00003807 .tested = TEST_OK_PR,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00003808 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003809 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00003810 .block_erasers =
3811 {
3812 {
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00003813 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00003814 {112 * 1024, 1},
3815 {4 * 1024, 2},
3816 {8 * 1024, 1},
3817 },
Sean Nelson28accc22010-03-19 18:47:06 +00003818 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00003819 },
3820 },
Sean Nelsondee4a832010-03-22 04:39:31 +00003821 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00003822 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003823 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00003824 },
3825
3826 {
3827 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003828 .name = "28F002BC/BL/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003829 .bustype = BUS_PARALLEL,
Joshua Roysd97c0e02010-07-22 15:20:43 +00003830 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003831 .model_id = INTEL_28F002T,
Joshua Roysd97c0e02010-07-22 15:20:43 +00003832 .total_size = 256,
3833 .page_size = 256 * 1024,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003834 .tested = TEST_OK_PRE,
Joshua Roysd97c0e02010-07-22 15:20:43 +00003835 .probe = probe_82802ab,
3836 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3837 .block_erasers =
3838 {
3839 {
3840 .eraseblocks = {
3841 {128 * 1024, 1},
3842 {96 * 1024, 1},
3843 {8 * 1024, 2},
3844 {16 * 1024, 1},
3845 },
3846 .block_erase = erase_block_82802ab,
3847 },
3848 },
3849 .write = write_82802ab,
3850 .read = read_memmapped,
3851 },
3852
3853 {
3854 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003855 .name = "28F008S3/S5/SC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003856 .bustype = BUS_PARALLEL,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00003857 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003858 .model_id = INTEL_28F004S3,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00003859 .total_size = 512,
3860 .page_size = 256,
3861 .tested = TEST_UNTESTED,
3862 .probe = probe_82802ab,
3863 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00003864 .block_erasers =
3865 {
3866 {
3867 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00003868 .block_erase = erase_block_82802ab,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00003869 },
3870 },
Sean Nelsondee4a832010-03-22 04:39:31 +00003871 .unlock = unlock_28f004s5,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00003872 .write = write_82802ab,
3873 .read = read_memmapped,
3874 },
3875
3876 {
3877 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003878 .name = "28F004B5/BE/BV/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003879 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00003880 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003881 .model_id = INTEL_28F004B,
Michael Karcherad0010a2010-04-03 10:27:08 +00003882 .total_size = 512,
3883 .page_size = 128 * 1024, /* maximal block size */
3884 .tested = TEST_UNTESTED,
3885 .probe = probe_82802ab,
3886 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3887 .block_erasers =
3888 {
3889 {
3890 .eraseblocks = {
3891 {16 * 1024, 1},
3892 {8 * 1024, 2},
3893 {96 * 1024, 1},
3894 {128 * 1024, 3},
3895 },
3896 .block_erase = erase_block_82802ab,
3897 },
3898 },
3899 .write = write_82802ab,
3900 .read = read_memmapped,
3901 },
3902
3903 {
3904 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003905 .name = "28F004B5/BE/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003906 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00003907 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003908 .model_id = INTEL_28F004T,
Michael Karcherad0010a2010-04-03 10:27:08 +00003909 .total_size = 512,
3910 .page_size = 128 * 1024, /* maximal block size */
3911 .tested = TEST_UNTESTED,
3912 .probe = probe_82802ab,
3913 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3914 .block_erasers =
3915 {
3916 {
3917 .eraseblocks = {
3918 {128 * 1024, 3},
3919 {96 * 1024, 1},
3920 {8 * 1024, 2},
3921 {16 * 1024, 1},
3922 },
3923 .block_erase = erase_block_82802ab,
3924 },
3925 },
3926 .write = write_82802ab,
3927 .read = read_memmapped,
3928 },
3929
3930 {
3931 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003932 .name = "28F400BV/BX/CE/CV-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003933 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00003934 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003935 .model_id = INTEL_28F400B,
Michael Karcherad0010a2010-04-03 10:27:08 +00003936 .total_size = 512,
3937 .page_size = 128 * 1024, /* maximal block size */
3938 .feature_bits = FEATURE_ADDR_SHIFTED,
3939 .tested = TEST_UNTESTED,
3940 .probe = probe_82802ab,
3941 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3942 .block_erasers =
3943 {
3944 {
3945 .eraseblocks = {
3946 {16 * 1024, 1},
3947 {8 * 1024, 2},
3948 {96 * 1024, 1},
3949 {128 * 1024, 3},
3950 },
3951 .block_erase = erase_block_82802ab,
3952 },
3953 },
3954 .write = write_82802ab,
3955 .read = read_memmapped,
3956 },
3957
3958 {
3959 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003960 .name = "28F400BV/BX/CE/CV-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003961 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00003962 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003963 .model_id = INTEL_28F400T,
Michael Karcherad0010a2010-04-03 10:27:08 +00003964 .total_size = 512,
3965 .page_size = 128 * 1024, /* maximal block size */
3966 .feature_bits = FEATURE_ADDR_SHIFTED,
3967 .tested = TEST_UNTESTED,
3968 .probe = probe_82802ab,
3969 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3970 .block_erasers =
3971 {
3972 {
3973 .eraseblocks = {
3974 {128 * 1024, 3},
3975 {96 * 1024, 1},
3976 {8 * 1024, 2},
3977 {16 * 1024, 1},
3978 },
3979 .block_erase = erase_block_82802ab,
3980 },
3981 },
3982 .write = write_82802ab,
3983 .read = read_memmapped,
3984 },
3985
3986 {
3987 .vendor = "Intel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003988 .name = "82802AB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003989 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003990 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00003991 .model_id = INTEL_82802AB,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003992 .total_size = 512,
3993 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00003994 .feature_bits = FEATURE_REGISTERMAP,
Stefan Taunerd06d9412011-06-12 19:47:55 +00003995 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003996 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003997 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00003998 .block_erasers =
3999 {
4000 {
4001 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00004002 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00004003 },
4004 },
Sean Nelson28accc22010-03-19 18:47:06 +00004005 .unlock = unlock_82802ab,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004006 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004007 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004008 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004009 },
4010
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004011 {
4012 .vendor = "Intel",
4013 .name = "82802AC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004014 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004015 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004016 .model_id = INTEL_82802AC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004017 .total_size = 1024,
4018 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00004019 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +00004020 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004021 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004022 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00004023 .block_erasers =
4024 {
4025 {
4026 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +00004027 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00004028 },
4029 },
Sean Nelson28accc22010-03-19 18:47:06 +00004030 .unlock = unlock_82802ab,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004031 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004032 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004033 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004034 },
4035
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004036 {
4037 .vendor = "Macronix",
4038 .name = "MX25L512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004039 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004040 .manufacture_id = MACRONIX_ID,
4041 .model_id = MACRONIX_MX25L512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004042 .total_size = 64,
4043 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004044 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004045 .tested = TEST_UNTESTED,
4046 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004047 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004048 .block_erasers =
4049 {
4050 {
4051 .eraseblocks = { {4 * 1024, 16} },
4052 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004053 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004054 .eraseblocks = { {64 * 1024, 1} },
4055 .block_erase = spi_block_erase_52,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004056 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004057 .eraseblocks = { {64 * 1024, 1} },
4058 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004059 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004060 .eraseblocks = { {64 * 1024, 1} },
4061 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004062 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004063 .eraseblocks = { {64 * 1024, 1} },
4064 .block_erase = spi_block_erase_c7,
4065 },
4066 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004067 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004068 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004069 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004070 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004071 },
4072
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004073 {
4074 .vendor = "Macronix",
4075 .name = "MX25L1005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004076 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004077 .manufacture_id = MACRONIX_ID,
4078 .model_id = MACRONIX_MX25L1005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004079 .total_size = 128,
4080 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004081 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004082 .tested = TEST_UNTESTED,
4083 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004084 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004085 .block_erasers =
4086 {
4087 {
4088 .eraseblocks = { {4 * 1024, 32} },
4089 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004090 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004091 .eraseblocks = { {64 * 1024, 2} },
4092 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004093 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004094 .eraseblocks = { {128 * 1024, 1} },
4095 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004096 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004097 .eraseblocks = { {128 * 1024, 1} },
4098 .block_erase = spi_block_erase_c7,
4099 },
4100 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004101 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004102 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004103 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004104 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004105 },
4106
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004107 {
4108 .vendor = "Macronix",
4109 .name = "MX25L2005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004110 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004111 .manufacture_id = MACRONIX_ID,
4112 .model_id = MACRONIX_MX25L2005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004113 .total_size = 256,
4114 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004115 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004116 .tested = TEST_UNTESTED,
4117 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004118 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004119 .block_erasers =
4120 {
4121 {
4122 .eraseblocks = { {4 * 1024, 64} },
4123 .block_erase = spi_block_erase_20,
4124 }, {
4125 .eraseblocks = { {64 * 1024, 4} },
4126 .block_erase = spi_block_erase_52,
4127 }, {
4128 .eraseblocks = { {64 * 1024, 4} },
4129 .block_erase = spi_block_erase_d8,
4130 }, {
4131 .eraseblocks = { {256 * 1024, 1} },
4132 .block_erase = spi_block_erase_60,
4133 }, {
4134 .eraseblocks = { {256 * 1024, 1} },
4135 .block_erase = spi_block_erase_c7,
4136 },
4137 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004138 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004139 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004140 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004141 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004142 },
4143
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004144 {
4145 .vendor = "Macronix",
4146 .name = "MX25L4005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004147 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004148 .manufacture_id = MACRONIX_ID,
4149 .model_id = MACRONIX_MX25L4005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004150 .total_size = 512,
4151 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004152 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +00004153 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004154 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004155 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004156 .block_erasers =
4157 {
4158 {
4159 .eraseblocks = { {4 * 1024, 128} },
4160 .block_erase = spi_block_erase_20,
4161 }, {
4162 .eraseblocks = { {64 * 1024, 8} },
4163 .block_erase = spi_block_erase_52,
4164 }, {
4165 .eraseblocks = { {64 * 1024, 8} },
4166 .block_erase = spi_block_erase_d8,
4167 }, {
4168 .eraseblocks = { {512 * 1024, 1} },
4169 .block_erase = spi_block_erase_60,
4170 }, {
4171 .eraseblocks = { {512 * 1024, 1} },
4172 .block_erase = spi_block_erase_c7,
4173 },
4174 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004175 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004176 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004177 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004178 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004179 },
4180
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004181 {
4182 .vendor = "Macronix",
4183 .name = "MX25L8005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004184 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004185 .manufacture_id = MACRONIX_ID,
4186 .model_id = MACRONIX_MX25L8005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004187 .total_size = 1024,
4188 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004189 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +00004190 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004191 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004192 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004193 .block_erasers =
4194 {
4195 {
4196 .eraseblocks = { {4 * 1024, 256} },
4197 .block_erase = spi_block_erase_20,
4198 }, {
4199 .eraseblocks = { {64 * 1024, 16} },
4200 .block_erase = spi_block_erase_52,
4201 }, {
4202 .eraseblocks = { {64 * 1024, 16} },
4203 .block_erase = spi_block_erase_d8,
4204 }, {
4205 .eraseblocks = { {1024 * 1024, 1} },
4206 .block_erase = spi_block_erase_60,
4207 }, {
4208 .eraseblocks = { {1024 * 1024, 1} },
4209 .block_erase = spi_block_erase_c7,
4210 },
4211 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004212 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004213 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004214 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004215 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004216 },
4217
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004218 {
4219 .vendor = "Macronix",
4220 .name = "MX25L1605",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004221 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004222 .manufacture_id = MACRONIX_ID,
4223 .model_id = MACRONIX_MX25L1605,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004224 .total_size = 2048,
4225 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004226 .feature_bits = FEATURE_WRSR_WREN,
Sven Schnelle4bd8a402011-03-07 10:59:06 +00004227 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004228 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004229 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004230 .block_erasers =
4231 {
4232 {
4233 .eraseblocks = { {4 * 1024, 512} },
4234 .block_erase = spi_block_erase_20, /* This erase function has 64k blocksize for eLiteFlash */
4235 }, {
4236 .eraseblocks = { {64 * 1024, 32} }, /* Not supported in MX25L1605 (eLiteFlash) and MX25L1605D */
4237 .block_erase = spi_block_erase_52,
4238 }, {
4239 .eraseblocks = { {64 * 1024, 32} },
4240 .block_erase = spi_block_erase_d8,
4241 }, {
4242 .eraseblocks = { {2 * 1024 * 1024, 1} },
4243 .block_erase = spi_block_erase_60,
4244 }, {
4245 .eraseblocks = { {2 * 1024 * 1024, 1} },
4246 .block_erase = spi_block_erase_c7,
4247 },
4248 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004249 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004250 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004251 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004252 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004253 },
4254
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004255 {
4256 .vendor = "Macronix",
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004257 .name = "MX25L1635D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004258 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004259 .manufacture_id = MACRONIX_ID,
4260 .model_id = MACRONIX_MX25L1635D,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004261 .total_size = 2048,
4262 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004263 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004264 .tested = TEST_UNTESTED,
4265 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004266 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004267 .block_erasers =
4268 {
4269 {
4270 .eraseblocks = { {4 * 1024, 512} },
4271 .block_erase = spi_block_erase_20,
4272 }, {
4273 .eraseblocks = { {64 * 1024, 32} },
4274 .block_erase = spi_block_erase_d8,
4275 }, {
4276 .eraseblocks = { {2 * 1024 * 1024, 1} },
4277 .block_erase = spi_block_erase_60,
4278 }, {
4279 .eraseblocks = { {2 * 1024 * 1024, 1} },
4280 .block_erase = spi_block_erase_c7,
4281 }
4282 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004283 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004284 .write = spi_chip_write_256,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004285 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004286 .voltage = {2700, 3600},
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004287 },
Stephan Guillouxfd315502009-04-20 22:54:13 +00004288
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004289 {
4290 .vendor = "Macronix",
Stephan Guilloux3611b802010-09-13 19:59:28 +00004291 .name = "MX25L1635E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004292 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004293 .manufacture_id = MACRONIX_ID,
4294 .model_id = MACRONIX_MX25L1635E,
Stephan Guilloux3611b802010-09-13 19:59:28 +00004295 .total_size = 2048,
4296 .page_size = 256,
4297 .feature_bits = FEATURE_WRSR_WREN,
4298 .tested = TEST_UNTESTED,
4299 .probe = probe_spi_rdid,
4300 .probe_timing = TIMING_ZERO,
4301 .block_erasers =
4302 {
4303 {
4304 .eraseblocks = { {4 * 1024, 512} },
4305 .block_erase = spi_block_erase_20,
4306 }, {
4307 .eraseblocks = { {64 * 1024, 32} },
4308 .block_erase = spi_block_erase_d8,
4309 }, {
4310 .eraseblocks = { {2 * 1024 * 1024, 1} },
4311 .block_erase = spi_block_erase_60,
4312 }, {
4313 .eraseblocks = { {2 * 1024 * 1024, 1} },
4314 .block_erase = spi_block_erase_c7,
4315 }
4316 },
4317 .unlock = spi_disable_blockprotect,
4318 .write = spi_chip_write_256,
4319 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004320 .voltage = {2700, 3600},
Stephan Guilloux3611b802010-09-13 19:59:28 +00004321 },
4322
4323 {
4324 .vendor = "Macronix",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004325 .name = "MX25L3205",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004326 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004327 .manufacture_id = MACRONIX_ID,
4328 .model_id = MACRONIX_MX25L3205,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004329 .total_size = 4096,
4330 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004331 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00004332 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004333 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004334 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004335 .block_erasers =
4336 {
4337 {
4338 .eraseblocks = { {4 * 1024, 1024} },
4339 .block_erase = spi_block_erase_20,
4340 }, {
4341 .eraseblocks = { {4 * 1024, 1024} },
4342 .block_erase = spi_block_erase_d8,
4343 }, {
4344 .eraseblocks = { {4 * 1024 * 1024, 1} },
4345 .block_erase = spi_block_erase_60,
4346 }, {
4347 .eraseblocks = { {4 * 1024 * 1024, 1} },
4348 .block_erase = spi_block_erase_c7,
4349 },
4350 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004351 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004352 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004353 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004354 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004355 },
4356
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004357 {
4358 .vendor = "Macronix",
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00004359 .name = "MX25L3235D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004360 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004361 .manufacture_id = MACRONIX_ID,
4362 .model_id = MACRONIX_MX25L3235D,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00004363 .total_size = 4096,
4364 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004365 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00004366 .tested = TEST_UNTESTED,
4367 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004368 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004369 .block_erasers =
4370 {
4371 {
4372 .eraseblocks = { {4 * 1024, 1024} },
4373 .block_erase = spi_block_erase_20,
4374 }, {
4375 .eraseblocks = { {64 * 1024, 64} },
4376 .block_erase = spi_block_erase_d8,
4377 }, {
4378 .eraseblocks = { {4 * 1024 * 1024, 1} },
4379 .block_erase = spi_block_erase_60,
4380 }, {
4381 .eraseblocks = { {4 * 1024 * 1024, 1} },
4382 .block_erase = spi_block_erase_c7,
4383 }
4384 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004385 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004386 .write = spi_chip_write_256,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00004387 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004388 .voltage = {2700, 3600},
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00004389 },
4390
4391 {
4392 .vendor = "Macronix",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004393 .name = "MX25L6405",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004394 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004395 .manufacture_id = MACRONIX_ID,
4396 .model_id = MACRONIX_MX25L6405,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004397 .total_size = 8192,
4398 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004399 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger452b3e32009-06-22 11:14:43 +00004400 .tested = TEST_OK_PROBE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004401 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004402 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004403 .block_erasers =
4404 {
4405 {
4406 .eraseblocks = { {64 * 1024, 128} },
4407 .block_erase = spi_block_erase_20,
4408 }, {
4409 .eraseblocks = { {64 * 1024, 128} },
4410 .block_erase = spi_block_erase_d8,
4411 }, {
4412 .eraseblocks = { {8 * 1024 * 1024, 1} },
4413 .block_erase = spi_block_erase_60,
4414 }, {
4415 .eraseblocks = { {8 * 1024 * 1024, 1} },
4416 .block_erase = spi_block_erase_c7,
4417 }
4418 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004419 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004420 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004421 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004422 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004423 },
4424
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004425 {
4426 .vendor = "Macronix",
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00004427 .name = "MX25L12805",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004428 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004429 .manufacture_id = MACRONIX_ID,
4430 .model_id = MACRONIX_MX25L12805,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00004431 .total_size = 16384,
4432 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004433 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00004434 .tested = TEST_UNTESTED,
4435 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004436 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004437 .block_erasers =
4438 {
4439 {
4440 .eraseblocks = { {4 * 1024, 4096} },
4441 .block_erase = spi_block_erase_20,
4442 }, {
4443 .eraseblocks = { {64 * 1024, 256} },
4444 .block_erase = spi_block_erase_d8,
4445 }, {
4446 .eraseblocks = { {16 * 1024 * 1024, 1} },
4447 .block_erase = spi_block_erase_60,
4448 }, {
4449 .eraseblocks = { {16 * 1024 * 1024, 1} },
4450 .block_erase = spi_block_erase_c7,
4451 }
4452 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004453 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004454 .write = spi_chip_write_256,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00004455 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004456 .voltage = {2700, 3600},
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00004457 },
4458
4459 {
4460 .vendor = "Macronix",
Mark Panajotovic502a9132009-08-24 01:42:24 +00004461 .name = "MX29F001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004462 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004463 .manufacture_id = MACRONIX_ID,
4464 .model_id = MACRONIX_MX29F001B,
Mark Panajotovic502a9132009-08-24 01:42:24 +00004465 .total_size = 128,
4466 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004467 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
4468 .tested = TEST_UNTESTED,
4469 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00004470 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004471 .block_erasers =
4472 {
4473 {
4474 .eraseblocks = {
4475 {8 * 1024, 1},
4476 {4 * 1024, 2},
4477 {8 * 1024, 2},
4478 {32 * 1024, 1},
4479 {64 * 1024, 1},
4480 },
Sean Nelson35727f72010-01-28 23:55:12 +00004481 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00004482 }, {
4483 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004484 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00004485 }
4486 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004487 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00004488 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004489 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00004490 },
4491
4492 {
4493 .vendor = "Macronix",
4494 .name = "MX29F001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004495 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004496 .manufacture_id = MACRONIX_ID,
4497 .model_id = MACRONIX_MX29F001T,
Mark Panajotovic502a9132009-08-24 01:42:24 +00004498 .total_size = 128,
4499 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004500 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stefan Tauner74c6ec62011-05-18 01:31:46 +00004501 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00004502 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00004503 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004504 .block_erasers =
4505 {
4506 {
4507 .eraseblocks = {
4508 {64 * 1024, 1},
4509 {32 * 1024, 1},
4510 {8 * 1024, 2},
4511 {4 * 1024, 2},
4512 {8 * 1024, 1},
4513 },
Sean Nelson35727f72010-01-28 23:55:12 +00004514 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00004515 }, {
4516 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004517 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00004518 }
4519 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004520 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00004521 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004522 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00004523 },
4524
4525 {
4526 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00004527 .name = "MX29F002(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004528 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004529 .manufacture_id = MACRONIX_ID,
4530 .model_id = MACRONIX_MX29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004531 .total_size = 256,
4532 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004533 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004534 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00004535 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00004536 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004537 .block_erasers =
4538 {
4539 {
4540 .eraseblocks = {
4541 {16 * 1024, 1},
4542 {8 * 1024, 2},
4543 {32 * 1024, 1},
4544 {64 * 1024, 3},
4545 },
Sean Nelson35727f72010-01-28 23:55:12 +00004546 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004547 }, {
4548 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004549 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004550 },
4551 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004552 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004553 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004554 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004555 },
4556
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004557 {
4558 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00004559 .name = "MX29F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004560 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004561 .manufacture_id = MACRONIX_ID,
4562 .model_id = MACRONIX_MX29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004563 .total_size = 256,
4564 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004565 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004566 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +00004567 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00004568 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004569 .block_erasers =
4570 {
4571 {
4572 .eraseblocks = {
4573 {64 * 1024, 3},
4574 {32 * 1024, 1},
4575 {8 * 1024, 2},
4576 {16 * 1024, 1},
4577 },
Sean Nelson35727f72010-01-28 23:55:12 +00004578 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004579 }, {
4580 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004581 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004582 },
4583 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004584 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004585 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004586 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004587 },
4588
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004589 {
4590 .vendor = "Macronix",
Joshua Roysf1324e02010-09-16 00:51:51 +00004591 .name = "MX29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004592 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00004593 .manufacture_id = MACRONIX_ID,
4594 .model_id = MACRONIX_MX29F040,
4595 .total_size = 512,
4596 .page_size = 64 * 1024,
4597 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
4598 .tested = TEST_UNTESTED,
4599 .probe = probe_jedec,
4600 .probe_timing = TIMING_ZERO,
4601 .block_erasers =
4602 {
4603 {
4604 .eraseblocks = { {64 * 1024, 8} },
4605 .block_erase = erase_sector_jedec,
4606 }, {
4607 .eraseblocks = { {512 * 1024, 1} },
4608 .block_erase = erase_chip_block_jedec,
4609 },
4610 },
4611 .write = write_jedec_1,
4612 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004613 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00004614 },
4615
4616 {
4617 .vendor = "Macronix",
Carl-Daniel Hailfinger350a0c32009-07-24 13:59:27 +00004618 .name = "MX29LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004619 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004620 .manufacture_id = MACRONIX_ID,
4621 .model_id = MACRONIX_MX29LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004622 .total_size = 512,
4623 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004624 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
4625 .tested = TEST_UNTESTED,
4626 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00004627 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004628 .block_erasers =
4629 {
4630 {
4631 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson35727f72010-01-28 23:55:12 +00004632 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00004633 }, {
4634 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004635 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00004636 },
4637 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004638 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004639 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004640 .voltage = {2700, 3600},
Carl-Daniel Hailfinger7de86392008-12-10 10:32:05 +00004641 },
4642
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004643 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00004644 .vendor = "MoselVitelic",
4645 .name = "V29C51000B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004646 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00004647 .manufacture_id = SYNCMOS_MVC_ID,
4648 .model_id = MVC_V29C51000B,
4649 .total_size = 64,
4650 .page_size = 512,
4651 .feature_bits = FEATURE_EITHER_RESET,
4652 .tested = TEST_UNTESTED,
4653 .probe = probe_jedec,
4654 .probe_timing = TIMING_ZERO,
4655 .block_erasers =
4656 {
4657 {
4658 .eraseblocks = { {512, 128} },
4659 .block_erase = erase_sector_jedec,
4660 }, {
4661 .eraseblocks = { {64 * 1024, 1} },
4662 .block_erase = erase_chip_block_jedec,
4663 },
4664 },
4665 .write = write_jedec_1,
4666 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004667 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00004668 },
4669
4670 {
4671 .vendor = "MoselVitelic",
4672 .name = "V29C51000T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004673 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00004674 .manufacture_id = SYNCMOS_MVC_ID,
4675 .model_id = MVC_V29C51000T,
4676 .total_size = 64,
4677 .page_size = 512,
4678 .feature_bits = FEATURE_EITHER_RESET,
4679 .tested = TEST_UNTESTED,
4680 .probe = probe_jedec,
4681 .probe_timing = TIMING_ZERO,
4682 .block_erasers =
4683 {
4684 {
4685 .eraseblocks = { {512, 128} },
4686 .block_erase = erase_sector_jedec,
4687 }, {
4688 .eraseblocks = { {64 * 1024, 1} },
4689 .block_erase = erase_chip_block_jedec,
4690 },
4691 },
4692 .write = write_jedec_1,
4693 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004694 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00004695 },
4696
4697 {
4698 .vendor = "MoselVitelic",
4699 .name = "V29C51400B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004700 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00004701 .manufacture_id = SYNCMOS_MVC_ID,
4702 .model_id = MVC_V29C51400B,
4703 .total_size = 512,
4704 .page_size = 1024,
4705 .feature_bits = FEATURE_EITHER_RESET,
4706 .tested = TEST_UNTESTED,
4707 .probe = probe_jedec,
4708 .probe_timing = TIMING_ZERO,
4709 .block_erasers =
4710 {
4711 {
4712 .eraseblocks = { {1024, 512} },
4713 .block_erase = erase_sector_jedec,
4714 }, {
4715 .eraseblocks = { {512 * 1024, 1} },
4716 .block_erase = erase_chip_block_jedec,
4717 },
4718 },
4719 .write = write_jedec_1,
4720 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004721 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00004722 },
4723
4724 {
4725 .vendor = "MoselVitelic",
4726 .name = "V29C51400T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004727 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00004728 .manufacture_id = SYNCMOS_MVC_ID,
4729 .model_id = MVC_V29C51400T,
4730 .total_size = 512,
4731 .page_size = 1024,
4732 .feature_bits = FEATURE_EITHER_RESET,
4733 .tested = TEST_UNTESTED,
4734 .probe = probe_jedec,
4735 .probe_timing = TIMING_ZERO,
4736 .block_erasers =
4737 {
4738 {
4739 .eraseblocks = { {1024, 512} },
4740 .block_erase = erase_sector_jedec,
4741 }, {
4742 .eraseblocks = { {512 * 1024, 1} },
4743 .block_erase = erase_chip_block_jedec,
4744 },
4745 },
4746 .write = write_jedec_1,
4747 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004748 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00004749 },
4750
4751 {
4752 .vendor = "MoselVitelic",
4753 .name = "V29LC51000",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004754 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00004755 .manufacture_id = SYNCMOS_MVC_ID,
4756 .model_id = MVC_V29LC51000,
4757 .total_size = 64,
4758 .page_size = 512,
4759 .feature_bits = FEATURE_EITHER_RESET,
4760 .tested = TEST_UNTESTED,
4761 .probe = probe_jedec,
4762 .probe_timing = TIMING_ZERO,
4763 .block_erasers =
4764 {
4765 {
4766 .eraseblocks = { {512, 128} },
4767 .block_erase = erase_sector_jedec,
4768 }, {
4769 .eraseblocks = { {64 * 1024, 1} },
4770 .block_erase = erase_chip_block_jedec,
4771 },
4772 },
4773 .write = write_jedec_1,
4774 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004775 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00004776 },
4777
4778 {
4779 .vendor = "MoselVitelic",
4780 .name = "V29LC51001",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004781 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00004782 .manufacture_id = SYNCMOS_MVC_ID,
4783 .model_id = MVC_V29LC51001,
4784 .total_size = 128,
4785 .page_size = 512,
4786 .feature_bits = FEATURE_EITHER_RESET,
4787 .tested = TEST_UNTESTED,
4788 .probe = probe_jedec,
4789 .probe_timing = TIMING_ZERO,
4790 .block_erasers =
4791 {
4792 {
4793 .eraseblocks = { {512, 256} },
4794 .block_erase = erase_sector_jedec,
4795 }, {
4796 .eraseblocks = { {128 * 1024, 1} },
4797 .block_erase = erase_chip_block_jedec,
4798 },
4799 },
4800 .write = write_jedec_1,
4801 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004802 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00004803 },
4804
4805 {
4806 .vendor = "MoselVitelic",
4807 .name = "V29LC51002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004808 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00004809 .manufacture_id = SYNCMOS_MVC_ID,
4810 .model_id = MVC_V29LC51002,
4811 .total_size = 256,
4812 .page_size = 512,
4813 .feature_bits = FEATURE_EITHER_RESET,
4814 .tested = TEST_UNTESTED,
4815 .probe = probe_jedec,
4816 .probe_timing = TIMING_ZERO,
4817 .block_erasers =
4818 {
4819 {
4820 .eraseblocks = { {512, 512} },
4821 .block_erase = erase_sector_jedec,
4822 }, {
4823 .eraseblocks = { {256 * 1024, 1} },
4824 .block_erase = erase_chip_block_jedec,
4825 },
4826 },
4827 .write = write_jedec_1,
4828 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004829 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00004830 },
4831
4832 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004833 .vendor = "Numonyx",
4834 .name = "M25PE10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004835 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004836 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00004837 .model_id = ST_M25PE10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004838 .total_size = 128,
4839 .page_size = 256,
4840 .tested = TEST_UNTESTED,
4841 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004842 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00004843 .block_erasers =
4844 {
4845 {
4846 .eraseblocks = { {4 * 1024, 32} },
4847 .block_erase = spi_block_erase_20,
4848 }, {
4849 .eraseblocks = { {64 * 1024, 2} },
4850 .block_erase = spi_block_erase_d8,
4851 }, {
4852 .eraseblocks = { {128 * 1024, 1} },
4853 .block_erase = spi_block_erase_c7,
4854 }
4855 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004856 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004857 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004858 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004859 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004860 },
4861
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004862 {
4863 .vendor = "Numonyx",
4864 .name = "M25PE20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004865 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004866 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00004867 .model_id = ST_M25PE20,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004868 .total_size = 256,
4869 .page_size = 256,
4870 .tested = TEST_UNTESTED,
4871 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004872 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00004873 .block_erasers =
4874 {
4875 {
4876 .eraseblocks = { {4 * 1024, 64} },
4877 .block_erase = spi_block_erase_20,
4878 }, {
4879 .eraseblocks = { {64 * 1024, 4} },
4880 .block_erase = spi_block_erase_d8,
4881 }, {
4882 .eraseblocks = { {256 * 1024, 1} },
4883 .block_erase = spi_block_erase_c7,
4884 }
4885 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004886 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004887 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004888 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004889 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004890 },
4891
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004892 {
4893 .vendor = "Numonyx",
4894 .name = "M25PE40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004895 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004896 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00004897 .model_id = ST_M25PE40,
Sean Nelson5643c072010-01-19 03:23:07 +00004898 .total_size = 512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004899 .page_size = 256,
4900 .tested = TEST_UNTESTED,
4901 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004902 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00004903 .block_erasers =
4904 {
4905 {
4906 .eraseblocks = { {4 * 1024, 128} },
4907 .block_erase = spi_block_erase_20,
4908 }, {
4909 .eraseblocks = { {64 * 1024, 8} },
4910 .block_erase = spi_block_erase_d8,
4911 }, {
4912 .eraseblocks = { {512 * 1024, 1} },
4913 .block_erase = spi_block_erase_c7,
4914 }
4915 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004916 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004917 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004918 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004919 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004920 },
4921
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004922 {
4923 .vendor = "Numonyx",
4924 .name = "M25PE80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004925 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004926 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00004927 .model_id = ST_M25PE80,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004928 .total_size = 1024,
4929 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004930 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004931 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004932 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00004933 .block_erasers =
4934 {
4935 {
4936 .eraseblocks = { {4 * 1024, 256} },
4937 .block_erase = spi_block_erase_20,
4938 }, {
4939 .eraseblocks = { {64 * 1024, 16} },
4940 .block_erase = spi_block_erase_d8,
4941 }, {
4942 .eraseblocks = { {1024 * 1024, 1} },
4943 .block_erase = spi_block_erase_c7,
4944 }
4945 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004946 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004947 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004948 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004949 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004950 },
4951
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004952 {
4953 .vendor = "Numonyx",
4954 .name = "M25PE16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004955 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004956 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00004957 .model_id = ST_M25PE16,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004958 .total_size = 2048,
4959 .page_size = 256,
4960 .tested = TEST_UNTESTED,
4961 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004962 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00004963 .block_erasers =
4964 {
4965 {
4966 .eraseblocks = { {4 * 1024, 512} },
4967 .block_erase = spi_block_erase_20,
4968 }, {
4969 .eraseblocks = { {64 * 1024, 32} },
4970 .block_erase = spi_block_erase_d8,
4971 }, {
4972 .eraseblocks = { {2 * 1024 * 1024, 1} },
4973 .block_erase = spi_block_erase_c7,
4974 }
4975 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004976 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004977 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004978 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004979 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004980 },
4981
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004982 {
4983 .vendor = "PMC",
4984 .name = "Pm25LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004985 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004986 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004987 .model_id = PMC_PM25LV010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004988 .total_size = 128,
4989 .page_size = 256,
4990 .tested = TEST_UNTESTED,
4991 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004992 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00004993 .block_erasers =
4994 {
4995 {
4996 .eraseblocks = { {4 * 1024, 32} },
4997 .block_erase = spi_block_erase_d7,
4998 }, {
4999 .eraseblocks = { {32 * 1024, 4} },
5000 .block_erase = spi_block_erase_d8,
5001 }, {
5002 .eraseblocks = { {128 * 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 Zakuleccbe370e2011-06-03 07:26:31 +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 = "Pm25LV016B",
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_PM25LV016B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005018 .total_size = 2048,
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, 512} },
5027 .block_erase = spi_block_erase_d7,
5028 }, {
5029 .eraseblocks = { {4 * 1024, 512} },
5030 .block_erase = spi_block_erase_20,
5031 }, {
5032 .eraseblocks = { {64 * 1024, 32} },
5033 .block_erase = spi_block_erase_d8,
5034 }, {
5035 .eraseblocks = { {2 * 1024 * 1024, 1} },
5036 .block_erase = spi_block_erase_60,
5037 }, {
5038 .eraseblocks = { {2 * 1024 * 1024, 1} },
5039 .block_erase = spi_block_erase_c7,
5040 }
5041 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005042 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005043 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005044 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005045 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005046 },
5047
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005048 {
5049 .vendor = "PMC",
5050 .name = "Pm25LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005051 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005052 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005053 .model_id = PMC_PM25LV020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005054 .total_size = 256,
5055 .page_size = 256,
5056 .tested = TEST_UNTESTED,
5057 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005058 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005059 .block_erasers =
5060 {
5061 {
5062 .eraseblocks = { {4 * 1024, 64} },
5063 .block_erase = spi_block_erase_d7,
5064 }, {
5065 .eraseblocks = { {64 * 1024, 4} },
5066 .block_erase = spi_block_erase_d8,
5067 }, {
5068 .eraseblocks = { {256 * 1024, 1} },
5069 .block_erase = spi_block_erase_c7,
5070 }
5071 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005072 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005073 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005074 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005075 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005076 },
5077
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005078 {
5079 .vendor = "PMC",
5080 .name = "Pm25LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005081 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005082 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005083 .model_id = PMC_PM25LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005084 .total_size = 512,
5085 .page_size = 256,
Stefan Tauner716e0982011-07-25 20:38:52 +00005086 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005087 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005088 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005089 .block_erasers =
5090 {
5091 {
5092 .eraseblocks = { {4 * 1024, 128} },
5093 .block_erase = spi_block_erase_d7,
5094 }, {
5095 .eraseblocks = { {64 * 1024, 8} },
5096 .block_erase = spi_block_erase_d8,
5097 }, {
5098 .eraseblocks = { {512 * 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 = "Pm25LV080B",
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_PM25LV080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005114 .total_size = 1024,
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, 256} },
5123 .block_erase = spi_block_erase_d7,
5124 }, {
5125 .eraseblocks = { {4 * 1024, 256} },
5126 .block_erase = spi_block_erase_20,
5127 }, {
5128 .eraseblocks = { {64 * 1024, 16} },
5129 .block_erase = spi_block_erase_d8,
5130 }, {
5131 .eraseblocks = { {1024 * 1024, 1} },
5132 .block_erase = spi_block_erase_60,
5133 }, {
5134 .eraseblocks = { {1024 * 1024, 1} },
5135 .block_erase = spi_block_erase_c7,
5136 }
5137 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005138 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005139 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005140 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005141 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005142 },
5143
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005144 {
5145 .vendor = "PMC",
5146 .name = "Pm25LV512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005147 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005148 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005149 .model_id = PMC_PM25LV512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005150 .total_size = 64,
5151 .page_size = 256,
5152 .tested = TEST_UNTESTED,
5153 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005154 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005155 .block_erasers =
5156 {
5157 {
5158 .eraseblocks = { {4 * 1024, 16} },
5159 .block_erase = spi_block_erase_d7,
5160 }, {
5161 .eraseblocks = { {32 * 1024, 2} },
5162 .block_erase = spi_block_erase_d8,
5163 }, {
5164 .eraseblocks = { {64 * 1024, 1} },
5165 .block_erase = spi_block_erase_c7,
5166 }
5167 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005168 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005169 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005170 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005171 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005172 },
5173
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005174 {
5175 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00005176 .name = "Pm29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005177 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005178 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005179 .model_id = PMC_PM29F002T,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005180 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00005181 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005182 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005183 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +00005184 .probe = probe_jedec,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005185 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00005186 .block_erasers =
5187 {
5188 {
5189 .eraseblocks = {
5190 {128 * 1024, 1},
5191 {96 * 1024, 1},
5192 {8 * 1024, 2},
5193 {16 * 1024, 1},
5194 },
Sean Nelson35727f72010-01-28 23:55:12 +00005195 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00005196 }, {
5197 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005198 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00005199 },
5200 },
Sean Nelson35727f72010-01-28 23:55:12 +00005201 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005202 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005203 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005204 },
5205
5206 {
5207 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00005208 .name = "Pm29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005209 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005210 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005211 .model_id = PMC_PM29F002B,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005212 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00005213 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005214 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005215 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00005216 .probe = probe_jedec,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005217 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00005218 .block_erasers =
5219 {
5220 {
5221 .eraseblocks = {
5222 {16 * 1024, 1},
5223 {8 * 1024, 2},
5224 {96 * 1024, 1},
5225 {128 * 1024, 1},
5226 },
Sean Nelson35727f72010-01-28 23:55:12 +00005227 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00005228 }, {
5229 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005230 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00005231 },
5232 },
Sean Nelson35727f72010-01-28 23:55:12 +00005233 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005234 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005235 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005236 },
5237
5238 {
5239 .vendor = "PMC",
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00005240 .name = "Pm39LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005241 .bustype = BUS_PARALLEL,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00005242 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005243 .model_id = PMC_PM39F010, /* Pm39LV010 and Pm39F010 have identical IDs but different voltage */
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00005244 .total_size = 128,
5245 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00005246 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005247 .tested = TEST_OK_PRE,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00005248 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005249 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson5643c072010-01-19 03:23:07 +00005250 .block_erasers =
5251 {
5252 {
5253 .eraseblocks = { {4 * 1024, 32} },
5254 .block_erase = erase_sector_jedec,
5255 }, {
5256 .eraseblocks = { {64 * 1024, 2} },
5257 .block_erase = erase_block_jedec,
5258 }, {
5259 .eraseblocks = { {128 * 1024, 1} },
5260 .block_erase = erase_chip_block_jedec,
5261 }
5262 },
Sean Nelson35727f72010-01-28 23:55:12 +00005263 .write = write_jedec_1,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00005264 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005265 .voltage = {2700, 3600},
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00005266 },
5267
5268 {
5269 .vendor = "PMC",
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005270 .name = "Pm39LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005271 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005272 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005273 .model_id = PMC_PM39LV020,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005274 .total_size = 256,
5275 .page_size = 4096,
5276 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
5277 .tested = TEST_UNTESTED,
5278 .probe = probe_jedec,
5279 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5280 .block_erasers =
5281 {
5282 {
5283 .eraseblocks = { {4 * 1024, 64} },
5284 .block_erase = erase_sector_jedec,
5285 }, {
5286 .eraseblocks = { {64 * 1024, 4} },
5287 .block_erase = erase_block_jedec,
5288 }, {
5289 .eraseblocks = { {256 * 1024, 1} },
5290 .block_erase = erase_chip_block_jedec,
5291 }
5292 },
5293 .write = write_jedec_1,
5294 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005295 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005296 },
5297
5298 {
5299 .vendor = "PMC",
5300 .name = "Pm39LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005301 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005302 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005303 .model_id = PMC_PM39LV040,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005304 .total_size = 512,
5305 .page_size = 4096,
5306 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
5307 .tested = TEST_UNTESTED,
5308 .probe = probe_jedec,
5309 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5310 .block_erasers =
5311 {
5312 {
5313 .eraseblocks = { {4 * 1024, 128} },
5314 .block_erase = erase_sector_jedec,
5315 }, {
5316 .eraseblocks = { {64 * 1024, 8} },
5317 .block_erase = erase_block_jedec,
5318 }, {
5319 .eraseblocks = { {512 * 1024, 1} },
5320 .block_erase = erase_chip_block_jedec,
5321 }
5322 },
5323 .write = write_jedec_1,
5324 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005325 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005326 },
5327
5328 {
5329 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005330 .name = "Pm49FL002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005331 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005332 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005333 .model_id = PMC_PM49FL002,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005334 .total_size = 256,
5335 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005336 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunerd06d9412011-06-12 19:47:55 +00005337 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00005338 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005339 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00005340 .block_erasers =
5341 {
5342 {
5343 .eraseblocks = { {4 * 1024, 64} },
5344 .block_erase = erase_sector_jedec,
5345 }, {
5346 .eraseblocks = { {16 * 1024, 16} },
5347 .block_erase = erase_block_jedec,
5348 }, {
5349 .eraseblocks = { {256 * 1024, 1} },
5350 .block_erase = erase_chip_block_jedec,
5351 }
5352 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00005353 .unlock = unlock_49fl00x,
Sean Nelson36172342010-02-27 18:01:15 +00005354 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005355 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005356 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005357 },
5358
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005359 {
5360 .vendor = "PMC",
5361 .name = "Pm49FL004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005362 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005363 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005364 .model_id = PMC_PM49FL004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005365 .total_size = 512,
5366 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005367 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00005368 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00005369 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005370 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00005371 .block_erasers =
5372 {
5373 {
5374 .eraseblocks = { {4 * 1024, 128} },
5375 .block_erase = erase_sector_jedec,
5376 }, {
5377 .eraseblocks = { {64 * 1024, 8} },
5378 .block_erase = erase_block_jedec,
5379 }, {
5380 .eraseblocks = { {512 * 1024, 1} },
5381 .block_erase = erase_chip_block_jedec,
5382 }
5383 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00005384 .unlock = unlock_49fl00x,
Sean Nelson36172342010-02-27 18:01:15 +00005385 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005386 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005387 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005388 },
5389
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005390 {
Sean Nelsond70b09c2009-11-24 02:11:08 +00005391 .vendor = "Sanyo",
5392 .name = "LF25FW203A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005393 .bustype = BUS_SPI,
Sean Nelsond70b09c2009-11-24 02:11:08 +00005394 .manufacture_id = SANYO_ID,
5395 .model_id = SANYO_LE25FW203A,
5396 .total_size = 2048,
5397 .page_size = 256,
5398 .tested = TEST_UNTESTED,
5399 .probe = probe_spi_rdid,
5400 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005401 .block_erasers =
5402 {
5403 {
5404 .eraseblocks = { {64 * 1024, 32} },
5405 .block_erase = spi_block_erase_d8,
5406 }, {
5407 .eraseblocks = { {2 * 1024 * 1024, 1} },
5408 .block_erase = spi_block_erase_c7,
5409 }
5410 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005411 .unlock = spi_disable_blockprotect,
Sean Nelsond70b09c2009-11-24 02:11:08 +00005412 .write = spi_chip_write_256,
5413 .read = spi_chip_read,
5414 },
5415
5416 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005417 .vendor = "Sharp",
Mattias Mattssonfca3b012011-08-25 22:44:11 +00005418 .name = "LH28F008BJT-BTLZ1",
5419 .bustype = BUS_PARALLEL,
5420 .manufacture_id = SHARP_ID,
5421 .model_id = SHARP_LH28F008BJxxPB,
5422 .total_size = 1024,
5423 .page_size = 64 * 1024,
5424 .tested = TEST_OK_PREW,
5425 .probe = probe_82802ab,
5426 .probe_timing = TIMING_ZERO,
5427 .block_erasers =
5428 {
5429 {
5430 .eraseblocks = {
5431 {8 * 1024, 8},
5432 {64 * 1024, 15}
5433 },
5434 .block_erase = erase_block_82802ab,
5435 }, {
5436 .eraseblocks = { {1024 * 1024, 1} },
5437 .block_erase = erase_sector_49lfxxxc,
5438 }
5439 },
5440 .unlock = unlock_lh28f008bjt,
5441 .write = write_82802ab,
5442 .read = read_memmapped,
5443 .voltage = {2700, 3600},
5444 },
5445
5446 {
5447 .vendor = "Sharp",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005448 .name = "LHF00L04",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005449 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005450 .manufacture_id = SHARP_ID,
5451 .model_id = SHARP_LHF00L04,
5452 .total_size = 1024,
5453 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005454 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005455 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005456 .probe = probe_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00005457 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00005458 .block_erasers =
5459 {
5460 {
5461 .eraseblocks = {
5462 {64 * 1024, 15},
5463 {8 * 1024, 8}
5464 },
Sean Nelson28accc22010-03-19 18:47:06 +00005465 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00005466 }, {
5467 .eraseblocks = {
5468 {1024 * 1024, 1}
5469 },
Sean Nelson51c83fb2010-01-20 20:55:53 +00005470 .block_erase = NULL, /* 30 D0, only in A/A mux mode */
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00005471 },
5472 },
Sean Nelson28accc22010-03-19 18:47:06 +00005473 .unlock = unlock_82802ab,
5474 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005475 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005476 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005477 },
5478
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005479 {
5480 .vendor = "Spansion",
Rudy Hostf4e57772010-11-29 00:37:49 +00005481 .name = "S25FL004A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005482 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00005483 .manufacture_id = SPANSION_ID,
5484 .model_id = SPANSION_S25FL004A,
5485 .total_size = 512,
5486 .page_size = 256,
5487 .tested = TEST_UNTESTED,
5488 .probe = probe_spi_rdid,
5489 .probe_timing = TIMING_ZERO,
5490 .block_erasers =
5491 {
5492 {
5493 .eraseblocks = { {64 * 1024, 8} },
5494 .block_erase = spi_block_erase_d8,
5495 }, {
5496 .eraseblocks = { {512 * 1024, 1} },
5497 .block_erase = spi_block_erase_c7,
5498 }
5499 },
5500 .unlock = spi_disable_blockprotect,
5501 .write = spi_chip_write_256,
5502 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005503 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00005504 },
5505
5506 {
5507 .vendor = "Spansion",
Michael Karcher23ff4602010-01-12 23:29:30 +00005508 .name = "S25FL008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005509 .bustype = BUS_SPI,
Michael Karcher23ff4602010-01-12 23:29:30 +00005510 .manufacture_id = SPANSION_ID,
5511 .model_id = SPANSION_S25FL008A,
5512 .total_size = 1024,
5513 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005514 .tested = TEST_OK_PRE,
Michael Karcher23ff4602010-01-12 23:29:30 +00005515 .probe = probe_spi_rdid,
5516 .probe_timing = TIMING_ZERO,
Michael Karcher23ff4602010-01-12 23:29:30 +00005517 .block_erasers =
5518 {
5519 {
5520 .eraseblocks = { {64 * 1024, 16} },
5521 .block_erase = spi_block_erase_d8,
5522 }, {
5523 .eraseblocks = { {1024 * 1024, 1} },
5524 .block_erase = spi_block_erase_c7,
5525 }
5526 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005527 .unlock = spi_disable_blockprotect,
Michael Karcher23ff4602010-01-12 23:29:30 +00005528 .write = spi_chip_write_256,
5529 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005530 .voltage = {2700, 3600},
Michael Karcher23ff4602010-01-12 23:29:30 +00005531 },
5532
5533 {
5534 .vendor = "Spansion",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005535 .name = "S25FL016A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005536 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005537 .manufacture_id = SPANSION_ID,
5538 .model_id = SPANSION_S25FL016A,
5539 .total_size = 2048,
5540 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005541 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005542 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005543 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005544 .block_erasers =
5545 {
5546 {
5547 .eraseblocks = { {64 * 1024, 32} },
5548 .block_erase = spi_block_erase_d8,
5549 }, {
5550 .eraseblocks = { {2 * 1024 * 1024, 1} },
5551 .block_erase = spi_block_erase_c7,
5552 }
5553 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005554 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005555 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005556 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005557 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005558 },
5559
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005560 {
Rudy Hostf4e57772010-11-29 00:37:49 +00005561 .vendor = "Spansion",
5562 .name = "S25FL032A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005563 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00005564 .manufacture_id = SPANSION_ID,
5565 .model_id = SPANSION_S25FL032A,
5566 .total_size = 4096,
5567 .page_size = 256,
5568 .tested = TEST_UNTESTED,
5569 .probe = probe_spi_rdid,
5570 .probe_timing = TIMING_ZERO,
5571 .block_erasers =
5572 {
5573 {
5574 .eraseblocks = { {64 * 1024, 64} },
5575 .block_erase = spi_block_erase_d8,
5576 }, {
5577 .eraseblocks = { {4 * 1024 * 1024, 1} },
5578 .block_erase = spi_block_erase_c7,
5579 }
5580 },
5581 .unlock = spi_disable_blockprotect,
5582 .write = spi_chip_write_256,
5583 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005584 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00005585 },
5586
5587 {
5588 .vendor = "Spansion",
5589 .name = "S25FL064A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005590 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00005591 .manufacture_id = SPANSION_ID,
5592 .model_id = SPANSION_S25FL064A,
5593 .total_size = 8192,
5594 .page_size = 256,
5595 .tested = TEST_OK_PREW,
5596 .probe = probe_spi_rdid,
5597 .probe_timing = TIMING_ZERO,
5598 .block_erasers =
5599 {
5600 {
5601 .eraseblocks = { {64 * 1024, 128} },
5602 .block_erase = spi_block_erase_d8,
5603 }, {
5604 .eraseblocks = { {8 * 1024 * 1024, 1} },
5605 .block_erase = spi_block_erase_c7,
5606 }
5607 },
5608 .unlock = spi_disable_blockprotect,
5609 .write = spi_chip_write_256,
5610 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005611 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00005612 },
5613
5614 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005615 .vendor = "SST",
Zeus Castro33670ba2011-08-17 09:50:11 +00005616 .name = "SST25LF040A",
5617 .bustype = BUS_SPI,
5618 .manufacture_id = SST_ID,
5619 .model_id = SST_SST25VF040_REMS,
5620 .total_size = 512,
5621 .page_size = 256,
Uwe Hermann4335ec82011-09-07 20:20:25 +00005622 .tested = TEST_OK_PREW,
Zeus Castro33670ba2011-08-17 09:50:11 +00005623 .probe = probe_spi_res2,
5624 .probe_timing = TIMING_ZERO,
5625 .block_erasers =
5626 {
5627 {
5628 .eraseblocks = { {4 * 1024, 128} },
5629 .block_erase = spi_block_erase_20,
5630 }, {
5631 .eraseblocks = { {32 * 1024, 16} },
5632 .block_erase = spi_block_erase_52,
5633 }, {
5634 .eraseblocks = { {512 * 1024, 1} },
5635 .block_erase = spi_block_erase_60,
5636 },
5637 },
5638 .unlock = spi_disable_blockprotect,
5639 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
5640 .read = spi_chip_read,
5641 .voltage = {3000, 3600},
5642 },
5643
5644 {
5645 .vendor = "SST",
5646 .name = "SST25LF080A",
5647 .bustype = BUS_SPI,
5648 .manufacture_id = SST_ID,
5649 .model_id = SST_SST25VF080_REMS,
5650 .total_size = 1024,
5651 .page_size = 256,
5652 .tested = TEST_UNTESTED,
5653 .probe = probe_spi_res2,
5654 .probe_timing = TIMING_ZERO,
5655 .block_erasers =
5656 {
5657 {
5658 .eraseblocks = { {4 * 1024, 256} },
5659 .block_erase = spi_block_erase_20,
5660 }, {
5661 .eraseblocks = { {32 * 1024, 32} },
5662 .block_erase = spi_block_erase_52,
5663 }, {
5664 .eraseblocks = { {1024 * 1024, 1} },
5665 .block_erase = spi_block_erase_60,
5666 },
5667 },
5668 .unlock = spi_disable_blockprotect,
5669 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
5670 .read = spi_chip_read,
5671 .voltage = {3000, 3600},
5672 },
5673
5674 {
5675 .vendor = "SST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00005676 .name = "SST25VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005677 .bustype = BUS_SPI,
Mark Marshall90021f22010-12-03 14:48:11 +00005678 .manufacture_id = SST_ID,
5679 .model_id = SST_SST25VF010_REMS,
5680 .total_size = 128,
5681 .page_size = 256,
5682 .tested = TEST_OK_PREW,
5683 .probe = probe_spi_rems,
5684 .probe_timing = TIMING_ZERO,
5685 .block_erasers =
5686 {
5687 {
5688 .eraseblocks = { {4 * 1024, 32} },
5689 .block_erase = spi_block_erase_20,
5690 }, {
5691 .eraseblocks = { {32 * 1024, 4} },
5692 .block_erase = spi_block_erase_52,
5693 }, {
5694 .eraseblocks = { {128 * 1024, 1} },
5695 .block_erase = spi_block_erase_60,
5696 },
5697 },
5698 .unlock = spi_disable_blockprotect,
5699 .write = spi_chip_write_1,
5700 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005701 .voltage = {2700, 3600},
Mark Marshall90021f22010-12-03 14:48:11 +00005702 },
5703
5704 {
5705 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005706 .name = "SST25VF016B",
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_SST25VF016B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005710 .total_size = 2048,
5711 .page_size = 256,
Mark Marshall90021f22010-12-03 14:48:11 +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, 512} },
5719 .block_erase = spi_block_erase_20,
5720 }, {
5721 .eraseblocks = { {32 * 1024, 64} },
5722 .block_erase = spi_block_erase_52,
5723 }, {
5724 .eraseblocks = { {64 * 1024, 32} },
5725 .block_erase = spi_block_erase_d8,
5726 }, {
5727 .eraseblocks = { {2 * 1024 * 1024, 1} },
5728 .block_erase = spi_block_erase_60,
5729 }, {
5730 .eraseblocks = { {2 * 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,
Joshua Roys87955bf2011-08-01 18:39:28 +00005735 .write = spi_aai_write,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005736 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005737 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005738 },
5739
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005740 {
5741 .vendor = "SST",
5742 .name = "SST25VF032B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005743 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005744 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005745 .model_id = SST_SST25VF032B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005746 .total_size = 4096,
5747 .page_size = 256,
Stefan Taunerfcf6a8c2011-05-18 01:32:00 +00005748 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005749 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005750 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00005751 .block_erasers =
5752 {
5753 {
5754 .eraseblocks = { {4 * 1024, 1024} },
5755 .block_erase = spi_block_erase_20,
5756 }, {
5757 .eraseblocks = { {32 * 1024, 128} },
5758 .block_erase = spi_block_erase_52,
5759 }, {
5760 .eraseblocks = { {64 * 1024, 64} },
5761 .block_erase = spi_block_erase_d8,
5762 }, {
5763 .eraseblocks = { {4 * 1024 * 1024, 1} },
5764 .block_erase = spi_block_erase_60,
5765 }, {
5766 .eraseblocks = { {4 * 1024 * 1024, 1} },
5767 .block_erase = spi_block_erase_c7,
5768 },
5769 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005770 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +00005771 .write = spi_aai_write,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00005772 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005773 .voltage = {2700, 3600},
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00005774 },
5775
5776 {
5777 .vendor = "SST",
Ed Swierk86f4e6d2010-07-21 15:02:22 +00005778 .name = "SST25VF064C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005779 .bustype = BUS_SPI,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00005780 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005781 .model_id = SST_SST25VF064C,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00005782 .total_size = 8192,
5783 .page_size = 256,
Stefan Tauner8179be52011-06-04 13:13:34 +00005784 .tested = TEST_OK_PREW,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00005785 .probe = probe_spi_rdid,
5786 .probe_timing = TIMING_ZERO,
5787 .block_erasers =
5788 {
5789 {
5790 .eraseblocks = { {4 * 1024, 2048} },
5791 .block_erase = spi_block_erase_20,
5792 }, {
5793 .eraseblocks = { {32 * 1024, 256} },
5794 .block_erase = spi_block_erase_52,
5795 }, {
5796 .eraseblocks = { {64 * 1024, 128} },
5797 .block_erase = spi_block_erase_d8,
5798 }, {
5799 .eraseblocks = { {8 * 1024 * 1024, 1} },
5800 .block_erase = spi_block_erase_60,
5801 }, {
5802 .eraseblocks = { {8 * 1024 * 1024, 1} },
5803 .block_erase = spi_block_erase_c7,
5804 },
5805 },
5806 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +00005807 .write = spi_chip_write_256,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00005808 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005809 .voltage = {2700, 3600},
Ed Swierk86f4e6d2010-07-21 15:02:22 +00005810 },
5811
5812 {
5813 .vendor = "SST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00005814 .name = "SST25VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005815 .bustype = BUS_SPI,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00005816 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005817 .model_id = SST_SST25VF040_REMS,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00005818 .total_size = 512,
5819 .page_size = 256,
5820 .tested = TEST_OK_PR,
5821 .probe = probe_spi_rems,
5822 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00005823 .block_erasers =
5824 {
5825 {
5826 .eraseblocks = { {4 * 1024, 128} },
5827 .block_erase = spi_block_erase_20,
5828 }, {
5829 .eraseblocks = { {32 * 1024, 16} },
5830 .block_erase = spi_block_erase_52,
5831 }, {
5832 .eraseblocks = { {512 * 1024, 1} },
5833 .block_erase = spi_block_erase_60,
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_chip_write_1, /* AAI supported, but opcode is 0xAF */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005838 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005839 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005840 },
5841
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005842 {
5843 .vendor = "SST",
5844 .name = "SST25VF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005845 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005846 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005847 .model_id = SST_SST25VF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005848 .total_size = 512,
5849 .page_size = 256,
5850 .tested = TEST_UNTESTED,
5851 .probe = probe_spi_rdid,
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,
Zheng Bao0677dff2009-02-25 08:07:33 +00005874 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005875 .voltage = {2700, 3600},
Zheng Bao0677dff2009-02-25 08:07:33 +00005876 },
5877
5878 {
5879 .vendor = "SST",
Peter Stugefd9217d2009-01-26 03:37:40 +00005880 .name = "SST25VF040B.REMS",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005881 .bustype = BUS_SPI,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005882 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005883 .model_id = SST_SST25VF040B_REMS,
Peter Stugefd9217d2009-01-26 03:37:40 +00005884 .total_size = 512,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00005885 .page_size = 256,
Peter Stugefd9217d2009-01-26 03:37:40 +00005886 .tested = TEST_OK_PR,
5887 .probe = probe_spi_rems,
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, 128} },
5893 .block_erase = spi_block_erase_20,
5894 }, {
5895 .eraseblocks = { {32 * 1024, 16} },
5896 .block_erase = spi_block_erase_52,
5897 }, {
5898 .eraseblocks = { {64 * 1024, 8} },
5899 .block_erase = spi_block_erase_d8,
5900 }, {
5901 .eraseblocks = { {512 * 1024, 1} },
5902 .block_erase = spi_block_erase_60,
5903 }, {
5904 .eraseblocks = { {512 * 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,
Peter Stugefd9217d2009-01-26 03:37:40 +00005910 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005911 .voltage = {2700, 3600},
Peter Stugefd9217d2009-01-26 03:37:40 +00005912 },
5913
5914 {
5915 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005916 .name = "SST25VF080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005917 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005918 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005919 .model_id = SST_SST25VF080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005920 .total_size = 1024,
5921 .page_size = 256,
John Schmergec965c2d2011-05-18 11:28:47 +00005922 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005923 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005924 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00005925 .block_erasers =
5926 {
5927 {
5928 .eraseblocks = { {4 * 1024, 256} },
5929 .block_erase = spi_block_erase_20,
5930 }, {
5931 .eraseblocks = { {32 * 1024, 32} },
5932 .block_erase = spi_block_erase_52,
5933 }, {
5934 .eraseblocks = { {64 * 1024, 16} },
5935 .block_erase = spi_block_erase_d8,
5936 }, {
5937 .eraseblocks = { {1024 * 1024, 1} },
5938 .block_erase = spi_block_erase_60,
5939 }, {
5940 .eraseblocks = { {1024 * 1024, 1} },
5941 .block_erase = spi_block_erase_c7,
5942 },
5943 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005944 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00005945 .write = spi_aai_write,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005946 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005947 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005948 },
5949
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005950 {
5951 .vendor = "SST",
5952 .name = "SST28SF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005953 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005954 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005955 .model_id = SST_SST28SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005956 .total_size = 512,
5957 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00005958 .feature_bits = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005959 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005960 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00005961 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00005962 .block_erasers =
5963 {
5964 {
5965 .eraseblocks = { {128, 4096} },
5966 .block_erase = erase_sector_28sf040,
5967 }, {
5968 .eraseblocks = { {512 * 1024, 1} },
5969 .block_erase = erase_chip_28sf040,
5970 }
5971 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00005972 .unlock = unprotect_28sf040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005973 .write = write_28sf040,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005974 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005975 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005976 },
5977
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005978 {
5979 .vendor = "SST",
5980 .name = "SST29EE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005981 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005982 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005983 .model_id = SST_SST29EE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005984 .total_size = 128,
5985 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00005986 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005987 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005988 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005989 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00005990 .block_erasers =
5991 {
5992 {
5993 .eraseblocks = { {128 * 1024, 1} },
5994 .block_erase = erase_chip_block_jedec,
5995 }
5996 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005997 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005998 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005999 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006000 },
6001
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006002 {
6003 .vendor = "SST",
6004 .name = "SST29LE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006005 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006006 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006007 .model_id = SST_SST29LE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006008 .total_size = 128,
6009 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00006010 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006011 .tested = TEST_UNTESTED,
6012 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006013 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006014 .block_erasers =
6015 {
6016 {
6017 .eraseblocks = { {128 * 1024, 1} },
6018 .block_erase = erase_chip_block_jedec,
6019 }
6020 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006021 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006022 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006023 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006024 },
6025
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006026 {
6027 .vendor = "SST",
6028 .name = "SST29EE020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006029 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006030 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006031 .model_id = SST_SST29EE020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006032 .total_size = 256,
6033 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00006034 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006035 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006036 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006037 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006038 .block_erasers =
6039 {
6040 {
6041 .eraseblocks = { {256 * 1024, 1} },
6042 .block_erase = erase_chip_block_jedec,
6043 }
6044 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006045 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006046 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006047 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006048 },
6049
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006050 {
6051 .vendor = "SST",
6052 .name = "SST29LE020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006053 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006054 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006055 .model_id = SST_SST29LE020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006056 .total_size = 256,
6057 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00006058 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006059 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006060 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006061 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006062 .block_erasers =
6063 {
6064 {
6065 .eraseblocks = { {256 * 1024, 1} },
6066 .block_erase = erase_chip_block_jedec,
6067 }
6068 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006069 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006070 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006071 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006072 },
6073
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006074 {
6075 .vendor = "SST",
Uwe Hermann48da3f92010-01-23 15:15:19 +00006076 .name = "SST39SF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006077 .bustype = BUS_PARALLEL,
Uwe Hermann48da3f92010-01-23 15:15:19 +00006078 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006079 .model_id = SST_SST39SF512,
Uwe Hermann48da3f92010-01-23 15:15:19 +00006080 .total_size = 64,
6081 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006082 .feature_bits = FEATURE_EITHER_RESET,
Idwer Vollering7913fb42011-03-07 15:32:58 +00006083 .tested = TEST_OK_PREW,
Uwe Hermann48da3f92010-01-23 15:15:19 +00006084 .probe = probe_jedec,
6085 .probe_timing = 1, /* 150 ns */
Uwe Hermann48da3f92010-01-23 15:15:19 +00006086 .block_erasers =
6087 {
6088 {
6089 .eraseblocks = { {4 * 1024, 16} },
6090 .block_erase = erase_sector_jedec,
6091 }, {
6092 .eraseblocks = { {64 * 1024, 1} },
6093 .block_erase = erase_chip_block_jedec,
6094 }
6095 },
Sean Nelson35727f72010-01-28 23:55:12 +00006096 .write = write_jedec_1,
Uwe Hermann48da3f92010-01-23 15:15:19 +00006097 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006098 .voltage = {4500, 5500},
Uwe Hermann48da3f92010-01-23 15:15:19 +00006099 },
6100
6101 {
6102 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006103 .name = "SST39SF010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006104 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006105 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006106 .model_id = SST_SST39SF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006107 .total_size = 128,
6108 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006109 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00006110 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006111 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006112 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006113 .block_erasers =
6114 {
6115 {
6116 .eraseblocks = { {4 * 1024, 32} },
6117 .block_erase = erase_sector_jedec,
6118 }, {
6119 .eraseblocks = { {128 * 1024, 1} },
6120 .block_erase = erase_chip_block_jedec,
6121 }
6122 },
Sean Nelson35727f72010-01-28 23:55:12 +00006123 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006124 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006125 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006126 },
6127
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006128 {
6129 .vendor = "SST",
6130 .name = "SST39SF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006131 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006132 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006133 .model_id = SST_SST39SF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006134 .total_size = 256,
6135 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006136 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann19f46f22011-06-18 22:56:14 +00006137 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006138 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006139 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006140 .block_erasers =
6141 {
6142 {
6143 .eraseblocks = { {4 * 1024, 64} },
6144 .block_erase = erase_sector_jedec,
6145 }, {
6146 .eraseblocks = { {256 * 1024, 1} },
6147 .block_erase = erase_chip_block_jedec,
6148 }
6149 },
Sean Nelson35727f72010-01-28 23:55:12 +00006150 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006151 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006152 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006153 },
6154
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006155 {
6156 .vendor = "SST",
6157 .name = "SST39SF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006158 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006159 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006160 .model_id = SST_SST39SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006161 .total_size = 512,
6162 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006163 .feature_bits = FEATURE_EITHER_RESET,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006164 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006165 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006166 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006167 .block_erasers =
6168 {
6169 {
6170 .eraseblocks = { {4 * 1024, 128} },
6171 .block_erase = erase_sector_jedec,
6172 }, {
6173 .eraseblocks = { {512 * 1024, 1} },
6174 .block_erase = erase_chip_block_jedec,
6175 }
6176 },
Sean Nelson35727f72010-01-28 23:55:12 +00006177 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006178 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006179 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006180 },
6181
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006182 {
6183 .vendor = "SST",
6184 .name = "SST39VF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006185 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006186 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006187 .model_id = SST_SST39VF512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006188 .total_size = 64,
6189 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006190 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006191 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006192 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006193 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006194 .block_erasers =
6195 {
6196 {
6197 .eraseblocks = { {4 * 1024, 16} },
6198 .block_erase = erase_sector_jedec,
6199 }, {
6200 .eraseblocks = { {64 * 1024, 1} },
6201 .block_erase = erase_chip_block_jedec,
6202 }
6203 },
Sean Nelson35727f72010-01-28 23:55:12 +00006204 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006205 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006206 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006207 },
6208
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006209 {
6210 .vendor = "SST",
6211 .name = "SST39VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006212 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006213 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006214 .model_id = SST_SST39VF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006215 .total_size = 128,
6216 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006217 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006218 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006219 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006220 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006221 .block_erasers =
6222 {
6223 {
6224 .eraseblocks = { {4 * 1024, 32} },
6225 .block_erase = erase_sector_jedec,
6226 }, {
6227 .eraseblocks = { {128 * 1024, 1} },
6228 .block_erase = erase_chip_block_jedec,
6229 }
6230 },
Sean Nelson35727f72010-01-28 23:55:12 +00006231 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006232 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006233 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006234 },
6235
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006236 {
6237 .vendor = "SST",
6238 .name = "SST39VF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006239 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006240 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006241 .model_id = SST_SST39VF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006242 .total_size = 256,
6243 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006244 .feature_bits = FEATURE_EITHER_RESET,
6245 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006246 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006247 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006248 .block_erasers =
6249 {
6250 {
6251 .eraseblocks = { {4 * 1024, 64} },
6252 .block_erase = erase_sector_jedec,
6253 }, {
6254 .eraseblocks = { {256 * 1024, 1} },
6255 .block_erase = erase_chip_block_jedec,
6256 }
6257 },
Sean Nelson35727f72010-01-28 23:55:12 +00006258 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006259 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006260 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006261 },
6262
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006263 {
6264 .vendor = "SST",
6265 .name = "SST39VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006266 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006267 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006268 .model_id = SST_SST39VF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006269 .total_size = 512,
6270 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006271 .feature_bits = FEATURE_EITHER_RESET,
6272 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006273 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006274 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006275 .block_erasers =
6276 {
6277 {
6278 .eraseblocks = { {4 * 1024, 128} },
6279 .block_erase = erase_sector_jedec,
6280 }, {
6281 .eraseblocks = { {512 * 1024, 1} },
6282 .block_erase = erase_chip_block_jedec,
6283 }
6284 },
Sean Nelson35727f72010-01-28 23:55:12 +00006285 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006286 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006287 .voltage = {2700, 3600},
Carl-Daniel Hailfinger90eff152008-12-08 23:51:45 +00006288 },
FENG yu ningff692fb2008-12-08 18:15:10 +00006289
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006290 {
6291 .vendor = "SST",
Peter Stuge8440cc02009-01-25 23:55:12 +00006292 .name = "SST39VF080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006293 .bustype = BUS_PARALLEL,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006294 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006295 .model_id = SST_SST39VF080,
Peter Stuge8440cc02009-01-25 23:55:12 +00006296 .total_size = 1024,
6297 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006298 .feature_bits = FEATURE_EITHER_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +00006299 .tested = TEST_UNTESTED,
6300 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006301 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006302 .block_erasers =
6303 {
6304 {
6305 .eraseblocks = { {4 * 1024, 256} },
6306 .block_erase = erase_sector_jedec,
6307 }, {
6308 .eraseblocks = { {64 * 1024, 16} },
6309 .block_erase = erase_block_jedec,
6310 }, {
6311 .eraseblocks = { {1024 * 1024, 1} },
6312 .block_erase = erase_chip_block_jedec,
6313 }
6314 },
Sean Nelson35727f72010-01-28 23:55:12 +00006315 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006316 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006317 .voltage = {2700, 3600},
Peter Stuge8440cc02009-01-25 23:55:12 +00006318 },
6319
6320 {
6321 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006322 .name = "SST49LF002A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006323 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006324 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006325 .model_id = SST_SST49LF002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006326 .total_size = 256,
6327 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006328 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00006329 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006330 .probe = probe_jedec,
6331 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006332 .block_erasers =
6333 {
6334 {
6335 .eraseblocks = { {4 * 1024, 64} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006336 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006337 }, {
6338 .eraseblocks = { {16 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006339 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006340 }, {
6341 .eraseblocks = { {256 * 1024, 1} },
6342 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
6343 }
6344 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006345 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006346 .unlock = unlock_sst_fwhub,
6347 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006348 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006349 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006350 },
6351
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006352 {
6353 .vendor = "SST",
6354 .name = "SST49LF003A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006355 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006356 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006357 .model_id = SST_SST49LF003A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006358 .total_size = 384,
6359 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006360 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Peter Lemenkov45835c42009-09-25 01:09:18 +00006361 .tested = TEST_OK_PR,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006362 .probe = probe_jedec,
6363 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006364 .block_erasers =
6365 {
6366 {
6367 .eraseblocks = { {4 * 1024, 96} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006368 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006369 }, {
6370 .eraseblocks = { {64 * 1024, 6} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006371 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006372 }, {
6373 .eraseblocks = { {384 * 1024, 1} },
6374 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
6375 }
6376 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006377 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006378 .unlock = unlock_sst_fwhub,
6379 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006380 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006381 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006382 },
6383
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006384 {
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00006385 /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB)
6386 * and is only honored for 64k block erase, but not 4k sector erase.
6387 */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006388 .vendor = "SST",
6389 .name = "SST49LF004A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006390 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006391 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006392 .model_id = SST_SST49LF004A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006393 .total_size = 512,
6394 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006395 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00006396 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006397 .probe = probe_jedec,
6398 .probe_timing = 1, /* 150 ns */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00006399 .block_erasers =
6400 {
6401 {
6402 .eraseblocks = { {4 * 1024, 128} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006403 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00006404 }, {
6405 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006406 .block_erase = erase_block_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00006407 }, {
6408 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson51c83fb2010-01-20 20:55:53 +00006409 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00006410 },
6411 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006412 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006413 .unlock = unlock_sst_fwhub,
6414 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006415 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006416 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006417 },
6418
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006419 {
6420 .vendor = "SST",
6421 .name = "SST49LF004C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006422 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006423 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006424 .model_id = SST_SST49LF004C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006425 .total_size = 512,
6426 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006427 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006428 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006429 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00006430 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006431 .block_erasers =
6432 {
6433 {
6434 .eraseblocks = { {4 * 1024, 128} },
6435 .block_erase = erase_sector_49lfxxxc,
6436 }, {
6437 .eraseblocks = {
6438 {64 * 1024, 7},
6439 {32 * 1024, 1},
6440 {8 * 1024, 2},
6441 {16 * 1024, 1},
6442 },
Sean Nelson69e58112010-03-23 17:10:28 +00006443 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006444 }
6445 },
Sean Nelson69e58112010-03-23 17:10:28 +00006446 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00006447 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006448 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006449 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006450 },
6451
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006452 {
6453 .vendor = "SST",
6454 .name = "SST49LF008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006455 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006456 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006457 .model_id = SST_SST49LF008A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006458 .total_size = 1024,
6459 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006460 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006461 .tested = TEST_OK_PRE,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006462 .probe = probe_jedec,
6463 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006464 .block_erasers =
6465 {
6466 {
6467 .eraseblocks = { {4 * 1024, 256} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006468 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006469 }, {
6470 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006471 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006472 }, {
6473 .eraseblocks = { {1024 * 1024, 1} },
6474 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
6475 }
6476 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006477 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006478 .unlock = unlock_sst_fwhub,
6479 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006480 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006481 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006482 },
6483
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006484 {
6485 .vendor = "SST",
6486 .name = "SST49LF008C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006487 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006488 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006489 .model_id = SST_SST49LF008C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006490 .total_size = 1024,
6491 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006492 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006493 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006494 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00006495 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006496 .block_erasers =
6497 {
6498 {
6499 .eraseblocks = { {4 * 1024, 256} },
6500 .block_erase = erase_sector_49lfxxxc,
6501 }, {
6502 .eraseblocks = {
6503 {64 * 1024, 15},
6504 {32 * 1024, 1},
6505 {8 * 1024, 2},
6506 {16 * 1024, 1},
6507 },
Sean Nelson69e58112010-03-23 17:10:28 +00006508 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006509 }
6510 },
Sean Nelson69e58112010-03-23 17:10:28 +00006511 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00006512 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006513 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006514 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006515 },
6516
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006517 {
6518 .vendor = "SST",
6519 .name = "SST49LF016C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006520 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006521 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006522 .model_id = SST_SST49LF016C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006523 .total_size = 2048,
6524 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006525 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006526 .tested = TEST_OK_PR,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006527 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00006528 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006529 .block_erasers =
6530 {
6531 {
6532 .eraseblocks = { {4 * 1024, 512} },
6533 .block_erase = erase_sector_49lfxxxc,
6534 }, {
6535 .eraseblocks = {
6536 {64 * 1024, 31},
6537 {32 * 1024, 1},
6538 {8 * 1024, 2},
6539 {16 * 1024, 1},
6540 },
Sean Nelson69e58112010-03-23 17:10:28 +00006541 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006542 }
6543 },
Sean Nelson69e58112010-03-23 17:10:28 +00006544 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00006545 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006546 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006547 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006548 },
6549
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006550 {
6551 .vendor = "SST",
6552 .name = "SST49LF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006553 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006554 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006555 .model_id = SST_SST49LF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006556 .total_size = 256,
6557 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006558 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +00006559 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006560 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006561 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006562 .block_erasers =
6563 {
6564 {
6565 .eraseblocks = { {4 * 1024, 64} },
6566 .block_erase = erase_sector_jedec,
6567 }, {
6568 .eraseblocks = { {16 * 1024, 16} },
6569 .block_erase = erase_block_jedec,
6570 }, {
6571 .eraseblocks = { {256 * 1024, 1} },
6572 .block_erase = NULL,
6573 }
6574 },
Sean Nelson35727f72010-01-28 23:55:12 +00006575 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006576 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006577 .voltage = {3000, 3600},
Sven Schnellec208dfb2009-01-07 12:35:09 +00006578 },
6579
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006580 {
6581 .vendor = "SST",
6582 .name = "SST49LF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006583 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006584 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006585 .model_id = SST_SST49LF020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006586 .total_size = 256,
Carl-Daniel Hailfingerda654322009-07-23 01:44:38 +00006587 .page_size = 4 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006588 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006589 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006590 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006591 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006592 .block_erasers =
6593 {
6594 {
6595 .eraseblocks = { {4 * 1024, 64} },
6596 .block_erase = erase_sector_jedec,
6597 }, {
6598 .eraseblocks = { {16 * 1024, 16} },
6599 .block_erase = erase_block_jedec,
6600 }, {
6601 .eraseblocks = { {256 * 1024, 1} },
6602 .block_erase = NULL,
6603 }
6604 },
Sean Nelson35727f72010-01-28 23:55:12 +00006605 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006606 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006607 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006608 },
6609
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006610 {
6611 .vendor = "SST",
6612 .name = "SST49LF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006613 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006614 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006615 .model_id = SST_SST49LF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006616 .total_size = 512,
6617 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006618 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006619 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006620 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006621 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006622 .block_erasers =
6623 {
6624 {
6625 .eraseblocks = { {4 * 1024, 128} },
6626 .block_erase = erase_sector_jedec,
6627 }, {
6628 .eraseblocks = { {64 * 1024, 8} },
6629 .block_erase = erase_block_jedec,
6630 }, {
6631 .eraseblocks = { {512 * 1024, 1} },
6632 .block_erase = NULL,
6633 }
6634 },
Sean Nelson35727f72010-01-28 23:55:12 +00006635 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006636 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006637 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006638 },
6639
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006640 {
6641 .vendor = "SST",
6642 .name = "SST49LF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006643 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006644 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006645 .model_id = SST_SST49LF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006646 .total_size = 512,
6647 .page_size = 64 * 1024,
Joshua Roysa84b0bd2010-08-16 22:12:39 +00006648 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006649 .tested = TEST_OK_PREW,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006650 .probe = probe_jedec,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006651 .probe_timing = 1, /* 150ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006652 .block_erasers =
6653 {
6654 {
6655 .eraseblocks = { {4 * 1024, 128} },
6656 .block_erase = erase_sector_jedec,
6657 }, {
6658 .eraseblocks = { {64 * 1024, 8} },
6659 .block_erase = erase_block_jedec,
6660 }, {
6661 .eraseblocks = { {512 * 1024, 1} },
6662 .block_erase = NULL,
6663 }
6664 },
Joshua Roysa84b0bd2010-08-16 22:12:39 +00006665 .unlock = unlock_82802ab,
Sean Nelson35727f72010-01-28 23:55:12 +00006666 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006667 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006668 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006669 },
6670
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006671 {
6672 .vendor = "SST",
6673 .name = "SST49LF080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006674 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006675 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006676 .model_id = SST_SST49LF080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006677 .total_size = 1024,
6678 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006679 .feature_bits = FEATURE_EITHER_RESET,
Brandon Dowdyf07bf322011-03-06 18:31:11 +00006680 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006681 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00006682 .probe_timing = TIMING_FIXME,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006683 .block_erasers =
6684 {
6685 {
6686 .eraseblocks = { {4 * 1024, 256} },
6687 .block_erase = erase_sector_jedec,
6688 }, {
6689 .eraseblocks = { {64 * 1024, 16} },
6690 .block_erase = erase_block_jedec,
6691 }, {
6692 .eraseblocks = { {1024 * 1024, 1} },
6693 .block_erase = NULL,
6694 }
6695 },
Sean Nelson35727f72010-01-28 23:55:12 +00006696 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006697 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006698 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006699 },
6700
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006701 {
6702 .vendor = "SST",
6703 .name = "SST49LF160C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006704 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006705 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006706 .model_id = SST_SST49LF160C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006707 .total_size = 2048,
6708 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006709 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006710 .tested = TEST_OK_PRE,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006711 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00006712 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006713 .block_erasers =
6714 {
6715 {
6716 .eraseblocks = { {4 * 1024, 512} },
6717 .block_erase = erase_sector_49lfxxxc,
6718 }, {
6719 .eraseblocks = {
6720 {64 * 1024, 31},
6721 {32 * 1024, 1},
6722 {8 * 1024, 2},
6723 {16 * 1024, 1},
6724 },
Sean Nelson69e58112010-03-23 17:10:28 +00006725 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006726 }
6727 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00006728 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00006729 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006730 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006731 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006732 },
6733
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006734 {
6735 .vendor = "ST",
6736 .name = "M25P05-A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006737 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006738 .manufacture_id = ST_ID,
6739 .model_id = ST_M25P05A,
6740 .total_size = 64,
6741 .page_size = 256,
6742 .tested = TEST_UNTESTED,
6743 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006744 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006745 .block_erasers =
6746 {
6747 {
6748 .eraseblocks = { {32 * 1024, 2} },
6749 .block_erase = spi_block_erase_d8,
6750 }, {
6751 .eraseblocks = { {64 * 1024, 1} },
6752 .block_erase = spi_block_erase_c7,
6753 }
6754 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006755 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006756 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006757 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006758 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006759 },
6760
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00006761 /* The ST M25P05 is a bit of a problem. It has the same ID as the
6762 * ST M25P05-A in RES mode, but supports only 128 byte writes instead
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00006763 * of 256 byte writes. We rely heavily on the fact that probe_spi_res1
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00006764 * only is successful if RDID does not work.
6765 */
6766 {
6767 .vendor = "ST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006768 .name = "M25P05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006769 .bustype = BUS_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00006770 .manufacture_id = 0, /* Not used. */
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00006771 .model_id = ST_M25P05_RES,
6772 .total_size = 64,
6773 .page_size = 256,
6774 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00006775 .probe = probe_spi_res1,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00006776 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006777 .block_erasers =
6778 {
6779 {
6780 .eraseblocks = { {32 * 1024, 2} },
6781 .block_erase = spi_block_erase_d8,
6782 }, {
6783 .eraseblocks = { {64 * 1024, 1} },
6784 .block_erase = spi_block_erase_c7,
6785 }
6786 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006787 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00006788 .write = spi_chip_write_1, /* 128 */
6789 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006790 .voltage = {2700, 3600},
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00006791 },
6792
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006793 {
6794 .vendor = "ST",
6795 .name = "M25P10-A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006796 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006797 .manufacture_id = ST_ID,
6798 .model_id = ST_M25P10A,
6799 .total_size = 128,
6800 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006801 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006802 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006803 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006804 .block_erasers =
6805 {
6806 {
6807 .eraseblocks = { {32 * 1024, 4} },
6808 .block_erase = spi_block_erase_d8,
6809 }, {
6810 .eraseblocks = { {128 * 1024, 1} },
6811 .block_erase = spi_block_erase_c7,
6812 }
6813 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006814 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006815 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006816 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006817 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006818 },
6819
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00006820 /* The ST M25P10 has the same problem as the M25P05. */
6821 {
6822 .vendor = "ST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006823 .name = "M25P10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006824 .bustype = BUS_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00006825 .manufacture_id = 0, /* Not used. */
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00006826 .model_id = ST_M25P10_RES,
6827 .total_size = 128,
6828 .page_size = 256,
6829 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00006830 .probe = probe_spi_res1,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00006831 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006832 .block_erasers =
6833 {
6834 {
6835 .eraseblocks = { {32 * 1024, 4} },
6836 .block_erase = spi_block_erase_d8,
6837 }, {
6838 .eraseblocks = { {128 * 1024, 1} },
6839 .block_erase = spi_block_erase_c7,
6840 }
6841 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006842 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00006843 .write = spi_chip_write_1, /* 128 */
6844 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006845 .voltage = {2700, 3600},
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00006846 },
6847
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006848 {
6849 .vendor = "ST",
6850 .name = "M25P20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006851 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006852 .manufacture_id = ST_ID,
6853 .model_id = ST_M25P20,
6854 .total_size = 256,
6855 .page_size = 256,
6856 .tested = TEST_UNTESTED,
6857 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006858 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006859 .block_erasers =
6860 {
6861 {
6862 .eraseblocks = { {64 * 1024, 4} },
6863 .block_erase = spi_block_erase_d8,
6864 }, {
6865 .eraseblocks = { {256 * 1024, 1} },
6866 .block_erase = spi_block_erase_c7,
6867 }
6868 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006869 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006870 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006871 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006872 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006873 },
6874
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006875 {
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006876 .vendor = "ST", /* Numonyx */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006877 .name = "M25P40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006878 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006879 .manufacture_id = ST_ID,
6880 .model_id = ST_M25P40,
6881 .total_size = 512,
6882 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006883 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006884 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006885 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006886 .block_erasers =
6887 {
6888 {
6889 .eraseblocks = { {64 * 1024, 8} },
6890 .block_erase = spi_block_erase_d8,
6891 }, {
6892 .eraseblocks = { {512 * 1024, 1} },
6893 .block_erase = spi_block_erase_c7,
6894 }
6895 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006896 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006897 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006898 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006899 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006900 },
6901
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006902 {
6903 .vendor = "ST",
6904 .name = "M25P40-old",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006905 .bustype = BUS_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00006906 .manufacture_id = 0, /* Not used. */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006907 .model_id = ST_M25P40_RES,
6908 .total_size = 512,
6909 .page_size = 256,
6910 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00006911 .probe = probe_spi_res1,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006912 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006913 .block_erasers =
6914 {
6915 {
6916 .eraseblocks = { {64 * 1024, 8} },
6917 .block_erase = spi_block_erase_d8,
6918 }, {
6919 .eraseblocks = { {512 * 1024, 1} },
6920 .block_erase = spi_block_erase_c7,
6921 }
6922 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006923 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006924 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006925 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00006926 },
6927
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006928 {
6929 .vendor = "ST",
6930 .name = "M25P80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006931 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006932 .manufacture_id = ST_ID,
6933 .model_id = ST_M25P80,
6934 .total_size = 1024,
6935 .page_size = 256,
Uwe Hermann19f46f22011-06-18 22:56:14 +00006936 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006937 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006938 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006939 .block_erasers =
6940 {
6941 {
6942 .eraseblocks = { {64 * 1024, 16} },
6943 .block_erase = spi_block_erase_d8,
6944 }, {
6945 .eraseblocks = { {1024 * 1024, 1} },
6946 .block_erase = spi_block_erase_c7,
6947 }
6948 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006949 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006950 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006951 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006952 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006953 },
6954
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006955 {
6956 .vendor = "ST",
6957 .name = "M25P16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006958 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006959 .manufacture_id = ST_ID,
6960 .model_id = ST_M25P16,
6961 .total_size = 2048,
6962 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006963 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006964 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006965 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006966 .block_erasers =
6967 {
6968 {
6969 .eraseblocks = { {64 * 1024, 32} },
6970 .block_erase = spi_block_erase_d8,
6971 }, {
6972 .eraseblocks = { {2 * 1024 * 1024, 1} },
6973 .block_erase = spi_block_erase_c7,
6974 }
6975 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006976 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006977 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006978 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006979 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006980 },
6981
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006982 {
6983 .vendor = "ST",
6984 .name = "M25P32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006985 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006986 .manufacture_id = ST_ID,
6987 .model_id = ST_M25P32,
6988 .total_size = 4096,
6989 .page_size = 256,
Antony Rheneus0fbba982011-05-26 14:28:51 +00006990 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006991 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006992 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00006993 .block_erasers =
6994 {
6995 {
6996 .eraseblocks = { {64 * 1024, 64} },
6997 .block_erase = spi_block_erase_d8,
6998 }, {
6999 .eraseblocks = { {4 * 1024 * 1024, 1} },
7000 .block_erase = spi_block_erase_c7,
7001 }
7002 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007003 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007004 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007005 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007006 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007007 },
7008
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007009 {
7010 .vendor = "ST",
7011 .name = "M25P64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007012 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007013 .manufacture_id = ST_ID,
7014 .model_id = ST_M25P64,
7015 .total_size = 8192,
7016 .page_size = 256,
7017 .tested = TEST_UNTESTED,
7018 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007019 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007020 .block_erasers =
7021 {
7022 {
7023 .eraseblocks = { {64 * 1024, 128} },
7024 .block_erase = spi_block_erase_d8,
7025 }, {
7026 .eraseblocks = { {8 * 1024 * 1024, 1} },
7027 .block_erase = spi_block_erase_c7,
7028 }
7029 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007030 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007031 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007032 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007033 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007034 },
7035
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007036 {
7037 .vendor = "ST",
7038 .name = "M25P128",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007039 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007040 .manufacture_id = ST_ID,
7041 .model_id = ST_M25P128,
7042 .total_size = 16384,
7043 .page_size = 256,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00007044 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007045 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007046 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007047 .block_erasers =
7048 {
7049 {
7050 .eraseblocks = { {256 * 1024, 64} },
7051 .block_erase = spi_block_erase_d8,
7052 }, {
7053 .eraseblocks = { {16 * 1024 * 1024, 1} },
7054 .block_erase = spi_block_erase_c7,
7055 }
7056 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007057 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007058 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007059 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007060 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007061 },
7062
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007063 {
7064 .vendor = "ST",
Carl Worthd1dd72c2011-03-06 18:45:40 +00007065 .name = "M25PX16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007066 .bustype = BUS_SPI,
Carl Worthd1dd72c2011-03-06 18:45:40 +00007067 .manufacture_id = ST_ID,
7068 .model_id = ST_M25PX16,
7069 .total_size = 2048,
7070 .page_size = 256,
7071 .tested = TEST_OK_PREW,
7072 .probe = probe_spi_rdid,
7073 .probe_timing = TIMING_ZERO,
7074 .block_erasers =
7075 {
7076 {
7077 .eraseblocks = { { 4 * 1024, 512 } },
7078 .block_erase = spi_block_erase_20,
7079 }, {
7080 .eraseblocks = { {64 * 1024, 32} },
7081 .block_erase = spi_block_erase_d8,
7082 }, {
7083 .eraseblocks = { {2 * 1024 * 1024, 1} },
7084 .block_erase = spi_block_erase_c7,
7085 }
7086 },
7087 .unlock = spi_disable_blockprotect,
7088 .write = spi_chip_write_256,
7089 .read = spi_chip_read,
7090 },
7091
7092 {
7093 .vendor = "ST",
Jason Shriver4119e9b2010-09-14 13:16:01 +00007094 .name = "M25PX32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007095 .bustype = BUS_SPI,
Jason Shriver4119e9b2010-09-14 13:16:01 +00007096 .manufacture_id = ST_ID,
7097 .model_id = ST_M25PX32,
7098 .total_size = 4096,
7099 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007100 .tested = TEST_OK_PRE,
Jason Shriver4119e9b2010-09-14 13:16:01 +00007101 .probe = probe_spi_rdid,
7102 .probe_timing = TIMING_ZERO,
7103 .block_erasers =
7104 {
7105 {
7106 .eraseblocks = { { 4 * 1024, 1024 } },
7107 .block_erase = spi_block_erase_20,
7108 }, {
7109 .eraseblocks = { {64 * 1024, 64} },
7110 .block_erase = spi_block_erase_d8,
7111 }, {
7112 .eraseblocks = { {4 * 1024 * 1024, 1} },
7113 .block_erase = spi_block_erase_c7,
7114 }
7115 },
7116 .unlock = spi_disable_blockprotect,
7117 .write = spi_chip_write_256,
7118 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007119 .voltage = {2700, 3600},
Jason Shriver4119e9b2010-09-14 13:16:01 +00007120 },
7121
7122 {
7123 .vendor = "ST",
7124 .name = "M25PX64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007125 .bustype = BUS_SPI,
Jason Shriver4119e9b2010-09-14 13:16:01 +00007126 .manufacture_id = ST_ID,
7127 .model_id = ST_M25PX64,
7128 .total_size = 8192,
7129 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007130 .tested = TEST_OK_PRE,
Jason Shriver4119e9b2010-09-14 13:16:01 +00007131 .probe = probe_spi_rdid,
7132 .probe_timing = TIMING_ZERO,
7133 .block_erasers =
7134 {
7135 {
7136 .eraseblocks = { { 4 * 1024, 2048 } },
7137 .block_erase = spi_block_erase_20,
7138 }, {
7139 .eraseblocks = { {64 * 1024, 128} },
7140 .block_erase = spi_block_erase_d8,
7141 }, {
7142 .eraseblocks = { {8 * 1024 * 1024, 1} },
7143 .block_erase = spi_block_erase_c7,
7144 }
7145 },
7146 .unlock = spi_disable_blockprotect,
7147 .write = spi_chip_write_256,
7148 .read = spi_chip_read,
7149 },
7150
7151 {
7152 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007153 .name = "M29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007154 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007155 .manufacture_id = ST_ID,
7156 .model_id = ST_M29F002B,
7157 .total_size = 256,
7158 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007159 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007160 .tested = TEST_UNTESTED,
7161 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007162 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007163 .block_erasers =
7164 {
7165 {
7166 .eraseblocks = {
7167 {16 * 1024, 1},
7168 {8 * 1024, 2},
7169 {32 * 1024, 1},
7170 {64 * 1024, 3},
7171 },
7172 .block_erase = erase_sector_jedec,
7173 }, {
7174 .eraseblocks = { {256 * 1024, 1} },
7175 .block_erase = erase_chip_block_jedec,
7176 }
7177 },
Sean Nelson35727f72010-01-28 23:55:12 +00007178 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007179 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007180 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00007181 },
7182
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007183 {
7184 .vendor = "ST",
7185 .name = "M29F002T/NT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007186 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007187 .manufacture_id = ST_ID,
7188 .model_id = ST_M29F002T,
7189 .total_size = 256,
7190 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007191 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
7192 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007193 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007194 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007195 .block_erasers =
7196 {
7197 {
7198 .eraseblocks = {
7199 {64 * 1024, 3},
7200 {32 * 1024, 1},
7201 {8 * 1024, 2},
7202 {16 * 1024, 1},
7203 },
7204 .block_erase = erase_sector_jedec,
7205 }, {
7206 .eraseblocks = { {256 * 1024, 1} },
7207 .block_erase = erase_chip_block_jedec,
7208 }
7209 },
Sean Nelson35727f72010-01-28 23:55:12 +00007210 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007211 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007212 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00007213 },
7214
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007215 {
7216 .vendor = "ST",
7217 .name = "M29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007218 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007219 .manufacture_id = ST_ID,
7220 .model_id = ST_M29F040B,
7221 .total_size = 512,
7222 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007223 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
7224 .tested = TEST_UNTESTED,
7225 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00007226 .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */
Sean Nelson56358aa2010-01-19 16:08:51 +00007227 .block_erasers =
7228 {
7229 {
7230 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson35727f72010-01-28 23:55:12 +00007231 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +00007232 }, {
7233 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00007234 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +00007235 }
7236 },
Sean Nelson35727f72010-01-28 23:55:12 +00007237 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007238 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007239 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00007240 },
7241
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007242 {
Sean Nelson35727f72010-01-28 23:55:12 +00007243 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007244 .vendor = "ST",
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00007245 .name = "M29F400BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007246 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00007247 .manufacture_id = ST_ID,
7248 .model_id = ST_M29F400BB,
7249 .total_size = 512,
7250 .page_size = 64 * 1024,
7251 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00007252 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00007253 .probe = probe_m29f400bt,
7254 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
7255 .block_erasers =
7256 {
7257 {
7258 .eraseblocks = {
7259 {16 * 1024, 1},
7260 {8 * 1024, 2},
7261 {32 * 1024, 1},
7262 {64 * 1024, 7},
7263 },
7264 .block_erase = block_erase_m29f400bt,
7265 }, {
7266 .eraseblocks = { {512 * 1024, 1} },
7267 .block_erase = block_erase_chip_m29f400bt,
7268 }
7269 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00007270 .write = write_m29f400bt,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00007271 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007272 .voltage = {4500, 5500},
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00007273 },
7274 {
7275 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
7276 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007277 .name = "M29F400BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007278 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007279 .manufacture_id = ST_ID,
7280 .model_id = ST_M29F400BT,
7281 .total_size = 512,
7282 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007283 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007284 .tested = TEST_UNTESTED,
7285 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00007286 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00007287 .block_erasers =
7288 {
7289 {
7290 .eraseblocks = {
7291 {64 * 1024, 7},
7292 {32 * 1024, 1},
7293 {8 * 1024, 2},
7294 {16 * 1024, 1},
7295 },
7296 .block_erase = block_erase_m29f400bt,
7297 }, {
7298 .eraseblocks = { {512 * 1024, 1} },
7299 .block_erase = block_erase_chip_m29f400bt,
7300 }
7301 },
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00007302 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007303 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007304 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00007305 },
7306
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007307 {
7308 .vendor = "ST",
7309 .name = "M29W010B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007310 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007311 .manufacture_id = ST_ID,
7312 .model_id = ST_M29W010B,
7313 .total_size = 128,
7314 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007315 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007316 .tested = TEST_UNTESTED,
7317 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007318 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007319 .block_erasers =
7320 {
7321 {
7322 .eraseblocks = { {16 * 1024, 8}, },
7323 .block_erase = erase_sector_jedec,
7324 }, {
7325 .eraseblocks = { {128 * 1024, 1} },
7326 .block_erase = erase_chip_block_jedec,
7327 }
7328 },
Sean Nelson35727f72010-01-28 23:55:12 +00007329 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007330 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007331 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007332 },
7333
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007334 {
7335 .vendor = "ST",
7336 .name = "M29W040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007337 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007338 .manufacture_id = ST_ID,
7339 .model_id = ST_M29W040B,
7340 .total_size = 512,
7341 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007342 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007343 .tested = TEST_UNTESTED,
7344 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007345 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007346 .block_erasers =
7347 {
7348 {
7349 .eraseblocks = { {64 * 1024, 8}, },
7350 .block_erase = erase_sector_jedec,
7351 }, {
7352 .eraseblocks = { {512 * 1024, 1} },
7353 .block_erase = erase_chip_block_jedec,
7354 }
7355 },
Sean Nelson35727f72010-01-28 23:55:12 +00007356 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007357 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007358 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007359 },
7360
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +00007361 {
7362 .vendor = "ST",
7363 .name = "M29W512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007364 .bustype = BUS_PARALLEL,
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +00007365 .manufacture_id = ST_ID,
7366 .model_id = ST_M29W512B,
7367 .total_size = 64,
7368 .page_size = 64 * 1024,
7369 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007370 .tested = TEST_OK_PRE,
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +00007371 .probe = probe_jedec,
7372 .probe_timing = TIMING_ZERO,
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +00007373 .block_erasers =
7374 {
7375 {
7376 .eraseblocks = { {64 * 1024, 1} },
7377 .block_erase = erase_chip_block_jedec,
7378 }
7379 },
7380 .write = write_jedec_1,
7381 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007382 .voltage = {2700, 3600},
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +00007383 },
7384
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007385 {
7386 .vendor = "ST",
7387 .name = "M50FLW040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007388 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007389 .manufacture_id = ST_ID,
7390 .model_id = ST_M50FLW040A,
7391 .total_size = 512,
7392 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007393 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007394 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00007395 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00007396 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00007397 .block_erasers =
7398 {
7399 {
Sean Nelson329bde72010-01-19 16:39:19 +00007400 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00007401 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00007402 {64 * 1024, 5}, /* block */
7403 {4 * 1024, 16}, /* sector */
7404 {4 * 1024, 16}, /* sector */
7405 },
7406 .block_erase = NULL,
7407 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00007408 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +00007409 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00007410 }
7411 },
Sean Nelson28accc22010-03-19 18:47:06 +00007412 .unlock = unlock_stm50flw0x0x,
7413 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007414 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007415 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00007416 },
7417
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007418 {
7419 .vendor = "ST",
7420 .name = "M50FLW040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007421 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007422 .manufacture_id = ST_ID,
7423 .model_id = ST_M50FLW040B,
7424 .total_size = 512,
7425 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007426 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007427 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00007428 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00007429 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00007430 .block_erasers =
7431 {
7432 {
Sean Nelson329bde72010-01-19 16:39:19 +00007433 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00007434 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00007435 {4 * 1024, 16}, /* sector */
7436 {64 * 1024, 5}, /* block */
7437 {4 * 1024, 16}, /* sector */
7438 },
7439 .block_erase = NULL,
7440 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00007441 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +00007442 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00007443 }
7444 },
Sean Nelson28accc22010-03-19 18:47:06 +00007445 .unlock = unlock_stm50flw0x0x,
7446 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007447 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007448 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00007449 },
7450
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007451 {
7452 .vendor = "ST",
7453 .name = "M50FLW080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007454 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007455 .manufacture_id = ST_ID,
7456 .model_id = ST_M50FLW080A,
7457 .total_size = 1024,
7458 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007459 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007460 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +00007461 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00007462 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00007463 .block_erasers =
7464 {
7465 {
Sean Nelson329bde72010-01-19 16:39:19 +00007466 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00007467 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00007468 {64 * 1024, 13}, /* block */
7469 {4 * 1024, 16}, /* sector */
7470 {4 * 1024, 16}, /* sector */
7471 },
7472 .block_erase = NULL,
7473 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00007474 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +00007475 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00007476 }
7477 },
Sean Nelson28accc22010-03-19 18:47:06 +00007478 .unlock = unlock_stm50flw0x0x,
7479 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007480 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007481 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00007482 },
7483
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007484 {
7485 .vendor = "ST",
7486 .name = "M50FLW080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007487 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007488 .manufacture_id = ST_ID,
7489 .model_id = ST_M50FLW080B,
7490 .total_size = 1024,
7491 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007492 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007493 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00007494 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00007495 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00007496 .block_erasers =
7497 {
7498 {
Sean Nelson329bde72010-01-19 16:39:19 +00007499 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00007500 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00007501 {4 * 1024, 16}, /* sector */
7502 {64 * 1024, 13}, /* block */
7503 {4 * 1024, 16}, /* sector */
7504 },
7505 .block_erase = NULL,
7506 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00007507 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +00007508 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00007509 }
7510 },
Sean Nelson28accc22010-03-19 18:47:06 +00007511 .unlock = unlock_stm50flw0x0x,
7512 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007513 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007514 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00007515 },
7516
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007517 {
7518 .vendor = "ST",
7519 .name = "M50FW002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007520 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007521 .manufacture_id = ST_ID,
7522 .model_id = ST_M50FW002,
7523 .total_size = 256,
7524 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007525 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007526 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00007527 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00007528 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00007529 .block_erasers =
7530 {
7531 {
7532 .eraseblocks = {
7533 {64 * 1024, 3},
7534 {32 * 1024, 1},
7535 {8 * 1024, 2},
7536 {16 * 1024, 1},
7537 },
Sean Nelson28accc22010-03-19 18:47:06 +00007538 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00007539 }
7540 },
Sean Nelson28accc22010-03-19 18:47:06 +00007541 .unlock = unlock_stm50flw0x0x,
7542 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007543 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007544 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00007545 },
7546
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007547 {
7548 .vendor = "ST",
7549 .name = "M50FW016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007550 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007551 .manufacture_id = ST_ID,
7552 .model_id = ST_M50FW016,
7553 .total_size = 2048,
7554 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007555 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007556 .tested = TEST_UNTESTED,
7557 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00007558 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00007559 .block_erasers =
7560 {
7561 {
7562 .eraseblocks = { {64 * 1024, 32}, },
Sean Nelson28accc22010-03-19 18:47:06 +00007563 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00007564 }
7565 },
Sean Nelson28accc22010-03-19 18:47:06 +00007566 .unlock = unlock_stm50flw0x0x,
7567 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007568 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007569 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00007570 },
7571
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007572 {
7573 .vendor = "ST",
7574 .name = "M50FW040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007575 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007576 .manufacture_id = ST_ID,
7577 .model_id = ST_M50FW040,
7578 .total_size = 512,
7579 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007580 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +00007581 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007582 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00007583 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00007584 .block_erasers =
7585 {
7586 {
7587 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +00007588 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00007589 }
7590 },
Sean Nelson28accc22010-03-19 18:47:06 +00007591 .unlock = unlock_stm50flw0x0x,
7592 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007593 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007594 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00007595 },
7596
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007597 {
7598 .vendor = "ST",
7599 .name = "M50FW080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007600 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007601 .manufacture_id = ST_ID,
7602 .model_id = ST_M50FW080,
7603 .total_size = 1024,
7604 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007605 .feature_bits = FEATURE_REGISTERMAP,
Antony Rheneus0fbba982011-05-26 14:28:51 +00007606 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007607 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00007608 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00007609 .block_erasers =
7610 {
7611 {
7612 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +00007613 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00007614 }
7615 },
Sean Nelson28accc22010-03-19 18:47:06 +00007616 .unlock = unlock_stm50flw0x0x,
7617 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007618 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007619 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00007620 },
7621
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007622 {
7623 .vendor = "ST",
7624 .name = "M50LPW116",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007625 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007626 .manufacture_id = ST_ID,
7627 .model_id = ST_M50LPW116,
7628 .total_size = 2048,
7629 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007630 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007631 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00007632 .probe = probe_82802ab,
Udu Ogahc04ee222009-09-05 01:31:32 +00007633 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007634 .block_erasers =
7635 {
7636 {
7637 .eraseblocks = {
7638 {4 * 1024, 16},
7639 {64 * 1024, 30},
7640 {32 * 1024, 1},
7641 {8 * 1024, 2},
7642 {16 * 1024, 1},
7643 },
Sean Nelson28accc22010-03-19 18:47:06 +00007644 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00007645 }
7646 },
Sean Nelson28accc22010-03-19 18:47:06 +00007647 .unlock = unlock_stm50flw0x0x,
7648 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007649 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007650 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00007651 },
7652
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007653 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00007654 .vendor = "SyncMOS/MoselVitelic",
7655 .name = "{F,S,V}29C51001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007656 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00007657 .manufacture_id = SYNCMOS_MVC_ID,
7658 .model_id = SM_MVC_29C51001B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007659 .total_size = 128,
Mattias Mattsson4c066502010-07-29 20:01:13 +00007660 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +00007661 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007662 .tested = TEST_UNTESTED,
7663 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007664 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007665 .block_erasers =
7666 {
7667 {
7668 .eraseblocks = { {512, 256} },
7669 .block_erase = erase_sector_jedec,
7670 }, {
7671 .eraseblocks = { {128 * 1024, 1} },
7672 .block_erase = erase_chip_block_jedec,
7673 },
7674 },
Sean Nelson35727f72010-01-28 23:55:12 +00007675 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007676 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007677 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00007678 },
7679
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007680 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00007681 .vendor = "SyncMOS/MoselVitelic",
7682 .name = "{F,S,V}29C51001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007683 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00007684 .manufacture_id = SYNCMOS_MVC_ID,
7685 .model_id = SM_MVC_29C51001T,
7686 .total_size = 128,
7687 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +00007688 .feature_bits = FEATURE_EITHER_RESET,
Mattias Mattsson4c066502010-07-29 20:01:13 +00007689 .tested = TEST_UNTESTED,
7690 .probe = probe_jedec,
7691 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7692 .block_erasers =
7693 {
7694 {
7695 .eraseblocks = { {512, 256} },
7696 .block_erase = erase_sector_jedec,
7697 }, {
7698 .eraseblocks = { {128 * 1024, 1} },
7699 .block_erase = erase_chip_block_jedec,
7700 },
7701 },
7702 .write = write_jedec_1,
7703 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007704 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00007705 },
7706
7707 {
7708 .vendor = "SyncMOS/MoselVitelic",
7709 .name = "{F,S,V}29C51002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007710 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00007711 .manufacture_id = SYNCMOS_MVC_ID,
7712 .model_id = SM_MVC_29C51002B,
7713 .total_size = 256,
7714 .page_size = 512,
7715 .feature_bits = FEATURE_EITHER_RESET,
7716 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007717 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007718 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007719 .block_erasers =
7720 {
7721 {
7722 .eraseblocks = { {512, 512} },
7723 .block_erase = erase_sector_jedec,
7724 }, {
7725 .eraseblocks = { {256 * 1024, 1} },
7726 .block_erase = erase_chip_block_jedec,
7727 },
7728 },
Sean Nelson35727f72010-01-28 23:55:12 +00007729 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007730 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00007731 },
7732
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007733 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00007734 .vendor = "SyncMOS/MoselVitelic",
7735 .name = "{F,S,V}29C51002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007736 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00007737 .manufacture_id = SYNCMOS_MVC_ID,
7738 .model_id = SM_MVC_29C51002T,
7739 .total_size = 256,
7740 .page_size = 512,
7741 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007742 .tested = TEST_OK_PRE,
Mattias Mattsson4c066502010-07-29 20:01:13 +00007743 .probe = probe_jedec,
7744 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7745 .block_erasers =
7746 {
7747 {
7748 .eraseblocks = { {512, 512} },
7749 .block_erase = erase_sector_jedec,
7750 }, {
7751 .eraseblocks = { {256 * 1024, 1} },
7752 .block_erase = erase_chip_block_jedec,
7753 },
7754 },
7755 .write = write_jedec_1,
7756 .read = read_memmapped,
7757 },
7758
7759 {
7760 .vendor = "SyncMOS/MoselVitelic",
7761 .name = "{F,S,V}29C51004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007762 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00007763 .manufacture_id = SYNCMOS_MVC_ID,
7764 .model_id = SM_MVC_29C51004B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007765 .total_size = 512,
Mattias Mattsson4c066502010-07-29 20:01:13 +00007766 .page_size = 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007767 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007768 .tested = TEST_UNTESTED,
7769 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007770 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007771 .block_erasers =
7772 {
7773 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00007774 .eraseblocks = { {1024, 512} },
7775 .block_erase = erase_sector_jedec,
7776 }, {
7777 .eraseblocks = { {512 * 1024, 1} },
7778 .block_erase = erase_chip_block_jedec,
7779 },
7780 },
7781 .write = write_jedec_1,
7782 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007783 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00007784 },
7785
7786 {
7787 .vendor = "SyncMOS/MoselVitelic",
7788 .name = "{F,S,V}29C51004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007789 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00007790 .manufacture_id = SYNCMOS_MVC_ID,
7791 .model_id = SM_MVC_29C51004T,
7792 .total_size = 512,
7793 .page_size = 1024,
7794 .feature_bits = FEATURE_EITHER_RESET,
7795 .tested = TEST_UNTESTED,
7796 .probe = probe_jedec,
7797 .probe_timing = TIMING_ZERO,
7798 .block_erasers =
7799 {
7800 {
7801 .eraseblocks = { {1024, 512} },
7802 .block_erase = erase_sector_jedec,
7803 }, {
7804 .eraseblocks = { {512 * 1024, 1} },
7805 .block_erase = erase_chip_block_jedec,
7806 },
7807 },
7808 .write = write_jedec_1,
7809 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007810 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00007811 },
7812
7813 {
7814 .vendor = "SyncMOS/MoselVitelic",
7815 .name = "{S,V}29C31004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007816 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00007817 .manufacture_id = SYNCMOS_MVC_ID,
7818 .model_id = SM_MVC_29C31004B,
7819 .total_size = 512,
7820 .page_size = 1024,
7821 .feature_bits = FEATURE_EITHER_RESET,
7822 .tested = TEST_UNTESTED,
7823 .probe = probe_jedec,
7824 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7825 .block_erasers =
7826 {
7827 {
7828 .eraseblocks = { {1024, 512} },
7829 .block_erase = erase_sector_jedec,
7830 }, {
7831 .eraseblocks = { {512 * 1024, 1} },
7832 .block_erase = erase_chip_block_jedec,
7833 },
7834 },
7835 .write = write_jedec_1,
7836 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007837 .voltage = {3000, 3600},
Mattias Mattsson4c066502010-07-29 20:01:13 +00007838 },
7839
7840 {
7841 .vendor = "SyncMOS/MoselVitelic",
7842 .name = "{S,V}29C31004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007843 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00007844 .manufacture_id = SYNCMOS_MVC_ID,
7845 .model_id = SM_MVC_29C31004T,
7846 .total_size = 512,
7847 .page_size = 1024,
7848 .feature_bits = FEATURE_EITHER_RESET,
7849 .tested = TEST_UNTESTED,
7850 .probe = probe_jedec,
7851 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7852 .block_erasers =
7853 {
7854 {
7855 .eraseblocks = { {1024, 512} },
Sean Nelson56358aa2010-01-19 16:08:51 +00007856 .block_erase = erase_sector_jedec,
7857 }, {
7858 .eraseblocks = { {512 * 1024, 1} },
7859 .block_erase = erase_chip_block_jedec,
7860 },
7861 },
Sean Nelson35727f72010-01-28 23:55:12 +00007862 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007863 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007864 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007865 },
7866
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007867 {
Uwe Hermanna106d152009-05-27 23:17:40 +00007868 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00007869 .name = "TMS29F002RB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007870 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00007871 .manufacture_id = TI_OLD_ID,
7872 .model_id = TI_TMS29F002RB,
7873 .total_size = 256,
7874 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +00007875 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00007876 .tested = TEST_UNTESTED,
7877 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007878 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007879 .block_erasers =
7880 {
7881 {
7882 .eraseblocks = {
7883 {16 * 1024, 1},
7884 {8 * 1024, 2},
7885 {32 * 1024, 1},
7886 {64 * 1024, 3},
7887 },
7888 .block_erase = erase_sector_jedec,
7889 }, {
7890 .eraseblocks = { {256 * 1024, 1} },
7891 .block_erase = erase_chip_block_jedec,
7892 },
7893 },
Sean Nelson35727f72010-01-28 23:55:12 +00007894 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00007895 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007896 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00007897 },
7898
7899 {
Uwe Hermanna106d152009-05-27 23:17:40 +00007900 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00007901 .name = "TMS29F002RT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007902 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00007903 .manufacture_id = TI_OLD_ID,
7904 .model_id = TI_TMS29F002RT,
7905 .total_size = 256,
7906 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +00007907 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00007908 .tested = TEST_UNTESTED,
7909 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007910 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007911 .block_erasers =
7912 {
7913 {
7914 .eraseblocks = {
7915 {64 * 1024, 3},
7916 {32 * 1024, 1},
7917 {8 * 1024, 2},
7918 {16 * 1024, 1},
7919 },
7920 .block_erase = erase_sector_jedec,
7921 }, {
7922 .eraseblocks = { {256 * 1024, 1} },
7923 .block_erase = erase_chip_block_jedec,
7924 },
7925 },
Sean Nelson35727f72010-01-28 23:55:12 +00007926 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00007927 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007928 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00007929 },
7930
7931 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007932 .vendor = "Winbond",
Rudolf Marekce1c7982010-04-20 19:34:31 +00007933 .name = "W25Q80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007934 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +00007935 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00007936 .model_id = WINBOND_NEX_W25Q80,
Rudolf Marekce1c7982010-04-20 19:34:31 +00007937 .total_size = 1024,
7938 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00007939 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00007940 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +00007941 .probe = probe_spi_rdid,
7942 .probe_timing = TIMING_ZERO,
7943 .block_erasers =
7944 {
7945 {
7946 .eraseblocks = { {4 * 1024, 256} },
7947 .block_erase = spi_block_erase_20,
7948 }, {
7949 .eraseblocks = { {32 * 1024, 32} },
7950 .block_erase = spi_block_erase_52,
7951 }, {
7952 .eraseblocks = { {64 * 1024, 16} },
7953 .block_erase = spi_block_erase_d8,
7954 }, {
7955 .eraseblocks = { {1024 * 1024, 1} },
7956 .block_erase = spi_block_erase_60,
7957 }, {
7958 .eraseblocks = { {1024 * 1024, 1} },
7959 .block_erase = spi_block_erase_c7,
7960 }
7961 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007962 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +00007963 .write = spi_chip_write_256,
7964 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007965 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +00007966 },
7967
7968 {
7969 .vendor = "Winbond",
7970 .name = "W25Q16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007971 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +00007972 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00007973 .model_id = WINBOND_NEX_W25Q16,
Rudolf Marekce1c7982010-04-20 19:34:31 +00007974 .total_size = 2048,
7975 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00007976 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +00007977 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +00007978 .probe = probe_spi_rdid,
7979 .probe_timing = TIMING_ZERO,
7980 .block_erasers =
7981 {
7982 {
7983 .eraseblocks = { {4 * 1024, 512} },
7984 .block_erase = spi_block_erase_20,
7985 }, {
7986 .eraseblocks = { {32 * 1024, 64} },
7987 .block_erase = spi_block_erase_52,
7988 }, {
7989 .eraseblocks = { {64 * 1024, 32} },
7990 .block_erase = spi_block_erase_d8,
7991 }, {
7992 .eraseblocks = { {2 * 1024 * 1024, 1} },
7993 .block_erase = spi_block_erase_60,
7994 }, {
7995 .eraseblocks = { {2 * 1024 * 1024, 1} },
7996 .block_erase = spi_block_erase_c7,
7997 }
7998 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007999 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008000 .write = spi_chip_write_256,
8001 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008002 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +00008003 },
8004
8005 {
8006 .vendor = "Winbond",
8007 .name = "W25Q32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008008 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008009 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008010 .model_id = WINBOND_NEX_W25Q32,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008011 .total_size = 4096,
8012 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008013 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00008014 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008015 .probe = probe_spi_rdid,
8016 .probe_timing = TIMING_ZERO,
8017 .block_erasers =
8018 {
8019 {
8020 .eraseblocks = { {4 * 1024, 1024} },
8021 .block_erase = spi_block_erase_20,
8022 }, {
8023 .eraseblocks = { {32 * 1024, 128} },
8024 .block_erase = spi_block_erase_52,
8025 }, {
8026 .eraseblocks = { {64 * 1024, 64} },
8027 .block_erase = spi_block_erase_d8,
8028 }, {
8029 .eraseblocks = { {4 * 1024 * 1024, 1} },
8030 .block_erase = spi_block_erase_60,
8031 }, {
8032 .eraseblocks = { {4 * 1024 * 1024, 1} },
8033 .block_erase = spi_block_erase_c7,
8034 }
8035 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008036 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008037 .write = spi_chip_write_256,
8038 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008039 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +00008040 },
8041
8042 {
8043 .vendor = "Winbond",
David Hendricksc4acec92010-06-24 11:39:57 +00008044 .name = "W25Q64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008045 .bustype = BUS_SPI,
David Hendricksc4acec92010-06-24 11:39:57 +00008046 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008047 .model_id = WINBOND_NEX_W25Q64,
David Hendricksc4acec92010-06-24 11:39:57 +00008048 .total_size = 8192,
8049 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008050 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00008051 .tested = TEST_OK_PREW,
David Hendricksc4acec92010-06-24 11:39:57 +00008052 .probe = probe_spi_rdid,
8053 .probe_timing = TIMING_ZERO,
8054 .block_erasers =
8055 {
8056 {
8057 .eraseblocks = { {4 * 1024, 2048} },
8058 .block_erase = spi_block_erase_20,
8059 }, {
8060 .eraseblocks = { {32 * 1024, 256} },
8061 .block_erase = spi_block_erase_52,
8062 }, {
8063 .eraseblocks = { {64 * 1024, 128} },
8064 .block_erase = spi_block_erase_d8,
8065 }, {
8066 .eraseblocks = { {8 * 1024 * 1024, 1} },
8067 .block_erase = spi_block_erase_60,
8068 }, {
8069 .eraseblocks = { {8 * 1024 * 1024, 1} },
8070 .block_erase = spi_block_erase_c7,
8071 }
8072 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008073 .unlock = spi_disable_blockprotect,
David Hendricksc4acec92010-06-24 11:39:57 +00008074 .write = spi_chip_write_256,
8075 .read = spi_chip_read,
8076 },
8077
8078 {
8079 .vendor = "Winbond",
Antony Rheneus0fbba982011-05-26 14:28:51 +00008080 .name = "W25Q128",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008081 .bustype = BUS_SPI,
Antony Rheneus0fbba982011-05-26 14:28:51 +00008082 .manufacture_id = WINBOND_NEX_ID,
8083 .model_id = WINBOND_NEX_W25Q128,
8084 .total_size = 16384,
8085 .page_size = 256,
8086 .feature_bits = FEATURE_WRSR_WREN,
8087 .tested = TEST_OK_PROBE,
8088 .probe = probe_spi_rdid,
8089 .probe_timing = TIMING_ZERO,
8090 .block_erasers =
8091 {
8092 {
8093 .eraseblocks = { {4 * 1024, 4096} },
8094 .block_erase = spi_block_erase_20,
8095 }, {
8096 .eraseblocks = { {32 * 1024, 512} },
8097 .block_erase = spi_block_erase_52,
8098 }, {
8099 .eraseblocks = { {64 * 1024, 256} },
8100 .block_erase = spi_block_erase_d8,
8101 }, {
8102 .eraseblocks = { {16 * 1024 * 1024, 1} },
8103 .block_erase = spi_block_erase_60,
8104 }, {
8105 .eraseblocks = { {16 * 1024 * 1024, 1} },
8106 .block_erase = spi_block_erase_c7,
8107 }
8108 },
8109 .unlock = spi_disable_blockprotect,
8110 .write = spi_chip_write_256,
8111 .read = spi_chip_read,
8112 },
8113
8114 {
8115 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008116 .name = "W25X10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008117 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008118 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008119 .model_id = WINBOND_NEX_W25X10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008120 .total_size = 128,
8121 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008122 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008123 .tested = TEST_UNTESTED,
8124 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008125 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008126 .block_erasers =
8127 {
8128 {
8129 .eraseblocks = { {4 * 1024, 32} },
8130 .block_erase = spi_block_erase_20,
8131 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008132 .eraseblocks = { {64 * 1024, 2} },
8133 .block_erase = spi_block_erase_d8,
8134 }, {
8135 .eraseblocks = { {128 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008136 .block_erase = spi_block_erase_c7,
8137 }
8138 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008139 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008140 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008141 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008142 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008143 },
8144
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008145 {
8146 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008147 .name = "W25X20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008148 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008149 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008150 .model_id = WINBOND_NEX_W25X20,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008151 .total_size = 256,
8152 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008153 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008154 .tested = TEST_UNTESTED,
8155 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008156 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008157 .block_erasers =
8158 {
8159 {
8160 .eraseblocks = { {4 * 1024, 64} },
8161 .block_erase = spi_block_erase_20,
8162 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008163 .eraseblocks = { {64 * 1024, 4} },
8164 .block_erase = spi_block_erase_d8,
8165 }, {
8166 .eraseblocks = { {256 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008167 .block_erase = spi_block_erase_c7,
8168 }
8169 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008170 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008171 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008172 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008173 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008174 },
8175
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008176 {
8177 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008178 .name = "W25X40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008179 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008180 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008181 .model_id = WINBOND_NEX_W25X40,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008182 .total_size = 512,
8183 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008184 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +00008185 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008186 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008187 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008188 .block_erasers =
8189 {
8190 {
8191 .eraseblocks = { {4 * 1024, 128} },
8192 .block_erase = spi_block_erase_20,
8193 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008194 .eraseblocks = { {64 * 1024, 8} },
8195 .block_erase = spi_block_erase_d8,
8196 }, {
8197 .eraseblocks = { {512 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008198 .block_erase = spi_block_erase_c7,
8199 }
8200 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008201 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008202 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008203 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008204 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008205 },
8206
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008207 {
8208 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008209 .name = "W25X80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008210 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008211 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008212 .model_id = WINBOND_NEX_W25X80,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008213 .total_size = 1024,
8214 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008215 .feature_bits = FEATURE_WRSR_WREN,
Yul Rottmann6d6ab742011-03-05 16:31:57 +00008216 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008217 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008218 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008219 .block_erasers =
8220 {
8221 {
8222 .eraseblocks = { {4 * 1024, 256} },
8223 .block_erase = spi_block_erase_20,
8224 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008225 .eraseblocks = { {64 * 1024, 16} },
8226 .block_erase = spi_block_erase_d8,
8227 }, {
8228 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008229 .block_erase = spi_block_erase_c7,
8230 }
8231 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008232 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008233 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008234 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008235 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008236 },
8237
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008238 {
8239 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008240 .name = "W25X16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008241 .bustype = BUS_SPI,
Hector Martina721ae22009-07-11 19:39:11 +00008242 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008243 .model_id = WINBOND_NEX_W25X16,
Hector Martina721ae22009-07-11 19:39:11 +00008244 .total_size = 2048,
8245 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008246 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +00008247 .tested = TEST_OK_PREW,
Hector Martina721ae22009-07-11 19:39:11 +00008248 .probe = probe_spi_rdid,
8249 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008250 .block_erasers =
8251 {
8252 {
8253 .eraseblocks = { {4 * 1024, 512} },
8254 .block_erase = spi_block_erase_20,
8255 }, {
8256 .eraseblocks = { {32 * 1024, 64} },
8257 .block_erase = spi_block_erase_52,
8258 }, {
8259 .eraseblocks = { {64 * 1024, 32} },
8260 .block_erase = spi_block_erase_d8,
8261 }, {
8262 .eraseblocks = { {2 * 1024 * 1024, 1} },
8263 .block_erase = spi_block_erase_60,
8264 }, {
8265 .eraseblocks = { {2 * 1024 * 1024, 1} },
8266 .block_erase = spi_block_erase_c7,
8267 }
8268 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008269 .unlock = spi_disable_blockprotect,
Hector Martina721ae22009-07-11 19:39:11 +00008270 .write = spi_chip_write_256,
8271 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008272 .voltage = {2700, 3600},
Hector Martina721ae22009-07-11 19:39:11 +00008273 },
8274
8275 {
8276 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008277 .name = "W25X32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008278 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +00008279 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008280 .model_id = WINBOND_NEX_W25X32,
Zheng Bao1db2b752009-11-26 11:05:01 +00008281 .total_size = 4096,
8282 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008283 .feature_bits = FEATURE_WRSR_WREN,
Zheng Bao1db2b752009-11-26 11:05:01 +00008284 .tested = TEST_OK_PROBE,
8285 .probe = probe_spi_rdid,
8286 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008287 .block_erasers =
8288 {
8289 {
8290 .eraseblocks = { {4 * 1024, 1024} },
8291 .block_erase = spi_block_erase_20,
8292 }, {
8293 .eraseblocks = { {32 * 1024, 128} },
8294 .block_erase = spi_block_erase_52,
8295 }, {
8296 .eraseblocks = { {64 * 1024, 64} },
8297 .block_erase = spi_block_erase_d8,
8298 }, {
8299 .eraseblocks = { {4 * 1024 * 1024, 1} },
8300 .block_erase = spi_block_erase_60,
8301 }, {
8302 .eraseblocks = { {4 * 1024 * 1024, 1} },
8303 .block_erase = spi_block_erase_c7,
8304 }
8305 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008306 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +00008307 .write = spi_chip_write_256,
8308 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008309 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +00008310 },
8311
8312 {
8313 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008314 .name = "W25X64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008315 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +00008316 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008317 .model_id = WINBOND_NEX_W25X64,
Zheng Bao1db2b752009-11-26 11:05:01 +00008318 .total_size = 8192,
8319 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008320 .feature_bits = FEATURE_WRSR_WREN,
Antony Rheneus0fbba982011-05-26 14:28:51 +00008321 .tested = TEST_OK_PROBE,
Zheng Bao1db2b752009-11-26 11:05:01 +00008322 .probe = probe_spi_rdid,
8323 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008324 .block_erasers =
8325 {
8326 {
8327 .eraseblocks = { {4 * 1024, 2048} },
8328 .block_erase = spi_block_erase_20,
8329 }, {
8330 .eraseblocks = { {32 * 1024, 256} },
8331 .block_erase = spi_block_erase_52,
8332 }, {
8333 .eraseblocks = { {64 * 1024, 128} },
8334 .block_erase = spi_block_erase_d8,
8335 }, {
8336 .eraseblocks = { {8 * 1024 * 1024, 1} },
8337 .block_erase = spi_block_erase_60,
8338 }, {
8339 .eraseblocks = { {8 * 1024 * 1024, 1} },
8340 .block_erase = spi_block_erase_c7,
8341 }
8342 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008343 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +00008344 .write = spi_chip_write_256,
8345 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008346 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +00008347 },
8348
8349 {
8350 .vendor = "Winbond",
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +00008351 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008352 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +00008353 .manufacture_id = WINBOND_ID,
8354 .model_id = WINBOND_W29C010,
8355 .total_size = 128,
8356 .page_size = 128,
8357 .feature_bits = FEATURE_LONG_RESET,
8358 .tested = TEST_OK_PRE,
8359 .probe = probe_w29ee011,
8360 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */
8361 .block_erasers =
8362 {
8363 {
8364 .eraseblocks = { {128 * 1024, 1} },
8365 .block_erase = erase_chip_block_jedec,
8366 }
8367 },
8368 .write = write_jedec,
8369 .read = read_memmapped,
8370 },
8371
8372 {/* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */
8373 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +00008374 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008375 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008376 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008377 .model_id = WINBOND_W29C010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008378 .total_size = 128,
8379 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00008380 .feature_bits = FEATURE_LONG_RESET,
David Hendricks567b7b82011-05-18 01:31:03 +00008381 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008382 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008383 .probe_timing = 10, /* used datasheet for the W29C011A */
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008384 .block_erasers =
8385 {
8386 {
8387 .eraseblocks = { {128 * 1024, 1} },
8388 .block_erase = erase_chip_block_jedec,
8389 }
8390 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008391 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008392 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00008393 },
8394
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008395 {
8396 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +00008397 .name = "W29C020(C)/W29C022",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008398 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008399 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008400 .model_id = WINBOND_W29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008401 .total_size = 256,
8402 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00008403 .feature_bits = FEATURE_LONG_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008404 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008405 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008406 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008407 .block_erasers =
8408 {
8409 {
8410 .eraseblocks = { {256 * 1024, 1} },
8411 .block_erase = erase_chip_block_jedec,
8412 }
8413 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008414 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008415 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008416 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00008417 },
8418
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008419 {
8420 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +00008421 .name = "W29C040/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008422 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008423 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008424 .model_id = WINBOND_W29C040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008425 .total_size = 512,
8426 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00008427 .feature_bits = FEATURE_LONG_RESET,
8428 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008429 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00008430 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008431 .block_erasers =
8432 {
8433 {
8434 .eraseblocks = { {512 * 1024, 1} },
8435 .block_erase = erase_chip_block_jedec,
8436 }
8437 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008438 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008439 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008440 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00008441 },
8442
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008443 {
8444 .vendor = "Winbond",
Michael Karcher19e0aac2011-03-06 17:58:05 +00008445 .name = "W39L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008446 .bustype = BUS_PARALLEL,
Michael Karcher19e0aac2011-03-06 17:58:05 +00008447 .manufacture_id = WINBOND_ID,
8448 .model_id = WINBOND_W39L040,
8449 .total_size = 512,
8450 .page_size = 64 * 1024,
8451 .feature_bits = FEATURE_EITHER_RESET,
8452 .tested = TEST_OK_PR,
8453 .probe = probe_jedec,
8454 .probe_timing = 10,
8455 .block_erasers =
8456 {
8457 {
8458 .eraseblocks = { {4 * 1024, 128} },
8459 .block_erase = erase_block_jedec,
8460 }, {
8461 .eraseblocks = { {64 * 1024, 8} },
8462 .block_erase = erase_sector_jedec,
8463 }, {
8464 .eraseblocks = { {512 * 1024, 1} },
8465 .block_erase = erase_chip_block_jedec,
8466 }
8467 },
8468 .printlock = printlock_w39l040,
8469 .write = write_jedec_1,
8470 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008471 .voltage = {3000, 3600},
Michael Karcher19e0aac2011-03-06 17:58:05 +00008472 },
8473
8474 {
8475 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008476 .name = "W39V040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008477 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008478 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008479 .model_id = WINBOND_W39V040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008480 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00008481 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008482 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +00008483 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008484 .probe = probe_jedec,
Stefan Tauner716e0982011-07-25 20:38:52 +00008485 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008486 .block_erasers =
8487 {
8488 {
8489 .eraseblocks = { {64 * 1024, 8} },
8490 .block_erase = erase_sector_jedec,
8491 }, {
8492 .eraseblocks = { {512 * 1024, 1} },
8493 .block_erase = erase_chip_block_jedec,
8494 }
8495 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008496 .printlock = printlock_w39v040a,
Sean Nelson35727f72010-01-28 23:55:12 +00008497 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008498 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008499 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008500 },
8501
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008502 {
8503 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008504 .name = "W39V040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008505 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008506 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008507 .model_id = WINBOND_W39V040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008508 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00008509 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008510 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00008511 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008512 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00008513 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008514 .block_erasers =
8515 {
8516 {
8517 .eraseblocks = { {64 * 1024, 8} },
8518 .block_erase = erase_sector_jedec,
8519 }, {
8520 .eraseblocks = { {512 * 1024, 1} },
8521 .block_erase = erase_chip_block_jedec,
8522 }
8523 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008524 .printlock = printlock_w39v040b,
Sean Nelson35727f72010-01-28 23:55:12 +00008525 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008526 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008527 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008528 },
8529
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008530 {
8531 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008532 .name = "W39V040C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008533 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008534 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008535 .model_id = WINBOND_W39V040C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008536 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00008537 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008538 .feature_bits = FEATURE_EITHER_RESET,
8539 .tested = TEST_UNTESTED,
8540 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008541 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008542 .block_erasers =
8543 {
8544 {
8545 .eraseblocks = { {64 * 1024, 8} },
8546 .block_erase = erase_sector_jedec,
8547 }, {
8548 .eraseblocks = { {512 * 1024, 1} },
8549 .block_erase = erase_chip_block_jedec,
8550 }
8551 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00008552 .printlock = printlock_w39v040c,
Sean Nelson35727f72010-01-28 23:55:12 +00008553 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008554 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008555 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008556 },
8557
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008558 {
8559 .vendor = "Winbond",
8560 .name = "W39V040FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008561 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008562 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008563 .model_id = WINBOND_W39V040FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008564 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00008565 .page_size = 64 * 1024,
Michael Karcherc9b63412010-05-30 16:55:18 +00008566 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Antony Rheneus0fbba982011-05-26 14:28:51 +00008567 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008568 .probe = probe_jedec,
Antony Rheneus0fbba982011-05-26 14:28:51 +00008569 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008570 .block_erasers =
8571 {
8572 {
8573 .eraseblocks = { {4 * 1024, 128} },
8574 .block_erase = erase_block_jedec,
8575 }, {
8576 .eraseblocks = { {64 * 1024, 8} },
8577 .block_erase = erase_sector_jedec,
8578 }, {
8579 .eraseblocks = { {512 * 1024, 1} },
8580 .block_erase = erase_chip_block_jedec,
8581 }
8582 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008583 .printlock = printlock_w39v040fa,
Michael Karcherc9b63412010-05-30 16:55:18 +00008584 .unlock = unlock_sst_fwhub,
Sean Nelson35727f72010-01-28 23:55:12 +00008585 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008586 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008587 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008588 },
8589
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008590 {
8591 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008592 .name = "W39V040FB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008593 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008594 .manufacture_id = WINBOND_ID,
8595 .model_id = WINBOND_W39V040B,
8596 .total_size = 512,
8597 .page_size = 64 * 1024,
8598 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00008599 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008600 .probe = probe_jedec,
8601 .probe_timing = 10,
8602 .block_erasers =
8603 {
8604 {
8605 .eraseblocks = { {64 * 1024, 8} },
8606 .block_erase = erase_sector_jedec,
8607 }, {
8608 .eraseblocks = { {512 * 1024, 1} },
8609 .block_erase = erase_chip_block_jedec,
8610 }
8611 },
8612 .printlock = printlock_w39v040fb,
Idwer Volleringecc67072010-12-26 23:55:12 +00008613 .unlock = unlock_w39v040fb,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008614 .write = write_jedec_1,
8615 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008616 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008617 },
8618
8619 {
8620 .vendor = "Winbond",
8621 .name = "W39V040FC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008622 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008623 .manufacture_id = WINBOND_ID,
8624 .model_id = WINBOND_W39V040C,
8625 .total_size = 512,
8626 .page_size = 64 * 1024,
8627 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
8628 .tested = TEST_UNTESTED,
8629 .probe = probe_jedec,
8630 .probe_timing = 10,
8631 .block_erasers =
8632 {
8633 {
8634 .eraseblocks = { {64 * 1024, 8} },
8635 .block_erase = erase_sector_jedec,
8636 }, {
8637 .eraseblocks = { {512 * 1024, 1} },
8638 .block_erase = erase_chip_block_jedec,
8639 }
8640 },
8641 .printlock = printlock_w39v040fc,
8642 .write = write_jedec_1,
8643 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008644 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008645 },
8646
8647 {
8648 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008649 .name = "W39V080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008650 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008651 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008652 .model_id = WINBOND_W39V080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008653 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +00008654 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008655 .feature_bits = FEATURE_EITHER_RESET,
8656 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008657 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00008658 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008659 .block_erasers =
8660 {
8661 {
8662 .eraseblocks = { {64 * 1024, 16} },
8663 .block_erase = erase_sector_jedec,
8664 }, {
8665 .eraseblocks = { {1024 * 1024, 1} },
8666 .block_erase = erase_chip_block_jedec,
8667 }
8668 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008669 .printlock = printlock_w39v080a,
Sean Nelson35727f72010-01-28 23:55:12 +00008670 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008671 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008672 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008673 },
8674
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008675 {
8676 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +00008677 .name = "W49F002U/N",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008678 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008679 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008680 .model_id = WINBOND_W49F002U,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008681 .total_size = 256,
8682 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00008683 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +00008684 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008685 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008686 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008687 .block_erasers =
8688 {
8689 {
8690 .eraseblocks = {
8691 {128 * 1024, 1},
8692 {96 * 1024, 1},
8693 {8 * 1024, 2},
8694 {16 * 1024, 1},
8695 },
8696 .block_erase = erase_sector_jedec,
8697 }, {
8698 .eraseblocks = { {256 * 1024, 1} },
8699 .block_erase = erase_chip_block_jedec,
8700 }
8701 },
Sean Nelson35727f72010-01-28 23:55:12 +00008702 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008703 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008704 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00008705 },
8706
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008707 {
8708 .vendor = "Winbond",
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +00008709 .name = "W49F020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008710 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +00008711 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008712 .model_id = WINBOND_W49F020,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +00008713 .total_size = 256,
8714 .page_size = 128,
8715 .feature_bits = FEATURE_EITHER_RESET,
8716 .tested = TEST_OK_PROBE,
8717 .probe = probe_jedec,
8718 .probe_timing = 10,
8719 .block_erasers =
8720 {
8721 {
8722 .eraseblocks = { {256 * 1024, 1} },
8723 .block_erase = erase_chip_block_jedec,
8724 }
8725 },
8726 .write = write_jedec_1,
8727 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008728 .voltage = {4500, 5500},
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +00008729 },
8730
8731 {
8732 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008733 .name = "W49V002A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008734 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008735 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008736 .model_id = WINBOND_W49V002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008737 .total_size = 256,
8738 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00008739 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008740 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008741 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008742 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008743 .block_erasers =
8744 {
8745 {
8746 .eraseblocks = {
8747 {64 * 1024, 3},
8748 {32 * 1024, 1},
8749 {8 * 1024, 2},
8750 {16 * 1024, 1},
8751 },
8752 .block_erase = erase_sector_jedec,
8753 }, {
8754 .eraseblocks = { {256 * 1024, 1} },
8755 .block_erase = erase_chip_block_jedec,
8756 }
8757 },
Sean Nelson35727f72010-01-28 23:55:12 +00008758 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008759 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008760 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008761 },
8762
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008763 {
8764 .vendor = "Winbond",
8765 .name = "W49V002FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008766 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008767 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008768 .model_id = WINBOND_W49V002FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008769 .total_size = 256,
8770 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00008771 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00008772 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008773 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008774 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008775 .block_erasers =
8776 {
8777 {
8778 .eraseblocks = {
8779 {64 * 1024, 3},
8780 {32 * 1024, 1},
8781 {8 * 1024, 2},
8782 {16 * 1024, 1},
8783 },
8784 .block_erase = erase_sector_jedec,
8785 }, {
8786 .eraseblocks = { {256 * 1024, 1} },
8787 .block_erase = erase_chip_block_jedec,
8788 }
8789 },
Sean Nelson35727f72010-01-28 23:55:12 +00008790 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008791 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008792 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008793 },
8794
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008795 {
8796 .vendor = "Winbond",
8797 .name = "W39V080FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008798 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008799 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008800 .model_id = WINBOND_W39V080FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008801 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +00008802 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008803 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +00008804 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00008805 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008806 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008807 .block_erasers =
8808 {
8809 {
8810 .eraseblocks = { {64 * 1024, 16}, },
8811 .block_erase = erase_sector_jedec,
8812 }, {
8813 .eraseblocks = { {1024 * 1024, 1} },
8814 .block_erase = erase_chip_block_jedec,
8815 }
8816 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008817 .printlock = printlock_w39v080fa,
8818 .unlock = unlock_w39v080fa,
Sean Nelson35727f72010-01-28 23:55:12 +00008819 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008820 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008821 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +00008822 },
8823
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008824 {
8825 .vendor = "Winbond",
8826 .name = "W39V080FA (dual mode)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008827 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008828 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008829 .model_id = WINBOND_W39V080FA_DM,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008830 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00008831 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008832 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008833 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00008834 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008835 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008836 .block_erasers =
8837 {
8838 {
8839 .eraseblocks = { {64 * 1024, 8}, },
8840 .block_erase = erase_sector_jedec,
8841 }, {
8842 .eraseblocks = { {512 * 1024, 1} },
8843 .block_erase = erase_chip_block_jedec,
8844 }
8845 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008846 .printlock = printlock_w39v080fa_dual,
Sean Nelson35727f72010-01-28 23:55:12 +00008847 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008848 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008849 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +00008850 },
8851
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008852 {
Daniel Lenskidf90d3a2010-07-22 11:44:38 +00008853 .vendor = "AMIC",
8854 .name = "unknown AMIC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008855 .bustype = BUS_SPI,
Daniel Lenskidf90d3a2010-07-22 11:44:38 +00008856 .manufacture_id = AMIC_ID,
8857 .model_id = GENERIC_DEVICE_ID,
8858 .total_size = 0,
8859 .page_size = 256,
8860 .tested = TEST_BAD_PREW,
8861 .probe = probe_spi_rdid4,
8862 .probe_timing = TIMING_ZERO,
8863 .write = NULL,
8864 .read = NULL,
8865 },
8866
8867 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008868 .vendor = "Atmel",
8869 .name = "unknown Atmel SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008870 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008871 .manufacture_id = ATMEL_ID,
8872 .model_id = GENERIC_DEVICE_ID,
8873 .total_size = 0,
8874 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00008875 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008876 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008877 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008878 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008879 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00008880 },
8881
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008882 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00008883 .vendor = "Eon",
8884 .name = "unknown Eon SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008885 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008886 .manufacture_id = EON_ID_NOPREFIX,
8887 .model_id = GENERIC_DEVICE_ID,
8888 .total_size = 0,
8889 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00008890 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008891 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008892 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008893 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008894 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00008895 },
8896
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008897 {
8898 .vendor = "Macronix",
8899 .name = "unknown Macronix SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008900 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008901 .manufacture_id = MACRONIX_ID,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008902 .model_id = GENERIC_DEVICE_ID,
8903 .total_size = 0,
8904 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00008905 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008906 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008907 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008908 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008909 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00008910 },
8911
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008912 {
8913 .vendor = "PMC",
8914 .name = "unknown PMC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008915 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008916 .manufacture_id = PMC_ID,
8917 .model_id = GENERIC_DEVICE_ID,
8918 .total_size = 0,
8919 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00008920 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008921 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008922 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008923 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008924 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00008925 },
8926
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008927 {
8928 .vendor = "SST",
8929 .name = "unknown SST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008930 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008931 .manufacture_id = SST_ID,
8932 .model_id = GENERIC_DEVICE_ID,
8933 .total_size = 0,
8934 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00008935 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008936 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008937 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008938 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008939 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00008940 },
8941
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008942 {
8943 .vendor = "ST",
8944 .name = "unknown ST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008945 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008946 .manufacture_id = ST_ID,
8947 .model_id = GENERIC_DEVICE_ID,
8948 .total_size = 0,
8949 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00008950 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008951 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008952 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008953 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008954 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00008955 },
Uwe Hermannfc425e82008-03-16 02:06:25 +00008956
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00008957 {
Sean Nelson118e1d62009-11-24 02:08:11 +00008958 .vendor = "Sanyo",
8959 .name = "unknown Sanyo SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008960 .bustype = BUS_SPI,
Sean Nelson118e1d62009-11-24 02:08:11 +00008961 .manufacture_id = SANYO_ID,
8962 .model_id = GENERIC_DEVICE_ID,
8963 .total_size = 0,
8964 .page_size = 256,
8965 .tested = TEST_BAD_PREW,
8966 .probe = probe_spi_rdid,
8967 .probe_timing = TIMING_ZERO,
Sean Nelson118e1d62009-11-24 02:08:11 +00008968 .write = NULL,
8969 .read = NULL,
8970 },
8971
8972 {
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00008973 .vendor = "Generic",
8974 .name = "unknown SPI chip (RDID)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008975 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00008976 .manufacture_id = GENERIC_MANUF_ID,
8977 .model_id = GENERIC_DEVICE_ID,
8978 .total_size = 0,
8979 .page_size = 256,
8980 .tested = TEST_BAD_PREW,
8981 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00008982 .write = NULL,
8983 },
8984 {
8985 .vendor = "Generic",
8986 .name = "unknown SPI chip (REMS)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008987 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00008988 .manufacture_id = GENERIC_MANUF_ID,
8989 .model_id = GENERIC_DEVICE_ID,
8990 .total_size = 0,
8991 .page_size = 256,
8992 .tested = TEST_BAD_PREW,
8993 .probe = probe_spi_rems,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00008994 .write = NULL,
8995 },
8996
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008997 { NULL }
Stephan Guilloux72cf5652009-04-21 01:46:07 +00008998};