blob: 473671397b7cabf746ca695e85bca0d803ee62f3 [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,
Steven Zakulec3603a282012-05-02 20:07:57 +0000548 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000549 .tested = TEST_UNTESTED,
550 .probe = probe_spi_rdid4,
551 .probe_timing = TIMING_ZERO,
552 .block_erasers =
553 {
554 {
555 .eraseblocks = {
556 {32 * 1024, 1},
557 {16 * 1024, 1},
558 {8 * 1024, 1},
559 {4 * 1024, 2},
560 },
561 .block_erase = spi_block_erase_d8,
562 }, {
563 .eraseblocks = { {64 * 1024, 1} },
564 .block_erase = spi_block_erase_c7,
565 }
566 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +0000567 .printlock = spi_prettyprint_status_register_amic_a25l05p,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000568 .unlock = spi_disable_blockprotect,
569 .write = spi_chip_write_256,
570 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000571 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000572 },
573
574 {
575 .vendor = "AMIC",
576 .name = "A25L05PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000577 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000578 .manufacture_id = AMIC_ID,
579 .model_id = AMIC_A25L05PU,
580 .total_size = 64,
581 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000582 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000583 .tested = TEST_UNTESTED,
584 .probe = probe_spi_rdid4,
585 .probe_timing = TIMING_ZERO,
586 .block_erasers =
587 {
588 {
589 .eraseblocks = {
590 {4 * 1024, 2},
591 {8 * 1024, 1},
592 {16 * 1024, 1},
593 {32 * 1024, 1},
594 },
595 .block_erase = spi_block_erase_d8,
596 }, {
597 .eraseblocks = { {64 * 1024, 1} },
598 .block_erase = spi_block_erase_c7,
599 }
600 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +0000601 .printlock = spi_prettyprint_status_register_amic_a25l05p,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000602 .unlock = spi_disable_blockprotect,
603 .write = spi_chip_write_256,
604 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000605 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000606 },
607
608 {
609 .vendor = "AMIC",
610 .name = "A25L10PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000611 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000612 .manufacture_id = AMIC_ID,
613 .model_id = AMIC_A25L10PT,
614 .total_size = 128,
615 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000616 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000617 .tested = TEST_UNTESTED,
618 .probe = probe_spi_rdid4,
619 .probe_timing = TIMING_ZERO,
620 .block_erasers =
621 {
622 {
623 .eraseblocks = {
624 {64 * 1024, 1},
625 {32 * 1024, 1},
626 {16 * 1024, 1},
627 {8 * 1024, 1},
628 {4 * 1024, 2},
629 },
630 .block_erase = spi_block_erase_d8,
631 }, {
632 .eraseblocks = { {128 * 1024, 1} },
633 .block_erase = spi_block_erase_c7,
634 }
635 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +0000636 .printlock = spi_prettyprint_status_register_amic_a25l05p,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000637 .unlock = spi_disable_blockprotect,
638 .write = spi_chip_write_256,
639 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000640 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000641 },
642
643 {
644 .vendor = "AMIC",
645 .name = "A25L10PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000646 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000647 .manufacture_id = AMIC_ID,
648 .model_id = AMIC_A25L10PU,
649 .total_size = 128,
650 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000651 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000652 .tested = TEST_UNTESTED,
653 .probe = probe_spi_rdid4,
654 .probe_timing = TIMING_ZERO,
655 .block_erasers =
656 {
657 {
658 .eraseblocks = {
659 {4 * 1024, 2},
660 {8 * 1024, 1},
661 {16 * 1024, 1},
662 {32 * 1024, 1},
663 {64 * 1024, 1},
664 },
665 .block_erase = spi_block_erase_d8,
666 }, {
667 .eraseblocks = { {128 * 1024, 1} },
668 .block_erase = spi_block_erase_c7,
669 }
670 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +0000671 .printlock = spi_prettyprint_status_register_amic_a25l05p,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000672 .unlock = spi_disable_blockprotect,
673 .write = spi_chip_write_256,
674 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000675 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000676 },
677
678 {
679 .vendor = "AMIC",
680 .name = "A25L20PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000681 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000682 .manufacture_id = AMIC_ID,
683 .model_id = AMIC_A25L20PT,
684 .total_size = 256,
685 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000686 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000687 .tested = TEST_UNTESTED,
688 .probe = probe_spi_rdid4,
689 .probe_timing = TIMING_ZERO,
690 .block_erasers =
691 {
692 {
693 .eraseblocks = {
694 {64 * 1024, 3},
695 {32 * 1024, 1},
696 {16 * 1024, 1},
697 {8 * 1024, 1},
698 {4 * 1024, 2},
699 },
700 .block_erase = spi_block_erase_d8,
701 }, {
702 .eraseblocks = { {256 * 1024, 1} },
703 .block_erase = spi_block_erase_c7,
704 }
705 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +0000706 .printlock = spi_prettyprint_status_register_amic_a25l05p,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000707 .unlock = spi_disable_blockprotect,
708 .write = spi_chip_write_256,
709 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000710 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000711 },
712
713 {
714 .vendor = "AMIC",
715 .name = "A25L20PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000716 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000717 .manufacture_id = AMIC_ID,
718 .model_id = AMIC_A25L20PU,
719 .total_size = 256,
720 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000721 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000722 .tested = TEST_UNTESTED,
723 .probe = probe_spi_rdid4,
724 .probe_timing = TIMING_ZERO,
725 .block_erasers =
726 {
727 {
728 .eraseblocks = {
729 {4 * 1024, 2},
730 {8 * 1024, 1},
731 {16 * 1024, 1},
732 {32 * 1024, 1},
733 {64 * 1024, 3},
734 },
735 .block_erase = spi_block_erase_d8,
736 }, {
737 .eraseblocks = { {256 * 1024, 1} },
738 .block_erase = spi_block_erase_c7,
739 }
740 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +0000741 .printlock = spi_prettyprint_status_register_amic_a25l05p,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000742 .unlock = spi_disable_blockprotect,
743 .write = spi_chip_write_256,
744 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000745 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000746 },
747
748 /* The A25L40P{T,U} chips are distinguished by their
749 * erase block layouts, but without any distinction in RDID.
750 * This inexplicable quirk was verified by Rudolf Marek
751 * and discussed on the flashrom mailing list on 2010-07-12.
752 */
753 {
754 .vendor = "AMIC",
755 .name = "A25L40PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000756 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000757 .manufacture_id = AMIC_ID,
758 .model_id = AMIC_A25L40PT,
759 .total_size = 512,
760 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000761 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000762 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000763 .probe = probe_spi_rdid4,
764 .probe_timing = TIMING_ZERO,
765 .block_erasers =
766 {
767 {
768 .eraseblocks = {
769 {64 * 1024, 7},
770 {32 * 1024, 1},
771 {16 * 1024, 1},
772 {8 * 1024, 1},
773 {4 * 1024, 2},
774 },
775 .block_erase = spi_block_erase_d8,
776 }, {
777 .eraseblocks = { {512 * 1024, 1} },
778 .block_erase = spi_block_erase_c7,
779 }
780 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +0000781 .printlock = spi_prettyprint_status_register_amic_a25l40p,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000782 .unlock = spi_disable_blockprotect,
783 .write = spi_chip_write_256,
784 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000785 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000786 },
787
788 {
789 .vendor = "AMIC",
790 .name = "A25L40PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000791 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000792 .manufacture_id = AMIC_ID,
793 .model_id = AMIC_A25L40PU,
794 .total_size = 512,
795 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000796 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000797 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000798 .probe = probe_spi_rdid4,
799 .probe_timing = TIMING_ZERO,
800 .block_erasers =
801 {
802 {
803 .eraseblocks = {
804 {4 * 1024, 2},
805 {8 * 1024, 1},
806 {16 * 1024, 1},
807 {32 * 1024, 1},
808 {64 * 1024, 7},
809 },
810 .block_erase = spi_block_erase_d8,
811 }, {
812 .eraseblocks = { {512 * 1024, 1} },
813 .block_erase = spi_block_erase_c7,
814 }
815 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +0000816 .printlock = spi_prettyprint_status_register_amic_a25l40p,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000817 .unlock = spi_disable_blockprotect,
818 .write = spi_chip_write_256,
819 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000820 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000821 },
822
823 {
824 .vendor = "AMIC",
825 .name = "A25L80P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000826 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000827 .manufacture_id = AMIC_ID,
828 .model_id = AMIC_A25L80P,
829 .total_size = 1024,
830 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000831 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000832 .tested = TEST_OK_PRE,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000833 .probe = probe_spi_rdid4,
834 .probe_timing = TIMING_ZERO,
835 .block_erasers =
836 {
837 {
838 .eraseblocks = {
839 {4 * 1024, 2},
840 {8 * 1024, 1},
841 {16 * 1024, 1},
842 {32 * 1024, 1},
843 {64 * 1024, 15},
844 },
845 .block_erase = spi_block_erase_d8,
846 }, {
847 .eraseblocks = { {1024 * 1024, 1} },
848 .block_erase = spi_block_erase_c7,
849 }
850 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +0000851 .printlock = spi_prettyprint_status_register_amic_a25l40p,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000852 .unlock = spi_disable_blockprotect,
853 .write = spi_chip_write_256,
854 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000855 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000856 },
857
858 {
859 .vendor = "AMIC",
860 .name = "A25L16PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000861 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000862 .manufacture_id = AMIC_ID,
863 .model_id = AMIC_A25L16PT,
864 .total_size = 2048,
865 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000866 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000867 .tested = TEST_UNTESTED,
868 .probe = probe_spi_rdid4,
869 .probe_timing = TIMING_ZERO,
870 .block_erasers =
871 {
872 {
873 .eraseblocks = {
874 {64 * 1024, 31},
875 {32 * 1024, 1},
876 {16 * 1024, 1},
877 {8 * 1024, 1},
878 {4 * 1024, 2},
879 },
880 .block_erase = spi_block_erase_d8,
881 }, {
882 .eraseblocks = { {2048 * 1024, 1} },
883 .block_erase = spi_block_erase_60,
884 }, {
885 .eraseblocks = { {2048 * 1024, 1} },
886 .block_erase = spi_block_erase_c7,
887 }
888 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +0000889 .printlock = spi_prettyprint_status_register_amic_a25l40p,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000890 .unlock = spi_disable_blockprotect,
891 .write = spi_chip_write_256,
892 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000893 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000894 },
895
896 {
897 .vendor = "AMIC",
898 .name = "A25L16PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000899 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000900 .manufacture_id = AMIC_ID,
901 .model_id = AMIC_A25L16PU,
902 .total_size = 2048,
903 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000904 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000905 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000906 .probe = probe_spi_rdid4,
907 .probe_timing = TIMING_ZERO,
908 .block_erasers =
909 {
910 {
911 .eraseblocks = {
912 {4 * 1024, 2},
913 {8 * 1024, 1},
914 {16 * 1024, 1},
915 {32 * 1024, 1},
916 {64 * 1024, 31},
917 },
918 .block_erase = spi_block_erase_d8,
919 }, {
920 .eraseblocks = { {2048 * 1024, 1} },
921 .block_erase = spi_block_erase_60,
922 }, {
923 .eraseblocks = { {2048 * 1024, 1} },
924 .block_erase = spi_block_erase_c7,
925 }
926 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +0000927 .printlock = spi_prettyprint_status_register_amic_a25l40p,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000928 .unlock = spi_disable_blockprotect,
929 .write = spi_chip_write_256,
930 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000931 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000932 },
933
934 {
935 .vendor = "AMIC",
Dan Lenski11617122010-07-29 15:00:40 +0000936 .name = "A25L512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000937 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +0000938 .manufacture_id = AMIC_ID_NOPREFIX,
939 .model_id = AMIC_A25L512,
940 .total_size = 64,
941 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +0000942 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +0000943 .tested = TEST_UNTESTED,
944 .probe = probe_spi_rdid,
945 .probe_timing = TIMING_ZERO,
946 .block_erasers =
947 {
948 {
949 .eraseblocks = { { 4 * 1024, 16 } },
950 .block_erase = spi_block_erase_20,
951 }, {
952 .eraseblocks = { { 64 * 1024, 1 } },
953 .block_erase = spi_block_erase_d8,
954 }, {
955 .eraseblocks = { { 64 * 1024, 1 } },
956 .block_erase = spi_block_erase_c7,
957 }
958 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +0000959 .printlock = spi_prettyprint_status_register_amic_a25l40p,
Dan Lenski11617122010-07-29 15:00:40 +0000960 .unlock = spi_disable_blockprotect,
961 .write = spi_chip_write_256,
962 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000963 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +0000964 },
965
966 {
967 .vendor = "AMIC",
968 .name = "A25L010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000969 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +0000970 .manufacture_id = AMIC_ID_NOPREFIX,
971 .model_id = AMIC_A25L010,
972 .total_size = 128,
973 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +0000974 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +0000975 .tested = TEST_UNTESTED,
976 .probe = probe_spi_rdid,
977 .probe_timing = TIMING_ZERO,
978 .block_erasers =
979 {
980 {
981 .eraseblocks = { { 4 * 1024, 32 } },
982 .block_erase = spi_block_erase_20,
983 }, {
984 .eraseblocks = { { 64 * 1024, 2 } },
985 .block_erase = spi_block_erase_d8,
986 }, {
987 .eraseblocks = { { 128 * 1024, 1 } },
988 .block_erase = spi_block_erase_c7,
989 }
990 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +0000991 .printlock = spi_prettyprint_status_register_amic_a25l40p,
Dan Lenski11617122010-07-29 15:00:40 +0000992 .unlock = spi_disable_blockprotect,
993 .write = spi_chip_write_256,
994 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000995 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +0000996 },
997
998 {
999 .vendor = "AMIC",
1000 .name = "A25L020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001001 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001002 .manufacture_id = AMIC_ID_NOPREFIX,
1003 .model_id = AMIC_A25L020,
1004 .total_size = 256,
1005 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001006 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001007 .tested = TEST_UNTESTED,
1008 .probe = probe_spi_rdid,
1009 .probe_timing = TIMING_ZERO,
1010 .block_erasers =
1011 {
1012 {
1013 .eraseblocks = { { 4 * 1024, 64 } },
1014 .block_erase = spi_block_erase_20,
1015 }, {
1016 .eraseblocks = { { 64 * 1024, 4 } },
1017 .block_erase = spi_block_erase_d8,
1018 }, {
1019 .eraseblocks = { { 256 * 1024, 1 } },
1020 .block_erase = spi_block_erase_c7,
1021 }
1022 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001023 .printlock = spi_prettyprint_status_register_amic_a25l40p,
Dan Lenski11617122010-07-29 15:00:40 +00001024 .unlock = spi_disable_blockprotect,
1025 .write = spi_chip_write_256,
1026 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001027 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001028 },
1029
1030 {
1031 .vendor = "AMIC",
1032 .name = "A25L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001033 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001034 .manufacture_id = AMIC_ID_NOPREFIX,
1035 .model_id = AMIC_A25L040,
1036 .total_size = 512,
1037 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001038 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001039 .tested = TEST_UNTESTED,
1040 .probe = probe_spi_rdid,
1041 .probe_timing = TIMING_ZERO,
1042 .block_erasers =
1043 {
1044 {
1045 .eraseblocks = { { 4 * 1024, 128 } },
1046 .block_erase = spi_block_erase_20,
1047 }, {
1048 .eraseblocks = { { 64 * 1024, 8 } },
1049 .block_erase = spi_block_erase_d8,
1050 }, {
1051 .eraseblocks = { { 512 * 1024, 1 } },
1052 .block_erase = spi_block_erase_c7,
1053 }
1054 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001055 .printlock = spi_prettyprint_status_register_amic_a25l40p,
Dan Lenski11617122010-07-29 15:00:40 +00001056 .unlock = spi_disable_blockprotect,
1057 .write = spi_chip_write_256,
1058 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001059 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001060 },
1061
1062 {
1063 .vendor = "AMIC",
1064 .name = "A25L080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001065 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001066 .manufacture_id = AMIC_ID_NOPREFIX,
1067 .model_id = AMIC_A25L080,
1068 .total_size = 1024,
1069 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001070 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001071 .tested = TEST_UNTESTED,
1072 .probe = probe_spi_rdid,
1073 .probe_timing = TIMING_ZERO,
1074 .block_erasers =
1075 {
1076 {
1077 .eraseblocks = { { 4 * 1024, 256 } },
1078 .block_erase = spi_block_erase_20,
1079 }, {
1080 .eraseblocks = { { 64 * 1024, 16 } },
1081 .block_erase = spi_block_erase_d8,
1082 }, {
1083 .eraseblocks = { { 1024 * 1024, 1 } },
1084 .block_erase = spi_block_erase_c7,
1085 }
1086 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001087 .printlock = spi_prettyprint_status_register_amic_a25l40p,
Dan Lenski11617122010-07-29 15:00:40 +00001088 .unlock = spi_disable_blockprotect,
1089 .write = spi_chip_write_256,
1090 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001091 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001092 },
1093
1094 {
1095 .vendor = "AMIC",
1096 .name = "A25L016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001097 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001098 .manufacture_id = AMIC_ID_NOPREFIX,
1099 .model_id = AMIC_A25L016,
1100 .total_size = 2048,
1101 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001102 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001103 .tested = TEST_UNTESTED,
1104 .probe = probe_spi_rdid,
1105 .probe_timing = TIMING_ZERO,
1106 .block_erasers =
1107 {
1108 {
1109 .eraseblocks = { { 4 * 1024, 512 } },
1110 .block_erase = spi_block_erase_20,
1111 }, {
1112 .eraseblocks = { { 64 * 1024, 32 } },
1113 .block_erase = spi_block_erase_d8,
1114 }, {
1115 .eraseblocks = { { 2048 * 1024, 1 } },
1116 .block_erase = spi_block_erase_c7,
1117 }
1118 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001119 .printlock = spi_prettyprint_status_register_amic_a25l40p,
Dan Lenski11617122010-07-29 15:00:40 +00001120 .unlock = spi_disable_blockprotect,
1121 .write = spi_chip_write_256,
1122 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001123 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001124 },
1125
1126 {
1127 .vendor = "AMIC",
1128 .name = "A25L032",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001129 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001130 .manufacture_id = AMIC_ID_NOPREFIX,
1131 .model_id = AMIC_A25L032,
1132 .total_size = 4096,
1133 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001134 /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */
1135 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Dan Lenski11617122010-07-29 15:00:40 +00001136 .tested = TEST_UNTESTED,
1137 .probe = probe_spi_rdid,
1138 .probe_timing = TIMING_ZERO,
1139 .block_erasers =
1140 {
1141 {
1142 .eraseblocks = { { 4 * 1024, 1024 } },
1143 .block_erase = spi_block_erase_20,
1144 }, {
1145 .eraseblocks = { { 64 * 1024, 64 } },
1146 .block_erase = spi_block_erase_52,
1147 }, {
1148 .eraseblocks = { { 64 * 1024, 64 } },
1149 .block_erase = spi_block_erase_d8,
1150 }, {
1151 .eraseblocks = { { 4096 * 1024, 1 } },
1152 .block_erase = spi_block_erase_60,
1153 }, {
1154 .eraseblocks = { { 4096 * 1024, 1 } },
1155 .block_erase = spi_block_erase_c7,
1156 }
1157 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001158 .printlock = spi_prettyprint_status_register_amic_a25l032,
Dan Lenski11617122010-07-29 15:00:40 +00001159 .unlock = NULL, /* Two status reg bytes (read with 0x35 and 0x05) */
1160 .write = spi_chip_write_256,
1161 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001162 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001163 },
1164
1165 {
1166 .vendor = "AMIC",
1167 .name = "A25LQ032",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001168 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001169 .manufacture_id = AMIC_ID_NOPREFIX,
1170 .model_id = AMIC_A25LQ032,
1171 .total_size = 4096,
1172 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001173 /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */
1174 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Dan Lenski11617122010-07-29 15:00:40 +00001175 .tested = TEST_UNTESTED,
1176 .probe = probe_spi_rdid,
1177 .probe_timing = TIMING_ZERO,
1178 .block_erasers =
1179 {
1180 {
1181 .eraseblocks = { { 4 * 1024, 1024 } },
1182 .block_erase = spi_block_erase_20,
1183 }, {
1184 .eraseblocks = { { 64 * 1024, 64 } },
1185 .block_erase = spi_block_erase_52,
1186 }, {
1187 .eraseblocks = { { 64 * 1024, 64 } },
1188 .block_erase = spi_block_erase_d8,
1189 }, {
1190 .eraseblocks = { { 4096 * 1024, 1 } },
1191 .block_erase = spi_block_erase_60,
1192 }, {
1193 .eraseblocks = { { 4096 * 1024, 1 } },
1194 .block_erase = spi_block_erase_c7,
1195 }
1196 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001197 .printlock = spi_prettyprint_status_register_amic_a25lq032,
Dan Lenski11617122010-07-29 15:00:40 +00001198 .unlock = NULL, /* Two status reg bytes (read with 0x35 and 0x05) */
1199 .write = spi_chip_write_256,
1200 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001201 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001202 },
1203
1204 {
1205 .vendor = "AMIC",
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001206 .name = "A29002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001207 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001208 .manufacture_id = AMIC_ID_NOPREFIX,
1209 .model_id = AMIC_A29002B,
1210 .total_size = 256,
1211 .page_size = 64 * 1024,
1212 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
1213 .tested = TEST_UNTESTED,
1214 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001215 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001216 .block_erasers =
1217 {
1218 {
1219 .eraseblocks = {
1220 {16 * 1024, 1},
1221 {8 * 1024, 2},
1222 {32 * 1024, 1},
1223 {64 * 1024, 3},
1224 },
1225 .block_erase = erase_sector_jedec,
1226 }, {
1227 .eraseblocks = { {256 * 1024, 1} },
1228 .block_erase = erase_chip_block_jedec,
1229 },
1230 },
1231 .write = write_jedec_1,
1232 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001233 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001234 },
1235
1236 {
1237 .vendor = "AMIC",
1238 .name = "A29002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001239 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001240 .manufacture_id = AMIC_ID_NOPREFIX,
1241 .model_id = AMIC_A29002T,
1242 .total_size = 256,
1243 .page_size = 64 * 1024,
1244 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00001245 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001246 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001247 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001248 .block_erasers =
1249 {
1250 {
1251 .eraseblocks = {
1252 {64 * 1024, 3},
1253 {32 * 1024, 1},
1254 {8 * 1024, 2},
1255 {16 * 1024, 1},
1256 },
1257 .block_erase = erase_sector_jedec,
1258 }, {
1259 .eraseblocks = { {256 * 1024, 1} },
1260 .block_erase = erase_chip_block_jedec,
1261 },
1262 },
1263 .write = write_jedec_1,
1264 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001265 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001266 },
1267
1268 {
1269 .vendor = "AMIC",
1270 .name = "A29040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001271 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001272 .manufacture_id = AMIC_ID_NOPREFIX,
1273 .model_id = AMIC_A29040B,
1274 .total_size = 512,
1275 .page_size = 64 * 1024,
1276 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
1277 .tested = TEST_UNTESTED,
1278 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001279 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001280 .block_erasers =
1281 {
1282 {
1283 .eraseblocks = { {64 * 1024, 8} },
1284 .block_erase = erase_sector_jedec,
1285 }, {
1286 .eraseblocks = { {512 * 1024, 1} },
1287 .block_erase = erase_chip_block_jedec,
1288 },
1289 },
1290 .write = write_jedec_1,
1291 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001292 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001293 },
1294
1295 {
1296 .vendor = "AMIC",
1297 .name = "A49LF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001298 .bustype = BUS_LPC,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001299 .manufacture_id = AMIC_ID_NOPREFIX,
1300 .model_id = AMIC_A49LF040A,
1301 .total_size = 512,
1302 .page_size = 64 * 1024,
1303 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +00001304 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001305 .probe = probe_jedec,
1306 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
1307 .block_erasers =
1308 {
1309 {
1310 .eraseblocks = { {64 * 1024, 8} },
1311 .block_erase = erase_block_jedec,
1312 }, {
1313 .eraseblocks = { {512 * 1024, 1} },
1314 .block_erase = erase_chip_block_jedec,
1315 }
1316 },
1317 .unlock = unlock_49fl00x,
1318 .write = write_jedec_1,
1319 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001320 .voltage = {3000, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001321 },
1322
1323 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001324 .vendor = "Atmel",
1325 .name = "AT25DF021",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001326 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001327 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001328 .model_id = ATMEL_AT25DF021,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001329 .total_size = 256,
1330 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001331 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1332 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001333 .tested = TEST_UNTESTED,
1334 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001335 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001336 .block_erasers =
1337 {
1338 {
1339 .eraseblocks = { {4 * 1024, 64} },
1340 .block_erase = spi_block_erase_20,
1341 }, {
1342 .eraseblocks = { {32 * 1024, 8} },
1343 .block_erase = spi_block_erase_52,
1344 }, {
1345 .eraseblocks = { {64 * 1024, 4} },
1346 .block_erase = spi_block_erase_d8,
1347 }, {
1348 .eraseblocks = { {256 * 1024, 1} },
1349 .block_erase = spi_block_erase_60,
1350 }, {
1351 .eraseblocks = { {256 * 1024, 1} },
1352 .block_erase = spi_block_erase_c7,
1353 }
1354 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001355 .printlock = spi_prettyprint_status_register_at25df,
1356 .unlock = spi_disable_blockprotect_at25df,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001357 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001358 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001359 .voltage = {2700, 3600}, /* 2.3-3.6V & 2.7-3.6V models available */
FENG yu ningff692fb2008-12-08 18:15:10 +00001360 },
1361
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001362 {
1363 .vendor = "Atmel",
1364 .name = "AT25DF041A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001365 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001366 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001367 .model_id = ATMEL_AT25DF041A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001368 .total_size = 512,
1369 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001370 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001371 .tested = TEST_UNTESTED,
1372 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001373 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001374 .block_erasers =
1375 {
1376 {
1377 .eraseblocks = { {4 * 1024, 128} },
1378 .block_erase = spi_block_erase_20,
1379 }, {
1380 .eraseblocks = { {32 * 1024, 16} },
1381 .block_erase = spi_block_erase_52,
1382 }, {
1383 .eraseblocks = { {64 * 1024, 8} },
1384 .block_erase = spi_block_erase_d8,
1385 }, {
1386 .eraseblocks = { {512 * 1024, 1} },
1387 .block_erase = spi_block_erase_60,
1388 }, {
1389 .eraseblocks = { {512 * 1024, 1} },
1390 .block_erase = spi_block_erase_c7,
1391 }
1392 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001393 .printlock = spi_prettyprint_status_register_at25df,
1394 .unlock = spi_disable_blockprotect_at25df,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001395 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001396 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001397 .voltage = {2700, 3600}, /* 2.3-3.6V & 2.7-3.6V models available */
FENG yu ningff692fb2008-12-08 18:15:10 +00001398 },
1399
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001400 {
1401 .vendor = "Atmel",
1402 .name = "AT25DF081",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001403 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001404 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001405 .model_id = ATMEL_AT25DF081,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001406 .total_size = 1024,
1407 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001408 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001409 .tested = TEST_UNTESTED,
1410 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001411 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001412 .block_erasers =
1413 {
1414 {
1415 .eraseblocks = { {4 * 1024, 256} },
1416 .block_erase = spi_block_erase_20,
1417 }, {
1418 .eraseblocks = { {32 * 1024, 32} },
1419 .block_erase = spi_block_erase_52,
1420 }, {
1421 .eraseblocks = { {64 * 1024, 16} },
1422 .block_erase = spi_block_erase_d8,
1423 }, {
1424 .eraseblocks = { {1024 * 1024, 1} },
1425 .block_erase = spi_block_erase_60,
1426 }, {
1427 .eraseblocks = { {1024 * 1024, 1} },
1428 .block_erase = spi_block_erase_c7,
1429 }
1430 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001431 .printlock = spi_prettyprint_status_register_at25df,
1432 .unlock = spi_disable_blockprotect_at25df,
1433 .write = spi_chip_write_256,
1434 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001435 .voltage = {1600, 2000}, /* Datasheet says range is 1.65-1.95 V */
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001436 },
1437
1438 {
1439 .vendor = "Atmel",
1440 .name = "AT25DF081A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001441 .bustype = BUS_SPI,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001442 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001443 .model_id = ATMEL_AT25DF081A,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001444 .total_size = 1024,
1445 .page_size = 256,
1446 .feature_bits = FEATURE_WRSR_WREN,
1447 .tested = TEST_UNTESTED,
1448 .probe = probe_spi_rdid,
1449 .probe_timing = TIMING_ZERO,
1450 .block_erasers =
1451 {
1452 {
1453 .eraseblocks = { {4 * 1024, 256} },
1454 .block_erase = spi_block_erase_20,
1455 }, {
1456 .eraseblocks = { {32 * 1024, 32} },
1457 .block_erase = spi_block_erase_52,
1458 }, {
1459 .eraseblocks = { {64 * 1024, 16} },
1460 .block_erase = spi_block_erase_d8,
1461 }, {
1462 .eraseblocks = { {1024 * 1024, 1} },
1463 .block_erase = spi_block_erase_60,
1464 }, {
1465 .eraseblocks = { {1024 * 1024, 1} },
1466 .block_erase = spi_block_erase_c7,
1467 }
1468 },
1469 .printlock = spi_prettyprint_status_register_at25df_sec,
1470 .unlock = spi_disable_blockprotect_at25df_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001471 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001472 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001473 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001474 },
1475
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001476 {
1477 .vendor = "Atmel",
1478 .name = "AT25DF161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001479 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001480 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001481 .model_id = ATMEL_AT25DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001482 .total_size = 2048,
1483 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001484 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner2abab942012-04-27 20:41:23 +00001485 .tested = TEST_OK_PROBE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001486 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001487 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001488 .block_erasers =
1489 {
1490 {
1491 .eraseblocks = { {4 * 1024, 512} },
1492 .block_erase = spi_block_erase_20,
1493 }, {
1494 .eraseblocks = { {32 * 1024, 64} },
1495 .block_erase = spi_block_erase_52,
1496 }, {
1497 .eraseblocks = { {64 * 1024, 32} },
1498 .block_erase = spi_block_erase_d8,
1499 }, {
1500 .eraseblocks = { {2 * 1024 * 1024, 1} },
1501 .block_erase = spi_block_erase_60,
1502 }, {
1503 .eraseblocks = { {2 * 1024 * 1024, 1} },
1504 .block_erase = spi_block_erase_c7,
1505 }
1506 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001507 .printlock = spi_prettyprint_status_register_at25df_sec,
1508 .unlock = spi_disable_blockprotect_at25df_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001509 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001510 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001511 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001512 },
1513
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001514 {
1515 .vendor = "Atmel",
1516 .name = "AT25DF321",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001517 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001518 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001519 .model_id = ATMEL_AT25DF321,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001520 .total_size = 4096,
1521 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001522 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd06d9412011-06-12 19:47:55 +00001523 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001524 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001525 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001526 .block_erasers =
1527 {
1528 {
1529 .eraseblocks = { {4 * 1024, 1024} },
1530 .block_erase = spi_block_erase_20,
1531 }, {
1532 .eraseblocks = { {32 * 1024, 128} },
1533 .block_erase = spi_block_erase_52,
1534 }, {
1535 .eraseblocks = { {64 * 1024, 64} },
1536 .block_erase = spi_block_erase_d8,
1537 }, {
1538 .eraseblocks = { {4 * 1024 * 1024, 1} },
1539 .block_erase = spi_block_erase_60,
1540 }, {
1541 .eraseblocks = { {4 * 1024 * 1024, 1} },
1542 .block_erase = spi_block_erase_c7,
1543 }
1544 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001545 .printlock = spi_prettyprint_status_register_at25df,
1546 .unlock = spi_disable_blockprotect_at25df,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001547 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001548 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001549 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001550 },
1551
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001552 {
1553 .vendor = "Atmel",
1554 .name = "AT25DF321A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001555 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001556 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001557 .model_id = ATMEL_AT25DF321A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001558 .total_size = 4096,
1559 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001560 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1561 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00001562 .tested = TEST_OK_PROBE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001563 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001564 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001565 .block_erasers =
1566 {
1567 {
1568 .eraseblocks = { {4 * 1024, 1024} },
1569 .block_erase = spi_block_erase_20,
1570 }, {
1571 .eraseblocks = { {32 * 1024, 128} },
1572 .block_erase = spi_block_erase_52,
1573 }, {
1574 .eraseblocks = { {64 * 1024, 64} },
1575 .block_erase = spi_block_erase_d8,
1576 }, {
1577 .eraseblocks = { {4 * 1024 * 1024, 1} },
1578 .block_erase = spi_block_erase_60,
1579 }, {
1580 .eraseblocks = { {4 * 1024 * 1024, 1} },
1581 .block_erase = spi_block_erase_c7,
1582 }
1583 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001584 .printlock = spi_prettyprint_status_register_at25df_sec,
1585 .unlock = spi_disable_blockprotect_at25df_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001586 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001587 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001588 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001589 },
1590
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001591 {
1592 .vendor = "Atmel",
Paul Menzelac427b22012-02-16 21:07:07 +00001593 .name = "AT25DF641(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001594 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001595 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001596 .model_id = ATMEL_AT25DF641,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001597 .total_size = 8192,
1598 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001599 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001600 .tested = TEST_UNTESTED,
1601 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001602 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001603 .block_erasers =
1604 {
1605 {
1606 .eraseblocks = { {4 * 1024, 2048} },
1607 .block_erase = spi_block_erase_20,
1608 }, {
1609 .eraseblocks = { {32 * 1024, 256} },
1610 .block_erase = spi_block_erase_52,
1611 }, {
1612 .eraseblocks = { {64 * 1024, 128} },
1613 .block_erase = spi_block_erase_d8,
1614 }, {
1615 .eraseblocks = { {8 * 1024 * 1024, 1} },
1616 .block_erase = spi_block_erase_60,
1617 }, {
1618 .eraseblocks = { {8 * 1024 * 1024, 1} },
1619 .block_erase = spi_block_erase_c7,
1620 }
1621 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001622 .printlock = spi_prettyprint_status_register_at25df_sec,
1623 .unlock = spi_disable_blockprotect_at25df_sec,
1624 .write = spi_chip_write_256,
1625 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001626 .voltage = {2700, 3600},
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001627 },
1628
1629 {
1630 .vendor = "Atmel",
1631 .name = "AT25DQ161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001632 .bustype = BUS_SPI,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001633 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001634 .model_id = ATMEL_AT25DQ161,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001635 .total_size = 2048,
1636 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001637 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1638 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001639 .tested = TEST_UNTESTED,
1640 .probe = probe_spi_rdid,
1641 .probe_timing = TIMING_ZERO,
1642 .block_erasers =
1643 {
1644 {
1645 .eraseblocks = { {4 * 1024, 512} },
1646 .block_erase = spi_block_erase_20,
1647 }, {
1648 .eraseblocks = { {32 * 1024, 64} },
1649 .block_erase = spi_block_erase_52,
1650 }, {
1651 .eraseblocks = { {64 * 1024, 32} },
1652 .block_erase = spi_block_erase_d8,
1653 }, {
1654 .eraseblocks = { {2 * 1024 * 1024, 1} },
1655 .block_erase = spi_block_erase_60,
1656 }, {
1657 .eraseblocks = { {2 * 1024 * 1024, 1} },
1658 .block_erase = spi_block_erase_c7,
1659 }
1660 },
1661 .printlock = spi_prettyprint_status_register_at25df_sec,
1662 .unlock = spi_disable_blockprotect_at25df_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001663 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001664 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001665 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001666 },
1667
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001668 {
1669 .vendor = "Atmel",
1670 .name = "AT25F512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001671 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001672 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001673 .model_id = ATMEL_AT25F512B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001674 .total_size = 64,
1675 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001676 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1677 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001678 .tested = TEST_UNTESTED,
1679 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001680 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001681 .block_erasers =
1682 {
1683 {
1684 .eraseblocks = { {4 * 1024, 16} },
1685 .block_erase = spi_block_erase_20,
1686 }, {
1687 .eraseblocks = { {32 * 1024, 2} },
1688 .block_erase = spi_block_erase_52,
1689 }, {
1690 .eraseblocks = { {32 * 1024, 2} },
1691 .block_erase = spi_block_erase_d8,
1692 }, {
1693 .eraseblocks = { {64 * 1024, 1} },
1694 .block_erase = spi_block_erase_60,
1695 }, {
1696 .eraseblocks = { {64 * 1024, 1} },
1697 .block_erase = spi_block_erase_c7,
1698 }
1699 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001700 .printlock = spi_prettyprint_status_register_at25f,
1701 .unlock = spi_disable_blockprotect_at25f,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001702 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001703 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001704 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001705 },
1706
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001707 {
1708 .vendor = "Atmel",
1709 .name = "AT25FS010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001710 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001711 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001712 .model_id = ATMEL_AT25FS010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001713 .total_size = 128,
1714 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001715 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001716 .tested = TEST_UNTESTED,
1717 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001718 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001719 .block_erasers =
1720 {
1721 {
1722 .eraseblocks = { {4 * 1024, 32} },
1723 .block_erase = spi_block_erase_20,
1724 }, {
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001725 .eraseblocks = { {4 * 1024, 32} },
1726 .block_erase = spi_block_erase_d7,
1727 }, {
Sean Nelson89187292009-12-23 12:02:55 +00001728 .eraseblocks = { {32 * 1024, 4} },
1729 .block_erase = spi_block_erase_52,
1730 }, {
1731 .eraseblocks = { {32 * 1024, 4} },
1732 .block_erase = spi_block_erase_d8,
1733 }, {
1734 .eraseblocks = { {128 * 1024, 1} },
1735 .block_erase = spi_block_erase_60,
1736 }, {
1737 .eraseblocks = { {128 * 1024, 1} },
1738 .block_erase = spi_block_erase_c7,
1739 }
1740 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001741 .printlock = spi_prettyprint_status_register_at25fs010,
1742 .unlock = spi_disable_blockprotect_at25fs010,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001743 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001744 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001745 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001746 },
1747
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001748 {
1749 .vendor = "Atmel",
1750 .name = "AT25FS040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001751 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001752 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001753 .model_id = ATMEL_AT25FS040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001754 .total_size = 512,
1755 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001756 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001757 .tested = TEST_UNTESTED,
1758 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001759 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001760 .block_erasers =
1761 {
1762 {
1763 .eraseblocks = { {4 * 1024, 128} },
1764 .block_erase = spi_block_erase_20,
1765 }, {
1766 .eraseblocks = { {64 * 1024, 8} },
1767 .block_erase = spi_block_erase_52,
1768 }, {
1769 .eraseblocks = { {64 * 1024, 8} },
1770 .block_erase = spi_block_erase_d8,
1771 }, {
1772 .eraseblocks = { {512 * 1024, 1} },
1773 .block_erase = spi_block_erase_60,
1774 }, {
1775 .eraseblocks = { {512 * 1024, 1} },
1776 .block_erase = spi_block_erase_c7,
1777 }
1778 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001779 .printlock = spi_prettyprint_status_register_at25fs040,
1780 .unlock = spi_disable_blockprotect_at25fs040,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001781 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001782 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001783 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001784 },
1785
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001786 {
1787 .vendor = "Atmel",
1788 .name = "AT26DF041",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001789 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001790 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001791 .model_id = ATMEL_AT26DF041,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001792 .total_size = 512,
1793 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001794 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001795 .tested = TEST_UNTESTED,
1796 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001797 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001798 .block_erasers =
1799 {
1800 {
1801 .eraseblocks = { {4 * 1024, 128} },
1802 .block_erase = spi_block_erase_20,
1803 }
1804 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001805 .write = NULL /* Incompatible Page write */,
1806 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001807 .voltage = {2700, 3600}, /* 3.0-3.6V for higher speed, 2.7-3.6V normal */
FENG yu ningff692fb2008-12-08 18:15:10 +00001808 },
1809
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001810 {
1811 .vendor = "Atmel",
1812 .name = "AT26DF081A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001813 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001814 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001815 .model_id = ATMEL_AT26DF081A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001816 .total_size = 1024,
1817 .page_size = 256,
Mathias Krause2c3afa32011-01-17 07:45:54 +00001818 .feature_bits = FEATURE_WRSR_WREN,
1819 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001820 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001821 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001822 .block_erasers =
1823 {
1824 {
1825 .eraseblocks = { {4 * 1024, 256} },
1826 .block_erase = spi_block_erase_20,
1827 }, {
1828 .eraseblocks = { {32 * 1024, 32} },
1829 .block_erase = spi_block_erase_52,
1830 }, {
1831 .eraseblocks = { {64 * 1024, 16} },
1832 .block_erase = spi_block_erase_d8,
1833 }, {
1834 .eraseblocks = { {1024 * 1024, 1} },
1835 .block_erase = spi_block_erase_60,
1836 }, {
1837 .eraseblocks = { {1024 * 1024, 1} },
1838 .block_erase = spi_block_erase_c7,
1839 }
1840 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001841 .printlock = spi_prettyprint_status_register_atmel_at26df081a,
Mathias Krause2c3afa32011-01-17 07:45:54 +00001842 .unlock = spi_disable_blockprotect_at25df,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001843 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001844 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001845 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001846 },
1847
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001848 {
1849 .vendor = "Atmel",
1850 .name = "AT26DF161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001851 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001852 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001853 .model_id = ATMEL_AT26DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001854 .total_size = 2048,
1855 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001856 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001857 .tested = TEST_UNTESTED,
1858 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001859 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001860 .block_erasers =
1861 {
1862 {
1863 .eraseblocks = { {4 * 1024, 512} },
1864 .block_erase = spi_block_erase_20,
1865 }, {
1866 .eraseblocks = { {32 * 1024, 64} },
1867 .block_erase = spi_block_erase_52,
1868 }, {
1869 .eraseblocks = { {64 * 1024, 32} },
1870 .block_erase = spi_block_erase_d8,
1871 }, {
1872 .eraseblocks = { {2 * 1024 * 1024, 1} },
1873 .block_erase = spi_block_erase_60,
1874 }, {
1875 .eraseblocks = { {2 * 1024 * 1024, 1} },
1876 .block_erase = spi_block_erase_c7,
1877 }
1878 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001879 .printlock = spi_prettyprint_status_register_at25df,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00001880 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001881 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001882 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001883 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001884 },
1885
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001886 {
1887 .vendor = "Atmel",
1888 .name = "AT26DF161A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001889 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001890 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001891 .model_id = ATMEL_AT26DF161A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001892 .total_size = 2048,
1893 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001894 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001895 .tested = TEST_UNTESTED,
1896 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001897 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001898 .block_erasers =
1899 {
1900 {
1901 .eraseblocks = { {4 * 1024, 512} },
1902 .block_erase = spi_block_erase_20,
1903 }, {
1904 .eraseblocks = { {32 * 1024, 64} },
1905 .block_erase = spi_block_erase_52,
1906 }, {
1907 .eraseblocks = { {64 * 1024, 32} },
1908 .block_erase = spi_block_erase_d8,
1909 }, {
1910 .eraseblocks = { {2 * 1024 * 1024, 1} },
1911 .block_erase = spi_block_erase_60,
1912 }, {
1913 .eraseblocks = { {2 * 1024 * 1024, 1} },
1914 .block_erase = spi_block_erase_c7,
1915 }
1916 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001917 .printlock = spi_prettyprint_status_register_atmel_at26df081a,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00001918 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001919 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001920 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001921 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001922 },
1923
1924 /*The AT26DF321 has the same ID as the AT25DF321. */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001925 /*{
1926 .vendor = "Atmel",
1927 .name = "AT26DF321",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001928 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001929 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001930 .model_id = ATMEL_AT26DF321,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001931 .total_size = 4096,
1932 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001933 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001934 .tested = TEST_UNTESTED,
1935 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001936 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001937 .printlock = spi_prettyprint_status_register_atmel_at26df081a,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00001938 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001939 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001940 .read = spi_chip_read,
1941 },*/
FENG yu ningff692fb2008-12-08 18:15:10 +00001942
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001943 {
1944 .vendor = "Atmel",
1945 .name = "AT26F004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001946 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001947 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001948 .model_id = ATMEL_AT26F004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001949 .total_size = 512,
1950 .page_size = 256,
1951 .tested = TEST_UNTESTED,
Steven Zakulec3603a282012-05-02 20:07:57 +00001952 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001953 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001954 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001955 .block_erasers =
1956 {
1957 {
1958 .eraseblocks = { {4 * 1024, 128} },
1959 .block_erase = spi_block_erase_20,
1960 }, {
1961 .eraseblocks = { {32 * 1024, 16} },
1962 .block_erase = spi_block_erase_52,
1963 }, {
1964 .eraseblocks = { {64 * 1024, 8} },
1965 .block_erase = spi_block_erase_d8,
1966 }, {
1967 .eraseblocks = { {512 * 1024, 1} },
1968 .block_erase = spi_block_erase_60,
1969 }, {
1970 .eraseblocks = { {512 * 1024, 1} },
1971 .block_erase = spi_block_erase_c7,
1972 }
1973 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001974 .write = NULL /* Incompatible Page write */,
1975 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001976 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001977 },
1978
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001979 {
1980 .vendor = "Atmel",
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00001981 .name = "AT29C512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001982 .bustype = BUS_PARALLEL,
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00001983 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001984 .model_id = ATMEL_AT29C512,
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00001985 .total_size = 64,
1986 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00001987 .feature_bits = FEATURE_LONG_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +00001988 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +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 = { {64 * 1024, 1} },
1995 .block_erase = erase_chip_block_jedec,
1996 }
1997 },
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00001998 .write = write_jedec,
1999 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002000 .voltage = {4500, 5500},
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00002001 },
2002
2003 {
2004 .vendor = "Atmel",
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002005 .name = "AT29C010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002006 .bustype = BUS_PARALLEL,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002007 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002008 .model_id = ATMEL_AT29C010A,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002009 .total_size = 128,
2010 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00002011 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002012 .tested = TEST_OK_PRE,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002013 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00002014 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00002015 .block_erasers =
2016 {
2017 {
2018 .eraseblocks = { {128 * 1024, 1} },
2019 .block_erase = erase_chip_block_jedec,
2020 }
2021 },
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002022 .write = write_jedec, /* FIXME */
2023 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002024 .voltage = {4500, 5500},
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002025 },
2026
2027 {
2028 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002029 .name = "AT29C020",
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_AT29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002033 .total_size = 256,
2034 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002035 .feature_bits = FEATURE_LONG_RESET,
2036 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002037 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00002038 .probe_timing = 10000, /* 10ms */
Sean Nelson89187292009-12-23 12:02:55 +00002039 .block_erasers =
2040 {
2041 {
2042 .eraseblocks = { {256 * 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 = "AT29C040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002054 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002055 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002056 .model_id = ATMEL_AT29C040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002057 .total_size = 512,
2058 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002059 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002060 .tested = TEST_UNTESTED,
2061 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00002062 .probe_timing = 10000, /* 10 ms */
Sean Nelson89187292009-12-23 12:02:55 +00002063 .block_erasers =
2064 {
2065 {
2066 .eraseblocks = { {512 * 1024, 1} },
2067 .block_erase = erase_chip_block_jedec,
2068 }
2069 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002070 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002071 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002072 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002073 },
2074
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002075 {
2076 .vendor = "Atmel",
2077 .name = "AT45CS1282",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002078 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002079 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002080 .model_id = ATMEL_AT45CS1282,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002081 .total_size = 16896 /* No power of two sizes */,
2082 .page_size = 1056 /* No power of two sizes */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002083 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002084 .tested = TEST_BAD_READ,
2085 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002086 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002087 .write = NULL /* Incompatible Page write */,
2088 .read = NULL /* Incompatible read */,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002089 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002090 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002091
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002092 {
2093 .vendor = "Atmel",
2094 .name = "AT45DB011D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002095 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002096 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002097 .model_id = ATMEL_AT45DB011D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002098 .total_size = 128 /* Size can only be determined from status register */,
2099 .page_size = 256 /* Size can only be determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002100 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002101 .tested = TEST_BAD_READ,
2102 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002103 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002104 .write = NULL,
2105 .read = NULL,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002106 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002107 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002108
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002109 {
2110 .vendor = "Atmel",
2111 .name = "AT45DB021D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002112 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002113 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002114 .model_id = ATMEL_AT45DB021D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002115 .total_size = 256 /* Size can only be determined from status register */,
2116 .page_size = 256 /* Size can only be determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002117 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002118 .tested = TEST_BAD_READ,
2119 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002120 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002121 .write = NULL,
2122 .read = NULL,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002123 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002124 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002125
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002126 {
2127 .vendor = "Atmel",
2128 .name = "AT45DB041D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002129 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002130 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002131 .model_id = ATMEL_AT45DB041D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002132 .total_size = 512 /* Size can only be determined from status register */,
2133 .page_size = 256 /* Size can only be determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002134 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002135 .tested = TEST_BAD_READ,
2136 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002137 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002138 .write = NULL,
2139 .read = NULL,
Steven Zakulec7d257b42011-07-19 08:50:18 +00002140 .voltage = {2500, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002141 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002142
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002143 {
2144 .vendor = "Atmel",
2145 .name = "AT45DB081D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002146 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002147 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002148 .model_id = ATMEL_AT45DB081D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002149 .total_size = 1024 /* Size can only be determined from status register */,
2150 .page_size = 256 /* Size can only be determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002151 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002152 .tested = TEST_BAD_READ,
2153 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002154 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002155 .write = NULL,
2156 .read = NULL,
Steven Zakulec7d257b42011-07-19 08:50:18 +00002157 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002158 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002159
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002160 {
2161 .vendor = "Atmel",
2162 .name = "AT45DB161D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002163 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002164 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002165 .model_id = ATMEL_AT45DB161D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002166 .total_size = 2048 /* Size can only be determined from status register */,
2167 .page_size = 512 /* Size can only be determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002168 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002169 .tested = TEST_BAD_READ,
2170 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002171 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002172 .write = NULL,
2173 .read = NULL,
Steven Zakulec7d257b42011-07-19 08:50:18 +00002174 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002175 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002176
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002177 {
2178 .vendor = "Atmel",
2179 .name = "AT45DB321C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002180 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002181 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002182 .model_id = ATMEL_AT45DB321C,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002183 .total_size = 4224 /* No power of two sizes */,
2184 .page_size = 528 /* No power of two sizes */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002185 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002186 .tested = TEST_BAD_READ,
2187 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002188 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002189 .write = NULL,
2190 .read = NULL /* Incompatible read */,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002191 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002192 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002193
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002194 {
2195 .vendor = "Atmel",
2196 .name = "AT45DB321D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002197 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002198 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002199 .model_id = ATMEL_AT45DB321D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002200 .total_size = 4096 /* Size can only be determined from status register */,
2201 .page_size = 512 /* Size can only be determined from status register */,
Daniel Lenski65922a32012-02-15 23:40:23 +00002202 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
Steven Zakulec3603a282012-05-02 20:07:57 +00002203 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Daniel Lenski65922a32012-02-15 23:40:23 +00002204 .feature_bits = FEATURE_OTP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002205 .tested = TEST_BAD_READ,
2206 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002207 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002208 .write = NULL,
2209 .read = NULL,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002210 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002211 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002212
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002213 {
2214 .vendor = "Atmel",
2215 .name = "AT45DB642D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002216 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002217 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002218 .model_id = ATMEL_AT45DB642D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002219 .total_size = 8192 /* Size can only be determined from status register */,
2220 .page_size = 1024 /* Size can only be determined from status register */,
Steven Zakulec3603a282012-05-02 20:07:57 +00002221 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002222 .tested = TEST_BAD_READ,
2223 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002224 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002225 .write = NULL,
2226 .read = NULL,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002227 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002228 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002229
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002230 {
2231 .vendor = "Atmel",
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002232 .name = "AT49BV512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002233 .bustype = BUS_PARALLEL,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002234 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002235 .model_id = ATMEL_AT49BV512,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002236 .total_size = 64,
2237 .page_size = 64,
Sean Nelson35727f72010-01-28 23:55:12 +00002238 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +00002239 .tested = TEST_OK_PREW,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002240 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002241 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002242 .block_erasers =
2243 {
2244 {
2245 .eraseblocks = { {64 * 1024, 1} },
2246 .block_erase = erase_chip_block_jedec,
2247 }
2248 },
Sean Nelson35727f72010-01-28 23:55:12 +00002249 .write = write_jedec_1,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002250 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002251 .voltage = {2700, 3600},
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002252 },
2253
2254 {
2255 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002256 .name = "AT49F002(N)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002257 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002258 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002259 .model_id = ATMEL_AT49F002N,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002260 .total_size = 256,
2261 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002262 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002263 .tested = TEST_UNTESTED,
2264 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002265 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002266 .block_erasers =
2267 {
2268 {
2269 .eraseblocks = {
2270 {16 * 1024, 1},
2271 {8 * 1024, 2},
2272 {96 * 1024, 1},
2273 {128 * 1024, 1},
2274 },
2275 .block_erase = erase_sector_jedec,
2276 }, {
2277 .eraseblocks = { {256 * 1024, 1} },
2278 .block_erase = erase_chip_block_jedec,
2279 }
2280 },
Sean Nelson35727f72010-01-28 23:55:12 +00002281 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002282 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002283 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002284 },
2285
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002286 {
2287 .vendor = "Atmel",
2288 .name = "AT49F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002289 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002290 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002291 .model_id = ATMEL_AT49F002NT,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002292 .total_size = 256,
2293 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002294 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002295 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002296 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002297 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002298 .block_erasers =
2299 {
2300 {
2301 .eraseblocks = {
2302 {128 * 1024, 1},
2303 {96 * 1024, 1},
2304 {8 * 1024, 2},
2305 {16 * 1024, 1},
2306 },
2307 .block_erase = erase_sector_jedec,
2308 }, {
2309 .eraseblocks = { {256 * 1024, 1} },
2310 .block_erase = erase_chip_block_jedec,
2311 }
2312 },
Sean Nelson35727f72010-01-28 23:55:12 +00002313 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002314 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002315 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002316 },
2317
Daniel Lenskidf90d3a2010-07-22 11:44:38 +00002318 {
Uwe Hermannc74e9772011-09-08 19:55:18 +00002319 .vendor = "Atmel",
David Borgf5a30f62012-04-15 13:16:32 +00002320 .name = "AT49F020",
2321 .bustype = BUS_PARALLEL,
2322 .manufacture_id = ATMEL_ID,
2323 .model_id = ATMEL_AT49F020,
2324 .total_size = 256,
2325 .page_size = 256,
2326 .feature_bits = FEATURE_EITHER_RESET,
2327 .tested = TEST_OK_PRE,
2328 .probe = probe_jedec,
2329 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2330 .block_erasers =
2331 {
2332 {
2333 .eraseblocks = { {256 * 1024, 1} },
2334 .block_erase = erase_chip_block_jedec,
2335 }
2336 /* Chip features an optional permanent write protection
2337 * of the first 8 kB. The erase function is the same as
2338 * above, but 00000H to 01FFFH will not be erased.
2339 * FIXME: add another eraser when partial erasers are
2340 * supported.
2341 */
2342 },
2343 .printlock = printlock_at49f,
2344 .write = write_jedec_1,
2345 .read = read_memmapped,
2346 .voltage = {4500, 5500},
2347 },
2348
2349 {
2350 .vendor = "Atmel",
2351 .name = "AT49F040",
2352 .bustype = BUS_PARALLEL,
2353 .manufacture_id = ATMEL_ID,
2354 .model_id = ATMEL_AT49F040,
2355 .total_size = 512,
2356 .page_size = 512,
2357 .feature_bits = FEATURE_EITHER_RESET,
2358 .tested = TEST_UNTESTED,
2359 .probe = probe_jedec,
2360 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2361 .block_erasers =
2362 {
2363 {
2364 .eraseblocks = { {512 * 1024, 1} },
2365 .block_erase = erase_chip_block_jedec,
2366 }
2367 /* Chip features an optional permanent write protection
2368 * of the first 16 kB. The erase function is the same as
2369 * above, but 00000H to 03FFFH will not be erased.
2370 * FIXME: add another eraser when partial erasers are
2371 * supported.
2372 */
2373 },
2374 .printlock = printlock_at49f,
2375 .write = write_jedec_1,
2376 .read = read_memmapped,
2377 .voltage = {4500, 5500},
2378 },
2379
2380 {
2381 .vendor = "Atmel",
Uwe Hermannc74e9772011-09-08 19:55:18 +00002382 .name = "AT49LH002",
2383 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
2384 .manufacture_id = ATMEL_ID,
2385 .model_id = ATMEL_AT49LH002,
2386 .total_size = 256,
2387 .page_size = 0, /* unused */
2388 .feature_bits = FEATURE_REGISTERMAP, /* TODO: LPC OK too? */
2389 .tested = TEST_UNTESTED,
2390 .probe = probe_82802ab, /* TODO: 0xff cmd not documented? */
2391 .probe_timing = TIMING_FIXME,
2392 .block_erasers =
2393 {
2394 {
2395 .eraseblocks = {
2396 {64 * 1024, 3},
2397 {32 * 1024, 1},
2398 {8 * 1024, 2},
2399 {16 * 1024, 1},
2400 },
2401 .block_erase = erase_block_82802ab,
2402 }, {
2403 .eraseblocks = {
2404 {64 * 1024, 4},
2405 },
2406 .block_erase = NULL, /* TODO: Implement. */
2407 },
2408 },
2409 .printlock = NULL, /* TODO */
2410 .unlock = NULL, /* unlock_82802ab() not correct(?) */
2411 .write = write_82802ab,
2412 .read = read_memmapped,
2413 .voltage = {3000, 3600},
2414 },
2415
2416 {
Andrew Morganca081462011-09-13 22:05:44 +00002417 .vendor = "Catalyst",
2418 .name = "CAT28F512",
2419 .bustype = BUS_PARALLEL,
2420 .manufacture_id = CATALYST_ID,
2421 .model_id = CATALYST_CAT28F512,
2422 .total_size = 64,
2423 .page_size = 0, /* unused */
2424 .feature_bits = 0,
2425 .tested = TEST_OK_PR,
2426 .probe = probe_jedec, /* FIXME! */
2427 .probe_timing = TIMING_ZERO,
2428 .block_erasers =
2429 {
2430 {
2431 .eraseblocks = { {64 * 1024, 1} },
2432 .block_erase = NULL, /* TODO */
2433 },
2434 },
2435 .write = NULL, /* TODO */
2436 .read = read_memmapped,
2437 .voltage = {4500, 5500},
2438 },
2439
2440 {
Joshua Roysf1324e02010-09-16 00:51:51 +00002441 .vendor = "Bright",
2442 .name = "BM29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002443 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00002444 .manufacture_id = BRIGHT_ID,
2445 .model_id = BRIGHT_BM29F040,
2446 .total_size = 512,
2447 .page_size = 64 * 1024,
2448 .feature_bits = FEATURE_EITHER_RESET,
2449 .tested = TEST_OK_PR,
2450 .probe = probe_jedec,
2451 .probe_timing = TIMING_ZERO,
2452 .block_erasers =
2453 {
2454 {
2455 .eraseblocks = { {64 * 1024, 8} },
2456 .block_erase = erase_sector_jedec,
2457 }, {
2458 .eraseblocks = { {512 * 1024, 1} },
2459 .block_erase = erase_chip_block_jedec,
2460 },
2461 },
2462 .write = write_jedec_1,
2463 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00002464 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00002465 },
2466
2467 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002468 .vendor = "EMST",
2469 .name = "F49B002UA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002470 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002471 .manufacture_id = EMST_ID,
2472 .model_id = EMST_F49B002UA,
2473 .total_size = 256,
2474 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00002475 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002476 .tested = TEST_UNTESTED,
2477 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002478 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00002479 .block_erasers =
2480 {
2481 {
2482 .eraseblocks = {
2483 {128 * 1024, 1},
2484 {96 * 1024, 1},
2485 {8 * 1024, 2},
2486 {16 * 1024, 1},
2487 },
2488 .block_erase = erase_sector_jedec,
2489 }, {
2490 .eraseblocks = { {256 * 1024, 1} },
2491 .block_erase = erase_chip_block_jedec,
2492 }
2493 },
Sean Nelson35727f72010-01-28 23:55:12 +00002494 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002495 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002496 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002497 },
2498
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002499 {
Michael Karcher80a59ea2010-06-19 22:06:35 +00002500 .vendor = "EMST",
2501 .name = "F25L008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002502 .bustype = BUS_SPI,
Michael Karcher80a59ea2010-06-19 22:06:35 +00002503 .manufacture_id = EMST_ID,
2504 .model_id = EMST_F25L008A,
2505 .total_size = 1024,
2506 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002507 .feature_bits = FEATURE_WRSR_EITHER,
Michael Karcher80a59ea2010-06-19 22:06:35 +00002508 .tested = TEST_UNTESTED,
2509 .probe = probe_spi_rdid,
2510 .probe_timing = TIMING_ZERO,
2511 .block_erasers =
2512 {
2513 {
2514 .eraseblocks = { {4 * 1024, 256} },
2515 .block_erase = spi_block_erase_20,
2516 }, {
2517 .eraseblocks = { {64 * 1024, 16} },
2518 .block_erase = spi_block_erase_d8,
2519 }, {
2520 .eraseblocks = { {1024 * 1024, 1} },
2521 .block_erase = spi_block_erase_60,
2522 }, {
2523 .eraseblocks = { {1024 * 1024, 1} },
2524 .block_erase = spi_block_erase_c7,
2525 }
2526 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002527 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger9a795d82010-07-14 16:19:05 +00002528 .write = spi_chip_write_1,
Michael Karcher4497e862010-07-10 19:34:15 +00002529 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002530 .voltage = {2700, 3600},
Michael Karcher80a59ea2010-06-19 22:06:35 +00002531 },
2532
2533 {
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002534 .vendor = "Eon",
2535 .name = "EN25B05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002536 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002537 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002538 .model_id = EON_EN25B05,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002539 .total_size = 64,
2540 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002541 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002542 .tested = TEST_UNTESTED,
2543 .probe = probe_spi_rdid,
2544 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002545 .block_erasers =
2546 {
2547 {
2548 .eraseblocks = {
2549 {4 * 1024, 2},
2550 {8 * 1024, 1},
2551 {16 * 1024, 1},
2552 {32 * 1024, 1},
2553 },
2554 .block_erase = spi_block_erase_d8,
2555 }, {
2556 .eraseblocks = { {64 * 1024, 1} },
2557 .block_erase = spi_block_erase_c7,
2558 }
2559 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002560 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002561 .write = spi_chip_write_256,
2562 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002563 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002564 },
2565
2566 {
2567 .vendor = "Eon",
2568 .name = "EN25B05T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002569 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002570 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002571 .model_id = EON_EN25B05,
Sean Nelson54596372010-01-09 05:30:14 +00002572 .total_size = 64,
2573 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002574 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00002575 .tested = TEST_UNTESTED,
2576 .probe = probe_spi_rdid,
2577 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002578 .block_erasers =
2579 {
2580 {
2581 .eraseblocks = {
2582 {32 * 1024, 1},
2583 {16 * 1024, 1},
2584 {8 * 1024, 1},
2585 {4 * 1024, 2},
2586 },
2587 .block_erase = spi_block_erase_d8,
2588 }, {
2589 .eraseblocks = { {64 * 1024, 1} },
2590 .block_erase = spi_block_erase_c7,
2591 }
2592 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002593 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002594 .write = spi_chip_write_256,
2595 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002596 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002597 },
2598
2599 {
2600 .vendor = "Eon",
2601 .name = "EN25B10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002602 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002603 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002604 .model_id = EON_EN25B10,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002605 .total_size = 128,
2606 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002607 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002608 .tested = TEST_UNTESTED,
2609 .probe = probe_spi_rdid,
2610 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002611 .block_erasers =
2612 {
2613 {
2614 .eraseblocks = {
2615 {4 * 1024, 2},
2616 {8 * 1024, 1},
2617 {16 * 1024, 1},
2618 {32 * 1024, 3},
2619 },
2620 .block_erase = spi_block_erase_d8,
2621 }, {
2622 .eraseblocks = { {128 * 1024, 1} },
2623 .block_erase = spi_block_erase_c7,
2624 }
2625 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002626 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002627 .write = spi_chip_write_256,
2628 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002629 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002630 },
2631
2632 {
2633 .vendor = "Eon",
2634 .name = "EN25B10T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002635 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002636 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002637 .model_id = EON_EN25B10,
Sean Nelson54596372010-01-09 05:30:14 +00002638 .total_size = 128,
2639 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002640 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00002641 .tested = TEST_UNTESTED,
2642 .probe = probe_spi_rdid,
2643 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002644 .block_erasers =
2645 {
2646 {
2647 .eraseblocks = {
2648 {32 * 1024, 3},
2649 {16 * 1024, 1},
2650 {8 * 1024, 1},
2651 {4 * 1024, 2},
2652 },
2653 .block_erase = spi_block_erase_d8,
2654 }, {
2655 .eraseblocks = { {128 * 1024, 1} },
2656 .block_erase = spi_block_erase_c7,
2657 }
2658 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002659 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002660 .write = spi_chip_write_256,
2661 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002662 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002663 },
2664
2665 {
2666 .vendor = "Eon",
2667 .name = "EN25B20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002668 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002669 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002670 .model_id = EON_EN25B20,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002671 .total_size = 256,
2672 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002673 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002674 .tested = TEST_UNTESTED,
2675 .probe = probe_spi_rdid,
2676 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002677 .block_erasers =
2678 {
2679 {
2680 .eraseblocks = {
2681 {4 * 1024, 2},
2682 {8 * 1024, 1},
2683 {16 * 1024, 1},
2684 {32 * 1024, 1},
2685 {64 * 1024, 3}
2686 },
2687 .block_erase = spi_block_erase_d8,
2688 }, {
2689 .eraseblocks = { {256 * 1024, 1} },
2690 .block_erase = spi_block_erase_c7,
2691 }
2692 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002693 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002694 .write = spi_chip_write_256,
2695 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002696 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002697 },
2698
2699 {
2700 .vendor = "Eon",
2701 .name = "EN25B20T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002702 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002703 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002704 .model_id = EON_EN25B20,
Sean Nelson54596372010-01-09 05:30:14 +00002705 .total_size = 256,
2706 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002707 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00002708 .tested = TEST_UNTESTED,
2709 .probe = probe_spi_rdid,
2710 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002711 .block_erasers =
2712 {
2713 {
2714 .eraseblocks = {
2715 {64 * 1024, 3},
2716 {32 * 1024, 1},
2717 {16 * 1024, 1},
2718 {8 * 1024, 1},
2719 {4 * 1024, 2},
2720 },
2721 .block_erase = spi_block_erase_d8,
2722 }, {
2723 .eraseblocks = { {256 * 1024, 1} },
2724 .block_erase = spi_block_erase_c7,
2725 }
2726 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002727 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002728 .write = spi_chip_write_256,
2729 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002730 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002731 },
2732
2733 {
2734 .vendor = "Eon",
2735 .name = "EN25B40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002736 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002737 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002738 .model_id = EON_EN25B40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002739 .total_size = 512,
2740 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002741 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002742 .tested = TEST_UNTESTED,
2743 .probe = probe_spi_rdid,
2744 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002745 .block_erasers =
2746 {
2747 {
2748 .eraseblocks = {
2749 {4 * 1024, 2},
2750 {8 * 1024, 1},
2751 {16 * 1024, 1},
2752 {32 * 1024, 1},
2753 {64 * 1024, 7}
2754 },
2755 .block_erase = spi_block_erase_d8,
2756 }, {
2757 .eraseblocks = { {512 * 1024, 1} },
2758 .block_erase = spi_block_erase_c7,
2759 }
2760 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002761 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002762 .write = spi_chip_write_256,
2763 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002764 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002765 },
2766
2767 {
2768 .vendor = "Eon",
2769 .name = "EN25B40T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002770 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002771 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002772 .model_id = EON_EN25B40,
Sean Nelson54596372010-01-09 05:30:14 +00002773 .total_size = 512,
2774 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002775 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00002776 .tested = TEST_UNTESTED,
2777 .probe = probe_spi_rdid,
2778 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002779 .block_erasers =
2780 {
2781 {
2782 .eraseblocks = {
2783 {64 * 1024, 7},
2784 {32 * 1024, 1},
2785 {16 * 1024, 1},
2786 {8 * 1024, 1},
2787 {4 * 1024, 2},
2788 },
2789 .block_erase = spi_block_erase_d8,
2790 }, {
2791 .eraseblocks = { {512 * 1024, 1} },
2792 .block_erase = spi_block_erase_c7,
2793 }
2794 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002795 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002796 .write = spi_chip_write_256,
2797 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002798 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002799 },
2800
2801 {
2802 .vendor = "Eon",
2803 .name = "EN25B80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002804 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002805 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002806 .model_id = EON_EN25B80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002807 .total_size = 1024,
2808 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002809 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002810 .tested = TEST_UNTESTED,
2811 .probe = probe_spi_rdid,
2812 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002813 .block_erasers =
2814 {
2815 {
2816 .eraseblocks = {
2817 {4 * 1024, 2},
2818 {8 * 1024, 1},
2819 {16 * 1024, 1},
2820 {32 * 1024, 1},
2821 {64 * 1024, 15}
2822 },
2823 .block_erase = spi_block_erase_d8,
2824 }, {
2825 .eraseblocks = { {1024 * 1024, 1} },
2826 .block_erase = spi_block_erase_c7,
2827 }
2828 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002829 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002830 .write = spi_chip_write_256,
2831 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002832 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002833 },
2834
2835 {
2836 .vendor = "Eon",
2837 .name = "EN25B80T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002838 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002839 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002840 .model_id = EON_EN25B80,
Sean Nelson54596372010-01-09 05:30:14 +00002841 .total_size = 1024,
2842 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002843 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00002844 .tested = TEST_UNTESTED,
2845 .probe = probe_spi_rdid,
2846 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002847 .block_erasers =
2848 {
2849 {
2850 .eraseblocks = {
2851 {64 * 1024, 15},
2852 {32 * 1024, 1},
2853 {16 * 1024, 1},
2854 {8 * 1024, 1},
2855 {4 * 1024, 2},
2856 },
2857 .block_erase = spi_block_erase_d8,
2858 }, {
2859 .eraseblocks = { {1024 * 1024, 1} },
2860 .block_erase = spi_block_erase_c7,
2861 }
2862 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002863 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002864 .write = spi_chip_write_256,
2865 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002866 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002867 },
2868
2869 {
2870 .vendor = "Eon",
2871 .name = "EN25B16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002872 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002873 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002874 .model_id = EON_EN25B16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002875 .total_size = 2048,
2876 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002877 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002878 .tested = TEST_UNTESTED,
2879 .probe = probe_spi_rdid,
2880 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002881 .block_erasers =
2882 {
2883 {
2884 .eraseblocks = {
2885 {4 * 1024, 2},
2886 {8 * 1024, 1},
2887 {16 * 1024, 1},
2888 {32 * 1024, 1},
2889 {64 * 1024, 31},
2890 },
2891 .block_erase = spi_block_erase_d8,
2892 }, {
2893 .eraseblocks = { {2 * 1024 * 1024, 1} },
2894 .block_erase = spi_block_erase_c7,
2895 }
2896 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002897 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002898 .write = spi_chip_write_256,
2899 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002900 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002901 },
2902
2903 {
2904 .vendor = "Eon",
2905 .name = "EN25B16T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002906 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002907 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002908 .model_id = EON_EN25B16,
Sean Nelson54596372010-01-09 05:30:14 +00002909 .total_size = 2048,
2910 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002911 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00002912 .tested = TEST_UNTESTED,
2913 .probe = probe_spi_rdid,
2914 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002915 .block_erasers =
2916 {
2917 {
2918 .eraseblocks = {
2919 {64 * 1024, 31},
2920 {32 * 1024, 1},
2921 {16 * 1024, 1},
2922 {8 * 1024, 1},
2923 {4 * 1024, 2},
2924 },
2925 .block_erase = spi_block_erase_d8,
2926 }, {
2927 .eraseblocks = { {2 * 1024 * 1024, 1} },
2928 .block_erase = spi_block_erase_c7,
2929 }
2930 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002931 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002932 .write = spi_chip_write_256,
2933 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002934 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002935 },
2936
2937 {
2938 .vendor = "Eon",
2939 .name = "EN25B32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002940 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002941 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002942 .model_id = EON_EN25B32,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002943 .total_size = 4096,
2944 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002945 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002946 .tested = TEST_UNTESTED,
2947 .probe = probe_spi_rdid,
2948 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002949 .block_erasers =
2950 {
2951 {
2952 .eraseblocks = {
2953 {4 * 1024, 2},
2954 {8 * 1024, 1},
2955 {16 * 1024, 1},
2956 {32 * 1024, 1},
2957 {64 * 1024, 63},
2958 },
2959 .block_erase = spi_block_erase_d8,
2960 }, {
2961 .eraseblocks = { {4 * 1024 * 1024, 1} },
2962 .block_erase = spi_block_erase_c7,
2963 }
2964 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002965 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002966 .write = spi_chip_write_256,
2967 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002968 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002969 },
2970
2971 {
2972 .vendor = "Eon",
2973 .name = "EN25B32T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002974 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002975 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002976 .model_id = EON_EN25B32,
Sean Nelson54596372010-01-09 05:30:14 +00002977 .total_size = 4096,
2978 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002979 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00002980 .tested = TEST_UNTESTED,
2981 .probe = probe_spi_rdid,
2982 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002983 .block_erasers =
2984 {
2985 {
2986 .eraseblocks = {
2987 {64 * 1024, 63},
2988 {32 * 1024, 1},
2989 {16 * 1024, 1},
2990 {8 * 1024, 1},
2991 {4 * 1024, 2},
2992 },
2993 .block_erase = spi_block_erase_d8,
2994 }, {
2995 .eraseblocks = { {4 * 1024 * 1024, 1} },
2996 .block_erase = spi_block_erase_c7,
2997 }
2998 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002999 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003000 .write = spi_chip_write_256,
3001 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003002 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003003 },
3004
3005 {
3006 .vendor = "Eon",
3007 .name = "EN25B64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003008 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003009 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003010 .model_id = EON_EN25B64,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003011 .total_size = 8192,
3012 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003013 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003014 .tested = TEST_UNTESTED,
3015 .probe = probe_spi_rdid,
3016 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003017 .block_erasers =
3018 {
3019 {
3020 .eraseblocks = {
3021 {4 * 1024, 2},
3022 {8 * 1024, 1},
3023 {16 * 1024, 1},
3024 {32 * 1024, 1},
3025 {64 * 1024, 127},
3026 },
3027 .block_erase = spi_block_erase_d8,
3028 }, {
3029 .eraseblocks = { {8 * 1024 * 1024, 1} },
3030 .block_erase = spi_block_erase_c7,
3031 }
3032 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003033 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003034 .write = spi_chip_write_256,
3035 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003036 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003037 },
3038
3039 {
3040 .vendor = "Eon",
3041 .name = "EN25B64T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003042 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003043 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003044 .model_id = EON_EN25B64,
Sean Nelson54596372010-01-09 05:30:14 +00003045 .total_size = 8192,
3046 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003047 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003048 .tested = TEST_UNTESTED,
3049 .probe = probe_spi_rdid,
3050 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003051 .block_erasers =
3052 {
3053 {
3054 .eraseblocks = {
3055 {64 * 1024, 127},
3056 {32 * 1024, 1},
3057 {16 * 1024, 1},
3058 {8 * 1024, 1},
3059 {4 * 1024, 2},
3060 },
3061 .block_erase = spi_block_erase_d8,
3062 }, {
3063 .eraseblocks = { {8 * 1024 * 1024, 1} },
3064 .block_erase = spi_block_erase_c7,
3065 }
3066 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003067 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003068 .write = spi_chip_write_256,
3069 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003070 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003071 },
3072
3073 {
3074 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003075 .name = "EN25F05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003076 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003077 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003078 .model_id = EON_EN25F05,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003079 .total_size = 64,
3080 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003081 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003082 .tested = TEST_UNTESTED,
3083 .probe = probe_spi_rdid,
3084 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003085 .block_erasers =
3086 {
3087 {
3088 .eraseblocks = { {4 * 1024, 16} },
3089 .block_erase = spi_block_erase_20,
3090 }, {
3091 .eraseblocks = { {32 * 1024, 2} },
3092 .block_erase = spi_block_erase_d8,
3093 }, {
3094 .eraseblocks = { {32 * 1024, 2} },
3095 .block_erase = spi_block_erase_52,
3096 }, {
3097 .eraseblocks = { {64 * 1024, 1} },
3098 .block_erase = spi_block_erase_60,
3099 }, {
3100 .eraseblocks = { {64 * 1024, 1} },
3101 .block_erase = spi_block_erase_c7,
3102 }
3103 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003104 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003105 .write = spi_chip_write_256,
3106 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003107 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003108 },
3109
3110 {
3111 .vendor = "Eon",
3112 .name = "EN25F10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003113 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003114 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003115 .model_id = EON_EN25F10,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003116 .total_size = 128,
3117 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003118 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003119 .tested = TEST_UNTESTED,
3120 .probe = probe_spi_rdid,
3121 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003122 .block_erasers =
3123 {
3124 {
3125 .eraseblocks = { {4 * 1024, 32} },
3126 .block_erase = spi_block_erase_20,
3127 }, {
3128 .eraseblocks = { {32 * 1024, 4} },
3129 .block_erase = spi_block_erase_d8,
3130 }, {
3131 .eraseblocks = { {32 * 1024, 4} },
3132 .block_erase = spi_block_erase_52,
3133 }, {
3134 .eraseblocks = { {128 * 1024, 1} },
3135 .block_erase = spi_block_erase_60,
3136 }, {
3137 .eraseblocks = { {128 * 1024, 1} },
3138 .block_erase = spi_block_erase_c7,
3139 }
3140 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003141 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003142 .write = spi_chip_write_256,
3143 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003144 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003145 },
3146
3147 {
3148 .vendor = "Eon",
3149 .name = "EN25F20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003150 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003151 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003152 .model_id = EON_EN25F20,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003153 .total_size = 256,
3154 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003155 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003156 .tested = TEST_UNTESTED,
3157 .probe = probe_spi_rdid,
3158 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003159 .block_erasers =
3160 {
3161 {
3162 .eraseblocks = { {4 * 1024, 64} },
3163 .block_erase = spi_block_erase_20,
3164 }, {
3165 .eraseblocks = { {64 * 1024, 4} },
3166 .block_erase = spi_block_erase_d8,
3167 }, {
3168 .eraseblocks = { {64 * 1024, 4} },
3169 .block_erase = spi_block_erase_52,
3170 }, {
3171 .eraseblocks = { {256 * 1024, 1} },
3172 .block_erase = spi_block_erase_60,
3173 }, {
3174 .eraseblocks = { {256 * 1024, 1} },
3175 .block_erase = spi_block_erase_c7,
3176 }
3177 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003178 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003179 .write = spi_chip_write_256,
3180 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003181 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003182 },
3183
3184 {
3185 .vendor = "Eon",
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003186 .name = "EN25F40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003187 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003188 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003189 .model_id = EON_EN25F40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003190 .total_size = 512,
3191 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003192 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerfaaa2b22009-06-22 10:06:28 +00003193 .tested = TEST_OK_PROBE,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003194 .probe = probe_spi_rdid,
3195 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003196 .block_erasers =
3197 {
3198 {
Sean Nelson54596372010-01-09 05:30:14 +00003199 .eraseblocks = { {4 * 1024, 128} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003200 .block_erase = spi_block_erase_20,
3201 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003202 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003203 .block_erase = spi_block_erase_d8,
3204 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003205 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003206 .block_erase = spi_block_erase_60,
3207 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003208 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003209 .block_erase = spi_block_erase_c7,
3210 },
3211 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003212 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003213 .write = spi_chip_write_256,
3214 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003215 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003216 },
3217
3218 {
3219 .vendor = "Eon",
3220 .name = "EN25F80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003221 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003222 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003223 .model_id = EON_EN25F80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003224 .total_size = 1024,
3225 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003226 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +00003227 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003228 .probe = probe_spi_rdid,
3229 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003230 .block_erasers =
3231 {
3232 {
3233 .eraseblocks = { {4 * 1024, 256} },
3234 .block_erase = spi_block_erase_20,
3235 }, {
3236 .eraseblocks = { {64 * 1024, 16} },
3237 .block_erase = spi_block_erase_d8,
3238 }, {
3239 .eraseblocks = { {1024 * 1024, 1} },
3240 .block_erase = spi_block_erase_60,
3241 }, {
3242 .eraseblocks = { {1024 * 1024, 1} },
3243 .block_erase = spi_block_erase_c7,
3244 }
3245 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003246 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003247 .write = spi_chip_write_256,
3248 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003249 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003250 },
3251
3252 {
3253 .vendor = "Eon",
3254 .name = "EN25F16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003255 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003256 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003257 .model_id = EON_EN25F16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003258 .total_size = 2048,
3259 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003260 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzel018d4822011-10-21 12:33:07 +00003261 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003262 .probe = probe_spi_rdid,
3263 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003264 .block_erasers =
3265 {
3266 {
3267 .eraseblocks = { {4 * 1024, 512} },
3268 .block_erase = spi_block_erase_20,
3269 }, {
3270 .eraseblocks = { {64 * 1024, 32} },
3271 .block_erase = spi_block_erase_d8,
3272 }, {
3273 .eraseblocks = { {2 * 1024 * 1024, 1} },
3274 .block_erase = spi_block_erase_60,
3275 }, {
3276 .eraseblocks = { {2 * 1024 * 1024, 1} },
3277 .block_erase = spi_block_erase_c7,
3278 }
3279 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003280 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003281 .write = spi_chip_write_256,
3282 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003283 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003284 },
3285
3286 {
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003287 .vendor = "Eon",
3288 .name = "EN25F32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003289 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003290 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003291 .model_id = EON_EN25F32,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003292 .total_size = 4096,
3293 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003294 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003295 .tested = TEST_UNTESTED,
3296 .probe = probe_spi_rdid,
3297 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003298 .block_erasers =
3299 {
3300 {
3301 .eraseblocks = { {4 * 1024, 1024} },
3302 .block_erase = spi_block_erase_20,
3303 }, {
3304 .eraseblocks = { {64 * 1024, 64} },
3305 .block_erase = spi_block_erase_d8,
3306 }, {
3307 .eraseblocks = { {4 * 1024 * 1024, 1} },
3308 .block_erase = spi_block_erase_60,
3309 }, {
3310 .eraseblocks = { {4 * 1024 * 1024, 1} },
3311 .block_erase = spi_block_erase_c7,
3312 }
3313 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003314 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003315 .write = spi_chip_write_256,
3316 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003317 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003318 },
3319
3320 {
Russ Dill3cd5a122010-03-05 08:44:11 +00003321 .vendor = "Eon",
David Hendricks6d715302011-07-24 22:21:57 +00003322 .name = "EN25Q40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003323 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003324 .manufacture_id = EON_ID_NOPREFIX,
3325 .model_id = EON_EN25Q40,
3326 .total_size = 512,
3327 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003328 /* OTP: 256B total; enter 0x3A */
3329 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003330 .tested = TEST_UNTESTED,
3331 .probe = probe_spi_rdid,
3332 .probe_timing = TIMING_ZERO,
3333 .block_erasers =
3334 {
3335 {
3336 .eraseblocks = { {4 * 1024, 128} },
3337 .block_erase = spi_block_erase_20,
3338 }, {
3339 .eraseblocks = { {64 * 1024, 8} },
3340 .block_erase = spi_block_erase_d8,
3341 }, {
3342 .eraseblocks = { {512 * 1024, 1} },
3343 .block_erase = spi_block_erase_60,
3344 }, {
3345 .eraseblocks = { {512 * 1024, 1} },
3346 .block_erase = spi_block_erase_c7,
3347 }
3348 },
3349 .unlock = spi_disable_blockprotect,
3350 .write = spi_chip_write_256,
3351 .read = spi_chip_read,
3352 .voltage = {2700, 3600},
3353 },
3354
3355 {
3356 .vendor = "Eon",
3357 .name = "EN25Q80(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003358 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003359 .manufacture_id = EON_ID_NOPREFIX,
3360 .model_id = EON_EN25Q80,
3361 .total_size = 1024,
3362 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003363 /* OTP: 256B total; enter 0x3A */
3364 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003365 .tested = TEST_UNTESTED,
3366 .probe = probe_spi_rdid,
3367 .probe_timing = TIMING_ZERO,
3368 .block_erasers =
3369 {
3370 {
3371 .eraseblocks = { {4 * 1024, 256} },
3372 .block_erase = spi_block_erase_20,
3373 }, {
3374 .eraseblocks = { {64 * 1024, 16} },
3375 .block_erase = spi_block_erase_d8,
3376 }, {
3377 .eraseblocks = { {1024 * 1024, 1} },
3378 .block_erase = spi_block_erase_60,
3379 }, {
3380 .eraseblocks = { {1024 * 1024, 1} },
3381 .block_erase = spi_block_erase_c7,
3382 }
3383 },
3384 .unlock = spi_disable_blockprotect,
3385 .write = spi_chip_write_256,
3386 .read = spi_chip_read,
3387 .voltage = {2700, 3600},
3388 },
3389
3390 {
3391 /* Note: EN25D16 is an evil twin which shares the model ID
3392 but has different write protection capabilities */
3393 .vendor = "Eon",
3394 .name = "EN25Q16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003395 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003396 .manufacture_id = EON_ID_NOPREFIX,
3397 .model_id = EON_EN25Q16,
3398 .total_size = 2048,
3399 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003400 /* OTP: D16 512B/Q16 128B total; enter 0x3A */
3401 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003402 .tested = TEST_UNTESTED,
3403 .probe = probe_spi_rdid,
3404 .probe_timing = TIMING_ZERO,
3405 .block_erasers =
3406 {
3407 {
3408 .eraseblocks = { {4 * 1024, 512} },
3409 .block_erase = spi_block_erase_20,
3410 }, {
3411 .eraseblocks = { {64 * 1024, 32} },
3412 .block_erase = spi_block_erase_d8,
3413 }, {
3414 /* not supported by Q16 version */
3415 .eraseblocks = { {64 * 1024, 32} },
3416 .block_erase = spi_block_erase_52,
3417 }, {
3418 .eraseblocks = { {2 * 1024 * 1024, 1} },
3419 .block_erase = spi_block_erase_60,
3420 }, {
3421 .eraseblocks = { {2 * 1024 * 1024, 1} },
3422 .block_erase = spi_block_erase_c7,
3423 }
3424 },
3425 .unlock = spi_disable_blockprotect,
3426 .write = spi_chip_write_256,
3427 .read = spi_chip_read,
3428 .voltage = {2700, 3600},
3429 },
3430
3431 {
3432 .vendor = "Eon",
3433 .name = "EN25Q32(A/B)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003434 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003435 .manufacture_id = EON_ID_NOPREFIX,
3436 .model_id = EON_EN25Q32,
3437 .total_size = 4096,
3438 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003439 /* OTP: 512B total; enter 0x3A */
3440 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner2abab942012-04-27 20:41:23 +00003441 .tested = TEST_OK_PROBE,
David Hendricks6d715302011-07-24 22:21:57 +00003442 .probe = probe_spi_rdid,
3443 .probe_timing = TIMING_ZERO,
3444 .block_erasers =
3445 {
3446 {
3447 .eraseblocks = { {4 * 1024, 1024} },
3448 .block_erase = spi_block_erase_20,
3449 }, {
3450 .eraseblocks = { {64 * 1024, 64} },
3451 .block_erase = spi_block_erase_d8,
3452 }, {
3453 .eraseblocks = { {4 * 1024 * 1024, 1} },
3454 .block_erase = spi_block_erase_60,
3455 }, {
3456 .eraseblocks = { {4 * 1024 * 1024, 1} },
3457 .block_erase = spi_block_erase_c7,
3458 }
3459 },
3460 .unlock = spi_disable_blockprotect,
3461 .write = spi_chip_write_256,
3462 .read = spi_chip_read,
3463 .voltage = {2700, 3600},
3464 },
3465
3466 {
3467 .vendor = "Eon",
3468 .name = "EN25Q64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003469 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003470 .manufacture_id = EON_ID_NOPREFIX,
3471 .model_id = EON_EN25Q64,
3472 .total_size = 8192,
3473 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003474 /* OTP: 512B total; enter 0x3A */
3475 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003476 .tested = TEST_UNTESTED,
3477 .probe = probe_spi_rdid,
3478 .probe_timing = TIMING_ZERO,
3479 .block_erasers =
3480 {
3481 {
3482 .eraseblocks = { {4 * 1024, 2048} },
3483 .block_erase = spi_block_erase_20,
3484 }, {
3485 .eraseblocks = { {64 * 1024, 128} },
3486 .block_erase = spi_block_erase_d8,
3487 }, {
3488 .eraseblocks = { {8 * 1024 * 1024, 1} },
3489 .block_erase = spi_block_erase_60,
3490 }, {
3491 .eraseblocks = { {8 * 1024 * 1024, 1} },
3492 .block_erase = spi_block_erase_c7,
3493 }
3494 },
3495 .unlock = spi_disable_blockprotect,
3496 .write = spi_chip_write_256,
3497 .read = spi_chip_read,
3498 .voltage = {2700, 3600},
3499 },
3500
3501 {
3502 .vendor = "Eon",
3503 .name = "EN25Q128",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003504 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003505 .manufacture_id = EON_ID_NOPREFIX,
3506 .model_id = EON_EN25Q128,
3507 .total_size = 16384,
3508 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003509 /* OTP: 512B total; enter 0x3A */
3510 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003511 .tested = TEST_UNTESTED,
3512 .probe = probe_spi_rdid,
3513 .probe_timing = TIMING_ZERO,
3514 .block_erasers =
3515 {
3516 {
3517 .eraseblocks = { {4 * 1024, 4096} },
3518 .block_erase = spi_block_erase_20,
3519 }, {
3520 .eraseblocks = { {64 * 1024, 256} },
3521 .block_erase = spi_block_erase_d8,
3522 }, {
3523 .eraseblocks = { {16 * 1024 * 1024, 1} },
3524 .block_erase = spi_block_erase_60,
3525 }, {
3526 .eraseblocks = { {16 * 1024 * 1024, 1} },
3527 .block_erase = spi_block_erase_c7,
3528 }
3529 },
3530 .unlock = spi_disable_blockprotect,
3531 .write = spi_chip_write_256,
3532 .read = spi_chip_read,
3533 },
3534
3535 {
3536 .vendor = "Eon",
3537 .name = "EN25QH16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003538 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003539 .manufacture_id = EON_ID_NOPREFIX,
3540 .model_id = EON_EN25QH16,
3541 .total_size = 2048,
3542 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003543 /* supports SFDP */
3544 /* OTP: 512B total; enter 0x3A */
3545 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003546 .tested = TEST_UNTESTED,
3547 .probe = probe_spi_rdid,
3548 .probe_timing = TIMING_ZERO,
3549 .block_erasers =
3550 {
3551 {
3552 .eraseblocks = { {4 * 1024, 512} },
3553 .block_erase = spi_block_erase_20,
3554 }, {
3555 .eraseblocks = { {64 * 1024, 32} },
3556 .block_erase = spi_block_erase_d8,
3557 }, {
3558 .eraseblocks = { {1024 * 2048, 1} },
3559 .block_erase = spi_block_erase_60,
3560 }, {
3561 .eraseblocks = { {1024 * 2048, 1} },
3562 .block_erase = spi_block_erase_c7,
3563 }
3564 },
3565 .unlock = spi_disable_blockprotect,
3566 .write = spi_chip_write_256,
3567 .read = spi_chip_read,
Stefan Tauner2cef9162012-05-14 01:51:46 +00003568 .voltage = {2700, 3600},
3569 },
3570
3571 {
3572 .vendor = "Eon",
3573 .name = "EN25QH32",
3574 .bustype = BUS_SPI,
3575 .manufacture_id = EON_ID_NOPREFIX,
3576 .model_id = EON_EN25QH32,
3577 .total_size = 4096,
3578 .page_size = 256,
3579 /* supports SFDP */
3580 /* OTP: 512B total; enter 0x3A */
3581 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
3582 .tested = TEST_UNTESTED,
3583 .probe = probe_spi_rdid,
3584 .probe_timing = TIMING_ZERO,
3585 .block_erasers =
3586 {
3587 {
3588 .eraseblocks = { {4 * 1024, 1024} },
3589 .block_erase = spi_block_erase_20,
3590 }, {
3591 .eraseblocks = { {64 * 1024, 64} },
3592 .block_erase = spi_block_erase_d8,
3593 }, {
3594 .eraseblocks = { {1024 * 4096, 1} },
3595 .block_erase = spi_block_erase_60,
3596 }, {
3597 .eraseblocks = { {1024 * 4096, 1} },
3598 .block_erase = spi_block_erase_c7,
3599 }
3600 },
3601 .unlock = spi_disable_blockprotect,
3602 .write = spi_chip_write_256,
3603 .read = spi_chip_read,
3604 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00003605 },
3606
3607 {
3608 .vendor = "Eon",
Russ Dill3cd5a122010-03-05 08:44:11 +00003609 .name = "EN29F010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003610 .bustype = BUS_PARALLEL,
Russ Dill3cd5a122010-03-05 08:44:11 +00003611 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003612 .model_id = EON_EN29F010,
Russ Dill3cd5a122010-03-05 08:44:11 +00003613 .total_size = 128,
3614 .page_size = 128,
3615 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003616 .tested = TEST_OK_PRE,
Russ Dill3cd5a122010-03-05 08:44:11 +00003617 .probe = probe_jedec,
3618 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3619 .block_erasers =
3620 {
3621 {
3622 .eraseblocks = { {16 * 1024, 8} },
3623 .block_erase = erase_sector_jedec,
3624 },
3625 {
3626 .eraseblocks = { {128 * 1024, 1} },
3627 .block_erase = erase_chip_block_jedec,
3628 },
3629 },
3630 .write = write_jedec_1,
3631 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003632 .voltage = {4500, 5500},
Russ Dill3cd5a122010-03-05 08:44:11 +00003633 },
3634
3635 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00003636 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003637 .name = "EN29F002(A)(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003638 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003639 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003640 .model_id = EON_EN29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003641 .total_size = 256,
3642 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00003643 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003644 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003645 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003646 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003647 .block_erasers =
3648 {
3649 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00003650 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00003651 {16 * 1024, 1},
Michael Karchere3cb0a12010-03-13 23:47:09 +00003652 {8 * 1024, 2},
3653 {32 * 1024, 1},
3654 {64 * 1024, 3},
Sean Nelson6b11ad22009-12-23 17:05:59 +00003655 },
3656 .block_erase = erase_sector_jedec,
3657 }, {
3658 .eraseblocks = { {256 * 1024, 1} },
3659 .block_erase = erase_chip_block_jedec,
3660 },
3661 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00003662 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003663 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003664 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003665 },
3666
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003667 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00003668 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003669 .name = "EN29F002(A)(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003670 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003671 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003672 .model_id = EON_EN29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003673 .total_size = 256,
3674 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00003675 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00003676 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003677 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003678 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003679 .block_erasers =
3680 {
3681 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00003682 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00003683 {64 * 1024, 3},
Michael Karchere3cb0a12010-03-13 23:47:09 +00003684 {32 * 1024, 1},
3685 {8 * 1024, 2},
3686 {16 * 1024, 1},
Sean Nelson6b11ad22009-12-23 17:05:59 +00003687 },
3688 .block_erase = erase_sector_jedec,
3689 }, {
3690 .eraseblocks = { {256 * 1024, 1} },
3691 .block_erase = erase_chip_block_jedec,
3692 },
3693 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00003694 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003695 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003696 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003697 },
3698
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003699 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00003700 .vendor = "Eon",
3701 .name = "EN29LV640B",
3702 .bustype = BUS_PARALLEL,
3703 .manufacture_id = EON_ID,
3704 .model_id = EON_EN29LV640B,
3705 .total_size = 8192,
3706 .page_size = 8192,
3707 .feature_bits = 0,
3708 .tested = TEST_OK_PREW,
3709 .probe = probe_en29lv640b,
3710 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3711 .block_erasers =
3712 {
3713 {
3714 .eraseblocks = {
3715 {8 * 1024, 8},
3716 {64 * 1024, 127},
3717 },
3718 .block_erase = block_erase_en29lv640b,
3719 }, {
3720 .eraseblocks = { {8 * 1024 * 1024, 1} },
3721 .block_erase = block_erase_chip_en29lv640b,
3722 },
3723 },
3724 .write = write_en29lv640b,
3725 .read = read_memmapped,
3726 .voltage = {2700, 3600},
3727 },
3728
3729 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003730 .vendor = "Fujitsu",
3731 .name = "MBM29F004BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003732 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003733 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003734 .model_id = FUJITSU_MBM29F004BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003735 .total_size = 512,
3736 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003737 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003738 .tested = TEST_UNTESTED,
3739 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003740 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003741 .block_erasers =
3742 {
3743 {
3744 .eraseblocks = {
3745 {16 * 1024, 1},
3746 {8 * 1024, 2},
3747 {32 * 1024, 1},
3748 {64 * 1024, 7},
3749 },
Sean Nelson35727f72010-01-28 23:55:12 +00003750 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003751 }, {
3752 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00003753 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003754 },
3755 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003756 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003757 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003758 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003759 },
3760
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003761 {
3762 .vendor = "Fujitsu",
3763 .name = "MBM29F004TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003764 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003765 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003766 .model_id = FUJITSU_MBM29F004TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003767 .total_size = 512,
3768 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003769 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003770 .tested = TEST_UNTESTED,
3771 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003772 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003773 .block_erasers =
3774 {
3775 {
3776 .eraseblocks = {
3777 {64 * 1024, 7},
3778 {32 * 1024, 1},
3779 {8 * 1024, 2},
3780 {16 * 1024, 1},
3781 },
Sean Nelson35727f72010-01-28 23:55:12 +00003782 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003783 }, {
3784 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00003785 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003786 },
3787 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003788 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003789 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003790 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003791 },
3792
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003793 {
Sean Nelson35727f72010-01-28 23:55:12 +00003794 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003795 .vendor = "Fujitsu",
3796 .name = "MBM29F400BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003797 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003798 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003799 .model_id = FUJITSU_MBM29F400BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003800 .total_size = 512,
3801 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003802 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00003803 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003804 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00003805 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003806 .block_erasers =
3807 {
3808 {
3809 .eraseblocks = {
3810 {16 * 1024, 1},
3811 {8 * 1024, 2},
3812 {32 * 1024, 1},
3813 {64 * 1024, 7},
3814 },
3815 .block_erase = block_erase_m29f400bt,
3816 }, {
3817 .eraseblocks = { {512 * 1024, 1} },
3818 .block_erase = block_erase_chip_m29f400bt,
3819 },
3820 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00003821 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003822 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003823 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00003824 },
3825
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003826 {
3827 .vendor = "Fujitsu",
3828 .name = "MBM29F400TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003829 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003830 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003831 .model_id = FUJITSU_MBM29F400TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003832 .total_size = 512,
3833 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003834 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003835 .tested = TEST_UNTESTED,
3836 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00003837 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003838 .block_erasers =
3839 {
3840 {
3841 .eraseblocks = {
3842 {64 * 1024, 7},
3843 {32 * 1024, 1},
3844 {8 * 1024, 2},
3845 {16 * 1024, 1},
3846 },
3847 .block_erase = block_erase_m29f400bt,
3848 }, {
3849 .eraseblocks = { {512 * 1024, 1} },
3850 .block_erase = block_erase_chip_m29f400bt,
3851 },
3852 },
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00003853 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003854 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003855 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00003856 },
3857
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003858 {
Justin Chevrier1525b2a2012-04-14 21:59:23 +00003859 .vendor = "GigaDevice",
3860 .name = "GD25Q20",
3861 .bustype = BUS_SPI,
3862 .manufacture_id = GIGADEVICE_ID,
3863 .model_id = GIGADEVICE_GD25Q20,
3864 .total_size = 256,
3865 .page_size = 256,
3866 .feature_bits = FEATURE_WRSR_WREN,
3867 .tested = TEST_UNTESTED,
3868 .probe = probe_spi_rdid,
3869 .probe_timing = TIMING_ZERO,
3870 .block_erasers =
3871 {
3872 {
3873 .eraseblocks = { {4 * 1024, 64} },
3874 .block_erase = spi_block_erase_20,
3875 }, {
3876 .eraseblocks = { {32 * 1024, 8} },
3877 .block_erase = spi_block_erase_52,
3878 }, {
3879 .eraseblocks = { {64 * 1024, 4} },
3880 .block_erase = spi_block_erase_d8,
3881 }, {
3882 .eraseblocks = { {256 * 1024, 1} },
3883 .block_erase = spi_block_erase_60,
3884 }, {
3885 .eraseblocks = { {256 * 1024, 1} },
3886 .block_erase = spi_block_erase_c7,
3887 }
3888 },
3889 .unlock = spi_disable_blockprotect,
3890 .write = spi_chip_write_256,
3891 .read = spi_chip_read,
3892 .voltage = {2700, 3600},
3893 },
3894
3895 {
3896 .vendor = "GigaDevice",
3897 .name = "GD25Q40",
3898 .bustype = BUS_SPI,
3899 .manufacture_id = GIGADEVICE_ID,
3900 .model_id = GIGADEVICE_GD25Q40,
3901 .total_size = 512,
3902 .page_size = 256,
3903 .feature_bits = FEATURE_WRSR_WREN,
3904 .tested = TEST_UNTESTED,
3905 .probe = probe_spi_rdid,
3906 .probe_timing = TIMING_ZERO,
3907 .block_erasers =
3908 {
3909 {
3910 .eraseblocks = { {4 * 1024, 128} },
3911 .block_erase = spi_block_erase_20,
3912 }, {
3913 .eraseblocks = { {32 * 1024, 16} },
3914 .block_erase = spi_block_erase_52,
3915 }, {
3916 .eraseblocks = { {64 * 1024, 8} },
3917 .block_erase = spi_block_erase_d8,
3918 }, {
3919 .eraseblocks = { {512 * 1024, 1} },
3920 .block_erase = spi_block_erase_60,
3921 }, {
3922 .eraseblocks = { {512 * 1024, 1} },
3923 .block_erase = spi_block_erase_c7,
3924 }
3925 },
3926 .unlock = spi_disable_blockprotect,
3927 .write = spi_chip_write_256,
3928 .read = spi_chip_read,
3929 .voltage = {2700, 3600},
3930 },
3931
3932 {
3933 .vendor = "GigaDevice",
3934 .name = "GD25Q80",
3935 .bustype = BUS_SPI,
3936 .manufacture_id = GIGADEVICE_ID,
3937 .model_id = GIGADEVICE_GD25Q80,
3938 .total_size = 1024,
3939 .page_size = 256,
3940 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
3941 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
3942 .tested = TEST_OK_PREW,
3943 .probe = probe_spi_rdid,
3944 .probe_timing = TIMING_ZERO,
3945 .block_erasers =
3946 {
3947 {
3948 .eraseblocks = { {4 * 1024, 256} },
3949 .block_erase = spi_block_erase_20,
3950 }, {
3951 .eraseblocks = { {32 * 1024, 32} },
3952 .block_erase = spi_block_erase_52,
3953 }, {
3954 .eraseblocks = { {64 * 1024, 16} },
3955 .block_erase = spi_block_erase_d8,
3956 }, {
3957 .eraseblocks = { {1024 * 1024, 1} },
3958 .block_erase = spi_block_erase_60,
3959 }, {
3960 .eraseblocks = { {1024 * 1024, 1} },
3961 .block_erase = spi_block_erase_c7,
3962 }
3963 },
3964 .unlock = spi_disable_blockprotect,
3965 .write = spi_chip_write_256,
3966 .read = spi_chip_read,
3967 .voltage = {2700, 3600},
3968 },
3969
3970 {
3971 .vendor = "GigaDevice",
3972 .name = "GD25Q16",
3973 .bustype = BUS_SPI,
3974 .manufacture_id = GIGADEVICE_ID,
3975 .model_id = GIGADEVICE_GD25Q16,
3976 .total_size = 2048,
3977 .page_size = 256,
3978 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
3979 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
3980 .tested = TEST_UNTESTED,
3981 .probe = probe_spi_rdid,
3982 .probe_timing = TIMING_ZERO,
3983 .block_erasers =
3984 {
3985 {
3986 .eraseblocks = { {4 * 1024, 512} },
3987 .block_erase = spi_block_erase_20,
3988 }, {
3989 .eraseblocks = { {32 * 1024, 64} },
3990 .block_erase = spi_block_erase_52,
3991 }, {
3992 .eraseblocks = { {64 * 1024, 32} },
3993 .block_erase = spi_block_erase_d8,
3994 }, {
3995 .eraseblocks = { {2 * 1024 * 1024, 1} },
3996 .block_erase = spi_block_erase_60,
3997 }, {
3998 .eraseblocks = { {2 * 1024 * 1024, 1} },
3999 .block_erase = spi_block_erase_c7,
4000 }
4001 },
4002 .unlock = spi_disable_blockprotect,
4003 .write = spi_chip_write_256,
4004 .read = spi_chip_read,
4005 .voltage = {2700, 3600},
4006 },
4007
4008 {
4009 .vendor = "GigaDevice",
4010 .name = "GD25Q32",
4011 .bustype = BUS_SPI,
4012 .manufacture_id = GIGADEVICE_ID,
4013 .model_id = GIGADEVICE_GD25Q32,
4014 .total_size = 4096,
4015 .page_size = 256,
4016 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
4017 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4018 .tested = TEST_UNTESTED,
4019 .probe = probe_spi_rdid,
4020 .probe_timing = TIMING_ZERO,
4021 .block_erasers =
4022 {
4023 {
4024 .eraseblocks = { {4 * 1024, 1024} },
4025 .block_erase = spi_block_erase_20,
4026 }, {
4027 .eraseblocks = { {32 * 1024, 128} },
4028 .block_erase = spi_block_erase_52,
4029 }, {
4030 .eraseblocks = { {64 * 1024, 64} },
4031 .block_erase = spi_block_erase_d8,
4032 }, {
4033 .eraseblocks = { {4 * 1024 * 1024, 1} },
4034 .block_erase = spi_block_erase_60,
4035 }, {
4036 .eraseblocks = { {4 * 1024 * 1024, 1} },
4037 .block_erase = spi_block_erase_c7,
4038 }
4039 },
4040 .unlock = spi_disable_blockprotect,
4041 .write = spi_chip_write_256,
4042 .read = spi_chip_read,
4043 .voltage = {2700, 3600},
4044 },
4045
4046 {
4047 .vendor = "GigaDevice",
4048 .name = "GD25Q64",
4049 .bustype = BUS_SPI,
4050 .manufacture_id = GIGADEVICE_ID,
4051 .model_id = GIGADEVICE_GD25Q64,
4052 .total_size = 8192,
4053 .page_size = 256,
4054 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
4055 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4056 .tested = TEST_UNTESTED,
4057 .probe = probe_spi_rdid,
4058 .probe_timing = TIMING_ZERO,
4059 .block_erasers =
4060 {
4061 {
4062 .eraseblocks = { {4 * 1024, 2048} },
4063 .block_erase = spi_block_erase_20,
4064 }, {
4065 .eraseblocks = { {32 * 1024, 256} },
4066 .block_erase = spi_block_erase_52,
4067 }, {
4068 .eraseblocks = { {64 * 1024, 128} },
4069 .block_erase = spi_block_erase_d8,
4070 }, {
4071 .eraseblocks = { {8 * 1024 * 1024, 1} },
4072 .block_erase = spi_block_erase_60,
4073 }, {
4074 .eraseblocks = { {8 * 1024 * 1024, 1} },
4075 .block_erase = spi_block_erase_c7,
4076 }
4077 },
4078 .unlock = spi_disable_blockprotect,
4079 .write = spi_chip_write_256,
4080 .read = spi_chip_read,
4081 },
4082
4083 {
4084 .vendor = "GigaDevice",
4085 .name = "GD25Q128",
4086 .bustype = BUS_SPI,
4087 .manufacture_id = GIGADEVICE_ID,
4088 .model_id = GIGADEVICE_GD25Q128,
4089 .total_size = 16384,
4090 .page_size = 256,
4091 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
4092 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4093 .tested = TEST_UNTESTED,
4094 .probe = probe_spi_rdid,
4095 .probe_timing = TIMING_ZERO,
4096 .block_erasers =
4097 {
4098 {
4099 .eraseblocks = { {4 * 1024, 4096} },
4100 .block_erase = spi_block_erase_20,
4101 }, {
4102 .eraseblocks = { {32 * 1024, 512} },
4103 .block_erase = spi_block_erase_52,
4104 }, {
4105 .eraseblocks = { {64 * 1024, 256} },
4106 .block_erase = spi_block_erase_d8,
4107 }, {
4108 .eraseblocks = { {16 * 1024 * 1024, 1} },
4109 .block_erase = spi_block_erase_60,
4110 }, {
4111 .eraseblocks = { {16 * 1024 * 1024, 1} },
4112 .block_erase = spi_block_erase_c7,
4113 }
4114 },
4115 .unlock = spi_disable_blockprotect,
4116 .write = spi_chip_write_256,
4117 .read = spi_chip_read,
4118 },
4119
4120 {
David Borgc96a8bd2010-06-21 16:12:22 +00004121 .vendor = "Hyundai",
4122 .name = "HY29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004123 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00004124 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004125 .model_id = HYUNDAI_HY29F002T,
David Borgc96a8bd2010-06-21 16:12:22 +00004126 .total_size = 256,
4127 .page_size = 256 * 1024,
4128 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004129 .tested = TEST_OK_PRE,
David Borgc96a8bd2010-06-21 16:12:22 +00004130 .probe = probe_jedec,
4131 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4132 .block_erasers =
4133 {
4134 {
4135 .eraseblocks = {
4136 {64 * 1024, 3},
4137 {32 * 1024, 1},
4138 {8 * 1024, 2},
4139 {16 * 1024, 1},
4140 },
4141 .block_erase = erase_sector_jedec,
4142 }, {
4143 .eraseblocks = { {256 * 1024, 1} },
4144 .block_erase = erase_chip_block_jedec,
4145 },
4146 },
4147 .write = write_jedec_1,
4148 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004149 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00004150 },
4151
4152 {
4153 .vendor = "Hyundai",
4154 .name = "HY29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004155 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00004156 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004157 .model_id = HYUNDAI_HY29F002B,
David Borgc96a8bd2010-06-21 16:12:22 +00004158 .total_size = 256,
4159 .page_size = 256 * 1024,
4160 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
4161 .tested = TEST_UNTESTED,
4162 .probe = probe_jedec,
4163 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4164 .block_erasers =
4165 {
4166 {
4167 .eraseblocks = {
4168 {16 * 1024, 1},
4169 {8 * 1024, 2},
4170 {32 * 1024, 1},
4171 {64 * 1024, 3},
4172 },
4173 .block_erase = erase_sector_jedec,
4174 }, {
4175 .eraseblocks = { {256 * 1024, 1} },
4176 .block_erase = erase_chip_block_jedec,
4177 },
4178 },
4179 .write = write_jedec_1,
4180 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004181 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00004182 },
4183
4184 {
Joshua Roysf1324e02010-09-16 00:51:51 +00004185 .vendor = "Hyundai",
4186 .name = "HY29F040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004187 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00004188 .manufacture_id = HYUNDAI_ID,
4189 .model_id = HYUNDAI_HY29F040A,
4190 .total_size = 512,
4191 .page_size = 64 * 1024,
4192 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
4193 .tested = TEST_UNTESTED,
4194 .probe = probe_jedec,
4195 .probe_timing = TIMING_ZERO,
4196 .block_erasers =
4197 {
4198 {
4199 .eraseblocks = { {64 * 1024, 8} },
4200 .block_erase = erase_sector_jedec,
4201 }, {
4202 .eraseblocks = { {512 * 1024, 1} },
4203 .block_erase = erase_chip_block_jedec,
4204 },
4205 },
4206 .write = write_jedec_1,
4207 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004208 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00004209 },
4210
4211 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004212 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004213 .name = "28F001BN/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004214 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004215 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004216 .model_id = INTEL_28F001B,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004217 .total_size = 128,
4218 .page_size = 128 * 1024, /* 8k + 2x4k + 112k */
Sean Nelsondee4a832010-03-22 04:39:31 +00004219 .tested = TEST_UNTESTED,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004220 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004221 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00004222 .block_erasers =
4223 {
4224 {
4225 .eraseblocks = {
4226 {8 * 1024, 1},
4227 {4 * 1024, 2},
4228 {112 * 1024, 1},
4229 },
Sean Nelson28accc22010-03-19 18:47:06 +00004230 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00004231 },
4232 },
Sean Nelsondee4a832010-03-22 04:39:31 +00004233 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004234 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004235 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004236 },
4237
4238 {
4239 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004240 .name = "28F001BN/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004241 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004242 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004243 .model_id = INTEL_28F001T,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004244 .total_size = 128,
4245 .page_size = 128 * 1024, /* 112k + 2x4k + 8k */
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00004246 .tested = TEST_OK_PR,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004247 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004248 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00004249 .block_erasers =
4250 {
4251 {
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00004252 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00004253 {112 * 1024, 1},
4254 {4 * 1024, 2},
4255 {8 * 1024, 1},
4256 },
Sean Nelson28accc22010-03-19 18:47:06 +00004257 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00004258 },
4259 },
Sean Nelsondee4a832010-03-22 04:39:31 +00004260 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004261 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004262 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004263 },
4264
4265 {
4266 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004267 .name = "28F002BC/BL/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004268 .bustype = BUS_PARALLEL,
Joshua Roysd97c0e02010-07-22 15:20:43 +00004269 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004270 .model_id = INTEL_28F002T,
Joshua Roysd97c0e02010-07-22 15:20:43 +00004271 .total_size = 256,
4272 .page_size = 256 * 1024,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004273 .tested = TEST_OK_PRE,
Joshua Roysd97c0e02010-07-22 15:20:43 +00004274 .probe = probe_82802ab,
4275 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4276 .block_erasers =
4277 {
4278 {
4279 .eraseblocks = {
4280 {128 * 1024, 1},
4281 {96 * 1024, 1},
4282 {8 * 1024, 2},
4283 {16 * 1024, 1},
4284 },
4285 .block_erase = erase_block_82802ab,
4286 },
4287 },
4288 .write = write_82802ab,
4289 .read = read_memmapped,
4290 },
4291
4292 {
4293 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004294 .name = "28F008S3/S5/SC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004295 .bustype = BUS_PARALLEL,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00004296 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004297 .model_id = INTEL_28F004S3,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00004298 .total_size = 512,
4299 .page_size = 256,
4300 .tested = TEST_UNTESTED,
4301 .probe = probe_82802ab,
4302 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00004303 .block_erasers =
4304 {
4305 {
4306 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00004307 .block_erase = erase_block_82802ab,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00004308 },
4309 },
Sean Nelsondee4a832010-03-22 04:39:31 +00004310 .unlock = unlock_28f004s5,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00004311 .write = write_82802ab,
4312 .read = read_memmapped,
4313 },
4314
4315 {
4316 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004317 .name = "28F004B5/BE/BV/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004318 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00004319 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004320 .model_id = INTEL_28F004B,
Michael Karcherad0010a2010-04-03 10:27:08 +00004321 .total_size = 512,
4322 .page_size = 128 * 1024, /* maximal block size */
4323 .tested = TEST_UNTESTED,
4324 .probe = probe_82802ab,
4325 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4326 .block_erasers =
4327 {
4328 {
4329 .eraseblocks = {
4330 {16 * 1024, 1},
4331 {8 * 1024, 2},
4332 {96 * 1024, 1},
4333 {128 * 1024, 3},
4334 },
4335 .block_erase = erase_block_82802ab,
4336 },
4337 },
4338 .write = write_82802ab,
4339 .read = read_memmapped,
4340 },
4341
4342 {
4343 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004344 .name = "28F004B5/BE/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004345 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00004346 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004347 .model_id = INTEL_28F004T,
Michael Karcherad0010a2010-04-03 10:27:08 +00004348 .total_size = 512,
4349 .page_size = 128 * 1024, /* maximal block size */
4350 .tested = TEST_UNTESTED,
4351 .probe = probe_82802ab,
4352 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4353 .block_erasers =
4354 {
4355 {
4356 .eraseblocks = {
4357 {128 * 1024, 3},
4358 {96 * 1024, 1},
4359 {8 * 1024, 2},
4360 {16 * 1024, 1},
4361 },
4362 .block_erase = erase_block_82802ab,
4363 },
4364 },
4365 .write = write_82802ab,
4366 .read = read_memmapped,
4367 },
4368
4369 {
4370 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004371 .name = "28F400BV/BX/CE/CV-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004372 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00004373 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004374 .model_id = INTEL_28F400B,
Michael Karcherad0010a2010-04-03 10:27:08 +00004375 .total_size = 512,
4376 .page_size = 128 * 1024, /* maximal block size */
4377 .feature_bits = FEATURE_ADDR_SHIFTED,
4378 .tested = TEST_UNTESTED,
4379 .probe = probe_82802ab,
4380 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4381 .block_erasers =
4382 {
4383 {
4384 .eraseblocks = {
4385 {16 * 1024, 1},
4386 {8 * 1024, 2},
4387 {96 * 1024, 1},
4388 {128 * 1024, 3},
4389 },
4390 .block_erase = erase_block_82802ab,
4391 },
4392 },
4393 .write = write_82802ab,
4394 .read = read_memmapped,
4395 },
4396
4397 {
4398 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004399 .name = "28F400BV/BX/CE/CV-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004400 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00004401 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004402 .model_id = INTEL_28F400T,
Michael Karcherad0010a2010-04-03 10:27:08 +00004403 .total_size = 512,
4404 .page_size = 128 * 1024, /* maximal block size */
4405 .feature_bits = FEATURE_ADDR_SHIFTED,
4406 .tested = TEST_UNTESTED,
4407 .probe = probe_82802ab,
4408 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4409 .block_erasers =
4410 {
4411 {
4412 .eraseblocks = {
4413 {128 * 1024, 3},
4414 {96 * 1024, 1},
4415 {8 * 1024, 2},
4416 {16 * 1024, 1},
4417 },
4418 .block_erase = erase_block_82802ab,
4419 },
4420 },
4421 .write = write_82802ab,
4422 .read = read_memmapped,
4423 },
4424
4425 {
4426 .vendor = "Intel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004427 .name = "82802AB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004428 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004429 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004430 .model_id = INTEL_82802AB,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004431 .total_size = 512,
4432 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00004433 .feature_bits = FEATURE_REGISTERMAP,
Stefan Taunerd06d9412011-06-12 19:47:55 +00004434 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004435 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004436 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00004437 .block_erasers =
4438 {
4439 {
4440 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00004441 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00004442 },
4443 },
Sean Nelson28accc22010-03-19 18:47:06 +00004444 .unlock = unlock_82802ab,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004445 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004446 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004447 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004448 },
4449
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004450 {
4451 .vendor = "Intel",
4452 .name = "82802AC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004453 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004454 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004455 .model_id = INTEL_82802AC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004456 .total_size = 1024,
4457 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00004458 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +00004459 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004460 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004461 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00004462 .block_erasers =
4463 {
4464 {
4465 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +00004466 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00004467 },
4468 },
Sean Nelson28accc22010-03-19 18:47:06 +00004469 .unlock = unlock_82802ab,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004470 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004471 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004472 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004473 },
4474
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004475 {
4476 .vendor = "Macronix",
4477 .name = "MX25L512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004478 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004479 .manufacture_id = MACRONIX_ID,
4480 .model_id = MACRONIX_MX25L512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004481 .total_size = 64,
4482 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004483 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004484 .tested = TEST_UNTESTED,
4485 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004486 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004487 .block_erasers =
4488 {
4489 {
4490 .eraseblocks = { {4 * 1024, 16} },
4491 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004492 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004493 .eraseblocks = { {64 * 1024, 1} },
4494 .block_erase = spi_block_erase_52,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004495 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004496 .eraseblocks = { {64 * 1024, 1} },
4497 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004498 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004499 .eraseblocks = { {64 * 1024, 1} },
4500 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004501 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004502 .eraseblocks = { {64 * 1024, 1} },
4503 .block_erase = spi_block_erase_c7,
4504 },
4505 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004506 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004507 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004508 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004509 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004510 },
4511
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004512 {
4513 .vendor = "Macronix",
4514 .name = "MX25L1005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004515 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004516 .manufacture_id = MACRONIX_ID,
4517 .model_id = MACRONIX_MX25L1005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004518 .total_size = 128,
4519 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004520 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004521 .tested = TEST_UNTESTED,
4522 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004523 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004524 .block_erasers =
4525 {
4526 {
4527 .eraseblocks = { {4 * 1024, 32} },
4528 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004529 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004530 .eraseblocks = { {64 * 1024, 2} },
4531 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004532 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004533 .eraseblocks = { {128 * 1024, 1} },
4534 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004535 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004536 .eraseblocks = { {128 * 1024, 1} },
4537 .block_erase = spi_block_erase_c7,
4538 },
4539 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004540 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004541 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004542 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004543 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004544 },
4545
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004546 {
4547 .vendor = "Macronix",
4548 .name = "MX25L2005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004549 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004550 .manufacture_id = MACRONIX_ID,
4551 .model_id = MACRONIX_MX25L2005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004552 .total_size = 256,
4553 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004554 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004555 .tested = TEST_UNTESTED,
4556 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004557 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004558 .block_erasers =
4559 {
4560 {
4561 .eraseblocks = { {4 * 1024, 64} },
4562 .block_erase = spi_block_erase_20,
4563 }, {
4564 .eraseblocks = { {64 * 1024, 4} },
4565 .block_erase = spi_block_erase_52,
4566 }, {
4567 .eraseblocks = { {64 * 1024, 4} },
4568 .block_erase = spi_block_erase_d8,
4569 }, {
4570 .eraseblocks = { {256 * 1024, 1} },
4571 .block_erase = spi_block_erase_60,
4572 }, {
4573 .eraseblocks = { {256 * 1024, 1} },
4574 .block_erase = spi_block_erase_c7,
4575 },
4576 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004577 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004578 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004579 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004580 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004581 },
4582
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004583 {
4584 .vendor = "Macronix",
4585 .name = "MX25L4005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004586 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004587 .manufacture_id = MACRONIX_ID,
4588 .model_id = MACRONIX_MX25L4005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004589 .total_size = 512,
4590 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004591 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +00004592 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004593 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004594 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004595 .block_erasers =
4596 {
4597 {
4598 .eraseblocks = { {4 * 1024, 128} },
4599 .block_erase = spi_block_erase_20,
4600 }, {
4601 .eraseblocks = { {64 * 1024, 8} },
4602 .block_erase = spi_block_erase_52,
4603 }, {
4604 .eraseblocks = { {64 * 1024, 8} },
4605 .block_erase = spi_block_erase_d8,
4606 }, {
4607 .eraseblocks = { {512 * 1024, 1} },
4608 .block_erase = spi_block_erase_60,
4609 }, {
4610 .eraseblocks = { {512 * 1024, 1} },
4611 .block_erase = spi_block_erase_c7,
4612 },
4613 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004614 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004615 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004616 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004617 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004618 },
4619
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004620 {
4621 .vendor = "Macronix",
4622 .name = "MX25L8005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004623 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004624 .manufacture_id = MACRONIX_ID,
4625 .model_id = MACRONIX_MX25L8005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004626 .total_size = 1024,
4627 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004628 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +00004629 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004630 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004631 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004632 .block_erasers =
4633 {
4634 {
4635 .eraseblocks = { {4 * 1024, 256} },
4636 .block_erase = spi_block_erase_20,
4637 }, {
4638 .eraseblocks = { {64 * 1024, 16} },
4639 .block_erase = spi_block_erase_52,
4640 }, {
4641 .eraseblocks = { {64 * 1024, 16} },
4642 .block_erase = spi_block_erase_d8,
4643 }, {
4644 .eraseblocks = { {1024 * 1024, 1} },
4645 .block_erase = spi_block_erase_60,
4646 }, {
4647 .eraseblocks = { {1024 * 1024, 1} },
4648 .block_erase = spi_block_erase_c7,
4649 },
4650 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004651 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004652 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004653 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004654 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004655 },
4656
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004657 {
4658 .vendor = "Macronix",
4659 .name = "MX25L1605",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004660 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004661 .manufacture_id = MACRONIX_ID,
4662 .model_id = MACRONIX_MX25L1605,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004663 .total_size = 2048,
4664 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004665 .feature_bits = FEATURE_WRSR_WREN,
Sven Schnelle4bd8a402011-03-07 10:59:06 +00004666 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004667 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004668 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004669 .block_erasers =
4670 {
4671 {
4672 .eraseblocks = { {4 * 1024, 512} },
4673 .block_erase = spi_block_erase_20, /* This erase function has 64k blocksize for eLiteFlash */
4674 }, {
4675 .eraseblocks = { {64 * 1024, 32} }, /* Not supported in MX25L1605 (eLiteFlash) and MX25L1605D */
4676 .block_erase = spi_block_erase_52,
4677 }, {
4678 .eraseblocks = { {64 * 1024, 32} },
4679 .block_erase = spi_block_erase_d8,
4680 }, {
4681 .eraseblocks = { {2 * 1024 * 1024, 1} },
4682 .block_erase = spi_block_erase_60,
4683 }, {
4684 .eraseblocks = { {2 * 1024 * 1024, 1} },
4685 .block_erase = spi_block_erase_c7,
4686 },
4687 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004688 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004689 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004690 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004691 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004692 },
4693
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004694 {
4695 .vendor = "Macronix",
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004696 .name = "MX25L1635D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004697 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004698 .manufacture_id = MACRONIX_ID,
4699 .model_id = MACRONIX_MX25L1635D,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004700 .total_size = 2048,
4701 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004702 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004703 .tested = TEST_UNTESTED,
4704 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004705 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004706 .block_erasers =
4707 {
4708 {
4709 .eraseblocks = { {4 * 1024, 512} },
4710 .block_erase = spi_block_erase_20,
4711 }, {
4712 .eraseblocks = { {64 * 1024, 32} },
4713 .block_erase = spi_block_erase_d8,
4714 }, {
4715 .eraseblocks = { {2 * 1024 * 1024, 1} },
4716 .block_erase = spi_block_erase_60,
4717 }, {
4718 .eraseblocks = { {2 * 1024 * 1024, 1} },
4719 .block_erase = spi_block_erase_c7,
4720 }
4721 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004722 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004723 .write = spi_chip_write_256,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004724 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004725 .voltage = {2700, 3600},
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004726 },
Stephan Guillouxfd315502009-04-20 22:54:13 +00004727
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004728 {
4729 .vendor = "Macronix",
Stephan Guilloux3611b802010-09-13 19:59:28 +00004730 .name = "MX25L1635E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004731 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004732 .manufacture_id = MACRONIX_ID,
4733 .model_id = MACRONIX_MX25L1635E,
Stephan Guilloux3611b802010-09-13 19:59:28 +00004734 .total_size = 2048,
4735 .page_size = 256,
4736 .feature_bits = FEATURE_WRSR_WREN,
4737 .tested = TEST_UNTESTED,
4738 .probe = probe_spi_rdid,
4739 .probe_timing = TIMING_ZERO,
4740 .block_erasers =
4741 {
4742 {
4743 .eraseblocks = { {4 * 1024, 512} },
4744 .block_erase = spi_block_erase_20,
4745 }, {
4746 .eraseblocks = { {64 * 1024, 32} },
4747 .block_erase = spi_block_erase_d8,
4748 }, {
4749 .eraseblocks = { {2 * 1024 * 1024, 1} },
4750 .block_erase = spi_block_erase_60,
4751 }, {
4752 .eraseblocks = { {2 * 1024 * 1024, 1} },
4753 .block_erase = spi_block_erase_c7,
4754 }
4755 },
4756 .unlock = spi_disable_blockprotect,
4757 .write = spi_chip_write_256,
4758 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004759 .voltage = {2700, 3600},
Stephan Guilloux3611b802010-09-13 19:59:28 +00004760 },
4761
4762 {
4763 .vendor = "Macronix",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004764 .name = "MX25L3205",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004765 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004766 .manufacture_id = MACRONIX_ID,
4767 .model_id = MACRONIX_MX25L3205,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004768 .total_size = 4096,
4769 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004770 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00004771 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004772 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004773 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004774 .block_erasers =
4775 {
4776 {
4777 .eraseblocks = { {4 * 1024, 1024} },
4778 .block_erase = spi_block_erase_20,
4779 }, {
4780 .eraseblocks = { {4 * 1024, 1024} },
4781 .block_erase = spi_block_erase_d8,
4782 }, {
4783 .eraseblocks = { {4 * 1024 * 1024, 1} },
4784 .block_erase = spi_block_erase_60,
4785 }, {
4786 .eraseblocks = { {4 * 1024 * 1024, 1} },
4787 .block_erase = spi_block_erase_c7,
4788 },
4789 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004790 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004791 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004792 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004793 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004794 },
4795
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004796 {
4797 .vendor = "Macronix",
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00004798 .name = "MX25L3235D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004799 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004800 .manufacture_id = MACRONIX_ID,
4801 .model_id = MACRONIX_MX25L3235D,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00004802 .total_size = 4096,
4803 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004804 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00004805 .tested = TEST_UNTESTED,
4806 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004807 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004808 .block_erasers =
4809 {
4810 {
4811 .eraseblocks = { {4 * 1024, 1024} },
4812 .block_erase = spi_block_erase_20,
4813 }, {
4814 .eraseblocks = { {64 * 1024, 64} },
4815 .block_erase = spi_block_erase_d8,
4816 }, {
4817 .eraseblocks = { {4 * 1024 * 1024, 1} },
4818 .block_erase = spi_block_erase_60,
4819 }, {
4820 .eraseblocks = { {4 * 1024 * 1024, 1} },
4821 .block_erase = spi_block_erase_c7,
4822 }
4823 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004824 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004825 .write = spi_chip_write_256,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00004826 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004827 .voltage = {2700, 3600},
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00004828 },
4829
4830 {
4831 .vendor = "Macronix",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004832 .name = "MX25L6405",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004833 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004834 .manufacture_id = MACRONIX_ID,
4835 .model_id = MACRONIX_MX25L6405,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004836 .total_size = 8192,
4837 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004838 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzelac427b22012-02-16 21:07:07 +00004839 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004840 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004841 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004842 .block_erasers =
4843 {
4844 {
4845 .eraseblocks = { {64 * 1024, 128} },
4846 .block_erase = spi_block_erase_20,
4847 }, {
4848 .eraseblocks = { {64 * 1024, 128} },
4849 .block_erase = spi_block_erase_d8,
4850 }, {
4851 .eraseblocks = { {8 * 1024 * 1024, 1} },
4852 .block_erase = spi_block_erase_60,
4853 }, {
4854 .eraseblocks = { {8 * 1024 * 1024, 1} },
4855 .block_erase = spi_block_erase_c7,
4856 }
4857 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004858 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004859 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004860 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004861 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004862 },
4863
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004864 {
4865 .vendor = "Macronix",
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00004866 .name = "MX25L12805",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004867 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004868 .manufacture_id = MACRONIX_ID,
4869 .model_id = MACRONIX_MX25L12805,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00004870 .total_size = 16384,
4871 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004872 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00004873 .tested = TEST_UNTESTED,
4874 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004875 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004876 .block_erasers =
4877 {
4878 {
4879 .eraseblocks = { {4 * 1024, 4096} },
4880 .block_erase = spi_block_erase_20,
4881 }, {
4882 .eraseblocks = { {64 * 1024, 256} },
4883 .block_erase = spi_block_erase_d8,
4884 }, {
4885 .eraseblocks = { {16 * 1024 * 1024, 1} },
4886 .block_erase = spi_block_erase_60,
4887 }, {
4888 .eraseblocks = { {16 * 1024 * 1024, 1} },
4889 .block_erase = spi_block_erase_c7,
4890 }
4891 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004892 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004893 .write = spi_chip_write_256,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00004894 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004895 .voltage = {2700, 3600},
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00004896 },
4897
4898 {
4899 .vendor = "Macronix",
Mark Panajotovic502a9132009-08-24 01:42:24 +00004900 .name = "MX29F001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004901 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004902 .manufacture_id = MACRONIX_ID,
4903 .model_id = MACRONIX_MX29F001B,
Mark Panajotovic502a9132009-08-24 01:42:24 +00004904 .total_size = 128,
4905 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004906 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
4907 .tested = TEST_UNTESTED,
4908 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00004909 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004910 .block_erasers =
4911 {
4912 {
4913 .eraseblocks = {
4914 {8 * 1024, 1},
4915 {4 * 1024, 2},
4916 {8 * 1024, 2},
4917 {32 * 1024, 1},
4918 {64 * 1024, 1},
4919 },
Sean Nelson35727f72010-01-28 23:55:12 +00004920 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00004921 }, {
4922 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004923 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00004924 }
4925 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004926 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00004927 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004928 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00004929 },
4930
4931 {
4932 .vendor = "Macronix",
4933 .name = "MX29F001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004934 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004935 .manufacture_id = MACRONIX_ID,
4936 .model_id = MACRONIX_MX29F001T,
Mark Panajotovic502a9132009-08-24 01:42:24 +00004937 .total_size = 128,
4938 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004939 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stefan Tauner74c6ec62011-05-18 01:31:46 +00004940 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00004941 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00004942 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004943 .block_erasers =
4944 {
4945 {
4946 .eraseblocks = {
4947 {64 * 1024, 1},
4948 {32 * 1024, 1},
4949 {8 * 1024, 2},
4950 {4 * 1024, 2},
4951 {8 * 1024, 1},
4952 },
Sean Nelson35727f72010-01-28 23:55:12 +00004953 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00004954 }, {
4955 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004956 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00004957 }
4958 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004959 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00004960 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004961 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00004962 },
4963
4964 {
4965 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00004966 .name = "MX29F002(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004967 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004968 .manufacture_id = MACRONIX_ID,
4969 .model_id = MACRONIX_MX29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004970 .total_size = 256,
4971 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004972 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004973 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00004974 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00004975 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004976 .block_erasers =
4977 {
4978 {
4979 .eraseblocks = {
4980 {16 * 1024, 1},
4981 {8 * 1024, 2},
4982 {32 * 1024, 1},
4983 {64 * 1024, 3},
4984 },
Sean Nelson35727f72010-01-28 23:55:12 +00004985 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004986 }, {
4987 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004988 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004989 },
4990 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004991 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004992 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004993 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004994 },
4995
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004996 {
4997 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00004998 .name = "MX29F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004999 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005000 .manufacture_id = MACRONIX_ID,
5001 .model_id = MACRONIX_MX29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005002 .total_size = 256,
5003 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005004 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00005005 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00005006 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00005007 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005008 .block_erasers =
5009 {
5010 {
5011 .eraseblocks = {
5012 {64 * 1024, 3},
5013 {32 * 1024, 1},
5014 {8 * 1024, 2},
5015 {16 * 1024, 1},
5016 },
Sean Nelson35727f72010-01-28 23:55:12 +00005017 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005018 }, {
5019 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005020 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005021 },
5022 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005023 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005024 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005025 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005026 },
5027
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005028 {
5029 .vendor = "Macronix",
Joshua Roysf1324e02010-09-16 00:51:51 +00005030 .name = "MX29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005031 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00005032 .manufacture_id = MACRONIX_ID,
5033 .model_id = MACRONIX_MX29F040,
5034 .total_size = 512,
5035 .page_size = 64 * 1024,
5036 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5037 .tested = TEST_UNTESTED,
5038 .probe = probe_jedec,
5039 .probe_timing = TIMING_ZERO,
5040 .block_erasers =
5041 {
5042 {
5043 .eraseblocks = { {64 * 1024, 8} },
5044 .block_erase = erase_sector_jedec,
5045 }, {
5046 .eraseblocks = { {512 * 1024, 1} },
5047 .block_erase = erase_chip_block_jedec,
5048 },
5049 },
5050 .write = write_jedec_1,
5051 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005052 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00005053 },
5054
5055 {
5056 .vendor = "Macronix",
Carl-Daniel Hailfinger350a0c32009-07-24 13:59:27 +00005057 .name = "MX29LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005058 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005059 .manufacture_id = MACRONIX_ID,
5060 .model_id = MACRONIX_MX29LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005061 .total_size = 512,
5062 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005063 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5064 .tested = TEST_UNTESTED,
5065 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00005066 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00005067 .block_erasers =
5068 {
5069 {
5070 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson35727f72010-01-28 23:55:12 +00005071 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00005072 }, {
5073 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005074 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00005075 },
5076 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005077 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005078 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005079 .voltage = {2700, 3600},
Carl-Daniel Hailfinger7de86392008-12-10 10:32:05 +00005080 },
5081
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005082 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00005083 .vendor = "MoselVitelic",
5084 .name = "V29C51000B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005085 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00005086 .manufacture_id = SYNCMOS_MVC_ID,
5087 .model_id = MVC_V29C51000B,
5088 .total_size = 64,
5089 .page_size = 512,
5090 .feature_bits = FEATURE_EITHER_RESET,
5091 .tested = TEST_UNTESTED,
5092 .probe = probe_jedec,
5093 .probe_timing = TIMING_ZERO,
5094 .block_erasers =
5095 {
5096 {
5097 .eraseblocks = { {512, 128} },
5098 .block_erase = erase_sector_jedec,
5099 }, {
5100 .eraseblocks = { {64 * 1024, 1} },
5101 .block_erase = erase_chip_block_jedec,
5102 },
5103 },
5104 .write = write_jedec_1,
5105 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005106 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00005107 },
5108
5109 {
5110 .vendor = "MoselVitelic",
5111 .name = "V29C51000T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005112 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00005113 .manufacture_id = SYNCMOS_MVC_ID,
5114 .model_id = MVC_V29C51000T,
5115 .total_size = 64,
5116 .page_size = 512,
5117 .feature_bits = FEATURE_EITHER_RESET,
5118 .tested = TEST_UNTESTED,
5119 .probe = probe_jedec,
5120 .probe_timing = TIMING_ZERO,
5121 .block_erasers =
5122 {
5123 {
5124 .eraseblocks = { {512, 128} },
5125 .block_erase = erase_sector_jedec,
5126 }, {
5127 .eraseblocks = { {64 * 1024, 1} },
5128 .block_erase = erase_chip_block_jedec,
5129 },
5130 },
5131 .write = write_jedec_1,
5132 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005133 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00005134 },
5135
5136 {
5137 .vendor = "MoselVitelic",
5138 .name = "V29C51400B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005139 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00005140 .manufacture_id = SYNCMOS_MVC_ID,
5141 .model_id = MVC_V29C51400B,
5142 .total_size = 512,
5143 .page_size = 1024,
5144 .feature_bits = FEATURE_EITHER_RESET,
5145 .tested = TEST_UNTESTED,
5146 .probe = probe_jedec,
5147 .probe_timing = TIMING_ZERO,
5148 .block_erasers =
5149 {
5150 {
5151 .eraseblocks = { {1024, 512} },
5152 .block_erase = erase_sector_jedec,
5153 }, {
5154 .eraseblocks = { {512 * 1024, 1} },
5155 .block_erase = erase_chip_block_jedec,
5156 },
5157 },
5158 .write = write_jedec_1,
5159 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005160 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00005161 },
5162
5163 {
5164 .vendor = "MoselVitelic",
5165 .name = "V29C51400T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005166 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00005167 .manufacture_id = SYNCMOS_MVC_ID,
5168 .model_id = MVC_V29C51400T,
5169 .total_size = 512,
5170 .page_size = 1024,
5171 .feature_bits = FEATURE_EITHER_RESET,
5172 .tested = TEST_UNTESTED,
5173 .probe = probe_jedec,
5174 .probe_timing = TIMING_ZERO,
5175 .block_erasers =
5176 {
5177 {
5178 .eraseblocks = { {1024, 512} },
5179 .block_erase = erase_sector_jedec,
5180 }, {
5181 .eraseblocks = { {512 * 1024, 1} },
5182 .block_erase = erase_chip_block_jedec,
5183 },
5184 },
5185 .write = write_jedec_1,
5186 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005187 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00005188 },
5189
5190 {
5191 .vendor = "MoselVitelic",
5192 .name = "V29LC51000",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005193 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00005194 .manufacture_id = SYNCMOS_MVC_ID,
5195 .model_id = MVC_V29LC51000,
5196 .total_size = 64,
5197 .page_size = 512,
5198 .feature_bits = FEATURE_EITHER_RESET,
5199 .tested = TEST_UNTESTED,
5200 .probe = probe_jedec,
5201 .probe_timing = TIMING_ZERO,
5202 .block_erasers =
5203 {
5204 {
5205 .eraseblocks = { {512, 128} },
5206 .block_erase = erase_sector_jedec,
5207 }, {
5208 .eraseblocks = { {64 * 1024, 1} },
5209 .block_erase = erase_chip_block_jedec,
5210 },
5211 },
5212 .write = write_jedec_1,
5213 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005214 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00005215 },
5216
5217 {
5218 .vendor = "MoselVitelic",
5219 .name = "V29LC51001",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005220 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00005221 .manufacture_id = SYNCMOS_MVC_ID,
5222 .model_id = MVC_V29LC51001,
5223 .total_size = 128,
5224 .page_size = 512,
5225 .feature_bits = FEATURE_EITHER_RESET,
5226 .tested = TEST_UNTESTED,
5227 .probe = probe_jedec,
5228 .probe_timing = TIMING_ZERO,
5229 .block_erasers =
5230 {
5231 {
5232 .eraseblocks = { {512, 256} },
5233 .block_erase = erase_sector_jedec,
5234 }, {
5235 .eraseblocks = { {128 * 1024, 1} },
5236 .block_erase = erase_chip_block_jedec,
5237 },
5238 },
5239 .write = write_jedec_1,
5240 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005241 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00005242 },
5243
5244 {
5245 .vendor = "MoselVitelic",
5246 .name = "V29LC51002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005247 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00005248 .manufacture_id = SYNCMOS_MVC_ID,
5249 .model_id = MVC_V29LC51002,
5250 .total_size = 256,
5251 .page_size = 512,
5252 .feature_bits = FEATURE_EITHER_RESET,
5253 .tested = TEST_UNTESTED,
5254 .probe = probe_jedec,
5255 .probe_timing = TIMING_ZERO,
5256 .block_erasers =
5257 {
5258 {
5259 .eraseblocks = { {512, 512} },
5260 .block_erase = erase_sector_jedec,
5261 }, {
5262 .eraseblocks = { {256 * 1024, 1} },
5263 .block_erase = erase_chip_block_jedec,
5264 },
5265 },
5266 .write = write_jedec_1,
5267 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005268 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00005269 },
5270
5271 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005272 .vendor = "Numonyx",
5273 .name = "M25PE10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005274 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005275 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005276 .model_id = ST_M25PE10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005277 .total_size = 128,
5278 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005279 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005280 .tested = TEST_UNTESTED,
5281 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005282 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005283 .block_erasers =
5284 {
5285 {
5286 .eraseblocks = { {4 * 1024, 32} },
5287 .block_erase = spi_block_erase_20,
5288 }, {
5289 .eraseblocks = { {64 * 1024, 2} },
5290 .block_erase = spi_block_erase_d8,
5291 }, {
5292 .eraseblocks = { {128 * 1024, 1} },
5293 .block_erase = spi_block_erase_c7,
5294 }
5295 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005296 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005297 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005298 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005299 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005300 },
5301
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005302 {
5303 .vendor = "Numonyx",
5304 .name = "M25PE20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005305 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005306 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005307 .model_id = ST_M25PE20,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005308 .total_size = 256,
5309 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005310 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005311 .tested = TEST_UNTESTED,
5312 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005313 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005314 .block_erasers =
5315 {
5316 {
5317 .eraseblocks = { {4 * 1024, 64} },
5318 .block_erase = spi_block_erase_20,
5319 }, {
5320 .eraseblocks = { {64 * 1024, 4} },
5321 .block_erase = spi_block_erase_d8,
5322 }, {
5323 .eraseblocks = { {256 * 1024, 1} },
5324 .block_erase = spi_block_erase_c7,
5325 }
5326 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005327 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005328 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005329 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005330 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005331 },
5332
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005333 {
5334 .vendor = "Numonyx",
5335 .name = "M25PE40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005336 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005337 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005338 .model_id = ST_M25PE40,
Sean Nelson5643c072010-01-19 03:23:07 +00005339 .total_size = 512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005340 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005341 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005342 .tested = TEST_UNTESTED,
5343 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005344 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005345 .block_erasers =
5346 {
5347 {
5348 .eraseblocks = { {4 * 1024, 128} },
5349 .block_erase = spi_block_erase_20,
5350 }, {
5351 .eraseblocks = { {64 * 1024, 8} },
5352 .block_erase = spi_block_erase_d8,
5353 }, {
5354 .eraseblocks = { {512 * 1024, 1} },
5355 .block_erase = spi_block_erase_c7,
5356 }
5357 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005358 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005359 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005360 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005361 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005362 },
5363
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005364 {
5365 .vendor = "Numonyx",
5366 .name = "M25PE80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005367 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005368 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005369 .model_id = ST_M25PE80,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005370 .total_size = 1024,
5371 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005372 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzelac427b22012-02-16 21:07:07 +00005373 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005374 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005375 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005376 .block_erasers =
5377 {
5378 {
5379 .eraseblocks = { {4 * 1024, 256} },
5380 .block_erase = spi_block_erase_20,
5381 }, {
5382 .eraseblocks = { {64 * 1024, 16} },
5383 .block_erase = spi_block_erase_d8,
5384 }, {
5385 .eraseblocks = { {1024 * 1024, 1} },
5386 .block_erase = spi_block_erase_c7,
5387 }
5388 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005389 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005390 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005391 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005392 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005393 },
5394
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005395 {
5396 .vendor = "Numonyx",
5397 .name = "M25PE16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005398 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005399 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005400 .model_id = ST_M25PE16,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005401 .total_size = 2048,
5402 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005403 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005404 .tested = TEST_UNTESTED,
5405 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005406 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005407 .block_erasers =
5408 {
5409 {
5410 .eraseblocks = { {4 * 1024, 512} },
5411 .block_erase = spi_block_erase_20,
5412 }, {
5413 .eraseblocks = { {64 * 1024, 32} },
5414 .block_erase = spi_block_erase_d8,
5415 }, {
5416 .eraseblocks = { {2 * 1024 * 1024, 1} },
5417 .block_erase = spi_block_erase_c7,
5418 }
5419 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005420 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005421 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005422 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005423 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005424 },
5425
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005426 {
Niklas Söderlundae4294f2012-04-14 21:04:03 +00005427 .vendor = "Numonyx",
5428 .name = "N25Q064",
5429 .bustype = BUS_SPI,
5430 .manufacture_id = ST_ID,
5431 .model_id = ST_N25Q064,
5432 .total_size = 8192,
5433 .page_size = 256,
5434 .tested = TEST_OK_PREW,
5435 .probe = probe_spi_rdid,
5436 .probe_timing = TIMING_ZERO,
5437 .block_erasers =
5438 {
5439 {
5440 .eraseblocks = { {4 * 1024, 2048 } },
5441 .block_erase = spi_block_erase_20,
5442 }, {
5443 .eraseblocks = { {64 * 1024, 128} },
5444 .block_erase = spi_block_erase_d8,
5445 }, {
5446 .eraseblocks = { {8 * 1024 * 1024, 1} },
5447 .block_erase = spi_block_erase_c7,
5448 }
5449 },
5450 .unlock = spi_disable_blockprotect,
5451 .write = spi_chip_write_256,
5452 .read = spi_chip_read,
5453 },
5454
5455 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005456 .vendor = "PMC",
5457 .name = "Pm25LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005458 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005459 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005460 .model_id = PMC_PM25LV010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005461 .total_size = 128,
5462 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005463 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005464 .tested = TEST_UNTESTED,
5465 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005466 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005467 .block_erasers =
5468 {
5469 {
5470 .eraseblocks = { {4 * 1024, 32} },
5471 .block_erase = spi_block_erase_d7,
5472 }, {
5473 .eraseblocks = { {32 * 1024, 4} },
5474 .block_erase = spi_block_erase_d8,
5475 }, {
5476 .eraseblocks = { {128 * 1024, 1} },
5477 .block_erase = spi_block_erase_c7,
5478 }
5479 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005480 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005481 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005482 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005483 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005484 },
5485
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005486 {
5487 .vendor = "PMC",
5488 .name = "Pm25LV016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005489 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005490 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005491 .model_id = PMC_PM25LV016B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005492 .total_size = 2048,
5493 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005494 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005495 .tested = TEST_UNTESTED,
5496 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005497 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005498 .block_erasers =
5499 {
5500 {
5501 .eraseblocks = { {4 * 1024, 512} },
5502 .block_erase = spi_block_erase_d7,
5503 }, {
5504 .eraseblocks = { {4 * 1024, 512} },
5505 .block_erase = spi_block_erase_20,
5506 }, {
5507 .eraseblocks = { {64 * 1024, 32} },
5508 .block_erase = spi_block_erase_d8,
5509 }, {
5510 .eraseblocks = { {2 * 1024 * 1024, 1} },
5511 .block_erase = spi_block_erase_60,
5512 }, {
5513 .eraseblocks = { {2 * 1024 * 1024, 1} },
5514 .block_erase = spi_block_erase_c7,
5515 }
5516 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005517 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005518 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005519 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005520 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005521 },
5522
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005523 {
5524 .vendor = "PMC",
5525 .name = "Pm25LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005526 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005527 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005528 .model_id = PMC_PM25LV020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005529 .total_size = 256,
5530 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005531 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005532 .tested = TEST_UNTESTED,
5533 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005534 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005535 .block_erasers =
5536 {
5537 {
5538 .eraseblocks = { {4 * 1024, 64} },
5539 .block_erase = spi_block_erase_d7,
5540 }, {
5541 .eraseblocks = { {64 * 1024, 4} },
5542 .block_erase = spi_block_erase_d8,
5543 }, {
5544 .eraseblocks = { {256 * 1024, 1} },
5545 .block_erase = spi_block_erase_c7,
5546 }
5547 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005548 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005549 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005550 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005551 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005552 },
5553
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005554 {
5555 .vendor = "PMC",
5556 .name = "Pm25LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005557 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005558 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005559 .model_id = PMC_PM25LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005560 .total_size = 512,
5561 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005562 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +00005563 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005564 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005565 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005566 .block_erasers =
5567 {
5568 {
5569 .eraseblocks = { {4 * 1024, 128} },
5570 .block_erase = spi_block_erase_d7,
5571 }, {
5572 .eraseblocks = { {64 * 1024, 8} },
5573 .block_erase = spi_block_erase_d8,
5574 }, {
5575 .eraseblocks = { {512 * 1024, 1} },
5576 .block_erase = spi_block_erase_c7,
5577 }
5578 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005579 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005580 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005581 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005582 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005583 },
5584
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005585 {
5586 .vendor = "PMC",
5587 .name = "Pm25LV080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005588 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005589 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005590 .model_id = PMC_PM25LV080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005591 .total_size = 1024,
5592 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005593 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005594 .tested = TEST_UNTESTED,
5595 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005596 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005597 .block_erasers =
5598 {
5599 {
5600 .eraseblocks = { {4 * 1024, 256} },
5601 .block_erase = spi_block_erase_d7,
5602 }, {
5603 .eraseblocks = { {4 * 1024, 256} },
5604 .block_erase = spi_block_erase_20,
5605 }, {
5606 .eraseblocks = { {64 * 1024, 16} },
5607 .block_erase = spi_block_erase_d8,
5608 }, {
5609 .eraseblocks = { {1024 * 1024, 1} },
5610 .block_erase = spi_block_erase_60,
5611 }, {
5612 .eraseblocks = { {1024 * 1024, 1} },
5613 .block_erase = spi_block_erase_c7,
5614 }
5615 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005616 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005617 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005618 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005619 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005620 },
5621
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005622 {
5623 .vendor = "PMC",
5624 .name = "Pm25LV512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005625 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005626 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005627 .model_id = PMC_PM25LV512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005628 .total_size = 64,
5629 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005630 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005631 .tested = TEST_UNTESTED,
5632 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005633 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005634 .block_erasers =
5635 {
5636 {
5637 .eraseblocks = { {4 * 1024, 16} },
5638 .block_erase = spi_block_erase_d7,
5639 }, {
5640 .eraseblocks = { {32 * 1024, 2} },
5641 .block_erase = spi_block_erase_d8,
5642 }, {
5643 .eraseblocks = { {64 * 1024, 1} },
5644 .block_erase = spi_block_erase_c7,
5645 }
5646 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005647 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005648 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005649 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005650 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005651 },
5652
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005653 {
5654 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00005655 .name = "Pm29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005656 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005657 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005658 .model_id = PMC_PM29F002T,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005659 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00005660 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005661 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +00005662 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00005663 .probe = probe_jedec,
Stefan Tauneraf2db612011-12-02 21:48:17 +00005664 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00005665 .block_erasers =
5666 {
5667 {
5668 .eraseblocks = {
5669 {128 * 1024, 1},
5670 {96 * 1024, 1},
5671 {8 * 1024, 2},
5672 {16 * 1024, 1},
5673 },
Sean Nelson35727f72010-01-28 23:55:12 +00005674 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00005675 }, {
5676 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005677 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00005678 },
5679 },
Sean Nelson35727f72010-01-28 23:55:12 +00005680 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005681 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005682 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005683 },
5684
5685 {
5686 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00005687 .name = "Pm29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005688 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005689 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005690 .model_id = PMC_PM29F002B,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005691 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00005692 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005693 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005694 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00005695 .probe = probe_jedec,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005696 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00005697 .block_erasers =
5698 {
5699 {
5700 .eraseblocks = {
5701 {16 * 1024, 1},
5702 {8 * 1024, 2},
5703 {96 * 1024, 1},
5704 {128 * 1024, 1},
5705 },
Sean Nelson35727f72010-01-28 23:55:12 +00005706 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00005707 }, {
5708 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005709 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00005710 },
5711 },
Sean Nelson35727f72010-01-28 23:55:12 +00005712 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005713 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005714 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005715 },
5716
5717 {
5718 .vendor = "PMC",
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00005719 .name = "Pm39LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005720 .bustype = BUS_PARALLEL,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00005721 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005722 .model_id = PMC_PM39F010, /* Pm39LV010 and Pm39F010 have identical IDs but different voltage */
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00005723 .total_size = 128,
5724 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00005725 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00005726 .tested = TEST_OK_PREW,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00005727 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005728 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson5643c072010-01-19 03:23:07 +00005729 .block_erasers =
5730 {
5731 {
5732 .eraseblocks = { {4 * 1024, 32} },
5733 .block_erase = erase_sector_jedec,
5734 }, {
5735 .eraseblocks = { {64 * 1024, 2} },
5736 .block_erase = erase_block_jedec,
5737 }, {
5738 .eraseblocks = { {128 * 1024, 1} },
5739 .block_erase = erase_chip_block_jedec,
5740 }
5741 },
Sean Nelson35727f72010-01-28 23:55:12 +00005742 .write = write_jedec_1,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00005743 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005744 .voltage = {2700, 3600},
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00005745 },
5746
5747 {
5748 .vendor = "PMC",
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005749 .name = "Pm39LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005750 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005751 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005752 .model_id = PMC_PM39LV020,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005753 .total_size = 256,
5754 .page_size = 4096,
5755 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
5756 .tested = TEST_UNTESTED,
5757 .probe = probe_jedec,
5758 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5759 .block_erasers =
5760 {
5761 {
5762 .eraseblocks = { {4 * 1024, 64} },
5763 .block_erase = erase_sector_jedec,
5764 }, {
5765 .eraseblocks = { {64 * 1024, 4} },
5766 .block_erase = erase_block_jedec,
5767 }, {
5768 .eraseblocks = { {256 * 1024, 1} },
5769 .block_erase = erase_chip_block_jedec,
5770 }
5771 },
5772 .write = write_jedec_1,
5773 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005774 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005775 },
5776
5777 {
5778 .vendor = "PMC",
5779 .name = "Pm39LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005780 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005781 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005782 .model_id = PMC_PM39LV040,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005783 .total_size = 512,
5784 .page_size = 4096,
5785 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00005786 .tested = TEST_OK_PR,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005787 .probe = probe_jedec,
5788 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5789 .block_erasers =
5790 {
5791 {
5792 .eraseblocks = { {4 * 1024, 128} },
5793 .block_erase = erase_sector_jedec,
5794 }, {
5795 .eraseblocks = { {64 * 1024, 8} },
5796 .block_erase = erase_block_jedec,
5797 }, {
5798 .eraseblocks = { {512 * 1024, 1} },
5799 .block_erase = erase_chip_block_jedec,
5800 }
5801 },
5802 .write = write_jedec_1,
5803 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005804 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005805 },
5806
5807 {
5808 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005809 .name = "Pm49FL002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005810 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005811 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005812 .model_id = PMC_PM49FL002,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005813 .total_size = 256,
5814 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005815 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunerd06d9412011-06-12 19:47:55 +00005816 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00005817 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005818 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00005819 .block_erasers =
5820 {
5821 {
5822 .eraseblocks = { {4 * 1024, 64} },
5823 .block_erase = erase_sector_jedec,
5824 }, {
5825 .eraseblocks = { {16 * 1024, 16} },
5826 .block_erase = erase_block_jedec,
5827 }, {
5828 .eraseblocks = { {256 * 1024, 1} },
5829 .block_erase = erase_chip_block_jedec,
5830 }
5831 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00005832 .unlock = unlock_49fl00x,
Sean Nelson36172342010-02-27 18:01:15 +00005833 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005834 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005835 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005836 },
5837
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005838 {
5839 .vendor = "PMC",
5840 .name = "Pm49FL004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005841 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005842 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005843 .model_id = PMC_PM49FL004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005844 .total_size = 512,
5845 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005846 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00005847 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00005848 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005849 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00005850 .block_erasers =
5851 {
5852 {
5853 .eraseblocks = { {4 * 1024, 128} },
5854 .block_erase = erase_sector_jedec,
5855 }, {
5856 .eraseblocks = { {64 * 1024, 8} },
5857 .block_erase = erase_block_jedec,
5858 }, {
5859 .eraseblocks = { {512 * 1024, 1} },
5860 .block_erase = erase_chip_block_jedec,
5861 }
5862 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00005863 .unlock = unlock_49fl00x,
Sean Nelson36172342010-02-27 18:01:15 +00005864 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005865 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005866 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005867 },
5868
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005869 {
Sean Nelsond70b09c2009-11-24 02:11:08 +00005870 .vendor = "Sanyo",
5871 .name = "LF25FW203A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005872 .bustype = BUS_SPI,
Sean Nelsond70b09c2009-11-24 02:11:08 +00005873 .manufacture_id = SANYO_ID,
5874 .model_id = SANYO_LE25FW203A,
5875 .total_size = 2048,
5876 .page_size = 256,
5877 .tested = TEST_UNTESTED,
5878 .probe = probe_spi_rdid,
5879 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005880 .block_erasers =
5881 {
5882 {
5883 .eraseblocks = { {64 * 1024, 32} },
5884 .block_erase = spi_block_erase_d8,
5885 }, {
5886 .eraseblocks = { {2 * 1024 * 1024, 1} },
5887 .block_erase = spi_block_erase_c7,
5888 }
5889 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005890 .unlock = spi_disable_blockprotect,
Sean Nelsond70b09c2009-11-24 02:11:08 +00005891 .write = spi_chip_write_256,
5892 .read = spi_chip_read,
5893 },
5894
5895 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005896 .vendor = "Sharp",
Mattias Mattssonfca3b012011-08-25 22:44:11 +00005897 .name = "LH28F008BJT-BTLZ1",
5898 .bustype = BUS_PARALLEL,
5899 .manufacture_id = SHARP_ID,
5900 .model_id = SHARP_LH28F008BJxxPB,
5901 .total_size = 1024,
5902 .page_size = 64 * 1024,
5903 .tested = TEST_OK_PREW,
5904 .probe = probe_82802ab,
5905 .probe_timing = TIMING_ZERO,
5906 .block_erasers =
5907 {
5908 {
5909 .eraseblocks = {
5910 {8 * 1024, 8},
5911 {64 * 1024, 15}
5912 },
5913 .block_erase = erase_block_82802ab,
5914 }, {
5915 .eraseblocks = { {1024 * 1024, 1} },
5916 .block_erase = erase_sector_49lfxxxc,
5917 }
5918 },
5919 .unlock = unlock_lh28f008bjt,
5920 .write = write_82802ab,
5921 .read = read_memmapped,
5922 .voltage = {2700, 3600},
5923 },
5924
5925 {
5926 .vendor = "Sharp",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005927 .name = "LHF00L04",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005928 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005929 .manufacture_id = SHARP_ID,
5930 .model_id = SHARP_LHF00L04,
5931 .total_size = 1024,
5932 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005933 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005934 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005935 .probe = probe_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00005936 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00005937 .block_erasers =
5938 {
5939 {
5940 .eraseblocks = {
5941 {64 * 1024, 15},
5942 {8 * 1024, 8}
5943 },
Sean Nelson28accc22010-03-19 18:47:06 +00005944 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00005945 }, {
5946 .eraseblocks = {
5947 {1024 * 1024, 1}
5948 },
Sean Nelson51c83fb2010-01-20 20:55:53 +00005949 .block_erase = NULL, /* 30 D0, only in A/A mux mode */
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00005950 },
5951 },
Sean Nelson28accc22010-03-19 18:47:06 +00005952 .unlock = unlock_82802ab,
5953 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005954 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005955 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005956 },
5957
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005958 {
5959 .vendor = "Spansion",
Rudy Hostf4e57772010-11-29 00:37:49 +00005960 .name = "S25FL004A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005961 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00005962 .manufacture_id = SPANSION_ID,
5963 .model_id = SPANSION_S25FL004A,
5964 .total_size = 512,
5965 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005966 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +00005967 .tested = TEST_UNTESTED,
5968 .probe = probe_spi_rdid,
5969 .probe_timing = TIMING_ZERO,
5970 .block_erasers =
5971 {
5972 {
5973 .eraseblocks = { {64 * 1024, 8} },
5974 .block_erase = spi_block_erase_d8,
5975 }, {
5976 .eraseblocks = { {512 * 1024, 1} },
5977 .block_erase = spi_block_erase_c7,
5978 }
5979 },
5980 .unlock = spi_disable_blockprotect,
5981 .write = spi_chip_write_256,
5982 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005983 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00005984 },
5985
5986 {
5987 .vendor = "Spansion",
Michael Karcher23ff4602010-01-12 23:29:30 +00005988 .name = "S25FL008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005989 .bustype = BUS_SPI,
Michael Karcher23ff4602010-01-12 23:29:30 +00005990 .manufacture_id = SPANSION_ID,
5991 .model_id = SPANSION_S25FL008A,
5992 .total_size = 1024,
5993 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00005994 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005995 .tested = TEST_OK_PRE,
Michael Karcher23ff4602010-01-12 23:29:30 +00005996 .probe = probe_spi_rdid,
5997 .probe_timing = TIMING_ZERO,
Michael Karcher23ff4602010-01-12 23:29:30 +00005998 .block_erasers =
5999 {
6000 {
6001 .eraseblocks = { {64 * 1024, 16} },
6002 .block_erase = spi_block_erase_d8,
6003 }, {
6004 .eraseblocks = { {1024 * 1024, 1} },
6005 .block_erase = spi_block_erase_c7,
6006 }
6007 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006008 .unlock = spi_disable_blockprotect,
Michael Karcher23ff4602010-01-12 23:29:30 +00006009 .write = spi_chip_write_256,
6010 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006011 .voltage = {2700, 3600},
Michael Karcher23ff4602010-01-12 23:29:30 +00006012 },
6013
6014 {
6015 .vendor = "Spansion",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006016 .name = "S25FL016A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006017 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006018 .manufacture_id = SPANSION_ID,
6019 .model_id = SPANSION_S25FL016A,
6020 .total_size = 2048,
6021 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006022 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006023 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006024 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006025 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00006026 .block_erasers =
6027 {
6028 {
6029 .eraseblocks = { {64 * 1024, 32} },
6030 .block_erase = spi_block_erase_d8,
6031 }, {
6032 .eraseblocks = { {2 * 1024 * 1024, 1} },
6033 .block_erase = spi_block_erase_c7,
6034 }
6035 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006036 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00006037 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006038 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006039 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006040 },
6041
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006042 {
Rudy Hostf4e57772010-11-29 00:37:49 +00006043 .vendor = "Spansion",
6044 .name = "S25FL032A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006045 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00006046 .manufacture_id = SPANSION_ID,
6047 .model_id = SPANSION_S25FL032A,
6048 .total_size = 4096,
6049 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006050 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner2abab942012-04-27 20:41:23 +00006051 .tested = TEST_OK_PR,
Rudy Hostf4e57772010-11-29 00:37:49 +00006052 .probe = probe_spi_rdid,
6053 .probe_timing = TIMING_ZERO,
6054 .block_erasers =
6055 {
6056 {
6057 .eraseblocks = { {64 * 1024, 64} },
6058 .block_erase = spi_block_erase_d8,
6059 }, {
6060 .eraseblocks = { {4 * 1024 * 1024, 1} },
6061 .block_erase = spi_block_erase_c7,
6062 }
6063 },
6064 .unlock = spi_disable_blockprotect,
6065 .write = spi_chip_write_256,
6066 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006067 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00006068 },
6069
6070 {
6071 .vendor = "Spansion",
6072 .name = "S25FL064A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006073 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00006074 .manufacture_id = SPANSION_ID,
6075 .model_id = SPANSION_S25FL064A,
6076 .total_size = 8192,
6077 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006078 .feature_bits = FEATURE_WRSR_WREN,
Rudy Hostf4e57772010-11-29 00:37:49 +00006079 .tested = TEST_OK_PREW,
6080 .probe = probe_spi_rdid,
6081 .probe_timing = TIMING_ZERO,
6082 .block_erasers =
6083 {
6084 {
6085 .eraseblocks = { {64 * 1024, 128} },
6086 .block_erase = spi_block_erase_d8,
6087 }, {
6088 .eraseblocks = { {8 * 1024 * 1024, 1} },
6089 .block_erase = spi_block_erase_c7,
6090 }
6091 },
6092 .unlock = spi_disable_blockprotect,
6093 .write = spi_chip_write_256,
6094 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006095 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00006096 },
6097
6098 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006099 .vendor = "SST",
Zeus Castro33670ba2011-08-17 09:50:11 +00006100 .name = "SST25LF040A",
6101 .bustype = BUS_SPI,
6102 .manufacture_id = SST_ID,
6103 .model_id = SST_SST25VF040_REMS,
6104 .total_size = 512,
6105 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006106 .feature_bits = FEATURE_WRSR_EWSR,
Uwe Hermann4335ec82011-09-07 20:20:25 +00006107 .tested = TEST_OK_PREW,
Zeus Castro33670ba2011-08-17 09:50:11 +00006108 .probe = probe_spi_res2,
6109 .probe_timing = TIMING_ZERO,
6110 .block_erasers =
6111 {
6112 {
6113 .eraseblocks = { {4 * 1024, 128} },
6114 .block_erase = spi_block_erase_20,
6115 }, {
6116 .eraseblocks = { {32 * 1024, 16} },
6117 .block_erase = spi_block_erase_52,
6118 }, {
6119 .eraseblocks = { {512 * 1024, 1} },
6120 .block_erase = spi_block_erase_60,
6121 },
6122 },
6123 .unlock = spi_disable_blockprotect,
6124 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
6125 .read = spi_chip_read,
6126 .voltage = {3000, 3600},
6127 },
6128
6129 {
6130 .vendor = "SST",
6131 .name = "SST25LF080A",
6132 .bustype = BUS_SPI,
6133 .manufacture_id = SST_ID,
6134 .model_id = SST_SST25VF080_REMS,
6135 .total_size = 1024,
6136 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006137 .feature_bits = FEATURE_WRSR_EWSR,
Zeus Castro33670ba2011-08-17 09:50:11 +00006138 .tested = TEST_UNTESTED,
6139 .probe = probe_spi_res2,
6140 .probe_timing = TIMING_ZERO,
6141 .block_erasers =
6142 {
6143 {
6144 .eraseblocks = { {4 * 1024, 256} },
6145 .block_erase = spi_block_erase_20,
6146 }, {
6147 .eraseblocks = { {32 * 1024, 32} },
6148 .block_erase = spi_block_erase_52,
6149 }, {
6150 .eraseblocks = { {1024 * 1024, 1} },
6151 .block_erase = spi_block_erase_60,
6152 },
6153 },
6154 .unlock = spi_disable_blockprotect,
6155 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
6156 .read = spi_chip_read,
6157 .voltage = {3000, 3600},
6158 },
6159
6160 {
6161 .vendor = "SST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006162 .name = "SST25VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006163 .bustype = BUS_SPI,
Mark Marshall90021f22010-12-03 14:48:11 +00006164 .manufacture_id = SST_ID,
6165 .model_id = SST_SST25VF010_REMS,
6166 .total_size = 128,
6167 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006168 .feature_bits = FEATURE_WRSR_EWSR,
Mark Marshall90021f22010-12-03 14:48:11 +00006169 .tested = TEST_OK_PREW,
6170 .probe = probe_spi_rems,
6171 .probe_timing = TIMING_ZERO,
6172 .block_erasers =
6173 {
6174 {
6175 .eraseblocks = { {4 * 1024, 32} },
6176 .block_erase = spi_block_erase_20,
6177 }, {
6178 .eraseblocks = { {32 * 1024, 4} },
6179 .block_erase = spi_block_erase_52,
6180 }, {
6181 .eraseblocks = { {128 * 1024, 1} },
6182 .block_erase = spi_block_erase_60,
6183 },
6184 },
6185 .unlock = spi_disable_blockprotect,
6186 .write = spi_chip_write_1,
6187 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006188 .voltage = {2700, 3600},
Mark Marshall90021f22010-12-03 14:48:11 +00006189 },
6190
6191 {
6192 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006193 .name = "SST25VF016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006194 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006195 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006196 .model_id = SST_SST25VF016B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006197 .total_size = 2048,
6198 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006199 .feature_bits = FEATURE_WRSR_EWSR,
Mark Marshall90021f22010-12-03 14:48:11 +00006200 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006201 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006202 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006203 .block_erasers =
6204 {
6205 {
6206 .eraseblocks = { {4 * 1024, 512} },
6207 .block_erase = spi_block_erase_20,
6208 }, {
6209 .eraseblocks = { {32 * 1024, 64} },
6210 .block_erase = spi_block_erase_52,
6211 }, {
6212 .eraseblocks = { {64 * 1024, 32} },
6213 .block_erase = spi_block_erase_d8,
6214 }, {
6215 .eraseblocks = { {2 * 1024 * 1024, 1} },
6216 .block_erase = spi_block_erase_60,
6217 }, {
6218 .eraseblocks = { {2 * 1024 * 1024, 1} },
6219 .block_erase = spi_block_erase_c7,
6220 },
6221 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006222 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00006223 .write = spi_aai_write,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006224 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006225 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006226 },
6227
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006228 {
6229 .vendor = "SST",
6230 .name = "SST25VF032B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006231 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006232 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006233 .model_id = SST_SST25VF032B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006234 .total_size = 4096,
6235 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006236 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerfcf6a8c2011-05-18 01:32:00 +00006237 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006238 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006239 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006240 .block_erasers =
6241 {
6242 {
6243 .eraseblocks = { {4 * 1024, 1024} },
6244 .block_erase = spi_block_erase_20,
6245 }, {
6246 .eraseblocks = { {32 * 1024, 128} },
6247 .block_erase = spi_block_erase_52,
6248 }, {
6249 .eraseblocks = { {64 * 1024, 64} },
6250 .block_erase = spi_block_erase_d8,
6251 }, {
6252 .eraseblocks = { {4 * 1024 * 1024, 1} },
6253 .block_erase = spi_block_erase_60,
6254 }, {
6255 .eraseblocks = { {4 * 1024 * 1024, 1} },
6256 .block_erase = spi_block_erase_c7,
6257 },
6258 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006259 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +00006260 .write = spi_aai_write,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006261 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006262 .voltage = {2700, 3600},
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006263 },
6264
6265 {
6266 .vendor = "SST",
Ed Swierk86f4e6d2010-07-21 15:02:22 +00006267 .name = "SST25VF064C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006268 .bustype = BUS_SPI,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00006269 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006270 .model_id = SST_SST25VF064C,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00006271 .total_size = 8192,
6272 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006273 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Tauner8179be52011-06-04 13:13:34 +00006274 .tested = TEST_OK_PREW,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00006275 .probe = probe_spi_rdid,
6276 .probe_timing = TIMING_ZERO,
6277 .block_erasers =
6278 {
6279 {
6280 .eraseblocks = { {4 * 1024, 2048} },
6281 .block_erase = spi_block_erase_20,
6282 }, {
6283 .eraseblocks = { {32 * 1024, 256} },
6284 .block_erase = spi_block_erase_52,
6285 }, {
6286 .eraseblocks = { {64 * 1024, 128} },
6287 .block_erase = spi_block_erase_d8,
6288 }, {
6289 .eraseblocks = { {8 * 1024 * 1024, 1} },
6290 .block_erase = spi_block_erase_60,
6291 }, {
6292 .eraseblocks = { {8 * 1024 * 1024, 1} },
6293 .block_erase = spi_block_erase_c7,
6294 },
6295 },
6296 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +00006297 .write = spi_chip_write_256,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00006298 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006299 .voltage = {2700, 3600},
Ed Swierk86f4e6d2010-07-21 15:02:22 +00006300 },
6301
6302 {
6303 .vendor = "SST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006304 .name = "SST25VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006305 .bustype = BUS_SPI,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006306 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006307 .model_id = SST_SST25VF040_REMS,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006308 .total_size = 512,
6309 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006310 .feature_bits = FEATURE_WRSR_EWSR,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006311 .tested = TEST_OK_PR,
6312 .probe = probe_spi_rems,
6313 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006314 .block_erasers =
6315 {
6316 {
6317 .eraseblocks = { {4 * 1024, 128} },
6318 .block_erase = spi_block_erase_20,
6319 }, {
6320 .eraseblocks = { {32 * 1024, 16} },
6321 .block_erase = spi_block_erase_52,
6322 }, {
6323 .eraseblocks = { {512 * 1024, 1} },
6324 .block_erase = spi_block_erase_60,
6325 },
6326 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006327 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00006328 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006329 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006330 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006331 },
6332
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006333 {
6334 .vendor = "SST",
6335 .name = "SST25VF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006336 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006337 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006338 .model_id = SST_SST25VF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006339 .total_size = 512,
6340 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006341 .feature_bits = FEATURE_WRSR_EWSR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006342 .tested = TEST_UNTESTED,
6343 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006344 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006345 .block_erasers =
6346 {
6347 {
6348 .eraseblocks = { {4 * 1024, 128} },
6349 .block_erase = spi_block_erase_20,
6350 }, {
6351 .eraseblocks = { {32 * 1024, 16} },
6352 .block_erase = spi_block_erase_52,
6353 }, {
6354 .eraseblocks = { {64 * 1024, 8} },
6355 .block_erase = spi_block_erase_d8,
6356 }, {
6357 .eraseblocks = { {512 * 1024, 1} },
6358 .block_erase = spi_block_erase_60,
6359 }, {
6360 .eraseblocks = { {512 * 1024, 1} },
6361 .block_erase = spi_block_erase_c7,
6362 },
6363 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006364 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00006365 .write = spi_aai_write,
Zheng Bao0677dff2009-02-25 08:07:33 +00006366 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006367 .voltage = {2700, 3600},
Zheng Bao0677dff2009-02-25 08:07:33 +00006368 },
6369
6370 {
6371 .vendor = "SST",
Peter Stugefd9217d2009-01-26 03:37:40 +00006372 .name = "SST25VF040B.REMS",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006373 .bustype = BUS_SPI,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006374 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006375 .model_id = SST_SST25VF040B_REMS,
Peter Stugefd9217d2009-01-26 03:37:40 +00006376 .total_size = 512,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006377 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006378 .feature_bits = FEATURE_WRSR_EWSR,
Peter Stugefd9217d2009-01-26 03:37:40 +00006379 .tested = TEST_OK_PR,
6380 .probe = probe_spi_rems,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006381 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006382 .block_erasers =
6383 {
6384 {
6385 .eraseblocks = { {4 * 1024, 128} },
6386 .block_erase = spi_block_erase_20,
6387 }, {
6388 .eraseblocks = { {32 * 1024, 16} },
6389 .block_erase = spi_block_erase_52,
6390 }, {
6391 .eraseblocks = { {64 * 1024, 8} },
6392 .block_erase = spi_block_erase_d8,
6393 }, {
6394 .eraseblocks = { {512 * 1024, 1} },
6395 .block_erase = spi_block_erase_60,
6396 }, {
6397 .eraseblocks = { {512 * 1024, 1} },
6398 .block_erase = spi_block_erase_c7,
6399 },
6400 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006401 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00006402 .write = spi_aai_write,
Peter Stugefd9217d2009-01-26 03:37:40 +00006403 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006404 .voltage = {2700, 3600},
Peter Stugefd9217d2009-01-26 03:37:40 +00006405 },
6406
6407 {
6408 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006409 .name = "SST25VF080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006410 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006411 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006412 .model_id = SST_SST25VF080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006413 .total_size = 1024,
6414 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00006415 .feature_bits = FEATURE_WRSR_EWSR,
John Schmergec965c2d2011-05-18 11:28:47 +00006416 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006417 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006418 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006419 .block_erasers =
6420 {
6421 {
6422 .eraseblocks = { {4 * 1024, 256} },
6423 .block_erase = spi_block_erase_20,
6424 }, {
6425 .eraseblocks = { {32 * 1024, 32} },
6426 .block_erase = spi_block_erase_52,
6427 }, {
6428 .eraseblocks = { {64 * 1024, 16} },
6429 .block_erase = spi_block_erase_d8,
6430 }, {
6431 .eraseblocks = { {1024 * 1024, 1} },
6432 .block_erase = spi_block_erase_60,
6433 }, {
6434 .eraseblocks = { {1024 * 1024, 1} },
6435 .block_erase = spi_block_erase_c7,
6436 },
6437 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006438 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00006439 .write = spi_aai_write,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006440 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006441 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006442 },
6443
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006444 {
6445 .vendor = "SST",
6446 .name = "SST28SF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006447 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006448 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006449 .model_id = SST_SST28SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006450 .total_size = 512,
6451 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00006452 .feature_bits = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006453 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006454 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00006455 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006456 .block_erasers =
6457 {
6458 {
6459 .eraseblocks = { {128, 4096} },
6460 .block_erase = erase_sector_28sf040,
6461 }, {
6462 .eraseblocks = { {512 * 1024, 1} },
6463 .block_erase = erase_chip_28sf040,
6464 }
6465 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00006466 .unlock = unprotect_28sf040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006467 .write = write_28sf040,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006468 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006469 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006470 },
6471
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006472 {
6473 .vendor = "SST",
6474 .name = "SST29EE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006475 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006476 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006477 .model_id = SST_SST29EE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006478 .total_size = 128,
6479 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00006480 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006481 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006482 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006483 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006484 .block_erasers =
6485 {
6486 {
6487 .eraseblocks = { {128 * 1024, 1} },
6488 .block_erase = erase_chip_block_jedec,
6489 }
6490 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006491 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006492 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006493 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006494 },
6495
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006496 {
6497 .vendor = "SST",
6498 .name = "SST29LE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006499 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006500 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006501 .model_id = SST_SST29LE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006502 .total_size = 128,
6503 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00006504 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006505 .tested = TEST_UNTESTED,
6506 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006507 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006508 .block_erasers =
6509 {
6510 {
6511 .eraseblocks = { {128 * 1024, 1} },
6512 .block_erase = erase_chip_block_jedec,
6513 }
6514 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006515 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006516 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006517 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006518 },
6519
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006520 {
6521 .vendor = "SST",
6522 .name = "SST29EE020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006523 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006524 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006525 .model_id = SST_SST29EE020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006526 .total_size = 256,
6527 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00006528 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006529 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006530 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006531 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006532 .block_erasers =
6533 {
6534 {
6535 .eraseblocks = { {256 * 1024, 1} },
6536 .block_erase = erase_chip_block_jedec,
6537 }
6538 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006539 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006540 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006541 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006542 },
6543
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006544 {
6545 .vendor = "SST",
6546 .name = "SST29LE020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006547 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006548 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006549 .model_id = SST_SST29LE020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006550 .total_size = 256,
6551 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00006552 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006553 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006554 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006555 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006556 .block_erasers =
6557 {
6558 {
6559 .eraseblocks = { {256 * 1024, 1} },
6560 .block_erase = erase_chip_block_jedec,
6561 }
6562 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006563 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006564 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006565 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006566 },
6567
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006568 {
6569 .vendor = "SST",
Uwe Hermann48da3f92010-01-23 15:15:19 +00006570 .name = "SST39SF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006571 .bustype = BUS_PARALLEL,
Uwe Hermann48da3f92010-01-23 15:15:19 +00006572 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006573 .model_id = SST_SST39SF512,
Uwe Hermann48da3f92010-01-23 15:15:19 +00006574 .total_size = 64,
6575 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006576 .feature_bits = FEATURE_EITHER_RESET,
Idwer Vollering7913fb42011-03-07 15:32:58 +00006577 .tested = TEST_OK_PREW,
Uwe Hermann48da3f92010-01-23 15:15:19 +00006578 .probe = probe_jedec,
6579 .probe_timing = 1, /* 150 ns */
Uwe Hermann48da3f92010-01-23 15:15:19 +00006580 .block_erasers =
6581 {
6582 {
6583 .eraseblocks = { {4 * 1024, 16} },
6584 .block_erase = erase_sector_jedec,
6585 }, {
6586 .eraseblocks = { {64 * 1024, 1} },
6587 .block_erase = erase_chip_block_jedec,
6588 }
6589 },
Sean Nelson35727f72010-01-28 23:55:12 +00006590 .write = write_jedec_1,
Uwe Hermann48da3f92010-01-23 15:15:19 +00006591 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006592 .voltage = {4500, 5500},
Uwe Hermann48da3f92010-01-23 15:15:19 +00006593 },
6594
6595 {
6596 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006597 .name = "SST39SF010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006598 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006599 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006600 .model_id = SST_SST39SF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006601 .total_size = 128,
6602 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006603 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00006604 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006605 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006606 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006607 .block_erasers =
6608 {
6609 {
6610 .eraseblocks = { {4 * 1024, 32} },
6611 .block_erase = erase_sector_jedec,
6612 }, {
6613 .eraseblocks = { {128 * 1024, 1} },
6614 .block_erase = erase_chip_block_jedec,
6615 }
6616 },
Sean Nelson35727f72010-01-28 23:55:12 +00006617 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006618 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006619 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006620 },
6621
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006622 {
6623 .vendor = "SST",
6624 .name = "SST39SF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006625 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006626 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006627 .model_id = SST_SST39SF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006628 .total_size = 256,
6629 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006630 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann19f46f22011-06-18 22:56:14 +00006631 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006632 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006633 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006634 .block_erasers =
6635 {
6636 {
6637 .eraseblocks = { {4 * 1024, 64} },
6638 .block_erase = erase_sector_jedec,
6639 }, {
6640 .eraseblocks = { {256 * 1024, 1} },
6641 .block_erase = erase_chip_block_jedec,
6642 }
6643 },
Sean Nelson35727f72010-01-28 23:55:12 +00006644 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006645 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006646 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006647 },
6648
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006649 {
6650 .vendor = "SST",
6651 .name = "SST39SF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006652 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006653 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006654 .model_id = SST_SST39SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006655 .total_size = 512,
6656 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006657 .feature_bits = FEATURE_EITHER_RESET,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006658 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006659 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006660 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006661 .block_erasers =
6662 {
6663 {
6664 .eraseblocks = { {4 * 1024, 128} },
6665 .block_erase = erase_sector_jedec,
6666 }, {
6667 .eraseblocks = { {512 * 1024, 1} },
6668 .block_erase = erase_chip_block_jedec,
6669 }
6670 },
Sean Nelson35727f72010-01-28 23:55:12 +00006671 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006672 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006673 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006674 },
6675
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006676 {
6677 .vendor = "SST",
6678 .name = "SST39VF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006679 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006680 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006681 .model_id = SST_SST39VF512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006682 .total_size = 64,
6683 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006684 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006685 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006686 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006687 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006688 .block_erasers =
6689 {
6690 {
6691 .eraseblocks = { {4 * 1024, 16} },
6692 .block_erase = erase_sector_jedec,
6693 }, {
6694 .eraseblocks = { {64 * 1024, 1} },
6695 .block_erase = erase_chip_block_jedec,
6696 }
6697 },
Sean Nelson35727f72010-01-28 23:55:12 +00006698 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006699 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006700 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006701 },
6702
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006703 {
6704 .vendor = "SST",
6705 .name = "SST39VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006706 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006707 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006708 .model_id = SST_SST39VF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006709 .total_size = 128,
6710 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006711 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006712 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006713 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006714 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006715 .block_erasers =
6716 {
6717 {
6718 .eraseblocks = { {4 * 1024, 32} },
6719 .block_erase = erase_sector_jedec,
6720 }, {
6721 .eraseblocks = { {128 * 1024, 1} },
6722 .block_erase = erase_chip_block_jedec,
6723 }
6724 },
Sean Nelson35727f72010-01-28 23:55:12 +00006725 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006726 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006727 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006728 },
6729
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006730 {
6731 .vendor = "SST",
6732 .name = "SST39VF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006733 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006734 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006735 .model_id = SST_SST39VF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006736 .total_size = 256,
6737 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006738 .feature_bits = FEATURE_EITHER_RESET,
6739 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006740 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006741 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006742 .block_erasers =
6743 {
6744 {
6745 .eraseblocks = { {4 * 1024, 64} },
6746 .block_erase = erase_sector_jedec,
6747 }, {
6748 .eraseblocks = { {256 * 1024, 1} },
6749 .block_erase = erase_chip_block_jedec,
6750 }
6751 },
Sean Nelson35727f72010-01-28 23:55:12 +00006752 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006753 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006754 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006755 },
6756
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006757 {
6758 .vendor = "SST",
6759 .name = "SST39VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006760 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006761 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006762 .model_id = SST_SST39VF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006763 .total_size = 512,
6764 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006765 .feature_bits = FEATURE_EITHER_RESET,
6766 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006767 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006768 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006769 .block_erasers =
6770 {
6771 {
6772 .eraseblocks = { {4 * 1024, 128} },
6773 .block_erase = erase_sector_jedec,
6774 }, {
6775 .eraseblocks = { {512 * 1024, 1} },
6776 .block_erase = erase_chip_block_jedec,
6777 }
6778 },
Sean Nelson35727f72010-01-28 23:55:12 +00006779 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006780 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006781 .voltage = {2700, 3600},
Carl-Daniel Hailfinger90eff152008-12-08 23:51:45 +00006782 },
FENG yu ningff692fb2008-12-08 18:15:10 +00006783
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006784 {
6785 .vendor = "SST",
Peter Stuge8440cc02009-01-25 23:55:12 +00006786 .name = "SST39VF080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006787 .bustype = BUS_PARALLEL,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006788 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006789 .model_id = SST_SST39VF080,
Peter Stuge8440cc02009-01-25 23:55:12 +00006790 .total_size = 1024,
6791 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006792 .feature_bits = FEATURE_EITHER_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +00006793 .tested = TEST_UNTESTED,
6794 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006795 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006796 .block_erasers =
6797 {
6798 {
6799 .eraseblocks = { {4 * 1024, 256} },
6800 .block_erase = erase_sector_jedec,
6801 }, {
6802 .eraseblocks = { {64 * 1024, 16} },
6803 .block_erase = erase_block_jedec,
6804 }, {
6805 .eraseblocks = { {1024 * 1024, 1} },
6806 .block_erase = erase_chip_block_jedec,
6807 }
6808 },
Sean Nelson35727f72010-01-28 23:55:12 +00006809 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006810 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006811 .voltage = {2700, 3600},
Peter Stuge8440cc02009-01-25 23:55:12 +00006812 },
6813
6814 {
6815 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006816 .name = "SST49LF002A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006817 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006818 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006819 .model_id = SST_SST49LF002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006820 .total_size = 256,
6821 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006822 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00006823 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006824 .probe = probe_jedec,
6825 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006826 .block_erasers =
6827 {
6828 {
6829 .eraseblocks = { {4 * 1024, 64} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006830 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006831 }, {
6832 .eraseblocks = { {16 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006833 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006834 }, {
6835 .eraseblocks = { {256 * 1024, 1} },
6836 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
6837 }
6838 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006839 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006840 .unlock = unlock_sst_fwhub,
6841 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006842 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006843 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006844 },
6845
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006846 {
6847 .vendor = "SST",
6848 .name = "SST49LF003A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006849 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006850 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006851 .model_id = SST_SST49LF003A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006852 .total_size = 384,
6853 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006854 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Peter Lemenkov45835c42009-09-25 01:09:18 +00006855 .tested = TEST_OK_PR,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006856 .probe = probe_jedec,
6857 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006858 .block_erasers =
6859 {
6860 {
6861 .eraseblocks = { {4 * 1024, 96} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006862 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006863 }, {
6864 .eraseblocks = { {64 * 1024, 6} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006865 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006866 }, {
6867 .eraseblocks = { {384 * 1024, 1} },
6868 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
6869 }
6870 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006871 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006872 .unlock = unlock_sst_fwhub,
6873 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006874 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006875 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006876 },
6877
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006878 {
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00006879 /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB)
6880 * and is only honored for 64k block erase, but not 4k sector erase.
6881 */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006882 .vendor = "SST",
6883 .name = "SST49LF004A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006884 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006885 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006886 .model_id = SST_SST49LF004A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006887 .total_size = 512,
6888 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006889 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00006890 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006891 .probe = probe_jedec,
6892 .probe_timing = 1, /* 150 ns */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00006893 .block_erasers =
6894 {
6895 {
6896 .eraseblocks = { {4 * 1024, 128} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006897 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00006898 }, {
6899 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006900 .block_erase = erase_block_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00006901 }, {
6902 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson51c83fb2010-01-20 20:55:53 +00006903 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00006904 },
6905 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006906 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006907 .unlock = unlock_sst_fwhub,
6908 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006909 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006910 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006911 },
6912
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006913 {
6914 .vendor = "SST",
6915 .name = "SST49LF004C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006916 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006917 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006918 .model_id = SST_SST49LF004C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006919 .total_size = 512,
6920 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006921 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006922 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006923 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00006924 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006925 .block_erasers =
6926 {
6927 {
6928 .eraseblocks = { {4 * 1024, 128} },
6929 .block_erase = erase_sector_49lfxxxc,
6930 }, {
6931 .eraseblocks = {
6932 {64 * 1024, 7},
6933 {32 * 1024, 1},
6934 {8 * 1024, 2},
6935 {16 * 1024, 1},
6936 },
Sean Nelson69e58112010-03-23 17:10:28 +00006937 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006938 }
6939 },
Sean Nelson69e58112010-03-23 17:10:28 +00006940 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00006941 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006942 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006943 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006944 },
6945
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006946 {
6947 .vendor = "SST",
6948 .name = "SST49LF008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006949 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006950 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006951 .model_id = SST_SST49LF008A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006952 .total_size = 1024,
6953 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006954 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00006955 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006956 .probe = probe_jedec,
6957 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006958 .block_erasers =
6959 {
6960 {
6961 .eraseblocks = { {4 * 1024, 256} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006962 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006963 }, {
6964 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006965 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006966 }, {
6967 .eraseblocks = { {1024 * 1024, 1} },
6968 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
6969 }
6970 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006971 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006972 .unlock = unlock_sst_fwhub,
6973 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006974 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006975 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006976 },
6977
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006978 {
6979 .vendor = "SST",
6980 .name = "SST49LF008C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006981 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006982 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006983 .model_id = SST_SST49LF008C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006984 .total_size = 1024,
6985 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006986 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006987 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006988 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00006989 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006990 .block_erasers =
6991 {
6992 {
6993 .eraseblocks = { {4 * 1024, 256} },
6994 .block_erase = erase_sector_49lfxxxc,
6995 }, {
6996 .eraseblocks = {
6997 {64 * 1024, 15},
6998 {32 * 1024, 1},
6999 {8 * 1024, 2},
7000 {16 * 1024, 1},
7001 },
Sean Nelson69e58112010-03-23 17:10:28 +00007002 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007003 }
7004 },
Sean Nelson69e58112010-03-23 17:10:28 +00007005 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00007006 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007007 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007008 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007009 },
7010
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007011 {
7012 .vendor = "SST",
7013 .name = "SST49LF016C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007014 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007015 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007016 .model_id = SST_SST49LF016C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007017 .total_size = 2048,
7018 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007019 .feature_bits = FEATURE_REGISTERMAP,
Stefan Tauner2abab942012-04-27 20:41:23 +00007020 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007021 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00007022 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007023 .block_erasers =
7024 {
7025 {
7026 .eraseblocks = { {4 * 1024, 512} },
7027 .block_erase = erase_sector_49lfxxxc,
7028 }, {
7029 .eraseblocks = {
7030 {64 * 1024, 31},
7031 {32 * 1024, 1},
7032 {8 * 1024, 2},
7033 {16 * 1024, 1},
7034 },
Sean Nelson69e58112010-03-23 17:10:28 +00007035 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007036 }
7037 },
Sean Nelson69e58112010-03-23 17:10:28 +00007038 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00007039 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007040 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007041 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007042 },
7043
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007044 {
7045 .vendor = "SST",
7046 .name = "SST49LF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007047 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007048 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007049 .model_id = SST_SST49LF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007050 .total_size = 256,
7051 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007052 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +00007053 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007054 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00007055 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007056 .block_erasers =
7057 {
7058 {
7059 .eraseblocks = { {4 * 1024, 64} },
7060 .block_erase = erase_sector_jedec,
7061 }, {
7062 .eraseblocks = { {16 * 1024, 16} },
7063 .block_erase = erase_block_jedec,
7064 }, {
7065 .eraseblocks = { {256 * 1024, 1} },
7066 .block_erase = NULL,
7067 }
7068 },
Sean Nelson35727f72010-01-28 23:55:12 +00007069 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007070 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007071 .voltage = {3000, 3600},
Sven Schnellec208dfb2009-01-07 12:35:09 +00007072 },
7073
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007074 {
7075 .vendor = "SST",
7076 .name = "SST49LF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007077 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007078 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007079 .model_id = SST_SST49LF020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007080 .total_size = 256,
Carl-Daniel Hailfingerda654322009-07-23 01:44:38 +00007081 .page_size = 4 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007082 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007083 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007084 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00007085 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007086 .block_erasers =
7087 {
7088 {
7089 .eraseblocks = { {4 * 1024, 64} },
7090 .block_erase = erase_sector_jedec,
7091 }, {
7092 .eraseblocks = { {16 * 1024, 16} },
7093 .block_erase = erase_block_jedec,
7094 }, {
7095 .eraseblocks = { {256 * 1024, 1} },
7096 .block_erase = NULL,
7097 }
7098 },
Sean Nelson35727f72010-01-28 23:55:12 +00007099 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007100 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007101 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007102 },
7103
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007104 {
7105 .vendor = "SST",
7106 .name = "SST49LF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007107 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007108 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007109 .model_id = SST_SST49LF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007110 .total_size = 512,
7111 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00007112 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007113 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007114 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00007115 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007116 .block_erasers =
7117 {
7118 {
7119 .eraseblocks = { {4 * 1024, 128} },
7120 .block_erase = erase_sector_jedec,
7121 }, {
7122 .eraseblocks = { {64 * 1024, 8} },
7123 .block_erase = erase_block_jedec,
7124 }, {
7125 .eraseblocks = { {512 * 1024, 1} },
7126 .block_erase = NULL,
7127 }
7128 },
Sean Nelson35727f72010-01-28 23:55:12 +00007129 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007130 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007131 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007132 },
7133
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007134 {
7135 .vendor = "SST",
7136 .name = "SST49LF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007137 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007138 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007139 .model_id = SST_SST49LF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007140 .total_size = 512,
7141 .page_size = 64 * 1024,
Joshua Roysa84b0bd2010-08-16 22:12:39 +00007142 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00007143 .tested = TEST_OK_PREW,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007144 .probe = probe_jedec,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007145 .probe_timing = 1, /* 150ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007146 .block_erasers =
7147 {
7148 {
7149 .eraseblocks = { {4 * 1024, 128} },
7150 .block_erase = erase_sector_jedec,
7151 }, {
7152 .eraseblocks = { {64 * 1024, 8} },
7153 .block_erase = erase_block_jedec,
7154 }, {
7155 .eraseblocks = { {512 * 1024, 1} },
7156 .block_erase = NULL,
7157 }
7158 },
Joshua Roysa84b0bd2010-08-16 22:12:39 +00007159 .unlock = unlock_82802ab,
Sean Nelson35727f72010-01-28 23:55:12 +00007160 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007161 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007162 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007163 },
7164
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007165 {
7166 .vendor = "SST",
7167 .name = "SST49LF080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007168 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007169 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007170 .model_id = SST_SST49LF080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007171 .total_size = 1024,
7172 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00007173 .feature_bits = FEATURE_EITHER_RESET,
Brandon Dowdyf07bf322011-03-06 18:31:11 +00007174 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007175 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00007176 .probe_timing = TIMING_FIXME,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007177 .block_erasers =
7178 {
7179 {
7180 .eraseblocks = { {4 * 1024, 256} },
7181 .block_erase = erase_sector_jedec,
7182 }, {
7183 .eraseblocks = { {64 * 1024, 16} },
7184 .block_erase = erase_block_jedec,
7185 }, {
7186 .eraseblocks = { {1024 * 1024, 1} },
7187 .block_erase = NULL,
7188 }
7189 },
Sean Nelson35727f72010-01-28 23:55:12 +00007190 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007191 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007192 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007193 },
7194
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007195 {
7196 .vendor = "SST",
7197 .name = "SST49LF160C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007198 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007199 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007200 .model_id = SST_SST49LF160C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007201 .total_size = 2048,
7202 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007203 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007204 .tested = TEST_OK_PRE,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007205 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00007206 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007207 .block_erasers =
7208 {
7209 {
7210 .eraseblocks = { {4 * 1024, 512} },
7211 .block_erase = erase_sector_49lfxxxc,
7212 }, {
7213 .eraseblocks = {
7214 {64 * 1024, 31},
7215 {32 * 1024, 1},
7216 {8 * 1024, 2},
7217 {16 * 1024, 1},
7218 },
Sean Nelson69e58112010-03-23 17:10:28 +00007219 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007220 }
7221 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00007222 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00007223 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007224 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007225 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007226 },
7227
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007228 {
7229 .vendor = "ST",
7230 .name = "M25P05-A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007231 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007232 .manufacture_id = ST_ID,
7233 .model_id = ST_M25P05A,
7234 .total_size = 64,
7235 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007236 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007237 .tested = TEST_UNTESTED,
7238 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007239 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007240 .block_erasers =
7241 {
7242 {
7243 .eraseblocks = { {32 * 1024, 2} },
7244 .block_erase = spi_block_erase_d8,
7245 }, {
7246 .eraseblocks = { {64 * 1024, 1} },
7247 .block_erase = spi_block_erase_c7,
7248 }
7249 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007250 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007251 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007252 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007253 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007254 },
7255
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007256 /* The ST M25P05 is a bit of a problem. It has the same ID as the
7257 * ST M25P05-A in RES mode, but supports only 128 byte writes instead
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00007258 * of 256 byte writes. We rely heavily on the fact that probe_spi_res1
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007259 * only is successful if RDID does not work.
7260 */
7261 {
7262 .vendor = "ST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00007263 .name = "M25P05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007264 .bustype = BUS_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00007265 .manufacture_id = 0, /* Not used. */
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007266 .model_id = ST_M25P05_RES,
7267 .total_size = 64,
7268 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007269 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007270 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00007271 .probe = probe_spi_res1,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007272 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007273 .block_erasers =
7274 {
7275 {
7276 .eraseblocks = { {32 * 1024, 2} },
7277 .block_erase = spi_block_erase_d8,
7278 }, {
7279 .eraseblocks = { {64 * 1024, 1} },
7280 .block_erase = spi_block_erase_c7,
7281 }
7282 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007283 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007284 .write = spi_chip_write_1, /* 128 */
7285 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007286 .voltage = {2700, 3600},
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007287 },
7288
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007289 {
7290 .vendor = "ST",
7291 .name = "M25P10-A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007292 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007293 .manufacture_id = ST_ID,
7294 .model_id = ST_M25P10A,
7295 .total_size = 128,
7296 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007297 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007298 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007299 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007300 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007301 .block_erasers =
7302 {
7303 {
7304 .eraseblocks = { {32 * 1024, 4} },
7305 .block_erase = spi_block_erase_d8,
7306 }, {
7307 .eraseblocks = { {128 * 1024, 1} },
7308 .block_erase = spi_block_erase_c7,
7309 }
7310 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007311 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007312 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007313 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007314 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007315 },
7316
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007317 /* The ST M25P10 has the same problem as the M25P05. */
7318 {
7319 .vendor = "ST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00007320 .name = "M25P10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007321 .bustype = BUS_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00007322 .manufacture_id = 0, /* Not used. */
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007323 .model_id = ST_M25P10_RES,
7324 .total_size = 128,
7325 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007326 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007327 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00007328 .probe = probe_spi_res1,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007329 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007330 .block_erasers =
7331 {
7332 {
7333 .eraseblocks = { {32 * 1024, 4} },
7334 .block_erase = spi_block_erase_d8,
7335 }, {
7336 .eraseblocks = { {128 * 1024, 1} },
7337 .block_erase = spi_block_erase_c7,
7338 }
7339 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007340 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007341 .write = spi_chip_write_1, /* 128 */
7342 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007343 .voltage = {2700, 3600},
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007344 },
7345
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007346 {
7347 .vendor = "ST",
7348 .name = "M25P20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007349 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007350 .manufacture_id = ST_ID,
7351 .model_id = ST_M25P20,
7352 .total_size = 256,
7353 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007354 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007355 .tested = TEST_UNTESTED,
7356 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007357 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007358 .block_erasers =
7359 {
7360 {
7361 .eraseblocks = { {64 * 1024, 4} },
7362 .block_erase = spi_block_erase_d8,
7363 }, {
7364 .eraseblocks = { {256 * 1024, 1} },
7365 .block_erase = spi_block_erase_c7,
7366 }
7367 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007368 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007369 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007370 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007371 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007372 },
7373
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007374 {
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00007375 .vendor = "ST", /* Numonyx */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007376 .name = "M25P40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007377 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007378 .manufacture_id = ST_ID,
7379 .model_id = ST_M25P40,
7380 .total_size = 512,
7381 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007382 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzelac427b22012-02-16 21:07:07 +00007383 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007384 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007385 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007386 .block_erasers =
7387 {
7388 {
7389 .eraseblocks = { {64 * 1024, 8} },
7390 .block_erase = spi_block_erase_d8,
7391 }, {
7392 .eraseblocks = { {512 * 1024, 1} },
7393 .block_erase = spi_block_erase_c7,
7394 }
7395 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007396 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007397 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007398 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007399 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007400 },
7401
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007402 {
7403 .vendor = "ST",
7404 .name = "M25P40-old",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007405 .bustype = BUS_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00007406 .manufacture_id = 0, /* Not used. */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007407 .model_id = ST_M25P40_RES,
7408 .total_size = 512,
7409 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007410 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007411 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00007412 .probe = probe_spi_res1,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007413 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007414 .block_erasers =
7415 {
7416 {
7417 .eraseblocks = { {64 * 1024, 8} },
7418 .block_erase = spi_block_erase_d8,
7419 }, {
7420 .eraseblocks = { {512 * 1024, 1} },
7421 .block_erase = spi_block_erase_c7,
7422 }
7423 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007424 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007425 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007426 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00007427 },
7428
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007429 {
7430 .vendor = "ST",
7431 .name = "M25P80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007432 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007433 .manufacture_id = ST_ID,
7434 .model_id = ST_M25P80,
7435 .total_size = 1024,
7436 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007437 .feature_bits = FEATURE_WRSR_WREN,
Uwe Hermann19f46f22011-06-18 22:56:14 +00007438 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007439 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007440 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007441 .block_erasers =
7442 {
7443 {
7444 .eraseblocks = { {64 * 1024, 16} },
7445 .block_erase = spi_block_erase_d8,
7446 }, {
7447 .eraseblocks = { {1024 * 1024, 1} },
7448 .block_erase = spi_block_erase_c7,
7449 }
7450 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007451 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007452 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007453 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007454 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007455 },
7456
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007457 {
7458 .vendor = "ST",
7459 .name = "M25P16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007460 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007461 .manufacture_id = ST_ID,
7462 .model_id = ST_M25P16,
7463 .total_size = 2048,
7464 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007465 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007466 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007467 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007468 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007469 .block_erasers =
7470 {
7471 {
7472 .eraseblocks = { {64 * 1024, 32} },
7473 .block_erase = spi_block_erase_d8,
7474 }, {
7475 .eraseblocks = { {2 * 1024 * 1024, 1} },
7476 .block_erase = spi_block_erase_c7,
7477 }
7478 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007479 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007480 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007481 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007482 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007483 },
7484
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007485 {
7486 .vendor = "ST",
7487 .name = "M25P32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007488 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007489 .manufacture_id = ST_ID,
7490 .model_id = ST_M25P32,
7491 .total_size = 4096,
7492 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007493 .feature_bits = FEATURE_WRSR_WREN,
Antony Rheneus0fbba982011-05-26 14:28:51 +00007494 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007495 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007496 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007497 .block_erasers =
7498 {
7499 {
7500 .eraseblocks = { {64 * 1024, 64} },
7501 .block_erase = spi_block_erase_d8,
7502 }, {
7503 .eraseblocks = { {4 * 1024 * 1024, 1} },
7504 .block_erase = spi_block_erase_c7,
7505 }
7506 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007507 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007508 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007509 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007510 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007511 },
7512
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007513 {
7514 .vendor = "ST",
7515 .name = "M25P64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007516 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007517 .manufacture_id = ST_ID,
7518 .model_id = ST_M25P64,
7519 .total_size = 8192,
7520 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007521 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007522 .tested = TEST_UNTESTED,
7523 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007524 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007525 .block_erasers =
7526 {
7527 {
7528 .eraseblocks = { {64 * 1024, 128} },
7529 .block_erase = spi_block_erase_d8,
7530 }, {
7531 .eraseblocks = { {8 * 1024 * 1024, 1} },
7532 .block_erase = spi_block_erase_c7,
7533 }
7534 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007535 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007536 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007537 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007538 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007539 },
7540
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007541 {
7542 .vendor = "ST",
7543 .name = "M25P128",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007544 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007545 .manufacture_id = ST_ID,
7546 .model_id = ST_M25P128,
7547 .total_size = 16384,
7548 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007549 .feature_bits = FEATURE_WRSR_WREN,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00007550 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007551 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007552 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007553 .block_erasers =
7554 {
7555 {
7556 .eraseblocks = { {256 * 1024, 64} },
7557 .block_erase = spi_block_erase_d8,
7558 }, {
7559 .eraseblocks = { {16 * 1024 * 1024, 1} },
7560 .block_erase = spi_block_erase_c7,
7561 }
7562 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007563 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007564 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007565 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007566 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007567 },
7568
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007569 {
7570 .vendor = "ST",
Carl Worthd1dd72c2011-03-06 18:45:40 +00007571 .name = "M25PX16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007572 .bustype = BUS_SPI,
Carl Worthd1dd72c2011-03-06 18:45:40 +00007573 .manufacture_id = ST_ID,
7574 .model_id = ST_M25PX16,
7575 .total_size = 2048,
7576 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00007577 /* OTP: 64B total; read 0x4B; write 0x42 */
Steven Zakulec3603a282012-05-02 20:07:57 +00007578 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl Worthd1dd72c2011-03-06 18:45:40 +00007579 .tested = TEST_OK_PREW,
7580 .probe = probe_spi_rdid,
7581 .probe_timing = TIMING_ZERO,
7582 .block_erasers =
7583 {
7584 {
7585 .eraseblocks = { { 4 * 1024, 512 } },
7586 .block_erase = spi_block_erase_20,
7587 }, {
7588 .eraseblocks = { {64 * 1024, 32} },
7589 .block_erase = spi_block_erase_d8,
7590 }, {
7591 .eraseblocks = { {2 * 1024 * 1024, 1} },
7592 .block_erase = spi_block_erase_c7,
7593 }
7594 },
7595 .unlock = spi_disable_blockprotect,
7596 .write = spi_chip_write_256,
7597 .read = spi_chip_read,
7598 },
7599
7600 {
7601 .vendor = "ST",
Jason Shriver4119e9b2010-09-14 13:16:01 +00007602 .name = "M25PX32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007603 .bustype = BUS_SPI,
Jason Shriver4119e9b2010-09-14 13:16:01 +00007604 .manufacture_id = ST_ID,
7605 .model_id = ST_M25PX32,
7606 .total_size = 4096,
7607 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007608 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007609 .tested = TEST_OK_PRE,
Jason Shriver4119e9b2010-09-14 13:16:01 +00007610 .probe = probe_spi_rdid,
7611 .probe_timing = TIMING_ZERO,
7612 .block_erasers =
7613 {
7614 {
7615 .eraseblocks = { { 4 * 1024, 1024 } },
7616 .block_erase = spi_block_erase_20,
7617 }, {
7618 .eraseblocks = { {64 * 1024, 64} },
7619 .block_erase = spi_block_erase_d8,
7620 }, {
7621 .eraseblocks = { {4 * 1024 * 1024, 1} },
7622 .block_erase = spi_block_erase_c7,
7623 }
7624 },
7625 .unlock = spi_disable_blockprotect,
7626 .write = spi_chip_write_256,
7627 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007628 .voltage = {2700, 3600},
Jason Shriver4119e9b2010-09-14 13:16:01 +00007629 },
7630
7631 {
7632 .vendor = "ST",
7633 .name = "M25PX64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007634 .bustype = BUS_SPI,
Jason Shriver4119e9b2010-09-14 13:16:01 +00007635 .manufacture_id = ST_ID,
7636 .model_id = ST_M25PX64,
7637 .total_size = 8192,
7638 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00007639 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007640 .tested = TEST_OK_PRE,
Jason Shriver4119e9b2010-09-14 13:16:01 +00007641 .probe = probe_spi_rdid,
7642 .probe_timing = TIMING_ZERO,
7643 .block_erasers =
7644 {
7645 {
7646 .eraseblocks = { { 4 * 1024, 2048 } },
7647 .block_erase = spi_block_erase_20,
7648 }, {
7649 .eraseblocks = { {64 * 1024, 128} },
7650 .block_erase = spi_block_erase_d8,
7651 }, {
7652 .eraseblocks = { {8 * 1024 * 1024, 1} },
7653 .block_erase = spi_block_erase_c7,
7654 }
7655 },
7656 .unlock = spi_disable_blockprotect,
7657 .write = spi_chip_write_256,
7658 .read = spi_chip_read,
7659 },
7660
7661 {
7662 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007663 .name = "M29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007664 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007665 .manufacture_id = ST_ID,
7666 .model_id = ST_M29F002B,
7667 .total_size = 256,
7668 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007669 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007670 .tested = TEST_UNTESTED,
7671 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007672 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007673 .block_erasers =
7674 {
7675 {
7676 .eraseblocks = {
7677 {16 * 1024, 1},
7678 {8 * 1024, 2},
7679 {32 * 1024, 1},
7680 {64 * 1024, 3},
7681 },
7682 .block_erase = erase_sector_jedec,
7683 }, {
7684 .eraseblocks = { {256 * 1024, 1} },
7685 .block_erase = erase_chip_block_jedec,
7686 }
7687 },
Sean Nelson35727f72010-01-28 23:55:12 +00007688 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007689 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007690 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00007691 },
7692
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007693 {
7694 .vendor = "ST",
7695 .name = "M29F002T/NT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007696 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007697 .manufacture_id = ST_ID,
7698 .model_id = ST_M29F002T,
7699 .total_size = 256,
7700 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007701 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
7702 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007703 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007704 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007705 .block_erasers =
7706 {
7707 {
7708 .eraseblocks = {
7709 {64 * 1024, 3},
7710 {32 * 1024, 1},
7711 {8 * 1024, 2},
7712 {16 * 1024, 1},
7713 },
7714 .block_erase = erase_sector_jedec,
7715 }, {
7716 .eraseblocks = { {256 * 1024, 1} },
7717 .block_erase = erase_chip_block_jedec,
7718 }
7719 },
Sean Nelson35727f72010-01-28 23:55:12 +00007720 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007721 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007722 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00007723 },
7724
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007725 {
7726 .vendor = "ST",
7727 .name = "M29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007728 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007729 .manufacture_id = ST_ID,
7730 .model_id = ST_M29F040B,
7731 .total_size = 512,
7732 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007733 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
7734 .tested = TEST_UNTESTED,
7735 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00007736 .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */
Sean Nelson56358aa2010-01-19 16:08:51 +00007737 .block_erasers =
7738 {
7739 {
7740 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson35727f72010-01-28 23:55:12 +00007741 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +00007742 }, {
7743 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00007744 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +00007745 }
7746 },
Sean Nelson35727f72010-01-28 23:55:12 +00007747 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007748 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007749 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00007750 },
7751
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007752 {
Sean Nelson35727f72010-01-28 23:55:12 +00007753 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007754 .vendor = "ST",
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00007755 .name = "M29F400BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007756 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00007757 .manufacture_id = ST_ID,
7758 .model_id = ST_M29F400BB,
7759 .total_size = 512,
7760 .page_size = 64 * 1024,
7761 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00007762 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00007763 .probe = probe_m29f400bt,
7764 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
7765 .block_erasers =
7766 {
7767 {
7768 .eraseblocks = {
7769 {16 * 1024, 1},
7770 {8 * 1024, 2},
7771 {32 * 1024, 1},
7772 {64 * 1024, 7},
7773 },
7774 .block_erase = block_erase_m29f400bt,
7775 }, {
7776 .eraseblocks = { {512 * 1024, 1} },
7777 .block_erase = block_erase_chip_m29f400bt,
7778 }
7779 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00007780 .write = write_m29f400bt,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00007781 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007782 .voltage = {4500, 5500},
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00007783 },
7784 {
7785 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
7786 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007787 .name = "M29F400BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007788 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007789 .manufacture_id = ST_ID,
7790 .model_id = ST_M29F400BT,
7791 .total_size = 512,
7792 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007793 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007794 .tested = TEST_UNTESTED,
7795 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00007796 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00007797 .block_erasers =
7798 {
7799 {
7800 .eraseblocks = {
7801 {64 * 1024, 7},
7802 {32 * 1024, 1},
7803 {8 * 1024, 2},
7804 {16 * 1024, 1},
7805 },
7806 .block_erase = block_erase_m29f400bt,
7807 }, {
7808 .eraseblocks = { {512 * 1024, 1} },
7809 .block_erase = block_erase_chip_m29f400bt,
7810 }
7811 },
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00007812 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007813 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007814 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00007815 },
7816
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007817 {
7818 .vendor = "ST",
7819 .name = "M29W010B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007820 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007821 .manufacture_id = ST_ID,
7822 .model_id = ST_M29W010B,
7823 .total_size = 128,
7824 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007825 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007826 .tested = TEST_UNTESTED,
7827 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007828 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007829 .block_erasers =
7830 {
7831 {
7832 .eraseblocks = { {16 * 1024, 8}, },
7833 .block_erase = erase_sector_jedec,
7834 }, {
7835 .eraseblocks = { {128 * 1024, 1} },
7836 .block_erase = erase_chip_block_jedec,
7837 }
7838 },
Sean Nelson35727f72010-01-28 23:55:12 +00007839 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007840 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007841 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007842 },
7843
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007844 {
7845 .vendor = "ST",
7846 .name = "M29W040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007847 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007848 .manufacture_id = ST_ID,
7849 .model_id = ST_M29W040B,
7850 .total_size = 512,
7851 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007852 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007853 .tested = TEST_UNTESTED,
7854 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007855 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007856 .block_erasers =
7857 {
7858 {
7859 .eraseblocks = { {64 * 1024, 8}, },
7860 .block_erase = erase_sector_jedec,
7861 }, {
7862 .eraseblocks = { {512 * 1024, 1} },
7863 .block_erase = erase_chip_block_jedec,
7864 }
7865 },
Sean Nelson35727f72010-01-28 23:55:12 +00007866 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007867 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007868 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007869 },
7870
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +00007871 {
7872 .vendor = "ST",
7873 .name = "M29W512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007874 .bustype = BUS_PARALLEL,
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +00007875 .manufacture_id = ST_ID,
7876 .model_id = ST_M29W512B,
7877 .total_size = 64,
7878 .page_size = 64 * 1024,
7879 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007880 .tested = TEST_OK_PRE,
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +00007881 .probe = probe_jedec,
7882 .probe_timing = TIMING_ZERO,
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +00007883 .block_erasers =
7884 {
7885 {
7886 .eraseblocks = { {64 * 1024, 1} },
7887 .block_erase = erase_chip_block_jedec,
7888 }
7889 },
7890 .write = write_jedec_1,
7891 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007892 .voltage = {2700, 3600},
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +00007893 },
7894
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007895 {
7896 .vendor = "ST",
7897 .name = "M50FLW040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007898 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007899 .manufacture_id = ST_ID,
7900 .model_id = ST_M50FLW040A,
7901 .total_size = 512,
7902 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007903 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007904 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00007905 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00007906 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00007907 .block_erasers =
7908 {
7909 {
Sean Nelson329bde72010-01-19 16:39:19 +00007910 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00007911 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00007912 {64 * 1024, 5}, /* block */
7913 {4 * 1024, 16}, /* sector */
7914 {4 * 1024, 16}, /* sector */
7915 },
7916 .block_erase = NULL,
7917 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00007918 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +00007919 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00007920 }
7921 },
Sean Nelson28accc22010-03-19 18:47:06 +00007922 .unlock = unlock_stm50flw0x0x,
7923 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007924 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007925 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00007926 },
7927
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007928 {
7929 .vendor = "ST",
7930 .name = "M50FLW040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007931 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007932 .manufacture_id = ST_ID,
7933 .model_id = ST_M50FLW040B,
7934 .total_size = 512,
7935 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007936 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007937 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00007938 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00007939 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00007940 .block_erasers =
7941 {
7942 {
Sean Nelson329bde72010-01-19 16:39:19 +00007943 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00007944 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00007945 {4 * 1024, 16}, /* sector */
7946 {64 * 1024, 5}, /* block */
7947 {4 * 1024, 16}, /* sector */
7948 },
7949 .block_erase = NULL,
7950 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00007951 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +00007952 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00007953 }
7954 },
Sean Nelson28accc22010-03-19 18:47:06 +00007955 .unlock = unlock_stm50flw0x0x,
7956 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007957 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007958 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00007959 },
7960
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007961 {
7962 .vendor = "ST",
7963 .name = "M50FLW080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007964 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007965 .manufacture_id = ST_ID,
7966 .model_id = ST_M50FLW080A,
7967 .total_size = 1024,
7968 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007969 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007970 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +00007971 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00007972 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00007973 .block_erasers =
7974 {
7975 {
Sean Nelson329bde72010-01-19 16:39:19 +00007976 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00007977 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00007978 {64 * 1024, 13}, /* block */
7979 {4 * 1024, 16}, /* sector */
7980 {4 * 1024, 16}, /* sector */
7981 },
7982 .block_erase = NULL,
7983 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00007984 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +00007985 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00007986 }
7987 },
Sean Nelson28accc22010-03-19 18:47:06 +00007988 .unlock = unlock_stm50flw0x0x,
7989 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007990 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007991 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00007992 },
7993
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007994 {
7995 .vendor = "ST",
7996 .name = "M50FLW080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007997 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007998 .manufacture_id = ST_ID,
7999 .model_id = ST_M50FLW080B,
8000 .total_size = 1024,
8001 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008002 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008003 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00008004 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00008005 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00008006 .block_erasers =
8007 {
8008 {
Sean Nelson329bde72010-01-19 16:39:19 +00008009 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00008010 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00008011 {4 * 1024, 16}, /* sector */
8012 {64 * 1024, 13}, /* block */
8013 {4 * 1024, 16}, /* sector */
8014 },
8015 .block_erase = NULL,
8016 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00008017 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +00008018 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00008019 }
8020 },
Sean Nelson28accc22010-03-19 18:47:06 +00008021 .unlock = unlock_stm50flw0x0x,
8022 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008023 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008024 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00008025 },
8026
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008027 {
8028 .vendor = "ST",
8029 .name = "M50FW002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008030 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008031 .manufacture_id = ST_ID,
8032 .model_id = ST_M50FW002,
8033 .total_size = 256,
8034 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008035 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008036 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00008037 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00008038 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00008039 .block_erasers =
8040 {
8041 {
8042 .eraseblocks = {
8043 {64 * 1024, 3},
8044 {32 * 1024, 1},
8045 {8 * 1024, 2},
8046 {16 * 1024, 1},
8047 },
Sean Nelson28accc22010-03-19 18:47:06 +00008048 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00008049 }
8050 },
Sean Nelson28accc22010-03-19 18:47:06 +00008051 .unlock = unlock_stm50flw0x0x,
8052 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008053 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008054 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00008055 },
8056
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008057 {
8058 .vendor = "ST",
8059 .name = "M50FW016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008060 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008061 .manufacture_id = ST_ID,
8062 .model_id = ST_M50FW016,
8063 .total_size = 2048,
8064 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008065 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008066 .tested = TEST_UNTESTED,
8067 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00008068 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00008069 .block_erasers =
8070 {
8071 {
8072 .eraseblocks = { {64 * 1024, 32}, },
Sean Nelson28accc22010-03-19 18:47:06 +00008073 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00008074 }
8075 },
Sean Nelson28accc22010-03-19 18:47:06 +00008076 .unlock = unlock_stm50flw0x0x,
8077 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008078 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008079 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00008080 },
8081
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008082 {
8083 .vendor = "ST",
8084 .name = "M50FW040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008085 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008086 .manufacture_id = ST_ID,
8087 .model_id = ST_M50FW040,
8088 .total_size = 512,
8089 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008090 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +00008091 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008092 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00008093 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00008094 .block_erasers =
8095 {
8096 {
8097 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +00008098 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00008099 }
8100 },
Sean Nelson28accc22010-03-19 18:47:06 +00008101 .unlock = unlock_stm50flw0x0x,
8102 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008103 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008104 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00008105 },
8106
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008107 {
8108 .vendor = "ST",
8109 .name = "M50FW080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008110 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008111 .manufacture_id = ST_ID,
8112 .model_id = ST_M50FW080,
8113 .total_size = 1024,
8114 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008115 .feature_bits = FEATURE_REGISTERMAP,
Antony Rheneus0fbba982011-05-26 14:28:51 +00008116 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008117 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00008118 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00008119 .block_erasers =
8120 {
8121 {
8122 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +00008123 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00008124 }
8125 },
Sean Nelson28accc22010-03-19 18:47:06 +00008126 .unlock = unlock_stm50flw0x0x,
8127 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008128 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008129 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00008130 },
8131
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008132 {
8133 .vendor = "ST",
8134 .name = "M50LPW116",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008135 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008136 .manufacture_id = ST_ID,
8137 .model_id = ST_M50LPW116,
8138 .total_size = 2048,
8139 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00008140 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008141 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00008142 .probe = probe_82802ab,
Udu Ogahc04ee222009-09-05 01:31:32 +00008143 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00008144 .block_erasers =
8145 {
8146 {
8147 .eraseblocks = {
8148 {4 * 1024, 16},
8149 {64 * 1024, 30},
8150 {32 * 1024, 1},
8151 {8 * 1024, 2},
8152 {16 * 1024, 1},
8153 },
Sean Nelson28accc22010-03-19 18:47:06 +00008154 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00008155 }
8156 },
Sean Nelson28accc22010-03-19 18:47:06 +00008157 .unlock = unlock_stm50flw0x0x,
8158 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008159 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008160 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00008161 },
8162
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008163 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00008164 .vendor = "SyncMOS/MoselVitelic",
8165 .name = "{F,S,V}29C51001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008166 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008167 .manufacture_id = SYNCMOS_MVC_ID,
8168 .model_id = SM_MVC_29C51001B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008169 .total_size = 128,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008170 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +00008171 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008172 .tested = TEST_UNTESTED,
8173 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008174 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00008175 .block_erasers =
8176 {
8177 {
8178 .eraseblocks = { {512, 256} },
8179 .block_erase = erase_sector_jedec,
8180 }, {
8181 .eraseblocks = { {128 * 1024, 1} },
8182 .block_erase = erase_chip_block_jedec,
8183 },
8184 },
Sean Nelson35727f72010-01-28 23:55:12 +00008185 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008186 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008187 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00008188 },
8189
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008190 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00008191 .vendor = "SyncMOS/MoselVitelic",
8192 .name = "{F,S,V}29C51001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008193 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008194 .manufacture_id = SYNCMOS_MVC_ID,
8195 .model_id = SM_MVC_29C51001T,
8196 .total_size = 128,
8197 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +00008198 .feature_bits = FEATURE_EITHER_RESET,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008199 .tested = TEST_UNTESTED,
8200 .probe = probe_jedec,
8201 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8202 .block_erasers =
8203 {
8204 {
8205 .eraseblocks = { {512, 256} },
8206 .block_erase = erase_sector_jedec,
8207 }, {
8208 .eraseblocks = { {128 * 1024, 1} },
8209 .block_erase = erase_chip_block_jedec,
8210 },
8211 },
8212 .write = write_jedec_1,
8213 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008214 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008215 },
8216
8217 {
8218 .vendor = "SyncMOS/MoselVitelic",
8219 .name = "{F,S,V}29C51002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008220 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008221 .manufacture_id = SYNCMOS_MVC_ID,
8222 .model_id = SM_MVC_29C51002B,
8223 .total_size = 256,
8224 .page_size = 512,
8225 .feature_bits = FEATURE_EITHER_RESET,
8226 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008227 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008228 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00008229 .block_erasers =
8230 {
8231 {
8232 .eraseblocks = { {512, 512} },
8233 .block_erase = erase_sector_jedec,
8234 }, {
8235 .eraseblocks = { {256 * 1024, 1} },
8236 .block_erase = erase_chip_block_jedec,
8237 },
8238 },
Sean Nelson35727f72010-01-28 23:55:12 +00008239 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008240 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00008241 },
8242
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008243 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00008244 .vendor = "SyncMOS/MoselVitelic",
8245 .name = "{F,S,V}29C51002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008246 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008247 .manufacture_id = SYNCMOS_MVC_ID,
8248 .model_id = SM_MVC_29C51002T,
8249 .total_size = 256,
8250 .page_size = 512,
8251 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00008252 .tested = TEST_OK_PREW,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008253 .probe = probe_jedec,
8254 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8255 .block_erasers =
8256 {
8257 {
8258 .eraseblocks = { {512, 512} },
8259 .block_erase = erase_sector_jedec,
8260 }, {
8261 .eraseblocks = { {256 * 1024, 1} },
8262 .block_erase = erase_chip_block_jedec,
8263 },
8264 },
8265 .write = write_jedec_1,
8266 .read = read_memmapped,
8267 },
8268
8269 {
8270 .vendor = "SyncMOS/MoselVitelic",
8271 .name = "{F,S,V}29C51004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008272 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008273 .manufacture_id = SYNCMOS_MVC_ID,
8274 .model_id = SM_MVC_29C51004B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008275 .total_size = 512,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008276 .page_size = 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008277 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008278 .tested = TEST_UNTESTED,
8279 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008280 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00008281 .block_erasers =
8282 {
8283 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00008284 .eraseblocks = { {1024, 512} },
8285 .block_erase = erase_sector_jedec,
8286 }, {
8287 .eraseblocks = { {512 * 1024, 1} },
8288 .block_erase = erase_chip_block_jedec,
8289 },
8290 },
8291 .write = write_jedec_1,
8292 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008293 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008294 },
8295
8296 {
8297 .vendor = "SyncMOS/MoselVitelic",
8298 .name = "{F,S,V}29C51004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008299 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008300 .manufacture_id = SYNCMOS_MVC_ID,
8301 .model_id = SM_MVC_29C51004T,
8302 .total_size = 512,
8303 .page_size = 1024,
8304 .feature_bits = FEATURE_EITHER_RESET,
8305 .tested = TEST_UNTESTED,
8306 .probe = probe_jedec,
8307 .probe_timing = TIMING_ZERO,
8308 .block_erasers =
8309 {
8310 {
8311 .eraseblocks = { {1024, 512} },
8312 .block_erase = erase_sector_jedec,
8313 }, {
8314 .eraseblocks = { {512 * 1024, 1} },
8315 .block_erase = erase_chip_block_jedec,
8316 },
8317 },
8318 .write = write_jedec_1,
8319 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008320 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008321 },
8322
8323 {
8324 .vendor = "SyncMOS/MoselVitelic",
8325 .name = "{S,V}29C31004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008326 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008327 .manufacture_id = SYNCMOS_MVC_ID,
8328 .model_id = SM_MVC_29C31004B,
8329 .total_size = 512,
8330 .page_size = 1024,
8331 .feature_bits = FEATURE_EITHER_RESET,
8332 .tested = TEST_UNTESTED,
8333 .probe = probe_jedec,
8334 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8335 .block_erasers =
8336 {
8337 {
8338 .eraseblocks = { {1024, 512} },
8339 .block_erase = erase_sector_jedec,
8340 }, {
8341 .eraseblocks = { {512 * 1024, 1} },
8342 .block_erase = erase_chip_block_jedec,
8343 },
8344 },
8345 .write = write_jedec_1,
8346 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008347 .voltage = {3000, 3600},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008348 },
8349
8350 {
8351 .vendor = "SyncMOS/MoselVitelic",
8352 .name = "{S,V}29C31004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008353 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008354 .manufacture_id = SYNCMOS_MVC_ID,
8355 .model_id = SM_MVC_29C31004T,
8356 .total_size = 512,
8357 .page_size = 1024,
8358 .feature_bits = FEATURE_EITHER_RESET,
8359 .tested = TEST_UNTESTED,
8360 .probe = probe_jedec,
8361 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8362 .block_erasers =
8363 {
8364 {
8365 .eraseblocks = { {1024, 512} },
Sean Nelson56358aa2010-01-19 16:08:51 +00008366 .block_erase = erase_sector_jedec,
8367 }, {
8368 .eraseblocks = { {512 * 1024, 1} },
8369 .block_erase = erase_chip_block_jedec,
8370 },
8371 },
Sean Nelson35727f72010-01-28 23:55:12 +00008372 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008373 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008374 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008375 },
8376
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008377 {
Uwe Hermanna106d152009-05-27 23:17:40 +00008378 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008379 .name = "TMS29F002RB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008380 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008381 .manufacture_id = TI_OLD_ID,
8382 .model_id = TI_TMS29F002RB,
8383 .total_size = 256,
8384 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +00008385 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008386 .tested = TEST_UNTESTED,
8387 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008388 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00008389 .block_erasers =
8390 {
8391 {
8392 .eraseblocks = {
8393 {16 * 1024, 1},
8394 {8 * 1024, 2},
8395 {32 * 1024, 1},
8396 {64 * 1024, 3},
8397 },
8398 .block_erase = erase_sector_jedec,
8399 }, {
8400 .eraseblocks = { {256 * 1024, 1} },
8401 .block_erase = erase_chip_block_jedec,
8402 },
8403 },
Sean Nelson35727f72010-01-28 23:55:12 +00008404 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008405 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008406 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008407 },
8408
8409 {
Uwe Hermanna106d152009-05-27 23:17:40 +00008410 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008411 .name = "TMS29F002RT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008412 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008413 .manufacture_id = TI_OLD_ID,
8414 .model_id = TI_TMS29F002RT,
8415 .total_size = 256,
8416 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +00008417 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008418 .tested = TEST_UNTESTED,
8419 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008420 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00008421 .block_erasers =
8422 {
8423 {
8424 .eraseblocks = {
8425 {64 * 1024, 3},
8426 {32 * 1024, 1},
8427 {8 * 1024, 2},
8428 {16 * 1024, 1},
8429 },
8430 .block_erase = erase_sector_jedec,
8431 }, {
8432 .eraseblocks = { {256 * 1024, 1} },
8433 .block_erase = erase_chip_block_jedec,
8434 },
8435 },
Sean Nelson35727f72010-01-28 23:55:12 +00008436 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008437 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008438 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008439 },
8440
8441 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008442 .vendor = "Winbond",
Rudolf Marekce1c7982010-04-20 19:34:31 +00008443 .name = "W25Q80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008444 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008445 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008446 .model_id = WINBOND_NEX_W25Q80,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008447 .total_size = 1024,
8448 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00008449 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
8450 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +00008451 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008452 .probe = probe_spi_rdid,
8453 .probe_timing = TIMING_ZERO,
8454 .block_erasers =
8455 {
8456 {
8457 .eraseblocks = { {4 * 1024, 256} },
8458 .block_erase = spi_block_erase_20,
8459 }, {
8460 .eraseblocks = { {32 * 1024, 32} },
8461 .block_erase = spi_block_erase_52,
8462 }, {
8463 .eraseblocks = { {64 * 1024, 16} },
8464 .block_erase = spi_block_erase_d8,
8465 }, {
8466 .eraseblocks = { {1024 * 1024, 1} },
8467 .block_erase = spi_block_erase_60,
8468 }, {
8469 .eraseblocks = { {1024 * 1024, 1} },
8470 .block_erase = spi_block_erase_c7,
8471 }
8472 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008473 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008474 .write = spi_chip_write_256,
8475 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008476 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +00008477 },
8478
8479 {
8480 .vendor = "Winbond",
8481 .name = "W25Q16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008482 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008483 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008484 .model_id = WINBOND_NEX_W25Q16,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008485 .total_size = 2048,
8486 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00008487 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
8488 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner716e0982011-07-25 20:38:52 +00008489 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008490 .probe = probe_spi_rdid,
8491 .probe_timing = TIMING_ZERO,
8492 .block_erasers =
8493 {
8494 {
8495 .eraseblocks = { {4 * 1024, 512} },
8496 .block_erase = spi_block_erase_20,
8497 }, {
8498 .eraseblocks = { {32 * 1024, 64} },
8499 .block_erase = spi_block_erase_52,
8500 }, {
8501 .eraseblocks = { {64 * 1024, 32} },
8502 .block_erase = spi_block_erase_d8,
8503 }, {
8504 .eraseblocks = { {2 * 1024 * 1024, 1} },
8505 .block_erase = spi_block_erase_60,
8506 }, {
8507 .eraseblocks = { {2 * 1024 * 1024, 1} },
8508 .block_erase = spi_block_erase_c7,
8509 }
8510 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008511 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008512 .write = spi_chip_write_256,
8513 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008514 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +00008515 },
8516
8517 {
8518 .vendor = "Winbond",
8519 .name = "W25Q32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008520 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008521 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008522 .model_id = WINBOND_NEX_W25Q32,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008523 .total_size = 4096,
8524 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00008525 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
8526 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +00008527 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008528 .probe = probe_spi_rdid,
8529 .probe_timing = TIMING_ZERO,
8530 .block_erasers =
8531 {
8532 {
8533 .eraseblocks = { {4 * 1024, 1024} },
8534 .block_erase = spi_block_erase_20,
8535 }, {
8536 .eraseblocks = { {32 * 1024, 128} },
8537 .block_erase = spi_block_erase_52,
8538 }, {
8539 .eraseblocks = { {64 * 1024, 64} },
8540 .block_erase = spi_block_erase_d8,
8541 }, {
8542 .eraseblocks = { {4 * 1024 * 1024, 1} },
8543 .block_erase = spi_block_erase_60,
8544 }, {
8545 .eraseblocks = { {4 * 1024 * 1024, 1} },
8546 .block_erase = spi_block_erase_c7,
8547 }
8548 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008549 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008550 .write = spi_chip_write_256,
8551 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008552 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +00008553 },
8554
8555 {
8556 .vendor = "Winbond",
David Hendricksc4acec92010-06-24 11:39:57 +00008557 .name = "W25Q64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008558 .bustype = BUS_SPI,
David Hendricksc4acec92010-06-24 11:39:57 +00008559 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008560 .model_id = WINBOND_NEX_W25Q64,
David Hendricksc4acec92010-06-24 11:39:57 +00008561 .total_size = 8192,
8562 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00008563 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
8564 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +00008565 .tested = TEST_OK_PREW,
David Hendricksc4acec92010-06-24 11:39:57 +00008566 .probe = probe_spi_rdid,
8567 .probe_timing = TIMING_ZERO,
8568 .block_erasers =
8569 {
8570 {
8571 .eraseblocks = { {4 * 1024, 2048} },
8572 .block_erase = spi_block_erase_20,
8573 }, {
8574 .eraseblocks = { {32 * 1024, 256} },
8575 .block_erase = spi_block_erase_52,
8576 }, {
8577 .eraseblocks = { {64 * 1024, 128} },
8578 .block_erase = spi_block_erase_d8,
8579 }, {
8580 .eraseblocks = { {8 * 1024 * 1024, 1} },
8581 .block_erase = spi_block_erase_60,
8582 }, {
8583 .eraseblocks = { {8 * 1024 * 1024, 1} },
8584 .block_erase = spi_block_erase_c7,
8585 }
8586 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008587 .unlock = spi_disable_blockprotect,
David Hendricksc4acec92010-06-24 11:39:57 +00008588 .write = spi_chip_write_256,
8589 .read = spi_chip_read,
8590 },
8591
8592 {
8593 .vendor = "Winbond",
Antony Rheneus0fbba982011-05-26 14:28:51 +00008594 .name = "W25Q128",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008595 .bustype = BUS_SPI,
Antony Rheneus0fbba982011-05-26 14:28:51 +00008596 .manufacture_id = WINBOND_NEX_ID,
8597 .model_id = WINBOND_NEX_W25Q128,
8598 .total_size = 16384,
8599 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00008600 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
8601 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Antony Rheneus0fbba982011-05-26 14:28:51 +00008602 .tested = TEST_OK_PROBE,
8603 .probe = probe_spi_rdid,
8604 .probe_timing = TIMING_ZERO,
8605 .block_erasers =
8606 {
8607 {
8608 .eraseblocks = { {4 * 1024, 4096} },
8609 .block_erase = spi_block_erase_20,
8610 }, {
8611 .eraseblocks = { {32 * 1024, 512} },
8612 .block_erase = spi_block_erase_52,
8613 }, {
8614 .eraseblocks = { {64 * 1024, 256} },
8615 .block_erase = spi_block_erase_d8,
8616 }, {
8617 .eraseblocks = { {16 * 1024 * 1024, 1} },
8618 .block_erase = spi_block_erase_60,
8619 }, {
8620 .eraseblocks = { {16 * 1024 * 1024, 1} },
8621 .block_erase = spi_block_erase_c7,
8622 }
8623 },
8624 .unlock = spi_disable_blockprotect,
8625 .write = spi_chip_write_256,
8626 .read = spi_chip_read,
8627 },
8628
8629 {
8630 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008631 .name = "W25X10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008632 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008633 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008634 .model_id = WINBOND_NEX_W25X10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008635 .total_size = 128,
8636 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008637 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008638 .tested = TEST_UNTESTED,
8639 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008640 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008641 .block_erasers =
8642 {
8643 {
8644 .eraseblocks = { {4 * 1024, 32} },
8645 .block_erase = spi_block_erase_20,
8646 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008647 .eraseblocks = { {64 * 1024, 2} },
8648 .block_erase = spi_block_erase_d8,
8649 }, {
8650 .eraseblocks = { {128 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008651 .block_erase = spi_block_erase_c7,
8652 }
8653 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008654 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008655 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008656 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008657 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008658 },
8659
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008660 {
8661 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008662 .name = "W25X20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008663 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008664 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008665 .model_id = WINBOND_NEX_W25X20,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008666 .total_size = 256,
8667 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008668 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008669 .tested = TEST_UNTESTED,
8670 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008671 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008672 .block_erasers =
8673 {
8674 {
8675 .eraseblocks = { {4 * 1024, 64} },
8676 .block_erase = spi_block_erase_20,
8677 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008678 .eraseblocks = { {64 * 1024, 4} },
8679 .block_erase = spi_block_erase_d8,
8680 }, {
8681 .eraseblocks = { {256 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008682 .block_erase = spi_block_erase_c7,
8683 }
8684 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008685 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008686 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008687 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008688 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008689 },
8690
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008691 {
8692 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008693 .name = "W25X40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008694 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008695 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008696 .model_id = WINBOND_NEX_W25X40,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008697 .total_size = 512,
8698 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008699 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +00008700 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008701 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008702 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008703 .block_erasers =
8704 {
8705 {
8706 .eraseblocks = { {4 * 1024, 128} },
8707 .block_erase = spi_block_erase_20,
8708 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008709 .eraseblocks = { {64 * 1024, 8} },
8710 .block_erase = spi_block_erase_d8,
8711 }, {
8712 .eraseblocks = { {512 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008713 .block_erase = spi_block_erase_c7,
8714 }
8715 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008716 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008717 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008718 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008719 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008720 },
8721
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008722 {
8723 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008724 .name = "W25X80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008725 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008726 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008727 .model_id = WINBOND_NEX_W25X80,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008728 .total_size = 1024,
8729 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008730 .feature_bits = FEATURE_WRSR_WREN,
Yul Rottmann6d6ab742011-03-05 16:31:57 +00008731 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008732 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008733 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008734 .block_erasers =
8735 {
8736 {
8737 .eraseblocks = { {4 * 1024, 256} },
8738 .block_erase = spi_block_erase_20,
8739 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008740 .eraseblocks = { {64 * 1024, 16} },
8741 .block_erase = spi_block_erase_d8,
8742 }, {
8743 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008744 .block_erase = spi_block_erase_c7,
8745 }
8746 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008747 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008748 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008749 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008750 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008751 },
8752
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008753 {
8754 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008755 .name = "W25X16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008756 .bustype = BUS_SPI,
Hector Martina721ae22009-07-11 19:39:11 +00008757 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008758 .model_id = WINBOND_NEX_W25X16,
Hector Martina721ae22009-07-11 19:39:11 +00008759 .total_size = 2048,
8760 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008761 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +00008762 .tested = TEST_OK_PREW,
Hector Martina721ae22009-07-11 19:39:11 +00008763 .probe = probe_spi_rdid,
8764 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008765 .block_erasers =
8766 {
8767 {
8768 .eraseblocks = { {4 * 1024, 512} },
8769 .block_erase = spi_block_erase_20,
8770 }, {
8771 .eraseblocks = { {32 * 1024, 64} },
8772 .block_erase = spi_block_erase_52,
8773 }, {
8774 .eraseblocks = { {64 * 1024, 32} },
8775 .block_erase = spi_block_erase_d8,
8776 }, {
8777 .eraseblocks = { {2 * 1024 * 1024, 1} },
8778 .block_erase = spi_block_erase_60,
8779 }, {
8780 .eraseblocks = { {2 * 1024 * 1024, 1} },
8781 .block_erase = spi_block_erase_c7,
8782 }
8783 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008784 .unlock = spi_disable_blockprotect,
Hector Martina721ae22009-07-11 19:39:11 +00008785 .write = spi_chip_write_256,
8786 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008787 .voltage = {2700, 3600},
Hector Martina721ae22009-07-11 19:39:11 +00008788 },
8789
8790 {
8791 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008792 .name = "W25X32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008793 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +00008794 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008795 .model_id = WINBOND_NEX_W25X32,
Zheng Bao1db2b752009-11-26 11:05:01 +00008796 .total_size = 4096,
8797 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008798 .feature_bits = FEATURE_WRSR_WREN,
Zheng Bao1db2b752009-11-26 11:05:01 +00008799 .tested = TEST_OK_PROBE,
8800 .probe = probe_spi_rdid,
8801 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008802 .block_erasers =
8803 {
8804 {
8805 .eraseblocks = { {4 * 1024, 1024} },
8806 .block_erase = spi_block_erase_20,
8807 }, {
8808 .eraseblocks = { {32 * 1024, 128} },
8809 .block_erase = spi_block_erase_52,
8810 }, {
8811 .eraseblocks = { {64 * 1024, 64} },
8812 .block_erase = spi_block_erase_d8,
8813 }, {
8814 .eraseblocks = { {4 * 1024 * 1024, 1} },
8815 .block_erase = spi_block_erase_60,
8816 }, {
8817 .eraseblocks = { {4 * 1024 * 1024, 1} },
8818 .block_erase = spi_block_erase_c7,
8819 }
8820 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008821 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +00008822 .write = spi_chip_write_256,
8823 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008824 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +00008825 },
8826
8827 {
8828 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008829 .name = "W25X64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008830 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +00008831 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008832 .model_id = WINBOND_NEX_W25X64,
Zheng Bao1db2b752009-11-26 11:05:01 +00008833 .total_size = 8192,
8834 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008835 .feature_bits = FEATURE_WRSR_WREN,
Antony Rheneus0fbba982011-05-26 14:28:51 +00008836 .tested = TEST_OK_PROBE,
Zheng Bao1db2b752009-11-26 11:05:01 +00008837 .probe = probe_spi_rdid,
8838 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008839 .block_erasers =
8840 {
8841 {
8842 .eraseblocks = { {4 * 1024, 2048} },
8843 .block_erase = spi_block_erase_20,
8844 }, {
8845 .eraseblocks = { {32 * 1024, 256} },
8846 .block_erase = spi_block_erase_52,
8847 }, {
8848 .eraseblocks = { {64 * 1024, 128} },
8849 .block_erase = spi_block_erase_d8,
8850 }, {
8851 .eraseblocks = { {8 * 1024 * 1024, 1} },
8852 .block_erase = spi_block_erase_60,
8853 }, {
8854 .eraseblocks = { {8 * 1024 * 1024, 1} },
8855 .block_erase = spi_block_erase_c7,
8856 }
8857 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008858 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +00008859 .write = spi_chip_write_256,
8860 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008861 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +00008862 },
8863
8864 {
8865 .vendor = "Winbond",
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +00008866 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008867 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +00008868 .manufacture_id = WINBOND_ID,
8869 .model_id = WINBOND_W29C010,
8870 .total_size = 128,
8871 .page_size = 128,
8872 .feature_bits = FEATURE_LONG_RESET,
8873 .tested = TEST_OK_PRE,
8874 .probe = probe_w29ee011,
8875 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */
8876 .block_erasers =
8877 {
8878 {
8879 .eraseblocks = { {128 * 1024, 1} },
8880 .block_erase = erase_chip_block_jedec,
8881 }
8882 },
8883 .write = write_jedec,
8884 .read = read_memmapped,
8885 },
8886
8887 {/* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */
8888 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +00008889 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008890 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008891 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008892 .model_id = WINBOND_W29C010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008893 .total_size = 128,
8894 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00008895 .feature_bits = FEATURE_LONG_RESET,
David Hendricks567b7b82011-05-18 01:31:03 +00008896 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008897 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008898 .probe_timing = 10, /* used datasheet for the W29C011A */
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008899 .block_erasers =
8900 {
8901 {
8902 .eraseblocks = { {128 * 1024, 1} },
8903 .block_erase = erase_chip_block_jedec,
8904 }
8905 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008906 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008907 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00008908 },
8909
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008910 {
8911 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +00008912 .name = "W29C020(C)/W29C022",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008913 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008914 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008915 .model_id = WINBOND_W29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008916 .total_size = 256,
8917 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00008918 .feature_bits = FEATURE_LONG_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008919 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008920 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008921 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008922 .block_erasers =
8923 {
8924 {
8925 .eraseblocks = { {256 * 1024, 1} },
8926 .block_erase = erase_chip_block_jedec,
8927 }
8928 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008929 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008930 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008931 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00008932 },
8933
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008934 {
8935 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +00008936 .name = "W29C040/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008937 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008938 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008939 .model_id = WINBOND_W29C040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008940 .total_size = 512,
8941 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00008942 .feature_bits = FEATURE_LONG_RESET,
8943 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008944 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00008945 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008946 .block_erasers =
8947 {
8948 {
8949 .eraseblocks = { {512 * 1024, 1} },
8950 .block_erase = erase_chip_block_jedec,
8951 }
8952 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008953 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008954 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008955 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00008956 },
8957
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008958 {
8959 .vendor = "Winbond",
Michael Karcher19e0aac2011-03-06 17:58:05 +00008960 .name = "W39L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008961 .bustype = BUS_PARALLEL,
Michael Karcher19e0aac2011-03-06 17:58:05 +00008962 .manufacture_id = WINBOND_ID,
8963 .model_id = WINBOND_W39L040,
8964 .total_size = 512,
8965 .page_size = 64 * 1024,
8966 .feature_bits = FEATURE_EITHER_RESET,
8967 .tested = TEST_OK_PR,
8968 .probe = probe_jedec,
8969 .probe_timing = 10,
8970 .block_erasers =
8971 {
8972 {
8973 .eraseblocks = { {4 * 1024, 128} },
8974 .block_erase = erase_block_jedec,
8975 }, {
8976 .eraseblocks = { {64 * 1024, 8} },
8977 .block_erase = erase_sector_jedec,
8978 }, {
8979 .eraseblocks = { {512 * 1024, 1} },
8980 .block_erase = erase_chip_block_jedec,
8981 }
8982 },
8983 .printlock = printlock_w39l040,
8984 .write = write_jedec_1,
8985 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008986 .voltage = {3000, 3600},
Michael Karcher19e0aac2011-03-06 17:58:05 +00008987 },
8988
8989 {
8990 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008991 .name = "W39V040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008992 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008993 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008994 .model_id = WINBOND_W39V040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008995 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00008996 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008997 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +00008998 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008999 .probe = probe_jedec,
Stefan Tauner716e0982011-07-25 20:38:52 +00009000 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009001 .block_erasers =
9002 {
9003 {
9004 .eraseblocks = { {64 * 1024, 8} },
9005 .block_erase = erase_sector_jedec,
9006 }, {
9007 .eraseblocks = { {512 * 1024, 1} },
9008 .block_erase = erase_chip_block_jedec,
9009 }
9010 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009011 .printlock = printlock_w39v040a,
Sean Nelson35727f72010-01-28 23:55:12 +00009012 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009013 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009014 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009015 },
9016
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009017 {
9018 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009019 .name = "W39V040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009020 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009021 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009022 .model_id = WINBOND_W39V040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009023 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00009024 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009025 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00009026 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009027 .probe = probe_jedec,
Paul Menzel018d4822011-10-21 12:33:07 +00009028 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009029 .block_erasers =
9030 {
9031 {
9032 .eraseblocks = { {64 * 1024, 8} },
9033 .block_erase = erase_sector_jedec,
9034 }, {
9035 .eraseblocks = { {512 * 1024, 1} },
9036 .block_erase = erase_chip_block_jedec,
9037 }
9038 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009039 .printlock = printlock_w39v040b,
Sean Nelson35727f72010-01-28 23:55:12 +00009040 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009041 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009042 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009043 },
9044
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009045 {
9046 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009047 .name = "W39V040C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009048 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009049 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009050 .model_id = WINBOND_W39V040C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009051 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00009052 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009053 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00009054 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00009055 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009056 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009057 .block_erasers =
9058 {
9059 {
9060 .eraseblocks = { {64 * 1024, 8} },
9061 .block_erase = erase_sector_jedec,
9062 }, {
9063 .eraseblocks = { {512 * 1024, 1} },
9064 .block_erase = erase_chip_block_jedec,
9065 }
9066 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00009067 .printlock = printlock_w39v040c,
Sean Nelson35727f72010-01-28 23:55:12 +00009068 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009069 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009070 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009071 },
9072
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009073 {
9074 .vendor = "Winbond",
9075 .name = "W39V040FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009076 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009077 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009078 .model_id = WINBOND_W39V040FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009079 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00009080 .page_size = 64 * 1024,
Michael Karcherc9b63412010-05-30 16:55:18 +00009081 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Antony Rheneus0fbba982011-05-26 14:28:51 +00009082 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009083 .probe = probe_jedec,
Antony Rheneus0fbba982011-05-26 14:28:51 +00009084 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009085 .block_erasers =
9086 {
9087 {
9088 .eraseblocks = { {4 * 1024, 128} },
9089 .block_erase = erase_block_jedec,
9090 }, {
9091 .eraseblocks = { {64 * 1024, 8} },
9092 .block_erase = erase_sector_jedec,
9093 }, {
9094 .eraseblocks = { {512 * 1024, 1} },
9095 .block_erase = erase_chip_block_jedec,
9096 }
9097 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009098 .printlock = printlock_w39v040fa,
Michael Karcherc9b63412010-05-30 16:55:18 +00009099 .unlock = unlock_sst_fwhub,
Sean Nelson35727f72010-01-28 23:55:12 +00009100 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009101 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009102 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009103 },
9104
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009105 {
9106 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009107 .name = "W39V040FB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009108 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009109 .manufacture_id = WINBOND_ID,
9110 .model_id = WINBOND_W39V040B,
9111 .total_size = 512,
9112 .page_size = 64 * 1024,
9113 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00009114 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009115 .probe = probe_jedec,
9116 .probe_timing = 10,
9117 .block_erasers =
9118 {
9119 {
9120 .eraseblocks = { {64 * 1024, 8} },
9121 .block_erase = erase_sector_jedec,
9122 }, {
9123 .eraseblocks = { {512 * 1024, 1} },
9124 .block_erase = erase_chip_block_jedec,
9125 }
9126 },
9127 .printlock = printlock_w39v040fb,
Idwer Volleringecc67072010-12-26 23:55:12 +00009128 .unlock = unlock_w39v040fb,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009129 .write = write_jedec_1,
9130 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009131 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009132 },
9133
9134 {
9135 .vendor = "Winbond",
9136 .name = "W39V040FC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009137 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009138 .manufacture_id = WINBOND_ID,
9139 .model_id = WINBOND_W39V040C,
9140 .total_size = 512,
9141 .page_size = 64 * 1024,
9142 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +00009143 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009144 .probe = probe_jedec,
9145 .probe_timing = 10,
9146 .block_erasers =
9147 {
9148 {
9149 .eraseblocks = { {64 * 1024, 8} },
9150 .block_erase = erase_sector_jedec,
9151 }, {
9152 .eraseblocks = { {512 * 1024, 1} },
9153 .block_erase = erase_chip_block_jedec,
9154 }
9155 },
9156 .printlock = printlock_w39v040fc,
9157 .write = write_jedec_1,
9158 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009159 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009160 },
9161
9162 {
9163 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009164 .name = "W39V080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009165 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009166 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009167 .model_id = WINBOND_W39V080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009168 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +00009169 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009170 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +00009171 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009172 .probe = probe_jedec,
Paul Menzelac427b22012-02-16 21:07:07 +00009173 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009174 .block_erasers =
9175 {
9176 {
9177 .eraseblocks = { {64 * 1024, 16} },
9178 .block_erase = erase_sector_jedec,
9179 }, {
9180 .eraseblocks = { {1024 * 1024, 1} },
9181 .block_erase = erase_chip_block_jedec,
9182 }
9183 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009184 .printlock = printlock_w39v080a,
Sean Nelson35727f72010-01-28 23:55:12 +00009185 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009186 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009187 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009188 },
9189
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009190 {
9191 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +00009192 .name = "W49F002U/N",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009193 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009194 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009195 .model_id = WINBOND_W49F002U,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009196 .total_size = 256,
9197 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00009198 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +00009199 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009200 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009201 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009202 .block_erasers =
9203 {
9204 {
9205 .eraseblocks = {
9206 {128 * 1024, 1},
9207 {96 * 1024, 1},
9208 {8 * 1024, 2},
9209 {16 * 1024, 1},
9210 },
9211 .block_erase = erase_sector_jedec,
9212 }, {
9213 .eraseblocks = { {256 * 1024, 1} },
9214 .block_erase = erase_chip_block_jedec,
9215 }
9216 },
Sean Nelson35727f72010-01-28 23:55:12 +00009217 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009218 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009219 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009220 },
9221
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009222 {
9223 .vendor = "Winbond",
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +00009224 .name = "W49F020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009225 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +00009226 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009227 .model_id = WINBOND_W49F020,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +00009228 .total_size = 256,
9229 .page_size = 128,
9230 .feature_bits = FEATURE_EITHER_RESET,
9231 .tested = TEST_OK_PROBE,
9232 .probe = probe_jedec,
9233 .probe_timing = 10,
9234 .block_erasers =
9235 {
9236 {
9237 .eraseblocks = { {256 * 1024, 1} },
9238 .block_erase = erase_chip_block_jedec,
9239 }
9240 },
9241 .write = write_jedec_1,
9242 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009243 .voltage = {4500, 5500},
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +00009244 },
9245
9246 {
9247 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009248 .name = "W49V002A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009249 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009250 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009251 .model_id = WINBOND_W49V002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009252 .total_size = 256,
9253 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00009254 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00009255 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009256 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00009257 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009258 .block_erasers =
9259 {
9260 {
9261 .eraseblocks = {
9262 {64 * 1024, 3},
9263 {32 * 1024, 1},
9264 {8 * 1024, 2},
9265 {16 * 1024, 1},
9266 },
9267 .block_erase = erase_sector_jedec,
9268 }, {
9269 .eraseblocks = { {256 * 1024, 1} },
9270 .block_erase = erase_chip_block_jedec,
9271 }
9272 },
Sean Nelson35727f72010-01-28 23:55:12 +00009273 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009274 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009275 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009276 },
9277
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009278 {
9279 .vendor = "Winbond",
9280 .name = "W49V002FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009281 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009282 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009283 .model_id = WINBOND_W49V002FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009284 .total_size = 256,
9285 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00009286 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00009287 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009288 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009289 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009290 .block_erasers =
9291 {
9292 {
9293 .eraseblocks = {
9294 {64 * 1024, 3},
9295 {32 * 1024, 1},
9296 {8 * 1024, 2},
9297 {16 * 1024, 1},
9298 },
9299 .block_erase = erase_sector_jedec,
9300 }, {
9301 .eraseblocks = { {256 * 1024, 1} },
9302 .block_erase = erase_chip_block_jedec,
9303 }
9304 },
Sean Nelson35727f72010-01-28 23:55:12 +00009305 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009306 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009307 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009308 },
9309
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009310 {
9311 .vendor = "Winbond",
9312 .name = "W39V080FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009313 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009314 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009315 .model_id = WINBOND_W39V080FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009316 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +00009317 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009318 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +00009319 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00009320 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009321 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009322 .block_erasers =
9323 {
9324 {
9325 .eraseblocks = { {64 * 1024, 16}, },
9326 .block_erase = erase_sector_jedec,
9327 }, {
9328 .eraseblocks = { {1024 * 1024, 1} },
9329 .block_erase = erase_chip_block_jedec,
9330 }
9331 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009332 .printlock = printlock_w39v080fa,
9333 .unlock = unlock_w39v080fa,
Sean Nelson35727f72010-01-28 23:55:12 +00009334 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009335 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009336 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +00009337 },
9338
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009339 {
9340 .vendor = "Winbond",
9341 .name = "W39V080FA (dual mode)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009342 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009343 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009344 .model_id = WINBOND_W39V080FA_DM,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009345 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00009346 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009347 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009348 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00009349 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009350 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009351 .block_erasers =
9352 {
9353 {
9354 .eraseblocks = { {64 * 1024, 8}, },
9355 .block_erase = erase_sector_jedec,
9356 }, {
9357 .eraseblocks = { {512 * 1024, 1} },
9358 .block_erase = erase_chip_block_jedec,
9359 }
9360 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009361 .printlock = printlock_w39v080fa_dual,
Sean Nelson35727f72010-01-28 23:55:12 +00009362 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009363 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009364 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +00009365 },
Stefan Taunerac1b4c82012-02-17 14:51:04 +00009366
9367 {
9368 .vendor = "Unknown",
9369 .name = "SFDP-capable chip",
9370 .bustype = BUS_SPI,
9371 .manufacture_id = GENERIC_MANUF_ID,
9372 .model_id = SFDP_DEVICE_ID,
9373 /* We present our own "report this" text hence we do not
9374 * want the default "This flash part has status UNTESTED..."
9375 * text to be printed. */
9376 .tested = TEST_OK_PREW,
9377 .probe = probe_spi_sfdp,
9378 .unlock = spi_disable_blockprotect, /* is this safe? */
9379 .read = spi_chip_read,
9380 /* FIXME: some vendor extensions define this */
9381 .voltage = {},
9382 /* Everything below will be set by the probing function. */
9383 .write = NULL,
9384 .total_size = 0,
9385 .page_size = 0,
9386 .feature_bits = 0,
9387 .block_erasers = {},
9388 },
FENG yu ningff692fb2008-12-08 18:15:10 +00009389
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009390 {
Carl-Daniel Hailfinger532c7172011-11-04 21:35:26 +00009391 .vendor = "Programmer",
9392 .name = "Opaque flash chip",
9393 .bustype = BUS_PROG,
9394 .manufacture_id = PROGMANUF_ID,
9395 .model_id = PROGDEV_ID,
9396 .total_size = 0,
9397 .page_size = 256,
9398 /* probe is assumed to work, rest will be filled in by probe */
9399 .tested = TEST_OK_PROBE,
9400 .probe = probe_opaque,
9401 /* eraseblock sizes will be set by the probing function */
9402 .block_erasers =
9403 {
9404 {
9405 .block_erase = erase_opaque,
9406 }
9407 },
9408 .write = write_opaque,
9409 .read = read_opaque,
9410 },
9411
9412 {
Daniel Lenskidf90d3a2010-07-22 11:44:38 +00009413 .vendor = "AMIC",
9414 .name = "unknown AMIC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009415 .bustype = BUS_SPI,
Daniel Lenskidf90d3a2010-07-22 11:44:38 +00009416 .manufacture_id = AMIC_ID,
9417 .model_id = GENERIC_DEVICE_ID,
9418 .total_size = 0,
9419 .page_size = 256,
9420 .tested = TEST_BAD_PREW,
9421 .probe = probe_spi_rdid4,
9422 .probe_timing = TIMING_ZERO,
9423 .write = NULL,
9424 .read = NULL,
9425 },
9426
9427 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009428 .vendor = "Atmel",
9429 .name = "unknown Atmel SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009430 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009431 .manufacture_id = ATMEL_ID,
9432 .model_id = GENERIC_DEVICE_ID,
9433 .total_size = 0,
9434 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00009435 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009436 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009437 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009438 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009439 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00009440 },
9441
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009442 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00009443 .vendor = "Eon",
9444 .name = "unknown Eon SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009445 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009446 .manufacture_id = EON_ID_NOPREFIX,
9447 .model_id = GENERIC_DEVICE_ID,
9448 .total_size = 0,
9449 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00009450 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009451 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009452 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009453 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009454 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00009455 },
9456
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009457 {
9458 .vendor = "Macronix",
9459 .name = "unknown Macronix SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009460 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009461 .manufacture_id = MACRONIX_ID,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009462 .model_id = GENERIC_DEVICE_ID,
9463 .total_size = 0,
9464 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00009465 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009466 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009467 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009468 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009469 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00009470 },
9471
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009472 {
9473 .vendor = "PMC",
9474 .name = "unknown PMC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009475 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009476 .manufacture_id = PMC_ID,
9477 .model_id = GENERIC_DEVICE_ID,
9478 .total_size = 0,
9479 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00009480 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009481 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009482 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009483 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009484 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00009485 },
9486
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009487 {
9488 .vendor = "SST",
9489 .name = "unknown SST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009490 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009491 .manufacture_id = SST_ID,
9492 .model_id = GENERIC_DEVICE_ID,
9493 .total_size = 0,
9494 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00009495 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009496 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009497 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009498 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009499 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00009500 },
9501
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009502 {
9503 .vendor = "ST",
9504 .name = "unknown ST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009505 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009506 .manufacture_id = ST_ID,
9507 .model_id = GENERIC_DEVICE_ID,
9508 .total_size = 0,
9509 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00009510 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009511 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009512 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009513 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009514 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00009515 },
Uwe Hermannfc425e82008-03-16 02:06:25 +00009516
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00009517 {
Sean Nelson118e1d62009-11-24 02:08:11 +00009518 .vendor = "Sanyo",
9519 .name = "unknown Sanyo SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009520 .bustype = BUS_SPI,
Sean Nelson118e1d62009-11-24 02:08:11 +00009521 .manufacture_id = SANYO_ID,
9522 .model_id = GENERIC_DEVICE_ID,
9523 .total_size = 0,
9524 .page_size = 256,
9525 .tested = TEST_BAD_PREW,
9526 .probe = probe_spi_rdid,
9527 .probe_timing = TIMING_ZERO,
Sean Nelson118e1d62009-11-24 02:08:11 +00009528 .write = NULL,
9529 .read = NULL,
9530 },
9531
9532 {
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00009533 .vendor = "Generic",
9534 .name = "unknown SPI chip (RDID)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009535 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00009536 .manufacture_id = GENERIC_MANUF_ID,
9537 .model_id = GENERIC_DEVICE_ID,
9538 .total_size = 0,
9539 .page_size = 256,
9540 .tested = TEST_BAD_PREW,
9541 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00009542 .write = NULL,
9543 },
Stefan Tauneraf2db612011-12-02 21:48:17 +00009544
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00009545 {
9546 .vendor = "Generic",
9547 .name = "unknown SPI chip (REMS)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009548 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00009549 .manufacture_id = GENERIC_MANUF_ID,
9550 .model_id = GENERIC_DEVICE_ID,
9551 .total_size = 0,
9552 .page_size = 256,
9553 .tested = TEST_BAD_PREW,
9554 .probe = probe_spi_rems,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00009555 .write = NULL,
9556 },
9557
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009558 { NULL }
Stephan Guilloux72cf5652009-04-21 01:46:07 +00009559};