blob: 6d997be99fb5305889ea643b96ff9df7cf836006 [file] [log] [blame]
Ollie Lho184a4042005-11-26 21:55:36 +00001/*
Uwe Hermannd1107642007-08-29 17:52:32 +00002 * This file is part of the flashrom project.
Ollie Lho184a4042005-11-26 21:55:36 +00003 *
Uwe Hermannd22a1d42007-09-09 20:21:05 +00004 * Copyright (C) 2000 Silicon Integrated System Corporation
5 * Copyright (C) 2004 Tyan Corp
Stefan Reinauer4c390c82008-07-02 13:33:09 +00006 * Copyright (C) 2005-2008 coresystems GmbH <stepan@openbios.org>
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00007 * Copyright (C) 2006-2009 Carl-Daniel Hailfinger
Sean Nelsonc57a9202010-01-04 17:15:23 +00008 * Copyright (C) 2009 Sean Nelson <audiohacked@gmail.com>
Uwe Hermannd1107642007-08-29 17:52:32 +00009 *
Stefan Reinauerce532972007-05-23 17:20:56 +000010 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
Ollie Lho184a4042005-11-26 21:55:36 +000014 *
Stefan Reinauerce532972007-05-23 17:20:56 +000015 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
Ollie Lho184a4042005-11-26 21:55:36 +000019 *
Stefan Reinauerce532972007-05-23 17:20:56 +000020 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
Uwe Hermannd1107642007-08-29 17:52:32 +000022 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Ollie Lho184a4042005-11-26 21:55:36 +000023 */
24
25#include "flash.h"
Carl-Daniel Hailfinger08454642009-06-15 14:14:48 +000026#include "flashchips.h"
Sean Nelson14ba6682010-02-26 05:48:29 +000027#include "chipdrivers.h"
Ollie Lho184a4042005-11-26 21:55:36 +000028
Uwe Hermannfc425e82008-03-16 02:06:25 +000029/**
Uwe Hermanna9720402009-05-21 15:55:46 +000030 * List of supported flash chips.
Uwe Hermannfc425e82008-03-16 02:06:25 +000031 *
32 * Please keep the list sorted by vendor name and chip name, so that
33 * the output of 'flashrom -L' is alphabetically sorted.
34 */
Carl-Daniel Hailfinger4c823182011-05-04 00:39:50 +000035const struct flashchip flashchips[] = {
Uwe Hermannfc425e82008-03-16 02:06:25 +000036
Carl-Daniel Hailfinger21eedec2009-07-23 12:42:01 +000037 /*
38 * .vendor = Vendor name
39 * .name = Chip name
40 * .bustype = Supported flash bus types (Parallel, LPC...)
41 * .manufacture_id = Manufacturer chip ID
42 * .model_id = Model chip ID
43 * .total_size = Total size in (binary) kbytes
44 * .page_size = Page or eraseblock(?) size in bytes
45 * .tested = Test status
46 * .probe = Probe function
47 * .probe_timing = Probe function delay
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +000048 * .block_erasers[] = Array of erase layouts and erase functions
49 * {
50 * .eraseblocks[] = Array of { blocksize, blockcount }
51 * .block_erase = Block erase function
52 * }
Sean Nelson6e0b9122010-02-19 00:52:10 +000053 * .printlock = Chip lock status function
54 * .unlock = Chip unlock function
Carl-Daniel Hailfinger21eedec2009-07-23 12:42:01 +000055 * .write = Chip write function
56 * .read = Chip read function
Steven Zakuleccbe370e2011-06-03 07:26:31 +000057 * .voltage = Voltage range in millivolt
FENG yu ningff692fb2008-12-08 18:15:10 +000058 */
59
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000060 {
61 .vendor = "AMD",
Uwe Hermanna8b37272009-06-19 15:54:39 +000062 .name = "Am29F010A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000063 .bustype = BUS_PARALLEL,
Uwe Hermanna8b37272009-06-19 15:54:39 +000064 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000065 .model_id = AMD_AM29F010B, /* Same as Am29F010A */
Uwe Hermanna8b37272009-06-19 15:54:39 +000066 .total_size = 128,
67 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000068 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000069 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +000070 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000071 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +000072 .block_erasers =
73 {
74 {
75 .eraseblocks = { {16 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +000076 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000077 }, {
78 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000079 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000080 },
81 },
Sean Nelson35727f72010-01-28 23:55:12 +000082 .write = write_jedec_1,
Uwe Hermanna8b37272009-06-19 15:54:39 +000083 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000084 .voltage = {4500, 5500},
Uwe Hermanna8b37272009-06-19 15:54:39 +000085 },
86
87 {
88 .vendor = "AMD",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000089 .name = "Am29F002(N)BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000090 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000091 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000092 .model_id = AMD_AM29F002BB,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000093 .total_size = 256,
94 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000095 .feature_bits = FEATURE_SHORT_RESET | FEATURE_ADDR_2AA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000096 .tested = TEST_UNTESTED,
97 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000098 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +000099 .block_erasers =
100 {
101 {
102 .eraseblocks = {
103 {16 * 1024, 1},
104 {8 * 1024, 2},
105 {32 * 1024, 1},
106 {64 * 1024, 3},
107 },
108 .block_erase = erase_sector_jedec,
109 }, {
110 .eraseblocks = { {256 * 1024, 1} },
111 .block_erase = erase_chip_block_jedec,
112 },
113 },
Michael Karcher1c296ca2009-11-27 17:49:42 +0000114 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000115 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000116 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +0000117 },
118
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000119 {
120 .vendor = "AMD",
121 .name = "Am29F002(N)BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000122 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000123 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000124 .model_id = AMD_AM29F002BT,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000125 .total_size = 256,
126 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +0000127 .feature_bits = FEATURE_EITHER_RESET | FEATURE_ADDR_2AA,
128 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000129 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +0000130 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000131 .block_erasers =
132 {
133 {
134 .eraseblocks = {
135 {64 * 1024, 3},
136 {32 * 1024, 1},
137 {8 * 1024, 2},
138 {16 * 1024, 1},
139 },
140 .block_erase = erase_sector_jedec,
141 }, {
142 .eraseblocks = { {256 * 1024, 1} },
143 .block_erase = erase_chip_block_jedec,
144 },
145 },
Michael Karcher1c296ca2009-11-27 17:49:42 +0000146 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000147 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000148 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +0000149 },
150
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000151 {
152 .vendor = "AMD",
153 .name = "Am29F016D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000154 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000155 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000156 .model_id = AMD_AM29F016D,
Sean Nelson72a9a022009-12-22 22:15:33 +0000157 .total_size = 2 * 1024,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000158 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000159 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000160 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +0000161 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000162 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000163 .block_erasers =
164 {
165 {
166 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson35727f72010-01-28 23:55:12 +0000167 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000168 }, {
169 .eraseblocks = { {2048 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000170 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000171 },
172 },
Sean Nelson35727f72010-01-28 23:55:12 +0000173 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000174 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000175 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +0000176 },
177
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000178 {
179 .vendor = "AMD",
180 .name = "Am29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000181 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000182 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000183 .model_id = AMD_AM29F040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000184 .total_size = 512,
185 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000186 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
187 .tested = TEST_UNTESTED,
188 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000189 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000190 .block_erasers =
191 {
192 {
193 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +0000194 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000195 }, {
196 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000197 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000198 },
199 },
Sean Nelson35727f72010-01-28 23:55:12 +0000200 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000201 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000202 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +0000203 },
204
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000205 {
206 .vendor = "AMD",
Peter Stuge8440cc02009-01-25 23:55:12 +0000207 .name = "Am29F080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000208 .bustype = BUS_PARALLEL,
Mateusz Murawski5bae4382009-06-02 00:38:14 +0000209 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000210 .model_id = AMD_AM29F080B,
Peter Stuge8440cc02009-01-25 23:55:12 +0000211 .total_size = 1024,
212 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000213 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +0000214 .tested = TEST_UNTESTED,
215 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +0000216 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000217 .block_erasers =
218 {
219 {
220 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson35727f72010-01-28 23:55:12 +0000221 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000222 }, {
223 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000224 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000225 },
226 },
Sean Nelson35727f72010-01-28 23:55:12 +0000227 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000228 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000229 .voltage = {4500, 5500},
Peter Stuge8440cc02009-01-25 23:55:12 +0000230 },
231
232 {
233 .vendor = "AMD",
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000234 .name = "Am29LV001BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000235 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000236 .manufacture_id = AMD_ID,
237 .model_id = AMD_AM29LV001BB,
238 .total_size = 128,
239 .page_size = 64 * 1024, /* unused */
240 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
241 .tested = TEST_OK_PREW,
242 .probe = probe_jedec,
243 .probe_timing = TIMING_ZERO,
244 .block_erasers =
245 {
246 {
247 .eraseblocks = {
248 {8 * 1024, 1},
249 {4 * 1024, 2},
250 {16 * 1024, 7},
251 },
252 .block_erase = erase_sector_jedec,
253 }, {
254 .eraseblocks = { {128 * 1024, 1} },
255 .block_erase = erase_chip_block_jedec,
256 },
257 },
258 .write = write_jedec_1,
259 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000260 .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000261 },
262
263 {
264 .vendor = "AMD",
265 .name = "Am29LV001BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000266 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000267 .manufacture_id = AMD_ID,
268 .model_id = AMD_AM29LV001BT,
269 .total_size = 128,
270 .page_size = 64 * 1024, /* unused */
271 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
272 .tested = TEST_UNTESTED,
273 .probe = probe_jedec,
274 .probe_timing = TIMING_ZERO,
275 .block_erasers =
276 {
277 {
278 .eraseblocks = {
279 {16 * 1024, 7},
280 {4 * 1024, 2},
281 {8 * 1024, 1},
282 },
283 .block_erase = erase_sector_jedec,
284 }, {
285 .eraseblocks = { {128 * 1024, 1} },
286 .block_erase = erase_chip_block_jedec,
287 },
288 },
289 .write = write_jedec_1,
290 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000291 .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000292 },
293
294 {
295 .vendor = "AMD",
296 .name = "Am29LV002BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000297 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000298 .manufacture_id = AMD_ID,
299 .model_id = AMD_AM29LV002BB,
300 .total_size = 256,
301 .page_size = 64 * 1024, /* unused */
302 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
303 .tested = TEST_UNTESTED,
304 .probe = probe_jedec,
305 .probe_timing = TIMING_ZERO,
306 .block_erasers =
307 {
308 {
309 .eraseblocks = {
310 {16 * 1024, 1},
311 {8 * 1024, 2},
312 {32 * 1024, 1},
313 {64 * 1024, 3},
314 },
315 .block_erase = erase_sector_jedec,
316 }, {
317 .eraseblocks = { {256 * 1024, 1} },
318 .block_erase = erase_chip_block_jedec,
319 },
320 },
321 .write = write_jedec_1,
322 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000323 .voltage = {3000, 3600}, /* 3.0-3.6V for type -55, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000324 },
325
326 {
327 .vendor = "AMD",
328 .name = "Am29LV002BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000329 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000330 .manufacture_id = AMD_ID,
331 .model_id = AMD_AM29LV002BT,
332 .total_size = 256,
333 .page_size = 64 * 1024, /* unused */
334 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
335 .tested = TEST_UNTESTED,
336 .probe = probe_jedec,
337 .probe_timing = TIMING_ZERO,
338 .block_erasers =
339 {
340 {
341 .eraseblocks = {
342 {64 * 1024, 3},
343 {32 * 1024, 1},
344 {8 * 1024, 2},
345 {16 * 1024, 1},
346 },
347 .block_erase = erase_sector_jedec,
348 }, {
349 .eraseblocks = { {256 * 1024, 1} },
350 .block_erase = erase_chip_block_jedec,
351 },
352 },
353 .write = write_jedec_1,
354 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000355 .voltage = {3000, 3600}, /* 3.0-3.6V for type -55, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000356 },
357
358 {
359 .vendor = "AMD",
360 .name = "Am29LV004BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000361 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000362 .manufacture_id = AMD_ID,
363 .model_id = AMD_AM29LV004BB,
364 .total_size = 512,
365 .page_size = 64 * 1024, /* unused */
366 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
367 .tested = TEST_UNTESTED,
368 .probe = probe_jedec,
369 .probe_timing = TIMING_ZERO,
370 .block_erasers =
371 {
372 {
373 .eraseblocks = {
374 {16 * 1024, 1},
375 {8 * 1024, 2},
376 {32 * 1024, 1},
377 {64 * 1024, 7},
378 },
379 .block_erase = erase_sector_jedec,
380 }, {
381 .eraseblocks = { {512 * 1024, 1} },
382 .block_erase = erase_chip_block_jedec,
383 },
384 },
385 .write = write_jedec_1,
386 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000387 .voltage = {2700, 3600},
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000388 },
389
390 {
391 .vendor = "AMD",
392 .name = "Am29LV004BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000393 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000394 .manufacture_id = AMD_ID,
395 .model_id = AMD_AM29LV004BT,
396 .total_size = 512,
397 .page_size = 64 * 1024, /* unused */
398 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
399 .tested = TEST_UNTESTED,
400 .probe = probe_jedec,
401 .probe_timing = TIMING_ZERO,
402 .block_erasers =
403 {
404 {
405 .eraseblocks = {
406 {64 * 1024, 7},
407 {32 * 1024, 1},
408 {8 * 1024, 2},
409 {16 * 1024, 1},
410 },
411 .block_erase = erase_sector_jedec,
412 }, {
413 .eraseblocks = { {512 * 1024, 1} },
414 .block_erase = erase_chip_block_jedec,
415 },
416 },
417 .write = write_jedec_1,
418 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000419 .voltage = {2700, 3600},
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000420 },
421
422 {
423 .vendor = "AMD",
424 .name = "Am29LV008BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000425 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000426 .manufacture_id = AMD_ID,
427 .model_id = AMD_AM29LV008BB,
428 .total_size = 1024,
429 .page_size = 64 * 1024, /* unused */
430 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Uwe Hermann09ebd522011-08-25 22:54:23 +0000431 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000432 .probe = probe_jedec,
433 .probe_timing = TIMING_ZERO,
434 .block_erasers =
435 {
436 {
437 .eraseblocks = {
438 {16 * 1024, 1},
439 {8 * 1024, 2},
440 {32 * 1024, 1},
441 {64 * 1024, 15},
442 },
443 .block_erase = erase_sector_jedec,
444 }, {
445 .eraseblocks = { {1024 * 1024, 1} },
446 .block_erase = erase_chip_block_jedec,
447 },
448 },
449 .write = write_jedec_1,
450 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000451 .voltage = {3000, 3600} /* 3.0-3.6V for type -70R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000452 },
453
454 {
455 .vendor = "AMD",
456 .name = "Am29LV008BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000457 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000458 .manufacture_id = AMD_ID,
459 .model_id = AMD_AM29LV008BT,
460 .total_size = 1024,
461 .page_size = 64 * 1024, /* unused */
462 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
463 .tested = TEST_UNTESTED,
464 .probe = probe_jedec,
465 .probe_timing = TIMING_ZERO,
466 .block_erasers =
467 {
468 {
469 .eraseblocks = {
470 {64 * 1024, 15},
471 {32 * 1024, 1},
472 {8 * 1024, 2},
473 {16 * 1024, 1},
474 },
475 .block_erase = erase_sector_jedec,
476 }, {
477 .eraseblocks = { {1024 * 1024, 1} },
478 .block_erase = erase_chip_block_jedec,
479 },
480 },
481 .write = write_jedec_1,
482 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000483 .voltage = {3000, 3600} /* 3.0-3.6V for type -70R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000484 },
485
486 {
487 .vendor = "AMD",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000488 .name = "Am29LV040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000489 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000490 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000491 .model_id = AMD_AM29LV040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000492 .total_size = 512,
493 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000494 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000495 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +0000496 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000497 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000498 .block_erasers =
499 {
500 {
501 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +0000502 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000503 }, {
504 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000505 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000506 },
507 },
Sean Nelson35727f72010-01-28 23:55:12 +0000508 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000509 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000510 .voltage = {3000, 3600}, /* 3.0-3.6V for type -60R, others 2.7-3.6V*/
FENG yu ningff692fb2008-12-08 18:15:10 +0000511 },
512
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000513 {
Peter Stuge8440cc02009-01-25 23:55:12 +0000514 .vendor = "AMD",
515 .name = "Am29LV081B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000516 .bustype = BUS_PARALLEL,
Mateusz Murawski5bae4382009-06-02 00:38:14 +0000517 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000518 .model_id = AMD_AM29LV080B,
Peter Stuge8440cc02009-01-25 23:55:12 +0000519 .total_size = 1024,
520 .page_size = 64 * 1024,
David Borg204f4652010-12-04 03:26:40 +0000521 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, /* datasheet specifies address as don't care */
Peter Stuge8440cc02009-01-25 23:55:12 +0000522 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +0000523 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000524 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000525 .block_erasers =
526 {
527 {
528 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson35727f72010-01-28 23:55:12 +0000529 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000530 }, {
531 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000532 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000533 },
534 },
Sean Nelson35727f72010-01-28 23:55:12 +0000535 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000536 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000537 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70R, others 2.7-3.6V */
Peter Stuge8440cc02009-01-25 23:55:12 +0000538 },
539
540 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000541 .vendor = "AMIC",
542 .name = "A25L05PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000543 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000544 .manufacture_id = AMIC_ID,
545 .model_id = AMIC_A25L05PT,
546 .total_size = 64,
547 .page_size = 256,
548 .tested = TEST_UNTESTED,
549 .probe = probe_spi_rdid4,
550 .probe_timing = TIMING_ZERO,
551 .block_erasers =
552 {
553 {
554 .eraseblocks = {
555 {32 * 1024, 1},
556 {16 * 1024, 1},
557 {8 * 1024, 1},
558 {4 * 1024, 2},
559 },
560 .block_erase = spi_block_erase_d8,
561 }, {
562 .eraseblocks = { {64 * 1024, 1} },
563 .block_erase = spi_block_erase_c7,
564 }
565 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +0000566 .printlock = spi_prettyprint_status_register_amic_a25l05p,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000567 .unlock = spi_disable_blockprotect,
568 .write = spi_chip_write_256,
569 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000570 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000571 },
572
573 {
574 .vendor = "AMIC",
575 .name = "A25L05PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000576 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000577 .manufacture_id = AMIC_ID,
578 .model_id = AMIC_A25L05PU,
579 .total_size = 64,
580 .page_size = 256,
581 .tested = TEST_UNTESTED,
582 .probe = probe_spi_rdid4,
583 .probe_timing = TIMING_ZERO,
584 .block_erasers =
585 {
586 {
587 .eraseblocks = {
588 {4 * 1024, 2},
589 {8 * 1024, 1},
590 {16 * 1024, 1},
591 {32 * 1024, 1},
592 },
593 .block_erase = spi_block_erase_d8,
594 }, {
595 .eraseblocks = { {64 * 1024, 1} },
596 .block_erase = spi_block_erase_c7,
597 }
598 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +0000599 .printlock = spi_prettyprint_status_register_amic_a25l05p,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000600 .unlock = spi_disable_blockprotect,
601 .write = spi_chip_write_256,
602 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000603 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000604 },
605
606 {
607 .vendor = "AMIC",
608 .name = "A25L10PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000609 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000610 .manufacture_id = AMIC_ID,
611 .model_id = AMIC_A25L10PT,
612 .total_size = 128,
613 .page_size = 256,
614 .tested = TEST_UNTESTED,
615 .probe = probe_spi_rdid4,
616 .probe_timing = TIMING_ZERO,
617 .block_erasers =
618 {
619 {
620 .eraseblocks = {
621 {64 * 1024, 1},
622 {32 * 1024, 1},
623 {16 * 1024, 1},
624 {8 * 1024, 1},
625 {4 * 1024, 2},
626 },
627 .block_erase = spi_block_erase_d8,
628 }, {
629 .eraseblocks = { {128 * 1024, 1} },
630 .block_erase = spi_block_erase_c7,
631 }
632 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +0000633 .printlock = spi_prettyprint_status_register_amic_a25l05p,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000634 .unlock = spi_disable_blockprotect,
635 .write = spi_chip_write_256,
636 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000637 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000638 },
639
640 {
641 .vendor = "AMIC",
642 .name = "A25L10PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000643 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000644 .manufacture_id = AMIC_ID,
645 .model_id = AMIC_A25L10PU,
646 .total_size = 128,
647 .page_size = 256,
648 .tested = TEST_UNTESTED,
649 .probe = probe_spi_rdid4,
650 .probe_timing = TIMING_ZERO,
651 .block_erasers =
652 {
653 {
654 .eraseblocks = {
655 {4 * 1024, 2},
656 {8 * 1024, 1},
657 {16 * 1024, 1},
658 {32 * 1024, 1},
659 {64 * 1024, 1},
660 },
661 .block_erase = spi_block_erase_d8,
662 }, {
663 .eraseblocks = { {128 * 1024, 1} },
664 .block_erase = spi_block_erase_c7,
665 }
666 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +0000667 .printlock = spi_prettyprint_status_register_amic_a25l05p,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000668 .unlock = spi_disable_blockprotect,
669 .write = spi_chip_write_256,
670 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000671 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000672 },
673
674 {
675 .vendor = "AMIC",
676 .name = "A25L20PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000677 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000678 .manufacture_id = AMIC_ID,
679 .model_id = AMIC_A25L20PT,
680 .total_size = 256,
681 .page_size = 256,
682 .tested = TEST_UNTESTED,
683 .probe = probe_spi_rdid4,
684 .probe_timing = TIMING_ZERO,
685 .block_erasers =
686 {
687 {
688 .eraseblocks = {
689 {64 * 1024, 3},
690 {32 * 1024, 1},
691 {16 * 1024, 1},
692 {8 * 1024, 1},
693 {4 * 1024, 2},
694 },
695 .block_erase = spi_block_erase_d8,
696 }, {
697 .eraseblocks = { {256 * 1024, 1} },
698 .block_erase = spi_block_erase_c7,
699 }
700 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +0000701 .printlock = spi_prettyprint_status_register_amic_a25l05p,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000702 .unlock = spi_disable_blockprotect,
703 .write = spi_chip_write_256,
704 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000705 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000706 },
707
708 {
709 .vendor = "AMIC",
710 .name = "A25L20PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000711 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000712 .manufacture_id = AMIC_ID,
713 .model_id = AMIC_A25L20PU,
714 .total_size = 256,
715 .page_size = 256,
716 .tested = TEST_UNTESTED,
717 .probe = probe_spi_rdid4,
718 .probe_timing = TIMING_ZERO,
719 .block_erasers =
720 {
721 {
722 .eraseblocks = {
723 {4 * 1024, 2},
724 {8 * 1024, 1},
725 {16 * 1024, 1},
726 {32 * 1024, 1},
727 {64 * 1024, 3},
728 },
729 .block_erase = spi_block_erase_d8,
730 }, {
731 .eraseblocks = { {256 * 1024, 1} },
732 .block_erase = spi_block_erase_c7,
733 }
734 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +0000735 .printlock = spi_prettyprint_status_register_amic_a25l05p,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000736 .unlock = spi_disable_blockprotect,
737 .write = spi_chip_write_256,
738 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000739 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000740 },
741
742 /* The A25L40P{T,U} chips are distinguished by their
743 * erase block layouts, but without any distinction in RDID.
744 * This inexplicable quirk was verified by Rudolf Marek
745 * and discussed on the flashrom mailing list on 2010-07-12.
746 */
747 {
748 .vendor = "AMIC",
749 .name = "A25L40PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000750 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000751 .manufacture_id = AMIC_ID,
752 .model_id = AMIC_A25L40PT,
753 .total_size = 512,
754 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000755 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000756 .probe = probe_spi_rdid4,
757 .probe_timing = TIMING_ZERO,
758 .block_erasers =
759 {
760 {
761 .eraseblocks = {
762 {64 * 1024, 7},
763 {32 * 1024, 1},
764 {16 * 1024, 1},
765 {8 * 1024, 1},
766 {4 * 1024, 2},
767 },
768 .block_erase = spi_block_erase_d8,
769 }, {
770 .eraseblocks = { {512 * 1024, 1} },
771 .block_erase = spi_block_erase_c7,
772 }
773 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +0000774 .printlock = spi_prettyprint_status_register_amic_a25l40p,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000775 .unlock = spi_disable_blockprotect,
776 .write = spi_chip_write_256,
777 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000778 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000779 },
780
781 {
782 .vendor = "AMIC",
783 .name = "A25L40PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000784 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000785 .manufacture_id = AMIC_ID,
786 .model_id = AMIC_A25L40PU,
787 .total_size = 512,
788 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000789 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000790 .probe = probe_spi_rdid4,
791 .probe_timing = TIMING_ZERO,
792 .block_erasers =
793 {
794 {
795 .eraseblocks = {
796 {4 * 1024, 2},
797 {8 * 1024, 1},
798 {16 * 1024, 1},
799 {32 * 1024, 1},
800 {64 * 1024, 7},
801 },
802 .block_erase = spi_block_erase_d8,
803 }, {
804 .eraseblocks = { {512 * 1024, 1} },
805 .block_erase = spi_block_erase_c7,
806 }
807 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +0000808 .printlock = spi_prettyprint_status_register_amic_a25l40p,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000809 .unlock = spi_disable_blockprotect,
810 .write = spi_chip_write_256,
811 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000812 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000813 },
814
815 {
816 .vendor = "AMIC",
817 .name = "A25L80P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000818 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000819 .manufacture_id = AMIC_ID,
820 .model_id = AMIC_A25L80P,
821 .total_size = 1024,
822 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000823 .tested = TEST_OK_PRE,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000824 .probe = probe_spi_rdid4,
825 .probe_timing = TIMING_ZERO,
826 .block_erasers =
827 {
828 {
829 .eraseblocks = {
830 {4 * 1024, 2},
831 {8 * 1024, 1},
832 {16 * 1024, 1},
833 {32 * 1024, 1},
834 {64 * 1024, 15},
835 },
836 .block_erase = spi_block_erase_d8,
837 }, {
838 .eraseblocks = { {1024 * 1024, 1} },
839 .block_erase = spi_block_erase_c7,
840 }
841 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +0000842 .printlock = spi_prettyprint_status_register_amic_a25l40p,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000843 .unlock = spi_disable_blockprotect,
844 .write = spi_chip_write_256,
845 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000846 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000847 },
848
849 {
850 .vendor = "AMIC",
851 .name = "A25L16PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000852 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000853 .manufacture_id = AMIC_ID,
854 .model_id = AMIC_A25L16PT,
855 .total_size = 2048,
856 .page_size = 256,
857 .tested = TEST_UNTESTED,
858 .probe = probe_spi_rdid4,
859 .probe_timing = TIMING_ZERO,
860 .block_erasers =
861 {
862 {
863 .eraseblocks = {
864 {64 * 1024, 31},
865 {32 * 1024, 1},
866 {16 * 1024, 1},
867 {8 * 1024, 1},
868 {4 * 1024, 2},
869 },
870 .block_erase = spi_block_erase_d8,
871 }, {
872 .eraseblocks = { {2048 * 1024, 1} },
873 .block_erase = spi_block_erase_60,
874 }, {
875 .eraseblocks = { {2048 * 1024, 1} },
876 .block_erase = spi_block_erase_c7,
877 }
878 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +0000879 .printlock = spi_prettyprint_status_register_amic_a25l40p,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000880 .unlock = spi_disable_blockprotect,
881 .write = spi_chip_write_256,
882 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000883 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000884 },
885
886 {
887 .vendor = "AMIC",
888 .name = "A25L16PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000889 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000890 .manufacture_id = AMIC_ID,
891 .model_id = AMIC_A25L16PU,
892 .total_size = 2048,
893 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000894 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000895 .probe = probe_spi_rdid4,
896 .probe_timing = TIMING_ZERO,
897 .block_erasers =
898 {
899 {
900 .eraseblocks = {
901 {4 * 1024, 2},
902 {8 * 1024, 1},
903 {16 * 1024, 1},
904 {32 * 1024, 1},
905 {64 * 1024, 31},
906 },
907 .block_erase = spi_block_erase_d8,
908 }, {
909 .eraseblocks = { {2048 * 1024, 1} },
910 .block_erase = spi_block_erase_60,
911 }, {
912 .eraseblocks = { {2048 * 1024, 1} },
913 .block_erase = spi_block_erase_c7,
914 }
915 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +0000916 .printlock = spi_prettyprint_status_register_amic_a25l40p,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000917 .unlock = spi_disable_blockprotect,
918 .write = spi_chip_write_256,
919 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000920 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000921 },
922
923 {
924 .vendor = "AMIC",
Dan Lenski11617122010-07-29 15:00:40 +0000925 .name = "A25L512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000926 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +0000927 .manufacture_id = AMIC_ID_NOPREFIX,
928 .model_id = AMIC_A25L512,
929 .total_size = 64,
930 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +0000931 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +0000932 .tested = TEST_UNTESTED,
933 .probe = probe_spi_rdid,
934 .probe_timing = TIMING_ZERO,
935 .block_erasers =
936 {
937 {
938 .eraseblocks = { { 4 * 1024, 16 } },
939 .block_erase = spi_block_erase_20,
940 }, {
941 .eraseblocks = { { 64 * 1024, 1 } },
942 .block_erase = spi_block_erase_d8,
943 }, {
944 .eraseblocks = { { 64 * 1024, 1 } },
945 .block_erase = spi_block_erase_c7,
946 }
947 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +0000948 .printlock = spi_prettyprint_status_register_amic_a25l40p,
Dan Lenski11617122010-07-29 15:00:40 +0000949 .unlock = spi_disable_blockprotect,
950 .write = spi_chip_write_256,
951 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000952 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +0000953 },
954
955 {
956 .vendor = "AMIC",
957 .name = "A25L010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000958 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +0000959 .manufacture_id = AMIC_ID_NOPREFIX,
960 .model_id = AMIC_A25L010,
961 .total_size = 128,
962 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +0000963 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +0000964 .tested = TEST_UNTESTED,
965 .probe = probe_spi_rdid,
966 .probe_timing = TIMING_ZERO,
967 .block_erasers =
968 {
969 {
970 .eraseblocks = { { 4 * 1024, 32 } },
971 .block_erase = spi_block_erase_20,
972 }, {
973 .eraseblocks = { { 64 * 1024, 2 } },
974 .block_erase = spi_block_erase_d8,
975 }, {
976 .eraseblocks = { { 128 * 1024, 1 } },
977 .block_erase = spi_block_erase_c7,
978 }
979 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +0000980 .printlock = spi_prettyprint_status_register_amic_a25l40p,
Dan Lenski11617122010-07-29 15:00:40 +0000981 .unlock = spi_disable_blockprotect,
982 .write = spi_chip_write_256,
983 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000984 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +0000985 },
986
987 {
988 .vendor = "AMIC",
989 .name = "A25L020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000990 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +0000991 .manufacture_id = AMIC_ID_NOPREFIX,
992 .model_id = AMIC_A25L020,
993 .total_size = 256,
994 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +0000995 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +0000996 .tested = TEST_UNTESTED,
997 .probe = probe_spi_rdid,
998 .probe_timing = TIMING_ZERO,
999 .block_erasers =
1000 {
1001 {
1002 .eraseblocks = { { 4 * 1024, 64 } },
1003 .block_erase = spi_block_erase_20,
1004 }, {
1005 .eraseblocks = { { 64 * 1024, 4 } },
1006 .block_erase = spi_block_erase_d8,
1007 }, {
1008 .eraseblocks = { { 256 * 1024, 1 } },
1009 .block_erase = spi_block_erase_c7,
1010 }
1011 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001012 .printlock = spi_prettyprint_status_register_amic_a25l40p,
Dan Lenski11617122010-07-29 15:00:40 +00001013 .unlock = spi_disable_blockprotect,
1014 .write = spi_chip_write_256,
1015 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001016 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001017 },
1018
1019 {
1020 .vendor = "AMIC",
1021 .name = "A25L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001022 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001023 .manufacture_id = AMIC_ID_NOPREFIX,
1024 .model_id = AMIC_A25L040,
1025 .total_size = 512,
1026 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001027 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001028 .tested = TEST_UNTESTED,
1029 .probe = probe_spi_rdid,
1030 .probe_timing = TIMING_ZERO,
1031 .block_erasers =
1032 {
1033 {
1034 .eraseblocks = { { 4 * 1024, 128 } },
1035 .block_erase = spi_block_erase_20,
1036 }, {
1037 .eraseblocks = { { 64 * 1024, 8 } },
1038 .block_erase = spi_block_erase_d8,
1039 }, {
1040 .eraseblocks = { { 512 * 1024, 1 } },
1041 .block_erase = spi_block_erase_c7,
1042 }
1043 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001044 .printlock = spi_prettyprint_status_register_amic_a25l40p,
Dan Lenski11617122010-07-29 15:00:40 +00001045 .unlock = spi_disable_blockprotect,
1046 .write = spi_chip_write_256,
1047 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001048 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001049 },
1050
1051 {
1052 .vendor = "AMIC",
1053 .name = "A25L080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001054 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001055 .manufacture_id = AMIC_ID_NOPREFIX,
1056 .model_id = AMIC_A25L080,
1057 .total_size = 1024,
1058 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001059 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001060 .tested = TEST_UNTESTED,
1061 .probe = probe_spi_rdid,
1062 .probe_timing = TIMING_ZERO,
1063 .block_erasers =
1064 {
1065 {
1066 .eraseblocks = { { 4 * 1024, 256 } },
1067 .block_erase = spi_block_erase_20,
1068 }, {
1069 .eraseblocks = { { 64 * 1024, 16 } },
1070 .block_erase = spi_block_erase_d8,
1071 }, {
1072 .eraseblocks = { { 1024 * 1024, 1 } },
1073 .block_erase = spi_block_erase_c7,
1074 }
1075 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001076 .printlock = spi_prettyprint_status_register_amic_a25l40p,
Dan Lenski11617122010-07-29 15:00:40 +00001077 .unlock = spi_disable_blockprotect,
1078 .write = spi_chip_write_256,
1079 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001080 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001081 },
1082
1083 {
1084 .vendor = "AMIC",
1085 .name = "A25L016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001086 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001087 .manufacture_id = AMIC_ID_NOPREFIX,
1088 .model_id = AMIC_A25L016,
1089 .total_size = 2048,
1090 .page_size = 256,
David Hendricks6c51cfd2010-09-03 03:32:22 +00001091 .feature_bits = FEATURE_WRSR_WREN,
Dan Lenski11617122010-07-29 15:00:40 +00001092 .tested = TEST_UNTESTED,
1093 .probe = probe_spi_rdid,
1094 .probe_timing = TIMING_ZERO,
1095 .block_erasers =
1096 {
1097 {
1098 .eraseblocks = { { 4 * 1024, 512 } },
1099 .block_erase = spi_block_erase_20,
1100 }, {
1101 .eraseblocks = { { 64 * 1024, 32 } },
1102 .block_erase = spi_block_erase_d8,
1103 }, {
1104 .eraseblocks = { { 2048 * 1024, 1 } },
1105 .block_erase = spi_block_erase_c7,
1106 }
1107 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001108 .printlock = spi_prettyprint_status_register_amic_a25l40p,
Dan Lenski11617122010-07-29 15:00:40 +00001109 .unlock = spi_disable_blockprotect,
1110 .write = spi_chip_write_256,
1111 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001112 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001113 },
1114
1115 {
1116 .vendor = "AMIC",
1117 .name = "A25L032",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001118 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001119 .manufacture_id = AMIC_ID_NOPREFIX,
1120 .model_id = AMIC_A25L032,
1121 .total_size = 4096,
1122 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001123 /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */
1124 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Dan Lenski11617122010-07-29 15:00:40 +00001125 .tested = TEST_UNTESTED,
1126 .probe = probe_spi_rdid,
1127 .probe_timing = TIMING_ZERO,
1128 .block_erasers =
1129 {
1130 {
1131 .eraseblocks = { { 4 * 1024, 1024 } },
1132 .block_erase = spi_block_erase_20,
1133 }, {
1134 .eraseblocks = { { 64 * 1024, 64 } },
1135 .block_erase = spi_block_erase_52,
1136 }, {
1137 .eraseblocks = { { 64 * 1024, 64 } },
1138 .block_erase = spi_block_erase_d8,
1139 }, {
1140 .eraseblocks = { { 4096 * 1024, 1 } },
1141 .block_erase = spi_block_erase_60,
1142 }, {
1143 .eraseblocks = { { 4096 * 1024, 1 } },
1144 .block_erase = spi_block_erase_c7,
1145 }
1146 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001147 .printlock = spi_prettyprint_status_register_amic_a25l032,
Dan Lenski11617122010-07-29 15:00:40 +00001148 .unlock = NULL, /* Two status reg bytes (read with 0x35 and 0x05) */
1149 .write = spi_chip_write_256,
1150 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001151 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001152 },
1153
1154 {
1155 .vendor = "AMIC",
1156 .name = "A25LQ032",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001157 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001158 .manufacture_id = AMIC_ID_NOPREFIX,
1159 .model_id = AMIC_A25LQ032,
1160 .total_size = 4096,
1161 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001162 /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */
1163 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Dan Lenski11617122010-07-29 15:00:40 +00001164 .tested = TEST_UNTESTED,
1165 .probe = probe_spi_rdid,
1166 .probe_timing = TIMING_ZERO,
1167 .block_erasers =
1168 {
1169 {
1170 .eraseblocks = { { 4 * 1024, 1024 } },
1171 .block_erase = spi_block_erase_20,
1172 }, {
1173 .eraseblocks = { { 64 * 1024, 64 } },
1174 .block_erase = spi_block_erase_52,
1175 }, {
1176 .eraseblocks = { { 64 * 1024, 64 } },
1177 .block_erase = spi_block_erase_d8,
1178 }, {
1179 .eraseblocks = { { 4096 * 1024, 1 } },
1180 .block_erase = spi_block_erase_60,
1181 }, {
1182 .eraseblocks = { { 4096 * 1024, 1 } },
1183 .block_erase = spi_block_erase_c7,
1184 }
1185 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001186 .printlock = spi_prettyprint_status_register_amic_a25lq032,
Dan Lenski11617122010-07-29 15:00:40 +00001187 .unlock = NULL, /* Two status reg bytes (read with 0x35 and 0x05) */
1188 .write = spi_chip_write_256,
1189 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001190 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001191 },
1192
1193 {
1194 .vendor = "AMIC",
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001195 .name = "A29002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001196 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001197 .manufacture_id = AMIC_ID_NOPREFIX,
1198 .model_id = AMIC_A29002B,
1199 .total_size = 256,
1200 .page_size = 64 * 1024,
1201 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
1202 .tested = TEST_UNTESTED,
1203 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001204 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001205 .block_erasers =
1206 {
1207 {
1208 .eraseblocks = {
1209 {16 * 1024, 1},
1210 {8 * 1024, 2},
1211 {32 * 1024, 1},
1212 {64 * 1024, 3},
1213 },
1214 .block_erase = erase_sector_jedec,
1215 }, {
1216 .eraseblocks = { {256 * 1024, 1} },
1217 .block_erase = erase_chip_block_jedec,
1218 },
1219 },
1220 .write = write_jedec_1,
1221 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001222 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001223 },
1224
1225 {
1226 .vendor = "AMIC",
1227 .name = "A29002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001228 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001229 .manufacture_id = AMIC_ID_NOPREFIX,
1230 .model_id = AMIC_A29002T,
1231 .total_size = 256,
1232 .page_size = 64 * 1024,
1233 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00001234 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001235 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001236 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001237 .block_erasers =
1238 {
1239 {
1240 .eraseblocks = {
1241 {64 * 1024, 3},
1242 {32 * 1024, 1},
1243 {8 * 1024, 2},
1244 {16 * 1024, 1},
1245 },
1246 .block_erase = erase_sector_jedec,
1247 }, {
1248 .eraseblocks = { {256 * 1024, 1} },
1249 .block_erase = erase_chip_block_jedec,
1250 },
1251 },
1252 .write = write_jedec_1,
1253 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001254 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001255 },
1256
1257 {
1258 .vendor = "AMIC",
1259 .name = "A29040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001260 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001261 .manufacture_id = AMIC_ID_NOPREFIX,
1262 .model_id = AMIC_A29040B,
1263 .total_size = 512,
1264 .page_size = 64 * 1024,
1265 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
1266 .tested = TEST_UNTESTED,
1267 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001268 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001269 .block_erasers =
1270 {
1271 {
1272 .eraseblocks = { {64 * 1024, 8} },
1273 .block_erase = erase_sector_jedec,
1274 }, {
1275 .eraseblocks = { {512 * 1024, 1} },
1276 .block_erase = erase_chip_block_jedec,
1277 },
1278 },
1279 .write = write_jedec_1,
1280 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001281 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001282 },
1283
1284 {
1285 .vendor = "AMIC",
1286 .name = "A49LF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001287 .bustype = BUS_LPC,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001288 .manufacture_id = AMIC_ID_NOPREFIX,
1289 .model_id = AMIC_A49LF040A,
1290 .total_size = 512,
1291 .page_size = 64 * 1024,
1292 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +00001293 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001294 .probe = probe_jedec,
1295 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
1296 .block_erasers =
1297 {
1298 {
1299 .eraseblocks = { {64 * 1024, 8} },
1300 .block_erase = erase_block_jedec,
1301 }, {
1302 .eraseblocks = { {512 * 1024, 1} },
1303 .block_erase = erase_chip_block_jedec,
1304 }
1305 },
1306 .unlock = unlock_49fl00x,
1307 .write = write_jedec_1,
1308 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001309 .voltage = {3000, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001310 },
1311
1312 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001313 .vendor = "Atmel",
1314 .name = "AT25DF021",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001315 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001316 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001317 .model_id = ATMEL_AT25DF021,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001318 .total_size = 256,
1319 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001320 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1321 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001322 .tested = TEST_UNTESTED,
1323 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001324 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001325 .block_erasers =
1326 {
1327 {
1328 .eraseblocks = { {4 * 1024, 64} },
1329 .block_erase = spi_block_erase_20,
1330 }, {
1331 .eraseblocks = { {32 * 1024, 8} },
1332 .block_erase = spi_block_erase_52,
1333 }, {
1334 .eraseblocks = { {64 * 1024, 4} },
1335 .block_erase = spi_block_erase_d8,
1336 }, {
1337 .eraseblocks = { {256 * 1024, 1} },
1338 .block_erase = spi_block_erase_60,
1339 }, {
1340 .eraseblocks = { {256 * 1024, 1} },
1341 .block_erase = spi_block_erase_c7,
1342 }
1343 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001344 .printlock = spi_prettyprint_status_register_at25df,
1345 .unlock = spi_disable_blockprotect_at25df,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001346 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001347 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001348 .voltage = {2700, 3600}, /* 2.3-3.6V & 2.7-3.6V models available */
FENG yu ningff692fb2008-12-08 18:15:10 +00001349 },
1350
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001351 {
1352 .vendor = "Atmel",
1353 .name = "AT25DF041A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001354 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001355 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001356 .model_id = ATMEL_AT25DF041A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001357 .total_size = 512,
1358 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001359 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001360 .tested = TEST_UNTESTED,
1361 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001362 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001363 .block_erasers =
1364 {
1365 {
1366 .eraseblocks = { {4 * 1024, 128} },
1367 .block_erase = spi_block_erase_20,
1368 }, {
1369 .eraseblocks = { {32 * 1024, 16} },
1370 .block_erase = spi_block_erase_52,
1371 }, {
1372 .eraseblocks = { {64 * 1024, 8} },
1373 .block_erase = spi_block_erase_d8,
1374 }, {
1375 .eraseblocks = { {512 * 1024, 1} },
1376 .block_erase = spi_block_erase_60,
1377 }, {
1378 .eraseblocks = { {512 * 1024, 1} },
1379 .block_erase = spi_block_erase_c7,
1380 }
1381 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001382 .printlock = spi_prettyprint_status_register_at25df,
1383 .unlock = spi_disable_blockprotect_at25df,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001384 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001385 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001386 .voltage = {2700, 3600}, /* 2.3-3.6V & 2.7-3.6V models available */
FENG yu ningff692fb2008-12-08 18:15:10 +00001387 },
1388
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001389 {
1390 .vendor = "Atmel",
1391 .name = "AT25DF081",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001392 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001393 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001394 .model_id = ATMEL_AT25DF081,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001395 .total_size = 1024,
1396 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001397 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001398 .tested = TEST_UNTESTED,
1399 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001400 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001401 .block_erasers =
1402 {
1403 {
1404 .eraseblocks = { {4 * 1024, 256} },
1405 .block_erase = spi_block_erase_20,
1406 }, {
1407 .eraseblocks = { {32 * 1024, 32} },
1408 .block_erase = spi_block_erase_52,
1409 }, {
1410 .eraseblocks = { {64 * 1024, 16} },
1411 .block_erase = spi_block_erase_d8,
1412 }, {
1413 .eraseblocks = { {1024 * 1024, 1} },
1414 .block_erase = spi_block_erase_60,
1415 }, {
1416 .eraseblocks = { {1024 * 1024, 1} },
1417 .block_erase = spi_block_erase_c7,
1418 }
1419 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001420 .printlock = spi_prettyprint_status_register_at25df,
1421 .unlock = spi_disable_blockprotect_at25df,
1422 .write = spi_chip_write_256,
1423 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001424 .voltage = {1600, 2000}, /* Datasheet says range is 1.65-1.95 V */
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001425 },
1426
1427 {
1428 .vendor = "Atmel",
1429 .name = "AT25DF081A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001430 .bustype = BUS_SPI,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001431 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001432 .model_id = ATMEL_AT25DF081A,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001433 .total_size = 1024,
1434 .page_size = 256,
1435 .feature_bits = FEATURE_WRSR_WREN,
1436 .tested = TEST_UNTESTED,
1437 .probe = probe_spi_rdid,
1438 .probe_timing = TIMING_ZERO,
1439 .block_erasers =
1440 {
1441 {
1442 .eraseblocks = { {4 * 1024, 256} },
1443 .block_erase = spi_block_erase_20,
1444 }, {
1445 .eraseblocks = { {32 * 1024, 32} },
1446 .block_erase = spi_block_erase_52,
1447 }, {
1448 .eraseblocks = { {64 * 1024, 16} },
1449 .block_erase = spi_block_erase_d8,
1450 }, {
1451 .eraseblocks = { {1024 * 1024, 1} },
1452 .block_erase = spi_block_erase_60,
1453 }, {
1454 .eraseblocks = { {1024 * 1024, 1} },
1455 .block_erase = spi_block_erase_c7,
1456 }
1457 },
1458 .printlock = spi_prettyprint_status_register_at25df_sec,
1459 .unlock = spi_disable_blockprotect_at25df_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001460 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001461 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001462 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001463 },
1464
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001465 {
1466 .vendor = "Atmel",
1467 .name = "AT25DF161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001468 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001469 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001470 .model_id = ATMEL_AT25DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001471 .total_size = 2048,
1472 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001473 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001474 .tested = TEST_UNTESTED,
1475 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001476 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001477 .block_erasers =
1478 {
1479 {
1480 .eraseblocks = { {4 * 1024, 512} },
1481 .block_erase = spi_block_erase_20,
1482 }, {
1483 .eraseblocks = { {32 * 1024, 64} },
1484 .block_erase = spi_block_erase_52,
1485 }, {
1486 .eraseblocks = { {64 * 1024, 32} },
1487 .block_erase = spi_block_erase_d8,
1488 }, {
1489 .eraseblocks = { {2 * 1024 * 1024, 1} },
1490 .block_erase = spi_block_erase_60,
1491 }, {
1492 .eraseblocks = { {2 * 1024 * 1024, 1} },
1493 .block_erase = spi_block_erase_c7,
1494 }
1495 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001496 .printlock = spi_prettyprint_status_register_at25df_sec,
1497 .unlock = spi_disable_blockprotect_at25df_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001498 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001499 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001500 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001501 },
1502
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001503 {
1504 .vendor = "Atmel",
1505 .name = "AT25DF321",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001506 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001507 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001508 .model_id = ATMEL_AT25DF321,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001509 .total_size = 4096,
1510 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001511 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd06d9412011-06-12 19:47:55 +00001512 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001513 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001514 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001515 .block_erasers =
1516 {
1517 {
1518 .eraseblocks = { {4 * 1024, 1024} },
1519 .block_erase = spi_block_erase_20,
1520 }, {
1521 .eraseblocks = { {32 * 1024, 128} },
1522 .block_erase = spi_block_erase_52,
1523 }, {
1524 .eraseblocks = { {64 * 1024, 64} },
1525 .block_erase = spi_block_erase_d8,
1526 }, {
1527 .eraseblocks = { {4 * 1024 * 1024, 1} },
1528 .block_erase = spi_block_erase_60,
1529 }, {
1530 .eraseblocks = { {4 * 1024 * 1024, 1} },
1531 .block_erase = spi_block_erase_c7,
1532 }
1533 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001534 .printlock = spi_prettyprint_status_register_at25df,
1535 .unlock = spi_disable_blockprotect_at25df,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001536 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001537 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001538 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001539 },
1540
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001541 {
1542 .vendor = "Atmel",
1543 .name = "AT25DF321A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001544 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001545 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001546 .model_id = ATMEL_AT25DF321A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001547 .total_size = 4096,
1548 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001549 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1550 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00001551 .tested = TEST_OK_PROBE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001552 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001553 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001554 .block_erasers =
1555 {
1556 {
1557 .eraseblocks = { {4 * 1024, 1024} },
1558 .block_erase = spi_block_erase_20,
1559 }, {
1560 .eraseblocks = { {32 * 1024, 128} },
1561 .block_erase = spi_block_erase_52,
1562 }, {
1563 .eraseblocks = { {64 * 1024, 64} },
1564 .block_erase = spi_block_erase_d8,
1565 }, {
1566 .eraseblocks = { {4 * 1024 * 1024, 1} },
1567 .block_erase = spi_block_erase_60,
1568 }, {
1569 .eraseblocks = { {4 * 1024 * 1024, 1} },
1570 .block_erase = spi_block_erase_c7,
1571 }
1572 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001573 .printlock = spi_prettyprint_status_register_at25df_sec,
1574 .unlock = spi_disable_blockprotect_at25df_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001575 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001576 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001577 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001578 },
1579
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001580 {
1581 .vendor = "Atmel",
Paul Menzelac427b22012-02-16 21:07:07 +00001582 .name = "AT25DF641(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001583 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001584 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001585 .model_id = ATMEL_AT25DF641,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001586 .total_size = 8192,
1587 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001588 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001589 .tested = TEST_UNTESTED,
1590 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001591 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001592 .block_erasers =
1593 {
1594 {
1595 .eraseblocks = { {4 * 1024, 2048} },
1596 .block_erase = spi_block_erase_20,
1597 }, {
1598 .eraseblocks = { {32 * 1024, 256} },
1599 .block_erase = spi_block_erase_52,
1600 }, {
1601 .eraseblocks = { {64 * 1024, 128} },
1602 .block_erase = spi_block_erase_d8,
1603 }, {
1604 .eraseblocks = { {8 * 1024 * 1024, 1} },
1605 .block_erase = spi_block_erase_60,
1606 }, {
1607 .eraseblocks = { {8 * 1024 * 1024, 1} },
1608 .block_erase = spi_block_erase_c7,
1609 }
1610 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001611 .printlock = spi_prettyprint_status_register_at25df_sec,
1612 .unlock = spi_disable_blockprotect_at25df_sec,
1613 .write = spi_chip_write_256,
1614 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001615 .voltage = {2700, 3600},
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001616 },
1617
1618 {
1619 .vendor = "Atmel",
1620 .name = "AT25DQ161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001621 .bustype = BUS_SPI,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001622 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001623 .model_id = ATMEL_AT25DQ161,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001624 .total_size = 2048,
1625 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001626 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1627 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001628 .tested = TEST_UNTESTED,
1629 .probe = probe_spi_rdid,
1630 .probe_timing = TIMING_ZERO,
1631 .block_erasers =
1632 {
1633 {
1634 .eraseblocks = { {4 * 1024, 512} },
1635 .block_erase = spi_block_erase_20,
1636 }, {
1637 .eraseblocks = { {32 * 1024, 64} },
1638 .block_erase = spi_block_erase_52,
1639 }, {
1640 .eraseblocks = { {64 * 1024, 32} },
1641 .block_erase = spi_block_erase_d8,
1642 }, {
1643 .eraseblocks = { {2 * 1024 * 1024, 1} },
1644 .block_erase = spi_block_erase_60,
1645 }, {
1646 .eraseblocks = { {2 * 1024 * 1024, 1} },
1647 .block_erase = spi_block_erase_c7,
1648 }
1649 },
1650 .printlock = spi_prettyprint_status_register_at25df_sec,
1651 .unlock = spi_disable_blockprotect_at25df_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001652 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001653 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001654 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001655 },
1656
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001657 {
1658 .vendor = "Atmel",
1659 .name = "AT25F512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001660 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001661 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001662 .model_id = ATMEL_AT25F512B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001663 .total_size = 64,
1664 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001665 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1666 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001667 .tested = TEST_UNTESTED,
1668 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001669 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001670 .block_erasers =
1671 {
1672 {
1673 .eraseblocks = { {4 * 1024, 16} },
1674 .block_erase = spi_block_erase_20,
1675 }, {
1676 .eraseblocks = { {32 * 1024, 2} },
1677 .block_erase = spi_block_erase_52,
1678 }, {
1679 .eraseblocks = { {32 * 1024, 2} },
1680 .block_erase = spi_block_erase_d8,
1681 }, {
1682 .eraseblocks = { {64 * 1024, 1} },
1683 .block_erase = spi_block_erase_60,
1684 }, {
1685 .eraseblocks = { {64 * 1024, 1} },
1686 .block_erase = spi_block_erase_c7,
1687 }
1688 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001689 .printlock = spi_prettyprint_status_register_at25f,
1690 .unlock = spi_disable_blockprotect_at25f,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001691 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001692 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001693 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001694 },
1695
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001696 {
1697 .vendor = "Atmel",
1698 .name = "AT25FS010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001699 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001700 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001701 .model_id = ATMEL_AT25FS010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001702 .total_size = 128,
1703 .page_size = 256,
1704 .tested = TEST_UNTESTED,
1705 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001706 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001707 .block_erasers =
1708 {
1709 {
1710 .eraseblocks = { {4 * 1024, 32} },
1711 .block_erase = spi_block_erase_20,
1712 }, {
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001713 .eraseblocks = { {4 * 1024, 32} },
1714 .block_erase = spi_block_erase_d7,
1715 }, {
Sean Nelson89187292009-12-23 12:02:55 +00001716 .eraseblocks = { {32 * 1024, 4} },
1717 .block_erase = spi_block_erase_52,
1718 }, {
1719 .eraseblocks = { {32 * 1024, 4} },
1720 .block_erase = spi_block_erase_d8,
1721 }, {
1722 .eraseblocks = { {128 * 1024, 1} },
1723 .block_erase = spi_block_erase_60,
1724 }, {
1725 .eraseblocks = { {128 * 1024, 1} },
1726 .block_erase = spi_block_erase_c7,
1727 }
1728 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001729 .printlock = spi_prettyprint_status_register_at25fs010,
1730 .unlock = spi_disable_blockprotect_at25fs010,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001731 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001732 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001733 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001734 },
1735
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001736 {
1737 .vendor = "Atmel",
1738 .name = "AT25FS040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001739 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001740 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001741 .model_id = ATMEL_AT25FS040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001742 .total_size = 512,
1743 .page_size = 256,
1744 .tested = TEST_UNTESTED,
1745 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001746 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001747 .block_erasers =
1748 {
1749 {
1750 .eraseblocks = { {4 * 1024, 128} },
1751 .block_erase = spi_block_erase_20,
1752 }, {
1753 .eraseblocks = { {64 * 1024, 8} },
1754 .block_erase = spi_block_erase_52,
1755 }, {
1756 .eraseblocks = { {64 * 1024, 8} },
1757 .block_erase = spi_block_erase_d8,
1758 }, {
1759 .eraseblocks = { {512 * 1024, 1} },
1760 .block_erase = spi_block_erase_60,
1761 }, {
1762 .eraseblocks = { {512 * 1024, 1} },
1763 .block_erase = spi_block_erase_c7,
1764 }
1765 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001766 .printlock = spi_prettyprint_status_register_at25fs040,
1767 .unlock = spi_disable_blockprotect_at25fs040,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001768 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001769 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001770 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001771 },
1772
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001773 {
1774 .vendor = "Atmel",
1775 .name = "AT26DF041",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001776 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001777 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001778 .model_id = ATMEL_AT26DF041,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001779 .total_size = 512,
1780 .page_size = 256,
1781 .tested = TEST_UNTESTED,
1782 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001783 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001784 .block_erasers =
1785 {
1786 {
1787 .eraseblocks = { {4 * 1024, 128} },
1788 .block_erase = spi_block_erase_20,
1789 }
1790 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001791 .write = NULL /* Incompatible Page write */,
1792 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001793 .voltage = {2700, 3600}, /* 3.0-3.6V for higher speed, 2.7-3.6V normal */
FENG yu ningff692fb2008-12-08 18:15:10 +00001794 },
1795
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001796 {
1797 .vendor = "Atmel",
1798 .name = "AT26DF081A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001799 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001800 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001801 .model_id = ATMEL_AT26DF081A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001802 .total_size = 1024,
1803 .page_size = 256,
Mathias Krause2c3afa32011-01-17 07:45:54 +00001804 .feature_bits = FEATURE_WRSR_WREN,
1805 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001806 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001807 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001808 .block_erasers =
1809 {
1810 {
1811 .eraseblocks = { {4 * 1024, 256} },
1812 .block_erase = spi_block_erase_20,
1813 }, {
1814 .eraseblocks = { {32 * 1024, 32} },
1815 .block_erase = spi_block_erase_52,
1816 }, {
1817 .eraseblocks = { {64 * 1024, 16} },
1818 .block_erase = spi_block_erase_d8,
1819 }, {
1820 .eraseblocks = { {1024 * 1024, 1} },
1821 .block_erase = spi_block_erase_60,
1822 }, {
1823 .eraseblocks = { {1024 * 1024, 1} },
1824 .block_erase = spi_block_erase_c7,
1825 }
1826 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001827 .printlock = spi_prettyprint_status_register_atmel_at26df081a,
Mathias Krause2c3afa32011-01-17 07:45:54 +00001828 .unlock = spi_disable_blockprotect_at25df,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001829 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001830 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001831 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001832 },
1833
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001834 {
1835 .vendor = "Atmel",
1836 .name = "AT26DF161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001837 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001838 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001839 .model_id = ATMEL_AT26DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001840 .total_size = 2048,
1841 .page_size = 256,
1842 .tested = TEST_UNTESTED,
1843 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001844 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001845 .block_erasers =
1846 {
1847 {
1848 .eraseblocks = { {4 * 1024, 512} },
1849 .block_erase = spi_block_erase_20,
1850 }, {
1851 .eraseblocks = { {32 * 1024, 64} },
1852 .block_erase = spi_block_erase_52,
1853 }, {
1854 .eraseblocks = { {64 * 1024, 32} },
1855 .block_erase = spi_block_erase_d8,
1856 }, {
1857 .eraseblocks = { {2 * 1024 * 1024, 1} },
1858 .block_erase = spi_block_erase_60,
1859 }, {
1860 .eraseblocks = { {2 * 1024 * 1024, 1} },
1861 .block_erase = spi_block_erase_c7,
1862 }
1863 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001864 .printlock = spi_prettyprint_status_register_at25df,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00001865 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001866 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001867 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001868 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001869 },
1870
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001871 {
1872 .vendor = "Atmel",
1873 .name = "AT26DF161A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001874 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001875 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001876 .model_id = ATMEL_AT26DF161A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001877 .total_size = 2048,
1878 .page_size = 256,
1879 .tested = TEST_UNTESTED,
1880 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001881 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001882 .block_erasers =
1883 {
1884 {
1885 .eraseblocks = { {4 * 1024, 512} },
1886 .block_erase = spi_block_erase_20,
1887 }, {
1888 .eraseblocks = { {32 * 1024, 64} },
1889 .block_erase = spi_block_erase_52,
1890 }, {
1891 .eraseblocks = { {64 * 1024, 32} },
1892 .block_erase = spi_block_erase_d8,
1893 }, {
1894 .eraseblocks = { {2 * 1024 * 1024, 1} },
1895 .block_erase = spi_block_erase_60,
1896 }, {
1897 .eraseblocks = { {2 * 1024 * 1024, 1} },
1898 .block_erase = spi_block_erase_c7,
1899 }
1900 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001901 .printlock = spi_prettyprint_status_register_atmel_at26df081a,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00001902 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001903 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001904 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001905 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001906 },
1907
1908 /*The AT26DF321 has the same ID as the AT25DF321. */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001909 /*{
1910 .vendor = "Atmel",
1911 .name = "AT26DF321",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001912 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001913 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001914 .model_id = ATMEL_AT26DF321,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001915 .total_size = 4096,
1916 .page_size = 256,
1917 .tested = TEST_UNTESTED,
1918 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001919 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00001920 .printlock = spi_prettyprint_status_register_atmel_at26df081a,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00001921 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001922 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001923 .read = spi_chip_read,
1924 },*/
FENG yu ningff692fb2008-12-08 18:15:10 +00001925
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001926 {
1927 .vendor = "Atmel",
1928 .name = "AT26F004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001929 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001930 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001931 .model_id = ATMEL_AT26F004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001932 .total_size = 512,
1933 .page_size = 256,
1934 .tested = TEST_UNTESTED,
1935 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001936 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001937 .block_erasers =
1938 {
1939 {
1940 .eraseblocks = { {4 * 1024, 128} },
1941 .block_erase = spi_block_erase_20,
1942 }, {
1943 .eraseblocks = { {32 * 1024, 16} },
1944 .block_erase = spi_block_erase_52,
1945 }, {
1946 .eraseblocks = { {64 * 1024, 8} },
1947 .block_erase = spi_block_erase_d8,
1948 }, {
1949 .eraseblocks = { {512 * 1024, 1} },
1950 .block_erase = spi_block_erase_60,
1951 }, {
1952 .eraseblocks = { {512 * 1024, 1} },
1953 .block_erase = spi_block_erase_c7,
1954 }
1955 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001956 .write = NULL /* Incompatible Page write */,
1957 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001958 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001959 },
1960
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001961 {
1962 .vendor = "Atmel",
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00001963 .name = "AT29C512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001964 .bustype = BUS_PARALLEL,
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00001965 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001966 .model_id = ATMEL_AT29C512,
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00001967 .total_size = 64,
1968 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00001969 .feature_bits = FEATURE_LONG_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +00001970 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00001971 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00001972 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00001973 .block_erasers =
1974 {
1975 {
1976 .eraseblocks = { {64 * 1024, 1} },
1977 .block_erase = erase_chip_block_jedec,
1978 }
1979 },
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00001980 .write = write_jedec,
1981 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001982 .voltage = {4500, 5500},
Maciej Pijankabc2bbd22009-06-02 16:45:59 +00001983 },
1984
1985 {
1986 .vendor = "Atmel",
Uwe Hermann8403ccb2009-05-16 21:39:19 +00001987 .name = "AT29C010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001988 .bustype = BUS_PARALLEL,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00001989 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001990 .model_id = ATMEL_AT29C010A,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00001991 .total_size = 128,
1992 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00001993 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00001994 .tested = TEST_OK_PRE,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00001995 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00001996 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00001997 .block_erasers =
1998 {
1999 {
2000 .eraseblocks = { {128 * 1024, 1} },
2001 .block_erase = erase_chip_block_jedec,
2002 }
2003 },
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002004 .write = write_jedec, /* FIXME */
2005 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002006 .voltage = {4500, 5500},
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002007 },
2008
2009 {
2010 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002011 .name = "AT29C020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002012 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002013 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002014 .model_id = ATMEL_AT29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002015 .total_size = 256,
2016 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002017 .feature_bits = FEATURE_LONG_RESET,
2018 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002019 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00002020 .probe_timing = 10000, /* 10ms */
Sean Nelson89187292009-12-23 12:02:55 +00002021 .block_erasers =
2022 {
2023 {
2024 .eraseblocks = { {256 * 1024, 1} },
2025 .block_erase = erase_chip_block_jedec,
2026 }
2027 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002028 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002029 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002030 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002031 },
2032
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002033 {
2034 .vendor = "Atmel",
2035 .name = "AT29C040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002036 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002037 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002038 .model_id = ATMEL_AT29C040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002039 .total_size = 512,
2040 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002041 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002042 .tested = TEST_UNTESTED,
2043 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00002044 .probe_timing = 10000, /* 10 ms */
Sean Nelson89187292009-12-23 12:02:55 +00002045 .block_erasers =
2046 {
2047 {
2048 .eraseblocks = { {512 * 1024, 1} },
2049 .block_erase = erase_chip_block_jedec,
2050 }
2051 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002052 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002053 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002054 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002055 },
2056
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002057 {
2058 .vendor = "Atmel",
2059 .name = "AT45CS1282",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002060 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002061 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002062 .model_id = ATMEL_AT45CS1282,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002063 .total_size = 16896 /* No power of two sizes */,
2064 .page_size = 1056 /* No power of two sizes */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002065 .tested = TEST_BAD_READ,
2066 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002067 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002068 .write = NULL /* Incompatible Page write */,
2069 .read = NULL /* Incompatible read */,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002070 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002071 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002072
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002073 {
2074 .vendor = "Atmel",
2075 .name = "AT45DB011D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002076 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002077 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002078 .model_id = ATMEL_AT45DB011D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002079 .total_size = 128 /* Size can only be determined from status register */,
2080 .page_size = 256 /* Size can only be determined from status register */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002081 .tested = TEST_BAD_READ,
2082 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002083 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002084 .write = NULL,
2085 .read = NULL,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002086 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002087 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002088
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002089 {
2090 .vendor = "Atmel",
2091 .name = "AT45DB021D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002092 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002093 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002094 .model_id = ATMEL_AT45DB021D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002095 .total_size = 256 /* Size can only be determined from status register */,
2096 .page_size = 256 /* Size can only be determined from status register */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002097 .tested = TEST_BAD_READ,
2098 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002099 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002100 .write = NULL,
2101 .read = NULL,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002102 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002103 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002104
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002105 {
2106 .vendor = "Atmel",
2107 .name = "AT45DB041D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002108 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002109 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002110 .model_id = ATMEL_AT45DB041D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002111 .total_size = 512 /* Size can only be determined from status register */,
2112 .page_size = 256 /* Size can only be determined from status register */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002113 .tested = TEST_BAD_READ,
2114 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002115 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002116 .write = NULL,
2117 .read = NULL,
Steven Zakulec7d257b42011-07-19 08:50:18 +00002118 .voltage = {2500, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002119 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002120
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002121 {
2122 .vendor = "Atmel",
2123 .name = "AT45DB081D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002124 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002125 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002126 .model_id = ATMEL_AT45DB081D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002127 .total_size = 1024 /* Size can only be determined from status register */,
2128 .page_size = 256 /* Size can only be determined from status register */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002129 .tested = TEST_BAD_READ,
2130 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002131 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002132 .write = NULL,
2133 .read = NULL,
Steven Zakulec7d257b42011-07-19 08:50:18 +00002134 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002135 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002136
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002137 {
2138 .vendor = "Atmel",
2139 .name = "AT45DB161D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002140 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002141 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002142 .model_id = ATMEL_AT45DB161D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002143 .total_size = 2048 /* Size can only be determined from status register */,
2144 .page_size = 512 /* Size can only be determined from status register */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002145 .tested = TEST_BAD_READ,
2146 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002147 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002148 .write = NULL,
2149 .read = NULL,
Steven Zakulec7d257b42011-07-19 08:50:18 +00002150 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002151 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002152
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002153 {
2154 .vendor = "Atmel",
2155 .name = "AT45DB321C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002156 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002157 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002158 .model_id = ATMEL_AT45DB321C,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002159 .total_size = 4224 /* No power of two sizes */,
2160 .page_size = 528 /* No power of two sizes */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002161 .tested = TEST_BAD_READ,
2162 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002163 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002164 .write = NULL,
2165 .read = NULL /* Incompatible read */,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002166 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002167 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002168
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002169 {
2170 .vendor = "Atmel",
2171 .name = "AT45DB321D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002172 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002173 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002174 .model_id = ATMEL_AT45DB321D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002175 .total_size = 4096 /* Size can only be determined from status register */,
2176 .page_size = 512 /* Size can only be determined from status register */,
Daniel Lenski65922a32012-02-15 23:40:23 +00002177 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2178 .feature_bits = FEATURE_OTP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002179 .tested = TEST_BAD_READ,
2180 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002181 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002182 .write = NULL,
2183 .read = NULL,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002184 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002185 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002186
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002187 {
2188 .vendor = "Atmel",
2189 .name = "AT45DB642D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002190 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002191 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002192 .model_id = ATMEL_AT45DB642D,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002193 .total_size = 8192 /* Size can only be determined from status register */,
2194 .page_size = 1024 /* Size can only be determined from status register */,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002195 .tested = TEST_BAD_READ,
2196 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002197 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002198 .write = NULL,
2199 .read = NULL,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002200 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002201 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002202
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002203 {
2204 .vendor = "Atmel",
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002205 .name = "AT49BV512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002206 .bustype = BUS_PARALLEL,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002207 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002208 .model_id = ATMEL_AT49BV512,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002209 .total_size = 64,
2210 .page_size = 64,
Sean Nelson35727f72010-01-28 23:55:12 +00002211 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +00002212 .tested = TEST_OK_PREW,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002213 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002214 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002215 .block_erasers =
2216 {
2217 {
2218 .eraseblocks = { {64 * 1024, 1} },
2219 .block_erase = erase_chip_block_jedec,
2220 }
2221 },
Sean Nelson35727f72010-01-28 23:55:12 +00002222 .write = write_jedec_1,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002223 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002224 .voltage = {2700, 3600},
Uwe Hermannb4dcb712009-05-13 11:36:06 +00002225 },
2226
2227 {
2228 .vendor = "Atmel",
Andrew Morgan1a5eaa12010-06-07 14:10:55 +00002229 .name = "AT49F020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002230 .bustype = BUS_PARALLEL,
Andrew Morgan1a5eaa12010-06-07 14:10:55 +00002231 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002232 .model_id = ATMEL_AT49F020,
Andrew Morgan1a5eaa12010-06-07 14:10:55 +00002233 .total_size = 256,
2234 .page_size = 256,
2235 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002236 .tested = TEST_OK_PRE,
Andrew Morgan1a5eaa12010-06-07 14:10:55 +00002237 .probe = probe_jedec,
2238 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
2239 .block_erasers =
2240 {
2241 {
2242 .eraseblocks = { {256 * 1024, 1} },
2243 .block_erase = erase_chip_block_jedec,
2244 }
2245 },
2246 .write = write_jedec_1,
2247 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002248 .voltage = {4500, 5500},
Andrew Morgan1a5eaa12010-06-07 14:10:55 +00002249 },
2250
2251 {
2252 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002253 .name = "AT49F002(N)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002254 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002255 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002256 .model_id = ATMEL_AT49F002N,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002257 .total_size = 256,
2258 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002259 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002260 .tested = TEST_UNTESTED,
2261 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002262 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002263 .block_erasers =
2264 {
2265 {
2266 .eraseblocks = {
2267 {16 * 1024, 1},
2268 {8 * 1024, 2},
2269 {96 * 1024, 1},
2270 {128 * 1024, 1},
2271 },
2272 .block_erase = erase_sector_jedec,
2273 }, {
2274 .eraseblocks = { {256 * 1024, 1} },
2275 .block_erase = erase_chip_block_jedec,
2276 }
2277 },
Sean Nelson35727f72010-01-28 23:55:12 +00002278 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002279 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002280 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002281 },
2282
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002283 {
2284 .vendor = "Atmel",
2285 .name = "AT49F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002286 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002287 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002288 .model_id = ATMEL_AT49F002NT,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002289 .total_size = 256,
2290 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002291 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002292 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002293 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002294 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00002295 .block_erasers =
2296 {
2297 {
2298 .eraseblocks = {
2299 {128 * 1024, 1},
2300 {96 * 1024, 1},
2301 {8 * 1024, 2},
2302 {16 * 1024, 1},
2303 },
2304 .block_erase = erase_sector_jedec,
2305 }, {
2306 .eraseblocks = { {256 * 1024, 1} },
2307 .block_erase = erase_chip_block_jedec,
2308 }
2309 },
Sean Nelson35727f72010-01-28 23:55:12 +00002310 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002311 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002312 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002313 },
2314
Daniel Lenskidf90d3a2010-07-22 11:44:38 +00002315 {
Uwe Hermannc74e9772011-09-08 19:55:18 +00002316 .vendor = "Atmel",
2317 .name = "AT49LH002",
2318 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
2319 .manufacture_id = ATMEL_ID,
2320 .model_id = ATMEL_AT49LH002,
2321 .total_size = 256,
2322 .page_size = 0, /* unused */
2323 .feature_bits = FEATURE_REGISTERMAP, /* TODO: LPC OK too? */
2324 .tested = TEST_UNTESTED,
2325 .probe = probe_82802ab, /* TODO: 0xff cmd not documented? */
2326 .probe_timing = TIMING_FIXME,
2327 .block_erasers =
2328 {
2329 {
2330 .eraseblocks = {
2331 {64 * 1024, 3},
2332 {32 * 1024, 1},
2333 {8 * 1024, 2},
2334 {16 * 1024, 1},
2335 },
2336 .block_erase = erase_block_82802ab,
2337 }, {
2338 .eraseblocks = {
2339 {64 * 1024, 4},
2340 },
2341 .block_erase = NULL, /* TODO: Implement. */
2342 },
2343 },
2344 .printlock = NULL, /* TODO */
2345 .unlock = NULL, /* unlock_82802ab() not correct(?) */
2346 .write = write_82802ab,
2347 .read = read_memmapped,
2348 .voltage = {3000, 3600},
2349 },
2350
2351 {
Andrew Morganca081462011-09-13 22:05:44 +00002352 .vendor = "Catalyst",
2353 .name = "CAT28F512",
2354 .bustype = BUS_PARALLEL,
2355 .manufacture_id = CATALYST_ID,
2356 .model_id = CATALYST_CAT28F512,
2357 .total_size = 64,
2358 .page_size = 0, /* unused */
2359 .feature_bits = 0,
2360 .tested = TEST_OK_PR,
2361 .probe = probe_jedec, /* FIXME! */
2362 .probe_timing = TIMING_ZERO,
2363 .block_erasers =
2364 {
2365 {
2366 .eraseblocks = { {64 * 1024, 1} },
2367 .block_erase = NULL, /* TODO */
2368 },
2369 },
2370 .write = NULL, /* TODO */
2371 .read = read_memmapped,
2372 .voltage = {4500, 5500},
2373 },
2374
2375 {
Joshua Roysf1324e02010-09-16 00:51:51 +00002376 .vendor = "Bright",
2377 .name = "BM29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002378 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00002379 .manufacture_id = BRIGHT_ID,
2380 .model_id = BRIGHT_BM29F040,
2381 .total_size = 512,
2382 .page_size = 64 * 1024,
2383 .feature_bits = FEATURE_EITHER_RESET,
2384 .tested = TEST_OK_PR,
2385 .probe = probe_jedec,
2386 .probe_timing = TIMING_ZERO,
2387 .block_erasers =
2388 {
2389 {
2390 .eraseblocks = { {64 * 1024, 8} },
2391 .block_erase = erase_sector_jedec,
2392 }, {
2393 .eraseblocks = { {512 * 1024, 1} },
2394 .block_erase = erase_chip_block_jedec,
2395 },
2396 },
2397 .write = write_jedec_1,
2398 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00002399 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00002400 },
2401
2402 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002403 .vendor = "EMST",
2404 .name = "F49B002UA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002405 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002406 .manufacture_id = EMST_ID,
2407 .model_id = EMST_F49B002UA,
2408 .total_size = 256,
2409 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00002410 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002411 .tested = TEST_UNTESTED,
2412 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00002413 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00002414 .block_erasers =
2415 {
2416 {
2417 .eraseblocks = {
2418 {128 * 1024, 1},
2419 {96 * 1024, 1},
2420 {8 * 1024, 2},
2421 {16 * 1024, 1},
2422 },
2423 .block_erase = erase_sector_jedec,
2424 }, {
2425 .eraseblocks = { {256 * 1024, 1} },
2426 .block_erase = erase_chip_block_jedec,
2427 }
2428 },
Sean Nelson35727f72010-01-28 23:55:12 +00002429 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002430 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002431 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002432 },
2433
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002434 {
Michael Karcher80a59ea2010-06-19 22:06:35 +00002435 .vendor = "EMST",
2436 .name = "F25L008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002437 .bustype = BUS_SPI,
Michael Karcher80a59ea2010-06-19 22:06:35 +00002438 .manufacture_id = EMST_ID,
2439 .model_id = EMST_F25L008A,
2440 .total_size = 1024,
2441 .page_size = 256,
2442 .tested = TEST_UNTESTED,
2443 .probe = probe_spi_rdid,
2444 .probe_timing = TIMING_ZERO,
2445 .block_erasers =
2446 {
2447 {
2448 .eraseblocks = { {4 * 1024, 256} },
2449 .block_erase = spi_block_erase_20,
2450 }, {
2451 .eraseblocks = { {64 * 1024, 16} },
2452 .block_erase = spi_block_erase_d8,
2453 }, {
2454 .eraseblocks = { {1024 * 1024, 1} },
2455 .block_erase = spi_block_erase_60,
2456 }, {
2457 .eraseblocks = { {1024 * 1024, 1} },
2458 .block_erase = spi_block_erase_c7,
2459 }
2460 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002461 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger9a795d82010-07-14 16:19:05 +00002462 .write = spi_chip_write_1,
Michael Karcher4497e862010-07-10 19:34:15 +00002463 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002464 .voltage = {2700, 3600},
Michael Karcher80a59ea2010-06-19 22:06:35 +00002465 },
2466
2467 {
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002468 .vendor = "Eon",
2469 .name = "EN25B05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002470 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002471 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002472 .model_id = EON_EN25B05,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002473 .total_size = 64,
2474 .page_size = 256,
2475 .tested = TEST_UNTESTED,
2476 .probe = probe_spi_rdid,
2477 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002478 .block_erasers =
2479 {
2480 {
2481 .eraseblocks = {
2482 {4 * 1024, 2},
2483 {8 * 1024, 1},
2484 {16 * 1024, 1},
2485 {32 * 1024, 1},
2486 },
2487 .block_erase = spi_block_erase_d8,
2488 }, {
2489 .eraseblocks = { {64 * 1024, 1} },
2490 .block_erase = spi_block_erase_c7,
2491 }
2492 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002493 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002494 .write = spi_chip_write_256,
2495 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002496 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002497 },
2498
2499 {
2500 .vendor = "Eon",
2501 .name = "EN25B05T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002502 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002503 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002504 .model_id = EON_EN25B05,
Sean Nelson54596372010-01-09 05:30:14 +00002505 .total_size = 64,
2506 .page_size = 256,
2507 .tested = TEST_UNTESTED,
2508 .probe = probe_spi_rdid,
2509 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002510 .block_erasers =
2511 {
2512 {
2513 .eraseblocks = {
2514 {32 * 1024, 1},
2515 {16 * 1024, 1},
2516 {8 * 1024, 1},
2517 {4 * 1024, 2},
2518 },
2519 .block_erase = spi_block_erase_d8,
2520 }, {
2521 .eraseblocks = { {64 * 1024, 1} },
2522 .block_erase = spi_block_erase_c7,
2523 }
2524 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002525 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002526 .write = spi_chip_write_256,
2527 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002528 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002529 },
2530
2531 {
2532 .vendor = "Eon",
2533 .name = "EN25B10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002534 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002535 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002536 .model_id = EON_EN25B10,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002537 .total_size = 128,
2538 .page_size = 256,
2539 .tested = TEST_UNTESTED,
2540 .probe = probe_spi_rdid,
2541 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002542 .block_erasers =
2543 {
2544 {
2545 .eraseblocks = {
2546 {4 * 1024, 2},
2547 {8 * 1024, 1},
2548 {16 * 1024, 1},
2549 {32 * 1024, 3},
2550 },
2551 .block_erase = spi_block_erase_d8,
2552 }, {
2553 .eraseblocks = { {128 * 1024, 1} },
2554 .block_erase = spi_block_erase_c7,
2555 }
2556 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002557 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002558 .write = spi_chip_write_256,
2559 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002560 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002561 },
2562
2563 {
2564 .vendor = "Eon",
2565 .name = "EN25B10T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002566 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002567 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002568 .model_id = EON_EN25B10,
Sean Nelson54596372010-01-09 05:30:14 +00002569 .total_size = 128,
2570 .page_size = 256,
2571 .tested = TEST_UNTESTED,
2572 .probe = probe_spi_rdid,
2573 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002574 .block_erasers =
2575 {
2576 {
2577 .eraseblocks = {
2578 {32 * 1024, 3},
2579 {16 * 1024, 1},
2580 {8 * 1024, 1},
2581 {4 * 1024, 2},
2582 },
2583 .block_erase = spi_block_erase_d8,
2584 }, {
2585 .eraseblocks = { {128 * 1024, 1} },
2586 .block_erase = spi_block_erase_c7,
2587 }
2588 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002589 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002590 .write = spi_chip_write_256,
2591 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002592 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002593 },
2594
2595 {
2596 .vendor = "Eon",
2597 .name = "EN25B20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002598 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002599 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002600 .model_id = EON_EN25B20,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002601 .total_size = 256,
2602 .page_size = 256,
2603 .tested = TEST_UNTESTED,
2604 .probe = probe_spi_rdid,
2605 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002606 .block_erasers =
2607 {
2608 {
2609 .eraseblocks = {
2610 {4 * 1024, 2},
2611 {8 * 1024, 1},
2612 {16 * 1024, 1},
2613 {32 * 1024, 1},
2614 {64 * 1024, 3}
2615 },
2616 .block_erase = spi_block_erase_d8,
2617 }, {
2618 .eraseblocks = { {256 * 1024, 1} },
2619 .block_erase = spi_block_erase_c7,
2620 }
2621 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002622 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002623 .write = spi_chip_write_256,
2624 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002625 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002626 },
2627
2628 {
2629 .vendor = "Eon",
2630 .name = "EN25B20T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002631 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002632 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002633 .model_id = EON_EN25B20,
Sean Nelson54596372010-01-09 05:30:14 +00002634 .total_size = 256,
2635 .page_size = 256,
2636 .tested = TEST_UNTESTED,
2637 .probe = probe_spi_rdid,
2638 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002639 .block_erasers =
2640 {
2641 {
2642 .eraseblocks = {
2643 {64 * 1024, 3},
2644 {32 * 1024, 1},
2645 {16 * 1024, 1},
2646 {8 * 1024, 1},
2647 {4 * 1024, 2},
2648 },
2649 .block_erase = spi_block_erase_d8,
2650 }, {
2651 .eraseblocks = { {256 * 1024, 1} },
2652 .block_erase = spi_block_erase_c7,
2653 }
2654 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002655 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002656 .write = spi_chip_write_256,
2657 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002658 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002659 },
2660
2661 {
2662 .vendor = "Eon",
2663 .name = "EN25B40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002664 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002665 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002666 .model_id = EON_EN25B40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002667 .total_size = 512,
2668 .page_size = 256,
2669 .tested = TEST_UNTESTED,
2670 .probe = probe_spi_rdid,
2671 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002672 .block_erasers =
2673 {
2674 {
2675 .eraseblocks = {
2676 {4 * 1024, 2},
2677 {8 * 1024, 1},
2678 {16 * 1024, 1},
2679 {32 * 1024, 1},
2680 {64 * 1024, 7}
2681 },
2682 .block_erase = spi_block_erase_d8,
2683 }, {
2684 .eraseblocks = { {512 * 1024, 1} },
2685 .block_erase = spi_block_erase_c7,
2686 }
2687 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002688 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002689 .write = spi_chip_write_256,
2690 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002691 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002692 },
2693
2694 {
2695 .vendor = "Eon",
2696 .name = "EN25B40T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002697 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002698 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002699 .model_id = EON_EN25B40,
Sean Nelson54596372010-01-09 05:30:14 +00002700 .total_size = 512,
2701 .page_size = 256,
2702 .tested = TEST_UNTESTED,
2703 .probe = probe_spi_rdid,
2704 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002705 .block_erasers =
2706 {
2707 {
2708 .eraseblocks = {
2709 {64 * 1024, 7},
2710 {32 * 1024, 1},
2711 {16 * 1024, 1},
2712 {8 * 1024, 1},
2713 {4 * 1024, 2},
2714 },
2715 .block_erase = spi_block_erase_d8,
2716 }, {
2717 .eraseblocks = { {512 * 1024, 1} },
2718 .block_erase = spi_block_erase_c7,
2719 }
2720 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002721 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002722 .write = spi_chip_write_256,
2723 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002724 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002725 },
2726
2727 {
2728 .vendor = "Eon",
2729 .name = "EN25B80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002730 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002731 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002732 .model_id = EON_EN25B80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002733 .total_size = 1024,
2734 .page_size = 256,
2735 .tested = TEST_UNTESTED,
2736 .probe = probe_spi_rdid,
2737 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002738 .block_erasers =
2739 {
2740 {
2741 .eraseblocks = {
2742 {4 * 1024, 2},
2743 {8 * 1024, 1},
2744 {16 * 1024, 1},
2745 {32 * 1024, 1},
2746 {64 * 1024, 15}
2747 },
2748 .block_erase = spi_block_erase_d8,
2749 }, {
2750 .eraseblocks = { {1024 * 1024, 1} },
2751 .block_erase = spi_block_erase_c7,
2752 }
2753 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002754 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002755 .write = spi_chip_write_256,
2756 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002757 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002758 },
2759
2760 {
2761 .vendor = "Eon",
2762 .name = "EN25B80T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002763 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002764 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002765 .model_id = EON_EN25B80,
Sean Nelson54596372010-01-09 05:30:14 +00002766 .total_size = 1024,
2767 .page_size = 256,
2768 .tested = TEST_UNTESTED,
2769 .probe = probe_spi_rdid,
2770 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002771 .block_erasers =
2772 {
2773 {
2774 .eraseblocks = {
2775 {64 * 1024, 15},
2776 {32 * 1024, 1},
2777 {16 * 1024, 1},
2778 {8 * 1024, 1},
2779 {4 * 1024, 2},
2780 },
2781 .block_erase = spi_block_erase_d8,
2782 }, {
2783 .eraseblocks = { {1024 * 1024, 1} },
2784 .block_erase = spi_block_erase_c7,
2785 }
2786 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002787 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002788 .write = spi_chip_write_256,
2789 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002790 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002791 },
2792
2793 {
2794 .vendor = "Eon",
2795 .name = "EN25B16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002796 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002797 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002798 .model_id = EON_EN25B16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002799 .total_size = 2048,
2800 .page_size = 256,
2801 .tested = TEST_UNTESTED,
2802 .probe = probe_spi_rdid,
2803 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002804 .block_erasers =
2805 {
2806 {
2807 .eraseblocks = {
2808 {4 * 1024, 2},
2809 {8 * 1024, 1},
2810 {16 * 1024, 1},
2811 {32 * 1024, 1},
2812 {64 * 1024, 31},
2813 },
2814 .block_erase = spi_block_erase_d8,
2815 }, {
2816 .eraseblocks = { {2 * 1024 * 1024, 1} },
2817 .block_erase = spi_block_erase_c7,
2818 }
2819 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002820 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002821 .write = spi_chip_write_256,
2822 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002823 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002824 },
2825
2826 {
2827 .vendor = "Eon",
2828 .name = "EN25B16T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002829 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002830 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002831 .model_id = EON_EN25B16,
Sean Nelson54596372010-01-09 05:30:14 +00002832 .total_size = 2048,
2833 .page_size = 256,
2834 .tested = TEST_UNTESTED,
2835 .probe = probe_spi_rdid,
2836 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002837 .block_erasers =
2838 {
2839 {
2840 .eraseblocks = {
2841 {64 * 1024, 31},
2842 {32 * 1024, 1},
2843 {16 * 1024, 1},
2844 {8 * 1024, 1},
2845 {4 * 1024, 2},
2846 },
2847 .block_erase = spi_block_erase_d8,
2848 }, {
2849 .eraseblocks = { {2 * 1024 * 1024, 1} },
2850 .block_erase = spi_block_erase_c7,
2851 }
2852 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002853 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002854 .write = spi_chip_write_256,
2855 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002856 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002857 },
2858
2859 {
2860 .vendor = "Eon",
2861 .name = "EN25B32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002862 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002863 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002864 .model_id = EON_EN25B32,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002865 .total_size = 4096,
2866 .page_size = 256,
2867 .tested = TEST_UNTESTED,
2868 .probe = probe_spi_rdid,
2869 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002870 .block_erasers =
2871 {
2872 {
2873 .eraseblocks = {
2874 {4 * 1024, 2},
2875 {8 * 1024, 1},
2876 {16 * 1024, 1},
2877 {32 * 1024, 1},
2878 {64 * 1024, 63},
2879 },
2880 .block_erase = spi_block_erase_d8,
2881 }, {
2882 .eraseblocks = { {4 * 1024 * 1024, 1} },
2883 .block_erase = spi_block_erase_c7,
2884 }
2885 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002886 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002887 .write = spi_chip_write_256,
2888 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002889 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002890 },
2891
2892 {
2893 .vendor = "Eon",
2894 .name = "EN25B32T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002895 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002896 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002897 .model_id = EON_EN25B32,
Sean Nelson54596372010-01-09 05:30:14 +00002898 .total_size = 4096,
2899 .page_size = 256,
2900 .tested = TEST_UNTESTED,
2901 .probe = probe_spi_rdid,
2902 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002903 .block_erasers =
2904 {
2905 {
2906 .eraseblocks = {
2907 {64 * 1024, 63},
2908 {32 * 1024, 1},
2909 {16 * 1024, 1},
2910 {8 * 1024, 1},
2911 {4 * 1024, 2},
2912 },
2913 .block_erase = spi_block_erase_d8,
2914 }, {
2915 .eraseblocks = { {4 * 1024 * 1024, 1} },
2916 .block_erase = spi_block_erase_c7,
2917 }
2918 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002919 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002920 .write = spi_chip_write_256,
2921 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002922 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002923 },
2924
2925 {
2926 .vendor = "Eon",
2927 .name = "EN25B64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002928 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002929 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002930 .model_id = EON_EN25B64,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002931 .total_size = 8192,
2932 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00002933 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002934 .tested = TEST_UNTESTED,
2935 .probe = probe_spi_rdid,
2936 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002937 .block_erasers =
2938 {
2939 {
2940 .eraseblocks = {
2941 {4 * 1024, 2},
2942 {8 * 1024, 1},
2943 {16 * 1024, 1},
2944 {32 * 1024, 1},
2945 {64 * 1024, 127},
2946 },
2947 .block_erase = spi_block_erase_d8,
2948 }, {
2949 .eraseblocks = { {8 * 1024 * 1024, 1} },
2950 .block_erase = spi_block_erase_c7,
2951 }
2952 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002953 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00002954 .write = spi_chip_write_256,
2955 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002956 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00002957 },
2958
2959 {
2960 .vendor = "Eon",
2961 .name = "EN25B64T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002962 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00002963 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002964 .model_id = EON_EN25B64,
Sean Nelson54596372010-01-09 05:30:14 +00002965 .total_size = 8192,
2966 .page_size = 256,
2967 .tested = TEST_UNTESTED,
2968 .probe = probe_spi_rdid,
2969 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00002970 .block_erasers =
2971 {
2972 {
2973 .eraseblocks = {
2974 {64 * 1024, 127},
2975 {32 * 1024, 1},
2976 {16 * 1024, 1},
2977 {8 * 1024, 1},
2978 {4 * 1024, 2},
2979 },
2980 .block_erase = spi_block_erase_d8,
2981 }, {
2982 .eraseblocks = { {8 * 1024 * 1024, 1} },
2983 .block_erase = spi_block_erase_c7,
2984 }
2985 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00002986 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002987 .write = spi_chip_write_256,
2988 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002989 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00002990 },
2991
2992 {
2993 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002994 .name = "EN25F05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002995 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002996 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002997 .model_id = EON_EN25F05,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00002998 .total_size = 64,
2999 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003000 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003001 .tested = TEST_UNTESTED,
3002 .probe = probe_spi_rdid,
3003 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003004 .block_erasers =
3005 {
3006 {
3007 .eraseblocks = { {4 * 1024, 16} },
3008 .block_erase = spi_block_erase_20,
3009 }, {
3010 .eraseblocks = { {32 * 1024, 2} },
3011 .block_erase = spi_block_erase_d8,
3012 }, {
3013 .eraseblocks = { {32 * 1024, 2} },
3014 .block_erase = spi_block_erase_52,
3015 }, {
3016 .eraseblocks = { {64 * 1024, 1} },
3017 .block_erase = spi_block_erase_60,
3018 }, {
3019 .eraseblocks = { {64 * 1024, 1} },
3020 .block_erase = spi_block_erase_c7,
3021 }
3022 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003023 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003024 .write = spi_chip_write_256,
3025 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003026 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003027 },
3028
3029 {
3030 .vendor = "Eon",
3031 .name = "EN25F10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003032 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003033 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003034 .model_id = EON_EN25F10,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003035 .total_size = 128,
3036 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003037 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003038 .tested = TEST_UNTESTED,
3039 .probe = probe_spi_rdid,
3040 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003041 .block_erasers =
3042 {
3043 {
3044 .eraseblocks = { {4 * 1024, 32} },
3045 .block_erase = spi_block_erase_20,
3046 }, {
3047 .eraseblocks = { {32 * 1024, 4} },
3048 .block_erase = spi_block_erase_d8,
3049 }, {
3050 .eraseblocks = { {32 * 1024, 4} },
3051 .block_erase = spi_block_erase_52,
3052 }, {
3053 .eraseblocks = { {128 * 1024, 1} },
3054 .block_erase = spi_block_erase_60,
3055 }, {
3056 .eraseblocks = { {128 * 1024, 1} },
3057 .block_erase = spi_block_erase_c7,
3058 }
3059 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003060 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003061 .write = spi_chip_write_256,
3062 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003063 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003064 },
3065
3066 {
3067 .vendor = "Eon",
3068 .name = "EN25F20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003069 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003070 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003071 .model_id = EON_EN25F20,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003072 .total_size = 256,
3073 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003074 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003075 .tested = TEST_UNTESTED,
3076 .probe = probe_spi_rdid,
3077 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003078 .block_erasers =
3079 {
3080 {
3081 .eraseblocks = { {4 * 1024, 64} },
3082 .block_erase = spi_block_erase_20,
3083 }, {
3084 .eraseblocks = { {64 * 1024, 4} },
3085 .block_erase = spi_block_erase_d8,
3086 }, {
3087 .eraseblocks = { {64 * 1024, 4} },
3088 .block_erase = spi_block_erase_52,
3089 }, {
3090 .eraseblocks = { {256 * 1024, 1} },
3091 .block_erase = spi_block_erase_60,
3092 }, {
3093 .eraseblocks = { {256 * 1024, 1} },
3094 .block_erase = spi_block_erase_c7,
3095 }
3096 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003097 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003098 .write = spi_chip_write_256,
3099 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003100 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003101 },
3102
3103 {
3104 .vendor = "Eon",
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003105 .name = "EN25F40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003106 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003107 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003108 .model_id = EON_EN25F40,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003109 .total_size = 512,
3110 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003111 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerfaaa2b22009-06-22 10:06:28 +00003112 .tested = TEST_OK_PROBE,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003113 .probe = probe_spi_rdid,
3114 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003115 .block_erasers =
3116 {
3117 {
Sean Nelson54596372010-01-09 05:30:14 +00003118 .eraseblocks = { {4 * 1024, 128} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003119 .block_erase = spi_block_erase_20,
3120 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003121 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003122 .block_erase = spi_block_erase_d8,
3123 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003124 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003125 .block_erase = spi_block_erase_60,
3126 }, {
Sean Nelson54596372010-01-09 05:30:14 +00003127 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00003128 .block_erase = spi_block_erase_c7,
3129 },
3130 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003131 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003132 .write = spi_chip_write_256,
3133 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003134 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003135 },
3136
3137 {
3138 .vendor = "Eon",
3139 .name = "EN25F80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003140 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003141 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003142 .model_id = EON_EN25F80,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003143 .total_size = 1024,
3144 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003145 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +00003146 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003147 .probe = probe_spi_rdid,
3148 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003149 .block_erasers =
3150 {
3151 {
3152 .eraseblocks = { {4 * 1024, 256} },
3153 .block_erase = spi_block_erase_20,
3154 }, {
3155 .eraseblocks = { {64 * 1024, 16} },
3156 .block_erase = spi_block_erase_d8,
3157 }, {
3158 .eraseblocks = { {1024 * 1024, 1} },
3159 .block_erase = spi_block_erase_60,
3160 }, {
3161 .eraseblocks = { {1024 * 1024, 1} },
3162 .block_erase = spi_block_erase_c7,
3163 }
3164 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003165 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003166 .write = spi_chip_write_256,
3167 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003168 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003169 },
3170
3171 {
3172 .vendor = "Eon",
3173 .name = "EN25F16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003174 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003175 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003176 .model_id = EON_EN25F16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003177 .total_size = 2048,
3178 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003179 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzel018d4822011-10-21 12:33:07 +00003180 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003181 .probe = probe_spi_rdid,
3182 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003183 .block_erasers =
3184 {
3185 {
3186 .eraseblocks = { {4 * 1024, 512} },
3187 .block_erase = spi_block_erase_20,
3188 }, {
3189 .eraseblocks = { {64 * 1024, 32} },
3190 .block_erase = spi_block_erase_d8,
3191 }, {
3192 .eraseblocks = { {2 * 1024 * 1024, 1} },
3193 .block_erase = spi_block_erase_60,
3194 }, {
3195 .eraseblocks = { {2 * 1024 * 1024, 1} },
3196 .block_erase = spi_block_erase_c7,
3197 }
3198 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003199 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003200 .write = spi_chip_write_256,
3201 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003202 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003203 },
3204
3205 {
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003206 .vendor = "Eon",
3207 .name = "EN25F32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003208 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003209 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003210 .model_id = EON_EN25F32,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003211 .total_size = 4096,
3212 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00003213 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003214 .tested = TEST_UNTESTED,
3215 .probe = probe_spi_rdid,
3216 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003217 .block_erasers =
3218 {
3219 {
3220 .eraseblocks = { {4 * 1024, 1024} },
3221 .block_erase = spi_block_erase_20,
3222 }, {
3223 .eraseblocks = { {64 * 1024, 64} },
3224 .block_erase = spi_block_erase_d8,
3225 }, {
3226 .eraseblocks = { {4 * 1024 * 1024, 1} },
3227 .block_erase = spi_block_erase_60,
3228 }, {
3229 .eraseblocks = { {4 * 1024 * 1024, 1} },
3230 .block_erase = spi_block_erase_c7,
3231 }
3232 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003233 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003234 .write = spi_chip_write_256,
3235 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003236 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003237 },
3238
3239 {
Russ Dill3cd5a122010-03-05 08:44:11 +00003240 .vendor = "Eon",
David Hendricks6d715302011-07-24 22:21:57 +00003241 .name = "EN25Q40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003242 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003243 .manufacture_id = EON_ID_NOPREFIX,
3244 .model_id = EON_EN25Q40,
3245 .total_size = 512,
3246 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003247 /* OTP: 256B total; enter 0x3A */
3248 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003249 .tested = TEST_UNTESTED,
3250 .probe = probe_spi_rdid,
3251 .probe_timing = TIMING_ZERO,
3252 .block_erasers =
3253 {
3254 {
3255 .eraseblocks = { {4 * 1024, 128} },
3256 .block_erase = spi_block_erase_20,
3257 }, {
3258 .eraseblocks = { {64 * 1024, 8} },
3259 .block_erase = spi_block_erase_d8,
3260 }, {
3261 .eraseblocks = { {512 * 1024, 1} },
3262 .block_erase = spi_block_erase_60,
3263 }, {
3264 .eraseblocks = { {512 * 1024, 1} },
3265 .block_erase = spi_block_erase_c7,
3266 }
3267 },
3268 .unlock = spi_disable_blockprotect,
3269 .write = spi_chip_write_256,
3270 .read = spi_chip_read,
3271 .voltage = {2700, 3600},
3272 },
3273
3274 {
3275 .vendor = "Eon",
3276 .name = "EN25Q80(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003277 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003278 .manufacture_id = EON_ID_NOPREFIX,
3279 .model_id = EON_EN25Q80,
3280 .total_size = 1024,
3281 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003282 /* OTP: 256B total; enter 0x3A */
3283 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003284 .tested = TEST_UNTESTED,
3285 .probe = probe_spi_rdid,
3286 .probe_timing = TIMING_ZERO,
3287 .block_erasers =
3288 {
3289 {
3290 .eraseblocks = { {4 * 1024, 256} },
3291 .block_erase = spi_block_erase_20,
3292 }, {
3293 .eraseblocks = { {64 * 1024, 16} },
3294 .block_erase = spi_block_erase_d8,
3295 }, {
3296 .eraseblocks = { {1024 * 1024, 1} },
3297 .block_erase = spi_block_erase_60,
3298 }, {
3299 .eraseblocks = { {1024 * 1024, 1} },
3300 .block_erase = spi_block_erase_c7,
3301 }
3302 },
3303 .unlock = spi_disable_blockprotect,
3304 .write = spi_chip_write_256,
3305 .read = spi_chip_read,
3306 .voltage = {2700, 3600},
3307 },
3308
3309 {
3310 /* Note: EN25D16 is an evil twin which shares the model ID
3311 but has different write protection capabilities */
3312 .vendor = "Eon",
3313 .name = "EN25Q16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003314 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003315 .manufacture_id = EON_ID_NOPREFIX,
3316 .model_id = EON_EN25Q16,
3317 .total_size = 2048,
3318 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003319 /* OTP: D16 512B/Q16 128B total; enter 0x3A */
3320 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003321 .tested = TEST_UNTESTED,
3322 .probe = probe_spi_rdid,
3323 .probe_timing = TIMING_ZERO,
3324 .block_erasers =
3325 {
3326 {
3327 .eraseblocks = { {4 * 1024, 512} },
3328 .block_erase = spi_block_erase_20,
3329 }, {
3330 .eraseblocks = { {64 * 1024, 32} },
3331 .block_erase = spi_block_erase_d8,
3332 }, {
3333 /* not supported by Q16 version */
3334 .eraseblocks = { {64 * 1024, 32} },
3335 .block_erase = spi_block_erase_52,
3336 }, {
3337 .eraseblocks = { {2 * 1024 * 1024, 1} },
3338 .block_erase = spi_block_erase_60,
3339 }, {
3340 .eraseblocks = { {2 * 1024 * 1024, 1} },
3341 .block_erase = spi_block_erase_c7,
3342 }
3343 },
3344 .unlock = spi_disable_blockprotect,
3345 .write = spi_chip_write_256,
3346 .read = spi_chip_read,
3347 .voltage = {2700, 3600},
3348 },
3349
3350 {
3351 .vendor = "Eon",
3352 .name = "EN25Q32(A/B)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003353 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003354 .manufacture_id = EON_ID_NOPREFIX,
3355 .model_id = EON_EN25Q32,
3356 .total_size = 4096,
3357 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003358 /* OTP: 512B total; enter 0x3A */
3359 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003360 .tested = TEST_UNTESTED,
3361 .probe = probe_spi_rdid,
3362 .probe_timing = TIMING_ZERO,
3363 .block_erasers =
3364 {
3365 {
3366 .eraseblocks = { {4 * 1024, 1024} },
3367 .block_erase = spi_block_erase_20,
3368 }, {
3369 .eraseblocks = { {64 * 1024, 64} },
3370 .block_erase = spi_block_erase_d8,
3371 }, {
3372 .eraseblocks = { {4 * 1024 * 1024, 1} },
3373 .block_erase = spi_block_erase_60,
3374 }, {
3375 .eraseblocks = { {4 * 1024 * 1024, 1} },
3376 .block_erase = spi_block_erase_c7,
3377 }
3378 },
3379 .unlock = spi_disable_blockprotect,
3380 .write = spi_chip_write_256,
3381 .read = spi_chip_read,
3382 .voltage = {2700, 3600},
3383 },
3384
3385 {
3386 .vendor = "Eon",
3387 .name = "EN25Q64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003388 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003389 .manufacture_id = EON_ID_NOPREFIX,
3390 .model_id = EON_EN25Q64,
3391 .total_size = 8192,
3392 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003393 /* OTP: 512B total; enter 0x3A */
3394 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003395 .tested = TEST_UNTESTED,
3396 .probe = probe_spi_rdid,
3397 .probe_timing = TIMING_ZERO,
3398 .block_erasers =
3399 {
3400 {
3401 .eraseblocks = { {4 * 1024, 2048} },
3402 .block_erase = spi_block_erase_20,
3403 }, {
3404 .eraseblocks = { {64 * 1024, 128} },
3405 .block_erase = spi_block_erase_d8,
3406 }, {
3407 .eraseblocks = { {8 * 1024 * 1024, 1} },
3408 .block_erase = spi_block_erase_60,
3409 }, {
3410 .eraseblocks = { {8 * 1024 * 1024, 1} },
3411 .block_erase = spi_block_erase_c7,
3412 }
3413 },
3414 .unlock = spi_disable_blockprotect,
3415 .write = spi_chip_write_256,
3416 .read = spi_chip_read,
3417 .voltage = {2700, 3600},
3418 },
3419
3420 {
3421 .vendor = "Eon",
3422 .name = "EN25Q128",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003423 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003424 .manufacture_id = EON_ID_NOPREFIX,
3425 .model_id = EON_EN25Q128,
3426 .total_size = 16384,
3427 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003428 /* OTP: 512B total; enter 0x3A */
3429 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003430 .tested = TEST_UNTESTED,
3431 .probe = probe_spi_rdid,
3432 .probe_timing = TIMING_ZERO,
3433 .block_erasers =
3434 {
3435 {
3436 .eraseblocks = { {4 * 1024, 4096} },
3437 .block_erase = spi_block_erase_20,
3438 }, {
3439 .eraseblocks = { {64 * 1024, 256} },
3440 .block_erase = spi_block_erase_d8,
3441 }, {
3442 .eraseblocks = { {16 * 1024 * 1024, 1} },
3443 .block_erase = spi_block_erase_60,
3444 }, {
3445 .eraseblocks = { {16 * 1024 * 1024, 1} },
3446 .block_erase = spi_block_erase_c7,
3447 }
3448 },
3449 .unlock = spi_disable_blockprotect,
3450 .write = spi_chip_write_256,
3451 .read = spi_chip_read,
3452 },
3453
3454 {
3455 .vendor = "Eon",
3456 .name = "EN25QH16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003457 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00003458 .manufacture_id = EON_ID_NOPREFIX,
3459 .model_id = EON_EN25QH16,
3460 .total_size = 2048,
3461 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00003462 /* supports SFDP */
3463 /* OTP: 512B total; enter 0x3A */
3464 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00003465 .tested = TEST_UNTESTED,
3466 .probe = probe_spi_rdid,
3467 .probe_timing = TIMING_ZERO,
3468 .block_erasers =
3469 {
3470 {
3471 .eraseblocks = { {4 * 1024, 512} },
3472 .block_erase = spi_block_erase_20,
3473 }, {
3474 .eraseblocks = { {64 * 1024, 32} },
3475 .block_erase = spi_block_erase_d8,
3476 }, {
3477 .eraseblocks = { {1024 * 2048, 1} },
3478 .block_erase = spi_block_erase_60,
3479 }, {
3480 .eraseblocks = { {1024 * 2048, 1} },
3481 .block_erase = spi_block_erase_c7,
3482 }
3483 },
3484 .unlock = spi_disable_blockprotect,
3485 .write = spi_chip_write_256,
3486 .read = spi_chip_read,
3487 .voltage = {2700, 3600},
3488 },
3489
3490 {
3491 .vendor = "Eon",
Russ Dill3cd5a122010-03-05 08:44:11 +00003492 .name = "EN29F010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003493 .bustype = BUS_PARALLEL,
Russ Dill3cd5a122010-03-05 08:44:11 +00003494 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003495 .model_id = EON_EN29F010,
Russ Dill3cd5a122010-03-05 08:44:11 +00003496 .total_size = 128,
3497 .page_size = 128,
3498 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003499 .tested = TEST_OK_PRE,
Russ Dill3cd5a122010-03-05 08:44:11 +00003500 .probe = probe_jedec,
3501 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3502 .block_erasers =
3503 {
3504 {
3505 .eraseblocks = { {16 * 1024, 8} },
3506 .block_erase = erase_sector_jedec,
3507 },
3508 {
3509 .eraseblocks = { {128 * 1024, 1} },
3510 .block_erase = erase_chip_block_jedec,
3511 },
3512 },
3513 .write = write_jedec_1,
3514 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003515 .voltage = {4500, 5500},
Russ Dill3cd5a122010-03-05 08:44:11 +00003516 },
3517
3518 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00003519 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003520 .name = "EN29F002(A)(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003521 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003522 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003523 .model_id = EON_EN29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003524 .total_size = 256,
3525 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00003526 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003527 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003528 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003529 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003530 .block_erasers =
3531 {
3532 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00003533 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00003534 {16 * 1024, 1},
Michael Karchere3cb0a12010-03-13 23:47:09 +00003535 {8 * 1024, 2},
3536 {32 * 1024, 1},
3537 {64 * 1024, 3},
Sean Nelson6b11ad22009-12-23 17:05:59 +00003538 },
3539 .block_erase = erase_sector_jedec,
3540 }, {
3541 .eraseblocks = { {256 * 1024, 1} },
3542 .block_erase = erase_chip_block_jedec,
3543 },
3544 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00003545 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003546 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003547 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003548 },
3549
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003550 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00003551 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003552 .name = "EN29F002(A)(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003553 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003554 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003555 .model_id = EON_EN29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003556 .total_size = 256,
3557 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00003558 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00003559 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003560 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003561 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003562 .block_erasers =
3563 {
3564 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00003565 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00003566 {64 * 1024, 3},
Michael Karchere3cb0a12010-03-13 23:47:09 +00003567 {32 * 1024, 1},
3568 {8 * 1024, 2},
3569 {16 * 1024, 1},
Sean Nelson6b11ad22009-12-23 17:05:59 +00003570 },
3571 .block_erase = erase_sector_jedec,
3572 }, {
3573 .eraseblocks = { {256 * 1024, 1} },
3574 .block_erase = erase_chip_block_jedec,
3575 },
3576 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00003577 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003578 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003579 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003580 },
3581
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003582 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00003583 .vendor = "Eon",
3584 .name = "EN29LV640B",
3585 .bustype = BUS_PARALLEL,
3586 .manufacture_id = EON_ID,
3587 .model_id = EON_EN29LV640B,
3588 .total_size = 8192,
3589 .page_size = 8192,
3590 .feature_bits = 0,
3591 .tested = TEST_OK_PREW,
3592 .probe = probe_en29lv640b,
3593 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3594 .block_erasers =
3595 {
3596 {
3597 .eraseblocks = {
3598 {8 * 1024, 8},
3599 {64 * 1024, 127},
3600 },
3601 .block_erase = block_erase_en29lv640b,
3602 }, {
3603 .eraseblocks = { {8 * 1024 * 1024, 1} },
3604 .block_erase = block_erase_chip_en29lv640b,
3605 },
3606 },
3607 .write = write_en29lv640b,
3608 .read = read_memmapped,
3609 .voltage = {2700, 3600},
3610 },
3611
3612 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003613 .vendor = "Fujitsu",
3614 .name = "MBM29F004BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003615 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003616 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003617 .model_id = FUJITSU_MBM29F004BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003618 .total_size = 512,
3619 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003620 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003621 .tested = TEST_UNTESTED,
3622 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003623 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003624 .block_erasers =
3625 {
3626 {
3627 .eraseblocks = {
3628 {16 * 1024, 1},
3629 {8 * 1024, 2},
3630 {32 * 1024, 1},
3631 {64 * 1024, 7},
3632 },
Sean Nelson35727f72010-01-28 23:55:12 +00003633 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003634 }, {
3635 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00003636 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003637 },
3638 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003639 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003640 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003641 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003642 },
3643
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003644 {
3645 .vendor = "Fujitsu",
3646 .name = "MBM29F004TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003647 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003648 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003649 .model_id = FUJITSU_MBM29F004TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003650 .total_size = 512,
3651 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003652 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003653 .tested = TEST_UNTESTED,
3654 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003655 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003656 .block_erasers =
3657 {
3658 {
3659 .eraseblocks = {
3660 {64 * 1024, 7},
3661 {32 * 1024, 1},
3662 {8 * 1024, 2},
3663 {16 * 1024, 1},
3664 },
Sean Nelson35727f72010-01-28 23:55:12 +00003665 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003666 }, {
3667 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00003668 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00003669 },
3670 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003671 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003672 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003673 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003674 },
3675
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003676 {
Sean Nelson35727f72010-01-28 23:55:12 +00003677 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003678 .vendor = "Fujitsu",
3679 .name = "MBM29F400BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003680 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003681 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003682 .model_id = FUJITSU_MBM29F400BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003683 .total_size = 512,
3684 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003685 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00003686 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003687 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00003688 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003689 .block_erasers =
3690 {
3691 {
3692 .eraseblocks = {
3693 {16 * 1024, 1},
3694 {8 * 1024, 2},
3695 {32 * 1024, 1},
3696 {64 * 1024, 7},
3697 },
3698 .block_erase = block_erase_m29f400bt,
3699 }, {
3700 .eraseblocks = { {512 * 1024, 1} },
3701 .block_erase = block_erase_chip_m29f400bt,
3702 },
3703 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00003704 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003705 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003706 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00003707 },
3708
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003709 {
3710 .vendor = "Fujitsu",
3711 .name = "MBM29F400TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003712 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003713 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003714 .model_id = FUJITSU_MBM29F400TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003715 .total_size = 512,
3716 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00003717 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003718 .tested = TEST_UNTESTED,
3719 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00003720 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson6b11ad22009-12-23 17:05:59 +00003721 .block_erasers =
3722 {
3723 {
3724 .eraseblocks = {
3725 {64 * 1024, 7},
3726 {32 * 1024, 1},
3727 {8 * 1024, 2},
3728 {16 * 1024, 1},
3729 },
3730 .block_erase = block_erase_m29f400bt,
3731 }, {
3732 .eraseblocks = { {512 * 1024, 1} },
3733 .block_erase = block_erase_chip_m29f400bt,
3734 },
3735 },
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00003736 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003737 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003738 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00003739 },
3740
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003741 {
Justin Chevrier1525b2a2012-04-14 21:59:23 +00003742 .vendor = "GigaDevice",
3743 .name = "GD25Q20",
3744 .bustype = BUS_SPI,
3745 .manufacture_id = GIGADEVICE_ID,
3746 .model_id = GIGADEVICE_GD25Q20,
3747 .total_size = 256,
3748 .page_size = 256,
3749 .feature_bits = FEATURE_WRSR_WREN,
3750 .tested = TEST_UNTESTED,
3751 .probe = probe_spi_rdid,
3752 .probe_timing = TIMING_ZERO,
3753 .block_erasers =
3754 {
3755 {
3756 .eraseblocks = { {4 * 1024, 64} },
3757 .block_erase = spi_block_erase_20,
3758 }, {
3759 .eraseblocks = { {32 * 1024, 8} },
3760 .block_erase = spi_block_erase_52,
3761 }, {
3762 .eraseblocks = { {64 * 1024, 4} },
3763 .block_erase = spi_block_erase_d8,
3764 }, {
3765 .eraseblocks = { {256 * 1024, 1} },
3766 .block_erase = spi_block_erase_60,
3767 }, {
3768 .eraseblocks = { {256 * 1024, 1} },
3769 .block_erase = spi_block_erase_c7,
3770 }
3771 },
3772 .unlock = spi_disable_blockprotect,
3773 .write = spi_chip_write_256,
3774 .read = spi_chip_read,
3775 .voltage = {2700, 3600},
3776 },
3777
3778 {
3779 .vendor = "GigaDevice",
3780 .name = "GD25Q40",
3781 .bustype = BUS_SPI,
3782 .manufacture_id = GIGADEVICE_ID,
3783 .model_id = GIGADEVICE_GD25Q40,
3784 .total_size = 512,
3785 .page_size = 256,
3786 .feature_bits = FEATURE_WRSR_WREN,
3787 .tested = TEST_UNTESTED,
3788 .probe = probe_spi_rdid,
3789 .probe_timing = TIMING_ZERO,
3790 .block_erasers =
3791 {
3792 {
3793 .eraseblocks = { {4 * 1024, 128} },
3794 .block_erase = spi_block_erase_20,
3795 }, {
3796 .eraseblocks = { {32 * 1024, 16} },
3797 .block_erase = spi_block_erase_52,
3798 }, {
3799 .eraseblocks = { {64 * 1024, 8} },
3800 .block_erase = spi_block_erase_d8,
3801 }, {
3802 .eraseblocks = { {512 * 1024, 1} },
3803 .block_erase = spi_block_erase_60,
3804 }, {
3805 .eraseblocks = { {512 * 1024, 1} },
3806 .block_erase = spi_block_erase_c7,
3807 }
3808 },
3809 .unlock = spi_disable_blockprotect,
3810 .write = spi_chip_write_256,
3811 .read = spi_chip_read,
3812 .voltage = {2700, 3600},
3813 },
3814
3815 {
3816 .vendor = "GigaDevice",
3817 .name = "GD25Q80",
3818 .bustype = BUS_SPI,
3819 .manufacture_id = GIGADEVICE_ID,
3820 .model_id = GIGADEVICE_GD25Q80,
3821 .total_size = 1024,
3822 .page_size = 256,
3823 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
3824 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
3825 .tested = TEST_OK_PREW,
3826 .probe = probe_spi_rdid,
3827 .probe_timing = TIMING_ZERO,
3828 .block_erasers =
3829 {
3830 {
3831 .eraseblocks = { {4 * 1024, 256} },
3832 .block_erase = spi_block_erase_20,
3833 }, {
3834 .eraseblocks = { {32 * 1024, 32} },
3835 .block_erase = spi_block_erase_52,
3836 }, {
3837 .eraseblocks = { {64 * 1024, 16} },
3838 .block_erase = spi_block_erase_d8,
3839 }, {
3840 .eraseblocks = { {1024 * 1024, 1} },
3841 .block_erase = spi_block_erase_60,
3842 }, {
3843 .eraseblocks = { {1024 * 1024, 1} },
3844 .block_erase = spi_block_erase_c7,
3845 }
3846 },
3847 .unlock = spi_disable_blockprotect,
3848 .write = spi_chip_write_256,
3849 .read = spi_chip_read,
3850 .voltage = {2700, 3600},
3851 },
3852
3853 {
3854 .vendor = "GigaDevice",
3855 .name = "GD25Q16",
3856 .bustype = BUS_SPI,
3857 .manufacture_id = GIGADEVICE_ID,
3858 .model_id = GIGADEVICE_GD25Q16,
3859 .total_size = 2048,
3860 .page_size = 256,
3861 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
3862 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
3863 .tested = TEST_UNTESTED,
3864 .probe = probe_spi_rdid,
3865 .probe_timing = TIMING_ZERO,
3866 .block_erasers =
3867 {
3868 {
3869 .eraseblocks = { {4 * 1024, 512} },
3870 .block_erase = spi_block_erase_20,
3871 }, {
3872 .eraseblocks = { {32 * 1024, 64} },
3873 .block_erase = spi_block_erase_52,
3874 }, {
3875 .eraseblocks = { {64 * 1024, 32} },
3876 .block_erase = spi_block_erase_d8,
3877 }, {
3878 .eraseblocks = { {2 * 1024 * 1024, 1} },
3879 .block_erase = spi_block_erase_60,
3880 }, {
3881 .eraseblocks = { {2 * 1024 * 1024, 1} },
3882 .block_erase = spi_block_erase_c7,
3883 }
3884 },
3885 .unlock = spi_disable_blockprotect,
3886 .write = spi_chip_write_256,
3887 .read = spi_chip_read,
3888 .voltage = {2700, 3600},
3889 },
3890
3891 {
3892 .vendor = "GigaDevice",
3893 .name = "GD25Q32",
3894 .bustype = BUS_SPI,
3895 .manufacture_id = GIGADEVICE_ID,
3896 .model_id = GIGADEVICE_GD25Q32,
3897 .total_size = 4096,
3898 .page_size = 256,
3899 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
3900 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
3901 .tested = TEST_UNTESTED,
3902 .probe = probe_spi_rdid,
3903 .probe_timing = TIMING_ZERO,
3904 .block_erasers =
3905 {
3906 {
3907 .eraseblocks = { {4 * 1024, 1024} },
3908 .block_erase = spi_block_erase_20,
3909 }, {
3910 .eraseblocks = { {32 * 1024, 128} },
3911 .block_erase = spi_block_erase_52,
3912 }, {
3913 .eraseblocks = { {64 * 1024, 64} },
3914 .block_erase = spi_block_erase_d8,
3915 }, {
3916 .eraseblocks = { {4 * 1024 * 1024, 1} },
3917 .block_erase = spi_block_erase_60,
3918 }, {
3919 .eraseblocks = { {4 * 1024 * 1024, 1} },
3920 .block_erase = spi_block_erase_c7,
3921 }
3922 },
3923 .unlock = spi_disable_blockprotect,
3924 .write = spi_chip_write_256,
3925 .read = spi_chip_read,
3926 .voltage = {2700, 3600},
3927 },
3928
3929 {
3930 .vendor = "GigaDevice",
3931 .name = "GD25Q64",
3932 .bustype = BUS_SPI,
3933 .manufacture_id = GIGADEVICE_ID,
3934 .model_id = GIGADEVICE_GD25Q64,
3935 .total_size = 8192,
3936 .page_size = 256,
3937 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
3938 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
3939 .tested = TEST_UNTESTED,
3940 .probe = probe_spi_rdid,
3941 .probe_timing = TIMING_ZERO,
3942 .block_erasers =
3943 {
3944 {
3945 .eraseblocks = { {4 * 1024, 2048} },
3946 .block_erase = spi_block_erase_20,
3947 }, {
3948 .eraseblocks = { {32 * 1024, 256} },
3949 .block_erase = spi_block_erase_52,
3950 }, {
3951 .eraseblocks = { {64 * 1024, 128} },
3952 .block_erase = spi_block_erase_d8,
3953 }, {
3954 .eraseblocks = { {8 * 1024 * 1024, 1} },
3955 .block_erase = spi_block_erase_60,
3956 }, {
3957 .eraseblocks = { {8 * 1024 * 1024, 1} },
3958 .block_erase = spi_block_erase_c7,
3959 }
3960 },
3961 .unlock = spi_disable_blockprotect,
3962 .write = spi_chip_write_256,
3963 .read = spi_chip_read,
3964 },
3965
3966 {
3967 .vendor = "GigaDevice",
3968 .name = "GD25Q128",
3969 .bustype = BUS_SPI,
3970 .manufacture_id = GIGADEVICE_ID,
3971 .model_id = GIGADEVICE_GD25Q128,
3972 .total_size = 16384,
3973 .page_size = 256,
3974 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
3975 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
3976 .tested = TEST_UNTESTED,
3977 .probe = probe_spi_rdid,
3978 .probe_timing = TIMING_ZERO,
3979 .block_erasers =
3980 {
3981 {
3982 .eraseblocks = { {4 * 1024, 4096} },
3983 .block_erase = spi_block_erase_20,
3984 }, {
3985 .eraseblocks = { {32 * 1024, 512} },
3986 .block_erase = spi_block_erase_52,
3987 }, {
3988 .eraseblocks = { {64 * 1024, 256} },
3989 .block_erase = spi_block_erase_d8,
3990 }, {
3991 .eraseblocks = { {16 * 1024 * 1024, 1} },
3992 .block_erase = spi_block_erase_60,
3993 }, {
3994 .eraseblocks = { {16 * 1024 * 1024, 1} },
3995 .block_erase = spi_block_erase_c7,
3996 }
3997 },
3998 .unlock = spi_disable_blockprotect,
3999 .write = spi_chip_write_256,
4000 .read = spi_chip_read,
4001 },
4002
4003 {
David Borgc96a8bd2010-06-21 16:12:22 +00004004 .vendor = "Hyundai",
4005 .name = "HY29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004006 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00004007 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004008 .model_id = HYUNDAI_HY29F002T,
David Borgc96a8bd2010-06-21 16:12:22 +00004009 .total_size = 256,
4010 .page_size = 256 * 1024,
4011 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004012 .tested = TEST_OK_PRE,
David Borgc96a8bd2010-06-21 16:12:22 +00004013 .probe = probe_jedec,
4014 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4015 .block_erasers =
4016 {
4017 {
4018 .eraseblocks = {
4019 {64 * 1024, 3},
4020 {32 * 1024, 1},
4021 {8 * 1024, 2},
4022 {16 * 1024, 1},
4023 },
4024 .block_erase = erase_sector_jedec,
4025 }, {
4026 .eraseblocks = { {256 * 1024, 1} },
4027 .block_erase = erase_chip_block_jedec,
4028 },
4029 },
4030 .write = write_jedec_1,
4031 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004032 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00004033 },
4034
4035 {
4036 .vendor = "Hyundai",
4037 .name = "HY29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004038 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00004039 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004040 .model_id = HYUNDAI_HY29F002B,
David Borgc96a8bd2010-06-21 16:12:22 +00004041 .total_size = 256,
4042 .page_size = 256 * 1024,
4043 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
4044 .tested = TEST_UNTESTED,
4045 .probe = probe_jedec,
4046 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4047 .block_erasers =
4048 {
4049 {
4050 .eraseblocks = {
4051 {16 * 1024, 1},
4052 {8 * 1024, 2},
4053 {32 * 1024, 1},
4054 {64 * 1024, 3},
4055 },
4056 .block_erase = erase_sector_jedec,
4057 }, {
4058 .eraseblocks = { {256 * 1024, 1} },
4059 .block_erase = erase_chip_block_jedec,
4060 },
4061 },
4062 .write = write_jedec_1,
4063 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004064 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00004065 },
4066
4067 {
Joshua Roysf1324e02010-09-16 00:51:51 +00004068 .vendor = "Hyundai",
4069 .name = "HY29F040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004070 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00004071 .manufacture_id = HYUNDAI_ID,
4072 .model_id = HYUNDAI_HY29F040A,
4073 .total_size = 512,
4074 .page_size = 64 * 1024,
4075 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
4076 .tested = TEST_UNTESTED,
4077 .probe = probe_jedec,
4078 .probe_timing = TIMING_ZERO,
4079 .block_erasers =
4080 {
4081 {
4082 .eraseblocks = { {64 * 1024, 8} },
4083 .block_erase = erase_sector_jedec,
4084 }, {
4085 .eraseblocks = { {512 * 1024, 1} },
4086 .block_erase = erase_chip_block_jedec,
4087 },
4088 },
4089 .write = write_jedec_1,
4090 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004091 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00004092 },
4093
4094 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004095 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004096 .name = "28F001BN/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004097 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004098 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004099 .model_id = INTEL_28F001B,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004100 .total_size = 128,
4101 .page_size = 128 * 1024, /* 8k + 2x4k + 112k */
Sean Nelsondee4a832010-03-22 04:39:31 +00004102 .tested = TEST_UNTESTED,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004103 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004104 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00004105 .block_erasers =
4106 {
4107 {
4108 .eraseblocks = {
4109 {8 * 1024, 1},
4110 {4 * 1024, 2},
4111 {112 * 1024, 1},
4112 },
Sean Nelson28accc22010-03-19 18:47:06 +00004113 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00004114 },
4115 },
Sean Nelsondee4a832010-03-22 04:39:31 +00004116 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004117 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004118 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004119 },
4120
4121 {
4122 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004123 .name = "28F001BN/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004124 .bustype = BUS_PARALLEL,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004125 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004126 .model_id = INTEL_28F001T,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004127 .total_size = 128,
4128 .page_size = 128 * 1024, /* 112k + 2x4k + 8k */
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00004129 .tested = TEST_OK_PR,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004130 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00004131 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson54596372010-01-09 05:30:14 +00004132 .block_erasers =
4133 {
4134 {
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00004135 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00004136 {112 * 1024, 1},
4137 {4 * 1024, 2},
4138 {8 * 1024, 1},
4139 },
Sean Nelson28accc22010-03-19 18:47:06 +00004140 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00004141 },
4142 },
Sean Nelsondee4a832010-03-22 04:39:31 +00004143 .write = write_82802ab,
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004144 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004145 .voltage = {4500, 5500},
Urja Rannikkoebd7b832009-05-29 12:55:31 +00004146 },
4147
4148 {
4149 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004150 .name = "28F002BC/BL/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004151 .bustype = BUS_PARALLEL,
Joshua Roysd97c0e02010-07-22 15:20:43 +00004152 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004153 .model_id = INTEL_28F002T,
Joshua Roysd97c0e02010-07-22 15:20:43 +00004154 .total_size = 256,
4155 .page_size = 256 * 1024,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00004156 .tested = TEST_OK_PRE,
Joshua Roysd97c0e02010-07-22 15:20:43 +00004157 .probe = probe_82802ab,
4158 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4159 .block_erasers =
4160 {
4161 {
4162 .eraseblocks = {
4163 {128 * 1024, 1},
4164 {96 * 1024, 1},
4165 {8 * 1024, 2},
4166 {16 * 1024, 1},
4167 },
4168 .block_erase = erase_block_82802ab,
4169 },
4170 },
4171 .write = write_82802ab,
4172 .read = read_memmapped,
4173 },
4174
4175 {
4176 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004177 .name = "28F008S3/S5/SC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004178 .bustype = BUS_PARALLEL,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00004179 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004180 .model_id = INTEL_28F004S3,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00004181 .total_size = 512,
4182 .page_size = 256,
4183 .tested = TEST_UNTESTED,
4184 .probe = probe_82802ab,
4185 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00004186 .block_erasers =
4187 {
4188 {
4189 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00004190 .block_erase = erase_block_82802ab,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00004191 },
4192 },
Sean Nelsondee4a832010-03-22 04:39:31 +00004193 .unlock = unlock_28f004s5,
Sean Nelsonf5ae4d42010-02-13 18:41:53 +00004194 .write = write_82802ab,
4195 .read = read_memmapped,
4196 },
4197
4198 {
4199 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004200 .name = "28F004B5/BE/BV/BX-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004201 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00004202 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004203 .model_id = INTEL_28F004B,
Michael Karcherad0010a2010-04-03 10:27:08 +00004204 .total_size = 512,
4205 .page_size = 128 * 1024, /* maximal block size */
4206 .tested = TEST_UNTESTED,
4207 .probe = probe_82802ab,
4208 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4209 .block_erasers =
4210 {
4211 {
4212 .eraseblocks = {
4213 {16 * 1024, 1},
4214 {8 * 1024, 2},
4215 {96 * 1024, 1},
4216 {128 * 1024, 3},
4217 },
4218 .block_erase = erase_block_82802ab,
4219 },
4220 },
4221 .write = write_82802ab,
4222 .read = read_memmapped,
4223 },
4224
4225 {
4226 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004227 .name = "28F004B5/BE/BV/BX-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004228 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00004229 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004230 .model_id = INTEL_28F004T,
Michael Karcherad0010a2010-04-03 10:27:08 +00004231 .total_size = 512,
4232 .page_size = 128 * 1024, /* maximal block size */
4233 .tested = TEST_UNTESTED,
4234 .probe = probe_82802ab,
4235 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4236 .block_erasers =
4237 {
4238 {
4239 .eraseblocks = {
4240 {128 * 1024, 3},
4241 {96 * 1024, 1},
4242 {8 * 1024, 2},
4243 {16 * 1024, 1},
4244 },
4245 .block_erase = erase_block_82802ab,
4246 },
4247 },
4248 .write = write_82802ab,
4249 .read = read_memmapped,
4250 },
4251
4252 {
4253 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004254 .name = "28F400BV/BX/CE/CV-B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004255 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00004256 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004257 .model_id = INTEL_28F400B,
Michael Karcherad0010a2010-04-03 10:27:08 +00004258 .total_size = 512,
4259 .page_size = 128 * 1024, /* maximal block size */
4260 .feature_bits = FEATURE_ADDR_SHIFTED,
4261 .tested = TEST_UNTESTED,
4262 .probe = probe_82802ab,
4263 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4264 .block_erasers =
4265 {
4266 {
4267 .eraseblocks = {
4268 {16 * 1024, 1},
4269 {8 * 1024, 2},
4270 {96 * 1024, 1},
4271 {128 * 1024, 3},
4272 },
4273 .block_erase = erase_block_82802ab,
4274 },
4275 },
4276 .write = write_82802ab,
4277 .read = read_memmapped,
4278 },
4279
4280 {
4281 .vendor = "Intel",
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004282 .name = "28F400BV/BX/CE/CV-T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004283 .bustype = BUS_PARALLEL,
Michael Karcherad0010a2010-04-03 10:27:08 +00004284 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004285 .model_id = INTEL_28F400T,
Michael Karcherad0010a2010-04-03 10:27:08 +00004286 .total_size = 512,
4287 .page_size = 128 * 1024, /* maximal block size */
4288 .feature_bits = FEATURE_ADDR_SHIFTED,
4289 .tested = TEST_UNTESTED,
4290 .probe = probe_82802ab,
4291 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
4292 .block_erasers =
4293 {
4294 {
4295 .eraseblocks = {
4296 {128 * 1024, 3},
4297 {96 * 1024, 1},
4298 {8 * 1024, 2},
4299 {16 * 1024, 1},
4300 },
4301 .block_erase = erase_block_82802ab,
4302 },
4303 },
4304 .write = write_82802ab,
4305 .read = read_memmapped,
4306 },
4307
4308 {
4309 .vendor = "Intel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004310 .name = "82802AB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004311 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004312 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004313 .model_id = INTEL_82802AB,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004314 .total_size = 512,
4315 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00004316 .feature_bits = FEATURE_REGISTERMAP,
Stefan Taunerd06d9412011-06-12 19:47:55 +00004317 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004318 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004319 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00004320 .block_erasers =
4321 {
4322 {
4323 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +00004324 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00004325 },
4326 },
Sean Nelson28accc22010-03-19 18:47:06 +00004327 .unlock = unlock_82802ab,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004328 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004329 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004330 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004331 },
4332
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004333 {
4334 .vendor = "Intel",
4335 .name = "82802AC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004336 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004337 .manufacture_id = INTEL_ID,
Mattias Mattssoncbee4a72010-10-05 20:28:36 +00004338 .model_id = INTEL_82802AC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004339 .total_size = 1024,
4340 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00004341 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +00004342 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004343 .probe = probe_82802ab,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004344 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
Sean Nelson54596372010-01-09 05:30:14 +00004345 .block_erasers =
4346 {
4347 {
4348 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +00004349 .block_erase = erase_block_82802ab,
Sean Nelson54596372010-01-09 05:30:14 +00004350 },
4351 },
Sean Nelson28accc22010-03-19 18:47:06 +00004352 .unlock = unlock_82802ab,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004353 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004354 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004355 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004356 },
4357
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004358 {
4359 .vendor = "Macronix",
4360 .name = "MX25L512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004361 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004362 .manufacture_id = MACRONIX_ID,
4363 .model_id = MACRONIX_MX25L512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004364 .total_size = 64,
4365 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004366 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004367 .tested = TEST_UNTESTED,
4368 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004369 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004370 .block_erasers =
4371 {
4372 {
4373 .eraseblocks = { {4 * 1024, 16} },
4374 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004375 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004376 .eraseblocks = { {64 * 1024, 1} },
4377 .block_erase = spi_block_erase_52,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004378 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004379 .eraseblocks = { {64 * 1024, 1} },
4380 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004381 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004382 .eraseblocks = { {64 * 1024, 1} },
4383 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004384 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004385 .eraseblocks = { {64 * 1024, 1} },
4386 .block_erase = spi_block_erase_c7,
4387 },
4388 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004389 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004390 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004391 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004392 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004393 },
4394
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004395 {
4396 .vendor = "Macronix",
4397 .name = "MX25L1005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004398 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004399 .manufacture_id = MACRONIX_ID,
4400 .model_id = MACRONIX_MX25L1005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004401 .total_size = 128,
4402 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004403 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004404 .tested = TEST_UNTESTED,
4405 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004406 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004407 .block_erasers =
4408 {
4409 {
4410 .eraseblocks = { {4 * 1024, 32} },
4411 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004412 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004413 .eraseblocks = { {64 * 1024, 2} },
4414 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004415 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004416 .eraseblocks = { {128 * 1024, 1} },
4417 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004418 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00004419 .eraseblocks = { {128 * 1024, 1} },
4420 .block_erase = spi_block_erase_c7,
4421 },
4422 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004423 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004424 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004425 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004426 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004427 },
4428
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004429 {
4430 .vendor = "Macronix",
4431 .name = "MX25L2005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004432 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004433 .manufacture_id = MACRONIX_ID,
4434 .model_id = MACRONIX_MX25L2005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004435 .total_size = 256,
4436 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004437 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004438 .tested = TEST_UNTESTED,
4439 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004440 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004441 .block_erasers =
4442 {
4443 {
4444 .eraseblocks = { {4 * 1024, 64} },
4445 .block_erase = spi_block_erase_20,
4446 }, {
4447 .eraseblocks = { {64 * 1024, 4} },
4448 .block_erase = spi_block_erase_52,
4449 }, {
4450 .eraseblocks = { {64 * 1024, 4} },
4451 .block_erase = spi_block_erase_d8,
4452 }, {
4453 .eraseblocks = { {256 * 1024, 1} },
4454 .block_erase = spi_block_erase_60,
4455 }, {
4456 .eraseblocks = { {256 * 1024, 1} },
4457 .block_erase = spi_block_erase_c7,
4458 },
4459 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004460 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004461 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004462 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004463 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004464 },
4465
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004466 {
4467 .vendor = "Macronix",
4468 .name = "MX25L4005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004469 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004470 .manufacture_id = MACRONIX_ID,
4471 .model_id = MACRONIX_MX25L4005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004472 .total_size = 512,
4473 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004474 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +00004475 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004476 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004477 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004478 .block_erasers =
4479 {
4480 {
4481 .eraseblocks = { {4 * 1024, 128} },
4482 .block_erase = spi_block_erase_20,
4483 }, {
4484 .eraseblocks = { {64 * 1024, 8} },
4485 .block_erase = spi_block_erase_52,
4486 }, {
4487 .eraseblocks = { {64 * 1024, 8} },
4488 .block_erase = spi_block_erase_d8,
4489 }, {
4490 .eraseblocks = { {512 * 1024, 1} },
4491 .block_erase = spi_block_erase_60,
4492 }, {
4493 .eraseblocks = { {512 * 1024, 1} },
4494 .block_erase = spi_block_erase_c7,
4495 },
4496 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004497 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004498 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004499 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004500 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004501 },
4502
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004503 {
4504 .vendor = "Macronix",
4505 .name = "MX25L8005",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004506 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004507 .manufacture_id = MACRONIX_ID,
4508 .model_id = MACRONIX_MX25L8005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004509 .total_size = 1024,
4510 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004511 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +00004512 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004513 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004514 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004515 .block_erasers =
4516 {
4517 {
4518 .eraseblocks = { {4 * 1024, 256} },
4519 .block_erase = spi_block_erase_20,
4520 }, {
4521 .eraseblocks = { {64 * 1024, 16} },
4522 .block_erase = spi_block_erase_52,
4523 }, {
4524 .eraseblocks = { {64 * 1024, 16} },
4525 .block_erase = spi_block_erase_d8,
4526 }, {
4527 .eraseblocks = { {1024 * 1024, 1} },
4528 .block_erase = spi_block_erase_60,
4529 }, {
4530 .eraseblocks = { {1024 * 1024, 1} },
4531 .block_erase = spi_block_erase_c7,
4532 },
4533 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004534 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004535 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004536 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004537 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004538 },
4539
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004540 {
4541 .vendor = "Macronix",
4542 .name = "MX25L1605",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004543 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004544 .manufacture_id = MACRONIX_ID,
4545 .model_id = MACRONIX_MX25L1605,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004546 .total_size = 2048,
4547 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004548 .feature_bits = FEATURE_WRSR_WREN,
Sven Schnelle4bd8a402011-03-07 10:59:06 +00004549 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004550 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004551 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00004552 .block_erasers =
4553 {
4554 {
4555 .eraseblocks = { {4 * 1024, 512} },
4556 .block_erase = spi_block_erase_20, /* This erase function has 64k blocksize for eLiteFlash */
4557 }, {
4558 .eraseblocks = { {64 * 1024, 32} }, /* Not supported in MX25L1605 (eLiteFlash) and MX25L1605D */
4559 .block_erase = spi_block_erase_52,
4560 }, {
4561 .eraseblocks = { {64 * 1024, 32} },
4562 .block_erase = spi_block_erase_d8,
4563 }, {
4564 .eraseblocks = { {2 * 1024 * 1024, 1} },
4565 .block_erase = spi_block_erase_60,
4566 }, {
4567 .eraseblocks = { {2 * 1024 * 1024, 1} },
4568 .block_erase = spi_block_erase_c7,
4569 },
4570 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004571 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004572 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004573 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004574 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004575 },
4576
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004577 {
4578 .vendor = "Macronix",
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004579 .name = "MX25L1635D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004580 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004581 .manufacture_id = MACRONIX_ID,
4582 .model_id = MACRONIX_MX25L1635D,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004583 .total_size = 2048,
4584 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004585 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004586 .tested = TEST_UNTESTED,
4587 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004588 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004589 .block_erasers =
4590 {
4591 {
4592 .eraseblocks = { {4 * 1024, 512} },
4593 .block_erase = spi_block_erase_20,
4594 }, {
4595 .eraseblocks = { {64 * 1024, 32} },
4596 .block_erase = spi_block_erase_d8,
4597 }, {
4598 .eraseblocks = { {2 * 1024 * 1024, 1} },
4599 .block_erase = spi_block_erase_60,
4600 }, {
4601 .eraseblocks = { {2 * 1024 * 1024, 1} },
4602 .block_erase = spi_block_erase_c7,
4603 }
4604 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004605 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004606 .write = spi_chip_write_256,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004607 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004608 .voltage = {2700, 3600},
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004609 },
Stephan Guillouxfd315502009-04-20 22:54:13 +00004610
Stephan Guillouxf5c70902009-04-19 23:04:00 +00004611 {
4612 .vendor = "Macronix",
Stephan Guilloux3611b802010-09-13 19:59:28 +00004613 .name = "MX25L1635E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004614 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004615 .manufacture_id = MACRONIX_ID,
4616 .model_id = MACRONIX_MX25L1635E,
Stephan Guilloux3611b802010-09-13 19:59:28 +00004617 .total_size = 2048,
4618 .page_size = 256,
4619 .feature_bits = FEATURE_WRSR_WREN,
4620 .tested = TEST_UNTESTED,
4621 .probe = probe_spi_rdid,
4622 .probe_timing = TIMING_ZERO,
4623 .block_erasers =
4624 {
4625 {
4626 .eraseblocks = { {4 * 1024, 512} },
4627 .block_erase = spi_block_erase_20,
4628 }, {
4629 .eraseblocks = { {64 * 1024, 32} },
4630 .block_erase = spi_block_erase_d8,
4631 }, {
4632 .eraseblocks = { {2 * 1024 * 1024, 1} },
4633 .block_erase = spi_block_erase_60,
4634 }, {
4635 .eraseblocks = { {2 * 1024 * 1024, 1} },
4636 .block_erase = spi_block_erase_c7,
4637 }
4638 },
4639 .unlock = spi_disable_blockprotect,
4640 .write = spi_chip_write_256,
4641 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004642 .voltage = {2700, 3600},
Stephan Guilloux3611b802010-09-13 19:59:28 +00004643 },
4644
4645 {
4646 .vendor = "Macronix",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004647 .name = "MX25L3205",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004648 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004649 .manufacture_id = MACRONIX_ID,
4650 .model_id = MACRONIX_MX25L3205,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004651 .total_size = 4096,
4652 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004653 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00004654 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004655 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004656 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004657 .block_erasers =
4658 {
4659 {
4660 .eraseblocks = { {4 * 1024, 1024} },
4661 .block_erase = spi_block_erase_20,
4662 }, {
4663 .eraseblocks = { {4 * 1024, 1024} },
4664 .block_erase = spi_block_erase_d8,
4665 }, {
4666 .eraseblocks = { {4 * 1024 * 1024, 1} },
4667 .block_erase = spi_block_erase_60,
4668 }, {
4669 .eraseblocks = { {4 * 1024 * 1024, 1} },
4670 .block_erase = spi_block_erase_c7,
4671 },
4672 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004673 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004674 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004675 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004676 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004677 },
4678
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004679 {
4680 .vendor = "Macronix",
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00004681 .name = "MX25L3235D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004682 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004683 .manufacture_id = MACRONIX_ID,
4684 .model_id = MACRONIX_MX25L3235D,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00004685 .total_size = 4096,
4686 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004687 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00004688 .tested = TEST_UNTESTED,
4689 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004690 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004691 .block_erasers =
4692 {
4693 {
4694 .eraseblocks = { {4 * 1024, 1024} },
4695 .block_erase = spi_block_erase_20,
4696 }, {
4697 .eraseblocks = { {64 * 1024, 64} },
4698 .block_erase = spi_block_erase_d8,
4699 }, {
4700 .eraseblocks = { {4 * 1024 * 1024, 1} },
4701 .block_erase = spi_block_erase_60,
4702 }, {
4703 .eraseblocks = { {4 * 1024 * 1024, 1} },
4704 .block_erase = spi_block_erase_c7,
4705 }
4706 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004707 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004708 .write = spi_chip_write_256,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00004709 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004710 .voltage = {2700, 3600},
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00004711 },
4712
4713 {
4714 .vendor = "Macronix",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004715 .name = "MX25L6405",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004716 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004717 .manufacture_id = MACRONIX_ID,
4718 .model_id = MACRONIX_MX25L6405,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004719 .total_size = 8192,
4720 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004721 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzelac427b22012-02-16 21:07:07 +00004722 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004723 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004724 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004725 .block_erasers =
4726 {
4727 {
4728 .eraseblocks = { {64 * 1024, 128} },
4729 .block_erase = spi_block_erase_20,
4730 }, {
4731 .eraseblocks = { {64 * 1024, 128} },
4732 .block_erase = spi_block_erase_d8,
4733 }, {
4734 .eraseblocks = { {8 * 1024 * 1024, 1} },
4735 .block_erase = spi_block_erase_60,
4736 }, {
4737 .eraseblocks = { {8 * 1024 * 1024, 1} },
4738 .block_erase = spi_block_erase_c7,
4739 }
4740 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004741 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004742 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004743 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004744 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00004745 },
4746
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004747 {
4748 .vendor = "Macronix",
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00004749 .name = "MX25L12805",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004750 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004751 .manufacture_id = MACRONIX_ID,
4752 .model_id = MACRONIX_MX25L12805,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00004753 .total_size = 16384,
4754 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00004755 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00004756 .tested = TEST_UNTESTED,
4757 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00004758 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004759 .block_erasers =
4760 {
4761 {
4762 .eraseblocks = { {4 * 1024, 4096} },
4763 .block_erase = spi_block_erase_20,
4764 }, {
4765 .eraseblocks = { {64 * 1024, 256} },
4766 .block_erase = spi_block_erase_d8,
4767 }, {
4768 .eraseblocks = { {16 * 1024 * 1024, 1} },
4769 .block_erase = spi_block_erase_60,
4770 }, {
4771 .eraseblocks = { {16 * 1024 * 1024, 1} },
4772 .block_erase = spi_block_erase_c7,
4773 }
4774 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004775 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00004776 .write = spi_chip_write_256,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00004777 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004778 .voltage = {2700, 3600},
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00004779 },
4780
4781 {
4782 .vendor = "Macronix",
Mark Panajotovic502a9132009-08-24 01:42:24 +00004783 .name = "MX29F001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004784 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004785 .manufacture_id = MACRONIX_ID,
4786 .model_id = MACRONIX_MX29F001B,
Mark Panajotovic502a9132009-08-24 01:42:24 +00004787 .total_size = 128,
4788 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004789 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
4790 .tested = TEST_UNTESTED,
4791 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00004792 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004793 .block_erasers =
4794 {
4795 {
4796 .eraseblocks = {
4797 {8 * 1024, 1},
4798 {4 * 1024, 2},
4799 {8 * 1024, 2},
4800 {32 * 1024, 1},
4801 {64 * 1024, 1},
4802 },
Sean Nelson35727f72010-01-28 23:55:12 +00004803 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00004804 }, {
4805 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004806 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00004807 }
4808 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004809 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00004810 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004811 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00004812 },
4813
4814 {
4815 .vendor = "Macronix",
4816 .name = "MX29F001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004817 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004818 .manufacture_id = MACRONIX_ID,
4819 .model_id = MACRONIX_MX29F001T,
Mark Panajotovic502a9132009-08-24 01:42:24 +00004820 .total_size = 128,
4821 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004822 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stefan Tauner74c6ec62011-05-18 01:31:46 +00004823 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00004824 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00004825 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004826 .block_erasers =
4827 {
4828 {
4829 .eraseblocks = {
4830 {64 * 1024, 1},
4831 {32 * 1024, 1},
4832 {8 * 1024, 2},
4833 {4 * 1024, 2},
4834 {8 * 1024, 1},
4835 },
Sean Nelson35727f72010-01-28 23:55:12 +00004836 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00004837 }, {
4838 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004839 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00004840 }
4841 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004842 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00004843 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004844 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00004845 },
4846
4847 {
4848 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00004849 .name = "MX29F002(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004850 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004851 .manufacture_id = MACRONIX_ID,
4852 .model_id = MACRONIX_MX29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004853 .total_size = 256,
4854 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004855 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004856 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00004857 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00004858 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004859 .block_erasers =
4860 {
4861 {
4862 .eraseblocks = {
4863 {16 * 1024, 1},
4864 {8 * 1024, 2},
4865 {32 * 1024, 1},
4866 {64 * 1024, 3},
4867 },
Sean Nelson35727f72010-01-28 23:55:12 +00004868 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004869 }, {
4870 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004871 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004872 },
4873 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004874 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004875 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004876 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004877 },
4878
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004879 {
4880 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00004881 .name = "MX29F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004882 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004883 .manufacture_id = MACRONIX_ID,
4884 .model_id = MACRONIX_MX29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004885 .total_size = 256,
4886 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004887 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00004888 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00004889 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00004890 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004891 .block_erasers =
4892 {
4893 {
4894 .eraseblocks = {
4895 {64 * 1024, 3},
4896 {32 * 1024, 1},
4897 {8 * 1024, 2},
4898 {16 * 1024, 1},
4899 },
Sean Nelson35727f72010-01-28 23:55:12 +00004900 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004901 }, {
4902 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004903 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00004904 },
4905 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004906 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004907 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004908 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00004909 },
4910
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004911 {
4912 .vendor = "Macronix",
Joshua Roysf1324e02010-09-16 00:51:51 +00004913 .name = "MX29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004914 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00004915 .manufacture_id = MACRONIX_ID,
4916 .model_id = MACRONIX_MX29F040,
4917 .total_size = 512,
4918 .page_size = 64 * 1024,
4919 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
4920 .tested = TEST_UNTESTED,
4921 .probe = probe_jedec,
4922 .probe_timing = TIMING_ZERO,
4923 .block_erasers =
4924 {
4925 {
4926 .eraseblocks = { {64 * 1024, 8} },
4927 .block_erase = erase_sector_jedec,
4928 }, {
4929 .eraseblocks = { {512 * 1024, 1} },
4930 .block_erase = erase_chip_block_jedec,
4931 },
4932 },
4933 .write = write_jedec_1,
4934 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00004935 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00004936 },
4937
4938 {
4939 .vendor = "Macronix",
Carl-Daniel Hailfinger350a0c32009-07-24 13:59:27 +00004940 .name = "MX29LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004941 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004942 .manufacture_id = MACRONIX_ID,
4943 .model_id = MACRONIX_MX29LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004944 .total_size = 512,
4945 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00004946 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
4947 .tested = TEST_UNTESTED,
4948 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00004949 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004950 .block_erasers =
4951 {
4952 {
4953 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson35727f72010-01-28 23:55:12 +00004954 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00004955 }, {
4956 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00004957 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00004958 },
4959 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00004960 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00004961 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004962 .voltage = {2700, 3600},
Carl-Daniel Hailfinger7de86392008-12-10 10:32:05 +00004963 },
4964
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00004965 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00004966 .vendor = "MoselVitelic",
4967 .name = "V29C51000B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004968 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00004969 .manufacture_id = SYNCMOS_MVC_ID,
4970 .model_id = MVC_V29C51000B,
4971 .total_size = 64,
4972 .page_size = 512,
4973 .feature_bits = FEATURE_EITHER_RESET,
4974 .tested = TEST_UNTESTED,
4975 .probe = probe_jedec,
4976 .probe_timing = TIMING_ZERO,
4977 .block_erasers =
4978 {
4979 {
4980 .eraseblocks = { {512, 128} },
4981 .block_erase = erase_sector_jedec,
4982 }, {
4983 .eraseblocks = { {64 * 1024, 1} },
4984 .block_erase = erase_chip_block_jedec,
4985 },
4986 },
4987 .write = write_jedec_1,
4988 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004989 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00004990 },
4991
4992 {
4993 .vendor = "MoselVitelic",
4994 .name = "V29C51000T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004995 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00004996 .manufacture_id = SYNCMOS_MVC_ID,
4997 .model_id = MVC_V29C51000T,
4998 .total_size = 64,
4999 .page_size = 512,
5000 .feature_bits = FEATURE_EITHER_RESET,
5001 .tested = TEST_UNTESTED,
5002 .probe = probe_jedec,
5003 .probe_timing = TIMING_ZERO,
5004 .block_erasers =
5005 {
5006 {
5007 .eraseblocks = { {512, 128} },
5008 .block_erase = erase_sector_jedec,
5009 }, {
5010 .eraseblocks = { {64 * 1024, 1} },
5011 .block_erase = erase_chip_block_jedec,
5012 },
5013 },
5014 .write = write_jedec_1,
5015 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005016 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00005017 },
5018
5019 {
5020 .vendor = "MoselVitelic",
5021 .name = "V29C51400B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005022 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00005023 .manufacture_id = SYNCMOS_MVC_ID,
5024 .model_id = MVC_V29C51400B,
5025 .total_size = 512,
5026 .page_size = 1024,
5027 .feature_bits = FEATURE_EITHER_RESET,
5028 .tested = TEST_UNTESTED,
5029 .probe = probe_jedec,
5030 .probe_timing = TIMING_ZERO,
5031 .block_erasers =
5032 {
5033 {
5034 .eraseblocks = { {1024, 512} },
5035 .block_erase = erase_sector_jedec,
5036 }, {
5037 .eraseblocks = { {512 * 1024, 1} },
5038 .block_erase = erase_chip_block_jedec,
5039 },
5040 },
5041 .write = write_jedec_1,
5042 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005043 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00005044 },
5045
5046 {
5047 .vendor = "MoselVitelic",
5048 .name = "V29C51400T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005049 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00005050 .manufacture_id = SYNCMOS_MVC_ID,
5051 .model_id = MVC_V29C51400T,
5052 .total_size = 512,
5053 .page_size = 1024,
5054 .feature_bits = FEATURE_EITHER_RESET,
5055 .tested = TEST_UNTESTED,
5056 .probe = probe_jedec,
5057 .probe_timing = TIMING_ZERO,
5058 .block_erasers =
5059 {
5060 {
5061 .eraseblocks = { {1024, 512} },
5062 .block_erase = erase_sector_jedec,
5063 }, {
5064 .eraseblocks = { {512 * 1024, 1} },
5065 .block_erase = erase_chip_block_jedec,
5066 },
5067 },
5068 .write = write_jedec_1,
5069 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005070 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00005071 },
5072
5073 {
5074 .vendor = "MoselVitelic",
5075 .name = "V29LC51000",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005076 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00005077 .manufacture_id = SYNCMOS_MVC_ID,
5078 .model_id = MVC_V29LC51000,
5079 .total_size = 64,
5080 .page_size = 512,
5081 .feature_bits = FEATURE_EITHER_RESET,
5082 .tested = TEST_UNTESTED,
5083 .probe = probe_jedec,
5084 .probe_timing = TIMING_ZERO,
5085 .block_erasers =
5086 {
5087 {
5088 .eraseblocks = { {512, 128} },
5089 .block_erase = erase_sector_jedec,
5090 }, {
5091 .eraseblocks = { {64 * 1024, 1} },
5092 .block_erase = erase_chip_block_jedec,
5093 },
5094 },
5095 .write = write_jedec_1,
5096 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005097 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00005098 },
5099
5100 {
5101 .vendor = "MoselVitelic",
5102 .name = "V29LC51001",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005103 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00005104 .manufacture_id = SYNCMOS_MVC_ID,
5105 .model_id = MVC_V29LC51001,
5106 .total_size = 128,
5107 .page_size = 512,
5108 .feature_bits = FEATURE_EITHER_RESET,
5109 .tested = TEST_UNTESTED,
5110 .probe = probe_jedec,
5111 .probe_timing = TIMING_ZERO,
5112 .block_erasers =
5113 {
5114 {
5115 .eraseblocks = { {512, 256} },
5116 .block_erase = erase_sector_jedec,
5117 }, {
5118 .eraseblocks = { {128 * 1024, 1} },
5119 .block_erase = erase_chip_block_jedec,
5120 },
5121 },
5122 .write = write_jedec_1,
5123 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005124 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00005125 },
5126
5127 {
5128 .vendor = "MoselVitelic",
5129 .name = "V29LC51002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005130 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00005131 .manufacture_id = SYNCMOS_MVC_ID,
5132 .model_id = MVC_V29LC51002,
5133 .total_size = 256,
5134 .page_size = 512,
5135 .feature_bits = FEATURE_EITHER_RESET,
5136 .tested = TEST_UNTESTED,
5137 .probe = probe_jedec,
5138 .probe_timing = TIMING_ZERO,
5139 .block_erasers =
5140 {
5141 {
5142 .eraseblocks = { {512, 512} },
5143 .block_erase = erase_sector_jedec,
5144 }, {
5145 .eraseblocks = { {256 * 1024, 1} },
5146 .block_erase = erase_chip_block_jedec,
5147 },
5148 },
5149 .write = write_jedec_1,
5150 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005151 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00005152 },
5153
5154 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005155 .vendor = "Numonyx",
5156 .name = "M25PE10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005157 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005158 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005159 .model_id = ST_M25PE10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005160 .total_size = 128,
5161 .page_size = 256,
5162 .tested = TEST_UNTESTED,
5163 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005164 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005165 .block_erasers =
5166 {
5167 {
5168 .eraseblocks = { {4 * 1024, 32} },
5169 .block_erase = spi_block_erase_20,
5170 }, {
5171 .eraseblocks = { {64 * 1024, 2} },
5172 .block_erase = spi_block_erase_d8,
5173 }, {
5174 .eraseblocks = { {128 * 1024, 1} },
5175 .block_erase = spi_block_erase_c7,
5176 }
5177 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005178 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005179 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005180 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005181 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005182 },
5183
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005184 {
5185 .vendor = "Numonyx",
5186 .name = "M25PE20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005187 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005188 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005189 .model_id = ST_M25PE20,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005190 .total_size = 256,
5191 .page_size = 256,
5192 .tested = TEST_UNTESTED,
5193 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005194 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005195 .block_erasers =
5196 {
5197 {
5198 .eraseblocks = { {4 * 1024, 64} },
5199 .block_erase = spi_block_erase_20,
5200 }, {
5201 .eraseblocks = { {64 * 1024, 4} },
5202 .block_erase = spi_block_erase_d8,
5203 }, {
5204 .eraseblocks = { {256 * 1024, 1} },
5205 .block_erase = spi_block_erase_c7,
5206 }
5207 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005208 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005209 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005210 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005211 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005212 },
5213
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005214 {
5215 .vendor = "Numonyx",
5216 .name = "M25PE40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005217 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005218 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005219 .model_id = ST_M25PE40,
Sean Nelson5643c072010-01-19 03:23:07 +00005220 .total_size = 512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005221 .page_size = 256,
5222 .tested = TEST_UNTESTED,
5223 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005224 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005225 .block_erasers =
5226 {
5227 {
5228 .eraseblocks = { {4 * 1024, 128} },
5229 .block_erase = spi_block_erase_20,
5230 }, {
5231 .eraseblocks = { {64 * 1024, 8} },
5232 .block_erase = spi_block_erase_d8,
5233 }, {
5234 .eraseblocks = { {512 * 1024, 1} },
5235 .block_erase = spi_block_erase_c7,
5236 }
5237 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005238 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005239 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005240 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005241 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005242 },
5243
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005244 {
5245 .vendor = "Numonyx",
5246 .name = "M25PE80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005247 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005248 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005249 .model_id = ST_M25PE80,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005250 .total_size = 1024,
5251 .page_size = 256,
Paul Menzelac427b22012-02-16 21:07:07 +00005252 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005253 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005254 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005255 .block_erasers =
5256 {
5257 {
5258 .eraseblocks = { {4 * 1024, 256} },
5259 .block_erase = spi_block_erase_20,
5260 }, {
5261 .eraseblocks = { {64 * 1024, 16} },
5262 .block_erase = spi_block_erase_d8,
5263 }, {
5264 .eraseblocks = { {1024 * 1024, 1} },
5265 .block_erase = spi_block_erase_c7,
5266 }
5267 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005268 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005269 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005270 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005271 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005272 },
5273
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005274 {
5275 .vendor = "Numonyx",
5276 .name = "M25PE16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005277 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005278 .manufacture_id = ST_ID,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00005279 .model_id = ST_M25PE16,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005280 .total_size = 2048,
5281 .page_size = 256,
5282 .tested = TEST_UNTESTED,
5283 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005284 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005285 .block_erasers =
5286 {
5287 {
5288 .eraseblocks = { {4 * 1024, 512} },
5289 .block_erase = spi_block_erase_20,
5290 }, {
5291 .eraseblocks = { {64 * 1024, 32} },
5292 .block_erase = spi_block_erase_d8,
5293 }, {
5294 .eraseblocks = { {2 * 1024 * 1024, 1} },
5295 .block_erase = spi_block_erase_c7,
5296 }
5297 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005298 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005299 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005300 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005301 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005302 },
5303
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005304 {
Niklas Söderlundae4294f2012-04-14 21:04:03 +00005305 .vendor = "Numonyx",
5306 .name = "N25Q064",
5307 .bustype = BUS_SPI,
5308 .manufacture_id = ST_ID,
5309 .model_id = ST_N25Q064,
5310 .total_size = 8192,
5311 .page_size = 256,
5312 .tested = TEST_OK_PREW,
5313 .probe = probe_spi_rdid,
5314 .probe_timing = TIMING_ZERO,
5315 .block_erasers =
5316 {
5317 {
5318 .eraseblocks = { {4 * 1024, 2048 } },
5319 .block_erase = spi_block_erase_20,
5320 }, {
5321 .eraseblocks = { {64 * 1024, 128} },
5322 .block_erase = spi_block_erase_d8,
5323 }, {
5324 .eraseblocks = { {8 * 1024 * 1024, 1} },
5325 .block_erase = spi_block_erase_c7,
5326 }
5327 },
5328 .unlock = spi_disable_blockprotect,
5329 .write = spi_chip_write_256,
5330 .read = spi_chip_read,
5331 },
5332
5333 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005334 .vendor = "PMC",
5335 .name = "Pm25LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005336 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005337 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005338 .model_id = PMC_PM25LV010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005339 .total_size = 128,
5340 .page_size = 256,
5341 .tested = TEST_UNTESTED,
5342 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005343 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005344 .block_erasers =
5345 {
5346 {
5347 .eraseblocks = { {4 * 1024, 32} },
5348 .block_erase = spi_block_erase_d7,
5349 }, {
5350 .eraseblocks = { {32 * 1024, 4} },
5351 .block_erase = spi_block_erase_d8,
5352 }, {
5353 .eraseblocks = { {128 * 1024, 1} },
5354 .block_erase = spi_block_erase_c7,
5355 }
5356 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005357 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005358 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005359 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005360 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005361 },
5362
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005363 {
5364 .vendor = "PMC",
5365 .name = "Pm25LV016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005366 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005367 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005368 .model_id = PMC_PM25LV016B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005369 .total_size = 2048,
5370 .page_size = 256,
5371 .tested = TEST_UNTESTED,
5372 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005373 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005374 .block_erasers =
5375 {
5376 {
5377 .eraseblocks = { {4 * 1024, 512} },
5378 .block_erase = spi_block_erase_d7,
5379 }, {
5380 .eraseblocks = { {4 * 1024, 512} },
5381 .block_erase = spi_block_erase_20,
5382 }, {
5383 .eraseblocks = { {64 * 1024, 32} },
5384 .block_erase = spi_block_erase_d8,
5385 }, {
5386 .eraseblocks = { {2 * 1024 * 1024, 1} },
5387 .block_erase = spi_block_erase_60,
5388 }, {
5389 .eraseblocks = { {2 * 1024 * 1024, 1} },
5390 .block_erase = spi_block_erase_c7,
5391 }
5392 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005393 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005394 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005395 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005396 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005397 },
5398
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005399 {
5400 .vendor = "PMC",
5401 .name = "Pm25LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005402 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005403 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005404 .model_id = PMC_PM25LV020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005405 .total_size = 256,
5406 .page_size = 256,
5407 .tested = TEST_UNTESTED,
5408 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005409 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005410 .block_erasers =
5411 {
5412 {
5413 .eraseblocks = { {4 * 1024, 64} },
5414 .block_erase = spi_block_erase_d7,
5415 }, {
5416 .eraseblocks = { {64 * 1024, 4} },
5417 .block_erase = spi_block_erase_d8,
5418 }, {
5419 .eraseblocks = { {256 * 1024, 1} },
5420 .block_erase = spi_block_erase_c7,
5421 }
5422 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005423 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005424 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005425 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005426 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005427 },
5428
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005429 {
5430 .vendor = "PMC",
5431 .name = "Pm25LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005432 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005433 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005434 .model_id = PMC_PM25LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005435 .total_size = 512,
5436 .page_size = 256,
Stefan Tauner716e0982011-07-25 20:38:52 +00005437 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005438 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005439 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005440 .block_erasers =
5441 {
5442 {
5443 .eraseblocks = { {4 * 1024, 128} },
5444 .block_erase = spi_block_erase_d7,
5445 }, {
5446 .eraseblocks = { {64 * 1024, 8} },
5447 .block_erase = spi_block_erase_d8,
5448 }, {
5449 .eraseblocks = { {512 * 1024, 1} },
5450 .block_erase = spi_block_erase_c7,
5451 }
5452 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005453 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005454 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005455 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005456 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005457 },
5458
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005459 {
5460 .vendor = "PMC",
5461 .name = "Pm25LV080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005462 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005463 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005464 .model_id = PMC_PM25LV080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005465 .total_size = 1024,
5466 .page_size = 256,
5467 .tested = TEST_UNTESTED,
5468 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005469 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005470 .block_erasers =
5471 {
5472 {
5473 .eraseblocks = { {4 * 1024, 256} },
5474 .block_erase = spi_block_erase_d7,
5475 }, {
5476 .eraseblocks = { {4 * 1024, 256} },
5477 .block_erase = spi_block_erase_20,
5478 }, {
5479 .eraseblocks = { {64 * 1024, 16} },
5480 .block_erase = spi_block_erase_d8,
5481 }, {
5482 .eraseblocks = { {1024 * 1024, 1} },
5483 .block_erase = spi_block_erase_60,
5484 }, {
5485 .eraseblocks = { {1024 * 1024, 1} },
5486 .block_erase = spi_block_erase_c7,
5487 }
5488 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005489 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005490 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005491 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005492 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005493 },
5494
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005495 {
5496 .vendor = "PMC",
5497 .name = "Pm25LV512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005498 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005499 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005500 .model_id = PMC_PM25LV512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005501 .total_size = 64,
5502 .page_size = 256,
5503 .tested = TEST_UNTESTED,
5504 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005505 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005506 .block_erasers =
5507 {
5508 {
5509 .eraseblocks = { {4 * 1024, 16} },
5510 .block_erase = spi_block_erase_d7,
5511 }, {
5512 .eraseblocks = { {32 * 1024, 2} },
5513 .block_erase = spi_block_erase_d8,
5514 }, {
5515 .eraseblocks = { {64 * 1024, 1} },
5516 .block_erase = spi_block_erase_c7,
5517 }
5518 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005519 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005520 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005521 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005522 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005523 },
5524
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005525 {
5526 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00005527 .name = "Pm29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005528 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005529 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005530 .model_id = PMC_PM29F002T,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005531 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00005532 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005533 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +00005534 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00005535 .probe = probe_jedec,
Stefan Tauneraf2db612011-12-02 21:48:17 +00005536 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00005537 .block_erasers =
5538 {
5539 {
5540 .eraseblocks = {
5541 {128 * 1024, 1},
5542 {96 * 1024, 1},
5543 {8 * 1024, 2},
5544 {16 * 1024, 1},
5545 },
Sean Nelson35727f72010-01-28 23:55:12 +00005546 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00005547 }, {
5548 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005549 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00005550 },
5551 },
Sean Nelson35727f72010-01-28 23:55:12 +00005552 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005553 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005554 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005555 },
5556
5557 {
5558 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +00005559 .name = "Pm29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005560 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005561 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005562 .model_id = PMC_PM29F002B,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005563 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +00005564 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005565 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005566 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00005567 .probe = probe_jedec,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005568 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +00005569 .block_erasers =
5570 {
5571 {
5572 .eraseblocks = {
5573 {16 * 1024, 1},
5574 {8 * 1024, 2},
5575 {96 * 1024, 1},
5576 {128 * 1024, 1},
5577 },
Sean Nelson35727f72010-01-28 23:55:12 +00005578 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00005579 }, {
5580 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005581 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +00005582 },
5583 },
Sean Nelson35727f72010-01-28 23:55:12 +00005584 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005585 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005586 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +00005587 },
5588
5589 {
5590 .vendor = "PMC",
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00005591 .name = "Pm39LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005592 .bustype = BUS_PARALLEL,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00005593 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005594 .model_id = PMC_PM39F010, /* Pm39LV010 and Pm39F010 have identical IDs but different voltage */
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00005595 .total_size = 128,
5596 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00005597 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00005598 .tested = TEST_OK_PREW,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00005599 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005600 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson5643c072010-01-19 03:23:07 +00005601 .block_erasers =
5602 {
5603 {
5604 .eraseblocks = { {4 * 1024, 32} },
5605 .block_erase = erase_sector_jedec,
5606 }, {
5607 .eraseblocks = { {64 * 1024, 2} },
5608 .block_erase = erase_block_jedec,
5609 }, {
5610 .eraseblocks = { {128 * 1024, 1} },
5611 .block_erase = erase_chip_block_jedec,
5612 }
5613 },
Sean Nelson35727f72010-01-28 23:55:12 +00005614 .write = write_jedec_1,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00005615 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005616 .voltage = {2700, 3600},
Rudolf Marek50fdf3b2009-05-17 17:02:07 +00005617 },
5618
5619 {
5620 .vendor = "PMC",
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005621 .name = "Pm39LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005622 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005623 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005624 .model_id = PMC_PM39LV020,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005625 .total_size = 256,
5626 .page_size = 4096,
5627 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
5628 .tested = TEST_UNTESTED,
5629 .probe = probe_jedec,
5630 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5631 .block_erasers =
5632 {
5633 {
5634 .eraseblocks = { {4 * 1024, 64} },
5635 .block_erase = erase_sector_jedec,
5636 }, {
5637 .eraseblocks = { {64 * 1024, 4} },
5638 .block_erase = erase_block_jedec,
5639 }, {
5640 .eraseblocks = { {256 * 1024, 1} },
5641 .block_erase = erase_chip_block_jedec,
5642 }
5643 },
5644 .write = write_jedec_1,
5645 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005646 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005647 },
5648
5649 {
5650 .vendor = "PMC",
5651 .name = "Pm39LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005652 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005653 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005654 .model_id = PMC_PM39LV040,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005655 .total_size = 512,
5656 .page_size = 4096,
5657 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00005658 .tested = TEST_OK_PR,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005659 .probe = probe_jedec,
5660 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
5661 .block_erasers =
5662 {
5663 {
5664 .eraseblocks = { {4 * 1024, 128} },
5665 .block_erase = erase_sector_jedec,
5666 }, {
5667 .eraseblocks = { {64 * 1024, 8} },
5668 .block_erase = erase_block_jedec,
5669 }, {
5670 .eraseblocks = { {512 * 1024, 1} },
5671 .block_erase = erase_chip_block_jedec,
5672 }
5673 },
5674 .write = write_jedec_1,
5675 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005676 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +00005677 },
5678
5679 {
5680 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005681 .name = "Pm49FL002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005682 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005683 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005684 .model_id = PMC_PM49FL002,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005685 .total_size = 256,
5686 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005687 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunerd06d9412011-06-12 19:47:55 +00005688 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00005689 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005690 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00005691 .block_erasers =
5692 {
5693 {
5694 .eraseblocks = { {4 * 1024, 64} },
5695 .block_erase = erase_sector_jedec,
5696 }, {
5697 .eraseblocks = { {16 * 1024, 16} },
5698 .block_erase = erase_block_jedec,
5699 }, {
5700 .eraseblocks = { {256 * 1024, 1} },
5701 .block_erase = erase_chip_block_jedec,
5702 }
5703 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00005704 .unlock = unlock_49fl00x,
Sean Nelson36172342010-02-27 18:01:15 +00005705 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005706 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005707 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005708 },
5709
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005710 {
5711 .vendor = "PMC",
5712 .name = "Pm49FL004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005713 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005714 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005715 .model_id = PMC_PM49FL004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005716 .total_size = 512,
5717 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005718 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00005719 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00005720 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005721 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +00005722 .block_erasers =
5723 {
5724 {
5725 .eraseblocks = { {4 * 1024, 128} },
5726 .block_erase = erase_sector_jedec,
5727 }, {
5728 .eraseblocks = { {64 * 1024, 8} },
5729 .block_erase = erase_block_jedec,
5730 }, {
5731 .eraseblocks = { {512 * 1024, 1} },
5732 .block_erase = erase_chip_block_jedec,
5733 }
5734 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00005735 .unlock = unlock_49fl00x,
Sean Nelson36172342010-02-27 18:01:15 +00005736 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005737 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005738 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005739 },
5740
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005741 {
Sean Nelsond70b09c2009-11-24 02:11:08 +00005742 .vendor = "Sanyo",
5743 .name = "LF25FW203A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005744 .bustype = BUS_SPI,
Sean Nelsond70b09c2009-11-24 02:11:08 +00005745 .manufacture_id = SANYO_ID,
5746 .model_id = SANYO_LE25FW203A,
5747 .total_size = 2048,
5748 .page_size = 256,
5749 .tested = TEST_UNTESTED,
5750 .probe = probe_spi_rdid,
5751 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005752 .block_erasers =
5753 {
5754 {
5755 .eraseblocks = { {64 * 1024, 32} },
5756 .block_erase = spi_block_erase_d8,
5757 }, {
5758 .eraseblocks = { {2 * 1024 * 1024, 1} },
5759 .block_erase = spi_block_erase_c7,
5760 }
5761 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005762 .unlock = spi_disable_blockprotect,
Sean Nelsond70b09c2009-11-24 02:11:08 +00005763 .write = spi_chip_write_256,
5764 .read = spi_chip_read,
5765 },
5766
5767 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005768 .vendor = "Sharp",
Mattias Mattssonfca3b012011-08-25 22:44:11 +00005769 .name = "LH28F008BJT-BTLZ1",
5770 .bustype = BUS_PARALLEL,
5771 .manufacture_id = SHARP_ID,
5772 .model_id = SHARP_LH28F008BJxxPB,
5773 .total_size = 1024,
5774 .page_size = 64 * 1024,
5775 .tested = TEST_OK_PREW,
5776 .probe = probe_82802ab,
5777 .probe_timing = TIMING_ZERO,
5778 .block_erasers =
5779 {
5780 {
5781 .eraseblocks = {
5782 {8 * 1024, 8},
5783 {64 * 1024, 15}
5784 },
5785 .block_erase = erase_block_82802ab,
5786 }, {
5787 .eraseblocks = { {1024 * 1024, 1} },
5788 .block_erase = erase_sector_49lfxxxc,
5789 }
5790 },
5791 .unlock = unlock_lh28f008bjt,
5792 .write = write_82802ab,
5793 .read = read_memmapped,
5794 .voltage = {2700, 3600},
5795 },
5796
5797 {
5798 .vendor = "Sharp",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005799 .name = "LHF00L04",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005800 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005801 .manufacture_id = SHARP_ID,
5802 .model_id = SHARP_LHF00L04,
5803 .total_size = 1024,
5804 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005805 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005806 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00005807 .probe = probe_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00005808 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00005809 .block_erasers =
5810 {
5811 {
5812 .eraseblocks = {
5813 {64 * 1024, 15},
5814 {8 * 1024, 8}
5815 },
Sean Nelson28accc22010-03-19 18:47:06 +00005816 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00005817 }, {
5818 .eraseblocks = {
5819 {1024 * 1024, 1}
5820 },
Sean Nelson51c83fb2010-01-20 20:55:53 +00005821 .block_erase = NULL, /* 30 D0, only in A/A mux mode */
Carl-Daniel Hailfingeraca1dce2010-01-07 21:23:45 +00005822 },
5823 },
Sean Nelson28accc22010-03-19 18:47:06 +00005824 .unlock = unlock_82802ab,
5825 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005826 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005827 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005828 },
5829
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005830 {
5831 .vendor = "Spansion",
Rudy Hostf4e57772010-11-29 00:37:49 +00005832 .name = "S25FL004A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005833 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00005834 .manufacture_id = SPANSION_ID,
5835 .model_id = SPANSION_S25FL004A,
5836 .total_size = 512,
5837 .page_size = 256,
5838 .tested = TEST_UNTESTED,
5839 .probe = probe_spi_rdid,
5840 .probe_timing = TIMING_ZERO,
5841 .block_erasers =
5842 {
5843 {
5844 .eraseblocks = { {64 * 1024, 8} },
5845 .block_erase = spi_block_erase_d8,
5846 }, {
5847 .eraseblocks = { {512 * 1024, 1} },
5848 .block_erase = spi_block_erase_c7,
5849 }
5850 },
5851 .unlock = spi_disable_blockprotect,
5852 .write = spi_chip_write_256,
5853 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005854 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00005855 },
5856
5857 {
5858 .vendor = "Spansion",
Michael Karcher23ff4602010-01-12 23:29:30 +00005859 .name = "S25FL008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005860 .bustype = BUS_SPI,
Michael Karcher23ff4602010-01-12 23:29:30 +00005861 .manufacture_id = SPANSION_ID,
5862 .model_id = SPANSION_S25FL008A,
5863 .total_size = 1024,
5864 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005865 .tested = TEST_OK_PRE,
Michael Karcher23ff4602010-01-12 23:29:30 +00005866 .probe = probe_spi_rdid,
5867 .probe_timing = TIMING_ZERO,
Michael Karcher23ff4602010-01-12 23:29:30 +00005868 .block_erasers =
5869 {
5870 {
5871 .eraseblocks = { {64 * 1024, 16} },
5872 .block_erase = spi_block_erase_d8,
5873 }, {
5874 .eraseblocks = { {1024 * 1024, 1} },
5875 .block_erase = spi_block_erase_c7,
5876 }
5877 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005878 .unlock = spi_disable_blockprotect,
Michael Karcher23ff4602010-01-12 23:29:30 +00005879 .write = spi_chip_write_256,
5880 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005881 .voltage = {2700, 3600},
Michael Karcher23ff4602010-01-12 23:29:30 +00005882 },
5883
5884 {
5885 .vendor = "Spansion",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005886 .name = "S25FL016A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005887 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005888 .manufacture_id = SPANSION_ID,
5889 .model_id = SPANSION_S25FL016A,
5890 .total_size = 2048,
5891 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005892 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005893 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00005894 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +00005895 .block_erasers =
5896 {
5897 {
5898 .eraseblocks = { {64 * 1024, 32} },
5899 .block_erase = spi_block_erase_d8,
5900 }, {
5901 .eraseblocks = { {2 * 1024 * 1024, 1} },
5902 .block_erase = spi_block_erase_c7,
5903 }
5904 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00005905 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00005906 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005907 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005908 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00005909 },
5910
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005911 {
Rudy Hostf4e57772010-11-29 00:37:49 +00005912 .vendor = "Spansion",
5913 .name = "S25FL032A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005914 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00005915 .manufacture_id = SPANSION_ID,
5916 .model_id = SPANSION_S25FL032A,
5917 .total_size = 4096,
5918 .page_size = 256,
5919 .tested = TEST_UNTESTED,
5920 .probe = probe_spi_rdid,
5921 .probe_timing = TIMING_ZERO,
5922 .block_erasers =
5923 {
5924 {
5925 .eraseblocks = { {64 * 1024, 64} },
5926 .block_erase = spi_block_erase_d8,
5927 }, {
5928 .eraseblocks = { {4 * 1024 * 1024, 1} },
5929 .block_erase = spi_block_erase_c7,
5930 }
5931 },
5932 .unlock = spi_disable_blockprotect,
5933 .write = spi_chip_write_256,
5934 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005935 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00005936 },
5937
5938 {
5939 .vendor = "Spansion",
5940 .name = "S25FL064A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005941 .bustype = BUS_SPI,
Rudy Hostf4e57772010-11-29 00:37:49 +00005942 .manufacture_id = SPANSION_ID,
5943 .model_id = SPANSION_S25FL064A,
5944 .total_size = 8192,
5945 .page_size = 256,
5946 .tested = TEST_OK_PREW,
5947 .probe = probe_spi_rdid,
5948 .probe_timing = TIMING_ZERO,
5949 .block_erasers =
5950 {
5951 {
5952 .eraseblocks = { {64 * 1024, 128} },
5953 .block_erase = spi_block_erase_d8,
5954 }, {
5955 .eraseblocks = { {8 * 1024 * 1024, 1} },
5956 .block_erase = spi_block_erase_c7,
5957 }
5958 },
5959 .unlock = spi_disable_blockprotect,
5960 .write = spi_chip_write_256,
5961 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005962 .voltage = {2700, 3600},
Rudy Hostf4e57772010-11-29 00:37:49 +00005963 },
5964
5965 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005966 .vendor = "SST",
Zeus Castro33670ba2011-08-17 09:50:11 +00005967 .name = "SST25LF040A",
5968 .bustype = BUS_SPI,
5969 .manufacture_id = SST_ID,
5970 .model_id = SST_SST25VF040_REMS,
5971 .total_size = 512,
5972 .page_size = 256,
Uwe Hermann4335ec82011-09-07 20:20:25 +00005973 .tested = TEST_OK_PREW,
Zeus Castro33670ba2011-08-17 09:50:11 +00005974 .probe = probe_spi_res2,
5975 .probe_timing = TIMING_ZERO,
5976 .block_erasers =
5977 {
5978 {
5979 .eraseblocks = { {4 * 1024, 128} },
5980 .block_erase = spi_block_erase_20,
5981 }, {
5982 .eraseblocks = { {32 * 1024, 16} },
5983 .block_erase = spi_block_erase_52,
5984 }, {
5985 .eraseblocks = { {512 * 1024, 1} },
5986 .block_erase = spi_block_erase_60,
5987 },
5988 },
5989 .unlock = spi_disable_blockprotect,
5990 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
5991 .read = spi_chip_read,
5992 .voltage = {3000, 3600},
5993 },
5994
5995 {
5996 .vendor = "SST",
5997 .name = "SST25LF080A",
5998 .bustype = BUS_SPI,
5999 .manufacture_id = SST_ID,
6000 .model_id = SST_SST25VF080_REMS,
6001 .total_size = 1024,
6002 .page_size = 256,
6003 .tested = TEST_UNTESTED,
6004 .probe = probe_spi_res2,
6005 .probe_timing = TIMING_ZERO,
6006 .block_erasers =
6007 {
6008 {
6009 .eraseblocks = { {4 * 1024, 256} },
6010 .block_erase = spi_block_erase_20,
6011 }, {
6012 .eraseblocks = { {32 * 1024, 32} },
6013 .block_erase = spi_block_erase_52,
6014 }, {
6015 .eraseblocks = { {1024 * 1024, 1} },
6016 .block_erase = spi_block_erase_60,
6017 },
6018 },
6019 .unlock = spi_disable_blockprotect,
6020 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
6021 .read = spi_chip_read,
6022 .voltage = {3000, 3600},
6023 },
6024
6025 {
6026 .vendor = "SST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006027 .name = "SST25VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006028 .bustype = BUS_SPI,
Mark Marshall90021f22010-12-03 14:48:11 +00006029 .manufacture_id = SST_ID,
6030 .model_id = SST_SST25VF010_REMS,
6031 .total_size = 128,
6032 .page_size = 256,
6033 .tested = TEST_OK_PREW,
6034 .probe = probe_spi_rems,
6035 .probe_timing = TIMING_ZERO,
6036 .block_erasers =
6037 {
6038 {
6039 .eraseblocks = { {4 * 1024, 32} },
6040 .block_erase = spi_block_erase_20,
6041 }, {
6042 .eraseblocks = { {32 * 1024, 4} },
6043 .block_erase = spi_block_erase_52,
6044 }, {
6045 .eraseblocks = { {128 * 1024, 1} },
6046 .block_erase = spi_block_erase_60,
6047 },
6048 },
6049 .unlock = spi_disable_blockprotect,
6050 .write = spi_chip_write_1,
6051 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006052 .voltage = {2700, 3600},
Mark Marshall90021f22010-12-03 14:48:11 +00006053 },
6054
6055 {
6056 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006057 .name = "SST25VF016B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006058 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006059 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006060 .model_id = SST_SST25VF016B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006061 .total_size = 2048,
6062 .page_size = 256,
Mark Marshall90021f22010-12-03 14:48:11 +00006063 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006064 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006065 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006066 .block_erasers =
6067 {
6068 {
6069 .eraseblocks = { {4 * 1024, 512} },
6070 .block_erase = spi_block_erase_20,
6071 }, {
6072 .eraseblocks = { {32 * 1024, 64} },
6073 .block_erase = spi_block_erase_52,
6074 }, {
6075 .eraseblocks = { {64 * 1024, 32} },
6076 .block_erase = spi_block_erase_d8,
6077 }, {
6078 .eraseblocks = { {2 * 1024 * 1024, 1} },
6079 .block_erase = spi_block_erase_60,
6080 }, {
6081 .eraseblocks = { {2 * 1024 * 1024, 1} },
6082 .block_erase = spi_block_erase_c7,
6083 },
6084 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006085 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00006086 .write = spi_aai_write,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006087 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006088 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006089 },
6090
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006091 {
6092 .vendor = "SST",
6093 .name = "SST25VF032B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006094 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006095 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006096 .model_id = SST_SST25VF032B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006097 .total_size = 4096,
6098 .page_size = 256,
Stefan Taunerfcf6a8c2011-05-18 01:32:00 +00006099 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006100 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006101 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006102 .block_erasers =
6103 {
6104 {
6105 .eraseblocks = { {4 * 1024, 1024} },
6106 .block_erase = spi_block_erase_20,
6107 }, {
6108 .eraseblocks = { {32 * 1024, 128} },
6109 .block_erase = spi_block_erase_52,
6110 }, {
6111 .eraseblocks = { {64 * 1024, 64} },
6112 .block_erase = spi_block_erase_d8,
6113 }, {
6114 .eraseblocks = { {4 * 1024 * 1024, 1} },
6115 .block_erase = spi_block_erase_60,
6116 }, {
6117 .eraseblocks = { {4 * 1024 * 1024, 1} },
6118 .block_erase = spi_block_erase_c7,
6119 },
6120 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006121 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +00006122 .write = spi_aai_write,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006123 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006124 .voltage = {2700, 3600},
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006125 },
6126
6127 {
6128 .vendor = "SST",
Ed Swierk86f4e6d2010-07-21 15:02:22 +00006129 .name = "SST25VF064C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006130 .bustype = BUS_SPI,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00006131 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006132 .model_id = SST_SST25VF064C,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00006133 .total_size = 8192,
6134 .page_size = 256,
Stefan Tauner8179be52011-06-04 13:13:34 +00006135 .tested = TEST_OK_PREW,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00006136 .probe = probe_spi_rdid,
6137 .probe_timing = TIMING_ZERO,
6138 .block_erasers =
6139 {
6140 {
6141 .eraseblocks = { {4 * 1024, 2048} },
6142 .block_erase = spi_block_erase_20,
6143 }, {
6144 .eraseblocks = { {32 * 1024, 256} },
6145 .block_erase = spi_block_erase_52,
6146 }, {
6147 .eraseblocks = { {64 * 1024, 128} },
6148 .block_erase = spi_block_erase_d8,
6149 }, {
6150 .eraseblocks = { {8 * 1024 * 1024, 1} },
6151 .block_erase = spi_block_erase_60,
6152 }, {
6153 .eraseblocks = { {8 * 1024 * 1024, 1} },
6154 .block_erase = spi_block_erase_c7,
6155 },
6156 },
6157 .unlock = spi_disable_blockprotect,
Helge Wagner1db7a442010-10-05 22:29:08 +00006158 .write = spi_chip_write_256,
Ed Swierk86f4e6d2010-07-21 15:02:22 +00006159 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006160 .voltage = {2700, 3600},
Ed Swierk86f4e6d2010-07-21 15:02:22 +00006161 },
6162
6163 {
6164 .vendor = "SST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006165 .name = "SST25VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006166 .bustype = BUS_SPI,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006167 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006168 .model_id = SST_SST25VF040_REMS,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006169 .total_size = 512,
6170 .page_size = 256,
6171 .tested = TEST_OK_PR,
6172 .probe = probe_spi_rems,
6173 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006174 .block_erasers =
6175 {
6176 {
6177 .eraseblocks = { {4 * 1024, 128} },
6178 .block_erase = spi_block_erase_20,
6179 }, {
6180 .eraseblocks = { {32 * 1024, 16} },
6181 .block_erase = spi_block_erase_52,
6182 }, {
6183 .eraseblocks = { {512 * 1024, 1} },
6184 .block_erase = spi_block_erase_60,
6185 },
6186 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006187 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00006188 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006189 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006190 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006191 },
6192
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006193 {
6194 .vendor = "SST",
6195 .name = "SST25VF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006196 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006197 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006198 .model_id = SST_SST25VF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006199 .total_size = 512,
6200 .page_size = 256,
6201 .tested = TEST_UNTESTED,
6202 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006203 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006204 .block_erasers =
6205 {
6206 {
6207 .eraseblocks = { {4 * 1024, 128} },
6208 .block_erase = spi_block_erase_20,
6209 }, {
6210 .eraseblocks = { {32 * 1024, 16} },
6211 .block_erase = spi_block_erase_52,
6212 }, {
6213 .eraseblocks = { {64 * 1024, 8} },
6214 .block_erase = spi_block_erase_d8,
6215 }, {
6216 .eraseblocks = { {512 * 1024, 1} },
6217 .block_erase = spi_block_erase_60,
6218 }, {
6219 .eraseblocks = { {512 * 1024, 1} },
6220 .block_erase = spi_block_erase_c7,
6221 },
6222 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006223 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00006224 .write = spi_aai_write,
Zheng Bao0677dff2009-02-25 08:07:33 +00006225 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006226 .voltage = {2700, 3600},
Zheng Bao0677dff2009-02-25 08:07:33 +00006227 },
6228
6229 {
6230 .vendor = "SST",
Peter Stugefd9217d2009-01-26 03:37:40 +00006231 .name = "SST25VF040B.REMS",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006232 .bustype = BUS_SPI,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006233 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006234 .model_id = SST_SST25VF040B_REMS,
Peter Stugefd9217d2009-01-26 03:37:40 +00006235 .total_size = 512,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006236 .page_size = 256,
Peter Stugefd9217d2009-01-26 03:37:40 +00006237 .tested = TEST_OK_PR,
6238 .probe = probe_spi_rems,
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, 128} },
6244 .block_erase = spi_block_erase_20,
6245 }, {
6246 .eraseblocks = { {32 * 1024, 16} },
6247 .block_erase = spi_block_erase_52,
6248 }, {
6249 .eraseblocks = { {64 * 1024, 8} },
6250 .block_erase = spi_block_erase_d8,
6251 }, {
6252 .eraseblocks = { {512 * 1024, 1} },
6253 .block_erase = spi_block_erase_60,
6254 }, {
6255 .eraseblocks = { {512 * 1024, 1} },
6256 .block_erase = spi_block_erase_c7,
6257 },
6258 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006259 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00006260 .write = spi_aai_write,
Peter Stugefd9217d2009-01-26 03:37:40 +00006261 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006262 .voltage = {2700, 3600},
Peter Stugefd9217d2009-01-26 03:37:40 +00006263 },
6264
6265 {
6266 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006267 .name = "SST25VF080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006268 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006269 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006270 .model_id = SST_SST25VF080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006271 .total_size = 1024,
6272 .page_size = 256,
John Schmergec965c2d2011-05-18 11:28:47 +00006273 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006274 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00006275 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +00006276 .block_erasers =
6277 {
6278 {
6279 .eraseblocks = { {4 * 1024, 256} },
6280 .block_erase = spi_block_erase_20,
6281 }, {
6282 .eraseblocks = { {32 * 1024, 32} },
6283 .block_erase = spi_block_erase_52,
6284 }, {
6285 .eraseblocks = { {64 * 1024, 16} },
6286 .block_erase = spi_block_erase_d8,
6287 }, {
6288 .eraseblocks = { {1024 * 1024, 1} },
6289 .block_erase = spi_block_erase_60,
6290 }, {
6291 .eraseblocks = { {1024 * 1024, 1} },
6292 .block_erase = spi_block_erase_c7,
6293 },
6294 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00006295 .unlock = spi_disable_blockprotect,
Joshua Roys87955bf2011-08-01 18:39:28 +00006296 .write = spi_aai_write,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006297 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006298 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006299 },
6300
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006301 {
6302 .vendor = "SST",
6303 .name = "SST28SF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006304 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006305 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006306 .model_id = SST_SST28SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006307 .total_size = 512,
6308 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00006309 .feature_bits = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006310 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006311 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00006312 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006313 .block_erasers =
6314 {
6315 {
6316 .eraseblocks = { {128, 4096} },
6317 .block_erase = erase_sector_28sf040,
6318 }, {
6319 .eraseblocks = { {512 * 1024, 1} },
6320 .block_erase = erase_chip_28sf040,
6321 }
6322 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00006323 .unlock = unprotect_28sf040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006324 .write = write_28sf040,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006325 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006326 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006327 },
6328
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006329 {
6330 .vendor = "SST",
6331 .name = "SST29EE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006332 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006333 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006334 .model_id = SST_SST29EE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006335 .total_size = 128,
6336 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00006337 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006338 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006339 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006340 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006341 .block_erasers =
6342 {
6343 {
6344 .eraseblocks = { {128 * 1024, 1} },
6345 .block_erase = erase_chip_block_jedec,
6346 }
6347 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006348 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006349 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006350 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006351 },
6352
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006353 {
6354 .vendor = "SST",
6355 .name = "SST29LE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006356 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006357 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006358 .model_id = SST_SST29LE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006359 .total_size = 128,
6360 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00006361 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006362 .tested = TEST_UNTESTED,
6363 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006364 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006365 .block_erasers =
6366 {
6367 {
6368 .eraseblocks = { {128 * 1024, 1} },
6369 .block_erase = erase_chip_block_jedec,
6370 }
6371 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006372 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006373 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006374 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006375 },
6376
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006377 {
6378 .vendor = "SST",
6379 .name = "SST29EE020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006380 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006381 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006382 .model_id = SST_SST29EE020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006383 .total_size = 256,
6384 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00006385 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006386 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006387 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006388 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006389 .block_erasers =
6390 {
6391 {
6392 .eraseblocks = { {256 * 1024, 1} },
6393 .block_erase = erase_chip_block_jedec,
6394 }
6395 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006396 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006397 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006398 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006399 },
6400
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006401 {
6402 .vendor = "SST",
6403 .name = "SST29LE020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006404 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006405 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006406 .model_id = SST_SST29LE020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006407 .total_size = 256,
6408 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00006409 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006410 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006411 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006412 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006413 .block_erasers =
6414 {
6415 {
6416 .eraseblocks = { {256 * 1024, 1} },
6417 .block_erase = erase_chip_block_jedec,
6418 }
6419 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006420 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006421 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006422 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006423 },
6424
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006425 {
6426 .vendor = "SST",
Uwe Hermann48da3f92010-01-23 15:15:19 +00006427 .name = "SST39SF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006428 .bustype = BUS_PARALLEL,
Uwe Hermann48da3f92010-01-23 15:15:19 +00006429 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006430 .model_id = SST_SST39SF512,
Uwe Hermann48da3f92010-01-23 15:15:19 +00006431 .total_size = 64,
6432 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006433 .feature_bits = FEATURE_EITHER_RESET,
Idwer Vollering7913fb42011-03-07 15:32:58 +00006434 .tested = TEST_OK_PREW,
Uwe Hermann48da3f92010-01-23 15:15:19 +00006435 .probe = probe_jedec,
6436 .probe_timing = 1, /* 150 ns */
Uwe Hermann48da3f92010-01-23 15:15:19 +00006437 .block_erasers =
6438 {
6439 {
6440 .eraseblocks = { {4 * 1024, 16} },
6441 .block_erase = erase_sector_jedec,
6442 }, {
6443 .eraseblocks = { {64 * 1024, 1} },
6444 .block_erase = erase_chip_block_jedec,
6445 }
6446 },
Sean Nelson35727f72010-01-28 23:55:12 +00006447 .write = write_jedec_1,
Uwe Hermann48da3f92010-01-23 15:15:19 +00006448 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006449 .voltage = {4500, 5500},
Uwe Hermann48da3f92010-01-23 15:15:19 +00006450 },
6451
6452 {
6453 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006454 .name = "SST39SF010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006455 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006456 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006457 .model_id = SST_SST39SF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006458 .total_size = 128,
6459 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006460 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00006461 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006462 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006463 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006464 .block_erasers =
6465 {
6466 {
6467 .eraseblocks = { {4 * 1024, 32} },
6468 .block_erase = erase_sector_jedec,
6469 }, {
6470 .eraseblocks = { {128 * 1024, 1} },
6471 .block_erase = erase_chip_block_jedec,
6472 }
6473 },
Sean Nelson35727f72010-01-28 23:55:12 +00006474 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006475 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006476 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006477 },
6478
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006479 {
6480 .vendor = "SST",
6481 .name = "SST39SF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006482 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006483 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006484 .model_id = SST_SST39SF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006485 .total_size = 256,
6486 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006487 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann19f46f22011-06-18 22:56:14 +00006488 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006489 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006490 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006491 .block_erasers =
6492 {
6493 {
6494 .eraseblocks = { {4 * 1024, 64} },
6495 .block_erase = erase_sector_jedec,
6496 }, {
6497 .eraseblocks = { {256 * 1024, 1} },
6498 .block_erase = erase_chip_block_jedec,
6499 }
6500 },
Sean Nelson35727f72010-01-28 23:55:12 +00006501 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006502 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006503 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006504 },
6505
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006506 {
6507 .vendor = "SST",
6508 .name = "SST39SF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006509 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006510 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006511 .model_id = SST_SST39SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006512 .total_size = 512,
6513 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006514 .feature_bits = FEATURE_EITHER_RESET,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00006515 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006516 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006517 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006518 .block_erasers =
6519 {
6520 {
6521 .eraseblocks = { {4 * 1024, 128} },
6522 .block_erase = erase_sector_jedec,
6523 }, {
6524 .eraseblocks = { {512 * 1024, 1} },
6525 .block_erase = erase_chip_block_jedec,
6526 }
6527 },
Sean Nelson35727f72010-01-28 23:55:12 +00006528 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006529 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006530 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006531 },
6532
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006533 {
6534 .vendor = "SST",
6535 .name = "SST39VF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006536 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006537 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006538 .model_id = SST_SST39VF512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006539 .total_size = 64,
6540 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006541 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006542 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006543 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006544 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006545 .block_erasers =
6546 {
6547 {
6548 .eraseblocks = { {4 * 1024, 16} },
6549 .block_erase = erase_sector_jedec,
6550 }, {
6551 .eraseblocks = { {64 * 1024, 1} },
6552 .block_erase = erase_chip_block_jedec,
6553 }
6554 },
Sean Nelson35727f72010-01-28 23:55:12 +00006555 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006556 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006557 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006558 },
6559
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006560 {
6561 .vendor = "SST",
6562 .name = "SST39VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006563 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006564 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006565 .model_id = SST_SST39VF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006566 .total_size = 128,
6567 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006568 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006569 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006570 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006571 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006572 .block_erasers =
6573 {
6574 {
6575 .eraseblocks = { {4 * 1024, 32} },
6576 .block_erase = erase_sector_jedec,
6577 }, {
6578 .eraseblocks = { {128 * 1024, 1} },
6579 .block_erase = erase_chip_block_jedec,
6580 }
6581 },
Sean Nelson35727f72010-01-28 23:55:12 +00006582 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006583 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006584 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006585 },
6586
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006587 {
6588 .vendor = "SST",
6589 .name = "SST39VF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006590 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006591 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006592 .model_id = SST_SST39VF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006593 .total_size = 256,
6594 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006595 .feature_bits = FEATURE_EITHER_RESET,
6596 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006597 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006598 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006599 .block_erasers =
6600 {
6601 {
6602 .eraseblocks = { {4 * 1024, 64} },
6603 .block_erase = erase_sector_jedec,
6604 }, {
6605 .eraseblocks = { {256 * 1024, 1} },
6606 .block_erase = erase_chip_block_jedec,
6607 }
6608 },
Sean Nelson35727f72010-01-28 23:55:12 +00006609 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006610 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006611 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006612 },
6613
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006614 {
6615 .vendor = "SST",
6616 .name = "SST39VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006617 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006618 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006619 .model_id = SST_SST39VF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006620 .total_size = 512,
6621 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006622 .feature_bits = FEATURE_EITHER_RESET,
6623 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006624 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006625 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006626 .block_erasers =
6627 {
6628 {
6629 .eraseblocks = { {4 * 1024, 128} },
6630 .block_erase = erase_sector_jedec,
6631 }, {
6632 .eraseblocks = { {512 * 1024, 1} },
6633 .block_erase = erase_chip_block_jedec,
6634 }
6635 },
Sean Nelson35727f72010-01-28 23:55:12 +00006636 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006637 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006638 .voltage = {2700, 3600},
Carl-Daniel Hailfinger90eff152008-12-08 23:51:45 +00006639 },
FENG yu ningff692fb2008-12-08 18:15:10 +00006640
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006641 {
6642 .vendor = "SST",
Peter Stuge8440cc02009-01-25 23:55:12 +00006643 .name = "SST39VF080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006644 .bustype = BUS_PARALLEL,
Mateusz Murawskie33890d2009-06-12 11:45:10 +00006645 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006646 .model_id = SST_SST39VF080,
Peter Stuge8440cc02009-01-25 23:55:12 +00006647 .total_size = 1024,
6648 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006649 .feature_bits = FEATURE_EITHER_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +00006650 .tested = TEST_UNTESTED,
6651 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006652 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006653 .block_erasers =
6654 {
6655 {
6656 .eraseblocks = { {4 * 1024, 256} },
6657 .block_erase = erase_sector_jedec,
6658 }, {
6659 .eraseblocks = { {64 * 1024, 16} },
6660 .block_erase = erase_block_jedec,
6661 }, {
6662 .eraseblocks = { {1024 * 1024, 1} },
6663 .block_erase = erase_chip_block_jedec,
6664 }
6665 },
Sean Nelson35727f72010-01-28 23:55:12 +00006666 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006667 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006668 .voltage = {2700, 3600},
Peter Stuge8440cc02009-01-25 23:55:12 +00006669 },
6670
6671 {
6672 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006673 .name = "SST49LF002A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006674 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006675 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006676 .model_id = SST_SST49LF002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006677 .total_size = 256,
6678 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006679 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00006680 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006681 .probe = probe_jedec,
6682 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006683 .block_erasers =
6684 {
6685 {
6686 .eraseblocks = { {4 * 1024, 64} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006687 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006688 }, {
6689 .eraseblocks = { {16 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006690 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006691 }, {
6692 .eraseblocks = { {256 * 1024, 1} },
6693 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
6694 }
6695 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006696 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006697 .unlock = unlock_sst_fwhub,
6698 .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 = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006701 },
6702
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006703 {
6704 .vendor = "SST",
6705 .name = "SST49LF003A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006706 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006707 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006708 .model_id = SST_SST49LF003A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006709 .total_size = 384,
6710 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006711 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Peter Lemenkov45835c42009-09-25 01:09:18 +00006712 .tested = TEST_OK_PR,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006713 .probe = probe_jedec,
6714 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006715 .block_erasers =
6716 {
6717 {
6718 .eraseblocks = { {4 * 1024, 96} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006719 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006720 }, {
6721 .eraseblocks = { {64 * 1024, 6} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006722 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006723 }, {
6724 .eraseblocks = { {384 * 1024, 1} },
6725 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
6726 }
6727 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006728 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006729 .unlock = unlock_sst_fwhub,
6730 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006731 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006732 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006733 },
6734
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006735 {
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00006736 /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB)
6737 * and is only honored for 64k block erase, but not 4k sector erase.
6738 */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006739 .vendor = "SST",
6740 .name = "SST49LF004A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006741 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006742 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006743 .model_id = SST_SST49LF004A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006744 .total_size = 512,
6745 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006746 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00006747 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006748 .probe = probe_jedec,
6749 .probe_timing = 1, /* 150 ns */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00006750 .block_erasers =
6751 {
6752 {
6753 .eraseblocks = { {4 * 1024, 128} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006754 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00006755 }, {
6756 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006757 .block_erase = erase_block_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00006758 }, {
6759 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson51c83fb2010-01-20 20:55:53 +00006760 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +00006761 },
6762 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006763 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006764 .unlock = unlock_sst_fwhub,
6765 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006766 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006767 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006768 },
6769
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006770 {
6771 .vendor = "SST",
6772 .name = "SST49LF004C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006773 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006774 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006775 .model_id = SST_SST49LF004C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006776 .total_size = 512,
6777 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006778 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006779 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006780 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00006781 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006782 .block_erasers =
6783 {
6784 {
6785 .eraseblocks = { {4 * 1024, 128} },
6786 .block_erase = erase_sector_49lfxxxc,
6787 }, {
6788 .eraseblocks = {
6789 {64 * 1024, 7},
6790 {32 * 1024, 1},
6791 {8 * 1024, 2},
6792 {16 * 1024, 1},
6793 },
Sean Nelson69e58112010-03-23 17:10:28 +00006794 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006795 }
6796 },
Sean Nelson69e58112010-03-23 17:10:28 +00006797 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00006798 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006799 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006800 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006801 },
6802
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006803 {
6804 .vendor = "SST",
6805 .name = "SST49LF008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006806 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006807 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006808 .model_id = SST_SST49LF008A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006809 .total_size = 1024,
6810 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006811 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00006812 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006813 .probe = probe_jedec,
6814 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006815 .block_erasers =
6816 {
6817 {
6818 .eraseblocks = { {4 * 1024, 256} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006819 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006820 }, {
6821 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006822 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006823 }, {
6824 .eraseblocks = { {1024 * 1024, 1} },
6825 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
6826 }
6827 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006828 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +00006829 .unlock = unlock_sst_fwhub,
6830 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006831 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006832 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006833 },
6834
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006835 {
6836 .vendor = "SST",
6837 .name = "SST49LF008C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006838 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006839 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006840 .model_id = SST_SST49LF008C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006841 .total_size = 1024,
6842 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006843 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006844 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006845 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00006846 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006847 .block_erasers =
6848 {
6849 {
6850 .eraseblocks = { {4 * 1024, 256} },
6851 .block_erase = erase_sector_49lfxxxc,
6852 }, {
6853 .eraseblocks = {
6854 {64 * 1024, 15},
6855 {32 * 1024, 1},
6856 {8 * 1024, 2},
6857 {16 * 1024, 1},
6858 },
Sean Nelson69e58112010-03-23 17:10:28 +00006859 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006860 }
6861 },
Sean Nelson69e58112010-03-23 17:10:28 +00006862 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00006863 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006864 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006865 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006866 },
6867
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006868 {
6869 .vendor = "SST",
6870 .name = "SST49LF016C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006871 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006872 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006873 .model_id = SST_SST49LF016C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006874 .total_size = 2048,
6875 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006876 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006877 .tested = TEST_OK_PR,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00006878 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00006879 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006880 .block_erasers =
6881 {
6882 {
6883 .eraseblocks = { {4 * 1024, 512} },
6884 .block_erase = erase_sector_49lfxxxc,
6885 }, {
6886 .eraseblocks = {
6887 {64 * 1024, 31},
6888 {32 * 1024, 1},
6889 {8 * 1024, 2},
6890 {16 * 1024, 1},
6891 },
Sean Nelson69e58112010-03-23 17:10:28 +00006892 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00006893 }
6894 },
Sean Nelson69e58112010-03-23 17:10:28 +00006895 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00006896 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006897 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006898 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006899 },
6900
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006901 {
6902 .vendor = "SST",
6903 .name = "SST49LF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006904 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006905 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006906 .model_id = SST_SST49LF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006907 .total_size = 256,
6908 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006909 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +00006910 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006911 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006912 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006913 .block_erasers =
6914 {
6915 {
6916 .eraseblocks = { {4 * 1024, 64} },
6917 .block_erase = erase_sector_jedec,
6918 }, {
6919 .eraseblocks = { {16 * 1024, 16} },
6920 .block_erase = erase_block_jedec,
6921 }, {
6922 .eraseblocks = { {256 * 1024, 1} },
6923 .block_erase = NULL,
6924 }
6925 },
Sean Nelson35727f72010-01-28 23:55:12 +00006926 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006927 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006928 .voltage = {3000, 3600},
Sven Schnellec208dfb2009-01-07 12:35:09 +00006929 },
6930
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006931 {
6932 .vendor = "SST",
6933 .name = "SST49LF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006934 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006935 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006936 .model_id = SST_SST49LF020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006937 .total_size = 256,
Carl-Daniel Hailfingerda654322009-07-23 01:44:38 +00006938 .page_size = 4 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006939 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006940 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006941 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006942 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006943 .block_erasers =
6944 {
6945 {
6946 .eraseblocks = { {4 * 1024, 64} },
6947 .block_erase = erase_sector_jedec,
6948 }, {
6949 .eraseblocks = { {16 * 1024, 16} },
6950 .block_erase = erase_block_jedec,
6951 }, {
6952 .eraseblocks = { {256 * 1024, 1} },
6953 .block_erase = NULL,
6954 }
6955 },
Sean Nelson35727f72010-01-28 23:55:12 +00006956 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006957 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006958 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006959 },
6960
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006961 {
6962 .vendor = "SST",
6963 .name = "SST49LF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006964 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006965 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006966 .model_id = SST_SST49LF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006967 .total_size = 512,
6968 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00006969 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006970 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006971 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00006972 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00006973 .block_erasers =
6974 {
6975 {
6976 .eraseblocks = { {4 * 1024, 128} },
6977 .block_erase = erase_sector_jedec,
6978 }, {
6979 .eraseblocks = { {64 * 1024, 8} },
6980 .block_erase = erase_block_jedec,
6981 }, {
6982 .eraseblocks = { {512 * 1024, 1} },
6983 .block_erase = NULL,
6984 }
6985 },
Sean Nelson35727f72010-01-28 23:55:12 +00006986 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006987 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006988 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00006989 },
6990
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006991 {
6992 .vendor = "SST",
6993 .name = "SST49LF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006994 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006995 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006996 .model_id = SST_SST49LF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006997 .total_size = 512,
6998 .page_size = 64 * 1024,
Joshua Roysa84b0bd2010-08-16 22:12:39 +00006999 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00007000 .tested = TEST_OK_PREW,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007001 .probe = probe_jedec,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007002 .probe_timing = 1, /* 150ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007003 .block_erasers =
7004 {
7005 {
7006 .eraseblocks = { {4 * 1024, 128} },
7007 .block_erase = erase_sector_jedec,
7008 }, {
7009 .eraseblocks = { {64 * 1024, 8} },
7010 .block_erase = erase_block_jedec,
7011 }, {
7012 .eraseblocks = { {512 * 1024, 1} },
7013 .block_erase = NULL,
7014 }
7015 },
Joshua Roysa84b0bd2010-08-16 22:12:39 +00007016 .unlock = unlock_82802ab,
Sean Nelson35727f72010-01-28 23:55:12 +00007017 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007018 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007019 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007020 },
7021
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007022 {
7023 .vendor = "SST",
7024 .name = "SST49LF080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007025 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007026 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007027 .model_id = SST_SST49LF080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007028 .total_size = 1024,
7029 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +00007030 .feature_bits = FEATURE_EITHER_RESET,
Brandon Dowdyf07bf322011-03-06 18:31:11 +00007031 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007032 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00007033 .probe_timing = TIMING_FIXME,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007034 .block_erasers =
7035 {
7036 {
7037 .eraseblocks = { {4 * 1024, 256} },
7038 .block_erase = erase_sector_jedec,
7039 }, {
7040 .eraseblocks = { {64 * 1024, 16} },
7041 .block_erase = erase_block_jedec,
7042 }, {
7043 .eraseblocks = { {1024 * 1024, 1} },
7044 .block_erase = NULL,
7045 }
7046 },
Sean Nelson35727f72010-01-28 23:55:12 +00007047 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007048 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007049 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007050 },
7051
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007052 {
7053 .vendor = "SST",
7054 .name = "SST49LF160C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007055 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007056 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007057 .model_id = SST_SST49LF160C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007058 .total_size = 2048,
7059 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007060 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007061 .tested = TEST_OK_PRE,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007062 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00007063 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +00007064 .block_erasers =
7065 {
7066 {
7067 .eraseblocks = { {4 * 1024, 512} },
7068 .block_erase = erase_sector_49lfxxxc,
7069 }, {
7070 .eraseblocks = {
7071 {64 * 1024, 31},
7072 {32 * 1024, 1},
7073 {8 * 1024, 2},
7074 {16 * 1024, 1},
7075 },
Sean Nelson69e58112010-03-23 17:10:28 +00007076 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +00007077 }
7078 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00007079 .unlock = unlock_49lfxxxc,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00007080 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007081 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007082 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007083 },
7084
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007085 {
7086 .vendor = "ST",
7087 .name = "M25P05-A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007088 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007089 .manufacture_id = ST_ID,
7090 .model_id = ST_M25P05A,
7091 .total_size = 64,
7092 .page_size = 256,
7093 .tested = TEST_UNTESTED,
7094 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007095 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007096 .block_erasers =
7097 {
7098 {
7099 .eraseblocks = { {32 * 1024, 2} },
7100 .block_erase = spi_block_erase_d8,
7101 }, {
7102 .eraseblocks = { {64 * 1024, 1} },
7103 .block_erase = spi_block_erase_c7,
7104 }
7105 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007106 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007107 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007108 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007109 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007110 },
7111
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007112 /* The ST M25P05 is a bit of a problem. It has the same ID as the
7113 * ST M25P05-A in RES mode, but supports only 128 byte writes instead
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00007114 * of 256 byte writes. We rely heavily on the fact that probe_spi_res1
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007115 * only is successful if RDID does not work.
7116 */
7117 {
7118 .vendor = "ST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00007119 .name = "M25P05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007120 .bustype = BUS_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00007121 .manufacture_id = 0, /* Not used. */
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007122 .model_id = ST_M25P05_RES,
7123 .total_size = 64,
7124 .page_size = 256,
7125 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00007126 .probe = probe_spi_res1,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007127 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007128 .block_erasers =
7129 {
7130 {
7131 .eraseblocks = { {32 * 1024, 2} },
7132 .block_erase = spi_block_erase_d8,
7133 }, {
7134 .eraseblocks = { {64 * 1024, 1} },
7135 .block_erase = spi_block_erase_c7,
7136 }
7137 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007138 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007139 .write = spi_chip_write_1, /* 128 */
7140 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007141 .voltage = {2700, 3600},
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007142 },
7143
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007144 {
7145 .vendor = "ST",
7146 .name = "M25P10-A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007147 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007148 .manufacture_id = ST_ID,
7149 .model_id = ST_M25P10A,
7150 .total_size = 128,
7151 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007152 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007153 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007154 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007155 .block_erasers =
7156 {
7157 {
7158 .eraseblocks = { {32 * 1024, 4} },
7159 .block_erase = spi_block_erase_d8,
7160 }, {
7161 .eraseblocks = { {128 * 1024, 1} },
7162 .block_erase = spi_block_erase_c7,
7163 }
7164 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007165 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007166 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007167 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007168 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007169 },
7170
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007171 /* The ST M25P10 has the same problem as the M25P05. */
7172 {
7173 .vendor = "ST",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00007174 .name = "M25P10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007175 .bustype = BUS_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00007176 .manufacture_id = 0, /* Not used. */
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007177 .model_id = ST_M25P10_RES,
7178 .total_size = 128,
7179 .page_size = 256,
7180 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00007181 .probe = probe_spi_res1,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007182 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007183 .block_erasers =
7184 {
7185 {
7186 .eraseblocks = { {32 * 1024, 4} },
7187 .block_erase = spi_block_erase_d8,
7188 }, {
7189 .eraseblocks = { {128 * 1024, 1} },
7190 .block_erase = spi_block_erase_c7,
7191 }
7192 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007193 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007194 .write = spi_chip_write_1, /* 128 */
7195 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007196 .voltage = {2700, 3600},
Carl-Daniel Hailfinger32961be2009-07-23 01:40:20 +00007197 },
7198
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007199 {
7200 .vendor = "ST",
7201 .name = "M25P20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007202 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007203 .manufacture_id = ST_ID,
7204 .model_id = ST_M25P20,
7205 .total_size = 256,
7206 .page_size = 256,
7207 .tested = TEST_UNTESTED,
7208 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007209 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007210 .block_erasers =
7211 {
7212 {
7213 .eraseblocks = { {64 * 1024, 4} },
7214 .block_erase = spi_block_erase_d8,
7215 }, {
7216 .eraseblocks = { {256 * 1024, 1} },
7217 .block_erase = spi_block_erase_c7,
7218 }
7219 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007220 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007221 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007222 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007223 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007224 },
7225
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007226 {
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00007227 .vendor = "ST", /* Numonyx */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007228 .name = "M25P40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007229 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007230 .manufacture_id = ST_ID,
7231 .model_id = ST_M25P40,
7232 .total_size = 512,
7233 .page_size = 256,
Paul Menzelac427b22012-02-16 21:07:07 +00007234 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007235 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007236 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007237 .block_erasers =
7238 {
7239 {
7240 .eraseblocks = { {64 * 1024, 8} },
7241 .block_erase = spi_block_erase_d8,
7242 }, {
7243 .eraseblocks = { {512 * 1024, 1} },
7244 .block_erase = spi_block_erase_c7,
7245 }
7246 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007247 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007248 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007249 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007250 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007251 },
7252
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007253 {
7254 .vendor = "ST",
7255 .name = "M25P40-old",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007256 .bustype = BUS_SPI,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00007257 .manufacture_id = 0, /* Not used. */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007258 .model_id = ST_M25P40_RES,
7259 .total_size = 512,
7260 .page_size = 256,
7261 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingerdc1cda12010-05-28 17:07:57 +00007262 .probe = probe_spi_res1,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007263 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007264 .block_erasers =
7265 {
7266 {
7267 .eraseblocks = { {64 * 1024, 8} },
7268 .block_erase = spi_block_erase_d8,
7269 }, {
7270 .eraseblocks = { {512 * 1024, 1} },
7271 .block_erase = spi_block_erase_c7,
7272 }
7273 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007274 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007275 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007276 .read = spi_chip_read,
FENG yu ningff692fb2008-12-08 18:15:10 +00007277 },
7278
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007279 {
7280 .vendor = "ST",
7281 .name = "M25P80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007282 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007283 .manufacture_id = ST_ID,
7284 .model_id = ST_M25P80,
7285 .total_size = 1024,
7286 .page_size = 256,
Uwe Hermann19f46f22011-06-18 22:56:14 +00007287 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007288 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007289 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007290 .block_erasers =
7291 {
7292 {
7293 .eraseblocks = { {64 * 1024, 16} },
7294 .block_erase = spi_block_erase_d8,
7295 }, {
7296 .eraseblocks = { {1024 * 1024, 1} },
7297 .block_erase = spi_block_erase_c7,
7298 }
7299 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007300 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007301 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007302 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007303 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007304 },
7305
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007306 {
7307 .vendor = "ST",
7308 .name = "M25P16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007309 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007310 .manufacture_id = ST_ID,
7311 .model_id = ST_M25P16,
7312 .total_size = 2048,
7313 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007314 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007315 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007316 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007317 .block_erasers =
7318 {
7319 {
7320 .eraseblocks = { {64 * 1024, 32} },
7321 .block_erase = spi_block_erase_d8,
7322 }, {
7323 .eraseblocks = { {2 * 1024 * 1024, 1} },
7324 .block_erase = spi_block_erase_c7,
7325 }
7326 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007327 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007328 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007329 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007330 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007331 },
7332
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007333 {
7334 .vendor = "ST",
7335 .name = "M25P32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007336 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007337 .manufacture_id = ST_ID,
7338 .model_id = ST_M25P32,
7339 .total_size = 4096,
7340 .page_size = 256,
Antony Rheneus0fbba982011-05-26 14:28:51 +00007341 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007342 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007343 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007344 .block_erasers =
7345 {
7346 {
7347 .eraseblocks = { {64 * 1024, 64} },
7348 .block_erase = spi_block_erase_d8,
7349 }, {
7350 .eraseblocks = { {4 * 1024 * 1024, 1} },
7351 .block_erase = spi_block_erase_c7,
7352 }
7353 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007354 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007355 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007356 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007357 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007358 },
7359
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007360 {
7361 .vendor = "ST",
7362 .name = "M25P64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007363 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007364 .manufacture_id = ST_ID,
7365 .model_id = ST_M25P64,
7366 .total_size = 8192,
7367 .page_size = 256,
7368 .tested = TEST_UNTESTED,
7369 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007370 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007371 .block_erasers =
7372 {
7373 {
7374 .eraseblocks = { {64 * 1024, 128} },
7375 .block_erase = spi_block_erase_d8,
7376 }, {
7377 .eraseblocks = { {8 * 1024 * 1024, 1} },
7378 .block_erase = spi_block_erase_c7,
7379 }
7380 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007381 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007382 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007383 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007384 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007385 },
7386
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007387 {
7388 .vendor = "ST",
7389 .name = "M25P128",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007390 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007391 .manufacture_id = ST_ID,
7392 .model_id = ST_M25P128,
7393 .total_size = 16384,
7394 .page_size = 256,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00007395 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007396 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007397 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00007398 .block_erasers =
7399 {
7400 {
7401 .eraseblocks = { {256 * 1024, 64} },
7402 .block_erase = spi_block_erase_d8,
7403 }, {
7404 .eraseblocks = { {16 * 1024 * 1024, 1} },
7405 .block_erase = spi_block_erase_c7,
7406 }
7407 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007408 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007409 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007410 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007411 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007412 },
7413
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007414 {
7415 .vendor = "ST",
Carl Worthd1dd72c2011-03-06 18:45:40 +00007416 .name = "M25PX16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007417 .bustype = BUS_SPI,
Carl Worthd1dd72c2011-03-06 18:45:40 +00007418 .manufacture_id = ST_ID,
7419 .model_id = ST_M25PX16,
7420 .total_size = 2048,
7421 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00007422 /* OTP: 64B total; read 0x4B; write 0x42 */
7423 .feature_bits = FEATURE_OTP,
Carl Worthd1dd72c2011-03-06 18:45:40 +00007424 .tested = TEST_OK_PREW,
7425 .probe = probe_spi_rdid,
7426 .probe_timing = TIMING_ZERO,
7427 .block_erasers =
7428 {
7429 {
7430 .eraseblocks = { { 4 * 1024, 512 } },
7431 .block_erase = spi_block_erase_20,
7432 }, {
7433 .eraseblocks = { {64 * 1024, 32} },
7434 .block_erase = spi_block_erase_d8,
7435 }, {
7436 .eraseblocks = { {2 * 1024 * 1024, 1} },
7437 .block_erase = spi_block_erase_c7,
7438 }
7439 },
7440 .unlock = spi_disable_blockprotect,
7441 .write = spi_chip_write_256,
7442 .read = spi_chip_read,
7443 },
7444
7445 {
7446 .vendor = "ST",
Jason Shriver4119e9b2010-09-14 13:16:01 +00007447 .name = "M25PX32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007448 .bustype = BUS_SPI,
Jason Shriver4119e9b2010-09-14 13:16:01 +00007449 .manufacture_id = ST_ID,
7450 .model_id = ST_M25PX32,
7451 .total_size = 4096,
7452 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007453 .tested = TEST_OK_PRE,
Jason Shriver4119e9b2010-09-14 13:16:01 +00007454 .probe = probe_spi_rdid,
7455 .probe_timing = TIMING_ZERO,
7456 .block_erasers =
7457 {
7458 {
7459 .eraseblocks = { { 4 * 1024, 1024 } },
7460 .block_erase = spi_block_erase_20,
7461 }, {
7462 .eraseblocks = { {64 * 1024, 64} },
7463 .block_erase = spi_block_erase_d8,
7464 }, {
7465 .eraseblocks = { {4 * 1024 * 1024, 1} },
7466 .block_erase = spi_block_erase_c7,
7467 }
7468 },
7469 .unlock = spi_disable_blockprotect,
7470 .write = spi_chip_write_256,
7471 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007472 .voltage = {2700, 3600},
Jason Shriver4119e9b2010-09-14 13:16:01 +00007473 },
7474
7475 {
7476 .vendor = "ST",
7477 .name = "M25PX64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007478 .bustype = BUS_SPI,
Jason Shriver4119e9b2010-09-14 13:16:01 +00007479 .manufacture_id = ST_ID,
7480 .model_id = ST_M25PX64,
7481 .total_size = 8192,
7482 .page_size = 256,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007483 .tested = TEST_OK_PRE,
Jason Shriver4119e9b2010-09-14 13:16:01 +00007484 .probe = probe_spi_rdid,
7485 .probe_timing = TIMING_ZERO,
7486 .block_erasers =
7487 {
7488 {
7489 .eraseblocks = { { 4 * 1024, 2048 } },
7490 .block_erase = spi_block_erase_20,
7491 }, {
7492 .eraseblocks = { {64 * 1024, 128} },
7493 .block_erase = spi_block_erase_d8,
7494 }, {
7495 .eraseblocks = { {8 * 1024 * 1024, 1} },
7496 .block_erase = spi_block_erase_c7,
7497 }
7498 },
7499 .unlock = spi_disable_blockprotect,
7500 .write = spi_chip_write_256,
7501 .read = spi_chip_read,
7502 },
7503
7504 {
7505 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007506 .name = "M29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007507 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007508 .manufacture_id = ST_ID,
7509 .model_id = ST_M29F002B,
7510 .total_size = 256,
7511 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007512 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007513 .tested = TEST_UNTESTED,
7514 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007515 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007516 .block_erasers =
7517 {
7518 {
7519 .eraseblocks = {
7520 {16 * 1024, 1},
7521 {8 * 1024, 2},
7522 {32 * 1024, 1},
7523 {64 * 1024, 3},
7524 },
7525 .block_erase = erase_sector_jedec,
7526 }, {
7527 .eraseblocks = { {256 * 1024, 1} },
7528 .block_erase = erase_chip_block_jedec,
7529 }
7530 },
Sean Nelson35727f72010-01-28 23:55:12 +00007531 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007532 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007533 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00007534 },
7535
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007536 {
7537 .vendor = "ST",
7538 .name = "M29F002T/NT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007539 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007540 .manufacture_id = ST_ID,
7541 .model_id = ST_M29F002T,
7542 .total_size = 256,
7543 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007544 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
7545 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007546 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007547 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007548 .block_erasers =
7549 {
7550 {
7551 .eraseblocks = {
7552 {64 * 1024, 3},
7553 {32 * 1024, 1},
7554 {8 * 1024, 2},
7555 {16 * 1024, 1},
7556 },
7557 .block_erase = erase_sector_jedec,
7558 }, {
7559 .eraseblocks = { {256 * 1024, 1} },
7560 .block_erase = erase_chip_block_jedec,
7561 }
7562 },
Sean Nelson35727f72010-01-28 23:55:12 +00007563 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007564 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007565 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00007566 },
7567
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007568 {
7569 .vendor = "ST",
7570 .name = "M29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007571 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007572 .manufacture_id = ST_ID,
7573 .model_id = ST_M29F040B,
7574 .total_size = 512,
7575 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007576 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
7577 .tested = TEST_UNTESTED,
7578 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00007579 .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */
Sean Nelson56358aa2010-01-19 16:08:51 +00007580 .block_erasers =
7581 {
7582 {
7583 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson35727f72010-01-28 23:55:12 +00007584 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +00007585 }, {
7586 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00007587 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +00007588 }
7589 },
Sean Nelson35727f72010-01-28 23:55:12 +00007590 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007591 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007592 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00007593 },
7594
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007595 {
Sean Nelson35727f72010-01-28 23:55:12 +00007596 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007597 .vendor = "ST",
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00007598 .name = "M29F400BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007599 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00007600 .manufacture_id = ST_ID,
7601 .model_id = ST_M29F400BB,
7602 .total_size = 512,
7603 .page_size = 64 * 1024,
7604 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00007605 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00007606 .probe = probe_m29f400bt,
7607 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
7608 .block_erasers =
7609 {
7610 {
7611 .eraseblocks = {
7612 {16 * 1024, 1},
7613 {8 * 1024, 2},
7614 {32 * 1024, 1},
7615 {64 * 1024, 7},
7616 },
7617 .block_erase = block_erase_m29f400bt,
7618 }, {
7619 .eraseblocks = { {512 * 1024, 1} },
7620 .block_erase = block_erase_chip_m29f400bt,
7621 }
7622 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00007623 .write = write_m29f400bt,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00007624 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007625 .voltage = {4500, 5500},
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00007626 },
7627 {
7628 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
7629 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007630 .name = "M29F400BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007631 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007632 .manufacture_id = ST_ID,
7633 .model_id = ST_M29F400BT,
7634 .total_size = 512,
7635 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007636 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007637 .tested = TEST_UNTESTED,
7638 .probe = probe_m29f400bt,
Paul Menzelc07a41c2011-06-19 17:23:55 +00007639 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00007640 .block_erasers =
7641 {
7642 {
7643 .eraseblocks = {
7644 {64 * 1024, 7},
7645 {32 * 1024, 1},
7646 {8 * 1024, 2},
7647 {16 * 1024, 1},
7648 },
7649 .block_erase = block_erase_m29f400bt,
7650 }, {
7651 .eraseblocks = { {512 * 1024, 1} },
7652 .block_erase = block_erase_chip_m29f400bt,
7653 }
7654 },
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +00007655 .write = write_m29f400bt,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007656 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007657 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00007658 },
7659
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007660 {
7661 .vendor = "ST",
7662 .name = "M29W010B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007663 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007664 .manufacture_id = ST_ID,
7665 .model_id = ST_M29W010B,
7666 .total_size = 128,
7667 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007668 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007669 .tested = TEST_UNTESTED,
7670 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007671 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007672 .block_erasers =
7673 {
7674 {
7675 .eraseblocks = { {16 * 1024, 8}, },
7676 .block_erase = erase_sector_jedec,
7677 }, {
7678 .eraseblocks = { {128 * 1024, 1} },
7679 .block_erase = erase_chip_block_jedec,
7680 }
7681 },
Sean Nelson35727f72010-01-28 23:55:12 +00007682 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007683 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007684 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007685 },
7686
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007687 {
7688 .vendor = "ST",
7689 .name = "M29W040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007690 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007691 .manufacture_id = ST_ID,
7692 .model_id = ST_M29W040B,
7693 .total_size = 512,
7694 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00007695 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007696 .tested = TEST_UNTESTED,
7697 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00007698 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007699 .block_erasers =
7700 {
7701 {
7702 .eraseblocks = { {64 * 1024, 8}, },
7703 .block_erase = erase_sector_jedec,
7704 }, {
7705 .eraseblocks = { {512 * 1024, 1} },
7706 .block_erase = erase_chip_block_jedec,
7707 }
7708 },
Sean Nelson35727f72010-01-28 23:55:12 +00007709 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007710 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007711 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007712 },
7713
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +00007714 {
7715 .vendor = "ST",
7716 .name = "M29W512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007717 .bustype = BUS_PARALLEL,
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +00007718 .manufacture_id = ST_ID,
7719 .model_id = ST_M29W512B,
7720 .total_size = 64,
7721 .page_size = 64 * 1024,
7722 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007723 .tested = TEST_OK_PRE,
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +00007724 .probe = probe_jedec,
7725 .probe_timing = TIMING_ZERO,
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +00007726 .block_erasers =
7727 {
7728 {
7729 .eraseblocks = { {64 * 1024, 1} },
7730 .block_erase = erase_chip_block_jedec,
7731 }
7732 },
7733 .write = write_jedec_1,
7734 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007735 .voltage = {2700, 3600},
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +00007736 },
7737
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007738 {
7739 .vendor = "ST",
7740 .name = "M50FLW040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007741 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007742 .manufacture_id = ST_ID,
7743 .model_id = ST_M50FLW040A,
7744 .total_size = 512,
7745 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007746 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007747 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00007748 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00007749 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00007750 .block_erasers =
7751 {
7752 {
Sean Nelson329bde72010-01-19 16:39:19 +00007753 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00007754 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00007755 {64 * 1024, 5}, /* block */
7756 {4 * 1024, 16}, /* sector */
7757 {4 * 1024, 16}, /* sector */
7758 },
7759 .block_erase = NULL,
7760 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00007761 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +00007762 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00007763 }
7764 },
Sean Nelson28accc22010-03-19 18:47:06 +00007765 .unlock = unlock_stm50flw0x0x,
7766 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007767 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007768 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00007769 },
7770
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007771 {
7772 .vendor = "ST",
7773 .name = "M50FLW040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007774 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007775 .manufacture_id = ST_ID,
7776 .model_id = ST_M50FLW040B,
7777 .total_size = 512,
7778 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007779 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007780 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00007781 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00007782 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00007783 .block_erasers =
7784 {
7785 {
Sean Nelson329bde72010-01-19 16:39:19 +00007786 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00007787 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00007788 {4 * 1024, 16}, /* sector */
7789 {64 * 1024, 5}, /* block */
7790 {4 * 1024, 16}, /* sector */
7791 },
7792 .block_erase = NULL,
7793 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00007794 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +00007795 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00007796 }
7797 },
Sean Nelson28accc22010-03-19 18:47:06 +00007798 .unlock = unlock_stm50flw0x0x,
7799 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007800 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007801 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00007802 },
7803
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007804 {
7805 .vendor = "ST",
7806 .name = "M50FLW080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007807 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007808 .manufacture_id = ST_ID,
7809 .model_id = ST_M50FLW080A,
7810 .total_size = 1024,
7811 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007812 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007813 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +00007814 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00007815 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00007816 .block_erasers =
7817 {
7818 {
Sean Nelson329bde72010-01-19 16:39:19 +00007819 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00007820 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00007821 {64 * 1024, 13}, /* block */
7822 {4 * 1024, 16}, /* sector */
7823 {4 * 1024, 16}, /* sector */
7824 },
7825 .block_erase = NULL,
7826 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00007827 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +00007828 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00007829 }
7830 },
Sean Nelson28accc22010-03-19 18:47:06 +00007831 .unlock = unlock_stm50flw0x0x,
7832 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007833 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007834 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00007835 },
7836
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007837 {
7838 .vendor = "ST",
7839 .name = "M50FLW080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007840 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007841 .manufacture_id = ST_ID,
7842 .model_id = ST_M50FLW080B,
7843 .total_size = 1024,
7844 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007845 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007846 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00007847 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +00007848 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +00007849 .block_erasers =
7850 {
7851 {
Sean Nelson329bde72010-01-19 16:39:19 +00007852 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +00007853 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +00007854 {4 * 1024, 16}, /* sector */
7855 {64 * 1024, 13}, /* block */
7856 {4 * 1024, 16}, /* sector */
7857 },
7858 .block_erase = NULL,
7859 }, {
Sean Nelson56358aa2010-01-19 16:08:51 +00007860 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +00007861 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00007862 }
7863 },
Sean Nelson28accc22010-03-19 18:47:06 +00007864 .unlock = unlock_stm50flw0x0x,
7865 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007866 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007867 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00007868 },
7869
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007870 {
7871 .vendor = "ST",
7872 .name = "M50FW002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007873 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007874 .manufacture_id = ST_ID,
7875 .model_id = ST_M50FW002,
7876 .total_size = 256,
7877 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007878 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007879 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00007880 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00007881 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00007882 .block_erasers =
7883 {
7884 {
7885 .eraseblocks = {
7886 {64 * 1024, 3},
7887 {32 * 1024, 1},
7888 {8 * 1024, 2},
7889 {16 * 1024, 1},
7890 },
Sean Nelson28accc22010-03-19 18:47:06 +00007891 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00007892 }
7893 },
Sean Nelson28accc22010-03-19 18:47:06 +00007894 .unlock = unlock_stm50flw0x0x,
7895 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007896 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007897 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00007898 },
7899
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007900 {
7901 .vendor = "ST",
7902 .name = "M50FW016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007903 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007904 .manufacture_id = ST_ID,
7905 .model_id = ST_M50FW016,
7906 .total_size = 2048,
7907 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007908 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007909 .tested = TEST_UNTESTED,
7910 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00007911 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00007912 .block_erasers =
7913 {
7914 {
7915 .eraseblocks = { {64 * 1024, 32}, },
Sean Nelson28accc22010-03-19 18:47:06 +00007916 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00007917 }
7918 },
Sean Nelson28accc22010-03-19 18:47:06 +00007919 .unlock = unlock_stm50flw0x0x,
7920 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007921 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007922 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00007923 },
7924
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007925 {
7926 .vendor = "ST",
7927 .name = "M50FW040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007928 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007929 .manufacture_id = ST_ID,
7930 .model_id = ST_M50FW040,
7931 .total_size = 512,
7932 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007933 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +00007934 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007935 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00007936 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00007937 .block_erasers =
7938 {
7939 {
7940 .eraseblocks = { {64 * 1024, 8}, },
Sean Nelson28accc22010-03-19 18:47:06 +00007941 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00007942 }
7943 },
Sean Nelson28accc22010-03-19 18:47:06 +00007944 .unlock = unlock_stm50flw0x0x,
7945 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007946 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007947 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00007948 },
7949
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007950 {
7951 .vendor = "ST",
7952 .name = "M50FW080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007953 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007954 .manufacture_id = ST_ID,
7955 .model_id = ST_M50FW080,
7956 .total_size = 1024,
7957 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007958 .feature_bits = FEATURE_REGISTERMAP,
Antony Rheneus0fbba982011-05-26 14:28:51 +00007959 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007960 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +00007961 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +00007962 .block_erasers =
7963 {
7964 {
7965 .eraseblocks = { {64 * 1024, 16}, },
Sean Nelson28accc22010-03-19 18:47:06 +00007966 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00007967 }
7968 },
Sean Nelson28accc22010-03-19 18:47:06 +00007969 .unlock = unlock_stm50flw0x0x,
7970 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00007971 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007972 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00007973 },
7974
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007975 {
7976 .vendor = "ST",
7977 .name = "M50LPW116",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007978 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007979 .manufacture_id = ST_ID,
7980 .model_id = ST_M50LPW116,
7981 .total_size = 2048,
7982 .page_size = 64 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +00007983 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007984 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00007985 .probe = probe_82802ab,
Udu Ogahc04ee222009-09-05 01:31:32 +00007986 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00007987 .block_erasers =
7988 {
7989 {
7990 .eraseblocks = {
7991 {4 * 1024, 16},
7992 {64 * 1024, 30},
7993 {32 * 1024, 1},
7994 {8 * 1024, 2},
7995 {16 * 1024, 1},
7996 },
Sean Nelson28accc22010-03-19 18:47:06 +00007997 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +00007998 }
7999 },
Sean Nelson28accc22010-03-19 18:47:06 +00008000 .unlock = unlock_stm50flw0x0x,
8001 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008002 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008003 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +00008004 },
8005
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008006 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00008007 .vendor = "SyncMOS/MoselVitelic",
8008 .name = "{F,S,V}29C51001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008009 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008010 .manufacture_id = SYNCMOS_MVC_ID,
8011 .model_id = SM_MVC_29C51001B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008012 .total_size = 128,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008013 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +00008014 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008015 .tested = TEST_UNTESTED,
8016 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008017 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00008018 .block_erasers =
8019 {
8020 {
8021 .eraseblocks = { {512, 256} },
8022 .block_erase = erase_sector_jedec,
8023 }, {
8024 .eraseblocks = { {128 * 1024, 1} },
8025 .block_erase = erase_chip_block_jedec,
8026 },
8027 },
Sean Nelson35727f72010-01-28 23:55:12 +00008028 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008029 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008030 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00008031 },
8032
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008033 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00008034 .vendor = "SyncMOS/MoselVitelic",
8035 .name = "{F,S,V}29C51001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008036 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008037 .manufacture_id = SYNCMOS_MVC_ID,
8038 .model_id = SM_MVC_29C51001T,
8039 .total_size = 128,
8040 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +00008041 .feature_bits = FEATURE_EITHER_RESET,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008042 .tested = TEST_UNTESTED,
8043 .probe = probe_jedec,
8044 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8045 .block_erasers =
8046 {
8047 {
8048 .eraseblocks = { {512, 256} },
8049 .block_erase = erase_sector_jedec,
8050 }, {
8051 .eraseblocks = { {128 * 1024, 1} },
8052 .block_erase = erase_chip_block_jedec,
8053 },
8054 },
8055 .write = write_jedec_1,
8056 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008057 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008058 },
8059
8060 {
8061 .vendor = "SyncMOS/MoselVitelic",
8062 .name = "{F,S,V}29C51002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008063 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008064 .manufacture_id = SYNCMOS_MVC_ID,
8065 .model_id = SM_MVC_29C51002B,
8066 .total_size = 256,
8067 .page_size = 512,
8068 .feature_bits = FEATURE_EITHER_RESET,
8069 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008070 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008071 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00008072 .block_erasers =
8073 {
8074 {
8075 .eraseblocks = { {512, 512} },
8076 .block_erase = erase_sector_jedec,
8077 }, {
8078 .eraseblocks = { {256 * 1024, 1} },
8079 .block_erase = erase_chip_block_jedec,
8080 },
8081 },
Sean Nelson35727f72010-01-28 23:55:12 +00008082 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008083 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00008084 },
8085
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008086 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00008087 .vendor = "SyncMOS/MoselVitelic",
8088 .name = "{F,S,V}29C51002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008089 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008090 .manufacture_id = SYNCMOS_MVC_ID,
8091 .model_id = SM_MVC_29C51002T,
8092 .total_size = 256,
8093 .page_size = 512,
8094 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00008095 .tested = TEST_OK_PREW,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008096 .probe = probe_jedec,
8097 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8098 .block_erasers =
8099 {
8100 {
8101 .eraseblocks = { {512, 512} },
8102 .block_erase = erase_sector_jedec,
8103 }, {
8104 .eraseblocks = { {256 * 1024, 1} },
8105 .block_erase = erase_chip_block_jedec,
8106 },
8107 },
8108 .write = write_jedec_1,
8109 .read = read_memmapped,
8110 },
8111
8112 {
8113 .vendor = "SyncMOS/MoselVitelic",
8114 .name = "{F,S,V}29C51004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008115 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008116 .manufacture_id = SYNCMOS_MVC_ID,
8117 .model_id = SM_MVC_29C51004B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008118 .total_size = 512,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008119 .page_size = 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008120 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008121 .tested = TEST_UNTESTED,
8122 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008123 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +00008124 .block_erasers =
8125 {
8126 {
Mattias Mattsson4c066502010-07-29 20:01:13 +00008127 .eraseblocks = { {1024, 512} },
8128 .block_erase = erase_sector_jedec,
8129 }, {
8130 .eraseblocks = { {512 * 1024, 1} },
8131 .block_erase = erase_chip_block_jedec,
8132 },
8133 },
8134 .write = write_jedec_1,
8135 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008136 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008137 },
8138
8139 {
8140 .vendor = "SyncMOS/MoselVitelic",
8141 .name = "{F,S,V}29C51004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008142 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008143 .manufacture_id = SYNCMOS_MVC_ID,
8144 .model_id = SM_MVC_29C51004T,
8145 .total_size = 512,
8146 .page_size = 1024,
8147 .feature_bits = FEATURE_EITHER_RESET,
8148 .tested = TEST_UNTESTED,
8149 .probe = probe_jedec,
8150 .probe_timing = TIMING_ZERO,
8151 .block_erasers =
8152 {
8153 {
8154 .eraseblocks = { {1024, 512} },
8155 .block_erase = erase_sector_jedec,
8156 }, {
8157 .eraseblocks = { {512 * 1024, 1} },
8158 .block_erase = erase_chip_block_jedec,
8159 },
8160 },
8161 .write = write_jedec_1,
8162 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008163 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008164 },
8165
8166 {
8167 .vendor = "SyncMOS/MoselVitelic",
8168 .name = "{S,V}29C31004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008169 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008170 .manufacture_id = SYNCMOS_MVC_ID,
8171 .model_id = SM_MVC_29C31004B,
8172 .total_size = 512,
8173 .page_size = 1024,
8174 .feature_bits = FEATURE_EITHER_RESET,
8175 .tested = TEST_UNTESTED,
8176 .probe = probe_jedec,
8177 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8178 .block_erasers =
8179 {
8180 {
8181 .eraseblocks = { {1024, 512} },
8182 .block_erase = erase_sector_jedec,
8183 }, {
8184 .eraseblocks = { {512 * 1024, 1} },
8185 .block_erase = erase_chip_block_jedec,
8186 },
8187 },
8188 .write = write_jedec_1,
8189 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008190 .voltage = {3000, 3600},
Mattias Mattsson4c066502010-07-29 20:01:13 +00008191 },
8192
8193 {
8194 .vendor = "SyncMOS/MoselVitelic",
8195 .name = "{S,V}29C31004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008196 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +00008197 .manufacture_id = SYNCMOS_MVC_ID,
8198 .model_id = SM_MVC_29C31004T,
8199 .total_size = 512,
8200 .page_size = 1024,
8201 .feature_bits = FEATURE_EITHER_RESET,
8202 .tested = TEST_UNTESTED,
8203 .probe = probe_jedec,
8204 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8205 .block_erasers =
8206 {
8207 {
8208 .eraseblocks = { {1024, 512} },
Sean Nelson56358aa2010-01-19 16:08:51 +00008209 .block_erase = erase_sector_jedec,
8210 }, {
8211 .eraseblocks = { {512 * 1024, 1} },
8212 .block_erase = erase_chip_block_jedec,
8213 },
8214 },
Sean Nelson35727f72010-01-28 23:55:12 +00008215 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008216 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008217 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008218 },
8219
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008220 {
Uwe Hermanna106d152009-05-27 23:17:40 +00008221 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008222 .name = "TMS29F002RB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008223 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008224 .manufacture_id = TI_OLD_ID,
8225 .model_id = TI_TMS29F002RB,
8226 .total_size = 256,
8227 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +00008228 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008229 .tested = TEST_UNTESTED,
8230 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008231 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00008232 .block_erasers =
8233 {
8234 {
8235 .eraseblocks = {
8236 {16 * 1024, 1},
8237 {8 * 1024, 2},
8238 {32 * 1024, 1},
8239 {64 * 1024, 3},
8240 },
8241 .block_erase = erase_sector_jedec,
8242 }, {
8243 .eraseblocks = { {256 * 1024, 1} },
8244 .block_erase = erase_chip_block_jedec,
8245 },
8246 },
Sean Nelson35727f72010-01-28 23:55:12 +00008247 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008248 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008249 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008250 },
8251
8252 {
Uwe Hermanna106d152009-05-27 23:17:40 +00008253 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008254 .name = "TMS29F002RT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008255 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008256 .manufacture_id = TI_OLD_ID,
8257 .model_id = TI_TMS29F002RT,
8258 .total_size = 256,
8259 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +00008260 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008261 .tested = TEST_UNTESTED,
8262 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008263 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +00008264 .block_erasers =
8265 {
8266 {
8267 .eraseblocks = {
8268 {64 * 1024, 3},
8269 {32 * 1024, 1},
8270 {8 * 1024, 2},
8271 {16 * 1024, 1},
8272 },
8273 .block_erase = erase_sector_jedec,
8274 }, {
8275 .eraseblocks = { {256 * 1024, 1} },
8276 .block_erase = erase_chip_block_jedec,
8277 },
8278 },
Sean Nelson35727f72010-01-28 23:55:12 +00008279 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008280 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008281 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +00008282 },
8283
8284 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008285 .vendor = "Winbond",
Rudolf Marekce1c7982010-04-20 19:34:31 +00008286 .name = "W25Q80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008287 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008288 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008289 .model_id = WINBOND_NEX_W25Q80,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008290 .total_size = 1024,
8291 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00008292 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
8293 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +00008294 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008295 .probe = probe_spi_rdid,
8296 .probe_timing = TIMING_ZERO,
8297 .block_erasers =
8298 {
8299 {
8300 .eraseblocks = { {4 * 1024, 256} },
8301 .block_erase = spi_block_erase_20,
8302 }, {
8303 .eraseblocks = { {32 * 1024, 32} },
8304 .block_erase = spi_block_erase_52,
8305 }, {
8306 .eraseblocks = { {64 * 1024, 16} },
8307 .block_erase = spi_block_erase_d8,
8308 }, {
8309 .eraseblocks = { {1024 * 1024, 1} },
8310 .block_erase = spi_block_erase_60,
8311 }, {
8312 .eraseblocks = { {1024 * 1024, 1} },
8313 .block_erase = spi_block_erase_c7,
8314 }
8315 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008316 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008317 .write = spi_chip_write_256,
8318 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008319 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +00008320 },
8321
8322 {
8323 .vendor = "Winbond",
8324 .name = "W25Q16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008325 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008326 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008327 .model_id = WINBOND_NEX_W25Q16,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008328 .total_size = 2048,
8329 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00008330 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
8331 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner716e0982011-07-25 20:38:52 +00008332 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008333 .probe = probe_spi_rdid,
8334 .probe_timing = TIMING_ZERO,
8335 .block_erasers =
8336 {
8337 {
8338 .eraseblocks = { {4 * 1024, 512} },
8339 .block_erase = spi_block_erase_20,
8340 }, {
8341 .eraseblocks = { {32 * 1024, 64} },
8342 .block_erase = spi_block_erase_52,
8343 }, {
8344 .eraseblocks = { {64 * 1024, 32} },
8345 .block_erase = spi_block_erase_d8,
8346 }, {
8347 .eraseblocks = { {2 * 1024 * 1024, 1} },
8348 .block_erase = spi_block_erase_60,
8349 }, {
8350 .eraseblocks = { {2 * 1024 * 1024, 1} },
8351 .block_erase = spi_block_erase_c7,
8352 }
8353 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008354 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008355 .write = spi_chip_write_256,
8356 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008357 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +00008358 },
8359
8360 {
8361 .vendor = "Winbond",
8362 .name = "W25Q32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008363 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008364 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008365 .model_id = WINBOND_NEX_W25Q32,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008366 .total_size = 4096,
8367 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00008368 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
8369 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +00008370 .tested = TEST_OK_PREW,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008371 .probe = probe_spi_rdid,
8372 .probe_timing = TIMING_ZERO,
8373 .block_erasers =
8374 {
8375 {
8376 .eraseblocks = { {4 * 1024, 1024} },
8377 .block_erase = spi_block_erase_20,
8378 }, {
8379 .eraseblocks = { {32 * 1024, 128} },
8380 .block_erase = spi_block_erase_52,
8381 }, {
8382 .eraseblocks = { {64 * 1024, 64} },
8383 .block_erase = spi_block_erase_d8,
8384 }, {
8385 .eraseblocks = { {4 * 1024 * 1024, 1} },
8386 .block_erase = spi_block_erase_60,
8387 }, {
8388 .eraseblocks = { {4 * 1024 * 1024, 1} },
8389 .block_erase = spi_block_erase_c7,
8390 }
8391 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008392 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +00008393 .write = spi_chip_write_256,
8394 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008395 .voltage = {2700, 3600},
Rudolf Marekce1c7982010-04-20 19:34:31 +00008396 },
8397
8398 {
8399 .vendor = "Winbond",
David Hendricksc4acec92010-06-24 11:39:57 +00008400 .name = "W25Q64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008401 .bustype = BUS_SPI,
David Hendricksc4acec92010-06-24 11:39:57 +00008402 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008403 .model_id = WINBOND_NEX_W25Q64,
David Hendricksc4acec92010-06-24 11:39:57 +00008404 .total_size = 8192,
8405 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00008406 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
8407 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks22e05322010-12-13 23:54:59 +00008408 .tested = TEST_OK_PREW,
David Hendricksc4acec92010-06-24 11:39:57 +00008409 .probe = probe_spi_rdid,
8410 .probe_timing = TIMING_ZERO,
8411 .block_erasers =
8412 {
8413 {
8414 .eraseblocks = { {4 * 1024, 2048} },
8415 .block_erase = spi_block_erase_20,
8416 }, {
8417 .eraseblocks = { {32 * 1024, 256} },
8418 .block_erase = spi_block_erase_52,
8419 }, {
8420 .eraseblocks = { {64 * 1024, 128} },
8421 .block_erase = spi_block_erase_d8,
8422 }, {
8423 .eraseblocks = { {8 * 1024 * 1024, 1} },
8424 .block_erase = spi_block_erase_60,
8425 }, {
8426 .eraseblocks = { {8 * 1024 * 1024, 1} },
8427 .block_erase = spi_block_erase_c7,
8428 }
8429 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008430 .unlock = spi_disable_blockprotect,
David Hendricksc4acec92010-06-24 11:39:57 +00008431 .write = spi_chip_write_256,
8432 .read = spi_chip_read,
8433 },
8434
8435 {
8436 .vendor = "Winbond",
Antony Rheneus0fbba982011-05-26 14:28:51 +00008437 .name = "W25Q128",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008438 .bustype = BUS_SPI,
Antony Rheneus0fbba982011-05-26 14:28:51 +00008439 .manufacture_id = WINBOND_NEX_ID,
8440 .model_id = WINBOND_NEX_W25Q128,
8441 .total_size = 16384,
8442 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00008443 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42 */
8444 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Antony Rheneus0fbba982011-05-26 14:28:51 +00008445 .tested = TEST_OK_PROBE,
8446 .probe = probe_spi_rdid,
8447 .probe_timing = TIMING_ZERO,
8448 .block_erasers =
8449 {
8450 {
8451 .eraseblocks = { {4 * 1024, 4096} },
8452 .block_erase = spi_block_erase_20,
8453 }, {
8454 .eraseblocks = { {32 * 1024, 512} },
8455 .block_erase = spi_block_erase_52,
8456 }, {
8457 .eraseblocks = { {64 * 1024, 256} },
8458 .block_erase = spi_block_erase_d8,
8459 }, {
8460 .eraseblocks = { {16 * 1024 * 1024, 1} },
8461 .block_erase = spi_block_erase_60,
8462 }, {
8463 .eraseblocks = { {16 * 1024 * 1024, 1} },
8464 .block_erase = spi_block_erase_c7,
8465 }
8466 },
8467 .unlock = spi_disable_blockprotect,
8468 .write = spi_chip_write_256,
8469 .read = spi_chip_read,
8470 },
8471
8472 {
8473 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008474 .name = "W25X10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008475 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008476 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008477 .model_id = WINBOND_NEX_W25X10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008478 .total_size = 128,
8479 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008480 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008481 .tested = TEST_UNTESTED,
8482 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008483 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008484 .block_erasers =
8485 {
8486 {
8487 .eraseblocks = { {4 * 1024, 32} },
8488 .block_erase = spi_block_erase_20,
8489 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008490 .eraseblocks = { {64 * 1024, 2} },
8491 .block_erase = spi_block_erase_d8,
8492 }, {
8493 .eraseblocks = { {128 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008494 .block_erase = spi_block_erase_c7,
8495 }
8496 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008497 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008498 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008499 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008500 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008501 },
8502
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008503 {
8504 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008505 .name = "W25X20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008506 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008507 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008508 .model_id = WINBOND_NEX_W25X20,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008509 .total_size = 256,
8510 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008511 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008512 .tested = TEST_UNTESTED,
8513 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008514 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008515 .block_erasers =
8516 {
8517 {
8518 .eraseblocks = { {4 * 1024, 64} },
8519 .block_erase = spi_block_erase_20,
8520 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008521 .eraseblocks = { {64 * 1024, 4} },
8522 .block_erase = spi_block_erase_d8,
8523 }, {
8524 .eraseblocks = { {256 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008525 .block_erase = spi_block_erase_c7,
8526 }
8527 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008528 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008529 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008530 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008531 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008532 },
8533
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008534 {
8535 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008536 .name = "W25X40",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008537 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008538 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008539 .model_id = WINBOND_NEX_W25X40,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008540 .total_size = 512,
8541 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008542 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks567b7b82011-05-18 01:31:03 +00008543 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008544 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008545 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008546 .block_erasers =
8547 {
8548 {
8549 .eraseblocks = { {4 * 1024, 128} },
8550 .block_erase = spi_block_erase_20,
8551 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008552 .eraseblocks = { {64 * 1024, 8} },
8553 .block_erase = spi_block_erase_d8,
8554 }, {
8555 .eraseblocks = { {512 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008556 .block_erase = spi_block_erase_c7,
8557 }
8558 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008559 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008560 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008561 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008562 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008563 },
8564
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008565 {
8566 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008567 .name = "W25X80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008568 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008569 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008570 .model_id = WINBOND_NEX_W25X80,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008571 .total_size = 1024,
8572 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008573 .feature_bits = FEATURE_WRSR_WREN,
Yul Rottmann6d6ab742011-03-05 16:31:57 +00008574 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008575 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008576 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008577 .block_erasers =
8578 {
8579 {
8580 .eraseblocks = { {4 * 1024, 256} },
8581 .block_erase = spi_block_erase_20,
8582 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008583 .eraseblocks = { {64 * 1024, 16} },
8584 .block_erase = spi_block_erase_d8,
8585 }, {
8586 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008587 .block_erase = spi_block_erase_c7,
8588 }
8589 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008590 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008591 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008592 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008593 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008594 },
8595
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008596 {
8597 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008598 .name = "W25X16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008599 .bustype = BUS_SPI,
Hector Martina721ae22009-07-11 19:39:11 +00008600 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008601 .model_id = WINBOND_NEX_W25X16,
Hector Martina721ae22009-07-11 19:39:11 +00008602 .total_size = 2048,
8603 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008604 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +00008605 .tested = TEST_OK_PREW,
Hector Martina721ae22009-07-11 19:39:11 +00008606 .probe = probe_spi_rdid,
8607 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008608 .block_erasers =
8609 {
8610 {
8611 .eraseblocks = { {4 * 1024, 512} },
8612 .block_erase = spi_block_erase_20,
8613 }, {
8614 .eraseblocks = { {32 * 1024, 64} },
8615 .block_erase = spi_block_erase_52,
8616 }, {
8617 .eraseblocks = { {64 * 1024, 32} },
8618 .block_erase = spi_block_erase_d8,
8619 }, {
8620 .eraseblocks = { {2 * 1024 * 1024, 1} },
8621 .block_erase = spi_block_erase_60,
8622 }, {
8623 .eraseblocks = { {2 * 1024 * 1024, 1} },
8624 .block_erase = spi_block_erase_c7,
8625 }
8626 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008627 .unlock = spi_disable_blockprotect,
Hector Martina721ae22009-07-11 19:39:11 +00008628 .write = spi_chip_write_256,
8629 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008630 .voltage = {2700, 3600},
Hector Martina721ae22009-07-11 19:39:11 +00008631 },
8632
8633 {
8634 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008635 .name = "W25X32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008636 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +00008637 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008638 .model_id = WINBOND_NEX_W25X32,
Zheng Bao1db2b752009-11-26 11:05:01 +00008639 .total_size = 4096,
8640 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008641 .feature_bits = FEATURE_WRSR_WREN,
Zheng Bao1db2b752009-11-26 11:05:01 +00008642 .tested = TEST_OK_PROBE,
8643 .probe = probe_spi_rdid,
8644 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008645 .block_erasers =
8646 {
8647 {
8648 .eraseblocks = { {4 * 1024, 1024} },
8649 .block_erase = spi_block_erase_20,
8650 }, {
8651 .eraseblocks = { {32 * 1024, 128} },
8652 .block_erase = spi_block_erase_52,
8653 }, {
8654 .eraseblocks = { {64 * 1024, 64} },
8655 .block_erase = spi_block_erase_d8,
8656 }, {
8657 .eraseblocks = { {4 * 1024 * 1024, 1} },
8658 .block_erase = spi_block_erase_60,
8659 }, {
8660 .eraseblocks = { {4 * 1024 * 1024, 1} },
8661 .block_erase = spi_block_erase_c7,
8662 }
8663 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008664 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +00008665 .write = spi_chip_write_256,
8666 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008667 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +00008668 },
8669
8670 {
8671 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008672 .name = "W25X64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008673 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +00008674 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008675 .model_id = WINBOND_NEX_W25X64,
Zheng Bao1db2b752009-11-26 11:05:01 +00008676 .total_size = 8192,
8677 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +00008678 .feature_bits = FEATURE_WRSR_WREN,
Antony Rheneus0fbba982011-05-26 14:28:51 +00008679 .tested = TEST_OK_PROBE,
Zheng Bao1db2b752009-11-26 11:05:01 +00008680 .probe = probe_spi_rdid,
8681 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008682 .block_erasers =
8683 {
8684 {
8685 .eraseblocks = { {4 * 1024, 2048} },
8686 .block_erase = spi_block_erase_20,
8687 }, {
8688 .eraseblocks = { {32 * 1024, 256} },
8689 .block_erase = spi_block_erase_52,
8690 }, {
8691 .eraseblocks = { {64 * 1024, 128} },
8692 .block_erase = spi_block_erase_d8,
8693 }, {
8694 .eraseblocks = { {8 * 1024 * 1024, 1} },
8695 .block_erase = spi_block_erase_60,
8696 }, {
8697 .eraseblocks = { {8 * 1024 * 1024, 1} },
8698 .block_erase = spi_block_erase_c7,
8699 }
8700 },
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008701 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +00008702 .write = spi_chip_write_256,
8703 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008704 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +00008705 },
8706
8707 {
8708 .vendor = "Winbond",
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +00008709 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008710 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +00008711 .manufacture_id = WINBOND_ID,
8712 .model_id = WINBOND_W29C010,
8713 .total_size = 128,
8714 .page_size = 128,
8715 .feature_bits = FEATURE_LONG_RESET,
8716 .tested = TEST_OK_PRE,
8717 .probe = probe_w29ee011,
8718 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */
8719 .block_erasers =
8720 {
8721 {
8722 .eraseblocks = { {128 * 1024, 1} },
8723 .block_erase = erase_chip_block_jedec,
8724 }
8725 },
8726 .write = write_jedec,
8727 .read = read_memmapped,
8728 },
8729
8730 {/* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */
8731 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +00008732 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008733 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008734 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008735 .model_id = WINBOND_W29C010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008736 .total_size = 128,
8737 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00008738 .feature_bits = FEATURE_LONG_RESET,
David Hendricks567b7b82011-05-18 01:31:03 +00008739 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008740 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00008741 .probe_timing = 10, /* used datasheet for the W29C011A */
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008742 .block_erasers =
8743 {
8744 {
8745 .eraseblocks = { {128 * 1024, 1} },
8746 .block_erase = erase_chip_block_jedec,
8747 }
8748 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008749 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008750 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +00008751 },
8752
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008753 {
8754 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +00008755 .name = "W29C020(C)/W29C022",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008756 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008757 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008758 .model_id = WINBOND_W29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008759 .total_size = 256,
8760 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00008761 .feature_bits = FEATURE_LONG_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008762 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008763 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00008764 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008765 .block_erasers =
8766 {
8767 {
8768 .eraseblocks = { {256 * 1024, 1} },
8769 .block_erase = erase_chip_block_jedec,
8770 }
8771 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008772 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008773 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008774 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00008775 },
8776
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008777 {
8778 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +00008779 .name = "W29C040/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008780 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008781 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008782 .model_id = WINBOND_W29C040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008783 .total_size = 512,
8784 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00008785 .feature_bits = FEATURE_LONG_RESET,
8786 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008787 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00008788 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008789 .block_erasers =
8790 {
8791 {
8792 .eraseblocks = { {512 * 1024, 1} },
8793 .block_erase = erase_chip_block_jedec,
8794 }
8795 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008796 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008797 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008798 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00008799 },
8800
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008801 {
8802 .vendor = "Winbond",
Michael Karcher19e0aac2011-03-06 17:58:05 +00008803 .name = "W39L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008804 .bustype = BUS_PARALLEL,
Michael Karcher19e0aac2011-03-06 17:58:05 +00008805 .manufacture_id = WINBOND_ID,
8806 .model_id = WINBOND_W39L040,
8807 .total_size = 512,
8808 .page_size = 64 * 1024,
8809 .feature_bits = FEATURE_EITHER_RESET,
8810 .tested = TEST_OK_PR,
8811 .probe = probe_jedec,
8812 .probe_timing = 10,
8813 .block_erasers =
8814 {
8815 {
8816 .eraseblocks = { {4 * 1024, 128} },
8817 .block_erase = erase_block_jedec,
8818 }, {
8819 .eraseblocks = { {64 * 1024, 8} },
8820 .block_erase = erase_sector_jedec,
8821 }, {
8822 .eraseblocks = { {512 * 1024, 1} },
8823 .block_erase = erase_chip_block_jedec,
8824 }
8825 },
8826 .printlock = printlock_w39l040,
8827 .write = write_jedec_1,
8828 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008829 .voltage = {3000, 3600},
Michael Karcher19e0aac2011-03-06 17:58:05 +00008830 },
8831
8832 {
8833 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008834 .name = "W39V040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008835 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008836 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008837 .model_id = WINBOND_W39V040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008838 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00008839 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008840 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +00008841 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008842 .probe = probe_jedec,
Stefan Tauner716e0982011-07-25 20:38:52 +00008843 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008844 .block_erasers =
8845 {
8846 {
8847 .eraseblocks = { {64 * 1024, 8} },
8848 .block_erase = erase_sector_jedec,
8849 }, {
8850 .eraseblocks = { {512 * 1024, 1} },
8851 .block_erase = erase_chip_block_jedec,
8852 }
8853 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008854 .printlock = printlock_w39v040a,
Sean Nelson35727f72010-01-28 23:55:12 +00008855 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008856 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008857 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008858 },
8859
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008860 {
8861 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008862 .name = "W39V040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008863 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008864 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008865 .model_id = WINBOND_W39V040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008866 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00008867 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008868 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00008869 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008870 .probe = probe_jedec,
Paul Menzel018d4822011-10-21 12:33:07 +00008871 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008872 .block_erasers =
8873 {
8874 {
8875 .eraseblocks = { {64 * 1024, 8} },
8876 .block_erase = erase_sector_jedec,
8877 }, {
8878 .eraseblocks = { {512 * 1024, 1} },
8879 .block_erase = erase_chip_block_jedec,
8880 }
8881 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008882 .printlock = printlock_w39v040b,
Sean Nelson35727f72010-01-28 23:55:12 +00008883 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008884 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008885 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008886 },
8887
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008888 {
8889 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008890 .name = "W39V040C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008891 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008892 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008893 .model_id = WINBOND_W39V040C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008894 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00008895 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00008896 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00008897 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00008898 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008899 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008900 .block_erasers =
8901 {
8902 {
8903 .eraseblocks = { {64 * 1024, 8} },
8904 .block_erase = erase_sector_jedec,
8905 }, {
8906 .eraseblocks = { {512 * 1024, 1} },
8907 .block_erase = erase_chip_block_jedec,
8908 }
8909 },
Sean Nelson6e0b9122010-02-19 00:52:10 +00008910 .printlock = printlock_w39v040c,
Sean Nelson35727f72010-01-28 23:55:12 +00008911 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008912 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008913 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008914 },
8915
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008916 {
8917 .vendor = "Winbond",
8918 .name = "W39V040FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008919 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008920 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00008921 .model_id = WINBOND_W39V040FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008922 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00008923 .page_size = 64 * 1024,
Michael Karcherc9b63412010-05-30 16:55:18 +00008924 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Antony Rheneus0fbba982011-05-26 14:28:51 +00008925 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008926 .probe = probe_jedec,
Antony Rheneus0fbba982011-05-26 14:28:51 +00008927 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00008928 .block_erasers =
8929 {
8930 {
8931 .eraseblocks = { {4 * 1024, 128} },
8932 .block_erase = erase_block_jedec,
8933 }, {
8934 .eraseblocks = { {64 * 1024, 8} },
8935 .block_erase = erase_sector_jedec,
8936 }, {
8937 .eraseblocks = { {512 * 1024, 1} },
8938 .block_erase = erase_chip_block_jedec,
8939 }
8940 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008941 .printlock = printlock_w39v040fa,
Michael Karcherc9b63412010-05-30 16:55:18 +00008942 .unlock = unlock_sst_fwhub,
Sean Nelson35727f72010-01-28 23:55:12 +00008943 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00008944 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008945 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008946 },
8947
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008948 {
8949 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008950 .name = "W39V040FB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008951 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008952 .manufacture_id = WINBOND_ID,
8953 .model_id = WINBOND_W39V040B,
8954 .total_size = 512,
8955 .page_size = 64 * 1024,
8956 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +00008957 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008958 .probe = probe_jedec,
8959 .probe_timing = 10,
8960 .block_erasers =
8961 {
8962 {
8963 .eraseblocks = { {64 * 1024, 8} },
8964 .block_erase = erase_sector_jedec,
8965 }, {
8966 .eraseblocks = { {512 * 1024, 1} },
8967 .block_erase = erase_chip_block_jedec,
8968 }
8969 },
8970 .printlock = printlock_w39v040fb,
Idwer Volleringecc67072010-12-26 23:55:12 +00008971 .unlock = unlock_w39v040fb,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008972 .write = write_jedec_1,
8973 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00008974 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008975 },
8976
8977 {
8978 .vendor = "Winbond",
8979 .name = "W39V040FC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008980 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008981 .manufacture_id = WINBOND_ID,
8982 .model_id = WINBOND_W39V040C,
8983 .total_size = 512,
8984 .page_size = 64 * 1024,
8985 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +00008986 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00008987 .probe = probe_jedec,
8988 .probe_timing = 10,
8989 .block_erasers =
8990 {
8991 {
8992 .eraseblocks = { {64 * 1024, 8} },
8993 .block_erase = erase_sector_jedec,
8994 }, {
8995 .eraseblocks = { {512 * 1024, 1} },
8996 .block_erase = erase_chip_block_jedec,
8997 }
8998 },
8999 .printlock = printlock_w39v040fc,
9000 .write = write_jedec_1,
9001 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009002 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009003 },
9004
9005 {
9006 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009007 .name = "W39V080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009008 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009009 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009010 .model_id = WINBOND_W39V080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009011 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +00009012 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009013 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +00009014 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009015 .probe = probe_jedec,
Paul Menzelac427b22012-02-16 21:07:07 +00009016 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009017 .block_erasers =
9018 {
9019 {
9020 .eraseblocks = { {64 * 1024, 16} },
9021 .block_erase = erase_sector_jedec,
9022 }, {
9023 .eraseblocks = { {1024 * 1024, 1} },
9024 .block_erase = erase_chip_block_jedec,
9025 }
9026 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009027 .printlock = printlock_w39v080a,
Sean Nelson35727f72010-01-28 23:55:12 +00009028 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009029 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009030 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009031 },
9032
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009033 {
9034 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +00009035 .name = "W49F002U/N",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009036 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009037 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009038 .model_id = WINBOND_W49F002U,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009039 .total_size = 256,
9040 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00009041 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +00009042 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009043 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009044 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009045 .block_erasers =
9046 {
9047 {
9048 .eraseblocks = {
9049 {128 * 1024, 1},
9050 {96 * 1024, 1},
9051 {8 * 1024, 2},
9052 {16 * 1024, 1},
9053 },
9054 .block_erase = erase_sector_jedec,
9055 }, {
9056 .eraseblocks = { {256 * 1024, 1} },
9057 .block_erase = erase_chip_block_jedec,
9058 }
9059 },
Sean Nelson35727f72010-01-28 23:55:12 +00009060 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009061 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009062 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009063 },
9064
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009065 {
9066 .vendor = "Winbond",
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +00009067 .name = "W49F020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009068 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +00009069 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009070 .model_id = WINBOND_W49F020,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +00009071 .total_size = 256,
9072 .page_size = 128,
9073 .feature_bits = FEATURE_EITHER_RESET,
9074 .tested = TEST_OK_PROBE,
9075 .probe = probe_jedec,
9076 .probe_timing = 10,
9077 .block_erasers =
9078 {
9079 {
9080 .eraseblocks = { {256 * 1024, 1} },
9081 .block_erase = erase_chip_block_jedec,
9082 }
9083 },
9084 .write = write_jedec_1,
9085 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009086 .voltage = {4500, 5500},
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +00009087 },
9088
9089 {
9090 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009091 .name = "W49V002A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009092 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009093 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009094 .model_id = WINBOND_W49V002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009095 .total_size = 256,
9096 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00009097 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00009098 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009099 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +00009100 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009101 .block_erasers =
9102 {
9103 {
9104 .eraseblocks = {
9105 {64 * 1024, 3},
9106 {32 * 1024, 1},
9107 {8 * 1024, 2},
9108 {16 * 1024, 1},
9109 },
9110 .block_erase = erase_sector_jedec,
9111 }, {
9112 .eraseblocks = { {256 * 1024, 1} },
9113 .block_erase = erase_chip_block_jedec,
9114 }
9115 },
Sean Nelson35727f72010-01-28 23:55:12 +00009116 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009117 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009118 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009119 },
9120
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009121 {
9122 .vendor = "Winbond",
9123 .name = "W49V002FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009124 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009125 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009126 .model_id = WINBOND_W49V002FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009127 .total_size = 256,
9128 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00009129 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00009130 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009131 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00009132 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009133 .block_erasers =
9134 {
9135 {
9136 .eraseblocks = {
9137 {64 * 1024, 3},
9138 {32 * 1024, 1},
9139 {8 * 1024, 2},
9140 {16 * 1024, 1},
9141 },
9142 .block_erase = erase_sector_jedec,
9143 }, {
9144 .eraseblocks = { {256 * 1024, 1} },
9145 .block_erase = erase_chip_block_jedec,
9146 }
9147 },
Sean Nelson35727f72010-01-28 23:55:12 +00009148 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009149 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009150 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009151 },
9152
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009153 {
9154 .vendor = "Winbond",
9155 .name = "W39V080FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009156 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009157 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009158 .model_id = WINBOND_W39V080FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009159 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +00009160 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009161 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +00009162 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00009163 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009164 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009165 .block_erasers =
9166 {
9167 {
9168 .eraseblocks = { {64 * 1024, 16}, },
9169 .block_erase = erase_sector_jedec,
9170 }, {
9171 .eraseblocks = { {1024 * 1024, 1} },
9172 .block_erase = erase_chip_block_jedec,
9173 }
9174 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009175 .printlock = printlock_w39v080fa,
9176 .unlock = unlock_w39v080fa,
Sean Nelson35727f72010-01-28 23:55:12 +00009177 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009178 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009179 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +00009180 },
9181
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009182 {
9183 .vendor = "Winbond",
9184 .name = "W39V080FA (dual mode)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009185 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009186 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +00009187 .model_id = WINBOND_W39V080FA_DM,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009188 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +00009189 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009190 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009191 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +00009192 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009193 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +00009194 .block_erasers =
9195 {
9196 {
9197 .eraseblocks = { {64 * 1024, 8}, },
9198 .block_erase = erase_sector_jedec,
9199 }, {
9200 .eraseblocks = { {512 * 1024, 1} },
9201 .block_erase = erase_chip_block_jedec,
9202 }
9203 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +00009204 .printlock = printlock_w39v080fa_dual,
Sean Nelson35727f72010-01-28 23:55:12 +00009205 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009206 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009207 .voltage = {3000, 3600}, /* Also has 12V fast program */
FENG yu ningff692fb2008-12-08 18:15:10 +00009208 },
Stefan Taunerac1b4c82012-02-17 14:51:04 +00009209
9210 {
9211 .vendor = "Unknown",
9212 .name = "SFDP-capable chip",
9213 .bustype = BUS_SPI,
9214 .manufacture_id = GENERIC_MANUF_ID,
9215 .model_id = SFDP_DEVICE_ID,
9216 /* We present our own "report this" text hence we do not
9217 * want the default "This flash part has status UNTESTED..."
9218 * text to be printed. */
9219 .tested = TEST_OK_PREW,
9220 .probe = probe_spi_sfdp,
9221 .unlock = spi_disable_blockprotect, /* is this safe? */
9222 .read = spi_chip_read,
9223 /* FIXME: some vendor extensions define this */
9224 .voltage = {},
9225 /* Everything below will be set by the probing function. */
9226 .write = NULL,
9227 .total_size = 0,
9228 .page_size = 0,
9229 .feature_bits = 0,
9230 .block_erasers = {},
9231 },
FENG yu ningff692fb2008-12-08 18:15:10 +00009232
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009233 {
Carl-Daniel Hailfinger532c7172011-11-04 21:35:26 +00009234 .vendor = "Programmer",
9235 .name = "Opaque flash chip",
9236 .bustype = BUS_PROG,
9237 .manufacture_id = PROGMANUF_ID,
9238 .model_id = PROGDEV_ID,
9239 .total_size = 0,
9240 .page_size = 256,
9241 /* probe is assumed to work, rest will be filled in by probe */
9242 .tested = TEST_OK_PROBE,
9243 .probe = probe_opaque,
9244 /* eraseblock sizes will be set by the probing function */
9245 .block_erasers =
9246 {
9247 {
9248 .block_erase = erase_opaque,
9249 }
9250 },
9251 .write = write_opaque,
9252 .read = read_opaque,
9253 },
9254
9255 {
Daniel Lenskidf90d3a2010-07-22 11:44:38 +00009256 .vendor = "AMIC",
9257 .name = "unknown AMIC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009258 .bustype = BUS_SPI,
Daniel Lenskidf90d3a2010-07-22 11:44:38 +00009259 .manufacture_id = AMIC_ID,
9260 .model_id = GENERIC_DEVICE_ID,
9261 .total_size = 0,
9262 .page_size = 256,
9263 .tested = TEST_BAD_PREW,
9264 .probe = probe_spi_rdid4,
9265 .probe_timing = TIMING_ZERO,
9266 .write = NULL,
9267 .read = NULL,
9268 },
9269
9270 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009271 .vendor = "Atmel",
9272 .name = "unknown Atmel SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009273 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009274 .manufacture_id = ATMEL_ID,
9275 .model_id = GENERIC_DEVICE_ID,
9276 .total_size = 0,
9277 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00009278 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009279 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009280 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009281 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009282 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00009283 },
9284
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009285 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00009286 .vendor = "Eon",
9287 .name = "unknown Eon SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009288 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009289 .manufacture_id = EON_ID_NOPREFIX,
9290 .model_id = GENERIC_DEVICE_ID,
9291 .total_size = 0,
9292 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00009293 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009294 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009295 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009296 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009297 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00009298 },
9299
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009300 {
9301 .vendor = "Macronix",
9302 .name = "unknown Macronix SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009303 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009304 .manufacture_id = MACRONIX_ID,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009305 .model_id = GENERIC_DEVICE_ID,
9306 .total_size = 0,
9307 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00009308 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009309 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009310 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009311 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009312 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00009313 },
9314
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009315 {
9316 .vendor = "PMC",
9317 .name = "unknown PMC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009318 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009319 .manufacture_id = PMC_ID,
9320 .model_id = GENERIC_DEVICE_ID,
9321 .total_size = 0,
9322 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00009323 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009324 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009325 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009326 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009327 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00009328 },
9329
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009330 {
9331 .vendor = "SST",
9332 .name = "unknown SST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009333 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009334 .manufacture_id = SST_ID,
9335 .model_id = GENERIC_DEVICE_ID,
9336 .total_size = 0,
9337 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00009338 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009339 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009340 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009341 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009342 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00009343 },
9344
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009345 {
9346 .vendor = "ST",
9347 .name = "unknown ST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009348 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009349 .manufacture_id = ST_ID,
9350 .model_id = GENERIC_DEVICE_ID,
9351 .total_size = 0,
9352 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +00009353 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009354 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009355 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009356 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009357 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +00009358 },
Uwe Hermannfc425e82008-03-16 02:06:25 +00009359
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00009360 {
Sean Nelson118e1d62009-11-24 02:08:11 +00009361 .vendor = "Sanyo",
9362 .name = "unknown Sanyo SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009363 .bustype = BUS_SPI,
Sean Nelson118e1d62009-11-24 02:08:11 +00009364 .manufacture_id = SANYO_ID,
9365 .model_id = GENERIC_DEVICE_ID,
9366 .total_size = 0,
9367 .page_size = 256,
9368 .tested = TEST_BAD_PREW,
9369 .probe = probe_spi_rdid,
9370 .probe_timing = TIMING_ZERO,
Sean Nelson118e1d62009-11-24 02:08:11 +00009371 .write = NULL,
9372 .read = NULL,
9373 },
9374
9375 {
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00009376 .vendor = "Generic",
9377 .name = "unknown SPI chip (RDID)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009378 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00009379 .manufacture_id = GENERIC_MANUF_ID,
9380 .model_id = GENERIC_DEVICE_ID,
9381 .total_size = 0,
9382 .page_size = 256,
9383 .tested = TEST_BAD_PREW,
9384 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00009385 .write = NULL,
9386 },
Stefan Tauneraf2db612011-12-02 21:48:17 +00009387
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00009388 {
9389 .vendor = "Generic",
9390 .name = "unknown SPI chip (REMS)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009391 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00009392 .manufacture_id = GENERIC_MANUF_ID,
9393 .model_id = GENERIC_DEVICE_ID,
9394 .total_size = 0,
9395 .page_size = 256,
9396 .tested = TEST_BAD_PREW,
9397 .probe = probe_spi_rems,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +00009398 .write = NULL,
9399 },
9400
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009401 { NULL }
Stephan Guilloux72cf5652009-04-21 01:46:07 +00009402};